/* Base: reset, grounds, type roles, buttons and links, nav, phone menu, footer.
   Motion system (tokens.css): one curve, three durations, shared with the GSAP layer in js/home.js.
     --dur-hover  150ms  anything you trigger: hover, press, tap, closing
     --dur-reveal 300ms  UI state: the header change, the menu opening, the fronts cards, the slider rail
     --dur-enter  900ms  things entering as you scroll: sections, headline lines, photos
   Only transform and opacity animate. Hover effects only on fine pointers. Reduced motion = none at all. */

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: auto; }
body {
  font-family: var(--josefin); font-size: var(--fs-body); font-weight: 400; line-height: 1.6;
  color: var(--espresso); background: var(--paper);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility; font-kerning: normal;
}
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }
::selection { background: var(--gold); color: var(--espresso); }

/* grounds: espresso deep always carries the grain; light grounds stay clean */
.dark { background: var(--deep) var(--grain) repeat; color: var(--whisper); --focus: var(--gold); }
.whisper { background: var(--whisper); }
.paper { background: var(--paper); }

.wrap { padding-inline: max(var(--m), calc((100% - var(--content)) / 2)); }
.wrap-wide { padding-inline: max(var(--m), calc((100% - var(--content-wide)) / 2)); }

/* type roles */
.meta { font-family: var(--din); font-weight: 700; font-size: var(--fs-meta); line-height: 1.25; letter-spacing: .16em; text-transform: uppercase; color: var(--bronze); }
.dark .meta { color: var(--gold); }
.h2 { font-weight: 600; font-size: var(--fs-h2); line-height: 1.12; letter-spacing: -.004em; text-wrap: balance; }
.h2__s { display: block; text-wrap: balance; }   /* a headline made of short sentences: each one starts its own line */
.h3 { font-family: var(--din); font-weight: 700; font-size: var(--fs-h3); line-height: 1.05; letter-spacing: .03em; text-transform: uppercase; }
.lead { font-size: var(--fs-lead); line-height: 1.5; text-wrap: balance; }   /* leads run 2-6 lines: even lines, no one-word tail */
.body { font-size: var(--fs-body); line-height: 1.6; text-wrap: pretty; }
.soft { color: var(--ink-75); }
.dark .lead, .dark .body { color: var(--whisper-86); }
.punch { font-family: var(--anton); font-weight: 400; line-height: .95; letter-spacing: .004em; text-transform: uppercase; }
.g { color: var(--gold); }
/* the section signature: a short gold rule before every section's label, hero included (brand book: the gold hairline) */
.kicker { display: flex; align-items: center; gap: 18px; }
.kicker::before { content: ""; flex: none; width: 44px; height: 1.5px; background: var(--gold); }
@media (max-width: 767px) { .kicker { gap: 12px; } .kicker::before { width: 24px; } }
.nobr { white-space: nowrap; }
.m-only { display: none; }
@media (max-width: 767px) { .m-only { display: inline; } .d-only { display: none; } }
[hidden] { display: none !important; }
.nw { white-space: nowrap; }                       /* "five-minute": never split at the hyphen */   /* components that set display (.btn, .link) still hide */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* focus: espresso ring on light, gold ring on dark */
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.skip { position: fixed; left: 16px; top: 12px; z-index: calc(var(--z-overlay) + 1); padding: 14px 18px 11px; background: var(--gold); color: var(--espresso);
        font-family: var(--din); font-weight: 700; font-size: 16px; letter-spacing: .14em; text-transform: uppercase; transform: translateY(-160%);
        transition: opacity var(--dur-hover) var(--ease-out); }
.skip:focus-visible { transform: none; }
.skip:active { opacity: .8; }

/* ---------- buttons: one gold button per screen, everything else a ghost or a text link ---------- */
.btn {
  position: relative; isolation: isolate; display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  font-family: var(--din); font-weight: 700; font-size: 18px; line-height: 1; letter-spacing: .14em; text-transform: uppercase;
  background: var(--gold); color: var(--espresso); padding: 21px 30px 17px; overflow: hidden;
  transition: transform var(--dur-hover) var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
.btn::before { /* hover: the lighter gold fades in over the button (no sideways sweep) */
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--gold-75);
  opacity: 0; transition: opacity var(--dur-hover) var(--ease-out);
}
.btn:active { transform: scale(.97); }
.dark .btn:focus-visible { outline-color: var(--gold); }
.btn.ghost { background: transparent; color: inherit; box-shadow: inset 0 0 0 1.5px currentColor; }

/* text links: a quiet underline; hover lays the gold line over it */
.link {
  position: relative; display: inline-flex; align-items: center; gap: .5em;
  font-family: var(--din); font-weight: 700; font-size: 18px; line-height: 1; letter-spacing: .14em; text-transform: uppercase;
  padding: 10px 0 9px; transition: transform var(--dur-hover) var(--ease-out); -webkit-tap-highlight-color: transparent;
}
.link::before, .link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; }
.link::before { background: currentColor; opacity: .55; }
.link::after { background: var(--gold); opacity: 0; transition: opacity var(--dur-hover) var(--ease-out); }
.link:active { transform: scale(.97); }
.link .arw { display: inline-block; transition: transform var(--dur-hover) var(--ease-out); }

@media (hover: hover) and (pointer: fine) {
  .btn:hover::before { opacity: 1; }
  .link:hover::after { opacity: 1; }
  .link:hover .arw { transform: translateY(3px); }
  .skip:hover { opacity: .88; }
}

/* ---------- header (floating layer) ----------
   Transparent over the hero. Past it: the grain bar fades in and the bar gets shorter (104 -> 80,
   72 -> 60 on phones). The height change is done with transforms only: the background scales from the
   top and the row moves up by half the difference, so the layout never changes. */
.nav {
  position: fixed; inset: 0 0 auto; z-index: var(--z-float); color: var(--whisper); --focus: var(--gold);
  --nav-scale: .7692; --nav-shift: -12px;      /* 80 / 104, (80 - 104) / 2 */
  pointer-events: none;                        /* the box keeps its full height; only its controls take clicks */
}
.nav::before {
  content: ""; position: absolute; inset: 0; background: var(--deep) var(--grain) repeat; box-shadow: var(--shadow-float);
  transform-origin: 50% 0; opacity: 0;
  transition: opacity var(--dur-reveal) var(--ease-out), transform var(--dur-reveal) var(--ease-out);
}
.nav.is-solid::before { opacity: 1; transform: scaleY(var(--nav-scale)); }
.nav__bar { position: relative; height: 104px; display: flex; align-items: center; gap: 40px; transition: transform var(--dur-reveal) var(--ease-out); }
.nav.is-solid .nav__bar { transform: translateY(var(--nav-shift)); }
.nav__bar > * { pointer-events: auto; }
.nav__bar::after { /* the hairline under the nav on the hero (brand book p. 20) */
  content: ""; position: absolute; bottom: 0; height: 1px; background: rgba(225, 221, 200, .22);
  inset-inline: max(var(--m), calc((100% - var(--content-wide)) / 2)); transition: opacity var(--dur-reveal) var(--ease-out);
}
.nav.is-solid .nav__bar::after { opacity: 0; }

.nav__logo { display: block; flex: none; padding: 8px 0; margin: -8px 0; transition: opacity var(--dur-hover) var(--ease-out), transform var(--dur-hover) var(--ease-out); }
.nav__logo img { height: 34px; width: auto; }
.nav__logo:active { transform: scale(.97); }
.nav__links { margin-left: auto; display: flex; align-items: center; gap: 40px; }
.nav__links a:not(.btn), .ftr__nav a {
  position: relative; font-family: var(--din); font-weight: 700; font-size: 16px; letter-spacing: .16em; text-transform: uppercase; padding: 10px 0 8px;
  transition: opacity var(--dur-hover) var(--ease-out);
}
.nav__links a:not(.btn)::after, .ftr__nav a::after {
  content: ""; position: absolute; left: 0; right: .16em; bottom: 2px; height: 1.5px; background: var(--gold);
  opacity: 0; transition: opacity var(--dur-hover) var(--ease-out);
}
.nav__links a:not(.btn):active, .ftr__nav a:active { opacity: .7; }

/* the nav button is a ghost while a gold "Apply for a seat" is on screen, gold once it isn't */
.nav__cta { font-size: 16px; padding: 16px 22px 13px; background: transparent; color: var(--whisper); box-shadow: inset 0 0 0 1.5px var(--whisper); }
.nav__cta::after { content: ""; position: absolute; inset: 0; z-index: -2; background: var(--gold); opacity: 0; transition: opacity var(--dur-hover) var(--ease-out); }
.nav__cta .l-gold { position: absolute; inset: 0; display: grid; place-items: center; padding-top: 3px; color: var(--espresso); opacity: 0; transition: opacity var(--dur-hover) var(--ease-out); }
.nav__cta .l-ghost { transition: opacity var(--dur-hover) var(--ease-out); }
.nav.is-gold .nav__cta::after, .nav.is-gold .nav__cta .l-gold { opacity: 1; }
.nav.is-gold .nav__cta .l-ghost { opacity: 0; }

.nav__burger { display: none; margin-left: auto; width: 48px; height: 48px; margin-right: -11px; place-items: center; transition: opacity var(--dur-hover) var(--ease-out), transform var(--dur-hover) var(--ease-out); }
.nav__burger:active { transform: scale(.94); }
.nav__burger i { position: relative; display: block; width: 26px; height: 14px; }
.nav__burger i::before, .nav__burger i::after, .nav__burger b { content: ""; position: absolute; left: 0; right: 0; height: 2px; background: currentColor; transition: transform var(--dur-hover) var(--ease-out), opacity var(--dur-hover) var(--ease-out); }
.nav__burger i::before { top: 0; }
.nav__burger b { top: 6px; }
.nav__burger i::after { top: 12px; }
.nav__burger[aria-expanded="true"] i::before { transform: translateY(6px) rotate(45deg); }
.nav__burger[aria-expanded="true"] b { opacity: 0; }
.nav__burger[aria-expanded="true"] i::after { transform: translateY(-6px) rotate(-45deg); }

@media (hover: hover) and (pointer: fine) {
  .nav__logo:hover, .ftr__logo:hover, .nav__burger:hover, .menu__close:hover { opacity: .75; }
  .nav__links a:not(.btn):hover::after, .ftr__nav a:hover::after { opacity: 1; }
  .nav__cta:hover::after, .nav__cta:hover .l-gold { opacity: 1; }      /* ghost: the gold fills in */
  .nav__cta:hover .l-ghost { opacity: 0; }
  .nav__cta:hover::before { opacity: 0; }
  .nav.is-gold .nav__cta:hover::before { opacity: 1; }                 /* gold: the lighter gold, like every button */
}

@media (max-width: 1023px) {
  .nav { --nav-scale: .8333; --nav-shift: -6px; }   /* 60 / 72 */
  .nav__bar { height: 72px; }
  .nav__bar::after { display: none; }
  .nav__logo img { height: 26px; }
  .nav__links { display: none; }
  .nav__burger { display: grid; }
}

/* ---------- phone menu (overlay layer): opens at the reveal duration, closes at the short one ---------- */
.menu {
  position: fixed; inset: 0; z-index: var(--z-overlay); display: flex; flex-direction: column; padding-top: 72px;
  opacity: 0; visibility: hidden; transition: opacity var(--dur-hover) var(--ease-out), visibility 0s linear var(--dur-hover);
}
.menu.is-open { opacity: 1; visibility: visible; transition: opacity var(--dur-reveal) var(--ease-out), visibility 0s; }
.menu__top { position: absolute; inset: 0 0 auto; height: 72px; display: flex; align-items: center; }
.menu__top img { height: 26px; width: auto; }
.menu__list { margin-top: 40px; border-top: 1px solid var(--line-dark); }
.menu__list li { border-bottom: 1px solid var(--line-dark); }
.menu__list a { display: block; padding: 20px 0 16px; font-weight: 600; font-size: 34px; line-height: 1.12; letter-spacing: -.004em;
                transform: translateY(var(--rise)); transition: transform var(--dur-reveal) var(--ease-out), opacity var(--dur-hover) var(--ease-out); }
.menu.is-open .menu__list a { transform: none; }
.menu__list a:active { opacity: .7; }
.menu__foot { margin-top: auto; padding-bottom: max(32px, env(safe-area-inset-bottom)); }
.menu__foot .btn { display: flex; width: 100%; }
.menu__close { margin-left: auto; width: 48px; height: 48px; margin-right: -11px; display: grid; place-items: center; transition: opacity var(--dur-hover) var(--ease-out), transform var(--dur-hover) var(--ease-out); }
.menu__close:active { transform: scale(.94); }
.menu__close i { position: relative; width: 22px; height: 22px; }
.menu__close i::before, .menu__close i::after { content: ""; position: absolute; left: -2px; right: -2px; top: 10px; height: 2px; background: currentColor; }
.menu__close i::before { transform: rotate(45deg); }
.menu__close i::after { transform: rotate(-45deg); }
@media (hover: hover) and (pointer: fine) { .menu__list a:hover { opacity: .7; } }
html.menu-open { overflow: hidden; }

/* ---------- footer ---------- */
.ftr { padding-top: clamp(64px, 40px + 4vw, 96px); padding-bottom: 56px; border-top: 1px solid rgba(225, 221, 200, .12); display: grid; grid-template-columns: 5fr 1fr 6fr; row-gap: 40px; }
.ftr__logo { display: inline-block; transition: opacity var(--dur-hover) var(--ease-out), transform var(--dur-hover) var(--ease-out); }
.ftr__logo:active { transform: scale(.97); }
.ftr__logo img { height: 40px; width: auto; }
.ftr__line { margin-top: 26px; font-size: var(--fs-small); color: rgba(225, 221, 200, .75); max-width: 420px; }
.ftr__nav { grid-column: 3; display: flex; flex-wrap: wrap; gap: 8px 40px; justify-content: flex-end; align-content: start; }
.ftr__small { grid-column: 1 / -1; margin-top: clamp(24px, 6vw, 88px); display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between;
              font-family: var(--din); font-weight: 700; font-size: 14px; letter-spacing: .14em; text-transform: uppercase; color: rgba(225, 221, 200, .62); }
@media (max-width: 899px) {
  .ftr { grid-template-columns: 1fr; }
  .ftr__nav { grid-column: 1; justify-content: flex-start; gap: 4px 28px; }
}

/* ---------- between pages: the page you leave dips into espresso, the next one rises in. The header stays put.
   Cross-document view transitions (same origin; browsers without them just navigate). Reduced motion: none. ---------- */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  .nav { view-transition-name: dd-nav; }
  ::view-transition { background: var(--deep) var(--grain) repeat; }
  ::view-transition-old(root) { animation: dd-page-out var(--dur-reveal) var(--ease-out) both; }
  ::view-transition-new(root) { animation: dd-page-in var(--dur-page) var(--ease-out) both; }
  ::view-transition-group(dd-nav) { animation-duration: var(--dur-reveal); animation-timing-function: var(--ease-out); }
}
@keyframes dd-page-out { to { opacity: 0; } }
@keyframes dd-page-in { from { opacity: 0; transform: translateY(var(--rise)); } }

/* ---------- reduced motion (and ?static=1): everything shows, nothing moves ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
.is-static *, .is-static *::before, .is-static *::after { transition: none !important; animation: none !important; }

/* ---------- the footer, every page (Pascal, 2026-11-18): plain. A flat espresso ground, the white logo, the
   sign-up, two lists, one small line. ---------- */
.ftp { background: var(--deep); border-top: 1px solid rgba(225, 221, 200, .14); }
.ftp__in { padding-top: clamp(56px, 36px + 3.4vw, 88px); padding-bottom: 32px; }
.ftp__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px clamp(32px, 5vw, 88px); }
.ftp__logo { display: inline-block; transition: opacity var(--dur-hover) var(--ease-out), transform var(--dur-hover) var(--ease-out); }
.ftp__logo:active { transform: scale(.97); }
.ftp__logo img { height: 38px; width: auto; }
.ftp__tag { margin-top: 20px; font-size: var(--fs-body); color: rgba(225, 221, 200, .75); }
.ftp__form { margin-top: 26px; max-width: 400px; }
.ftp__form fieldset { border: 0; display: flex; align-items: stretch; box-shadow: inset 0 0 0 1.5px rgba(225, 221, 200, .3); }
.ftp__input { flex: 1; min-width: 0; padding: 16px 16px 14px; background: none; border: 0; color: var(--whisper); font-family: var(--josefin); font-size: 17px; }
.ftp__input::placeholder { color: rgba(225, 221, 200, .62); opacity: 1; }
.ftp__go { flex: none; padding: 17px 18px 13px; font-family: var(--din); font-weight: 700; font-size: 16px; line-height: 1; letter-spacing: .14em; text-transform: uppercase; color: var(--whisper); border-left: 1.5px solid rgba(225, 221, 200, .3);
  transition: opacity var(--dur-hover) var(--ease-out), transform var(--dur-hover) var(--ease-out); }
.ftp__go:active { transform: scale(.97); }
.ftp__go:disabled, .ftp__input:disabled { cursor: default; }
.ftp__col { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.ftp__h { margin-bottom: 14px; font-weight: 600; font-size: var(--fs-lead); line-height: 1.2; color: var(--whisper); }
.ftp__col a { position: relative; padding: 5px 0 4px; font-size: var(--fs-small); line-height: 1.4; color: rgba(225, 221, 200, .75); transition: opacity var(--dur-hover) var(--ease-out); }
.ftp__col a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1.5px; background: var(--whisper); opacity: 0; transition: opacity var(--dur-hover) var(--ease-out); }
.ftp__col a:active { opacity: .7; }
.ftp__base { margin-top: clamp(48px, 5vw, 72px); padding-top: 26px; border-top: 1px solid rgba(225, 221, 200, .14); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: 16px; line-height: 1.4; color: rgba(225, 221, 200, .62); }
@media (hover: hover) and (pointer: fine) { .ftp__logo:hover { opacity: .75; } .ftp__col a:hover::after { opacity: 1; } .ftp__go:not(:disabled):hover { opacity: .8; } }
@media (max-width: 899px) { .ftp__grid { grid-template-columns: 1fr 1fr; } .ftp__brand { grid-column: 1 / -1; } }

/* the footer's mailing list */
.ftp__form fieldset, .ftp__row { border: 0; display: flex; align-items: stretch; box-shadow: inset 0 0 0 1.5px rgba(225, 221, 200, .3); }
.ftp__label { margin-bottom: 12px; font-weight: 600; font-size: var(--fs-body); color: var(--whisper); }
.ftp__input:focus-visible { outline: 2px solid var(--gold); outline-offset: -2px; }
.ftp__consent { margin-top: 14px; display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; cursor: pointer; font-size: 16px; line-height: 1.45; color: rgba(225, 221, 200, .75); }
.ftp__consent input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--gold); cursor: pointer; }
.ftp__msg { margin-top: 14px; font-size: 16px; line-height: 1.4; color: var(--whisper); }
.ftp__msg.is-bad { color: #E8A090; }
.ftp__form.is-done .ftp__row, .ftp__form.is-done .ftp__consent { display: none; }
.ftp .hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* the top menu on laptops (1024 to 1359 wide): tighter gaps and tracking so its six items and the button stay on one line, inside the margins */
.nav__links a, .nav__cta { white-space: nowrap; }
@media (min-width: 1024px) and (max-width: 1359px) {
  .nav__bar { gap: 24px; }
  .nav__links { gap: 22px; }
  .nav__links a:not(.btn) { font-size: 15px; letter-spacing: .12em; }
  .nav__cta { font-size: 15px; padding-inline: 16px; letter-spacing: .12em; }
}
@media (min-width: 1024px) and (max-width: 1099px) {
  .nav__bar { gap: 18px; }
  .nav__links { gap: 16px; }
  .nav__links a:not(.btn) { font-size: 14px; letter-spacing: .1em; }
  .nav__cta { font-size: 14px; padding-inline: 14px; }
}
