/* =========================================================
   EVERFALL GAMES · site styles (home, Windhold, press, news)
   Palette follows Windhold's own UI: cream canvas, brass trim,
   deep teal ink, sky blue. Fonts: Fredoka + Nunito (the game's own UI fonts).
   ========================================================= */
:root {
  --paper: #fbf6ea;
  --cream: #f4ecda;
  --cream-2: #eadfc6;
  --line: rgba(31, 78, 95, 0.14);
  --line-2: rgba(31, 78, 95, 0.24);
  --ink: #15303a;
  --ink-2: #3c535d;
  --ink-3: #56676d;
  --teal: #1f4e5f;
  --teal-2: #2e8c8a;
  --teal-3: #57c1b6;
  --night: #0f2a34;
  --night-2: #163a47;
  --brass: #c99a45;
  --brass-2: #85601f;
  --brass-3: #e6c77f;
  --sky: #3e9bea;
  --sky-deep: #17497a;
  --pennant: #b84f17;
  --serif: "Fredoka", ui-rounded, "Nunito", system-ui, sans-serif;
  --sans: "Nunito", ui-rounded, system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1200px;
  --gut: clamp(20px, 4vw, 40px);
  --nav-h: 72px;
  --ease: cubic-bezier(.22, .8, .24, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-2);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--brass-3); color: var(--night); }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 6px; }
.on-dark :focus-visible, .hero :focus-visible, .phero :focus-visible, .nav:not(.is-solid) :focus-visible, .lightbox :focus-visible { outline-color: #fffaf0; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--teal); color: var(--paper); padding: .6rem 1rem; border-radius: 10px; font-weight: 800; text-decoration: none; transition: top .2s; }
.skip:focus { top: 12px; }

.wrap { width: min(var(--wrap), 100% - var(--gut) * 2); margin-inline: auto; }
.wrap--narrow { width: min(760px, 100% - var(--gut) * 2); margin-inline: auto; }

/* ---------- type ---------- */
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; color: var(--ink); margin: 0; letter-spacing: -0.005em; text-wrap: balance; }
.display { font-size: clamp(2.5rem, 6.2vw, 5rem); line-height: 1.02; }
.h2 { font-size: clamp(2rem, 4.2vw, 3.25rem); line-height: 1.06; }
.h3 { font-size: clamp(1.45rem, 2.2vw, 1.85rem); line-height: 1.15; }
.lede { font-size: clamp(1.1rem, 1.5vw, 1.25rem); line-height: 1.6; color: var(--ink-2); max-width: 36em; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
.kicker {
  display: inline-flex; align-items: center; gap: .6rem;
  margin: 0 0 1rem; font-weight: 800; font-size: .95rem; color: var(--brass-2);
}
.on-dark .kicker { color: var(--brass-3); }
.muted { color: var(--ink-3); }
.link {
  display: inline-flex; align-items: center; gap: .45rem; font-weight: 800; color: var(--teal);
  text-decoration: none;
  transition: border-color .2s, color .2s, gap .2s var(--ease);
}
.link:hover { gap: .65rem; color: var(--brass-2); }
.link svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.on-dark .link { color: var(--paper); }

/* ---------- buttons (the game's cream + brass) ---------- */
.btn {
  --b: var(--brass);
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 50px; padding: .75rem 1.35rem; border-radius: 12px;
  font-family: var(--sans); font-weight: 800; font-size: 1rem; line-height: 1.1; letter-spacing: .005em;
  text-decoration: none; cursor: pointer; border: 1.5px solid var(--b);
  transition: transform .18s var(--ease), box-shadow .2s, background-color .2s, color .2s;
  white-space: nowrap;
}
.btn svg { width: 19px; height: 19px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.btn svg.fill { fill: currentColor; stroke: none; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 0 0 4px rgba(201, 154, 69, .28), 0 10px 24px -12px rgba(15, 42, 52, .45); }
.btn:active { transform: translateY(0); }
.btn--cream { background: #f6f0e2; color: var(--teal); box-shadow: inset 0 1px 0 #fffdf6, 0 1px 0 rgba(15, 42, 52, .12); }
.btn--teal { background: var(--teal); color: #f6f0e2; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12); }
.btn--teal:hover { background: #245a6d; }
.btn--ghost { background: transparent; color: var(--teal); --b: var(--line-2); }
.btn--ghost:hover { --b: var(--brass); }
.btn--ghost-light { background: rgba(10, 30, 40, .18); color: #fffaf0; --b: rgba(255, 250, 240, .7); }
.btn--ghost-light:hover { --b: var(--brass-3); background: rgba(10, 30, 40, .3); }
.btn--sm { min-height: 42px; padding: .55rem 1rem; font-size: .95rem; border-radius: 10px; }
.btn[hidden] { display: none; }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--nav-h);
  display: flex; align-items: center;
  color: #fffaf0;
  transition: background-color .3s, color .3s, box-shadow .3s, transform .35s var(--ease);
}
.nav::before { /* soft shade so white nav reads over bright sky art */
  content: ""; position: absolute; inset: 0 0 -70px; z-index: -1; pointer-events: none;
  background: linear-gradient(to bottom, rgba(12, 38, 60, .6), rgba(12, 38, 60, 0));
  transition: opacity .3s;
}
.nav.is-solid { background: var(--paper); color: var(--ink); box-shadow: 0 1px 0 var(--line); }
.nav.is-solid::before { opacity: 0; }
.nav.is-hidden { transform: translateY(-100%); }
.nav:focus-within { transform: none; }
.nav:not(.is-solid) .nav__links a, .nav:not(.is-solid) .brand__name { text-shadow: 0 1px 10px rgba(8, 28, 48, .55); }
.page-home .nav:not(.is-solid) .nav__cta, .page-windhold .nav:not(.is-solid) .nav__cta { visibility: hidden; }
@media (prefers-reduced-motion: reduce) { .nav { transition: background-color .3s, color .3s; } .nav.is-hidden { transform: none; } }
.nav__in { display: flex; align-items: center; gap: 28px; width: min(1320px, 100% - var(--gut) * 2); margin-inline: auto; }
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: inherit; flex: none; }
.brand__mark { width: 34px; height: 34px; flex: none; }
.brand__name { font-family: var(--serif); font-weight: 600; font-size: 1.42rem; line-height: 1; }
.nav__links { display: flex; gap: 4px; margin-left: auto; }
.nav__links a {
  position: relative; padding: .5rem .8rem; border-radius: 8px; text-decoration: none;
  font-weight: 700; font-size: 1rem; opacity: .92; transition: opacity .2s, background-color .2s;
}
.nav__links a:hover { opacity: 1; background: rgba(255, 255, 255, .12); }
.nav.is-solid .nav__links a:hover { background: rgba(31, 78, 95, .07); }
.nav__links a[aria-current="page"]::after {
  content: ""; position: absolute; left: .8rem; right: .8rem; bottom: .2rem; height: 2px; border-radius: 2px; background: var(--brass);
}
.nav__cta { flex: none; }
.nav .btn--nav { background: rgba(10, 30, 40, .2); color: #fffaf0; --b: rgba(255, 250, 240, .75); }
.nav.is-solid .btn--nav { background: var(--teal); color: #f6f0e2; --b: var(--brass); }
.nav__burger { display: none; margin-left: auto; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; border-radius: 10px; position: relative; }
.nav__burger span { position: absolute; left: 11px; right: 11px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .3s var(--ease), top .3s var(--ease); }
.nav__burger span:nth-child(1) { top: 17px; }
.nav__burger span:nth-child(2) { top: 25px; }
.menu-open .nav__burger span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.menu-open .nav__burger span:nth-child(2) { top: 21px; transform: rotate(-45deg); }
.mmenu {
  position: fixed; inset: 0; z-index: 45; background: var(--paper); padding: calc(var(--nav-h) + 24px) var(--gut) 32px;
  display: flex; flex-direction: column; gap: 4px; overflow-y: auto; overscroll-behavior: contain;
  opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s;
}
.mmenu[hidden] { display: none; }
.mmenu nav { display: flex; flex-direction: column; }
.menu-open .mmenu { opacity: 1; visibility: visible; transition: opacity .25s, visibility 0s; }
@media (max-height: 500px) { .mmenu a:not(.btn) { font-size: 1.4rem; } }
.menu-open .nav { background: var(--paper); color: var(--ink); }
.menu-open .nav::before { opacity: 0; }
.mmenu a:not(.btn) { font-family: var(--serif); font-weight: 600; font-size: 2rem; color: var(--ink); text-decoration: none; padding: .35rem 0; }
.mmenu .btn { margin-top: 20px; }
.mmenu .socials { margin-top: auto; padding-top: 20px; }
@media (max-width: 900px) {
  :root { --nav-h: 64px; }
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: block; }
}

/* ---------- social icons ---------- */
.socials { display: flex; gap: 8px; }
.social {
  width: 42px; height: 42px; display: grid; place-items: center; border-radius: 10px;
  border: 1px solid var(--line-2); color: var(--teal); text-decoration: none; transition: border-color .2s, background-color .2s, transform .2s var(--ease);
}
.social svg { width: 19px; height: 19px; fill: currentColor; }
.social:hover { border-color: var(--brass); transform: translateY(-1px); }
.on-dark .social { color: var(--paper); border-color: rgba(246, 240, 226, .25); }
.on-dark .social:hover { border-color: var(--brass-3); background: rgba(255, 255, 255, .05); }

/* ---------- hero (key art) ---------- */
.hero {
  position: relative; min-height: max(640px, 100svh); max-height: 1100px; overflow: hidden;
  display: flex; align-items: flex-end; color: #fffaf0; background: #4aa3ea;
  isolation: isolate;
}
.hero__media { position: absolute; inset: 0; z-index: -3; }
.hero__media img {
  width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 35%);
  transform: scale(1.06); transform-origin: 50% 40%;
  animation: settle 2.4s var(--ease) .1s forwards;
  will-change: transform;
}
@keyframes settle { to { transform: scale(1); } }
.hero__wind { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; pointer-events: none; }
.hero__shade {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(to top, rgba(13, 44, 72, .78) 0%, rgba(13, 44, 72, .46) 18%, rgba(13, 44, 72, 0) 42%);
}
.hero__body { width: min(var(--wrap), 100% - var(--gut) * 2); margin: 0 auto; padding-bottom: clamp(84px, 10vh, 124px); text-align: center; }
.hero__pitch { font-family: var(--serif); font-size: clamp(1.45rem, 2.6vw, 2.15rem); line-height: 1.18; margin: 0 auto .6rem; max-width: 24em; text-shadow: 0 2px 18px rgba(8, 28, 48, .45); }
.hero__sub { margin: 0 auto 1.6rem; max-width: 40em; font-weight: 600; font-size: 1.06rem; color: rgba(255, 250, 240, .9); text-shadow: 0 1px 12px rgba(8, 28, 48, .5); }
.hero__ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.status {
  display: inline-flex; align-items: center; gap: .55rem; margin-top: 1.3rem;
  font-size: .92rem; font-weight: 700; color: #fffaf0; text-shadow: 0 1px 10px rgba(8, 28, 48, .6);
}
.status i { width: 8px; height: 8px; border-radius: 50%; background: var(--teal-3); box-shadow: 0 0 0 4px rgba(87, 193, 182, .22); }
.hero__scroll { position: absolute; left: 50%; bottom: 52px; width: 1px; height: 0; }

/* cloud bank edge between sky and paper */
.cloudbank { position: absolute; left: 0; right: 0; bottom: -1px; height: clamp(34px, 4.6vw, 64px); z-index: 1; pointer-events: none; overflow: hidden; }
.cloudbank svg { position: absolute; bottom: 0; left: 0; width: 200%; max-width: none; height: 100%; }
.cloudbank .back { fill: var(--cb-back, var(--cb, var(--paper))); animation: drift 110s linear infinite; }
.cloudbank .front { fill: var(--cb, var(--paper)); animation: drift 170s linear infinite reverse; }
.cloudbank--paper { --cb: var(--paper); --cb-back: #e9eef0; }
.cloudbank--cream { --cb: var(--cream); --cb-back: #ece6d8; }
.hero .cloudbank--paper { --cb-back: #dfe9f1; }
@keyframes drift { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .cloudbank .back, .cloudbank .front, .hero__media img { animation: none; transform: none; } }

@media (max-width: 760px), (max-aspect-ratio: 5/4) {
  .hero { min-height: 0; max-height: none; display: block; background: var(--paper); color: var(--ink); }
  .hero__media { position: relative; inset: auto; aspect-ratio: 1672 / 941; margin-top: var(--nav-h); }
  .hero__media img { object-position: 50% 50%; animation: none; transform: none; }
  .hero__ctas .btn { flex: 1 1 100%; max-width: 340px; }
  .hero__wind, .hero__shade { display: none; }
  .hero .cloudbank { display: none; }
  .hero__body { padding: 28px 0 44px; }
  .hero__pitch { text-shadow: none; color: var(--ink); }
  .hero__sub { text-shadow: none; color: var(--ink-2); }
  .hero .btn--cream { background: var(--teal); color: #f6f0e2; }
  .hero .btn--ghost-light { background: transparent; color: var(--teal); --b: var(--line-2); }
  .hero .status { color: var(--ink-3); text-shadow: none; }
  .hero .status i { box-shadow: none; }
  .page-home .nav, .page-windhold .nav { background: var(--paper); color: var(--ink); box-shadow: 0 1px 0 var(--line); }
  .page-home .nav::before, .page-windhold .nav::before { opacity: 0; }
  .page-home .nav .nav__links a, .page-home .nav .brand__name, .page-windhold .nav .nav__links a, .page-windhold .nav .brand__name { text-shadow: none; }
  .page-home .nav .nav__cta, .page-windhold .nav .nav__cta { visibility: visible; background: var(--teal); color: #f6f0e2; --b: var(--brass); }
  .hero :focus-visible { outline-color: var(--teal); }
}
@media (max-width: 760px) { .hero__media { aspect-ratio: 4 / 3; } .hero__media img { object-position: 50% 28%; } }

/* ---------- sections ---------- */
.section { position: relative; padding: clamp(80px, 11vw, 150px) 0; }
.section--tight { padding: clamp(56px, 7vw, 96px) 0; }
.section--cream { background: var(--cream); }
.on-dark { background: var(--night); color: rgba(246, 240, 226, .82); }
.on-dark h1, .on-dark h2, .on-dark h3 { color: #f6f0e2; }
.on-dark .lede { color: rgba(246, 240, 226, .82); }
.head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: clamp(36px, 5vw, 60px); }
.head .lede { margin-top: 1rem; }
.head > .link, .head > .strip__nav { flex: none; }
@media (max-width: 760px) { .head { flex-direction: column; align-items: flex-start; gap: 18px; } .head > .strip__nav { display: none; } }

/* intro (pitch under the hero) */
.intro__grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(28px, 5vw, 80px); align-items: end; }
.intro__grid .display { font-size: clamp(2.2rem, 4.6vw, 3.9rem); }
@media (max-width: 860px) { .intro__grid { grid-template-columns: 1fr; } }
.strip-section { padding-top: 0; }

/* studio statement */
.statement { text-align: center; }
.statement .h2 { max-width: 18em; margin: 0 auto 1.4rem; }
.statement .lede { margin: 0 auto; }
.statement__leaf { width: 40px; height: 40px; margin: 0 auto 1.6rem; color: var(--brass); }

/* ---------- framed images (brass-trimmed, like the game's panels) ---------- */
.frame {
  margin: 0; position: relative; padding: 9px; border-radius: 20px; background:
    radial-gradient(circle at 9px 9px, var(--brass) 2.1px, transparent 2.8px),
    radial-gradient(circle at calc(100% - 9px) 9px, var(--brass) 2.1px, transparent 2.8px),
    radial-gradient(circle at 9px calc(100% - 9px), var(--brass) 2.1px, transparent 2.8px),
    radial-gradient(circle at calc(100% - 9px) calc(100% - 9px), var(--brass) 2.1px, transparent 2.8px),
    #f6f0e2;
  box-shadow: 0 0 0 1px rgba(156, 110, 38, .38), inset 0 1px 0 #fffdf6, 0 24px 50px -26px rgba(15, 42, 52, .5);
}
.frame img { width: 100%; height: auto; border-radius: 13px; aspect-ratio: 16 / 9; object-fit: cover; background: var(--cream-2); }
span.frame { display: block; }
.frame figcaption, .frame .figcaption { display: flex; gap: .5rem; align-items: baseline; padding: .7rem .4rem .15rem; font-size: .88rem; font-weight: 600; color: var(--ink-3); }
.frame figcaption b, .frame .figcaption b { color: var(--teal); font-weight: 800; }
.on-dark .frame { background:
    radial-gradient(circle at 9px 9px, var(--brass) 2.1px, transparent 2.8px),
    radial-gradient(circle at calc(100% - 9px) 9px, var(--brass) 2.1px, transparent 2.8px),
    radial-gradient(circle at 9px calc(100% - 9px), var(--brass) 2.1px, transparent 2.8px),
    radial-gradient(circle at calc(100% - 9px) calc(100% - 9px), var(--brass) 2.1px, transparent 2.8px),
    var(--night-2);
  box-shadow: 0 0 0 1px rgba(201, 154, 69, .35), 0 24px 50px -26px rgba(0, 0, 0, .6); }
.on-dark .frame figcaption, .on-dark .frame .figcaption { color: rgba(246, 240, 226, .72); }
.on-dark .frame figcaption b, .on-dark .frame .figcaption b { color: var(--brass-3); }

/* ---------- feature rows ---------- */
.features { display: grid; gap: clamp(72px, 10vw, 130px); }
.feature { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.feature:nth-child(even) { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.feature:nth-child(even) .feature__media { order: 2; }
.feature__text .h3 { margin-bottom: .9rem; }
.feature__text p { max-width: 32em; }
.feature__num { display: block; font-family: var(--serif); font-size: 1rem; color: var(--brass-2); margin-bottom: .8rem; }
.feature__note { margin-top: 1.2rem; padding-top: 1rem; border-top: 1px solid var(--line); font-size: .95rem; color: var(--ink-3); }
.feature__note b { color: var(--ink); font-weight: 800; }
@media (max-width: 860px) {
  .feature, .feature:nth-child(even) { grid-template-columns: 1fr; }
  .feature:nth-child(even) .feature__media { order: 0; }
}

/* ---------- facts strip ---------- */
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts > div { padding: 22px 22px 22px 0; }
.facts > div + div { padding-left: 22px; border-left: 1px solid var(--line); }
.facts dt { font-size: .88rem; font-weight: 700; color: var(--ink-3); margin-bottom: .25rem; }
.facts dd { margin: 0; font-family: var(--serif); font-size: 1.2rem; color: var(--ink); line-height: 1.25; }
@media (max-width: 760px) {
  .facts { grid-template-columns: 1fr 1fr; }
  .facts > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .facts > div:nth-child(n + 3) { border-top: 1px solid var(--line); }
}

/* ---------- gallery strip ---------- */
.strip { position: relative; }
.strip__track {
  display: grid; grid-auto-flow: column; grid-auto-columns: clamp(280px, 34vw, 540px); gap: 20px;
  overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 6px max(var(--gut), calc((100% - var(--wrap)) / 2)) 60px; scroll-padding-inline: max(var(--gut), calc((100% - var(--wrap)) / 2)); margin-bottom: -34px;
  scrollbar-width: thin; scrollbar-color: var(--brass) transparent;
}
.strip__track::-webkit-scrollbar { height: 6px; }
.strip__track::-webkit-scrollbar-thumb { background: var(--brass); border-radius: 6px; }
.strip__track > * { scroll-snap-align: start; }
@media (max-width: 760px) { .strip__track { grid-auto-columns: 82vw; } }
.strip__nav { display: flex; gap: 8px; }
.icon-btn {
  width: 46px; height: 46px; display: grid; place-items: center; border-radius: 12px; cursor: pointer;
  border: 1.5px solid var(--line-2); background: transparent; color: var(--teal); transition: border-color .2s, transform .2s var(--ease);
}
.icon-btn:hover { border-color: var(--brass); transform: translateY(-1px); }
.icon-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.on-dark .icon-btn { color: var(--paper); border-color: rgba(246, 240, 226, .28); }
.shot { padding: 0; border: 0; background: none; cursor: zoom-in; text-align: left; width: 100%; }
.shot .frame { transition: transform .35s var(--ease); }
.shot:hover .frame { transform: translateY(-3px); }

.grid-shots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.grid-shots .shot:nth-child(7n + 1) { grid-column: span 2; grid-row: span 2; }
@media (max-width: 860px) { .grid-shots { grid-template-columns: 1fr 1fr; } .grid-shots .shot:nth-child(7n + 1) { grid-column: span 2; grid-row: auto; } }
@media (max-width: 520px) { .grid-shots { grid-template-columns: 1fr; } .grid-shots .shot:nth-child(7n + 1) { grid-column: auto; } }
.grid-shots .frame, .dl .frame { padding: 0; background: none; border-radius: 13px; box-shadow: 0 0 0 1px rgba(21, 48, 58, .1), 0 14px 30px -22px rgba(15, 42, 52, .5); }
.grid-shots .frame .figcaption { display: none; }
.grid-shots .frame img { height: 100%; }
.grid-shots .shot:nth-child(7n + 1) .frame, .grid-shots .shot:nth-child(7n + 1) .frame img { height: 100%; }

/* ---------- lightbox ---------- */
.lightbox { border: 0; padding: 0; margin: 0; width: 100vw; height: 100vh; max-width: none; max-height: none; background: rgba(9, 26, 33, .94); color: var(--paper); }
.lightbox::backdrop { background: rgba(9, 26, 33, .6); }
.lightbox[open] { display: grid; grid-template-rows: 1fr auto; }
.lightbox__stage { display: grid; place-items: center; padding: 64px clamp(56px, 7vw, 110px) 12px; min-height: 0; }
.lightbox__stage img { max-width: 100%; max-height: 100%; border-radius: 12px; box-shadow: 0 0 0 1px rgba(201, 154, 69, .45), 0 30px 80px rgba(0, 0, 0, .5); object-fit: contain; }
.lightbox__bar { display: flex; justify-content: center; align-items: center; gap: 16px; padding: 8px 20px 24px; font-weight: 700; font-size: .95rem; color: rgba(246, 240, 226, .8); }
.lightbox__btn { position: absolute; top: 50%; translate: 0 -50%; }
.lightbox__btn--prev { left: clamp(10px, 2vw, 28px); }
.lightbox__btn--next { right: clamp(10px, 2vw, 28px); }
.lightbox__close { position: absolute; top: 16px; right: 16px; }
.lightbox .icon-btn { color: var(--paper); border-color: rgba(246, 240, 226, .3); background: rgba(9, 26, 33, .5); }

/* ---------- signup (night band) ---------- */
.signup { position: relative; overflow: hidden; }
.signup__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 6vw, 90px); align-items: center; }
.signup .lede { margin-top: 1rem; }
.signup__art { position: relative; justify-self: center; width: min(256px, 70%); }
.signup__art img { width: 100%; height: auto; filter: drop-shadow(0 24px 30px rgba(0, 0, 0, .35)); }
.form { display: flex; gap: 10px; margin-top: 1.6rem; max-width: 520px; }
.form input {
  flex: 1; min-width: 0; min-height: 52px; padding: 0 1rem; border-radius: 12px; font: inherit; font-weight: 600;
  border: 1.5px solid rgba(246, 240, 226, .28); background: rgba(246, 240, 226, .06); color: #fffaf0;
  transition: border-color .2s, background-color .2s;
}
.form input::placeholder { color: rgba(246, 240, 226, .5); }
.form input:focus { outline: none; border-color: var(--brass-3); background: rgba(246, 240, 226, .1); }
.form--light input { border-color: var(--line-2); background: #fffdf7; color: var(--ink); }
.form--light input::placeholder { color: var(--ink-3); }
.form--light input:focus { border-color: var(--brass); background: #fff; }
.form-status { min-height: 1.5em; margin: .7rem 0 0; font-weight: 700; font-size: .95rem; }
.form-status.ok { color: var(--teal-3); }
.form-status.err { color: #ffb08a; }
.form--light + .form-status.ok { color: var(--teal-2); }
.form--light + .form-status.err { color: #b4471a; }
.fine { font-size: .88rem; opacity: .7; margin-top: .4rem; }
.signup__alt { margin-top: 1.4rem; display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; font-weight: 600; }
@media (max-width: 860px) {
  .signup__grid { grid-template-columns: 1fr; }
  .signup__art { order: -1; width: 200px; }
  .form { flex-direction: column; }
}

/* starry dots on night sections (static, cheap) */
.stars::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .55;
  background-image:
    radial-gradient(1.2px 1.2px at 12% 22%, #fff8e6 50%, transparent 52%),
    radial-gradient(1px 1px at 28% 64%, #fff8e6 50%, transparent 52%),
    radial-gradient(1.4px 1.4px at 46% 14%, #fff8e6 50%, transparent 52%),
    radial-gradient(1px 1px at 63% 42%, #fff8e6 50%, transparent 52%),
    radial-gradient(1.3px 1.3px at 78% 18%, #fff8e6 50%, transparent 52%),
    radial-gradient(1px 1px at 88% 70%, #fff8e6 50%, transparent 52%),
    radial-gradient(1.1px 1.1px at 6% 84%, #fff8e6 50%, transparent 52%),
    radial-gradient(1px 1px at 52% 88%, #fff8e6 50%, transparent 52%),
    radial-gradient(1.2px 1.2px at 36% 38%, #fff8e6 50%, transparent 52%),
    radial-gradient(1px 1px at 94% 36%, #fff8e6 50%, transparent 52%);
}

/* ---------- news ---------- */
.posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 34px); }
.post { display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.post .frame { margin-bottom: 1.1rem; transition: transform .35s var(--ease); }
.post:hover .frame { transform: translateY(-3px); }
.post__meta { display: flex; gap: .7rem; align-items: center; font-size: .9rem; font-weight: 700; color: var(--ink-3); margin-bottom: .45rem; }
.post__title { font-size: 1.38rem; line-height: 1.2; margin-bottom: .5rem; transition: color .2s; }
.post:hover .post__title { color: var(--teal); }
.post p { font-size: 1rem; color: var(--ink-3); }
.post--wide { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.post--wide .frame { margin: 0; }
.post--wide .post__title { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
@media (max-width: 860px) { .posts { grid-template-columns: 1fr; } .post--wide { grid-template-columns: 1fr; } }
.pennant {
  display: inline-block; padding: .18rem .95rem .2rem .6rem; font-size: .8rem; font-weight: 800; color: #fffaf0; background: var(--pennant);
  clip-path: polygon(0 0, 100% 0, calc(100% - 8px) 50%, 100% 100%, 0 100%);
}
.pennant--teal { background: var(--teal); }

/* ---------- two-up cards (careers / press) ---------- */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 32px); }
.panel {
  position: relative; padding: clamp(28px, 4vw, 44px); border-radius: 20px; background: #fffdf7;
  box-shadow: 0 0 0 1px rgba(156, 110, 38, .28), 0 18px 40px -30px rgba(15, 42, 52, .45);
}
.panel .h3 { margin-bottom: .8rem; }
.panel p { max-width: 30em; }
.panel > .btn, .panel > .link { margin-top: 1.2rem; }
.panel__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.4rem; margin-top: 1.2rem; }
.panel__icon { position: absolute; right: 22px; top: -34px; width: 92px; height: auto; filter: drop-shadow(0 12px 16px rgba(15, 42, 52, .25)); }
@media (max-width: 760px) { .duo { grid-template-columns: 1fr; } .panel__icon { width: 72px; top: -26px; } }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 20px; align-items: center;
  padding: 1.25rem 0; font-family: var(--serif); font-size: 1.3rem; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--sans); font-weight: 700; font-size: 1.5rem; color: var(--brass-2); transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 1.3rem; max-width: 46em; }

/* ---------- press kit ---------- */
.press-grid { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.factsheet { position: sticky; top: calc(var(--nav-h) + 24px); padding: 26px; border-radius: 18px; background: #fffdf7; box-shadow: 0 0 0 1px rgba(156, 110, 38, .28); }
.factsheet h2 { font-size: 1.4rem; margin-bottom: 1rem; }
.factsheet dl { margin: 0; }
.factsheet dt { font-size: .85rem; font-weight: 800; color: var(--ink-3); margin-top: .9rem; }
.factsheet dd { margin: .1rem 0 0; color: var(--ink); font-weight: 600; }
.factsheet dd a { color: var(--teal); }
.factsheet .btn { width: 100%; margin-top: 1.4rem; }
.factsheet__note { margin: .5rem 0 0; text-align: center; font-size: .85rem; font-weight: 700; color: var(--ink-3); }
.press-section { padding-bottom: clamp(48px, 6vw, 72px); margin-bottom: clamp(48px, 6vw, 72px); border-bottom: 1px solid var(--line); }
.press-section:last-child { border-bottom: 0; }
.press-section .h3 { margin-bottom: 1rem; }
.press-section ul { padding-left: 1.2rem; margin: 0; }
.press-section li { margin: .35rem 0; }
.press-section li::marker { color: var(--brass); }
.dl-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.dl { display: block; text-decoration: none; color: inherit; }
.dl .frame { padding: 7px; border-radius: 16px; transition: transform .3s var(--ease); }
.dl .frame img { border-radius: 10px; }
.dl:hover .frame { transform: translateY(-2px); }
.dl__label { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: .5rem; align-items: start; font-size: .9rem; font-weight: 700; color: var(--ink-3); padding: .6rem .2rem 0; }
.dl__label b { color: var(--teal); }
.dl__label svg { width: 16px; height: 16px; margin-top: .2rem; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.dl--logo .frame img { aspect-ratio: 16 / 9; object-fit: contain; padding: 12% 14%; background: linear-gradient(160deg, #3e9bea, #17497a); }
.dl--icon .frame img { aspect-ratio: 16 / 9; object-fit: contain; padding: 6%; background: var(--cream); }
@media (max-width: 960px) { .press-grid { grid-template-columns: 1fr; } .factsheet { position: static; } }
@media (max-width: 640px) { .dl-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- page hero (inner pages) ---------- */
.phero { position: relative; padding: calc(var(--nav-h) + clamp(56px, 8vw, 110px)) 0 clamp(70px, 9vw, 120px); background: linear-gradient(180deg, #17497a 0%, #245f96 55%, #3a7fbd 100%); color: #fffaf0; overflow: hidden; isolation: isolate; }
.phero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--img) center 55% / cover no-repeat; opacity: .18; mix-blend-mode: soft-light; }
.phero--tall { min-height: min(78vh, 760px); display: flex; align-items: center; }
.phero + .section { padding-top: clamp(40px, 5vw, 72px); }
.mail-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.8rem; }
.mail-actions form { margin: 0; }
.phero h1 { color: #fffdf6; text-shadow: 0 2px 20px rgba(8, 30, 52, .25); }
.phero .lede { color: rgba(255, 252, 244, .92); margin-top: 1rem; }
.phero .kicker { color: #fff3d6; }
.phero .cloudbank { height: clamp(36px, 5vw, 70px); }
.crumbs { display: flex; gap: .5rem; font-weight: 700; font-size: .95rem; margin-bottom: 1rem; }
.crumbs a { text-decoration: none; }
.crumbs--ink { color: var(--ink-2); }
.crumbs a:hover { opacity: 1; text-decoration: underline; }

/* ---------- footer ---------- */
.footer { position: relative; padding: clamp(96px, 12vw, 150px) 0 34px; }
.footer .cloudbank { top: -1px; bottom: auto; transform: scaleY(-1); }
.footer--joined { padding-top: clamp(64px, 8vw, 96px); border-top: 1px solid rgba(246, 240, 226, .1); }
.footer__top { display: grid; grid-template-columns: 1.4fr repeat(2, minmax(0, .75fr)) 1.4fr; gap: 32px; }
.footer--nosignup .footer__top { grid-template-columns: 2fr 1fr 1fr; }
.footer .brand { color: #f6f0e2; margin-bottom: 1rem; }
.footer__about { max-width: 22em; font-size: .98rem; }
.footer__h { font-family: var(--sans); font-weight: 800; font-size: .92rem; letter-spacing: 0; color: var(--brass-3); margin-bottom: .8rem; }
.footer nav a { display: block; padding: .22rem 0; text-decoration: none; color: rgba(246, 240, 226, .82); font-weight: 600; transition: color .2s; }
.footer nav a:hover { color: #fffaf0; }
.footer__base { display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; margin-top: clamp(48px, 6vw, 72px); padding-top: 22px; border-top: 1px solid rgba(246, 240, 226, .14); font-size: .9rem; color: rgba(246, 240, 226, .55); }
.footer__base a { color: inherit; }
.footer .form { margin-top: .9rem; }
@media (max-width: 1060px) { .footer__top, .footer--nosignup .footer__top { grid-template-columns: 1fr 1fr; } .footer__lead, .footer__news { grid-column: 1 / -1; } }

/* ---------- reveal on scroll ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js [data-reveal] { opacity: 1; transform: none; transition: none; } }

/* ---------- article / prose (news pages) ---------- */
.article-head { padding-top: calc(var(--nav-h) + clamp(40px, 6vw, 80px)); }
.article-head h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); line-height: 1.05; margin: .6rem 0 1.2rem; }
.byline { display: flex; align-items: center; gap: .8rem; font-weight: 700; color: var(--ink-3); font-size: .95rem; flex-wrap: wrap; }
.byline img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 1.5px var(--brass); background: var(--cream); }
.byline b { color: var(--ink); }
.article-cover { margin: clamp(28px, 4vw, 48px) auto; }
.prose { font-size: 1.12rem; line-height: 1.75; color: var(--ink-2); }
.prose h2 { font-size: 1.9rem; margin: 2.2rem 0 .8rem; }
.prose h3 { font-size: 1.45rem; margin: 1.8rem 0 .6rem; }
.prose a { color: var(--teal); text-decoration-color: var(--brass); text-underline-offset: 3px; }
.prose img { border-radius: 14px; margin: 1.6rem 0; box-shadow: 0 0 0 1px rgba(156, 110, 38, .3); }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin: .35rem 0; }
.prose li::marker { color: var(--brass-2); }
.prose blockquote { margin: 1.6rem 0; padding: .2rem 0 .2rem 1.3rem; border-left: 3px solid var(--brass); font-family: var(--serif); font-size: 1.3rem; color: var(--ink); }
.prose code { font-size: .92em; padding: .12em .4em; border-radius: 6px; background: var(--cream); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.4rem 0; }
.prose .callout { margin: 1.6rem 0; padding: 1.1rem 1.3rem; border-radius: 14px; background: var(--cream); box-shadow: 0 0 0 1px rgba(156, 110, 38, .25); }
.prose .callout strong:first-child { display: block; color: var(--ink); margin-bottom: .3rem; }
.article-foot { display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: center; margin-top: 3rem; padding-top: 1.6rem; border-top: 1px solid var(--line); }
.share { display: flex; gap: 8px; flex-wrap: wrap; }
.toast { position: fixed; left: 50%; bottom: 24px; translate: -50% 20px; opacity: 0; z-index: 80; padding: .7rem 1.1rem; border-radius: 12px; background: var(--teal); color: var(--paper); font-weight: 700; transition: opacity .25s, translate .25s var(--ease); pointer-events: none; }
.toast.is-on { opacity: 1; translate: -50% 0; }
.empty { padding: 3rem 0; text-align: center; color: var(--ink-3); }
