/* WINGS FUEL main site (taste 3). Night to a blue-silver dawn, in the logo's electric blue and silver. Saira display, Hanken Grotesk text. */
:root {
  --night: #070C18;
  --slate: #1B2A44;
  --mist: #B4C1D6;
  --ink: #F2F6FC;
  --amber: #2F86FF; /* electric blue, the logo's wing edge and bolt */
  --rose: #C9D6E8; /* silver */
  --gold: #8CC4FF; /* light bolt blue for small accents */
  --sage: #A9D49B;
  --panel: rgba(9, 15, 29, 0.78);
  --line: rgba(247, 240, 230, 0.16);
  --gutter: clamp(16px, 4.5vw, 72px);
  --display: "Saira", "Hanken Grotesk", system-ui, sans-serif;
  --text: "Hanken Grotesk", system-ui, sans-serif;
  --r: 14px;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; }
body {
  margin: 0; background: var(--night); color: var(--ink);
  font: 400 1.0625rem/1.62 var(--text); overflow-x: hidden;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.skip { position: fixed; left: 16px; top: -60px; z-index: 50; background: var(--ink); color: var(--night); padding: 10px 16px; border-radius: 8px; text-decoration: none; font-weight: 600; transition: top .2s; }
.skip:focus { top: 12px; }

/* ---------------------------------------------------------------- the world layers */
#world { position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100lvh; z-index: 0; display: block; }
.poster { position: fixed; inset: 0; z-index: 0; display: none; background: var(--night) url("../img/poster.jpg") center 35% / cover no-repeat; }
.poster::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7,12,24,.25), rgba(7,12,24,.55) 60%, rgba(7,12,24,.8)); }
html.static #world, html.gl-lost #world { display: none; }
html.static .poster, html.gl-lost .poster { display: block; }

/* the still used for the poster render: the world alone */
html.still .bar, html.still main, html.still .foot, html.still .rail, html.still .skip { display: none !important; }

/* ---------------------------------------------------------------- header */
.bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 20;
  padding: 14px 0;
  background: linear-gradient(180deg, rgba(7,12,24,.78), rgba(7,12,24,0));
  transition: background-color .3s ease, backdrop-filter .3s ease;
}
/* once the page moves, the bar gets a solid ground so copy never runs under the logo */
.bar.is-scrolled { background: rgba(7,12,24,.86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--line); }
.bar__in { display: flex; align-items: center; gap: 24px; justify-content: space-between; }
.b-short { display: none; }
.mark { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 600 1.02rem/1 var(--text); letter-spacing: .08em; min-height: 44px; }
/* the client's logo, cut out onto transparency (brand/logo-transparent.png) */
.mark { gap: 8px; }
.mark__logo { height: 34px; width: auto; }
.mark__word { height: 22px; width: auto; }
.foot__logo { height: 48px; width: auto; display: block; }
.bar__nav { display: flex; gap: 6px; margin-left: auto; }
.bar__nav a { text-decoration: none; color: var(--mist); font-size: .95rem; padding: 10px 12px; border-radius: 999px; transition: color .2s, background-color .2s; min-height: 44px; display: inline-flex; align-items: center; }
.bar__nav a:hover { color: var(--ink); background: rgba(242,246,252,.07); }
.bar__toggle { display: none; order: 3; width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--line); background: rgba(9,15,29,.5); color: var(--ink); cursor: pointer; align-items: center; justify-content: center; }
.bar__toggle path { stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; transition: transform .25s ease; transform-box: view-box; transform-origin: 10px 10px; }
.bar.is-open .bar__toggle .t1 { transform: translateY(4px) rotate(45deg); }
.bar.is-open .bar__toggle .t2 { transform: translateY(-4px) rotate(-45deg); }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 24px; border-radius: 999px; border: 1px solid transparent;
  background: linear-gradient(180deg, #4C9BFF, #1F6FE6); color: #FFFFFF;
  font: 600 1rem/1.1 var(--text); text-decoration: none; cursor: pointer;
  box-shadow: 0 8px 30px -10px rgba(242,166,90,.7);
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 36px -12px rgba(242,166,90,.85); }
.btn:active { transform: translateY(0) scale(.98); }
.btn--ghost { background: rgba(7,12,24,.35); color: var(--ink); border-color: rgba(242,246,252,.42); box-shadow: none; }
.btn--ghost:hover { background: rgba(242,246,252,.1); box-shadow: none; }
.btn--small { min-height: 44px; padding: 10px 18px; font-size: .92rem; }

/* ---------------------------------------------------------------- journey rail */
.rail { position: fixed; right: 22px; top: 50%; transform: translateY(-50%); z-index: 15; display: none; }
.rail ol { position: relative; display: flex; flex-direction: column-reverse; gap: 2px; }
.rail a { display: flex; align-items: center; justify-content: flex-start; width: 104px; min-height: 32px; padding-right: 22px; text-decoration: none; font-size: .78rem; color: rgba(180,193,214,0); transition: color .25s; }
.rail:hover a, .rail a:focus-visible { color: var(--mist); }
.rail a[aria-current="true"] { color: var(--ink); }
.rail a::after { content: ""; position: absolute; right: 3px; width: 5px; height: 5px; border-radius: 50%; background: rgba(242,246,252,.4); }
.rail li { position: relative; display: flex; justify-content: flex-end; }
.rail a[aria-current="true"]::after { background: var(--gold); }
.rail__line { position: absolute; right: 5px; top: 14px; bottom: 14px; width: 1px; background: linear-gradient(0deg, rgba(255,208,138,.55), rgba(180,193,214,.2)); }
.rail__sun { position: absolute; left: -5px; bottom: calc(var(--rise, 0) * 100% - 5px); width: 11px; height: 11px; border-radius: 50%; background: radial-gradient(circle, #F2F8FF 0 30%, var(--amber) 60%, rgba(47,134,255,0) 72%); box-shadow: 0 0 14px 4px rgba(47,134,255,.5); }
@media (min-width: 1100px) { .rail { display: block; } }

/* ---------------------------------------------------------------- chapters */
main { position: relative; z-index: 2; overflow-x: clip; }
.ch { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: 112px 0 96px; }
.wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 var(--gutter); }

.copy { position: relative; max-width: 600px; }
.copy--centre { margin: 0 auto; text-align: center; max-width: 820px; }
.copy--right { margin-left: auto; }
.copy > * + * { margin-top: 18px; }
.copy p:not(.lead):not(.fact) { color: var(--mist); max-width: 60ch; }
.copy--centre p { margin-left: auto; margin-right: auto; }

/* authored scrims: a soft dark pool behind the reading block, never a blanket over the world */
.scrim { position: relative; isolation: isolate; }
.scrim::before {
  content: ""; position: absolute; z-index: -1; inset: -16% -14%;
  background: radial-gradient(closest-side, rgba(7,12,24,.74), rgba(7,12,24,.5) 55%, rgba(7,12,24,0));
  pointer-events: none;
}
.scrim--low::before { background: radial-gradient(closest-side, rgba(7,12,24,.66), rgba(7,12,24,.34) 60%, rgba(7,12,24,0)); }

.display { font-family: var(--display); font-weight: 700; font-style: italic; font-stretch: 88%; letter-spacing: -0.01em; line-height: 1.0; text-wrap: balance; font-size: clamp(2.3rem, 4.8vw, 4.2rem); }
h1.display { font-size: clamp(2.6rem, 5.8vw, 5.4rem); line-height: .98; }
.display--xl { font-size: clamp(2.8rem, 5.6vw, 5.4rem); line-height: .95; }
.display .line { display: block; }
.lead { font-size: clamp(1.12rem, 1.5vw, 1.3rem); line-height: 1.5; color: var(--ink); max-width: 56ch; text-wrap: balance; }
.fact { font-size: .95rem; color: var(--gold); padding-top: 6px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 10px; }
.text-shadow, .copy, .values, .rings { text-shadow: 0 1px 18px rgba(7,12,24,.55); }

/* hero */
.ch--hero { min-height: 100vh; min-height: 100svh; }
.ch--hero .copy { max-width: 640px; }
.ch--hero .lead { color: #DCE5F2; }

/* story: copy then the five values */
.ch--story { min-height: 160vh; align-items: flex-start; padding-top: 22vh; }
.values { max-width: 520px; margin-top: 9vh; display: grid; gap: 0; }
.values li { padding: 20px 0; border-top: 1px solid var(--line); }
.values li:last-child { border-bottom: 1px solid var(--line); }
.values h3, .rings h3 { font: 600 clamp(1.6rem, 2.4vw, 2rem)/1.05 var(--display); color: var(--ink); }
.values p, .rings p { color: var(--mist); margin-top: 4px; }

/* wings: a held stage while the wings unfold */
.ch--wings { min-height: 230vh; display: block; padding: 0; }
.ch--wings .hold { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; align-items: flex-end; padding-bottom: 9vh; }
.ch--wings .lead { color: #E4ECF7; }

/* products */
.ch--products { min-height: 170vh; display: block; padding-top: 16vh; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 14vw, 240px); margin-top: 46vh; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(22px, 2.6vw, 34px); width: 100%; }
/* the real pack, on the light ground it was shot on */
.card__pack { margin: calc(-1 * clamp(22px, 2.6vw, 34px)) calc(-1 * clamp(22px, 2.6vw, 34px)) 22px; background: #F4F5F7; border-radius: var(--r) var(--r) 0 0; display: flex; justify-content: center; padding: 18px 0 0; overflow: hidden; }
.card__pack img { height: clamp(220px, 26vw, 320px); width: auto; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.card:hover .card__pack img { transform: translateY(-4px) scale(1.02); }
.pair > .card:last-child { justify-self: end; }
.card__name { font: 600 clamp(2rem, 3vw, 2.6rem)/1 var(--display); }
.card__tag { margin-top: 6px; font-weight: 500; }
.card--plant .card__tag { color: var(--sage); }
.card--women .card__tag { color: var(--gold); }
.card > p:not(.card__tag) { margin-top: 14px; color: var(--mist); }
.facts { margin-top: 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
.facts div { padding: 10px 0; border-top: 1px solid var(--line); }
.facts dt { font-size: .82rem; color: var(--mist); }
.facts dd { font-weight: 600; font-size: 1.02rem; }
.ref { color: var(--gold); padding: 0 2px; }
.note { margin: 28px auto 0; max-width: 820px; text-align: center; font-size: .9rem; color: var(--mist); background: rgba(7,12,24,.62); border-radius: 10px; padding: 12px 16px; }

/* ingredients */
.ch--ingredients { min-height: 170vh; align-items: flex-start; padding-top: 20vh; }
.rings { max-width: 560px; margin-top: 7vh; display: grid; }
.rings li { padding: 18px 0 18px 30px; border-top: 1px solid var(--line); position: relative; }
.rings li::before { content: ""; position: absolute; left: 2px; top: 27px; width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid var(--gold); }
.rings li:last-child { border-bottom: 1px solid var(--line); }
.ch--ingredients .wrap { display: block; }

/* momentum flight */
.ch--momentum { min-height: 150vh; }
.ch--momentum .copy { max-width: 560px; }
.ch--journey { min-height: 160vh; }

/* founders */
.ch--founders { min-height: 130vh; display: block; padding-top: 18vh; }
.pair--founders { margin-top: 10vh; gap: clamp(20px, 3vw, 40px); }
.pair--founders .card { max-width: none; }
.card--founder .card__tag { color: var(--rose); }

/* faq */
.ch--faq { min-height: 130vh; }
.faq { max-width: 820px; margin: 0 auto; }
.faq h2 { margin-bottom: 26px; text-align: center; }
.faq details { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; margin-top: 10px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 56px 18px 22px; font-weight: 600; font-size: 1.06rem; position: relative; min-height: 44px; transition: color .2s; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 24px; top: 50%; width: 10px; height: 10px; border-right: 1.5px solid var(--gold); border-bottom: 1.5px solid var(--gold); transform: translateY(-70%) rotate(45deg); transition: transform .25s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.faq summary:hover { color: var(--gold); }
.faq details p { padding: 0 22px 20px; color: var(--mist); }

/* launch */
.ch--launch { min-height: 110vh; align-items: flex-end; padding-bottom: 12vh; }
.ch--launch .copy { max-width: 640px; }
.ch--launch .signup { margin-left: 0; justify-content: flex-start; }
.signup { margin: 28px auto 0; display: flex; gap: 12px; align-items: flex-start; justify-content: center; max-width: 560px; text-align: left; }
.field { flex: 1; display: grid; gap: 6px; }
.field label { font-size: .9rem; color: var(--mist); }
.field input { min-height: 48px; border-radius: 999px; border: 1px solid rgba(242,246,252,.4); background: rgba(7,12,24,.6); color: var(--ink); padding: 10px 20px; font: inherit; }
.field input:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.field input[aria-invalid="true"] { border-color: #FF9C8A; }
.field__error { color: #FFB3A6; font-size: .9rem; }
.signup .btn { margin-top: 28px; }

/* ---------------------------------------------------------------- footer */
.foot { position: relative; z-index: 3; background: #050911; border-top: 1px solid var(--line); padding: 56px 0 36px; }
.foot__top { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.foot__mark { font: 600 1.6rem/1 var(--display); letter-spacing: .04em; }
.foot__line { color: var(--gold); margin-top: 8px; }
.foot__nav { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.foot__nav a { color: var(--mist); text-decoration: none; padding: 10px 0; min-height: 44px; display: inline-flex; align-items: center; transition: color .2s; }
.foot__nav a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.foot__legal { margin-top: 32px; max-width: 900px; color: var(--mist); font-size: .9rem; }
.foot__small { margin-top: 18px; color: rgba(180,193,214,.85); font-size: .82rem; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 900px) {
  .bar__nav { display: none; }
  .bar__toggle { display: inline-flex; }
  .bar.is-open { background: rgba(7,12,24,.96); backdrop-filter: blur(8px); }
  .bar.is-open .bar__in { flex-wrap: wrap; }
  .bar.is-open .bar__nav { display: flex; order: 4; flex-direction: column; flex-basis: 100%; gap: 2px; margin: 8px 0 6px; }
  .bar.is-open .bar__nav a { font-size: 1.15rem; color: var(--ink); padding: 12px 4px; border-radius: 8px; }
  .pair { grid-template-columns: 1fr; gap: 18px; margin-top: 42vh; }
  .pair > .card:last-child { justify-self: stretch; }
  .card { max-width: none; }
  .pair--founders { margin-top: 6vh; }
}
@media (max-width: 767px) {
  body { font-size: 1rem; }
  .ch { padding: 96px 0 72px; align-items: flex-end; }
  .ch--hero { padding-bottom: 56px; }
  .ch--story { padding-top: 46vh; }
  .values { margin-top: 10vh; }
  .ch--ingredients { padding-top: 44vh; }
  .rings { margin-top: 8vh; }
  /* phones: a clear screen of the two 3D product forms before the cards arrive */
  .ch--products { padding-top: 92vh; padding-top: 92svh; }
  .ch--founders { padding-top: 14vh; }
  .facts { grid-template-columns: 1fr 1fr; }
  .signup { flex-direction: column; align-items: stretch; }
  .signup .btn { margin-top: 0; width: 100%; }
  .actions .btn { flex: 1 1 100%; }
  .copy--right { margin-left: 0; }
  .scrim::before { inset: -8% -10%; }
  .bar { padding-top: 10px; padding-bottom: 10px; }
  .mark span { font-size: .92rem; letter-spacing: .05em; }
  .bar__in { gap: 12px; }
  .bar .btn--small { padding: 10px 14px; font-size: .88rem; }
}
@media (max-width: 400px) {
  .b-long { display: none; } .b-short { display: inline; }
}
@media (max-width: 360px) {
  .mark__word { display: none; }
  .facts { grid-template-columns: 1fr; }
}

/* static / reduced motion: the designed poster behind the full story in normal flow */
html.static .ch--wings, html.static .ch--products, html.static .ch--story, html.static .ch--ingredients,
html.static .ch--momentum, html.static .ch--journey, html.static .ch--founders, html.static .ch--faq { min-height: auto; padding: 120px 0; }
html.static .ch--wings .hold { position: static; height: auto; padding: 0; }
html.static .pair, html.static .values, html.static .rings { margin-top: 48px; }
html.static .ch--story, html.static .ch--ingredients { padding-top: 120px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
}
