/* Claude Kickstart — deep navy edition (Hubtown-grade restraint) */
:root {
  --bg: #060b16;          /* deep navy near-black */
  --bg-2: #0b1322;        /* raised surface */
  --bg-3: #111c30;        /* card */
  --fg: #eef2f8;          /* cool off-white */
  --muted: #79859a;       /* slate */
  --accent: #5e8bff;      /* single cool accent, used sparingly */
  --accent-soft: rgba(94, 139, 255, 0.14);
  --line: rgba(238, 242, 248, 0.12);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: "Space Grotesk", system-ui, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
::selection { background: var(--accent); color: var(--bg); }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.skip-link { position: absolute; left: -200vw; top: 0; z-index: 200; background: var(--fg); color: var(--bg); padding: 0.6rem 1rem; }
.skip-link:focus { left: 0.5rem; top: 0.5rem; }

.mono { font-family: "JetBrains Mono", monospace; }
.kicker {
  font-family: "JetBrains Mono", monospace; font-size: 0.72rem;
  letter-spacing: 0.26em; text-transform: uppercase; color: var(--accent);
}

/* grain */
.grain {
  position: fixed; inset: -50%; z-index: 60; pointer-events: none; opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.06'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

/* fixed 3D canvas behind everything */
#stage { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
main, .nav, .dock { position: relative; z-index: 1; }

/* preloader */
.loader {
  position: fixed; inset: 0; z-index: 120; background: var(--bg); color: var(--fg);
  display: flex; align-items: flex-end; justify-content: space-between;
  padding: clamp(1.5rem, 4vw, 3rem);
}
.loader .count { font-family: "JetBrains Mono", monospace; font-size: clamp(3rem, 12vw, 9rem); line-height: 1; }
.loader .label { font-family: "JetBrains Mono", monospace; font-size: 0.75rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--accent); padding-bottom: 1rem; }

/* nav */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 90;
  display: flex; justify-content: space-between; align-items: center;
  padding: 1rem clamp(1.2rem, 4vw, 3rem);
  background: color-mix(in srgb, var(--bg) 70%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav .logo { font-weight: 600; text-decoration: none; letter-spacing: -0.01em; }
.nav .logo em { font-style: normal; color: var(--accent); }
.nav-right { display: flex; gap: 0.8rem; align-items: center; }
.menu-btn, .sound-btn {
  font-family: "JetBrains Mono", monospace; font-size: 0.72rem; letter-spacing: 0.18em;
  text-transform: uppercase; background: none; border: 1px solid var(--line);
  border-radius: 99px; padding: 0.5rem 1rem; cursor: pointer; color: var(--fg);
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.menu-btn:hover, .sound-btn:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.btn {
  display: inline-block; background: var(--fg); color: var(--bg);
  font-weight: 600; font-size: 0.92rem; padding: 0.75rem 1.5rem; border-radius: 99px;
  text-decoration: none; border: 1px solid var(--fg); cursor: pointer;
  transition: background 0.25s, color 0.25s, transform 0.25s var(--ease), box-shadow 0.25s;
}
.btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; transform: translateY(-2px); box-shadow: 0 12px 36px rgba(94, 139, 255, 0.35); }
.btn:active { transform: scale(0.98); }
.btn.accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.accent:hover { background: var(--fg); border-color: var(--fg); color: var(--bg); box-shadow: 0 12px 36px rgba(238, 242, 248, 0.18); }

/* menu overlay */
.menu {
  position: fixed; inset: 0; z-index: 100; background: var(--bg-2); color: var(--fg);
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(1.5rem, 5vw, 4rem);
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.7s var(--ease);
}
.menu.open { clip-path: inset(0 0 0% 0); }
.menu a {
  font-size: clamp(2rem, 6.5vw, 4.5rem); font-weight: 600; letter-spacing: -0.02em;
  text-decoration: none; line-height: 1.25; display: flex; gap: 1.2rem; align-items: baseline;
  color: var(--fg); transition: color 0.25s;
}
.menu a:hover { color: var(--accent); }
.menu a .idx { font-family: "JetBrains Mono", monospace; font-size: 0.8rem; color: var(--accent); }
.menu .menu-close { position: absolute; top: 1.2rem; right: clamp(1.2rem, 4vw, 3rem); background: none; border: 1px solid var(--line); color: var(--fg); border-radius: 99px; padding: 0.5rem 1rem; font-family: "JetBrains Mono", monospace; font-size: 0.72rem; letter-spacing: 0.18em; cursor: pointer; }

/* chapters */
.chapter { min-height: 100dvh; display: flex; flex-direction: column; justify-content: center; padding: clamp(5rem, 12vh, 8rem) clamp(1.2rem, 5vw, 4rem); position: relative; }
.chapter .ch-label {
  position: absolute; top: clamp(4.6rem, 9vh, 6rem); left: clamp(1.2rem, 5vw, 4rem);
  font-family: "JetBrains Mono", monospace; font-size: 0.72rem; letter-spacing: 0.26em;
  text-transform: uppercase; color: var(--muted);
}
.chapter .ch-label b { color: var(--accent); font-weight: 500; }
.declare {
  font-size: clamp(2.4rem, 7.2vw, 6.4rem); font-weight: 600;
  letter-spacing: -0.03em; line-height: 1.02; max-width: 16ch; text-wrap: balance;
}
.declare em { font-family: "Fraunces", Georgia, serif; font-style: italic; font-weight: 600; color: var(--accent); }
.declare .dim { color: var(--muted); }
.body-copy { font-size: clamp(1rem, 1.6vw, 1.2rem); color: var(--muted); max-width: 46ch; margin-top: 1.8rem; }
.body-copy strong { color: var(--fg); }
.chapter .cta-row { margin-top: 2.4rem; display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }

/* stats strip */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--line); border-block: 1px solid var(--line); margin-top: 4rem;
}
.stat { background: var(--bg); padding: 1.6rem 1rem; }
.stat b { display: block; font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 600; letter-spacing: -0.02em; }
.stat span { font-family: "JetBrains Mono", monospace; font-size: 0.68rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 720px) { .stats { grid-template-columns: 1fr 1fr; } }

/* editorial rows */
.rows { margin-top: 3rem; border-top: 1px solid var(--line); }
.row {
  display: grid; grid-template-columns: 5rem 1fr 1.4fr; gap: clamp(1rem, 3vw, 3rem);
  padding: clamp(1.4rem, 3vh, 2.2rem) 0; border-bottom: 1px solid var(--line);
  align-items: baseline; transition: background 0.3s, padding-left 0.3s var(--ease);
}
.row:hover { background: var(--bg-2); padding-left: 1rem; }
.row .idx { font-family: "JetBrains Mono", monospace; color: var(--accent); font-size: 0.8rem; }
.row h3 { font-size: clamp(1.2rem, 2.4vw, 1.7rem); font-weight: 600; letter-spacing: -0.01em; }
.row p { color: var(--muted); font-size: 0.97rem; max-width: 56ch; }
@media (max-width: 760px) { .row { grid-template-columns: 3rem 1fr; } .row p { grid-column: 2; } }

/* terminal */
.term {
  background: #04080f; color: var(--fg); border: 1px solid var(--line); border-radius: 18px;
  max-width: 56rem; margin-top: 2.6rem;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}
.term-bar { display: flex; gap: 7px; padding: 1rem 1.2rem; border-bottom: 1px solid var(--line); }
.term-bar i { width: 11px; height: 11px; border-radius: 50%; background: rgba(238, 242, 248, 0.18); }
.term-bar i:first-child { background: var(--accent); }
.term-body { font-family: "JetBrains Mono", monospace; font-size: clamp(0.82rem, 1.5vw, 1rem); padding: 1.4rem 1.5rem 1.8rem; line-height: 2; min-height: 11rem; }
.term-body .ps1 { color: var(--accent); }
.term-body .out { color: rgba(238, 242, 248, 0.6); display: block; }
.caret { display: inline-block; width: 0.55em; height: 1.1em; background: var(--accent); vertical-align: -0.18em; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ticket */
.ticket {
  max-width: 58rem; margin-top: 3rem;
  background: linear-gradient(150deg, var(--bg-3), var(--bg-2));
  color: var(--fg); border: 1px solid var(--line); border-radius: 20px;
  display: grid; grid-template-columns: 1fr auto;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.55);
}
.ticket-main { padding: clamp(1.8rem, 4.5vw, 3.2rem); }
.ticket-main h3 { font-size: clamp(1.6rem, 3.6vw, 2.6rem); font-weight: 600; letter-spacing: -0.02em; margin: 0.7rem 0 1.1rem; max-width: 18ch; }
.ticket-main ul { list-style: none; display: grid; gap: 0.45rem; color: var(--muted); font-size: 0.95rem; }
.ticket-main ul li::before { content: "— "; color: var(--accent); }
.ticket-stub {
  border-left: 2px dashed var(--line);
  padding: clamp(1.8rem, 4.5vw, 3.2rem) clamp(1.4rem, 3vw, 2.4rem);
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 1rem;
  text-align: center; min-width: 15rem; position: relative;
}
.ticket-stub::before, .ticket-stub::after {
  content: ""; position: absolute; left: -14px; width: 26px; height: 26px;
  border-radius: 50%; background: var(--bg);
}
.ticket-stub::before { top: -13px; } .ticket-stub::after { bottom: -13px; }
.price { font-size: clamp(2.8rem, 6vw, 4.2rem); font-weight: 600; letter-spacing: -0.02em; line-height: 1; }
.price small { display: block; font-size: 0.78rem; font-weight: 400; color: var(--muted); margin-top: 0.4rem; }
@media (max-width: 720px) {
  .ticket { grid-template-columns: 1fr; }
  .ticket-stub { border-left: none; border-top: 2px dashed var(--line); }
  .ticket-stub::before { left: -13px; top: -13px; } .ticket-stub::after { left: auto; right: -13px; top: -13px; bottom: auto; }
}

/* faq + fine */
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.4rem, 4vw, 3rem); margin-top: 2.6rem; }
.qa { border-top: 1px solid var(--line); padding-top: 1.1rem; }
.qa h3 { font-size: 1.02rem; font-weight: 600; margin-bottom: 0.45rem; }
.qa p { color: var(--muted); font-size: 0.93rem; max-width: 56ch; }
@media (max-width: 760px) { .faq-grid { grid-template-columns: 1fr; } }
.fine-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1rem; margin-top: 2.6rem; }
.fine-card { border: 1px solid var(--line); border-radius: 14px; padding: 1.4rem; background: var(--bg-2); }
.fine-card h3 { font-size: 0.98rem; font-weight: 600; margin-bottom: 0.45rem; }
.fine-card p { color: var(--muted); font-size: 0.86rem; }
.fine-card a { color: var(--accent); }

/* mega + footer */
.mega { border-top: 1px solid var(--line); background: var(--bg-2); }
.mega a {
  display: block; text-decoration: none; text-align: center;
  font-weight: 600; letter-spacing: -0.03em;
  font-size: clamp(3rem, 11vw, 9.5rem); line-height: 1.05;
  padding: clamp(3rem, 9vh, 6rem) 1rem;
  color: var(--fg); transition: color 0.4s;
}
.mega a:hover { color: var(--accent); }
.mega a em { font-family: "Fraunces", Georgia, serif; font-style: italic; }
.footer { background: var(--bg-2); color: var(--muted); font-size: 0.85rem; padding: 0 0 6rem; }
.footer .cols { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; padding: 2rem clamp(1.2rem, 5vw, 4rem) 0; border-top: 1px solid var(--line); }
.footer a { color: var(--fg); text-decoration: none; }
.footer .disclaimer { padding: 1.4rem clamp(1.2rem, 5vw, 4rem) 0; font-size: 0.76rem; opacity: 0.7; max-width: 75ch; }

/* chapter dock */
.dock {
  position: fixed; bottom: 1.2rem; right: 1.2rem; z-index: 80;
  display: flex; align-items: center; gap: 0.5rem;
  background: color-mix(in srgb, var(--bg-2) 88%, transparent);
  border: 1px solid var(--line); border-radius: 99px; padding: 0.4rem;
  backdrop-filter: blur(10px);
}
.dock button {
  width: 2.4rem; height: 2.4rem; border-radius: 50%; border: 1px solid var(--line);
  background: none; color: var(--fg); cursor: pointer; font-size: 0.95rem;
  transition: background 0.25s, color 0.25s;
}
.dock button:hover { background: var(--fg); color: var(--bg); }
.dock .pos { font-family: "JetBrains Mono", monospace; font-size: 0.72rem; letter-spacing: 0.14em; padding: 0 0.5rem; color: var(--muted); min-width: 4.4rem; text-align: center; }

/* mouse-reveal spotlight */
.spotlight {
  position: fixed; width: 32rem; height: 32rem; border-radius: 50%; z-index: 0; pointer-events: none;
  background: radial-gradient(circle, rgba(94, 139, 255, 0.1), transparent 65%);
  transform: translate(-50%, -50%); left: 50%; top: 30%;
  mix-blend-mode: screen;
}

/* reveals */
[data-reveal] { opacity: 0; transform: translateY(26px); }
.no-motion [data-reveal] { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; }
  .caret { animation: none; }
  .menu { transition: none; }
  #stage, .spotlight { display: none; }
}
