/* ==========================================================================
   NoxWhale v2 — stylesheet
   Layout, type scale and spacing follow the Ekon Framer template.
   Type scale reduced ~22% from the previous pass to match the template's
   actual rendered proportions.
   ========================================================================== */

:root{
  --black:#000;
  --white:#fff;
  --mute:rgba(255,255,255,.55);
  --mute-2:rgba(255,255,255,.38);
  --line:rgba(255,255,255,.12);
  --max:1200px;
  --pad:30px;
  --sans:'Inter Tight','Inter',sans-serif;
  --mono:'Geist Mono',ui-monospace,monospace;
  --ease:cubic-bezier(.65,0,.35,1);
  --ease-out:cubic-bezier(.22,1,.36,1);
}

*{margin:0;padding:0;box-sizing:border-box}
html{scroll-behavior:smooth}
body{background:var(--black);color:var(--white);font-family:var(--sans);font-size:15px;line-height:1.5em;-webkit-font-smoothing:antialiased;overflow-x:hidden}
img{max-width:100%;display:block}
a{color:inherit;text-decoration:none}
button{font:inherit;color:inherit;background:none;border:none;cursor:pointer}
svg.s{width:1em;height:1em;fill:currentColor;display:inline-block;vertical-align:-.08em}
:focus-visible{outline:2px solid var(--white);outline-offset:3px}

.skip{position:absolute;left:-9999px;top:0;z-index:999;background:var(--white);color:var(--black);padding:12px 18px;font-family:var(--mono);font-size:11px;letter-spacing:.12em;text-transform:uppercase}
.skip:focus{left:0}

/* ---------- primitives ---------- */

.sec{padding:80px var(--pad)}
section[id]{scroll-margin-top:92px}
.inner{max-width:var(--max);margin:0 auto;width:100%}

.label{font-family:var(--mono);font-size:11px;line-height:1.3em;letter-spacing:.08em;text-transform:uppercase;color:var(--mute-2)}
.label-w{color:var(--white)}

h1,h2,h3{font-weight:500;letter-spacing:-.02em;line-height:1.05em}

/* template scale, ~22% down from the previous pass */
.d-hero{font-size:46px;font-weight:600;letter-spacing:-.03em;line-height:1em}
.d-sec{font-size:44px;font-weight:700;letter-spacing:-.01em;line-height:1em;text-transform:uppercase}
.d-stmt{font-size:27px;font-weight:500;letter-spacing:-.015em;line-height:1.35em}
.d-num{font-size:24px;font-weight:600;letter-spacing:-.02em;line-height:1.1em}
.d-item{font-size:19px;font-weight:600;letter-spacing:-.01em;line-height:1.2em}
.t-md{font-size:15px;line-height:1.5em}
.t-sm{font-size:14px;line-height:1.55em}

p{color:var(--mute);max-width:600px}

.btn{display:inline-flex;align-items:center;gap:8px;padding:13px 20px;font-size:12px;font-weight:600;line-height:1em;letter-spacing:.06em;text-transform:uppercase;border-radius:3px;white-space:nowrap;transition:opacity .3s,background .3s,color .3s}
.btn .s{font-size:11px;transition:transform .35s var(--ease)}
.btn:hover .s{transform:translateX(3px)}
.btn-w{background:var(--white);color:var(--black)}
.btn-w:hover{opacity:.85}

/* section header: title + subhead left, button right */
.shead{display:flex;justify-content:space-between;align-items:flex-start;gap:40px;margin-bottom:56px}
.shead h2{margin-bottom:14px}
.shead p{max-width:340px;font-size:15px;line-height:1.5em}

/* ---------- loader ---------- */

.loader{position:fixed;inset:0;z-index:300;pointer-events:none;animation:ld-out 0s linear 3.9s forwards}
.panels{position:absolute;inset:0;display:flex}
.panels i{flex:1;background:var(--black);animation:panel-up .95s var(--ease) forwards}
.panels i:nth-child(1){animation-delay:2.6s}
.panels i:nth-child(2){animation-delay:2.72s}
.panels i:nth-child(3){animation-delay:2.84s}
.panels i:nth-child(4){animation-delay:2.96s}
.ld-txt{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;text-align:center;animation:fade-out .5s var(--ease) 2.4s forwards}
.ld-mark{font-size:46px;font-weight:600;letter-spacing:-.03em;line-height:1.08em;overflow:hidden}
.ld-mark span{display:inline-block;transform:translateY(110%);filter:blur(6px);opacity:0;animation:ld-letter .7s var(--ease) forwards}
.ld-mark span:nth-child(1){animation-delay:.15s}
.ld-mark span:nth-child(2){animation-delay:.205s}
.ld-mark span:nth-child(3){animation-delay:.26s}
.ld-mark span:nth-child(4){animation-delay:.315s}
.ld-mark span:nth-child(5){animation-delay:.37s}
.ld-mark span:nth-child(6){animation-delay:.425s}
.ld-mark span:nth-child(7){animation-delay:.48s}
.ld-mark span:nth-child(8){animation-delay:.535s}
@keyframes ld-letter{to{transform:none;filter:blur(0);opacity:1}}
.ld-sub{font-family:var(--mono);font-size:11px;letter-spacing:.2em;text-transform:uppercase;color:var(--mute-2);opacity:0;animation:fade-in .8s var(--ease) .95s forwards}
@keyframes panel-up{to{transform:translateY(-101%)}}
@keyframes fade-in{to{opacity:1}}
@keyframes fade-out{to{opacity:0}}
@keyframes ld-out{to{visibility:hidden}}

/* ---------- nav ---------- */

/* Always stuck, always frosted. The glass lives on a pseudo-element that
   is masked to fade out at the bottom — a plain backdrop-filter cuts off
   hard at the element edge and leaves a visible seam. No border for the
   same reason. */
nav{
  position:fixed;top:0;left:0;right:0;z-index:100;
  padding:0 var(--pad);height:72px;display:flex;align-items:center;
  isolation:isolate;
}
nav::before{
  content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;
  background:linear-gradient(180deg,rgba(0,0,0,.5),rgba(0,0,0,0));
  backdrop-filter:blur(14px) saturate(125%);
  -webkit-backdrop-filter:blur(14px) saturate(125%);
  -webkit-mask-image:linear-gradient(to bottom,#000 45%,transparent 100%);
  mask-image:linear-gradient(to bottom,#000 45%,transparent 100%);
  transition:opacity .3s;
}
nav.scrolled::before{background:linear-gradient(180deg,rgba(0,0,0,.72),rgba(0,0,0,.1))}
.nav-in{max-width:var(--max);margin:0 auto;width:100%;display:flex;align-items:center;justify-content:space-between;gap:24px}
.logo{display:flex;align-items:center;gap:8px;font-size:17px;font-weight:600;letter-spacing:-.02em}
.logo .s{font-size:16px}
/* nav carries the mark alone, so it runs larger */
.logo-mark .s{font-size:24px}
.nav-links{display:flex;align-items:center;gap:26px}
.nav-links .label{font-weight:600;color:var(--white);opacity:.8;transition:opacity .3s}
.nav-links .label:hover{opacity:1}
.nav-cta{padding:11px 16px}

/* ---------- hero: fully centred, like the template ---------- */

/* extra bottom padding lifts the centred block above true centre */
.hero{position:relative;min-height:100svh;display:flex;align-items:center;justify-content:center;padding:100px var(--pad) 190px;overflow:hidden;text-align:center}
.hero-bg{position:absolute;inset:0;z-index:0}
/* taller than the frame so it can be shifted on scroll without gapping */
.hero-bg img{width:100%;height:118%;object-fit:cover;will-change:transform}
/* lighter at the top so the fog reads, deepest behind the text, and
   near-black at the base so the hero melts into the black page below */
.hero-bg::after{
  content:"";position:absolute;inset:0;
  background:linear-gradient(180deg,rgba(0,0,0,.3) 0%,rgba(0,0,0,.52) 42%,rgba(0,0,0,.72) 72%,rgba(0,0,0,.96) 100%);
}
.hero-in{position:relative;z-index:1;max-width:760px}
/* starts while the loader panels are still lifting, so the text is
   already arriving as the curtain clears rather than after it */
.enter{animation:enter-rise .95s var(--ease) both;animation-delay:calc(3s + var(--d,0s))}
@keyframes enter-rise{from{opacity:0;transform:translateY(26px);filter:blur(10px)}to{opacity:1;transform:none;filter:blur(0)}}
.hero h1{margin-bottom:18px}
.hero h1 em{font-style:normal;color:rgba(255,255,255,.55)}
/* balance keeps the two lines close to equal width instead of leaving
   an orphan on the second line */
/* Two deliberate lines rather than balanced ones: line two is shorter,
   which gives the block a tapered drop instead of a square paragraph. */
.hero-tag{font-size:15px;line-height:1.5em;color:rgba(255,255,255,.9);max-width:620px;margin:0 auto}
.hero-tag span{display:block}
.hero-tag span + span{margin-top:2px}
.hero-foot{position:absolute;left:var(--pad);right:var(--pad);bottom:34px;z-index:1}
.hero-foot-in{max-width:var(--max);margin:0 auto;display:grid;grid-template-columns:repeat(4,1fr);gap:20px}
.hero-foot .label{font-weight:600;color:var(--white)}

/* ---------- vision: centred block ---------- */

.vision-stmt{max-width:800px;margin:0 auto 80px}
/* Equal 1fr columns left-align their contents, so a short last value
   ("No charge") strands a gap before the container edge. space-between
   sizes each item to its text and pins the first to the left edge and
   the last to the right — genuinely flush on both sides. */
.stats{display:flex;flex-wrap:wrap;justify-content:space-between;gap:34px 30px}
.stat{flex:0 1 auto}
.stat .d-num{margin-bottom:8px}

/* ---------- funnel: horizontal card row (template's works pattern) ---------- */

/* Contained grid, not a scroller: five equal columns inside .inner, so
   both edges line up with the section heading and nothing is sliced off.
   Cards go portrait because five across a 1200px container is narrow. */
.rail{display:grid;grid-template-columns:repeat(5,1fr);gap:16px}
.card{position:relative;aspect-ratio:3/4;overflow:hidden;border-radius:3px}
.card img{width:100%;height:100%;object-fit:cover;transition:transform .7s var(--ease)}
.card:hover img{transform:scale(1.04)}
.card::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,.15),rgba(0,0,0,.72))}
.card-cap{position:absolute;left:20px;bottom:18px;z-index:2}
.card-cap .label{color:rgba(255,255,255,.7);display:block;margin-bottom:5px}
.card-cap .name{font-size:22px;font-weight:700;letter-spacing:-.01em;text-transform:uppercase;line-height:1em}
.card-cap .meas{font-family:var(--mono);font-size:11px;letter-spacing:.08em;text-transform:uppercase;color:rgba(255,255,255,.92);margin-top:8px;display:block}
.card-cap{transition:transform .45s var(--ease)}
.card:hover .card-cap,.card:focus-within .card-cap{transform:translateY(-10px)}

/* hover: panel slides up from the bottom edge */
.card-panel{
  position:absolute;left:0;right:0;bottom:0;z-index:3;
  background:rgba(0,0,0,.86);
  backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);
  border-top:1px solid var(--line);
  padding:16px 20px;
  transform:translateY(101%);
  transition:transform .45s var(--ease);
}
.card:hover .card-panel,.card:focus-within .card-panel{transform:translateY(0)}
.card-panel p{font-size:13px;line-height:1.5em;color:rgba(255,255,255,.88);max-width:none}

.rail-note{margin-top:40px;max-width:620px}

/* scroll-fill statement: words start dim and fill to white on scroll.
   Base state is white, so if JS never runs the text is fully readable. */
.fill-text .w{transition:color .45s var(--ease)}
.fill-text.fill-ready .w{color:rgba(255,255,255,.18)}
.fill-text.fill-ready .w.on{color:#fff}

/* ---------- what we build: left/right split rows, black ---------- */

.rows{border-top:1px solid var(--line)}
.brow{
  position:relative;
  display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.5fr);gap:40px;
  padding:36px 0;border-bottom:1px solid var(--line);
  transition:padding-left .45s var(--ease);
}
/* hover: rule wipes down the left edge and the row steps in,
   same language as the funnel cards */
.brow::before{
  content:"";position:absolute;left:0;top:0;bottom:0;width:2px;background:#fff;
  transform:scaleY(0);transform-origin:top;
  transition:transform .45s var(--ease);
}
.brow:hover{padding-left:20px}
.brow:hover::before{transform:scaleY(1)}
.brow p{transition:color .35s var(--ease)}
.brow:hover p{color:rgba(255,255,255,.82)}

/* rows arrive one after another once the block scrolls in */
.stagger .brow{transition:opacity .85s var(--ease-out),transform .85s var(--ease-out),padding-left .45s var(--ease)}
.js .stagger .brow{opacity:0;transform:translateY(30px)}
.stagger.visible .brow{opacity:1;transform:none}
.stagger.visible .brow:nth-child(2){transition-delay:.16s,.16s,0s}
.stagger.visible .brow:nth-child(3){transition-delay:.32s,.32s,0s}
.stagger.visible .brow:nth-child(4){transition-delay:.48s,.48s,0s}
.stagger.visible .brow:nth-child(5){transition-delay:.64s,.64s,0s}
.stagger.visible .brow:nth-child(6){transition-delay:.8s,.8s,0s}
.brow-r{display:grid;grid-template-columns:150px 1fr;gap:30px}
.brow-tags{display:flex;flex-wrap:wrap;gap:10px 20px;align-content:start}
.brow-tags span{font-size:13px;font-weight:600;letter-spacing:.02em;text-transform:uppercase;color:var(--white);white-space:nowrap;transition:color .45s var(--ease)}
.brow p{font-size:14px;line-height:1.55em;max-width:420px}

/* Descriptions are hidden until asked for. grid-template-rows animates
   height without needing a fixed value. Tap drives .is-open on touch. */
.brow{cursor:pointer}
.brow-desc{display:grid;grid-template-rows:0fr;transition:grid-template-rows .5s var(--ease)}
.brow-desc > div{overflow:hidden}
.brow-desc p{padding-top:16px}
.brow:hover .brow-desc,.brow:focus-within .brow-desc,.brow.is-open .brow-desc{grid-template-rows:1fr}

.build-note{margin-top:40px;font-size:19px;font-weight:500;letter-spacing:-.01em;color:var(--white);max-width:620px}

/* ---------- founder ----------
   Name leads, the copy reads on from it in two columns, portrait holds
   the right. Greyscale keeps it inside the monochrome rule. */

.founder-grid{display:grid;grid-template-columns:1fr 340px;gap:64px;align-items:center}
.founder-body .label{display:block;margin-bottom:20px}
.founder-name{font-size:28px;font-weight:700;letter-spacing:-.01em;text-transform:uppercase;line-height:1.1em;margin-bottom:34px}
.founder-cols{display:grid;grid-template-columns:repeat(2,1fr);gap:40px}
.founder-cols p{font-size:14px;line-height:1.65em;max-width:none}
.founder-links{display:flex;flex-wrap:wrap;gap:20px;margin-top:34px}
.founder-links a{transition:color .3s}
.founder-links a:hover{color:var(--white)}
.founder-media img{width:100%;aspect-ratio:3/4;object-fit:cover;filter:grayscale(1) contrast(1.04)}

/* ---------- faq ---------- */

.faq{border-top:1px solid var(--line)}
.faq-item{border-bottom:1px solid var(--line)}
.faq-btn{width:100%;display:flex;align-items:center;justify-content:space-between;gap:24px;padding:26px 0;text-align:left;font-size:19px;font-weight:600;letter-spacing:-.01em;line-height:1.25em;transition:opacity .3s}
.faq-btn:hover{opacity:.7}
.faq-ic{flex:none;width:12px;height:12px;position:relative}
.faq-ic::before,.faq-ic::after{content:"";position:absolute;background:var(--white);transition:transform .35s var(--ease)}
.faq-ic::before{top:5.5px;left:0;width:12px;height:1px}
.faq-ic::after{left:5.5px;top:0;width:1px;height:12px}
.faq-btn[aria-expanded="true"] .faq-ic::after{transform:scaleY(0)}
.faq-panel{display:grid;grid-template-rows:0fr;transition:grid-template-rows .4s var(--ease)}
.faq-panel[data-open="true"]{grid-template-rows:1fr}
.faq-panel>div{overflow:hidden}
.faq-panel p{padding-bottom:28px;font-size:15px;max-width:660px}

/* ---------- closer + footer ---------- */

.closer{position:relative;overflow:hidden;padding:130px var(--pad)}
.closer-bg{position:absolute;inset:0;z-index:0}
.closer-bg img{width:100%;height:100%;object-fit:cover}
.closer-bg::after{content:"";position:absolute;inset:0;background:rgba(0,0,0,.78)}
.closer-in{position:relative;z-index:1;max-width:var(--max);margin:0 auto;text-align:center}
.closer h2{max-width:800px;margin:18px auto 24px}
.closer p{margin:0 auto 32px;text-align:center}
.closer-meta{display:flex;flex-wrap:wrap;gap:20px;justify-content:center;align-items:center}

footer{border-top:1px solid var(--line);padding:34px var(--pad)}
.foot{max-width:var(--max);margin:0 auto;display:flex;flex-wrap:wrap;gap:20px;justify-content:space-between;align-items:center}
.foot-links{display:flex;flex-wrap:wrap;gap:20px}
.foot-links a{transition:color .3s}
.foot-links a:hover{color:var(--white)}

/* ---------- shared entrance for staggered children ----------
   Transform + opacity only, so it stays smooth on phones as well as
   desktop. Containers carrying .stagger are exempt from the block fade
   above, so children animate once rather than fading twice. */

.stagger .card,.stagger .stat,.stagger .faq-item{
  transition:opacity .75s var(--ease),transform .75s var(--ease);
}
.js .stagger .card{opacity:0;transform:translateY(26px) scale(.985)}
.js .stagger .stat,.js .stagger .faq-item{opacity:0;transform:translateY(18px)}
.stagger.visible .card,.stagger.visible .stat,.stagger.visible .faq-item{opacity:1;transform:none}

.stagger.visible .card:nth-child(2),.stagger.visible .stat:nth-child(2),.stagger.visible .faq-item:nth-child(2){transition-delay:.09s}
.stagger.visible .card:nth-child(3),.stagger.visible .stat:nth-child(3),.stagger.visible .faq-item:nth-child(3){transition-delay:.18s}
.stagger.visible .card:nth-child(4),.stagger.visible .stat:nth-child(4),.stagger.visible .faq-item:nth-child(4){transition-delay:.27s}
.stagger.visible .card:nth-child(5),.stagger.visible .faq-item:nth-child(5){transition-delay:.36s}
.stagger.visible .faq-item:nth-child(6){transition-delay:.45s}
.stagger.visible .faq-item:nth-child(7){transition-delay:.54s}
.stagger.visible .faq-item:nth-child(8){transition-delay:.63s}

/* ---------- reveal ---------- */

.reveal{transition:opacity .8s var(--ease),transform .8s var(--ease)}
/* Both rules must carry the same specificity (0,3,0). The :not() above
   counts as a third class, so a plain `.reveal.visible` (0,2,0) would lose
   to it and nothing would ever become visible. */
.js .reveal:not(.stagger){opacity:0;transform:translateY(18px)}
.js .reveal.visible{opacity:1;transform:none}

/* ---------- responsive ---------- */

@media (max-width:1040px){
  .d-hero{font-size:38px}
  .d-sec{font-size:34px}
  .d-stmt{font-size:22px}
  .shead{flex-direction:column;gap:22px}
  .shead p{max-width:480px}
  .stats{display:grid;grid-template-columns:repeat(2,1fr);gap:26px}
  .hero-foot-in{grid-template-columns:repeat(2,1fr);gap:14px}
  .brow{grid-template-columns:1fr;gap:20px}
  .brow-r{grid-template-columns:1fr;gap:16px}
  .rail{grid-template-columns:repeat(3,1fr)}
  .founder-grid{grid-template-columns:1fr;gap:36px}
  .founder-media{max-width:250px;order:-1}
  .founder-cols{grid-template-columns:1fr;gap:20px}
}

@media (max-width:679px){
  :root{--pad:20px}
  .sec{padding:60px var(--pad)}
  .d-hero{font-size:30px}
  .d-sec{font-size:27px}
  .d-stmt{font-size:19px}
  .d-num{font-size:20px}
  .d-item{font-size:17px}
  nav{height:62px}
  .nav-links{gap:14px}
  .nav-links .label:not(.nav-cta){display:none}
  .hero{padding:90px var(--pad) 110px;min-height:92svh}
  .rail{grid-template-columns:repeat(2,1fr);gap:12px}
  .faq-btn{font-size:16px;padding:22px 0}
  /* Explicit width and height rather than aspect-ratio: the ratio was
     not holding here and the portrait stretched into a tall sliver.
     Centred, with the copy reading beneath it. */
  .founder-grid{gap:24px}
  .founder-media{max-width:none;width:200px;margin:0 auto}
  .founder-media img{width:200px;height:267px;aspect-ratio:auto}
  .founder-name{font-size:22px;margin-bottom:20px}
  .founder-body .label{margin-bottom:12px}
  .founder-links{margin-top:24px;gap:16px}
  .closer{padding:90px var(--pad)}
  .build-note{font-size:17px}
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{animation-duration:.01ms !important;animation-delay:0ms !important;transition-duration:.01ms !important}
  .loader{display:none}
  .reveal{opacity:1;transform:none}
}
