/* Claude X Thread — preview redesign
   Type: Inter Tight (display), Inter (text), Instrument Serif (accent), JetBrains Mono (meta)
   Motif: one continuous thread from a Claude Code prompt to a published post */

:root {
  --paper: #F7F5F0;
  --surface: #FFFFFF;
  --ink: #0C111C;
  --ink-2: #161D2B;
  --text: #121826;
  --muted: #4F5866;
  --line: rgba(12, 17, 28, .12);
  --line-strong: rgba(12, 17, 28, .24);
  --clay: #C2461F;
  --clay-bright: #EE7448;
  --clay-deep: #7A2C12;
  --clay-soft: #F4E4D9;
  --navy: #1E3A8A;
  --navy-deep: #152B6B;
  --on-ink: #F4F1EA;
  --on-ink-muted: #AEB5C2;
  --on-ink-line: rgba(244, 241, 234, .16);

  --f-display: "Inter Tight", "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-text: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-serif: "Instrument Serif", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --f-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --ease: cubic-bezier(.22, 1, .36, 1);
  --gutter: clamp(18px, 4vw, 48px);
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 24px;
  --r-pill: 999px;
  --space-section: clamp(80px, 11vw, 152px);
  --shadow-card: 0 1px 0 rgba(12, 17, 28, .04), 0 2px 6px rgba(12, 17, 28, .04), 0 30px 70px -30px rgba(12, 17, 28, .28);

  /* Flow animation clock */
  --flow-start: 4.2s;
  --flow-cycle: 6s;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--f-text);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
h1, h2, h3, p, figure, dl, dd { margin: 0; }
a { color: inherit; }
img, svg { max-width: 100%; }
::selection { background: var(--clay); color: #fff; }

:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; border-radius: 4px; }
.agenda :focus-visible, .registration .reg-copy :focus-visible, .preview-bar :focus-visible { outline-color: var(--clay-bright); }

.shell { width: min(1240px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: var(--r-sm); background: var(--ink); color: var(--on-ink); font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }

.sep { display: inline-block; width: 4px; height: 4px; margin: 0 .6em; border-radius: 50%; background: currentColor; opacity: .55; vertical-align: middle; }
.serif { font-family: var(--f-serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; }

.i { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Eyebrow: fit-to-text with a short thread lead-in */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .16em;
  line-height: 1.4;
  color: var(--clay);
}
.eyebrow::before { content: ""; width: 28px; height: 2px; flex: none; border-radius: 2px; background: currentColor; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  width: auto;
  min-height: 56px;
  padding: 8px 8px 8px 24px;
  border-radius: var(--r-pill);
  font-family: var(--f-text);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -.005em;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .3s var(--ease), box-shadow .3s var(--ease), transform .3s var(--ease);
}
.btn-primary {
  color: #fff;
  background: var(--navy);
  border: 1px solid var(--navy-deep);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 1px 2px rgba(12, 17, 28, .18), 0 14px 28px -14px rgba(30, 58, 138, .7);
}
.btn-primary:hover { background: var(--navy-deep); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }
.btn-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .14);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2);
  transition: transform .4s var(--ease), background-color .3s var(--ease);
}
.btn:hover .btn-icon { background: var(--clay); transform: translateY(2px); }
#form-submit:hover .btn-icon { transform: translateX(3px); }

/* ---------- Preview bar + header ---------- */
.preview-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2px 0;
  padding: 9px 16px;
  background: var(--ink);
  color: var(--on-ink);
  font-family: var(--f-mono);
  font-size: 11.5px;
  letter-spacing: .12em;
  text-align: center;
}
.preview-bar strong { font-weight: 500; color: var(--clay-bright); }

.top {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(247, 245, 240, .86);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.top-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-display);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
}
.wordmark-x { width: 18px; height: 18px; fill: none; stroke: var(--clay); stroke-width: 2.4; stroke-linecap: round; }
.top-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border: 1.5px solid var(--navy);
  border-radius: var(--r-pill);
  color: var(--navy);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .3s var(--ease), color .3s var(--ease);
}
.top-link:hover { background: var(--navy); color: #fff; }

/* ---------- Hero ---------- */
.hero { padding: clamp(28px, 5vh, 60px) 0 clamp(56px, 8vh, 96px); }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "head" "facts" "body" "flow";
  gap: 32px;
}
.hero-head { grid-area: head; }
.hero-body { grid-area: body; }
.facts { grid-area: facts; }
.flow { grid-area: flow; }

h1 {
  margin-top: 22px;
  font-family: var(--f-display);
  font-size: clamp(44px, 13.4vw, 64px);
  font-weight: 800;
  line-height: .94;
  letter-spacing: -.045em;
  color: var(--ink);
}
.h1-a, .h1-b { display: inline-block; max-width: 100%; }
.h1-b {
  position: relative;
  padding-bottom: .1em;
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.1em;
  letter-spacing: -.02em;
  color: var(--clay);
}
.h1-thread { position: absolute; left: 0; bottom: -.06em; width: 100%; height: .2em; overflow: visible; }
.h1-thread path { fill: none; stroke: var(--clay); stroke-width: 2.6; stroke-linecap: round; stroke-dasharray: 1; }

.intro { max-width: 34em; font-size: clamp(17px, 1.45vw, 20px); line-height: 1.55; color: var(--muted); }
.cta-row { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; margin-top: 28px; }
.quiet { font-family: var(--f-mono); font-size: 12px; letter-spacing: .06em; color: var(--muted); }

/* Event facts */
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 2px solid var(--ink); }
.fact { min-width: 0; padding: 14px 0 16px; border-bottom: 1px solid var(--line); }
.fact:nth-child(n+4) { padding-left: 14px; border-left: 1px solid var(--line); }
.fact:nth-child(n+3) { padding-right: 10px; }
.fact dt { margin-bottom: 4px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.fact dd { font-size: 15px; font-weight: 600; line-height: 1.3; color: var(--ink); overflow-wrap: anywhere; }
.fact-date, .fact-time { grid-column: 1 / -1; }
.fact-date dd { display: flex; align-items: center; gap: 16px; }
.date-num { font-family: var(--f-display); font-size: 76px; font-weight: 800; line-height: .82; letter-spacing: -.06em; color: var(--ink); }
.date-stack { display: flex; flex-direction: column; gap: 2px; font-family: var(--f-mono); font-size: 13px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; }
.date-stack span:first-child { color: var(--clay); }
.fact-time dd { font-size: 17px; }
.tz { margin-left: 6px; padding: 2px 7px; border: 1px solid var(--line-strong); border-radius: 6px; font-family: var(--f-mono); font-size: 11px; font-weight: 500; letter-spacing: .08em; text-decoration: none; vertical-align: 2px; }
.fact-price dd { font-family: var(--f-display); font-size: 24px; font-weight: 800; letter-spacing: -.03em; line-height: 1.05; color: var(--clay); }

/* Flow visual */
.flow {
  position: relative;
  margin-inline: calc(var(--gutter) * -1);
  background: var(--surface);
  border-block: 1px solid var(--line);
  overflow: hidden;
}
.flow-svg { display: block; width: 100%; height: auto; }
.flow-svg text { font-family: var(--f-mono); }
.grid-line { stroke: var(--ink); stroke-opacity: .05; }
.term-box { fill: var(--ink); }
.term-rule { stroke: var(--on-ink); stroke-opacity: .12; }
.t-meta { font-size: 13px; letter-spacing: .08em; fill: #8B93A3; }
.t-cmd { font-size: 17px; fill: var(--on-ink); }
.t-prompt { font-size: 17px; fill: var(--clay-bright); }
.cursor { fill: var(--on-ink); }
.thread-track { fill: none; stroke: var(--line); stroke-width: 2.4; }
.thread-base { fill: none; stroke: var(--clay); stroke-width: 2.6; stroke-linecap: round; stroke-dasharray: 1; }
.thread-comet { fill: none; stroke: var(--clay-bright); stroke-width: 6; stroke-linecap: round; stroke-dasharray: .06 1.6; stroke-dashoffset: .06; opacity: 0; }
.port { fill: var(--clay); }
.node .dot { fill: var(--surface); stroke: var(--ink); stroke-width: 2.4; }
.node .ring { fill: none; stroke: var(--clay); stroke-width: 2; opacity: 0; transform-box: fill-box; transform-origin: center; }
.node, .post { transform-box: fill-box; transform-origin: center; }
.n-label { font-size: 15px; font-weight: 500; letter-spacing: .12em; fill: var(--ink); }
.post-label { fill: var(--muted); }
.flow-meta text { font-size: 13px; letter-spacing: .1em; fill: var(--muted); }
.flow-meta text:first-child { fill: var(--clay); font-weight: 500; }
.post-box { fill: var(--surface); stroke: var(--ink); stroke-width: 2; }
.post-avatar { fill: var(--clay-soft); stroke: var(--clay); stroke-width: 1.5; }
.post-name { fill: var(--ink); }
.post-handle { fill: rgba(12, 17, 28, .18); }
.post-line { fill: rgba(12, 17, 28, .32); transform-box: fill-box; transform-origin: left center; }

.flow-cap {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 18px;
  border-top: 1px solid var(--line);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- About ---------- */
.about { padding: var(--space-section) 0; border-top: 1px solid var(--line); }
.about-grid { display: grid; gap: 36px; }
.about h2, .agenda h2, .expect h2, .reg-copy h2 {
  margin-top: 20px;
  font-family: var(--f-display);
  font-weight: 800;
  letter-spacing: -.045em;
  line-height: .98;
}
.about h2 { font-size: clamp(42px, 6.4vw, 96px); color: var(--ink); }
.about h2 .serif, .expect h2 .serif, .host h2 .serif { color: var(--clay); }
.about-copy { display: grid; gap: 22px; align-content: end; }
.about-copy .lead { font-size: clamp(19px, 1.7vw, 23px); line-height: 1.5; color: var(--ink); letter-spacing: -.01em; }
.about-copy p:not(.lead) { max-width: 34em; color: var(--muted); }

/* ---------- Agenda ---------- */
.agenda { padding: var(--space-section) 0; background: var(--ink); color: var(--on-ink); }
.agenda .eyebrow { color: var(--clay-bright); }
.agenda-grid { display: grid; gap: 48px; }
.agenda h2 { font-size: clamp(40px, 5.6vw, 84px); color: var(--on-ink); }
.agenda-counter { display: none; }

.topics-wrap { position: relative; --spine-x: 23px; }
.topics { list-style: none; margin: 0; padding: 0; position: relative; z-index: 1; }
.topics-spine { position: absolute; left: var(--spine-x); top: 24px; bottom: 24px; width: 1px; background: var(--on-ink-line); }
.topics-fill { position: absolute; left: -.5px; top: 0; width: 2px; height: 100%; background: var(--clay-bright); transform-origin: top center; transform: scaleY(var(--p, 0)); }
.topic { position: relative; display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 20px; padding-bottom: 48px; }
.topic:last-child { padding-bottom: 0; }
/* The thread ends at the last topic, like the final reply in a chain */
.topic:last-child::before { content: ""; position: absolute; left: 0; top: 40px; bottom: 0; width: 48px; background: var(--ink); }
.topic-num {
  position: relative;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--ink);
  border: 1px solid rgba(244, 241, 234, .3);
  font-family: var(--f-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .04em;
  color: var(--on-ink);
}
.topic.is-past .topic-num { border-color: var(--clay-bright); color: var(--clay-bright); }
.topic.is-active .topic-num { background: var(--clay-bright); border-color: var(--clay-bright); color: var(--ink); }
.topic-body { padding-top: 6px; min-width: 0; }
.topic h3 { font-family: var(--f-display); font-size: clamp(25px, 2.8vw, 40px); font-weight: 700; line-height: 1.08; letter-spacing: -.035em; color: var(--on-ink); }
.topic p { max-width: 36em; margin-top: 12px; color: var(--on-ink-muted); }

/* ---------- Expectation ---------- */
.expect { padding: var(--space-section) 0; background: var(--clay-soft); }
.expect-grid { display: grid; gap: 36px; }
.expect-art { width: min(200px, 56%); }
.expect-art svg { display: block; width: 100%; height: auto; overflow: visible; }
.expect-art .draw { fill: none; stroke: var(--ink); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; }
.expect-art .play { fill: var(--clay); transform-box: fill-box; transform-origin: center; }
.expect h2 { font-size: clamp(38px, 5.4vw, 80px); color: var(--ink); }
.expect .eyebrow { color: var(--clay-deep); }
.expect h2 .serif { color: var(--clay-deep); }
.expect-cols { display: grid; gap: 18px; margin-top: 32px; padding-top: 28px; border-top: 1px solid rgba(122, 44, 18, .2); }
.expect-cols p { max-width: 34em; color: #3E3530; }

/* ---------- Host ---------- */
.host { padding: var(--space-section) 0; }
.host-grid { display: grid; gap: 24px; }
.host h2 {
  font-family: var(--f-display);
  font-size: clamp(52px, 10.4vw, 168px);
  font-weight: 800;
  line-height: .9;
  letter-spacing: -.055em;
  color: var(--ink);
}
.host h2 .serif { font-size: 1.06em; }
.host-bio { max-width: 30em; font-size: clamp(18px, 1.55vw, 21px); line-height: 1.55; color: var(--muted); }

/* ---------- Registration ---------- */
.registration { padding: var(--space-section) 0; background: var(--ink); color: var(--on-ink); }
.reg-grid { display: grid; gap: 48px; }
.registration .eyebrow { color: var(--clay-bright); }
.reg-copy h2 { max-width: 12em; font-size: clamp(36px, 4.6vw, 66px); color: var(--on-ink); }
.reg-copy > p:not(.eyebrow):not(.price) { max-width: 32em; margin-top: 18px; color: var(--on-ink-muted); }
.reg-copy .reg-when { display: flex; flex-direction: column; gap: 2px; margin-top: 28px; font-size: 18px; font-weight: 500; color: var(--on-ink); }
.reg-copy .reg-rec { color: var(--on-ink); font-weight: 500; }
.price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 16px;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--on-ink-line);
  font-family: var(--f-serif);
  font-size: clamp(84px, 10vw, 148px);
  font-weight: 400;
  line-height: .85;
  letter-spacing: -.03em;
  color: var(--on-ink);
}
.price small { font-family: var(--f-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--clay-bright); }

.reg-form {
  align-self: start;
  padding: clamp(24px, 3.2vw, 40px);
  border-radius: var(--r-lg);
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .06), 0 50px 90px -40px rgba(0, 0, 0, .75);
}
.form-head h3 { font-family: var(--f-display); font-size: clamp(26px, 2.4vw, 32px); font-weight: 800; letter-spacing: -.035em; line-height: 1.1; color: var(--ink); }
.preview-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 16px;
  padding: 12px 14px;
  border: 1px solid #E9BFA9;
  border-radius: var(--r-md);
  background: repeating-linear-gradient(-45deg, #FBEFE7 0 10px, #F7E5D9 10px 20px);
  color: var(--clay-deep);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
}
.preview-note .i { width: 20px; height: 20px; margin-top: -1px; }
.field { margin-top: 20px; }
.field label { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 600; color: var(--ink); }
.field input {
  display: block;
  width: 100%;
  height: 54px;
  padding: 0 16px;
  border: 1.5px solid #C9CED6;
  border-radius: 12px;
  background: #FBFAF8;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease), background-color .25s var(--ease);
}
.field input:hover { border-color: #9AA2AF; }
.field input:focus { outline: none; border-color: var(--navy); background: #fff; box-shadow: 0 0 0 4px rgba(30, 58, 138, .18); }
.form-actions { display: flex; justify-content: center; margin-top: 28px; }
.form-status {
  margin-top: 16px;
  padding: 10px 12px;
  border-radius: var(--r-sm);
  font-size: 13.5px;
  line-height: 1.5;
  text-align: center;
  color: var(--muted);
  transition: background-color .4s var(--ease), color .4s var(--ease);
}
.form-status.is-shown { background: var(--clay-soft); color: var(--clay-deep); font-weight: 600; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); }
.footer-inner { display: flex; flex-direction: column; gap: 6px; padding: 28px 0 36px; font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

/* =========================================================
   Layout: tablet and up
   ========================================================= */
@media (min-width: 640px) {
  .cta-row { flex-direction: row; align-items: center; gap: 16px 24px; flex-wrap: wrap; }
  .fact dd { font-size: 17px; }
  .fact:nth-child(n+4) { padding-left: 20px; }
  .flow { max-width: 720px; margin-inline: 0; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-card); }
  .expect-cols { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-inner { flex-direction: row; justify-content: space-between; }
}

@media (min-width: 980px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas: "head head" "body flow" "facts flow";
    grid-template-rows: auto auto 1fr;
    column-gap: clamp(40px, 5vw, 80px);
    row-gap: 32px;
  }
  h1 { margin-top: 24px; font-size: clamp(60px, min(8vw, 13vh), 120px); }
  .facts { align-self: start; }
  .flow { max-width: none; }
  .date-num { font-size: 84px; }

  .about-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 80px; }

  .agenda-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(48px, 7vw, 112px); }
  .agenda-head { position: sticky; top: 120px; align-self: start; }
  .agenda-counter { display: flex; align-items: baseline; gap: 14px; margin-top: 56px; }
  .counter-now { display: inline-block; font-family: var(--f-serif); font-style: italic; font-size: clamp(140px, 15vw, 230px); line-height: .8; letter-spacing: -.04em; color: var(--clay-bright); font-variant-numeric: tabular-nums; }
  .counter-total { font-family: var(--f-mono); font-size: 14px; letter-spacing: .14em; color: var(--on-ink-muted); }
  .topics-wrap { --spine-x: 27px; }
  .topic { grid-template-columns: 56px minmax(0, 1fr); gap: 32px; padding-bottom: 72px; }
  .topic-num { width: 56px; height: 56px; font-size: 14px; }
  .topic:last-child::before { top: 48px; width: 56px; }
  .topic-body { padding-top: 8px; transition: transform .5s var(--ease); }
  .topic:hover .topic-body { transform: translateX(6px); }

  .expect-grid { grid-template-columns: 240px minmax(0, 1fr); gap: clamp(48px, 7vw, 112px); align-items: center; }
  .expect-art { width: 100%; }

  .host-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); grid-template-areas: "eyebrow eyebrow" "title title" ". bio"; row-gap: 28px; column-gap: 64px; }
  .host .eyebrow { grid-area: eyebrow; justify-self: start; }
  .host h2 { grid-area: title; }
  .host-bio { grid-area: bio; padding-top: 28px; border-top: 2px solid var(--ink); }

  .reg-grid { grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: clamp(48px, 7vw, 112px); }
}

/* Short laptop screens: keep every event fact above the fold */
@media (min-width: 980px) and (max-height: 820px) {
  .hero-grid { row-gap: 22px; }
  h1 { margin-top: 18px; }
  .cta-row { margin-top: 20px; }
  .intro { font-size: 17px; }
  .date-num { font-size: 64px; }
  .fact { padding: 10px 0 12px; }
  .fact:nth-child(n+4) { padding-left: 20px; }
}

/* Small phones: header must never overflow */
@media (max-width: 420px) {
  .eyebrow { gap: 10px; letter-spacing: .12em; }
  .eyebrow::before { width: 20px; }
  .wordmark { gap: 6px; font-size: 13px; letter-spacing: .1em; }
  .wordmark-x { width: 15px; height: 15px; }
  .top-link { gap: 6px; padding: 8px 12px; font-size: 13px; }
  .top-link .i { display: none; }
}

/* =========================================================
   Motion
   Everything is visible by default. Entrance animations only run
   when the inline head script has marked .js and the user has not
   asked for reduced motion. Scroll reveals need app.js (.motion).
   ========================================================= */
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes type { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
@keyframes pop { 0% { opacity: 0; transform: scale(.4); } 70% { opacity: 1; transform: scale(1.12); } 100% { opacity: 1; transform: scale(1); } }
@keyframes comet {
  0% { stroke-dashoffset: .06; opacity: 1; }
  100% { stroke-dashoffset: -1; opacity: 1; }
}
@keyframes ring {
  0% { opacity: .95; transform: scale(1); }
  28% { opacity: 0; transform: scale(2.8); }
  100% { opacity: 0; transform: scale(2.8); }
}
@keyframes write {
  0% { transform: scaleX(1); }
  4% { transform: scaleX(.04); }
  24% { transform: scaleX(1); }
  100% { transform: scaleX(1); }
}
@keyframes post-flash {
  0% { stroke: var(--clay); }
  30% { stroke: var(--ink); }
  100% { stroke: var(--ink); }
}
@keyframes breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08); } }
@keyframes tick { from { opacity: .2; transform: translateY(.12em); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }

  /* Hero entrance */
  .js .hero-head .eyebrow { animation: rise 1s var(--ease) both; }
  .js .h1-a { animation: rise 1s var(--ease) .08s both; }
  .js .h1-b { animation: rise 1s var(--ease) .2s both; }
  .js .h1-thread path { animation: draw 1.4s var(--ease) .95s both; }
  .js .hero-body { animation: rise 1s var(--ease) .32s both; }
  .js .facts { animation: rise 1s var(--ease) .44s both; }
  .js .flow { animation: fade 1s var(--ease) .16s both; }

  /* Flow: first-frame build */
  .js .term { animation: rise 1s var(--ease) .3s both; }
  .js .term-l1 { animation: fade .5s var(--ease) .8s both; }
  .js .term-l2 { animation: type 1.1s steps(24, end) 1.05s both; }
  .js .cursor { animation: blink 1.1s steps(1, end) infinite; }
  .js .thread-base { animation: draw 2.6s cubic-bezier(.45, .05, .35, 1) 1.7s both; }
  .js .port { animation: pop .6s var(--ease) 1.6s both; }
  .js .node { animation: pop .7s var(--ease) var(--d, 2s) both; }
  .js .post { animation: rise 1s var(--ease) 3.6s both; }

  /* Flow: sustained loop, a pulse travels the thread and lands as a post */
  .js .thread-comet { animation: comet var(--flow-cycle) cubic-bezier(.45, .05, .55, .95) var(--flow-start) infinite; }
  .js .node .ring { animation: ring var(--flow-cycle) var(--ease) calc(var(--flow-start) + var(--at, .5) * var(--flow-cycle) / 1.06) infinite; }
  .js .post-box { animation: post-flash var(--flow-cycle) var(--ease) calc(var(--flow-start) + var(--flow-cycle) / 1.06) infinite; }
  .js .post-line { animation: write var(--flow-cycle) var(--ease) calc(var(--flow-start) + var(--flow-cycle) / 1.06 + .1s) infinite; }
  .js .post-line + .post-line { animation-delay: calc(var(--flow-start) + var(--flow-cycle) / 1.06 + .35s); }
  .js .hero.is-paused * { animation-play-state: paused !important; }

  /* Scroll reveal (app.js adds .motion and .reveal) */
  .motion .reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: calc(var(--i, 0) * .12s); }
  .motion .reveal.is-in { opacity: 1; transform: none; }

  .motion .expect-art .draw { stroke-dashoffset: 1; transition: stroke-dashoffset 1.8s var(--ease) .2s; }
  .motion .expect-art.is-in .draw { stroke-dashoffset: 0; }
  .motion .expect-art.is-in .play { animation: breathe 3.6s ease-in-out 1.6s infinite; }

  .motion .topic-num { transition: background-color .5s var(--ease), border-color .5s var(--ease), color .5s var(--ease); }
  .motion .topics-fill { transition: transform .25s linear; }
  .motion .counter-now.tick { animation: tick .6s var(--ease); }
}

/* Mobile: shorter, no slide or scale */
@media (prefers-reduced-motion: no-preference) and (max-width: 700px) {
  .js .hero-head .eyebrow, .js .h1-a, .js .h1-b, .js .hero-body, .js .facts, .js .term, .js .post { animation-name: fade; animation-duration: .75s; }
  .js .node, .js .port { animation-name: fade; animation-duration: .75s; }
  .motion .reveal { transform: none; transition-duration: .75s; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .thread-comet { display: none; }
}

@media print {
  .preview-bar, .top, .flow { display: none; }
  body { background: #fff; }
  .agenda, .registration { background: #fff; color: #000; }
}
