/* ============================================================
   IIAC — International Industrial AI Conference
   Design system per DESIGN.md. Editorial, institutional, Tokyo.
   "A state banquet, not a tech expo."
   ============================================================ */

:root {
  /* Color — DESIGN.md §2 */
  --ink: #16263f;
  --ink-deep: #12203a;
  --red: #c1141a;
  --red-bright: #e33124;
  --red-deep: #a30f14;
  --paper: #fdfcf8;
  --paper-shell: #e7e4dc;
  --muted: #5b626d;
  --muted-2: #2a313c;
  --rule-warm: #e3b4ae;
  --line: #e0dccf;

  --red-gradient: linear-gradient(150deg, #df2a1b 0%, #bd141a 52%, #a30f14 100%);
  --red-sheen: linear-gradient(180deg, rgba(255,255,255,.16), rgba(255,255,255,0) 46%);
  --paper-shadow: 0 10px 44px rgba(20,35,63,.16);

  --maxw: 1280px;
  --measure: 60ch;
  color-scheme: light;

  /* Motion easing — one shared curve so every animation on the page reads
     as one choreography, not a grab-bag. --ease-out is the workhorse for
     reveals; --ease-precise for VT state changes; --ease-emphasis for the
     long signature arrivals. DESIGN.md §6: "subtle and dignified" — the
     curves carry the weight, durations stay restrained. */
  --ease-out:      cubic-bezier(.22, .61, .36, 1);
  --ease-precise:  cubic-bezier(.4, 0, .2, 1);
  --ease-emphasis: cubic-bezier(.16, 1, .3, 1);
}

/* -------------------------------------------------- Reset */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }

body {
  background: var(--paper-shell);
  color: var(--ink);
  font-family: 'Spectral', Georgia, 'Times New Roman', serif;
  font-size: 17px;
  line-height: 1.62;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, svg, video { display: block; max-width: 100%; }
a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* -------------------------------------------------- Page shell */
.page {
  max-width: none;
  margin: 0 auto;
  background: var(--paper);
  min-height: 100vh;
  position: relative;
}

/* Top accent bar — masthead touch (sticks with the masthead) */
.masthead::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 6px;
  background: var(--red-gradient);
}

/* -------------------------------------------------- Layout helpers */
.wrap {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
}

/* Sticky masthead: keep anchor jumps clear of the fixed bar */
[id] { scroll-margin-top: 72px; }

.section {
  padding: 96px 0;
}

.section--tight { padding: 72px 0; }

.section--ink {
  background: var(--ink-deep);
  color: #f3f0e8;
}
.section--ink h2,
.section--ink h3 { color: #fff; }
.section--ink .kicker--muted { color: rgba(243,240,232,.62); }
.section--ink p { color: rgba(243,240,232,.78); }

.section--shell { background: var(--paper-shell); }

/* Two-line letterhead rule — DESIGN.md §5 */
.rule-double {
  border: 0;
  border-top: 2px solid var(--ink);
  box-shadow: inset 0 -3px 0 0 var(--rule-warm);
  height: 4px;
  margin: 0;
}
.rule-double--ink { border-top-color: rgba(255,255,255,.18); box-shadow: inset 0 -3px 0 0 var(--rule-warm); }

/* Thin hairline */
.rule-hair {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 0;
}

/* -------------------------------------------------- Type — DESIGN.md §3 */
h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.12;
  letter-spacing: -0.005em;
  margin: 0 0 .5em;
}

.display, h1 {
  font-family: 'Archivo Black', 'Archivo', sans-serif;
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: .98;
}

h1 { font-size: clamp(2.6rem, 6vw, 4.1rem); }
h2 { font-size: clamp(2rem, 4vw, 2.85rem); }
h3 { font-size: clamp(1.4rem, 2.4vw, 1.75rem); }

p { margin: 0 0 1.2em; }

.lede {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.25rem, 2.2vw, 1.55rem);
  line-height: 1.45;
  color: var(--muted-2);
}

.measure { max-width: var(--measure); }
.measure-wide { max-width: 72ch; }
.muted { color: var(--muted); }

/* Tracked label / kicker — the signature move */
.kicker {
  display: inline-block;
  font-family: 'Archivo', sans-serif;
  font-weight: 600;
  font-size: .72rem;
  line-height: 1;
  letter-spacing: .26em;
  text-transform: uppercase;
  padding-left: .26em;
  color: var(--ink);
  margin-bottom: 22px;
}
.kicker--red { color: var(--red); font-weight: 700; }
.kicker--muted { color: var(--muted); }
.kicker--invert { color: #fff; }
.kicker + h1, .kicker + h2, .kicker + h3 { margin-top: 0; }

/* Section heading block */
.section-head { margin-bottom: 56px; max-width: 760px; }
.section-head h2 { margin-top: 6px; }

/* Inline red dot separator (rising sun) */
.dot {
  display: inline-block;
  width: .42em;
  height: .42em;
  border-radius: 50%;
  background: var(--red);
  vertical-align: middle;
  margin: 0 .55em;
  transform: translateY(-.08em);
}
.dot--mute { background: currentColor; opacity: .5; }

/* -------------------------------------------------- Buttons — DESIGN.md §5 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6em;
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 17px 30px 16px;       /* +top padding for optical tracking */
  padding-left: calc(30px + .14em);
  border-radius: 3px;
  border: 1.5px solid transparent;
  line-height: 1.2;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn--primary {
  background: var(--red-gradient);
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(163,15,20,.30);
}
.btn--primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--red-sheen);
  pointer-events: none;
}
.btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 30px rgba(163,15,20,.40);
  text-decoration: none;
}
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn--ghost:hover {
  background: var(--ink);
  color: #fff;
  text-decoration: none;
}
.btn--invert {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.55);
}
.btn--invert:hover {
  background: #fff;
  color: var(--ink-deep);
  text-decoration: none;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

/* Date / status pill — reusable where-when chip */
.pill {
  display: inline-flex;
  align-items: center;
  gap: .9em;
  background: var(--red-gradient);
  color: #fff;
  font-family: 'Archivo', sans-serif;
  font-weight: 600;
  font-size: .72rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  padding: 9px 18px 8px;
  padding-left: calc(18px + .2em);
  border-radius: 999px;
  position: relative;
  overflow: hidden;
}
.pill::before { content:""; position:absolute; inset:0; background: var(--red-sheen); pointer-events:none; }
.pill .pill-sep { opacity: .7; }

/* -------------------------------------------------- Torii + crest — DESIGN.md §4 */
.torii { fill: var(--red); }
.torii--bright { fill: var(--red-bright); }
.torii--white { fill: #fff; }

/* crest = the full lockup: torii + IIAC + hairlines + tracked lines */
.crest {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0;
}
.crest__torii { width: 96px; height: 88px; }
.crest__lockup {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 26px;
}
.crest__rule {
  height: 1px;
  background: linear-gradient(90deg, var(--red) 0%, var(--line) 70%);
  flex: 1 1 0;
  max-width: 130px;
}
.crest__rule--fade {
  background: linear-gradient(90deg, var(--line) 30%, var(--red) 100%);
}
.crest__dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--red);
  flex: 0 0 auto;
}
.crest__word {
  font-family: 'Archivo Black', sans-serif;
  font-weight: 400;
  font-size: clamp(2.4rem, 6vw, 3.3rem);
  letter-spacing: -0.015em;
  color: var(--ink);
  line-height: 1;
}
.crest__word--white { color: #fff; }
.crest__meta {
  margin-top: 22px;
  font-family: 'Archivo', sans-serif;
  font-weight: 600;
  font-size: .68rem;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--ink);
}
.crest__meta--red {
  color: var(--red);
  margin-top: 8px;
}

/* -------------------------------------------------- Masthead + nav */
.masthead {
  padding: 16px 0 10px;
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 60;
}
.masthead .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.masthead__mark {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Archivo Black', sans-serif;
  letter-spacing: -0.015em;
  color: var(--ink);
  font-size: 1.25rem;
}
.masthead__mark .torii { width: 30px; height: 28px; }
.masthead__nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.masthead__nav a {
  font-family: 'Archivo', sans-serif;
  font-weight: 600;
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
}
.masthead__nav a:not(.btn):hover { color: var(--red); }

/* Language toggle */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Archivo', sans-serif;
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.lang-toggle [data-lang] {
  background: none;
  border: 0;
  padding: 4px 2px;
  color: var(--muted);
  font: inherit;
  cursor: pointer;
  text-decoration: none;
  letter-spacing: inherit;
  text-transform: inherit;
  border-bottom: 1.5px solid transparent;
  transition: color .18s ease, border-color .18s ease;
}
.lang-toggle [data-lang]:hover { color: var(--ink); }
.lang-toggle [data-lang].is-active {
  color: var(--red);
  border-bottom-color: var(--red);
  font-weight: 700;
}
.lang-toggle [aria-hidden] { color: var(--line); }

/* Mobile nav */
.nav-toggle { display: none; }

/* -------------------------------------------------- Hero — reversed on ink-deep */
.hero {
  position: relative;
  background: var(--ink-deep);
  color: #f3f0e8;
  overflow: hidden;
  padding: 104px 0 120px;
}

/* Background video — full-bleed, below content. The ink-deep background
   color shows through during the brief load window before the video
   fills in, matching the design-system dark hero. */
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  /* Belt-and-suspenders: ensure the video can never push content down.
     A <video> in normal flow takes its intrinsic pixel height; absolute
     positioning removes it from flow, but we also force min-height: 0
     and max-height: 100% so there's no residual box to displace. */
  min-height: 0;
  max-height: 100%;
}
/* Legibility overlay — keeps the reversed white text readable over any
   video content. ~60% ink-deep is the design-system standard (DESIGN.md §7). */
.hero__video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
              rgba(18,32,58,.62) 0%,
              rgba(18,32,58,.72) 100%);
  z-index: 1;
}
/* Rising-sun motif — concentric faint rings upper-right */
.hero__sun {
  position: absolute;
  top: -180px;
  right: -200px;
  z-index: 1;
  width: 720px;
  height: 720px;
  pointer-events: none;
  opacity: .9;
}
.hero__sun::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at center,
              rgba(227,49,36,.42) 0%,
              rgba(227,49,36,.16) 30%,
              rgba(227,49,36,0) 62%);
}
.hero__rings { position: absolute; inset: 0; }
.hero__rings circle {
  fill: none;
  stroke: rgba(243,240,232,.06);
  stroke-width: 1;
}
.hero .wrap { position: relative; z-index: 3; }

.hero__grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 64px;
  align-items: center;
}
.hero__crest { justify-self: end; max-width: 360px; }
.hero__crest .crest__meta { color: rgba(243,240,232,.78); }
.hero__crest .crest__meta--red { color: var(--red-bright); }

.hero h1 {
  color: #fff;
  margin-top: 14px;
}
.hero h1 em {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 600;
  color: #fff;
}
.hero .lede {
  color: rgba(243,240,232,.82);
  max-width: 30ch;
  margin-top: 26px;
}
.hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 18px;
  margin-top: 30px;
  font-family: 'Archivo', sans-serif;
  font-size: .74rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(243,240,232,.7);
}
.hero__cta { margin-top: 40px; }

/* Japanese subtitle under the H1 — editorial accent, not decoration */
.hero__jp {
  font-family: 'Cormorant Garamond', 'Hiragino Mincho ProN', 'Yu Mincho', serif;
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.15rem, 1.8vw, 1.4rem);
  color: var(--red-bright);
  margin: 10px 0 0;
  letter-spacing: .12em;
}

.hero__note {
  margin-top: 26px;
  font-family: 'Archivo', sans-serif;
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(243,240,232,.5);
}

/* -------------------------------------------------- Invitation / quote */
.invite { padding: 110px 0 96px; }
.invite__grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 56px;
  align-items: start;
}
.invite__seal {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding-top: 8px;
}
.invite__seal .crest__torii { width: 72px; height: 66px; }
/* Hairline beneath the seal torii — Signature 2's "rule that draws in."
   Permanent in every browser (a static warm rule when the scroll-draw
   can't run); on supporting engines it extends from center on the view()
   timeline. DESIGN.md §2 keeps red a spice, so the line is --rule-warm
   (the rose tint the letterhead already uses), not a new red. */
.invite__seal::after {
  content: "";
  width: 96px;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--rule-warm) 50%, transparent 100%);
  transform-origin: center;
}

.pullquote {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.5rem, 2.6vw, 1.95rem);
  line-height: 1.38;
  color: var(--ink);
  margin: 0 0 28px;
}
.pullquote::before { content: "“"; color: var(--red); margin-right: .04em; }
.pullquote::after  { content: "”"; color: var(--red); }

.attribution {
  font-family: 'Archivo', sans-serif;
  font-size: .72rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}
.attribution strong { color: var(--ink); font-weight: 700; }

/* -------------------------------------------------- Three sovereignties */
.sov-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.sov-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 3px solid var(--red);
  padding: 36px 30px 34px;
  border-radius: 3px;
  position: relative;
}
.sov-card__num {
  font-family: 'Archivo Black', sans-serif;
  font-size: .82rem;
  letter-spacing: .12em;
  color: var(--red);
  margin-bottom: 18px;
}
.sov-card h3 { margin-bottom: 12px; }
.sov-card p { color: var(--muted-2); font-size: .98rem; margin-bottom: 0; }

/* -------------------------------------------------- Program */
.program { background: var(--paper); }
.program__intro { max-width: 760px; margin-bottom: 56px; }

/* Shape-of-the-day — high level only, no invented sessions */
.dayshape {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.dayshape__item {
  padding: 28px 0;
  border-right: 1px solid var(--line);
}
.dayshape__item:last-child { border-right: 0; }
.dayshape__label {
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: .68rem;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 14px;
  padding-left: .26em;
}
.dayshape__title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--ink);
  line-height: 1.25;
}

/* -------------------------------------------------- Keynote speakers (featured) */
.roster-subhead {
  font-family: 'Archivo', sans-serif;
  font-weight: 600;
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 26px;
}
.roster-subhead:first-of-type { margin-top: 8px; }
.roster-subhead + .roster-subhead,
.roster-subhead + .cards-grid { margin-top: 0; }
.cards-grid + .roster-subhead { margin-top: 56px; }

.keynotes {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-bottom: 56px;
  margin-inline: auto;
}
.keynote-card {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 3px solid var(--red);
  padding: 44px 30px 34px;
  border-radius: 3px;
  box-shadow: var(--paper-shadow);
  transition: transform .2s ease;
}
.keynote-card:hover { transform: translateY(-3px); }
.keynote-card__tag {
  position: absolute;
  top: -11px;
  left: 26px;
  background: var(--paper);
  color: var(--red);
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: .62rem;
  letter-spacing: .26em;
  text-transform: uppercase;
  padding: 0 10px;
}
.keynote-card__avatar {
  width: 96px; height: 96px;
  border-radius: 50%;
  margin-bottom: 20px;
  overflow: hidden;
  background: var(--ink-deep);
}
.keynote-card__avatar img { width: 100%; height: 100%; object-fit: cover; }
.keynote-card__name {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: 1.6rem;
  color: var(--ink);
  margin: 0;
  line-height: 1.12;
  height: 2.25rem;
}
.keynote-card__role {
  font-family: 'Archivo', sans-serif;
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0;
  line-height: 1.35;
  height: 2em;
}
.keynote-card__bio {
  font-size: .95rem;
  color: var(--muted-2);
  margin: 0;
  padding-top: 16px;
  line-height: 1.55;
}

/* -------------------------------------------------- Speakers / cards */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 32px 28px;
  border-radius: 3px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--paper-shadow); }
.card__avatar {
  width: 80px; height: 80px;
  border-radius: 50%;
  margin-bottom: 18px;
  display: grid;
  place-items: center;
  overflow: hidden;
  position: relative;
  background: var(--ink-deep);
  color: var(--paper);
  font-family: 'Archivo Black', sans-serif;
  font-size: 1.25rem;
  letter-spacing: .02em;
  /* Headshots display in natural color. To re-unify mismatched source photos
     into one brand tone, re-enable the duotone filter on .card__avatar img. */
}
.card__avatar img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.card__name {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: 1.35rem;
  color: var(--ink);
  margin: 0;
  line-height: 1.15;
  height: 2rem;
}
.card__role {
  font-family: 'Archivo', sans-serif;
  font-size: .68rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0;
  line-height: 1.35;
  height: 2.7em;
}
.card__bio {
  font-size: .95rem;
  color: var(--muted-2);
  margin: 0;
  padding-top: 8px;
}
.card--placeholder .card__avatar { color: var(--muted); font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 1.6rem; }
.card--placeholder .card__name { color: var(--muted-2); }
.card--placeholder .card__bio { font-style: italic; color: var(--muted); }

/* -------------------------------------------------- Committee / host */
.committee { background: var(--paper); }
.committee__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 16px;
}
.committee__block {
  padding: 4px 0 4px 22px;
}
.committee__block h4 {
  font-family: 'Archivo', sans-serif;
  font-weight: 600;
  font-size: .68rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 10px;
}
.committee__block .name {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--ink);
  display: block;
  line-height: 1.22;
}
.committee__block .role {
  font-family: 'Spectral', serif;
  font-size: .85rem;
  color: var(--muted);
  display: block;
  margin-top: 3px;
}

/* Chairs row (Conference Chair + Program Chair) — large avatar cards */
.chairs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  border-top: 2px solid var(--ink);
  box-shadow: inset 0 -3px 0 0 var(--rule-warm);
  padding: 30px 0 44px;
  margin-bottom: 44px;
}
.chair {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 22px;
  align-items: center;
}
.chair__avatar {
  width: 96px !important;
  height: 96px !important;
  font-size: 1.6rem !important;
}
.chair__body .name {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: 1.45rem;
  color: var(--ink);
  display: block;
  line-height: 1.18;
  margin-top: 2px;
}
.chair__body .role {
  font-family: 'Spectral', serif;
  font-size: .95rem;
  color: var(--muted);
  display: block;
  margin-top: 6px;
}
.committee__chair-title {
  font-family: 'Archivo', sans-serif;
  font-weight: 600;
  font-size: .7rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--red);
  margin: 0 0 6px;
}

/* Roster grid (8 members) — avatar + name */
.committee__roster-title {
  font-family: 'Archivo', sans-serif;
  font-weight: 600;
  font-size: .68rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 18px;
}
.committee__roster {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px 24px;
}
.committee__organizers {
  margin-top: 52px;
  padding-top: 28px;
  border-top: 3px solid var(--red);
}
.committee__block {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: center;
  border-left: 0;
  padding: 0;
}
.committee__avatar {
  width: 56px !important;
  height: 56px !important;
  font-size: .92rem !important;
  flex: 0 0 auto;
}
.committee__contact {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: .95rem;
  color: var(--muted-2);
  max-width: 70ch;
}

/* -------------------------------------------------- Project Tapestry band */
.tapestry {
  max-width: 820px;
}
.tapestry__title {
  color: #fff;
  margin-bottom: 22px;
}
.tapestry__lede {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-style: italic;
  font-size: clamp(1.3rem, 2.2vw, 1.6rem);
  line-height: 1.4;
  color: rgba(243,240,232,.92);
  margin-bottom: 20px;
}
.tapestry__body {
  font-size: 1.02rem;
  color: rgba(243,240,232,.78);
  max-width: 62ch;
  margin-bottom: 28px;
}
.tapestry__partner {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: 'Archivo', sans-serif;
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(243,240,232,.7);
}
.tapestry__partner .dot { background: var(--red-bright); }

.host-band {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 28px 36px;
  align-items: center;
  padding: 36px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-top: 48px;
}
/* Stanford→Tokyo lineage strip — spans both columns of the host-band grid,
   sits above the IAF mark + paragraph. Tracked uppercase Archivo with the
   current edition highlighted in the brand red. */
.host-band__lineage {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 12px;
  font-family: 'Archivo', sans-serif;
  font-weight: 600;
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
  padding-bottom: 6px;
  border-bottom: 1px solid var(--rule-warm);
}
.lineage__sep { color: var(--rule-warm); }
.lineage__item--current { color: var(--red); font-weight: 700; }
.host-band__mark {
  display: flex;
  align-items: center;
  gap: 14px;
}
.host-band__mark .torii { width: 36px; height: 33px; }
/* IAF logo lockup — red bold "IAF" type, per iaf.foundation brand */
.iaf-mark {
  font-family: 'Archivo Black', sans-serif;
  font-size: 1.35rem;
  letter-spacing: -.01em;
  color: var(--red);
  line-height: 1;
  padding: 4px 8px 2px;
  border: 1.5px solid var(--red);
  border-radius: 2px;
}
.host-band__mark .name {
  font-family: 'Archivo Black', sans-serif;
  font-size: 1.05rem;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.host-band p { margin: 0; color: var(--muted-2); font-size: .98rem; }

/* -------------------------------------------------- Venue */
.venue { background: var(--paper); }
.venue__grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 56px;
  align-items: start;
}
.venue__card {
  border: 1px solid var(--line);
  padding: 30px;
  background: var(--paper-shell);
  border-radius: 3px;
}
.venue__card h3 { margin-bottom: 6px; }
.venue__card dl {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 12px 18px;
  margin: 18px 0 0;
  font-size: .95rem;
}
.venue__card dt {
  font-family: 'Archivo', sans-serif;
  font-weight: 600;
  font-size: .68rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 3px;
}
.venue__card dd { margin: 0; color: var(--muted-2); }

/* -------------------------------------------------- The Moment (opportunity) */
.moment-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 40px;
}
.moment-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.12);
  border-top: 3px solid var(--red-bright);
  padding: 32px 28px;
  border-radius: 3px;
}
.moment-card__num {
  font-family: 'Archivo Black', sans-serif;
  font-size: clamp(2rem, 3.5vw, 2.7rem);
  color: #fff;
  line-height: 1;
  letter-spacing: -.015em;
  margin-bottom: 16px;
}
.moment-card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: 1.35rem;
  color: #fff;
  margin: 0 0 10px;
}
.moment-card p {
  font-size: .95rem;
  color: rgba(243,240,232,.76);
  margin: 0;
  line-height: 1.5;
}
.moment-foot {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  color: rgba(243,240,232,.9);
  max-width: 56ch;
  margin: 0;
  line-height: 1.4;
}

/* -------------------------------------------------- IAF member logos */
.members__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.member-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 32px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 110px;
  transition: box-shadow .2s ease;
}
.member-card:hover { box-shadow: var(--paper-shadow); }
.member-card img {
  max-width: 100%;
  max-height: 52px;
  width: auto;
  height: auto;
  object-fit: contain;
  /* Unify mismatched brand colors into one restrained editorial tone.
     Hover restores full color for each member's brand moment. */
  filter: grayscale(1) opacity(.72);
  transition: filter .25s ease;
}
.member-card:hover img { filter: grayscale(0) opacity(1); }

/* -------------------------------------------------- Why / What / How — core sovereignty argument */
.wwh {
  margin-top: 56px;
  padding: 40px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 3px solid var(--red);
  border-radius: 3px;
  box-shadow: var(--paper-shadow);
}
.wwh__title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: clamp(1.5rem, 2.6vw, 1.95rem);
  color: var(--ink);
  margin: 0 0 28px;
  line-height: 1.2;
}
.wwh__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.wwh__item { border-left: 2px solid var(--red); padding-left: 20px; }
.wwh__label {
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: .68rem;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 12px;
  padding-left: .26em;
}
.wwh__item p {
  font-size: .97rem;
  color: var(--muted-2);
  line-height: 1.55;
  margin: 0;
}

/* -------------------------------------------------- Use cases */
.usecases {
  margin-top: 64px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}
.usecases__title {
  font-family: 'Archivo', sans-serif;
  font-weight: 600;
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 24px;
}
.usecases__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.usecase {
  border-left: 2px solid var(--red);
  padding: 4px 0 4px 18px;
}
.usecase__icon {
  display: block;
  font-family: 'Archivo Black', sans-serif;
  color: var(--red);
  font-size: 1.1rem;
  margin-bottom: 10px;
  letter-spacing: -.02em;
}
.usecase h5 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: 1.12rem;
  color: var(--ink);
  margin: 0 0 8px;
  line-height: 1.2;
}
.usecase p {
  font-size: .92rem;
  color: var(--muted-2);
  margin: 0;
  line-height: 1.5;
}

/* -------------------------------------------------- Photo band (Tokyo) */
.photoband {
  position: relative;
  min-height: 460px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.photoband__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
}
.photoband__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(18,32,58,.32) 0%, rgba(18,32,58,.78) 100%);
}
.photoband__content {
  position: relative;
  z-index: 2;
  padding: 0 32px 64px;
  max-width: 820px;
}
.photoband__quote {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  line-height: 1.32;
  color: #fff;
  margin: 18px 0 14px;
  max-width: 28ch;
  text-shadow: 0 2px 24px rgba(0,0,0,.4);
}
.photoband__attr {
  font-family: 'Archivo', sans-serif;
  font-weight: 600;
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(243,240,232,.82);
  margin: 0;
}
.photoband__attr .dot { background: var(--red-bright); }

/* -------------------------------------------------- Sponsor — single CTA block */
.sponsor { background: var(--paper-shell); }
.sponsor-cta {
  margin-top: 8px;
  padding: 56px 40px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 3px solid var(--red);
  border-radius: 3px;
  box-shadow: var(--paper-shadow);
  text-align: center;
}
.sponsor-cta__lede {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  line-height: 1.42;
  color: var(--muted-2);
  max-width: 56ch;
  margin: 0 auto 32px;
}

/* -------------------------------------------------- Register / pricing */
.register { background: var(--ink-deep); color: #f3f0e8; }
.register h2 { color: #fff; }
.tickets {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 8px;
}
.ticket {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.14);
  padding: 36px 30px;
  border-radius: 3px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.ticket--featured {
  border-color: var(--red-bright);
  background: linear-gradient(180deg, rgba(227,49,36,.10), rgba(227,49,36,.02));
}
.ticket__label {
  font-family: 'Archivo', sans-serif;
  font-weight: 600;
  font-size: .7rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(243,240,232,.62);
  margin-bottom: 12px;
}
.ticket__price {
  font-family: 'Archivo Black', sans-serif;
  font-size: 2.4rem;
  color: #fff;
  line-height: 1;
  margin-bottom: 4px;
}
.ticket__price small {
  font-family: 'Spectral', serif;
  font-weight: 400;
  font-size: .85rem;
  color: rgba(243,240,232,.6);
  letter-spacing: 0;
}
/* Strikethrough regular price under the Premier access headline price */
.ticket__price-reg {
  font-family: 'Archivo', sans-serif;
  font-size: .78rem;
  letter-spacing: .04em;
  color: rgba(243,240,232,.45);
  text-decoration: line-through;
  margin: 0 0 12px;
}
.ticket__desc {
  font-size: .92rem;
  color: rgba(243,240,232,.72);
  margin: 12px 0 0;
}

/* Premier access deadline banner above the tiers */
.register__deadline {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
  padding: 14px 0;
  border-top: 1px solid rgba(255,255,255,.16);
  border-bottom: 1px solid rgba(255,255,255,.16);
}
.register__deadline-tag {
  display: inline-block;
  background: var(--red-gradient);
  color: #fff;
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: .62rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  padding: 5px 12px 4px;
  padding-left: calc(12px + .22em);
  border-radius: 999px;
}
.register__deadline-text {
  font-family: 'Archivo', sans-serif;
  font-size: .78rem;
  letter-spacing: .04em;
  color: rgba(243,240,232,.75);
}

.register__note {
  margin-top: 40px;
  font-size: .88rem;
  color: rgba(243,240,232,.6);
  max-width: 72ch;
  line-height: 1.6;
}

/* -------------------------------------------------- Footer — paper, bookends the masthead */
.footer {
  background: var(--paper);
  color: var(--muted-2);
  padding: 72px 0 40px;
  border-top: 2px solid var(--ink);
  box-shadow: inset 0 -3px 0 0 var(--rule-warm);
}
.footer__top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--line);
}
.footer__mark {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.footer__mark .torii { width: 28px; height: 26px; color: var(--red); }
.footer__mark .name {
  font-family: 'Archivo Black', sans-serif;
  letter-spacing: -0.015em;
  font-size: 1.1rem;
  color: var(--ink);
}
.footer p { font-size: .92rem; color: var(--muted); max-width: 34ch; margin: 0; }
.footer h5 {
  font-family: 'Archivo', sans-serif;
  font-weight: 600;
  font-size: .68rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 14px;
}
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { padding: 5px 0; font-size: .92rem; }
.footer a { color: var(--muted-2); text-decoration: none; }
.footer a:hover { color: var(--red); text-decoration: none; }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  flex-wrap: wrap;
  gap: 16px;
  font-family: 'Archivo', sans-serif;
  font-size: .7rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
.footer__bottom .dot { background: var(--rule-warm); }

/* -------------------------------------------------- Profiles — "the room comes
   into focus." Speaker and committee cards are portraits of the people
   who will be in the room. Two coordinated beats:

   1. On arrival, each card focus-pulls in (blur → sharp) and staggers
      across its grid, so the room assembles person by person rather than
      landing as a block. A longer, more weighted entrance than the
      generic .reveal cascade — these are people, not tiles.
   2. On hover, the avatar resolves (scale + a short focus-pull on the
      headshot) and a hairline draws under the name from left — the
      editorial equivalent of turning to face someone at the banquet.

   Red stays a spice: the hairline is the existing --red, drawn only on
   hover (one red element per view, per DESIGN.md §2). All motion is
   transform/opacity/filter — no layout shift. */
.card__name,
.keynote-card__name {
  position: relative;
  display: inline-block;
}
/* Underline hairline that draws from left on hover. Sits just under the
   name's descender line; --red so it reads as the brand mark. */
.card__name::after,
.keynote-card__name::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: .3em;
  height: 1px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .4s var(--ease-emphasis);
}

@media (prefers-reduced-motion: no-preference) {
  /* ARRIVAL — focus-pull + lift, per-card stagger. Overrides the generic
     .reveal cascade for these portraits so the room assembles with more
     weight. Both the small cards and the featured keynotes. */
  .cards-grid .card.reveal,
  .keynotes .keynote-card.reveal,
  .committee__roster .committee__block.reveal {
    opacity: 0;
    transform: translateY(28px);
    filter: blur(8px);
    transition:
      opacity .8s var(--ease-out),
      transform .8s var(--ease-out),
      filter .8s var(--ease-out);
  }
  .cards-grid .card.reveal.is-in,
  .keynotes .keynote-card.reveal.is-in,
  .committee__roster .committee__block.reveal.is-in {
    opacity: 1;
    transform: none;
    filter: none;
  }
  /* Per-position stagger across each grid: up to 9 positions covers the
     widest grid (committee roster is 4-col, speakers 3-col). nth-child(n+10)
     catch-all so no card is stranded at opacity 0. */
  .cards-grid .card.reveal:nth-child(1),
  .keynotes .keynote-card.reveal:nth-child(1),
  .committee__roster .committee__block.reveal:nth-child(1) { transition-delay: .05s; }
  .cards-grid .card.reveal:nth-child(2),
  .keynotes .keynote-card.reveal:nth-child(2),
  .committee__roster .committee__block.reveal:nth-child(2) { transition-delay: .14s; }
  .cards-grid .card.reveal:nth-child(3),
  .committee__roster .committee__block.reveal:nth-child(3) { transition-delay: .23s; }
  .cards-grid .card.reveal:nth-child(4),
  .committee__roster .committee__block.reveal:nth-child(4) { transition-delay: .32s; }
  .cards-grid .card.reveal:nth-child(5),
  .committee__roster .committee__block.reveal:nth-child(5) { transition-delay: .41s; }
  .cards-grid .card.reveal:nth-child(6),
  .committee__roster .committee__block.reveal:nth-child(6) { transition-delay: .50s; }
  .cards-grid .card.reveal:nth-child(7),
  .committee__roster .committee__block.reveal:nth-child(7) { transition-delay: .59s; }
  .cards-grid .card.reveal:nth-child(8),
  .committee__roster .committee__block.reveal:nth-child(8) { transition-delay: .68s; }
  .cards-grid .card.reveal:nth-child(9) { transition-delay: .77s; }
  .cards-grid .card.reveal:nth-child(n+10) { transition-delay: .86s; }

  /* HOVER — the portrait resolves. Headshot does a short focus-pull and a
     gentle scale inside the circular avatar frame; the name's hairline
     draws from left. The card's own hover lift/shadow are inherited from
     the base .card / .keynote-card rules above. */
  .card__avatar img,
  .keynote-card__avatar img {
    transition: transform .5s var(--ease-emphasis), filter .5s var(--ease-emphasis);
  }
  .card:hover .card__avatar img,
  .keynote-card:hover .keynote-card__avatar img {
    transform: scale(1.06);
    filter: saturate(1.12) contrast(1.04);
  }
  /* Placeholder avatars (the "·" glyph) have no <img> to focus-pull, so
     skip the filter there to avoid a no-op transition on them. */
  .card--placeholder:hover .card__avatar { filter: none; }

  .card:hover .card__name::after,
  .keynote-card:hover .keynote-card__name::after {
    transform: scaleX(1);
  }

  /* Committee roster blocks already have a red left-rule; on hover it
     extends slightly (transform-origin: top so it grows downward). */
  .committee__block {
    position: relative;
    transition: transform .3s var(--ease-out);
  }
  .committee__block::before {
    /* The roster blocks dropped their border-left for a grid layout; add a
       hover-only red accent that draws down from the top on hover. */
    content: "";
    position: absolute;
    left: -.5em;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--red);
    transform: scaleY(0);
    transform-origin: top center;
    transition: transform .35s var(--ease-emphasis);
  }
  .committee__block:hover { transform: translateX(3px); }
  .committee__block:hover::before { transform: scaleY(1); }
}

/* -------------------------------------------------- Motion system — DESIGN.md §6
   "Subtle and dignified." The whole page is one choreography: a shared
   easing curve, a reveal grammar, three signature moments, and parallax
   bands that let the city and the gate move past the reader. Every motion
   lives inside @media (prefers-reduced-motion: no-preference); under
   reduce, site.js force-adds .is-in and the page renders fully composed
   with zero animation (the hard gate). */

/* Reveal grammar — opacity + lift, longer and eased for weight. The old
   14px/.6s read as a twitch; 32px/.9s on --ease-out reads as arrival. */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
    will-change: opacity, transform;
  }
  .reveal.is-in { opacity: 1; transform: none; }

  /* Staggered children — direct reveal children of a section cascade in,
     one beat after the next, so a grid feels choreographed rather than
     dumped in. nth-child caps at 8 (any grid we use tops out around there)
     plus an :nth-child(8+) catch-all so nothing is left at opacity 0. */
  .reveal.is-in > *           { animation: reveal-child .8s var(--ease-out) both; }
  .reveal.is-in > *:nth-child(1) { animation-delay: .04s; }
  .reveal.is-in > *:nth-child(2) { animation-delay: .12s; }
  .reveal.is-in > *:nth-child(3) { animation-delay: .20s; }
  .reveal.is-in > *:nth-child(4) { animation-delay: .28s; }
  .reveal.is-in > *:nth-child(5) { animation-delay: .36s; }
  .reveal.is-in > *:nth-child(6) { animation-delay: .44s; }
  .reveal.is-in > *:nth-child(7) { animation-delay: .52s; }
  .reveal.is-in > *:nth-child(8) { animation-delay: .60s; }
  .reveal.is-in > *:nth-child(n+9) { animation-delay: .68s; }
  @keyframes reveal-child {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: none; }
  }

  /* Editorial blur-in — reserved for the ledes/quotes that carry the voice.
     A short focus-pull, not a gimmick: word-sharpens as the line settles. */
  .section-head .lede.is-in,
  .section-head .measure.is-in,
  .pullquote.is-in,
  .tapestry__lede.is-in,
  .photoband__quote.is-in {
    animation: reveal-focus 1.1s var(--ease-emphasis) both;
    animation-delay: .15s;
  }
  @keyframes reveal-focus {
    from { opacity: 0; filter: blur(10px); transform: translateY(10px); }
    to   { opacity: 1; filter: blur(0);   transform: none; }
  }

  .btn, .card, .tier, .ticket, .member-card { will-change: transform; }
}

/* -------------------------------------------------- Signature 1 — the torii holds
   while the language changes. EN ↔ 日本語 is a cross-document View
   Transition (Chromium 126+): pin the torii glyphs with matching
   view-transition-names so the gate holds steady while the editorial
   text cross-fades around it. "One event, two languages, one gate."

   The morph is deliberate, not a flicker: a ~480ms eased cross-fade on
   the ::view-transition-old/new(root) pseudo so the editorial text is
   recited, not flashed. The three torii still hold — named elements morph
   across, they don't root-fade. Under reduce, VT collapses to a cut. */
@view-transition { navigation: auto; }

.masthead__mark .torii      { view-transition-name: torii-mark; }
.hero__crest .crest__torii  { view-transition-name: torii-crest; }
.invite__seal .crest__torii { view-transition-name: torii-seal; }

@media (prefers-reduced-motion: no-preference) {
  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation-duration: .48s;
    animation-timing-function: var(--ease-precise);
  }
}

/* -------------------------------------------------- Signature 2 — the gate erects
   itself as you cross the threshold. Pure-CSS scroll-driven, no JS. The
   four bars of the Invitation torii construct themselves in sequence
   (lintel sweeps → nuki follows → both pillars descend), the hairline
   extends from center, and a warm underglow rises behind the gate as it
   stands — all bound to the reader's scroll into #theme.

   The four rects are inlined in index.html (not <use>d) so each bar
   carries its own class. At rest the gate is pixel-identical to the old
   <use> form. @supports (animation-timeline: view()) gates the whole
   block; Firefox/Safari/iOS Safari fall through to static fully-drawn. */
.invite-torii { color: var(--red); }
.invite-torii rect { fill: currentColor; }

/* The seal's container gets a soft warm underglow that rises with the
   gate. ::before, not a new DOM node. Red stays a spice — this is the
   existing --rule-warm at low alpha, not a new red. */
.invite__seal { position: relative; }
.invite__seal::before {
  content: "";
  position: absolute;
  inset: -28px -36px -8px;
  background: radial-gradient(circle at 50% 60%,
              var(--rule-warm) 0%, transparent 68%);
  opacity: 0;
  pointer-events: none;
  z-index: -1;
}

@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .invite-torii__lintel,
    .invite-torii__nuki,
    .invite-torii__pillar {
      animation: invite-bar-draw linear both;
      animation-timeline: view();
    }
    /* Lintel (kasagi) sweeps first. nuki follows. Pillars descend last —
       the gate stands up as the reader arrives. Ranges overlap slightly
       so the construction reads as one motion, not four discrete beats. */
    .invite-torii__lintel { animation-range: entry 0%   entry 35%; }
    .invite-torii__nuki   { animation-range: entry 22%  entry 55%; }
    .invite-torii__pillar { animation-range: entry 45%  entry 95%; }
    .invite-torii__lintel,
    .invite-torii__nuki { animation-name: invite-bar-draw-x; }

    /* Hairline extends from center on arrival, then holds. */
    .invite__seal::after {
      animation: invite-hairline-extend linear both;
      animation-timeline: view();
      animation-range: entry 10% entry 100%;
    }
    /* Warm underglow rises behind the gate as it stands. */
    .invite__seal::before {
      animation: invite-glow-rise linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 100%;
    }
    @keyframes invite-bar-draw-x {
      from { clip-path: inset(0 100% 0 0); }
      to   { clip-path: inset(0 0     0 0); }
    }
    @keyframes invite-bar-draw {
      from { clip-path: inset(0 0 100% 0); }
      to   { clip-path: inset(0 0 0   0); }
    }
    @keyframes invite-hairline-extend {
      from { transform: scaleX(0); }
      to   { transform: scaleX(1); }
    }
    @keyframes invite-glow-rise {
      from { opacity: 0; transform: translateY(14px); }
      to   { opacity: .55; transform: none; }
    }
  }
}

/* -------------------------------------------------- Signature 3 — parallax bands.
   Two full-bleed dark bands drift against the scroll at different rates,
   so the city and the gate move past the reader as they descend the page.
   Pure CSS scroll-driven (animation-timeline: view()), no JS, no new
   network. Both bands keep their overlay/legibility gradient; only the
   media layer translates, and its translate is capped so the image never
   exposes a gap at its edges.

   - .photoband (Tokyo + Fuji): the photo drifts slower than scroll, the
     classic "city receding" parallax. Range covers entry through exit so
     the drift is continuous across the whole time the band is on screen.
   - .hero: the video + sun drift faster than scroll on the way out,
     so the hero feels like it lifts away as the reader descends. */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .photoband__img {
      animation: parallax-photoband linear both;
      animation-timeline: view();
      animation-range: entry-crossing exit-crossing;
    }
    @keyframes parallax-photoband {
      from { transform: translateY(-6%); }
      to   { transform: translateY(6%); }
    }
    .hero__video {
      animation: parallax-hero linear both;
      animation-timeline: view();
      animation-range: exit 0% exit 100%;
    }
    @keyframes parallax-hero {
      from { transform: translateY(0); }
      to   { transform: translateY(12%); }
    }
  }
}

/* -------------------------------------------------- Dial 1 — the rising sun wakes up.
   DESIGN.md §6 permits exactly one auto-playing motion: "the sun-glow
   behind the hero easing up on load." A 14s opacity breath on .hero__sun
   makes the hero feel alive on first paint. The sun also rotates once per
   six breaths (84s) — far below perceptible rotation speed, but the rings
   shift over a long reading session so the hero never fully settles.

   The brief's .32/.42 describe the gradient's center red alpha, not the
   pseudo's opacity. We breathe the layer 1 ↔ .6 so current brightness is
   the peak; the dip is the breath. */
@media (prefers-reduced-motion: no-preference) {
  .hero__sun {
    animation: hero-sun-breathe 14s ease-in-out infinite;
  }
  .hero__rings {
    animation: hero-sun-rotate 84s linear infinite;
    transform-origin: 50% 50%;
  }
  @keyframes hero-sun-breathe {
    0%, 100% { opacity: 1; }
    50%      { opacity: .6; }
  }
  @keyframes hero-sun-rotate {
    to { transform: rotate(360deg); }
  }
}

/* -------------------------------------------------- Responsive */

/* Intermediate — large tablet / small desktop. With the wider 1280px page,
   4-column grids get cramped between 900px and 1100px; collapse the dense
   ones earlier so the layout breathes on more form factors. */
@media (max-width: 1100px) {
  .tickets { grid-template-columns: repeat(2, 1fr); }
  .members__grid { grid-template-columns: repeat(3, 1fr); }
  .dayshape { grid-template-columns: repeat(2, 1fr); }
  .dayshape__item:nth-child(2) { border-right: 0; }
  .dayshape__item:nth-child(3) { border-right: 1px solid var(--line); }
  .dayshape__item:nth-child(4) { border-right: 0; }
}

@media (max-width: 900px) {
  .section { padding: 72px 0; }
  .wrap { padding: 0 28px; }
  .hero__grid { grid-template-columns: 1fr; gap: 40px; }
  .hero__crest { justify-self: start; max-width: 100%; }
  .invite__grid { grid-template-columns: 1fr; gap: 32px; }
  /* .invite__seal is column-flex (Signature 2 stacks the hairline under
     the torii), so left-align the stack at mobile the way the old
     row-flex justify-content:flex-start did on desktop. */
  .invite__seal { align-items: flex-start; }
  .sov-grid { grid-template-columns: 1fr; }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .keynotes { grid-template-columns: repeat(2, 1fr); gap: 22px; max-width: none; }
  .committee__grid { grid-template-columns: 1fr; gap: 18px; }
  .committee__roster { grid-template-columns: repeat(2, 1fr); }
  .chairs { grid-template-columns: 1fr; gap: 22px; }
  .usecases__grid { grid-template-columns: repeat(2, 1fr); }
  .moment-grid { grid-template-columns: 1fr; }
  .wwh { padding: 28px; }
  .wwh__grid { grid-template-columns: 1fr; gap: 24px; }
  .dayshape { grid-template-columns: repeat(2, 1fr); }
  .dayshape__item:nth-child(2) { border-right: 0; }
  .members__grid { grid-template-columns: repeat(3, 1fr); }
  .tapestry { max-width: 100%; }
  .venue__grid { grid-template-columns: 1fr; gap: 32px; }
  .footer__top { grid-template-columns: 1fr; gap: 28px; }
  .masthead__nav { display: none; }
  .nav-toggle {
    display: inline-flex;
    background: none;
    border: 0;
    color: var(--ink);
    font-family: 'Archivo', sans-serif;
    font-size: .72rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    cursor: pointer;
    padding: 8px 0;
  }
  /* Keep the EN/日本語 toggle visible on mobile so JA users on phones can
     still switch languages — per Q10 B. The masthead flex wrap handles
     the smaller footprint. */
  .lang-toggle [data-lang="ja"] { padding-left: 2px; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { padding: 0 22px; }
  .cards-grid { grid-template-columns: 1fr; }
  .keynotes { grid-template-columns: 1fr; }
  .keynote-card { padding: 36px 26px 28px; }
  .tickets { grid-template-columns: 1fr; }
  .btn { width: 100%; }
  .btn-row { flex-direction: column; align-items: stretch; }
  .masthead .wrap { flex-direction: row; }
  .committee__roster { grid-template-columns: 1fr; }
  .usecases__grid { grid-template-columns: 1fr; }
  .members__grid { grid-template-columns: repeat(2, 1fr); }
  .dayshape { grid-template-columns: 1fr; }
  .dayshape__item { border-right: 0; border-bottom: 1px solid var(--line); }
  .dayshape__item:last-child { border-bottom: 0; }
  .host-band { grid-template-columns: 1fr; gap: 24px; }
  .host-band__lineage { font-size: .66rem; letter-spacing: .18em; gap: 10px 8px; }
}

/* Print: clean institutional letterhead feel */
@media print {
  .page { box-shadow: none; }
  .hero, .section--ink { background: var(--paper) !important; color: var(--ink) !important; }
  .btn, .pill { display: none !important; }
}
