/* Orca Aerospace — landing site.
   Plain HTML/CSS/JS in public/, no framework, no build step, served static on
   GitHub Pages. Implements the Orca Aerospace design-system landing handoff:
   a dark, single-page narrative (hero → problem → answer → contact) plus the
   Join / Privacy / Terms document pages. */

/* ---------- Fonts (Geist, SIL OFL, self-hosted). The brand display face
   "NewBlack" is commercially licensed and not included, so --orca-font-display
   falls back to Geist. Drop the licensed woff2 into assets/fonts/newblack/ and
   add its @font-face to restore it. */
@font-face{font-family:"Geist";src:url("assets/fonts/geist/Geist-Light.woff2") format("woff2");font-weight:300;font-style:normal;font-display:swap}
@font-face{font-family:"Geist";src:url("assets/fonts/geist/Geist-Regular.woff2") format("woff2");font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:"Geist";src:url("assets/fonts/geist/Geist-Medium.woff2") format("woff2");font-weight:500;font-style:normal;font-display:swap}
@font-face{font-family:"Geist";src:url("assets/fonts/geist/Geist-SemiBold.woff2") format("woff2");font-weight:600;font-style:normal;font-display:swap}
@font-face{font-family:"Geist";src:url("assets/fonts/geist/Geist-Bold.woff2") format("woff2");font-weight:700;font-style:normal;font-display:swap}

/* ---------- Tokens (from the design system's tokens/*.css) ---------- */
:root{
  --orca-deep-space-navy:#17285C; /* page background */
  --orca-aerospace-blue:#068CEB;  /* accent / fills */
  --orca-accent-hover:#057ACC;    /* button hover (the page uses this literal) */
  --orca-atmosphere-blue:#8FD1F9; /* eyebrows, labels, constellation accents */
  --orca-problem-bg:#050D24;      /* problem section */
  --orca-footer-bg:#040A1D;       /* footer */
  --orca-font-display:"NewBlack","Geist",system-ui,sans-serif;
  --orca-font-body:"Geist",system-ui,-apple-system,sans-serif;
  --orca-font-mono:ui-monospace,SFMono-Regular,Menlo,monospace;
}

/* ---------- Base ---------- */
*{box-sizing:border-box}
[hidden]{display:none !important}
html{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;scroll-behavior:smooth}
body{margin:0;font-family:var(--orca-font-body);background:var(--orca-deep-space-navy);color:#fff;min-height:100vh;overflow-wrap:break-word}
h1,h2,h3{margin:0;font-family:var(--orca-font-display);font-weight:600}
img{max-width:100%;height:auto}
a{color:inherit}
:focus-visible{outline:2px solid var(--orca-aerospace-blue);outline-offset:3px}
::selection{background:var(--orca-atmosphere-blue);color:var(--orca-deep-space-navy)}
.container{max-width:1280px;margin:0 auto;padding:0 48px}

.skip-link{position:absolute;left:16px;top:-60px;z-index:60;background:var(--orca-aerospace-blue);color:#fff;padding:10px 16px;border-radius:2px;font-size:15px;font-weight:600;text-decoration:none;transition:none}
.skip-link:focus{top:16px}

/* ---------- Motion ---------- */
@keyframes hlRise{from{opacity:0;transform:translateY(24px)}to{opacity:1;transform:none}}
@keyframes hlDrift{from{transform:translate3d(0,0,0)}to{transform:translate3d(-340px,-240px,0)}}
@keyframes hlSwim{from{transform:translate3d(0,0,0)}to{transform:translate3d(-2600px,-1840px,0)}}
@keyframes hlSwimR{from{transform:translate3d(0,0,0)}to{transform:translate3d(2600px,1840px,0)}}

/* Scroll reveal (elements start hidden, .on when observed). */
.rv{opacity:0;transform:translateY(28px);transition:opacity .7s cubic-bezier(0,0,.2,1),transform .7s cubic-bezier(0,0,.2,1)}
.rv.on{opacity:1;transform:none}

@media (prefers-reduced-motion:reduce){
  *{animation-duration:.001s !important;animation-iteration-count:1 !important}
  .rv{opacity:1;transform:none;transition:none}
  html{scroll-behavior:auto}
}

/* ---------- Starfield + orca constellations ---------- */
/* One tile of ten radial-gradient stars, sized so exactly one tile scrolls per
   hlDrift loop (background-size = the transform distance) — a seamless drift. */
/* Ten stars per 340×240 tile. Every centre is kept clear of the tile edges
   (x well inside 0..340, y inside 0..240) so no dot is split across the tile
   seam. Each is a solid core fading to transparent — crisp, not fuzzy. */
.stars{
  position:absolute;inset:-30%;pointer-events:none;opacity:1;
  background-image:
    radial-gradient(circle at 28px 34px,#fff 0 1.1px,transparent 2.4px),
    radial-gradient(circle at 148px 92px,rgba(255,255,255,.96) 0 1px,transparent 2.1px),
    radial-gradient(circle at 258px 46px,#8FD1F9 0 1.3px,transparent 2.9px),
    radial-gradient(circle at 316px 188px,rgba(255,255,255,.94) 0 1px,transparent 2.1px),
    radial-gradient(circle at 62px 158px,rgba(255,255,255,.94) 0 .9px,transparent 1.9px),
    radial-gradient(circle at 202px 214px,#fff 0 1.1px,transparent 2.4px),
    radial-gradient(circle at 300px 118px,#8FD1F9 0 1px,transparent 2px),
    radial-gradient(circle at 96px 214px,rgba(255,255,255,.92) 0 1px,transparent 2.1px),
    radial-gradient(circle at 244px 196px,rgba(255,255,255,.92) 0 .9px,transparent 1.8px),
    radial-gradient(circle at 168px 26px,rgba(255,255,255,.94) 0 1.1px,transparent 2.4px);
  background-size:340px 240px;
  animation:hlDrift 44s linear infinite;
}
.stars--hero{opacity:1;animation-duration:44s}
.stars--problem{animation-duration:52s;animation-direction:reverse}
.stars--answer{animation-duration:48s}
.stars--contact{animation-duration:56s}
/* Fixed page-level field for the document pages (behind all content). */
.stars--page{position:fixed;z-index:0;animation-duration:60s;opacity:.8}

.drifter{position:absolute;pointer-events:none;opacity:.95;will-change:transform}
.drifter--hero{right:-22%;top:52%;width:380px;animation:hlSwim 170s linear -30s infinite}
.drifter--problem{left:-14%;top:-4%;width:300px;animation:hlSwimR 180s linear -40s infinite}
.drifter--answer{right:-20%;top:58%;width:320px;animation:hlSwim 175s linear -35s infinite}
/* A soft occlusion patch in the section colour blanks background stars behind
   each constellation so it reads as a single shape swimming across the field. */
.drifter__patch{position:absolute;inset:-16% -8%}
.drifter--hero .drifter__patch,
.drifter--answer .drifter__patch{background:radial-gradient(ellipse 62% 66% at 50% 46%,#17285C 42%,transparent 74%)}
.drifter--problem .drifter__patch{background:radial-gradient(ellipse 62% 66% at 50% 46%,#050D24 42%,transparent 74%)}
.orca{position:relative;display:block;width:100%;height:auto;overflow:visible}

/* ---------- Shared type ---------- */
.eyebrow{display:inline-flex;align-items:center;gap:8px;font-size:13px;font-weight:600;letter-spacing:.16em;text-transform:uppercase;color:var(--orca-atmosphere-blue)}
.accent{color:var(--orca-aerospace-blue)}

/* ---------- Buttons ---------- */
.btn{display:inline-block;border:none;border-radius:2px;font-family:var(--orca-font-body);font-weight:600;text-decoration:none;cursor:pointer;transition:none}
.btn--primary{background:var(--orca-aerospace-blue);color:#fff;padding:14px 22px;font-size:16px;white-space:nowrap}
.btn--primary:hover{background:var(--orca-accent-hover)}
.btn--primary:active{transform:translateY(1px)}
.btn--cta{background:var(--orca-aerospace-blue);color:#fff;padding:16px 32px;font-size:17px}
.btn--cta:hover{background:var(--orca-accent-hover)}
.btn--cta:active{transform:translateY(1px)}
.btn--pill{background:#fff;color:var(--orca-deep-space-navy);padding:9px 18px;font-size:14px}
.btn--pill:hover{background:var(--orca-atmosphere-blue)}

/* ---------- Header ---------- */
/* Opaque so scrolled body text can't show through the fixed header. It matches
   the hero navy (seamless at the top) and reads as a bar once content scrolls under. */
.site-header{position:fixed;top:0;left:0;right:0;z-index:30;background:var(--orca-deep-space-navy);border-bottom:1px solid rgba(255,255,255,.06)}
.site-header__inner{display:flex;align-items:center;justify-content:space-between;gap:32px;padding:20px 48px;max-width:1280px;margin:0 auto}
/* width:auto so the img's width/height attributes drive the aspect ratio off
   the 32px height, instead of the width attribute stretching the lockup. */
.site-header__logo{height:32px;width:auto;display:block}
.site-nav{display:flex;align-items:center;gap:28px}
.site-nav__links{display:flex;align-items:center;gap:28px}
.site-nav a{font-size:15px;letter-spacing:.06em;color:#fff;text-decoration:none}
.site-nav a:hover{color:#fff}
/* .site-nav a (element+class) outspecifies .btn--pill (class only), so the pill
   needs the descendant form to keep its navy-on-white text. */
.site-nav .btn--pill{color:var(--orca-deep-space-navy)}
.site-nav .btn--pill:hover{color:var(--orca-deep-space-navy)}

/* ---------- Hero ---------- */
.hero{position:relative;overflow:hidden;min-height:100vh;display:flex;align-items:center;background:var(--orca-deep-space-navy)}
.hero__wash{position:absolute;inset:0;background:linear-gradient(180deg,rgba(4,10,29,.35),transparent 40%);pointer-events:none}
.hero__inner{max-width:1280px;margin:0 auto;padding:140px 48px 96px;position:relative;z-index:1;width:100%}
.hero h1{margin:0;font-size:clamp(54px,7.4vw,96px);line-height:1.06;letter-spacing:-0.015em;color:#fff;max-width:14ch;animation:hlRise .8s .14s both cubic-bezier(0,0,.2,1)}
.hero__lede{margin:28px 0 0;max-width:52ch;font-size:20px;line-height:1.55;color:#fff;animation:hlRise .8s .26s both cubic-bezier(0,0,.2,1)}
.hero__form{display:flex;gap:10px;margin-top:40px;max-width:520px;animation:hlRise .8s .36s both cubic-bezier(0,0,.2,1)}
.hero__input{flex:1;min-width:0;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.22);border-radius:2px;padding:14px 16px;font-size:16px;color:#fff;font-family:var(--orca-font-body);outline:none}
.hero__input::placeholder{color:rgba(255,255,255,.75)}
.hero__input:focus{border-color:var(--orca-aerospace-blue)}
.hero__chip{display:inline-flex;align-items:center;gap:10px;margin-top:40px;border:1px solid rgba(143,209,249,.4);border-radius:2px;padding:14px 20px;font-size:16px;color:var(--orca-atmosphere-blue);animation:hlRise .5s both cubic-bezier(0,0,.2,1)}
.hero__chip-dot{width:7px;height:7px;border-radius:50%;background:var(--orca-atmosphere-blue)}
.hero__yc{display:flex;width:fit-content;align-items:center;gap:9px;margin-top:28px;font-size:15px;letter-spacing:.01em;color:#fff;animation:hlRise .8s .5s both cubic-bezier(0,0,.2,1)}
.hero__yc-logo{display:inline-flex;align-items:center;justify-content:center;width:20px;height:20px;border-radius:3px;background:#FF6600;color:#fff;font-family:var(--orca-font-display);font-weight:700;font-size:14px;line-height:1}

/* ---------- Section shared ---------- */
.section{position:relative;overflow:hidden;scroll-margin-top:40px}
.section__inner{max-width:1280px;margin:0 auto;position:relative;z-index:1}
.section h2{color:#fff}

/* ---------- Problem ---------- */
/* Symmetric gradient: top starts at the hero/answer navy and bottom returns to
   it, dipping to the deep problem tone through the middle — so both the
   hero→problem and problem→answer seams disappear. */
.problem{background:linear-gradient(180deg,var(--orca-deep-space-navy) 0%,var(--orca-problem-bg) 26%,var(--orca-problem-bg) 74%,var(--orca-deep-space-navy) 100%)}
.problem .section__inner{padding:140px 48px}
.problem h2{margin:20px 0 0;font-size:clamp(40px,4.8vw,64px);line-height:1.1;letter-spacing:-0.01em;max-width:20ch}
.problem__lede{margin:28px 0 0;max-width:56ch;font-size:19px;line-height:1.6;color:#fff}
.numbered{margin-top:72px;border-top:1px solid rgba(255,255,255,.14)}
.numbered__row{padding:28px 0;border-bottom:1px solid rgba(255,255,255,.14)}
.numbered__t{display:block;font-family:var(--orca-font-display);font-weight:600;font-size:clamp(24px,2.6vw,32px);line-height:1.25;color:#fff}

/* ---------- Answer ---------- */
.answer{background:var(--orca-deep-space-navy)}
.answer .section__inner{padding:140px 48px 72px}
.answer__col{max-width:760px}
.answer h2{margin:20px 0 0;font-size:clamp(44px,5.4vw,72px);line-height:1.08;letter-spacing:-0.01em}
.answer__lede{margin:28px 0 0;max-width:52ch;font-size:19px;line-height:1.6;color:#fff}
.answer__credit{margin:36px 0 0;max-width:52ch;font-size:17px;line-height:1.6;color:#fff}
.answer__credit a{color:var(--orca-atmosphere-blue);text-decoration:none}
.answer__credit a:hover{color:#fff}
.defs{margin-top:52px;display:grid;gap:0;border-top:1px solid rgba(255,255,255,.14)}
.defs__row{display:grid;grid-template-columns:160px 1fr;gap:24px;padding:24px 0;border-bottom:1px solid rgba(255,255,255,.14)}
.defs__label{font-family:var(--orca-font-display);font-weight:600;font-size:18px;color:var(--orca-atmosphere-blue)}
.defs__body{font-size:17px;line-height:1.6;color:#fff}

/* ---------- Contact ---------- */
/* Eases from the answer navy at the top toward the footer's darker tone. */
.contact{background:linear-gradient(180deg,var(--orca-deep-space-navy) 0%,var(--orca-deep-space-navy) 50%,#0B1430 100%)}
.contact .section__inner{padding:64px 48px 96px;text-align:center;display:flex;flex-direction:column;align-items:center}
.contact__mark{width:96px;display:block}
.contact h2{margin:24px 0 0;font-size:clamp(44px,5.4vw,72px);line-height:1.08;letter-spacing:-0.01em}
.contact__lede{margin:24px 0 0;max-width:46ch;font-size:19px;line-height:1.6;color:#fff}
.contact__cta{margin-top:40px}

/* ---------- Footer ---------- */
.site-footer{background:var(--orca-footer-bg);border-top:1px solid rgba(255,255,255,.12);position:relative;z-index:1}
.site-footer__inner{max-width:1280px;margin:0 auto;padding:40px 48px 24px;display:flex;align-items:center;justify-content:space-between;gap:24px;flex-wrap:wrap}
.site-footer__brand{display:flex;align-items:center;gap:20px;flex-wrap:wrap}
.site-footer__legal{max-width:1280px;margin:0 auto;padding:0 48px 40px;font-size:13px;letter-spacing:.02em;color:#fff}
.site-footer__legal .mono{font-family:var(--orca-font-mono);color:#fff}
.site-footer__logo{height:26px;width:auto;display:block;opacity:.9}
.site-footer__tag{font-size:14px;color:#fff;text-decoration:none}
.site-footer__tag:hover{color:#fff}
.site-footer__nav{display:flex;align-items:center;gap:24px}
.site-footer__nav a{font-size:14px;color:#fff;text-decoration:none}
.site-footer__nav a:hover{color:#fff}
.site-footer__nav span{font-size:14px;color:#fff}

/* ---------- Document pages (Founders / Join / Privacy / Terms) ----------
   These share the landing's fixed .site-header and .site-footer; the top
   padding clears the fixed header. */
.doc{max-width:840px;margin:0 auto;padding:112px 32px 96px;position:relative;z-index:1}
.doc h1{font-size:48px;line-height:1.1;letter-spacing:-0.01em}
.doc__date{font-size:14px;color:#fff;margin:16px 0 48px}
.doc__intro{font-size:17px;line-height:1.65;color:#fff;margin:20px 0 16px;max-width:56ch}
.doc h2{font-size:22px;font-weight:600;margin:40px 0 12px}
.doc__eyebrow{font-size:13px;font-weight:600;letter-spacing:.16em;text-transform:uppercase;color:var(--orca-atmosphere-blue);margin:56px 0 0}
.doc p{font-size:17px;line-height:1.65;color:#fff;margin:0 0 16px}
.doc a{color:var(--orca-atmosphere-blue);text-decoration:none}
.doc a:hover{color:#fff}
.doc ul{margin:0;padding-left:20px}
.doc li{font-size:17px;line-height:1.65;color:#fff;margin:0 0 8px}
.role{margin-top:20px;border:1px solid rgba(255,255,255,.16);border-radius:2px;padding:32px}
.role__head{display:flex;align-items:baseline;justify-content:space-between;gap:24px;flex-wrap:wrap}
.role__title{font-size:28px}
.role__meta{font-family:var(--orca-font-mono);font-size:14px;letter-spacing:.08em;color:#fff}
.role h2{font-size:20px;margin:36px 0 12px}
.role__eeo{font-size:14px;line-height:1.6;color:#fff;margin:24px 0 0}
.role__apply{display:inline-block;margin-top:28px;background:var(--orca-aerospace-blue);color:#fff;border-radius:2px;padding:13px 24px;font-size:16px;font-weight:600;text-decoration:none}
.role__apply:hover{background:var(--orca-accent-hover);color:#fff}
.doc__closing{font-size:17px;line-height:1.65;color:#fff;margin-top:40px}
.doc__photo-link{display:block;text-decoration:none}
.doc__photo{display:block;width:100%;height:auto;margin:32px 0 0;border-radius:14px;border:1px solid rgba(255,255,255,.16)}
.doc__photo-cap{display:inline-block;margin-top:6px;padding:10px 0;font-size:15px;color:var(--orca-atmosphere-blue)}
.doc__photo-link:hover .doc__photo-cap{color:#fff}
.founders{margin-top:40px;display:flex;flex-direction:column;gap:40px}
.founder{display:grid;grid-template-columns:120px 1fr;gap:28px;align-items:start}
.founder__photo{width:120px;height:120px;border-radius:50%;object-fit:cover;display:block;border:1px solid rgba(255,255,255,.16)}
.founder__name{font-size:26px;margin:0}
.founder__name a{color:#fff;text-decoration:none}
.founder__name a:hover{color:var(--orca-atmosphere-blue)}
.founder__ext{display:inline-block;margin-left:8px;font-size:16px;vertical-align:2px;color:var(--orca-atmosphere-blue)}
.founder__role{font-family:var(--orca-font-mono);font-size:14px;letter-spacing:.06em;color:var(--orca-atmosphere-blue);margin:8px 0 0}
.founder__bio{font-size:17px;line-height:1.65;color:#fff;margin:14px 0 0;max-width:56ch}

/* ---------- Responsive ---------- */
@media (max-width:768px){
  .container{padding:0 24px}
  /* Two rows: logo and Talk to us on the first, the nav links on the second.
     .site-nav goes display:contents so its two children become flex items of
     the header row and can be ordered/wrapped independently. */
  .site-header__inner{padding:14px 24px 4px;gap:6px 16px;flex-wrap:wrap}
  .site-nav{display:contents}
  .site-nav .btn--pill{order:2;margin-left:auto}
  /* Wrap rather than scroll: a clipped link is a link nobody finds. Four fit
     on one row down to ~360px, and split over two rows below that. */
  .site-nav__links{order:3;width:100%;flex-wrap:wrap;gap:0 16px}
  /* Vertical padding here is the tap target, not visual spacing. */
  .site-nav .nav-link{display:inline-block;padding:9px 0;font-size:14px;white-space:nowrap}
  .hero__inner{padding:150px 24px 80px}
  .hero__form{flex-direction:column}
  .problem .section__inner,
  .answer .section__inner{padding:96px 24px}
  .contact .section__inner{padding:56px 24px 80px}
  .defs__row{grid-template-columns:1fr;gap:6px}
  .founder{grid-template-columns:1fr;gap:16px}
  .doc{padding:116px 24px 80px}
  .site-footer__inner{padding:32px 24px 20px}
  .site-footer__legal{padding:0 24px 32px}
  .doc h1{font-size:38px}
}
