@import url("/fonts/fonts.css");

/* ---------- tokens ---------- */
:root {
  --bg: #0b1730;          /* navy ground */
  --surface: #12224a;     /* one tone step up */
  --surface-2: #1a2d5e;   /* two steps up */
  --ink: #eef1f6;         /* cool white */
  --muted: #b9c2d6;       /* secondary text, 9:1 on navy */
  --accent: #d6a84c;      /* brand gold: the action, the footer field */
  --accent-hi: #e7c27c;
  --on-accent: #0b1730;
  --wood: #6a4a2f;        /* the table in the seat plan */

  --display: clamp(46px, 11.6vw, 168px);
  --h2: clamp(40px, 6vw, 92px);
  --statement: clamp(22px, 2.2vw, 30px);
  --lead: 21px;
  --body: 18px;
  --small: 15px;

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --m: clamp(20px, 4vw, 56px);          /* the one pair of outer margins */
  --gap: clamp(112px, 13vw, 200px);     /* between sections */
  --ease: cubic-bezier(.2, .7, .1, 1);
  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 var(--body)/1.55 var(--sans);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .18em; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; margin: 0; font-optical-sizing: auto; }
h1 { font-size: var(--display); line-height: .92; letter-spacing: -.04em; }
h2 { font-size: var(--h2); line-height: .98; letter-spacing: -.035em; }
h3 { font-size: var(--statement); line-height: 1.15; letter-spacing: -.015em; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent); color: var(--on-accent); }
.wrap { padding-inline: var(--m); max-width: 1680px; margin-inline: auto; }
.section { padding-block: var(--gap) 0; }
.lead { font-size: var(--lead); line-height: 1.5; max-width: 38ch; }
.muted { color: var(--muted); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: var(--m); top: -60px; background: var(--accent); color: var(--on-accent); padding: 10px 16px; z-index: 20; }
.skip:focus { top: 12px; }

/* ---------- buttons and links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 26px;
  background: var(--accent); color: var(--on-accent);
  font: 600 var(--body)/1 var(--sans); text-decoration: none;
  transition: background-color .2s var(--ease), transform .12s var(--ease);
}
.btn:hover { background: var(--accent-hi); }
.btn:active { transform: scale(.97); transition-duration: .08s; }
.textlink { font-weight: 600; text-decoration: underline; text-decoration-color: var(--accent); transition: color .2s var(--ease); }
.textlink:hover { color: var(--accent-hi); }
.textlink:active { opacity: .7; }

/* ---------- header ---------- */
.site-header .bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 22px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font: 600 var(--body)/1.1 var(--serif); letter-spacing: -.01em; }
.brand img { width: 40px; height: 40px; border-radius: 50%; }
.nav { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 36px); }
.nav a { white-space: nowrap; }
.nav a:not(.btn) { text-decoration: none; color: var(--muted); font-weight: 500; transition: color .2s var(--ease); }
.nav a:not(.btn):hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav .btn { min-height: 44px; padding: 0 20px; font-size: var(--small); }
.menu { display: none; position: relative; }
.menu summary { list-style: none; cursor: pointer; font-weight: 600; padding: 10px 0; }
.menu summary::-webkit-details-marker { display: none; }
.menu[open] .menu-list { display: flex; }
.menu-list { display: none; flex-direction: column; gap: 4px; position: absolute; right: 0; top: 100%; z-index: 30; background: var(--surface-2); padding: 12px; min-width: 220px; box-shadow: 0 18px 40px rgba(0, 0, 0, .45); } /* taste-skill-ignore: real overlay menu */
.menu-list a { padding: 12px 10px; text-decoration: none; font-weight: 500; }
.menu-list a:active { background: var(--surface); }
@media (max-width: 900px) {
  .nav { display: none; }
  .menu { display: block; }
  .brand span { font-size: var(--small); }
}

/* ---------- hero: the name, with the show's own table inside it ---------- */
.hero { display: flex; flex-direction: column; justify-content: center; padding-block: 4vh 9vh; }
.hero h1 { max-width: 100%; }
@media (min-width: 1000px) { .hero { min-height: calc(86svh - 92px); } }
.hero h1 .line { display: block; white-space: nowrap; }
.slot {
  display: inline-block; vertical-align: baseline;
  height: .7em; width: 2.35em; margin-left: .12em;
  overflow: hidden; background: var(--surface);
  animation: shutter 1.1s var(--ease) .15s both;
}
.slot video, .slot img { width: 100%; height: 100%; object-fit: cover; animation: settle 1.4s var(--ease) .15s both; }
.hero-foot { display: flex; align-items: end; justify-content: space-between; gap: 32px 48px; flex-wrap: wrap; margin-top: clamp(40px, 6vh, 72px); }
.actions { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.hero-strip { display: none; }
@keyframes shutter { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes settle { from { transform: scale(1.12); } to { transform: scale(1); } }
@media (max-width: 760px) {
  .hero { min-height: auto; padding-block: 8vh 4vh; }
  .hero h1 .slot { display: none; }
  .hero-strip { display: block; aspect-ratio: 800 / 316; width: 100%; margin-top: 32px; overflow: hidden; animation: shutter 1.1s var(--ease) .15s both; }
  .hero-strip video { width: 100%; height: 100%; object-fit: cover; }
}

/* ---------- the room: the full picture behind the slot ---------- */

/* ---------- intro: one statement held while the scenes pass ---------- */
.intro { position: relative; height: 210svh; margin-top: var(--gap); }
.intro-pin { position: sticky; top: 0; height: 100svh; display: grid; place-items: center; z-index: 2; pointer-events: none; }
.intro-text { width: min(42vw, 680px); pointer-events: auto; }
.intro-text h2 { margin-bottom: 28px; }
.statement { font: 500 var(--statement)/1.25 var(--serif); letter-spacing: -.01em; }
.pass { position: absolute; z-index: 1; margin: 0; }
.pass img { width: 100%; }
.pass figcaption { margin-top: 10px; color: var(--muted); font-size: var(--small); }
.pass-1 { width: 24vw; left: var(--m); top: 14svh; }
.pass-2 { width: 26vw; right: var(--m); top: 74svh; }
.pass-3 { width: 18vw; left: calc(var(--m) + 4vw); top: 136svh; }
@media (max-width: 900px) {
  .intro { height: auto; }
  .intro-pin { position: static; height: auto; display: block; padding-inline: var(--m); }
  .intro-text { width: 100%; }
  .intro-text h2 { margin-bottom: 20px; }
  .pass { position: static; margin-top: 48px; }
  .pass-1 { width: 66%; margin-left: var(--m); }
  .pass-2 { width: 78%; margin-left: auto; margin-right: var(--m); }
  .pass-3 { width: 54%; margin-left: var(--m); }
}

/* ---------- pull up a chair (the live thing) ---------- */
.seats { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 96px); align-items: start; margin-top: 48px; }
.seats-intro { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 24px 48px; align-items: end; }
.plan { margin: 0; padding: 0; border: 0; min-inline-size: 0; position: relative; aspect-ratio: 16 / 11; background: var(--surface); --chair: clamp(26px, 3.2vw, 46px); }
.plan-table { position: absolute; left: 21%; right: 21%; top: 37%; bottom: 37%; background: var(--wood); }
.plan-table::after { content: ""; position: absolute; left: 44%; width: 12%; top: 30%; bottom: 30%; background: rgba(238, 241, 246, .14); }
.deco, .seat .chair { display: block; width: var(--chair); height: var(--chair); background: var(--surface-2); }
.deco { position: absolute; transform: translateX(-50%); }
.deco.t1 { left: 30%; bottom: calc(63% + 8px); }
.deco.t3 { left: 56%; bottom: calc(63% + 8px); }
.deco.t4 { left: 69%; bottom: calc(63% + 8px); }
.deco.b1 { left: 30%; top: calc(63% + 8px); }
.deco.b2 { left: 43%; top: calc(63% + 8px); }
.deco.b4 { left: 69%; top: calc(63% + 8px); }
.deco.head { left: calc(79% + 8px); top: 50%; transform: translateY(-50%); }
.seat { position: absolute; display: flex; flex-direction: column; align-items: center; gap: 8px; cursor: pointer; font-weight: 600; font-size: var(--small); line-height: 1.2; text-align: center; white-space: nowrap; }
.seat input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seat .chair { transition: background-color .25s var(--ease), transform .2s var(--ease); }
.seat:hover .chair { background: #2a4180; }
.seat:active .chair { transform: scale(.92); }
.seat input:checked ~ .chair { background: var(--accent); }
.seat input:checked ~ .name { color: var(--accent-hi); }
.seat input:focus-visible ~ .chair { outline: 3px solid var(--ink); outline-offset: 3px; }
.seat-a { right: calc(79% + 8px); top: 50%; transform: translateY(calc(-1 * var(--chair) / 2)); }
.seat-b { left: 43%; bottom: calc(63% + 8px); transform: translateX(-50%); flex-direction: column-reverse; }
.seat-c { left: 56%; top: calc(63% + 8px); transform: translateX(-50%); }
@media (max-width: 900px) { .plan { aspect-ratio: 16 / 10; } }
.seat-panel { display: block; }
.seat-panel + .seat-panel { margin-top: 64px; }
@supports selector(:has(*)) {
  .seat-panel { display: none; }
  .seats:has(#seat-architect:checked) .panel-architect,
  .seats:has(#seat-cto:checked) .panel-cto,
  .seats:has(#seat-business:checked) .panel-business { display: block; animation: panel-in .45s var(--ease) both; }
  .seat-panel + .seat-panel { margin-top: 0; }
}
@keyframes panel-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.seat-panel h3 { margin-bottom: 8px; }
.seat-panel .ask { color: var(--muted); margin-bottom: 28px; max-width: 46ch; }
.picks { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.pick { display: grid; grid-template-columns: 168px minmax(0, 1fr); gap: 20px; align-items: center; text-decoration: none; }
.pick img { aspect-ratio: 16 / 9; object-fit: cover; transition: transform .35s var(--ease); }
.pick:hover img { transform: scale(1.04); }
.pick:active img { transform: scale(.98); }
.pick span { font: 600 var(--body)/1.3 var(--serif); }
.pick:hover span { text-decoration: underline; text-decoration-color: var(--accent); }
.seat-panel .textlink { display: inline-block; margin-top: 28px; }
@media (max-width: 900px) {
  .seats, .seats-intro { grid-template-columns: 1fr; }
  .pick { grid-template-columns: 128px minmax(0, 1fr); gap: 16px; }
}

/* ---------- episodes: type with the latest picture in front ---------- */
.stack { position: relative; overflow: hidden; padding-bottom: 8px; }
.stack h2 { font-size: var(--display); line-height: .9; letter-spacing: -.045em; }
.stack h2 .soft { display: block; color: var(--muted); }
.stack h2 .full { display: block; }
.stack-object { position: absolute; right: var(--m); top: 2%; width: min(40vw, 640px); transform: rotate(3deg); }
.stack-object img { width: 100%; }
.facts { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); margin-top: 48px; }
.facts > div { grid-column: 7 / 13; display: grid; gap: 18px; }
@media (max-width: 900px) {
  .stack-object { position: relative; right: auto; top: auto; width: 82%; margin: -6vw 0 0 auto; transform: rotate(3deg); }
  .facts > div { grid-column: 1 / -1; }
}
.ep-list { list-style: none; margin: clamp(64px, 8vw, 112px) 0 0; padding: 0; display: grid; gap: clamp(40px, 5vw, 64px); }
.ep-row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(20px, 4vw, 64px); align-items: center; }
.ep-row .thumb { display: block; overflow: hidden; }
.ep-row .thumb img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; transition: transform .5s var(--ease); }
.ep-row .thumb:hover img { transform: scale(1.03); }
.ep-row h3 { font-size: var(--statement); line-height: 1.12; letter-spacing: -.02em; margin-bottom: 14px; }
.ep-row h3 a { text-decoration: none; }
.ep-row h3 a:hover { text-decoration: underline; text-decoration-color: var(--accent); }
.ep-row p { color: var(--ink); max-width: 56ch; margin-bottom: 16px; }
@media (max-width: 760px) { .ep-row { grid-template-columns: 1fr; } }

/* ---------- case studies as one paragraph of names ---------- */
.names-head { margin-bottom: 32px; }
.names { font: 500 var(--statement)/1.5 var(--serif); letter-spacing: -.01em; }
.names a { color: var(--muted); text-decoration: none; transition: color .2s var(--ease); }
.names a:hover, .names a:focus-visible { color: var(--ink); }
.names .frame { display: inline-block; width: 1.9em; height: 1.07em; margin: 0 .18em; vertical-align: -.02em; overflow: hidden; transform-origin: left center; transition: transform .35s var(--ease); }
.names .frame img { width: 100%; height: 100%; object-fit: cover; }
.names a:hover .frame { transform: scale(1.5); }
.names-note { margin-top: 28px; color: var(--muted); font-size: var(--small); }
@media (max-width: 760px) {
  .names { font-size: var(--body); line-height: 1.7; }
  .names a { color: var(--ink); text-decoration: underline; text-decoration-color: rgba(214, 168, 76, .6); }
  .names a:nth-of-type(n+4) .frame { display: none; }
}

/* ---------- about: the mark as drop cap ---------- */
.about { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 10fr); gap: 24px clamp(24px, 4vw, 64px); }
.about h2 { grid-column: 1 / -1; margin-bottom: 24px; }
.about-facts { display: grid; gap: 20px; align-content: start; font-size: var(--small); color: var(--muted); }
.about-facts strong { display: block; color: var(--ink); font-size: var(--body); }
.about-text p { font: 400 var(--statement)/1.32 var(--serif); letter-spacing: -.01em; }
.about-text p + p { margin-top: 1em; color: var(--muted); }
.about-text .dropcap { float: left; width: 3.6em; height: 3.6em; margin: .2em .55em 0 0; }
@media (max-width: 760px) {
  .about { grid-template-columns: 1fr; }
  .about-facts { order: 3; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .about-text .dropcap { width: 4.6em; height: 4.6em; }
}

/* ---------- contact band ---------- */
.contact { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px 24px; align-items: start; padding-bottom: clamp(96px, 10vw, 140px); }
.contact-say { grid-column: 1 / 7; }
.contact-say h2 { margin-bottom: 24px; }
.contact-say p { font: 500 var(--statement)/1.25 var(--serif); }
.contact-pic { grid-column: 8 / 10; }
.contact-pic img { aspect-ratio: 1; object-fit: cover; width: 100%; }
.contact-how { grid-column: 10 / 13; display: grid; gap: 14px; }
.contact-how .q { font-weight: 600; }
.contact-how .where { font-size: var(--small); color: var(--muted); margin-top: 6px; }
.contact-how a { overflow-wrap: break-word; }
@media (max-width: 900px) {
  .contact-say { grid-column: 1 / -1; }
  .contact-pic { grid-column: 1 / 5; }
  .contact-how { grid-column: 5 / -1; }
}

/* ---------- footer: the address is the headline ---------- */
.site-footer > .wrap { width: 100%; }
.site-footer { background: var(--accent); color: var(--on-accent); min-height: 82svh; display: flex; flex-direction: column; justify-content: space-between; padding-block: 40px 28px; }
.site-footer a { color: var(--on-accent); }
.foot-top { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; font-size: var(--small); }
.foot-top p { max-width: 46ch; }
.foot-mail { display: block; margin-block: 12vh 7vh; font: 600 clamp(34px, 7.6vw, 132px)/.95 var(--serif); letter-spacing: -.04em; text-decoration: none; overflow-wrap: anywhere; }
.foot-mail:hover { text-decoration: underline; text-decoration-thickness: .06em; }
.foot-meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 24px; font-size: var(--small); }
.foot-meta .links { display: flex; gap: 18px; flex-wrap: wrap; }
.foot-meta .credit { text-align: center; }
.foot-meta .place { text-align: right; }
@media (max-width: 760px) {
  .site-footer { min-height: 70svh; }
  .foot-mail { font-size: clamp(30px, 10.4vw, 64px); }
  .foot-meta { grid-template-columns: 1fr; }
  .foot-meta .credit, .foot-meta .place { text-align: left; }
}

/* ---------- inner pages ---------- */
.page-head { padding-top: clamp(48px, 8vw, 120px); display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px 64px; align-items: end; }
.page-head h1 { font-size: var(--display); }
@media (max-width: 900px) { .page-head { grid-template-columns: 1fr; } }
.case-list { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(48px, 6vw, 80px); }
.case-row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(20px, 4vw, 64px); align-items: center; }
.case-row .thumb { display: block; overflow: hidden; }
.case-row .thumb img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; transition: transform .5s var(--ease); }
.case-row .thumb:hover img { transform: scale(1.03); }
.case-row h2 { font-size: var(--statement); margin-bottom: 12px; }
.case-row h2 a { text-decoration: none; }
.case-row h2 a:hover { text-decoration: underline; text-decoration-color: var(--accent); }
.case-row p { margin-bottom: 16px; max-width: 56ch; }
@media (max-width: 760px) { .case-row { grid-template-columns: 1fr; } }

.article { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: 32px clamp(24px, 5vw, 80px); padding-top: clamp(40px, 6vw, 96px); }
.article-side { font-size: var(--small); color: var(--muted); display: grid; gap: 18px; align-content: start; }
.article-side a { color: var(--ink); }
.article-main h1 { font-size: var(--h2); margin-bottom: 24px; }
.article-main .lead { color: var(--muted); margin-bottom: 40px; }
.prose { max-width: 66ch; }
.prose h2 { font-size: var(--statement); margin: 1.6em 0 .5em; }
.prose p, .prose li { font-size: var(--body); line-height: 1.65; }
.prose p + p { margin-top: 1em; }
.prose ul { padding-left: 1.2em; margin: .6em 0 0; }
.prose li { margin-bottom: .55em; }
.prose li::marker { color: var(--accent); }
.prose strong { font-weight: 600; }
.watch { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px 40px; align-items: center; margin-top: 72px; background: var(--surface); padding: clamp(20px, 3vw, 36px); }
.watch h2 { font-size: var(--statement); margin-bottom: 20px; }
.watch p { color: var(--muted); margin-bottom: 8px; font-size: var(--small); }
@media (max-width: 900px) { .article, .watch { grid-template-columns: 1fr; } .article-side { order: 2; } }

.offers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px clamp(24px, 4vw, 64px); margin-top: 24px; }
.offers h2 { font-size: var(--statement); margin-bottom: 10px; }
.offers p { color: var(--muted); }
@media (max-width: 900px) { .offers { grid-template-columns: 1fr; } }
.mailbox { margin-top: clamp(64px, 8vw, 120px); background: var(--surface); padding: clamp(28px, 5vw, 72px); display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px; align-items: center; }
.mailbox h2 { font-size: var(--statement); overflow-wrap: anywhere; }
.mailbox p { color: var(--muted); margin-top: 16px; }
.mailbox img { aspect-ratio: 1; object-fit: cover; width: 100%; max-width: 360px; justify-self: end; }
@media (max-width: 900px) { .mailbox { grid-template-columns: 1fr; } .mailbox img { justify-self: start; max-width: 200px; } }
.notfound { min-height: 60svh; padding-top: clamp(48px, 10vw, 160px); }
.notfound h1 { margin-bottom: 28px; }

/* ---------- inner page extras ---------- */
.scene { margin: 0 0 56px; }
.scene img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; animation: shutter 1.1s var(--ease) .1s both; }
.scene figcaption { margin-top: 10px; color: var(--muted); font-size: var(--small); }
.more h2 { font-size: var(--statement); margin-bottom: 28px; }
.more-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.more-list a { display: grid; gap: 12px; text-decoration: none; font: 600 var(--body)/1.3 var(--serif); }
.more-list img { aspect-ratio: 16 / 9; object-fit: cover; transition: transform .4s var(--ease); }
.more-list a:hover img { transform: scale(1.03); }
.more-list a:hover span { text-decoration: underline; text-decoration-color: var(--accent); }
@media (max-width: 760px) { .more-list { grid-template-columns: 1fr; } }
.offers img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; margin-bottom: 22px; animation: shutter 1.1s var(--ease) .2s both; }
.head-clip { aspect-ratio: 800 / 316; overflow: hidden; margin-bottom: 28px; animation: shutter 1.1s var(--ease) .15s both; }
.head-clip video { width: 100%; height: 100%; object-fit: cover; }
.case-row .topic { margin: 0 0 10px; color: var(--muted); font-size: var(--small); }

/* ---------- motion: load-time entrance for the first screen ---------- */
@keyframes rise-in { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
.page-head > *, .offers > div, .hero-foot > *, .article-main > h1, .article-main > .lead, .article-side > * { animation: rise-in .8s var(--ease) both; }
.page-head > :nth-child(2), .offers > div:nth-child(2), .hero-foot > :nth-child(2), .article-main > .lead, .article-side > :nth-child(2) { animation-delay: .1s; }
.offers > div:nth-child(3), .article-side > :nth-child(3) { animation-delay: .2s; }

/* ---------- motion: entrances (only when the script is running) ---------- */
.js .pre { opacity: 0; transform: translateY(26px); }
.js .rise { opacity: 1; transform: none; transition: opacity .7s var(--ease), transform .8s var(--ease); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
  .js .pre { opacity: 1; transform: none; }
  .stack-object { transform: none; }
}
@media (prefers-contrast: more) {
  :root { --muted: #e3e7f0; }
}

/* =================== motion layer v2 =================== */
:root { --ease-expo: cubic-bezier(.16, 1, .3, 1); --ease-in-out: cubic-bezier(.76, 0, .24, 1); }

/* hero: each line rises from behind its own baseline */
.hero h1 .line { overflow: clip; padding-bottom: .1em; margin-bottom: -.1em; }
.hero h1 .li { display: block; }
@media (prefers-reduced-motion: no-preference) {
  .js .hero h1 .li { transform: translateY(108%); animation: line-up 1s var(--ease-expo) forwards; }
  .js .hero h1 .line:nth-child(2) .li { animation-delay: .12s; }
  .js .hero .hero-foot > * { animation-delay: .45s; }
  .js .hero .hero-foot > :nth-child(2) { animation-delay: .55s; }
}
@keyframes line-up { to { transform: none; } }

/* topics band: one slow, pausable marquee */
.topics { display: flex; align-items: center; background: var(--surface); margin-top: clamp(40px, 6vw, 80px); }
.marquee-window { flex: 1; min-width: 0; overflow: hidden; }
.marquee { display: flex; width: max-content; }
.track { display: flex; margin: 0; padding: 0; list-style: none; }
.track li { font: 600 var(--lead)/1 var(--serif); letter-spacing: -.01em; padding: 26px 0; white-space: nowrap; }
.track li::after { content: "·"; color: var(--accent); margin: 0 .9em; }
.marquee-toggle { flex: none; margin: 0 var(--m) 0 16px; background: var(--bg); color: var(--ink); border: 0; font: 600 var(--small)/1 var(--sans); padding: 12px 16px; cursor: pointer; }
.marquee-toggle:active { transform: scale(.96); }
@media (prefers-reduced-motion: no-preference) {
  .marquee { animation: marquee 60s linear infinite; }
  .topics:hover .marquee, .topics.paused .marquee, .topics:focus-within .marquee { animation-play-state: paused; }
}
@media (prefers-reduced-motion: reduce) {
  .marquee { width: auto; padding: 0 var(--m); }
  .track[aria-hidden] { display: none; }
  .track { flex-wrap: wrap; }
  .marquee-toggle { display: none; }
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* opening window: the boardroom opens to the whole screen as you scroll */
.opening-stage { overflow: clip; }
.opening-stage img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) and (min-width: 761px) {
    .opening { height: 190svh; view-timeline-name: --opening; }
    .opening-stage { position: sticky; top: 0; height: 100svh; animation: opening-window linear both; animation-timeline: --opening; animation-range: contain 0% contain 70%; }
    .opening-stage img { height: 100%; aspect-ratio: auto; animation: opening-settle linear both; animation-timeline: --opening; animation-range: contain 0% contain 70%; }
  }
}
@keyframes opening-window { from { clip-path: inset(22% 26%); } to { clip-path: inset(0); } }
@keyframes opening-settle { from { transform: scale(1.18); } to { transform: none; } }

/* the latest episode leans back as it scrolls past */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) and (min-width: 901px) {
    .stack-object { animation: lean linear both; animation-timeline: view(); animation-range: entry 0% exit 60%; }
  }
}
@keyframes lean { from { transform: rotate(9deg) translateY(12%); } to { transform: rotate(1deg) translateY(-6%); } }

/* headings whose lines rise as they arrive (split by site.js) */
[data-lines] .ln { display: block; overflow: clip; padding-bottom: .12em; margin-bottom: -.12em; }
[data-lines] .ln > span { display: block; }
@media (prefers-reduced-motion: no-preference) {
  .is-split .ln > span { transform: translateY(110%); }
  .is-split.is-in .ln > span { transform: none; transition: transform .9s var(--ease-expo); }
  .is-split.is-in .ln:nth-child(2) > span { transition-delay: .09s; }
}

/* figures that roll up */
.figures { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin-top: clamp(40px, 5vw, 72px); }
.figures > div { display: grid; gap: 8px; color: var(--muted); }
.fig { display: block; font: 600 var(--h2)/1 var(--serif); color: var(--ink); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
@media (max-width: 760px) { .figures { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* pictures open as they arrive */
@media (prefers-reduced-motion: no-preference) {
  .js .pre-open { clip-path: inset(0 0 100% 0); }
  .js .opened { clip-path: inset(0); transition: clip-path 1.1s var(--ease-in-out); }
  .js .opened img { animation: settle 1.4s var(--ease-expo) both; }
}

/* ink fill on one statement */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .is-filling > span { color: color-mix(in oklab, var(--ink) 42%, transparent); animation: ink-fill linear both; animation-timeline: view(); animation-range: cover 18% cover 42%; }
  }
}
@keyframes ink-fill { to { color: var(--ink); } }

/* seat picked: the chair settles into place */
@media (prefers-reduced-motion: no-preference) {
  .seat input:checked ~ .chair { animation: sit .5s var(--ease-expo); }
}
@keyframes sit { from { transform: scale(.7); } to { transform: none; } }

/* footer call to action */
.foot-mail { display: inline-flex; align-items: baseline; gap: .3em; }
.foot-mail .arrow { transition: transform .35s var(--ease-expo); }
.foot-mail:hover .arrow { transform: translateX(.18em); }

/* guides on the home page: one large cover, two beside it */
.guides-home { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px clamp(32px, 5vw, 80px); align-items: start; }
.guides-lead h2 { margin-bottom: 24px; }
.guides-lead .lead { margin-bottom: 20px; }
.covers { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 20px; align-items: end; }
.covers a { display: grid; gap: 14px; text-decoration: none; font: 600 var(--body)/1.3 var(--serif); }
.covers img { width: 100%; aspect-ratio: 600 / 849; object-fit: cover; transition: transform .45s var(--ease-expo); }
.covers a:hover img { transform: translateY(-8px); }
.covers a:active img { transform: translateY(-2px) scale(.99); }
.covers a:hover span { text-decoration: underline; text-decoration-color: var(--accent); }
@media (max-width: 900px) { .guides-home { grid-template-columns: 1fr; } .covers { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; } .covers a { font-size: var(--small); } }

.guide-list { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(56px, 7vw, 96px); }
.guide-row { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(24px, 5vw, 80px); align-items: center; }
.guide-row .cover { display: block; overflow: hidden; max-width: 380px; }
.guide-row .cover img { width: 100%; aspect-ratio: 600 / 849; }
.guide-row h2 { font-size: var(--statement); margin-bottom: 14px; }
.guide-row .topic { color: var(--muted); font-size: var(--small); margin-bottom: 14px; }
.guide-row p { max-width: 52ch; }
.guide-row .actions { margin-top: 24px; display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
@media (max-width: 760px) { .guide-row { grid-template-columns: 1fr; } .guide-row .cover { max-width: 240px; } }

/* contact form */
.contact-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 24px; }
.contact-form h2 { grid-column: 1 / -1; font-size: var(--statement); }
.field { display: grid; gap: 8px; }
.field.wide, .contact-form .cf-turnstile, .contact-form .actions, .contact-form .small-print { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: var(--small); }
.opt { color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea { font: 400 var(--body)/1.4 var(--sans); color: var(--ink); background: var(--bg); border: 2px solid var(--surface-2); padding: 12px 14px; width: 100%; transition: border-color .18s ease; } /* taste-skill-ignore: real form fields */
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.field textarea { resize: vertical; min-height: 150px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; } /* taste-skill-ignore: hidden spam trap, not a rule */
.small-print { color: var(--muted); font-size: var(--small); }
.contact-form .actions { margin: 4px 0 0; }
.contact-form button { border: 0; cursor: pointer; }
.mailbox { position: relative; align-items: start; }
@media (max-width: 760px) { .contact-form { grid-template-columns: 1fr; } }
.notfound .actions { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; margin-top: 32px; }
/* covers sit on a lighter tone so the navy documents read as objects */
.covers img, .guide-row .cover img { background: var(--surface-2); padding: clamp(6px, .8vw, 12px); }
