:root {
  --ink: #1a0f0a;
  --ink-soft: #3d2a22;
  --cream: #f6efe4;
  --cream-2: #efe4d2;
  --paper: #fffaf3;
  --hot: #e85d04;
  --hot-deep: #c44900;
  --ember: #ff8c42;
  --teal: #0d7377;
  --teal-bright: #14919b;
  --line: rgba(26, 15, 10, 0.12);
  --line-light: rgba(255, 250, 243, 0.16);
  --shadow: 0 24px 60px rgba(26, 15, 10, 0.18);
  --font: "Outfit", system-ui, sans-serif;
  --display: "Bebas Neue", Impact, sans-serif;
  --serif: "Newsreader", Georgia, serif;
  --wrap: 1140px;
  --radius: 18px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.55;
  min-height: 100vh;
  overflow-x: hidden;
}

.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

a {
  color: var(--hot-deep);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--hot);
}

.wrap {
  width: min(var(--wrap), calc(100% - 2.25rem));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--hot);
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 200;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(246, 239, 228, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 1rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
}

.logo-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--cream);
  border-radius: 10px;
  font-family: var(--display);
  font-size: 1.15rem;
  letter-spacing: 0.04em;
}

.logo-text {
  font-size: 0.95rem;
  letter-spacing: -0.02em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.35rem;
}

.nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
}

.nav a:hover {
  color: var(--ink);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border: 2px solid transparent;
  border-radius: 999px;
  padding: 0.85rem 1.35rem;
  font: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-sm {
  padding: 0.45rem 0.95rem;
  font-size: 0.85rem;
}

.btn-hot {
  background: var(--hot);
  color: #fff;
  border-color: var(--hot);
}

.btn-hot:hover {
  background: var(--hot-deep);
  border-color: var(--hot-deep);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}

.btn-outline:hover {
  background: var(--ink);
  color: var(--cream);
}

.btn-ink {
  background: var(--cream);
  color: var(--ink);
  border-color: var(--cream);
}

.btn-ink:hover {
  background: #fff;
  color: var(--ink);
}

.btn.full {
  width: 100%;
}

/* Hero */
.hero {
  padding: 2.5rem 0 0;
  position: relative;
}

.ticket {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.75rem;
  padding: 0.45rem 0.9rem;
  border: 1.5px dashed rgba(26, 15, 10, 0.28);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  margin: 0 0 1.5rem;
  background: rgba(255, 250, 243, 0.6);
}

.ticket .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--hot);
}

.hero-title {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: 0.01em;
  font-size: clamp(3.6rem, 12vw, 8.5rem);
}

.hero-title .line {
  display: block;
}

.hero-title .line-2 {
  color: var(--hot);
  -webkit-text-stroke: 0;
}

.hero-title .line-3 {
  color: var(--teal);
}

.hero-bottom {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2rem;
  align-items: end;
  margin: 2rem 0 2.5rem;
}

.hero-story {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2.2vw, 1.4rem);
  line-height: 1.45;
  color: var(--ink-soft);
  max-width: 38rem;
}

.hero-story strong {
  color: var(--ink);
  font-weight: 600;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: flex-end;
}

/* Marquee */
.marquee {
  border-block: 2px solid var(--ink);
  background: var(--ink);
  color: var(--cream);
  overflow: hidden;
  margin-inline: calc(50% - 50vw);
  width: 100vw;
}

.marquee-track {
  display: flex;
  gap: 1.25rem;
  width: max-content;
  padding: 0.85rem 0;
  font-family: var(--display);
  font-size: 1.35rem;
  letter-spacing: 0.06em;
  animation: scroll 28s linear infinite;
}

.marquee-track span:nth-child(even) {
  color: var(--ember);
  opacity: 0.7;
}

@keyframes scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* Sections */
.section {
  padding: 5rem 0;
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 1rem;
  color: var(--ink-soft);
}

.section-kicker .num {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--ink);
  color: var(--cream);
  font-size: 0.75rem;
}

.section-kicker.light {
  color: rgba(246, 239, 228, 0.75);
}

.section-kicker.light .num {
  background: var(--hot);
  color: #fff;
}

.display {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.6rem, 7vw, 4.8rem);
  line-height: 0.98;
  letter-spacing: 0.02em;
  margin: 0 0 1.75rem;
  color: var(--ink);
}

.display em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--hot);
  font-size: 0.72em;
}

.display.light {
  color: var(--cream);
}

.display.light em {
  color: var(--ember);
}

.lede-soft {
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--ink-soft);
  max-width: 34rem;
  margin: 0;
  line-height: 1.5;
}

/* Chapters / story */
.chapters {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 0.5rem;
}

.chapter {
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.45rem 1.35rem;
  position: relative;
  overflow: hidden;
}

.chapter::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: var(--hot);
}

.chapter.c2::before {
  background: var(--teal);
}

.chapter.c3::before {
  background: #9a3412;
}

.chapter.c4::before {
  background: #1e3a5f;
}

.chapter.c5 {
  background: linear-gradient(135deg, #1a0f0a 0%, #2d1810 55%, #0d7377 160%);
  color: var(--cream);
  border-color: transparent;
}

.chapter.c5::before {
  background: var(--ember);
}

.chapter.c5 .chapter-tag {
  color: var(--ember);
}

.chapter.c5 p {
  color: rgba(246, 239, 228, 0.88);
}

.chapter.c5 p strong {
  color: #fff;
}

.chapter.span-2 {
  grid-column: 1 / -1;
}

.chapter-tag {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--hot);
  margin-bottom: 0.65rem;
}

.chapter h3 {
  margin: 0 0 0.65rem;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.chapter p {
  margin: 0 0 1rem;
  color: var(--ink-soft);
  font-size: 1rem;
}

.chapter-badge,
.chapter-badges .chapter-badge {
  display: inline-block;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(232, 93, 4, 0.1);
  color: var(--hot-deep);
  font-size: 0.78rem;
  font-weight: 700;
}

.chapter.c5 .chapter-badge {
  background: rgba(255, 140, 66, 0.18);
  color: var(--ember);
}

.chapter-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

/* Flex section */
.flex-section {
  background: var(--ink);
  color: var(--cream);
  position: relative;
}

.flex-section::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 6px;
  background: linear-gradient(90deg, var(--hot), var(--ember), var(--teal));
}

.flex-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
}

.flex-card {
  background: rgba(255, 250, 243, 0.05);
  border: 1px solid var(--line-light);
  border-radius: 16px;
  padding: 1.25rem;
}

.flex-card.big {
  grid-column: span 2;
  grid-row: span 2;
  background: linear-gradient(160deg, rgba(232, 93, 4, 0.22), rgba(13, 115, 119, 0.15));
  border-color: rgba(232, 93, 4, 0.35);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.flex-label {
  margin: 0 0 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ember);
}

.flex-line {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.35rem;
  line-height: 1.35;
  color: #fff;
}

.flex-note {
  margin: 1rem 0 0;
  color: rgba(246, 239, 228, 0.65);
  font-size: 0.92rem;
}

.flex-stat {
  margin: 0 0 0.4rem;
  font-family: var(--display);
  font-size: 2.4rem;
  letter-spacing: 0.03em;
  color: var(--ember);
  line-height: 1;
}

.flex-desc {
  margin: 0;
  color: rgba(246, 239, 228, 0.72);
  font-size: 0.92rem;
}

.cta-band {
  margin-top: 2rem;
  padding: 1.25rem 1.4rem;
  border: 1.5px dashed rgba(246, 239, 228, 0.28);
  border-radius: 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cta-band p {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.2rem;
  font-style: italic;
  color: rgba(246, 239, 228, 0.9);
}

/* Now */
.now-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.2fr;
  gap: 2rem;
  align-items: start;
}

.now-cards {
  display: grid;
  gap: 0.85rem;
}

.now-cards article {
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: 16px;
  padding: 1.2rem 1.3rem;
  border-left: 5px solid var(--teal);
}

.now-cards article:nth-child(2) {
  border-left-color: var(--hot);
}

.now-cards article:nth-child(3) {
  border-left-color: #1e3a5f;
}

.now-cards h3 {
  margin: 0 0 0.25rem;
  font-size: 1.15rem;
}

.now-cards .role {
  margin: 0 0 0.5rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--hot-deep);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.now-cards p:last-child {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* Creds strip */
.creds {
  background: var(--cream-2);
  border-block: 1px solid var(--line);
  padding: 1.5rem 0;
}

.creds-inner {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
}

.creds-inner > div {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.creds-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--hot);
}

.creds-inner strong {
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.creds-inner span:last-child {
  font-size: 0.85rem;
  color: var(--ink-soft);
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.85fr;
  gap: 2rem;
  align-items: start;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 1.75rem 0 0;
  display: grid;
  gap: 1rem;
}

.contact-list li {
  display: grid;
  gap: 0.15rem;
}

.contact-list span {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
}

.contact-list a,
.contact-list strong {
  color: var(--ink);
  font-size: 1.2rem;
  font-weight: 700;
  text-decoration: none;
}

.contact-list a:hover {
  color: var(--hot);
}

.book-card {
  background: var(--ink);
  color: var(--cream);
  border-radius: 22px;
  padding: 1.6rem 1.5rem;
  box-shadow: var(--shadow);
}

.book-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ember);
}

.book-card h3 {
  margin: 0 0 0.5rem;
  font-family: var(--display);
  font-size: 2.2rem;
  letter-spacing: 0.03em;
  font-weight: 400;
}

.book-card > p {
  margin: 0 0 1.15rem;
  color: rgba(246, 239, 228, 0.72);
}

.book-note {
  margin: 0.85rem 0 0;
  color: var(--ember);
  font-size: 0.92rem;
}

/* Footer */
.site-footer {
  padding: 1.5rem 0 5.5rem;
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
}

.site-footer p {
  margin: 0;
  font-size: 0.9rem;
}

.muted {
  color: var(--ink-soft);
}

/* Chat */
.chat-fab {
  position: fixed;
  right: 1.2rem;
  bottom: 1.2rem;
  z-index: 50;
  border: 0;
  border-radius: 999px;
  padding: 0.95rem 1.25rem;
  background: var(--hot);
  color: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 14px 36px rgba(232, 93, 4, 0.4);
  position: fixed;
}

.chat-fab:hover {
  background: var(--hot-deep);
}

.fab-pulse {
  display: none;
}

.chat-panel {
  position: fixed;
  right: 1.2rem;
  bottom: 5rem;
  z-index: 55;
  width: min(400px, calc(100vw - 1.5rem));
  height: min(560px, calc(100vh - 7rem));
  display: flex;
  flex-direction: column;
  background: #1a0f0a;
  color: var(--cream);
  border: 1px solid rgba(255, 250, 243, 0.12);
  border-radius: 20px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.chat-panel[hidden] {
  display: none !important;
}

.chat-header {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1rem 0.75rem;
  border-bottom: 1px solid rgba(255, 250, 243, 0.1);
  background: linear-gradient(180deg, rgba(232, 93, 4, 0.2), transparent);
}

.chat-header h2 {
  margin: 0;
  font-size: 1.05rem;
}

.chat-header p {
  margin: 0.2rem 0 0;
  color: rgba(246, 239, 228, 0.6);
  font-size: 0.8rem;
}

.chat-close {
  border: 0;
  background: transparent;
  color: rgba(246, 239, 228, 0.65);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.chat-close:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.chat-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0.75rem 1rem 0;
}

.chat-suggestions button {
  border: 1px solid rgba(255, 250, 243, 0.18);
  background: rgba(255, 250, 243, 0.05);
  color: rgba(246, 239, 228, 0.75);
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  font: inherit;
  font-size: 0.75rem;
  cursor: pointer;
}

.chat-suggestions button:hover {
  color: #fff;
  border-color: var(--ember);
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.msg {
  max-width: 92%;
  padding: 0.7rem 0.85rem;
  border-radius: 14px;
  font-size: 0.92rem;
  white-space: pre-wrap;
  word-wrap: break-word;
}

.msg.user {
  align-self: flex-end;
  background: rgba(232, 93, 4, 0.25);
  border: 1px solid rgba(232, 93, 4, 0.4);
}

.msg.assistant {
  align-self: flex-start;
  background: rgba(255, 250, 243, 0.06);
  border: 1px solid rgba(255, 250, 243, 0.12);
}

.msg.system {
  align-self: center;
  color: rgba(246, 239, 228, 0.55);
  font-size: 0.82rem;
  background: transparent;
  border: 0;
  text-align: center;
}

.msg.error {
  align-self: center;
  color: #ffb4b4;
  border: 1px solid rgba(255, 120, 120, 0.3);
  background: rgba(120, 30, 30, 0.25);
}

.chat-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem;
  padding: 0.75rem;
  border-top: 1px solid rgba(255, 250, 243, 0.1);
  background: rgba(0, 0, 0, 0.25);
}

.chat-form textarea {
  resize: none;
  border: 1px solid rgba(255, 250, 243, 0.15);
  border-radius: 12px;
  background: #120b08;
  color: var(--cream);
  font: inherit;
  padding: 0.65rem 0.75rem;
  min-height: 52px;
}

.chat-form textarea:focus {
  outline: 2px solid rgba(232, 93, 4, 0.5);
  outline-offset: 1px;
}

.chat-form .btn {
  align-self: end;
  min-width: 72px;
  border-width: 0;
}

.chat-form .btn:disabled {
  opacity: 0.55;
  cursor: wait;
}

/* Responsive */
@media (max-width: 900px) {
  .hero-bottom,
  .now-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    justify-content: flex-start;
  }

  .chapters {
    grid-template-columns: 1fr;
  }

  .chapter.span-2 {
    grid-column: auto;
  }

  .flex-grid {
    grid-template-columns: 1fr 1fr;
  }

  .flex-card.big {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .creds-inner {
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
  }

  .nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.75rem 1.25rem 1rem;
    background: rgba(246, 239, 228, 0.98);
    border-bottom: 1px solid var(--line);
  }

  .nav.open {
    display: flex;
  }

  .nav a,
  .nav .btn {
    padding: 0.75rem 0;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .chat-panel {
    right: 0.75rem;
    left: 0.75rem;
    width: auto;
    bottom: 4.75rem;
  }
}

@media (max-width: 520px) {
  .flex-grid {
    grid-template-columns: 1fr;
  }

  .creds-inner {
    grid-template-columns: 1fr;
  }

  .hero-title {
    font-size: clamp(3.2rem, 16vw, 4.5rem);
  }
}
