
:root{
  --navy:#16202b; --navy-2:#1e2c3a; --ink:#16202b; --ink-2:#4a5b6c; --ink-3:#73838f;
  --page:#ffffff; --cloud:#e6eff6; --cloud-2:#d3e3ed; --line:#c9d9e8;
  --blue:#2e6fba; --blue-deep:#3072a6; --flame:#f97316; --ember:#ea5039; --gold:#fecc44;
}
@media (prefers-color-scheme:dark){
  :root:not([data-theme="light"]){
    --page:#0f151c; --ink:#e9f0f6; --ink-2:#a8b8c6; --ink-3:#7d8d9a;
    --cloud:#182430; --cloud-2:#1d2b38; --line:#27353f; --navy:#0b1118; --navy-2:#111a24;
  }
}
:root[data-theme="dark"]{
  --page:#0f151c; --ink:#e9f0f6; --ink-2:#a8b8c6; --ink-3:#7d8d9a;
  --cloud:#182430; --cloud-2:#1d2b38; --line:#27353f; --navy:#0b1118; --navy-2:#111a24;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0; background:var(--page); color:var(--ink);
  font-family:Outfit,system-ui,-apple-system,sans-serif; font-size:17px; line-height:1.6;
  -webkit-font-smoothing:antialiased;
}
.wrap{max-width:1060px; margin:0 auto; padding:0 16px}
a{color:var(--blue)}

/* ---------- hero ---------- */
.hero{
  background:
    radial-gradient(1100px 460px at 50% -8%, rgba(48,114,166,.5), transparent 62%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%);
  color:#eef5fb; position:relative; overflow:hidden;
  border-bottom:4px solid var(--flame);
}
/* A thin starfield, drawn rather than imported. */
.hero::before{
  content:""; position:absolute; inset:0; pointer-events:none; opacity:.5;
  background-image:
    radial-gradient(1.4px 1.4px at 12% 22%, #fff, transparent),
    radial-gradient(1.2px 1.2px at 78% 14%, #fff, transparent),
    radial-gradient(1.6px 1.6px at 34% 62%, #cfe2f3, transparent),
    radial-gradient(1.1px 1.1px at 88% 48%, #fff, transparent),
    radial-gradient(1.3px 1.3px at 58% 30%, #fff, transparent),
    radial-gradient(1px 1px at 24% 82%, #cfe2f3, transparent);
}
.heroinner{
  position:relative; display:grid; grid-template-columns:minmax(0,1fr) 300px;
  gap:56px; align-items:center; padding:68px 0 76px;
}
.patch{width:300px; height:auto; display:block; filter:drop-shadow(0 18px 34px rgba(0,0,0,.45))}
.eyebrow{
  font-family:"Space Grotesk",system-ui,sans-serif; font-weight:500; font-size:11.5px;
  letter-spacing:.22em; text-transform:uppercase; color:var(--gold); margin:0 0 16px;
}
h1{
  font-family:Graduate,Georgia,serif; font-weight:400;
  font-size:clamp(40px,7.2vw,76px); line-height:1.02; letter-spacing:.01em;
  margin:0 0 18px; text-wrap:balance; color:#fff;
}
h1 .io{color:var(--flame)}
.tagline{
  font-weight:600; font-size:clamp(17px,2.4vw,21px); color:#bfd6ea;
  margin:0 0 14px; max-width:30ch;
}
.lede{color:#a8c2d8; margin:0 0 30px; max-width:52ch; font-size:16.5px}
.cta{display:flex; flex-wrap:wrap; gap:12px; align-items:center}
.btn{
  display:inline-block; font-weight:600; font-size:16px; text-decoration:none;
  padding:13px 24px; border-radius:9px; border:2px solid transparent; transition:.15s;
}
.btn-primary{background:var(--flame); color:#16202b; border-color:var(--flame)}
.btn-primary:hover{background:#ffa03d; border-color:#ffa03d}
.btn-ghost{color:#dbe9f5; border-color:rgba(219,233,245,.4)}
.btn-ghost:hover{border-color:#dbe9f5; background:rgba(255,255,255,.07)}
.btn:focus-visible{outline:3px solid var(--gold); outline-offset:3px}
.status{
  display:inline-flex; align-items:center; gap:8px; font-size:13.5px; color:#9db7cd;
}
.dot{width:8px; height:8px; border-radius:50%; background:var(--gold);
     box-shadow:0 0 0 4px rgba(254,204,68,.18)}

/* ---------- sections ---------- */
section{padding:70px 0}
.sectionhead{max-width:60ch; margin:0 0 38px}
h2{
  font-family:Graduate,Georgia,serif; font-weight:400; font-size:clamp(24px,3.6vw,34px);
  line-height:1.15; margin:0 0 12px; text-wrap:balance;
}
.sectionhead p{color:var(--ink-2); margin:0; font-size:17px}

.grid{display:grid; grid-template-columns:repeat(auto-fit,minmax(260px,1fr)); gap:18px}
.card{
  background:var(--cloud); border:1px solid var(--line); border-radius:14px;
  padding:26px 24px;
}
.card h3{
  font-size:18px; font-weight:600; margin:0 0 9px; letter-spacing:-.005em;
  display:flex; align-items:center; gap:10px;
}
.card h3::before{
  content:""; width:10px; height:10px; flex:none; border-radius:2px;
  background:var(--flame); transform:rotate(45deg);
}
.card p{margin:0; color:var(--ink-2); font-size:15.5px}
.card code{font-size:14px; background:rgba(46,111,186,.12); padding:1px 5px; border-radius:4px}

.band{background:var(--cloud-2)}
.rows{display:grid; gap:0; border-top:1px solid var(--line); margin:0}
.row{
  display:grid; grid-template-columns:200px minmax(0,1fr); gap:24px;
  padding:22px 0; border-bottom:1px solid var(--line); align-items:start;
}
.row dt{
  font-family:"Space Grotesk",system-ui,sans-serif; font-weight:500; font-size:12px;
  letter-spacing:.14em; text-transform:uppercase; color:var(--blue-deep); padding-top:3px;
}
.row dd{margin:0; color:var(--ink-2); font-size:16px}
.row dd strong{color:var(--ink); font-weight:600}

/* ---------- closing ---------- */
.closing{
  background:var(--navy); color:#e6f0f9; text-align:center;
  border-top:4px solid var(--flame);
}
.closing h2{color:#fff}
.closing p{color:#a8c2d8; max-width:52ch; margin:0 auto 28px}

footer{background:var(--navy); color:#8fa8bd; font-size:14px; padding:0 0 56px}
.foot{
  border-top:1px solid rgba(255,255,255,.12); padding-top:26px;
  display:flex; flex-wrap:wrap; gap:16px 28px; justify-content:space-between;
}
.lockup{
  font-family:"Space Grotesk",system-ui,sans-serif; font-weight:500; font-size:11.5px;
  letter-spacing:.2em; text-transform:uppercase; color:#b9cddf;
}
footer a{color:#cfe1f0}
.attrib{max-width:60ch; font-size:13px; line-height:1.65; color:#7f97ab}

/* The copyright notice. #8fa8bd clears AA on --navy in both
   themes: 6.67:1 light, 7.68:1 dark. */
.copyright{ margin:18px 0 0; font-size:13px; color:#8fa8bd }

@media (max-width:820px){
  .heroinner{grid-template-columns:1fr; gap:34px; padding:48px 0 56px; text-align:center}
  .patch{width:230px; margin:0 auto; order:-1}
  .tagline,.lede{margin-left:auto; margin-right:auto}
  .cta{justify-content:center}
  .row{grid-template-columns:1fr; gap:6px}
}
@media (prefers-reduced-motion:reduce){ html{scroll-behavior:auto} .btn{transition:none} }

/* Running text. The page is prose now, not a card grid, so paragraphs need a
   comfortable measure of their own - the old sheet only ever styled .card and
   .row copy. */
.prose p{
  max-width:64ch; margin:0 0 18px;
  font-size:clamp(16px,2.1vw,18px); line-height:1.7; color:var(--ink-2);
}
.prose p:last-child{margin-bottom:0}
.prose a{color:var(--blue-deep)}
.sectionhead{margin-bottom:18px}

/* The embedded contact form. White card on the navy closing band. */
.formembed{
  width:min(780px,100%); margin:28px auto 0; background:#fff;
  border-radius:14px; overflow:hidden; border:1px solid rgba(255,255,255,.16);
}
.formembed iframe{ display:block; width:100%; height:1340px; border:0; }
.closing .fallback{ margin:16px 0 0; font-size:14px; color:#a8c2d8 }
.closing .fallback a{ color:var(--flame) }
@media (max-width:560px){
  .formembed{ border-radius:12px }
  .formembed iframe{ height:1400px }
}

/* The sponsorship link is a destination, not an aside - give it a real target. */
.sponsorlink{
  display:inline-block; margin-top:4px; padding:12px 20px; border-radius:10px;
  /* #c2410c, not --flame. White on #f97316 is 2.80:1 and AA wants 4.5:1
     for text this size - 15px at weight 900 is not "large", which needs
     18.66px when bold. This is 5.18:1, and the hover 7.31:1. The orange
     is darker here ONLY on this button; --flame is unchanged everywhere
     else, so the wordmark and the rules keep the brand colour. */
  background:#c2410c; color:#fff; text-decoration:none;
  font-weight:900; font-size:15px; letter-spacing:.01em;
}
.sponsorlink:hover{ background:#9a3412 }
/* --ink, not --flame: the ring is drawn on the --cloud-2 band, where
   flame is 2.13:1 in the light theme and SC 1.4.11 wants 3:1. --ink
   flips with the theme - 12.53:1 light, 12.55:1 dark. */
.sponsorlink:focus-visible{ outline:3px solid var(--ink); outline-offset:3px }

/* Two stacked buttons: the pilot one leads, the sponsorship one follows. */
.linkstack{ display:flex; flex-direction:column; align-items:flex-start; gap:12px; margin-top:6px }
.pilotlink{
  display:inline-block; padding:12px 20px; border-radius:10px;
  background:var(--blue-deep); color:#fff; text-decoration:none;
  font-weight:900; font-size:15px; letter-spacing:.01em;
}
.pilotlink:hover{ background:#20567f }
.pilotlink:focus-visible{ outline:3px solid var(--ink); outline-offset:3px }

/* These sit inside .prose, whose `a` rule is more specific than a bare class.
   Scoping them here wins on specificity rather than on source order. */
.prose a.sponsorlink, .prose a.pilotlink{ color:#fff; text-decoration:none }
.prose a.sponsorlink:hover, .prose a.pilotlink:hover{ color:#fff }

/* ---------- the front door ---------- */
.door{
  min-height:100svh; display:grid; place-items:center; text-align:center;
  padding:48px 16px; position:relative; overflow:hidden;
}
.doorinner{position:relative; z-index:1; max-width:660px}
.door .patch{
  width:min(300px,62vw); height:auto; margin:0 auto 30px; display:block;
  filter:drop-shadow(0 20px 40px rgba(0,0,0,.5));
}
.door h1{margin:0 0 14px}
.door .tagline{margin:0 auto 18px; max-width:30ch}
.door .lede{margin:0 auto 32px; max-width:56ch; color:#a8c2d8; font-size:17px}
.door .cta{justify-content:center}
.door .status{margin:32px 0 0}

/* A denser starfield than the old hero band, because this one fills a screen. */
.door::before{
  content:""; position:absolute; inset:0; pointer-events:none; opacity:.55;
  background-image:
    radial-gradient(1.4px 1.4px at 12% 22%, #fff, transparent),
    radial-gradient(1.2px 1.2px at 78% 14%, #fff, transparent),
    radial-gradient(1.6px 1.6px at 34% 62%, #cfe2f3, transparent),
    radial-gradient(1.1px 1.1px at 88% 48%, #fff, transparent),
    radial-gradient(1.3px 1.3px at 58% 30%, #fff, transparent),
    radial-gradient(1px 1px at 24% 82%, #cfe2f3, transparent),
    radial-gradient(1.5px 1.5px at 6% 58%, #fff, transparent),
    radial-gradient(1px 1px at 44% 8%, #cfe2f3, transparent),
    radial-gradient(1.2px 1.2px at 92% 76%, #fff, transparent),
    radial-gradient(1.4px 1.4px at 68% 88%, #cfe2f3, transparent),
    radial-gradient(1px 1px at 16% 40%, #fff, transparent),
    radial-gradient(1.3px 1.3px at 82% 30%, #fff, transparent),
    radial-gradient(1px 1px at 52% 70%, #cfe2f3, transparent),
    radial-gradient(1.1px 1.1px at 30% 12%, #fff, transparent);
}

/* The comet: a shallow, high pass. The rotation matches the PATH - at 16:9
   that travel is about five degrees - so the tail lies along the direction of
   flight instead of cutting across it, which is what makes these look pasted
   on. A steeper angle reads as a meteor dropping, not a comet crossing. */
.door::after{
  content:""; position:absolute; top:0; left:0; z-index:0;
  width:230px; height:2px; border-radius:2px; pointer-events:none; opacity:0;
  background:linear-gradient(90deg,
    rgba(255,255,255,0) 0%, rgba(207,226,243,.55) 58%,
    rgba(255,255,255,.95) 92%, #fff 100%);
  filter:drop-shadow(0 0 7px rgba(255,255,255,.9));
  animation:comet 16s linear infinite; animation-delay:2s;
}
@keyframes comet{
  0%   { transform:translate(-25vw,8vh) rotate(5deg); opacity:0 }
  4%   { opacity:0 }
  7%   { opacity:1 }
  16%  { opacity:1 }
  20%  { transform:translate(120vw,26vh) rotate(5deg); opacity:0 }
  100% { transform:translate(120vw,26vh) rotate(5deg); opacity:0 }
}
/* A phone needs its own path: 230px on a 390px screen is a bar, not a streak,
   and the desktop path crosses exactly where the centred patch sits. */
@media (max-width:620px){
  .door::after{ width:130px; animation-name:comet-narrow; animation-duration:13s }
}
@keyframes comet-narrow{
  0%   { transform:translate(-35vw,3vh) rotate(7deg); opacity:0 }
  5%   { opacity:0 }
  9%   { opacity:1 }
  19%  { opacity:1 }
  24%  { transform:translate(130vw,10vh) rotate(7deg); opacity:0 }
  100% { transform:translate(130vw,10vh) rotate(7deg); opacity:0 }
}
@media (prefers-reduced-motion:reduce){ .door::after{ animation:none; opacity:0 } }

/* ---------- the about page's own header ---------- */
.aboutbar{
  background:var(--navy); border-bottom:4px solid var(--flame); padding:18px 0;
}
.aboutbar .wrap{display:flex; align-items:center; gap:18px; flex-wrap:wrap}
.aboutbar .mark{
  font-family:Graduate,Georgia,serif; font-size:22px; color:#fff;
  text-decoration:none;
}
.aboutbar .mark .io{color:var(--flame)}
.aboutbar .spacer{flex:1}
.aboutbar a.back{
  font-family:"Space Grotesk",system-ui,sans-serif; font-size:11.5px;
  letter-spacing:.16em; text-transform:uppercase; color:#cfe1f0;
  text-decoration:none; border:1px solid rgba(219,233,245,.32);
  border-radius:9px; padding:10px 16px; min-height:44px;
  display:inline-flex; align-items:center;
}
.aboutbar a.back:hover{border-color:#dbe9f5; background:rgba(255,255,255,.08)}
.aboutbar a.back:focus-visible{outline:3px solid var(--gold); outline-offset:3px}
