/* ===========================================================
   House of Hope Technologies
   Palette, type and layout tokens
   =========================================================== */

:root{
  --paper:      #FBFBF9;   /* page base, warm near-white            */
  --surface:    #FFFFFF;   /* cards and raised surfaces             */
  --band:       #F1F4F1;   /* alternating section band              */
  --ink:        #11191F;   /* headings and primary text             */
  --body:       #3D4A52;   /* body copy                             */
  --muted:      #66737B;   /* secondary text                        */
  --rule:       #D9DFDA;   /* hairlines                             */
  --seal:       #0A6B57;   /* primary action, brand green           */
  --seal-dark:  #075345;   /* pressed state                         */
  --seal-tint:  #E6F0EC;   /* quiet fills                           */
  --wax:        #B23A24;   /* used once, on the handover stamp      */

  --measure: 66ch;
  --shell: 1140px;
  --r-sm: 4px;
  --r-md: 8px;

  --fs-step--1: clamp(0.84rem, 0.82rem + 0.1vw, 0.9rem);
  --fs-step-0:  clamp(1rem, 0.97rem + 0.15vw, 1.08rem);
  --fs-step-1:  clamp(1.2rem, 1.12rem + 0.4vw, 1.4rem);
  --fs-step-2:  clamp(1.5rem, 1.34rem + 0.8vw, 2rem);
  --fs-step-3:  clamp(1.9rem, 1.6rem + 1.5vw, 2.9rem);
  --fs-step-4:  clamp(2.4rem, 1.85rem + 2.7vw, 4.3rem);
}

/* ---------- reset ---------- */
*,*::before,*::after{ box-sizing:border-box; }
html{ -webkit-text-size-adjust:100%; scroll-behavior:smooth; }
body,h1,h2,h3,h4,p,ul,ol,dl,dd,figure{ margin:0; }
ul,ol{ padding:0; list-style:none; }
img,svg{ display:block; max-width:100%; }
button,input,select,textarea{ font:inherit; color:inherit; }

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  *,*::before,*::after{ animation-duration:.001ms !important; transition-duration:.001ms !important; }
}

body{
  background:var(--paper);
  color:var(--body);
  font-family:"Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size:var(--fs-step-0);
  line-height:1.65;
  -webkit-font-smoothing:antialiased;
}

h1,h2,h3,h4{
  font-family:"Schibsted Grotesk", "Inter", system-ui, sans-serif;
  color:var(--ink);
  line-height:1.08;
  letter-spacing:-0.022em;
  font-weight:800;
  text-wrap:balance;
}
h1{ font-size:var(--fs-step-4); }
h2{ font-size:var(--fs-step-3); }
h3{ font-size:var(--fs-step-1); line-height:1.25; letter-spacing:-0.012em; font-weight:700; }
h4{ font-size:var(--fs-step--1); font-weight:700; letter-spacing:0; }

p{ max-width:var(--measure); }
a{ color:var(--seal); text-decoration-thickness:1px; text-underline-offset:3px; }
a:hover{ color:var(--seal-dark); }

:focus-visible{ outline:2.5px solid var(--seal); outline-offset:3px; border-radius:2px; }

.sr{
  position:absolute; 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:-9999px; top:0; z-index:100;
  background:var(--ink); color:#fff; padding:.75rem 1.1rem; text-decoration:none;
}
.skip:focus{ left:0; }

/* ---------- layout ---------- */
.shell{ width:100%; max-width:var(--shell); margin-inline:auto; padding-inline:24px; }
.shell.narrow{ max-width:780px; }
.section{ padding-block:clamp(60px, 8vw, 110px); }
.band{ background:var(--band); border-block:1px solid var(--rule); }

.section-head{ margin-bottom:clamp(32px, 4vw, 56px); max-width:62ch; }
.section-head p{ margin-top:14px; font-size:var(--fs-step-1); color:var(--muted); line-height:1.5; }

.kicker{
  font-family:"IBM Plex Mono", ui-monospace, monospace;
  font-size:var(--fs-step--1);
  color:var(--muted);
  letter-spacing:.01em;
  margin-bottom:22px;
}

/* ---------- buttons ---------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding:15px 26px;
  font-family:"Schibsted Grotesk", sans-serif;
  font-weight:700; font-size:.97rem; letter-spacing:-0.005em;
  border-radius:var(--r-md); border:1.5px solid transparent;
  text-decoration:none; cursor:pointer;
  transition:background-color .18s ease, border-color .18s ease, color .18s ease;
}
.btn-solid{ background:var(--seal); color:#fff; }
.btn-solid:hover{ background:var(--seal-dark); color:#fff; }
.btn-quiet{ background:transparent; color:var(--ink); border-color:var(--rule); }
.btn-quiet:hover{ background:var(--surface); border-color:var(--ink); color:var(--ink); }
.btn-sm{ padding:10px 18px; font-size:.9rem; }
.btn-block{ width:100%; }

.link-strong{
  font-family:"Schibsted Grotesk", sans-serif; font-weight:700;
  text-decoration:underline; text-decoration-thickness:1.5px;
}

/* ---------- motion ---------- */
[data-reveal]{
  opacity:0; transform:translateY(16px);
  transition:opacity .65s ease var(--d, 0ms), transform .65s cubic-bezier(.22,.7,.3,1) var(--d, 0ms);
}
[data-reveal].is-in{ opacity:1; transform:none; }

/* hero plays once on load, in sequence, rather than on scroll */
.hero-in{ animation:riseIn .8s cubic-bezier(.22,.75,.28,1) backwards; }
.hero-copy.hero-in{ animation-delay:.05s; }
.record.hero-in{ animation-delay:.22s; }
@keyframes riseIn{
  from{ opacity:0; transform:translateY(22px); }
  to{ opacity:1; transform:none; }
}

@media (prefers-reduced-motion: reduce){
  [data-reveal]{ opacity:1 !important; transform:none !important; }
  .hero-in{ animation:none; }
}

/* ---------- announcement bar ----------
   Sticky, and the header sticks directly beneath it, so the launch
   message stays visible on every page however far you scroll. */
.announce{
  position:sticky; top:0; z-index:60;
  background:var(--ink); color:#C6D2CD; font-size:.86rem;
}
.announce-inner{
  display:flex; align-items:center; justify-content:center; gap:10px;
  flex-wrap:wrap; padding-block:11px; text-align:center;
}
.announce p{ margin:0; max-width:none; }
.announce a{
  color:#6FD3B4; font-weight:600; text-decoration:underline;
  text-underline-offset:3px; white-space:nowrap;
}
.announce a:hover{ color:#A7E7D2; }
.announce-dot{
  width:7px; height:7px; border-radius:50%; background:#6FD3B4; flex:none;
  animation:pulse 2.6s ease-out infinite;
}

/* full wording on wide screens, a short form on phones so the sticky
   bar never grows past a single line */
.announce-brief{ display:none; }
@media (max-width: 720px){
  .announce-full{ display:none; }
  .announce-brief{ display:inline; }
  .announce-inner{ flex-wrap:nowrap; padding-block:9px; gap:8px; }
  .announce{ font-size:.8rem; }
}

/* ---------- header ---------- */
.site-head{
  position:sticky; top:var(--announce-h, 46px); z-index:50;
  background:rgba(251,251,249,.9);
  backdrop-filter:saturate(1.3) blur(8px);
  border-bottom:1px solid var(--rule);
  transition:background-color .3s ease, border-color .3s ease, box-shadow .3s ease;
}

/* over the dark hero the header is transparent; it solidifies once you scroll past */
.home .site-head{ background:transparent; border-bottom-color:transparent; }
.home .site-head .brand{ color:#fff; }
.home .site-head .brand-mark{ color:#6FD3B4; }
.home .site-head .brand-sub{ color:#8FA09A; }
.home .site-head .nav a:not(.btn){ color:#D4DEDA; }
.home .site-head .nav a:not(.btn):hover{ color:#6FD3B4; }
.home .site-head .nav-toggle{ border-color:rgba(255,255,255,.3); }
.home .site-head .nav-toggle-bars,
.home .site-head .nav-toggle-bars::before,
.home .site-head .nav-toggle-bars::after{ background:#fff; }

.home .site-head.is-stuck{
  background:rgba(251,251,249,.92);
  border-bottom-color:var(--rule);
  box-shadow:0 6px 24px -20px rgba(17,25,31,.7);
}
.home .site-head.is-stuck .brand{ color:var(--ink); }
.home .site-head.is-stuck .brand-mark{ color:var(--seal); }
.home .site-head.is-stuck .brand-sub{ color:var(--muted); }
.home .site-head.is-stuck .nav a:not(.btn){ color:var(--ink); }
.home .site-head.is-stuck .nav a:not(.btn):hover{ color:var(--seal); }
.home .site-head.is-stuck .nav-toggle{ border-color:var(--rule); }
.home .site-head.is-stuck .nav-toggle-bars,
.home .site-head.is-stuck .nav-toggle-bars::before,
.home .site-head.is-stuck .nav-toggle-bars::after{ background:var(--ink); }
.head-inner{ display:flex; align-items:center; justify-content:space-between; gap:20px; min-height:68px; }

.brand{ display:inline-flex; align-items:center; gap:11px; color:var(--ink); text-decoration:none; }
.brand-mark{ width:34px; height:34px; color:var(--seal); flex:none; }
.brand-name{
  font-family:"Schibsted Grotesk", sans-serif; font-weight:800;
  font-size:.98rem; line-height:1.15; letter-spacing:-0.025em;
  display:flex; flex-direction:column;
}
.brand-sub{
  font-weight:500; font-size:.66rem; letter-spacing:.045em;
  color:var(--muted); margin-top:2px;
}

/* full badge, used where there is room for the wordmark inside it */
.brand-badge{ display:inline-block; }
.brand-badge img{ width:138px; height:auto; }

.nav{ display:flex; align-items:center; gap:28px; }
.nav a{
  color:var(--ink); text-decoration:none; font-size:.94rem; font-weight:500;
}
.nav a:not(.btn):hover{ color:var(--seal); }
.nav a.btn{ color:#fff; }

.nav-toggle{
  display:none; width:44px; height:40px; background:transparent;
  border:1.5px solid var(--rule); border-radius:var(--r-md); cursor:pointer;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after{
  display:block; width:18px; height:2px; background:var(--ink); margin-inline:auto; content:"";
}
.nav-toggle-bars::before{ transform:translateY(-6px); }
.nav-toggle-bars::after{ transform:translateY(4px); }

/* ===========================================================
   Hero — the dark, cinematic opening. Everything below it
   returns to the light layout.
   =========================================================== */

.hero{
  position:relative; isolation:isolate; overflow:hidden;
  background:#080D11; color:#B9C7C1;
  padding-block:clamp(70px, 9vw, 130px) clamp(0px, 2vw, 20px);
}

/* The hero rises under the sticky header so the dark runs edge to edge, and
   fills exactly one screen: the announcement bar above it plus the hero equals
   the viewport, so the ticker lands on the fold. */
.home .hero{
  margin-top:calc(-1 * var(--head-h, 69px));
  padding-top:calc(var(--head-h, 69px) + clamp(16px, 2vw, 34px));
  padding-bottom:0;
  min-height:calc(100svh - var(--announce-h, 46px));
  display:flex; flex-direction:column;
}
.home .hero .hero-grid{ flex:1 1 auto; align-content:center; }
.home .hero .ticker{ margin-top:auto; }

/* layered background, back to front:
   video (optional) → canvas network → colour glows → grid → veil */
.hero-bg{ position:absolute; inset:0; z-index:-1; overflow:hidden; }

.hero-video{
  position:absolute; inset:0; width:100%; height:100%;
  object-fit:cover; opacity:.3; filter:saturate(.55) contrast(1.05);
}

.hero-canvas{
  position:absolute; inset:0; width:100%; height:100%;
  z-index:2;                       /* above the glows, so the network reads */
  opacity:1;
}

/* darkens only the left column, where the headline sits */
.hero-veil{
  position:absolute; inset:0; z-index:3;
  background:
    linear-gradient(100deg,
      rgba(8,13,17,.88) 0%,
      rgba(8,13,17,.74) 26%,
      rgba(8,13,17,.28) 52%,
      rgba(8,13,17,0) 72%),
    linear-gradient(to bottom, rgba(8,13,17,.45), transparent 22%, rgba(8,13,17,.5));
}
/* Soft colour fields. These use gradients with wide, feathered stops rather
   than a blur filter — a large blur is repainted on the CPU on machines
   without GPU compositing and was measured costing more than half the frame
   rate. Only transform is animated, which the compositor handles. */
.aurora{
  position:absolute; border-radius:50%; opacity:.62;
  z-index:1; will-change:transform;
}
.aurora-1{
  width:78vw; height:78vw; max-width:980px; max-height:980px;
  top:-30%; left:-18%;
  background:radial-gradient(closest-side circle,
    rgba(14,138,110,.95) 0%, rgba(14,138,110,.5) 32%,
    rgba(14,138,110,.18) 56%, transparent 76%);
  animation:drift1 22s ease-in-out infinite alternate;
}
.aurora-2{
  width:66vw; height:66vw; max-width:820px; max-height:820px;
  top:2%; right:-20%;
  background:radial-gradient(closest-side circle,
    rgba(16,85,107,.95) 0%, rgba(16,85,107,.48) 34%,
    rgba(16,85,107,.16) 58%, transparent 78%);
  animation:drift2 27s ease-in-out infinite alternate;
}
.aurora-3{
  width:56vw; height:56vw; max-width:660px; max-height:660px;
  bottom:-32%; left:30%;
  background:radial-gradient(closest-side circle,
    rgba(10,107,87,.85) 0%, rgba(10,107,87,.4) 36%,
    rgba(10,107,87,.14) 60%, transparent 80%);
  opacity:.45; animation:drift3 31s ease-in-out infinite alternate;
}
@keyframes drift1{ to{ transform:translate3d(9%, 7%, 0) scale(1.14); } }
@keyframes drift2{ to{ transform:translate3d(-11%, 9%, 0) scale(1.1); } }
@keyframes drift3{ to{ transform:translate3d(7%, -11%, 0) scale(1.18); } }

.hero-grid-lines{
  position:absolute; inset:0; z-index:0;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size:76px 76px;
  mask-image:radial-gradient(ellipse 85% 70% at 50% 35%, #000 20%, transparent 78%);
}

.hero-grid{
  display:grid; grid-template-columns:minmax(0,1.06fr) minmax(0,.94fr);
  gap:clamp(36px, 5vw, 76px); align-items:start;
}

/* headline: each line rises out of its own mask, in sequence */
.hero-title{
  color:#fff;
  font-size:clamp(1.55rem, .95rem + 1.95vw, 2.55rem);
  line-height:1.08;
}
.hero-title .line{ display:block; overflow:hidden; padding-bottom:.06em; }
.hero-title .line > span{
  display:block; white-space:nowrap;
  animation:lineRise 1s cubic-bezier(.19,.85,.25,1) backwards;
}
.hero-title .line:nth-child(1) > span{ animation-delay:.12s; }
.hero-title .line:nth-child(2) > span{ animation-delay:.26s; }
.hero-title .line:nth-child(3) > span{ animation-delay:.40s; }
@keyframes lineRise{
  from{ transform:translateY(105%); opacity:0; }
  to{ transform:translateY(0); opacity:1; }
}

.hero .kicker{ color:#7F938C; margin-bottom:14px; font-size:.82rem; }
.hero-copy .lede{
  margin-top:18px;
  font-size:clamp(.97rem, .92rem + .22vw, 1.1rem); line-height:1.6;
  color:#B9C7C1; max-width:52ch;
}
.hero-actions{ display:flex; flex-wrap:wrap; gap:12px; margin-top:24px; }
.hero .btn-solid{ background:#0F8A6F; }
.hero .btn-solid:hover{ background:#14A787; color:#fff; }
.hero .btn-quiet{ color:#fff; border-color:rgba(255,255,255,.25); background:transparent; }
.hero .btn-quiet:hover{ background:rgba(255,255,255,.07); border-color:rgba(255,255,255,.5); color:#fff; }

.facts{ margin-top:26px; border-top:1px solid rgba(255,255,255,.14); }
.facts li{
  padding:10px 0; border-bottom:1px solid rgba(255,255,255,.1);
  font-size:.88rem; color:#93A49E;
}
.facts strong{ color:#fff; font-weight:600; }

/* technology ticker along the foot of the hero */
.ticker{
  margin-top:clamp(28px, 4vw, 48px);
  border-top:1px solid rgba(255,255,255,.12);
  overflow:hidden; padding-block:15px;
  mask-image:linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.ticker-track{
  display:flex; gap:56px; width:max-content;
  animation:slide 38s linear infinite;
}
.ticker-track span{
  font-family:"IBM Plex Mono", monospace; font-size:.84rem;
  color:#7F938C; white-space:nowrap; letter-spacing:.02em;
}
@keyframes slide{ to{ transform:translateX(-50%); } }

.scroll-cue{
  display:none; align-items:center; gap:10px;
  margin:26px auto 0; width:max-content; padding-bottom:30px;
  font-family:"IBM Plex Mono", monospace; font-size:.76rem;
  color:#7F938C; text-decoration:none;
}
.scroll-cue:hover{ color:#6FD3B4; }
.scroll-cue span{
  width:1px; height:26px;
  background:linear-gradient(to bottom, transparent, #6FD3B4);
  animation:cue 2.2s ease-in-out infinite;
}
@keyframes cue{
  0%,100%{ transform:scaleY(.45); opacity:.5; transform-origin:top; }
  50%{ transform:scaleY(1); opacity:1; transform-origin:top; }
}
@media (min-width: 981px){ .scroll-cue{ display:flex; } }

@media (prefers-reduced-motion: reduce){
  .aurora, .ticker-track, .scroll-cue span{ animation:none; }
  .hero-title .line > span{ animation:none; }
}

/* the commitments card — the one deliberately physical object on the page */
.record{
  background:rgba(255,255,255,.045);
  border:1px solid rgba(255,255,255,.14);
  border-radius:var(--r-md);
  backdrop-filter:blur(14px);
  box-shadow:0 30px 70px -40px rgba(0,0,0,.9);
  padding:22px 24px 26px;
  position:relative;
  rotate:-.4deg;
}
.record::before{
  content:""; position:absolute; inset:0 0 auto 0; height:3px;
  background:linear-gradient(90deg, #0F8A6F, #6FD3B4 60%, transparent);
  border-radius:var(--r-md) var(--r-md) 0 0;
}
.record-head{
  display:flex; justify-content:space-between; align-items:baseline; gap:12px;
  padding-bottom:12px; border-bottom:1.5px solid rgba(255,255,255,.3); margin-bottom:2px;
}
.record-title{
  font-family:"Schibsted Grotesk", sans-serif; font-weight:800;
  font-size:1.02rem; color:#fff; letter-spacing:-0.02em;
}
.record-ref{
  font-family:"IBM Plex Mono", monospace; font-size:.76rem; color:#7F938C;
}
.record-row{
  display:grid; grid-template-columns:104px 1fr; gap:12px;
  padding:9px 0; border-bottom:1px dotted rgba(255,255,255,.16);
}
.record-row dt{
  font-family:"IBM Plex Mono", monospace; font-size:.73rem; color:#7F938C; line-height:1.5;
}
.record-row dd{ margin:0; font-size:.86rem; color:#E3EAE7; line-height:1.45; }

.record-foot{ display:flex; align-items:center; justify-content:space-between; gap:16px; padding-top:13px; }
.record-note{ font-size:.82rem; color:#7F938C; max-width:22ch; line-height:1.45; }

.stamp{
  display:grid; justify-items:center; align-content:center; gap:2px;
  width:106px; flex:none;
  border:2px solid #6FD3B4; color:#6FD3B4; border-radius:3px;
  rotate:-5deg; padding:7px 8px; text-align:center;
  font-family:"IBM Plex Mono", monospace; opacity:.85;
  animation:stampIn .5s cubic-bezier(.2,.9,.3,1.3) .95s backwards;
}
.stamp-top,.stamp-bot{ font-size:.54rem; letter-spacing:.07em; line-height:1.35; }
.stamp-mid{ font-size:1.05rem; font-weight:500; letter-spacing:.09em; line-height:1.2; }
@keyframes stampIn{
  from{ opacity:0; scale:1.5; rotate:-14deg; }
  to{ opacity:.88; scale:1; rotate:-7deg; }
}

/* ===========================================================
   Launching soon — a pinned column beside panels that
   advance as you scroll.
   =========================================================== */

/* no overflow:hidden here — it would break the sticky column.
   The background layer does the clipping instead. */
.launch{
  position:relative; isolation:isolate;
  background:#080D11; color:#B9C7C1;
  padding-block:clamp(64px, 8vw, 120px);
}
.launch-bg{ position:absolute; inset:0; z-index:-1; opacity:.75; overflow:hidden; }
.launch .aurora-1{ top:-10%; left:58%; }
.launch .aurora-2{ top:46%; right:52%; }

.launch-grid{
  display:grid; grid-template-columns:minmax(0,.86fr) minmax(0,1.14fr);
  gap:clamp(34px, 5vw, 80px); align-items:start;
}
.launch-sticky{ position:sticky; top:calc(var(--head-h, 69px) + var(--announce-h, 46px) + 18px); align-self:start; }
.launch-title{
  margin-top:16px; color:#fff;
  font-size:clamp(1.65rem, 1.15rem + 1.6vw, 2.4rem); line-height:1.08;
}
.launch-lede{ margin-top:14px; color:#B9C7C1; font-size:.96rem; line-height:1.55; }
.launch .btn-solid{ background:#0F8A6F; margin-top:20px; }
.launch .btn-solid:hover{ background:#14A787; color:#fff; }

.launch-markers{ margin-top:22px; border-top:1px solid rgba(255,255,255,.12); }
.launch-markers li{ border-bottom:1px solid rgba(255,255,255,.08); }
.launch-markers a{
  display:flex; align-items:center; gap:13px;
  padding:9px 0; font-size:.87rem; color:#64756F;
  text-decoration:none; cursor:pointer;
  transition:color .25s ease, padding-left .25s ease;
}
.launch-markers a span{
  font-family:"IBM Plex Mono", monospace; font-size:.76rem; color:#45544F;
  transition:color .25s ease;
}
.launch-markers a:hover{ color:#fff; padding-left:5px; }
.launch-markers a:hover span{ color:#6FD3B4; }
.launch-markers li.is-active > a{ color:#fff; }
.launch-markers li.is-active > a span{ color:#6FD3B4; }

/* clear the sticky header when a marker jumps to a panel */
.launch-panel{ scroll-margin-top:calc(var(--head-h, 69px) + var(--announce-h, 46px) + 20px); }

.launch-flow{ display:grid; gap:clamp(20px, 3vw, 34px); }
.launch-panel{
  background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.1);
  border-radius:var(--r-md);
  padding:clamp(26px, 3vw, 38px);
  opacity:.45;
  transition:opacity .5s ease, border-color .5s ease, background-color .5s ease;
}
.launch-panel.is-active{
  opacity:1;
  background:rgba(255,255,255,.06);
  border-color:rgba(111,211,180,.3);
}
.panel-index{
  font-family:"IBM Plex Mono", monospace; font-size:.78rem; color:#6FD3B4; margin-bottom:14px;
}
.launch-panel h3{ color:#fff; font-size:clamp(1.2rem, 1.05rem + .5vw, 1.55rem); }
.launch-panel > p{ margin-top:14px; color:#C6D2CD; font-size:.98rem; }
.launch-panel .modules,
.launch-panel .spec{ margin-top:22px; }
.launch-panel .pilot-list{ margin-top:20px; }
.panel-note{ margin-top:18px; font-size:.86rem; color:#8FA09A !important; }
.launch-panel .btn{ margin-top:22px; }

@media (prefers-reduced-motion: reduce){
  .launch-panel{ opacity:1; }
}

/* ---------- premise ---------- */
.premise{ padding-block:clamp(50px, 6vw, 84px); }
.premise-grid{ display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:clamp(30px,4vw,64px); align-items:start; }
.premise h2{ font-size:var(--fs-step-2); max-width:17ch; }
.premise-text p + p{ margin-top:18px; }

/* ---------- what we build ---------- */
.offer-grid{ display:grid; grid-template-columns:repeat(3, minmax(0,1fr)); gap:0; border-top:1px solid var(--rule); }
.offer{ padding:32px 30px 36px; border-bottom:1px solid var(--rule); border-right:1px solid var(--rule); }
.offer:first-child{ padding-left:0; }
.offer:last-child{ border-right:0; padding-right:0; }
.offer p{ margin-top:14px; color:var(--body); font-size:.97rem; }
.plain{ margin-top:22px; }
.plain li{
  padding:9px 0 9px 20px; border-top:1px solid var(--rule);
  font-size:.9rem; color:var(--muted); position:relative;
}
.plain li::before{
  content:""; position:absolute; left:2px; top:17px;
  width:7px; height:7px; border-radius:50%; background:var(--seal-tint);
  border:1.5px solid var(--seal);
}

/* ---------- process ---------- */
.steps{ display:grid; gap:0; border-top:1px solid var(--rule); max-width:920px; }
.step{
  display:grid; grid-template-columns:76px 1fr; gap:24px;
  padding:30px 0; border-bottom:1px solid var(--rule);
}
.step-num{
  font-family:"Schibsted Grotesk", sans-serif; font-weight:800;
  font-size:2.5rem; line-height:1; color:var(--seal); letter-spacing:-0.04em;
}
.step-body h3{ margin-bottom:10px; }
.step-body p{ font-size:.99rem; }

/* ---------- ownership ---------- */
.ownership-grid{ display:grid; grid-template-columns:minmax(0,.95fr) minmax(0,1.05fr); gap:clamp(34px,5vw,70px); align-items:start; }
.big{ font-size:var(--fs-step-3); }
.ownership-lede{ margin:22px 0 30px; font-size:var(--fs-step-1); color:var(--muted); line-height:1.5; }
.guarantees{ display:grid; gap:0; }
.guarantees li{ padding:22px 0; border-top:1px solid var(--rule); }
.guarantees li:last-child{ border-bottom:1px solid var(--rule); }
.guarantees h3{ font-size:1.08rem; }
.guarantees p{ margin-top:8px; font-size:.95rem; color:var(--muted); }

/* ---------- work ---------- */
.cases{ display:grid; grid-template-columns:repeat(2, minmax(0,1fr)); gap:24px; }
.case{
  background:var(--surface); border:1px solid var(--rule); border-radius:var(--r-md);
  padding:30px 28px;
}
.case-meta{
  font-family:"IBM Plex Mono", monospace; font-size:.76rem; color:var(--muted); margin-bottom:12px;
}
.case h3{ margin-bottom:12px; }
.case p{ font-size:.96rem; }
.case-stack{
  margin-top:20px; padding-top:16px; border-top:1px solid var(--rule);
  font-family:"IBM Plex Mono", monospace; font-size:.78rem; color:var(--muted);
}

.flagship{
  margin-top:24px; display:grid; grid-template-columns:minmax(0,.78fr) minmax(0,1.22fr);
  gap:clamp(30px,4vw,60px); align-items:start;
  background:var(--ink); border-radius:var(--r-md); padding:clamp(30px,4vw,52px);
}
.flagship .case-meta{ color:#8FA09A; }
.flagship h3{ color:#fff; font-size:var(--fs-step-2); }
.flagship p{ color:#C6D2CD; }
.flagship-copy h3{ margin:0 0 18px; max-width:20ch; }
.flagship-copy p + p{ margin-top:14px; }
.flagship-note{ margin-top:22px; font-size:.9rem; color:#8FA09A !important; line-height:1.6; }
.flagship .link-strong{ display:inline-block; margin-top:26px; color:#6FD3B4; }
.flagship .link-strong:hover{ color:#A7E7D2; }

/* product identity block — no interface mockup, by design */
.product-eyebrow{
  font-family:"IBM Plex Mono", monospace; font-size:.76rem; color:#8FA09A !important;
}
.product-name{
  margin-top:10px;
  font-family:"Schibsted Grotesk", sans-serif; font-weight:800;
  font-size:clamp(1.6rem, 1.3rem + 1vw, 2.1rem); line-height:1.1;
  letter-spacing:-0.035em; color:#fff !important;
}
.product-motto{ margin-top:10px; font-size:1rem; color:#6FD3B4 !important; }

/* pilot offer */
.pilot{
  margin-top:30px; padding:26px 26px 24px;
  background:rgba(111,211,180,.07); border:1px solid rgba(111,211,180,.25);
  border-radius:var(--r-md);
}
.pilot h4{ color:#fff; font-size:.95rem; margin-bottom:14px; }
.pilot-list{ margin-bottom:22px; }
.pilot-list li{
  position:relative; padding:7px 0 7px 26px; font-size:.91rem; color:#D7E2DD; line-height:1.5;
}
.pilot-list li::before{
  content:""; position:absolute; left:3px; top:14px;
  width:9px; height:5px; border-left:2px solid #6FD3B4; border-bottom:2px solid #6FD3B4;
  rotate:-45deg;
}
.pilot .btn-solid{ background:#0F8A6F; }
.pilot .btn-solid:hover{ background:#12A183; color:#fff; }
.pilot-note{ margin-top:14px; font-size:.82rem; color:#8FA09A !important; }

.flagship-brand{
  padding-right:clamp(0px,2vw,30px); border-right:1px solid rgba(255,255,255,.1);
  align-self:stretch;
}
.spec{ margin-top:30px; border-top:1px solid rgba(255,255,255,.12); }
.spec-row{
  display:grid; grid-template-columns:86px 1fr; gap:14px;
  padding:11px 0; border-bottom:1px dotted rgba(255,255,255,.14);
}
.spec-row dt{
  font-family:"IBM Plex Mono", monospace; font-size:.74rem; color:#8FA09A; line-height:1.6;
}
.spec-row dd{ margin:0; font-size:.88rem; color:#E3EAE7; line-height:1.6; }
.status{
  display:inline-flex; align-items:center; gap:9px; margin-top:26px;
  padding:9px 15px 9px 13px; border-radius:999px;
  background:rgba(111,211,180,.1); border:1px solid rgba(111,211,180,.3);
  font-size:.84rem; color:#A7E7D2 !important;
}
.status-dot{
  width:7px; height:7px; border-radius:50%; background:#6FD3B4; flex:none;
  box-shadow:0 0 0 0 rgba(111,211,180,.6);
  animation:pulse 2.6s ease-out infinite;
}
@keyframes pulse{
  0%{ box-shadow:0 0 0 0 rgba(111,211,180,.55); }
  70%{ box-shadow:0 0 0 9px rgba(111,211,180,0); }
  100%{ box-shadow:0 0 0 0 rgba(111,211,180,0); }
}

.modules{
  margin-top:26px; display:grid; grid-template-columns:repeat(2,minmax(0,1fr));
  gap:0 28px; border-top:1px solid rgba(255,255,255,.12);
}
.modules li{
  padding:11px 0 11px 19px; border-bottom:1px solid rgba(255,255,255,.08);
  font-size:.89rem; color:#C6D2CD; position:relative; line-height:1.45;
}
.modules li::before{
  content:""; position:absolute; left:0; top:18px;
  width:7px; height:7px; border-radius:50%; border:1.5px solid #6FD3B4;
}

/* ---------- training ---------- */
.training{ background:var(--seal-tint); border-block:1px solid #CBDFD7; }
.training-grid{
  display:grid; grid-template-columns:minmax(0,1.35fr) minmax(0,.65fr);
  gap:clamp(28px,4vw,54px); align-items:start;
}
.courses{ display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; }
.courses li{
  background:var(--surface); border:1px solid #CBDFD7; border-radius:var(--r-md);
  padding:22px 22px 24px;
  transition:transform .25s cubic-bezier(.22,.7,.3,1), box-shadow .25s ease, border-color .25s ease;
}
.courses li:hover{
  transform:translateY(-3px); border-color:var(--seal);
  box-shadow:0 14px 30px -22px rgba(10,107,87,.8);
}
.courses h3{ font-size:1.18rem; margin-bottom:8px; }
.courses p{ font-size:.92rem; color:var(--muted); }

.training-aside{
  background:var(--ink); border-radius:var(--r-md); padding:28px 26px;
  position:sticky; top:calc(var(--head-h, 69px) + var(--announce-h, 46px) + 20px);
}
.training-aside h3{ color:#fff; font-size:1.1rem; }
.training-aside .btn{ margin-top:24px; }
.spec-light{ margin-top:20px; border-top-color:rgba(255,255,255,.14); }

/* ---------- plans ---------- */
.plans{ display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:24px; }
.plan{ border:1px solid var(--rule); border-radius:var(--r-md); padding:28px 26px; background:var(--surface); }
.plan-price{
  font-family:"Schibsted Grotesk", sans-serif; font-weight:800; color:var(--ink);
  font-size:1.6rem; letter-spacing:-0.03em; margin:10px 0 14px;
}
.fill{ background:#FFF3C4; padding:0 4px; border-radius:2px; }
.plan p:last-child{ font-size:.94rem; color:var(--muted); }
.plan{ transition:border-color .25s ease, box-shadow .25s ease; }
.plan:hover{ border-color:var(--seal); box-shadow:0 14px 30px -24px rgba(10,107,87,.7); }
.price-note{
  margin-top:28px; padding-top:20px; border-top:1px solid var(--rule);
  font-size:.86rem; color:var(--muted); max-width:70ch;
}

/* ---------- about ---------- */
.about-grid{ display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:clamp(30px,4vw,64px); align-items:start; }
.about-grid p + p{ margin-top:16px; }

.beliefs{ display:grid; }
.beliefs li{ padding:22px 0; border-top:1px solid var(--rule); }
.beliefs li:last-child{ border-bottom:1px solid var(--rule); }
.beliefs h3{ font-size:1.08rem; margin-bottom:8px; }
.beliefs p{ font-size:.95rem; color:var(--muted); }
.about-grid h2{ margin-bottom:20px; font-size:var(--fs-step-2); }
.stack-line{
  margin-top:24px; padding-top:18px; border-top:1px solid var(--rule);
  font-family:"IBM Plex Mono", monospace; font-size:.8rem; color:var(--muted); max-width:none;
}

/* ---------- faq ---------- */
.faq{ border-top:1px solid var(--rule); }
.faq details{ border-bottom:1px solid var(--rule); }
.faq summary{
  cursor:pointer; list-style:none; padding:20px 36px 20px 0; position:relative;
  font-family:"Schibsted Grotesk", sans-serif; font-weight:700; color:var(--ink);
  font-size:1.05rem; line-height:1.35;
}
.faq summary::-webkit-details-marker{ display:none; }
.faq summary::after{
  content:""; position:absolute; right:6px; top:28px;
  width:11px; height:11px; border-right:2px solid var(--seal); border-bottom:2px solid var(--seal);
  rotate:45deg; transition:rotate .2s ease;
}
.faq details[open] summary::after{ rotate:-135deg; top:30px; }
.faq details p{ padding:0 0 22px; color:var(--body); font-size:.98rem; }

/* ---------- contact ---------- */
.contact{ background:var(--band); border-top:1px solid var(--rule); }
.contact-grid{ display:grid; grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr); gap:clamp(34px,5vw,70px); align-items:start; }
.contact-intro p{ margin-top:18px; font-size:var(--fs-step-1); line-height:1.5; color:var(--muted); }
.direct{ margin-top:34px; border-top:1px solid var(--rule); }
.direct li{
  display:grid; grid-template-columns:120px 1fr; gap:14px;
  padding:14px 0; border-bottom:1px solid var(--rule); font-size:.93rem;
}
.direct li > span:first-child{
  font-family:"IBM Plex Mono", monospace; font-size:.78rem; color:var(--muted);
}

.form{
  background:var(--surface); border:1px solid var(--rule); border-radius:var(--r-md);
  padding:clamp(24px,3vw,34px);
}
.field{ margin-bottom:18px; }
.field-pair{ display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.field label{
  display:block; margin-bottom:7px; font-size:.86rem; font-weight:600; color:var(--ink);
}
.field input, .field select, .field textarea{
  width:100%; padding:13px 14px; background:var(--paper);
  border:1.5px solid var(--rule); border-radius:var(--r-md);
  font-size:.96rem; color:var(--ink); transition:border-color .16s ease, background-color .16s ease;
}
.field textarea{ resize:vertical; min-height:120px; }
.field input:focus, .field select:focus, .field textarea:focus{
  background:var(--surface); border-color:var(--seal); outline:none;
}
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible{ outline:none; }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"]{ border-color:var(--wax); }

.hp{ position:absolute; left:-9999px; width:1px; height:1px; overflow:hidden; }

.consent{ display:flex; gap:11px; align-items:flex-start; margin:4px 0 20px; }
.consent input{ margin-top:4px; width:17px; height:17px; accent-color:var(--seal); flex:none; }
.consent label{ font-size:.88rem; color:var(--muted); }

.form-note{ margin-top:14px; font-size:.84rem; color:var(--muted); text-align:center; }
.form-status{ margin-top:12px; font-size:.9rem; font-weight:600; }
.form-status.ok{ color:var(--seal); }
.form-status.bad{ color:var(--wax); }
.form-status a{ color:var(--wax); font-weight:700; }
.form-status a:hover{ color:#8E2C1B; }

/* ---------- footer ---------- */
.site-foot{ background:var(--ink); color:#A9B6B0; padding-top:clamp(44px,5vw,70px); }
.foot-grid{ display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.2fr); gap:40px; padding-bottom:40px; }
.foot-tagline{
  margin-top:16px;
  font-family:"Schibsted Grotesk", sans-serif; font-weight:600;
  font-size:.86rem; letter-spacing:.05em; color:#6FD3B4;
}
.foot-note{ margin-top:12px; font-size:.9rem; line-height:1.7; }
.foot-note a{ color:#A9B6B0; }
.foot-nav{ display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:24px; }
.foot-nav h4{ color:#fff; margin-bottom:14px; letter-spacing:.01em; }
.foot-nav a{
  display:block; padding:5px 0; color:#A9B6B0; text-decoration:none; font-size:.92rem;
}
.foot-nav a:hover{ color:#fff; }
.foot-base{
  display:flex; flex-wrap:wrap; justify-content:space-between; gap:12px;
  padding-block:20px; border-top:1px solid rgba(255,255,255,.12);
  font-size:.84rem;
}
.foot-legal a{ color:#A9B6B0; margin-left:18px; text-decoration:none; }
.foot-legal a:first-child{ margin-left:0; }
.foot-legal a:hover{ color:#fff; }

/* ===========================================================
   Responsive
   =========================================================== */

@media (max-width: 980px){
  .hero-grid,
  .premise-grid,
  .ownership-grid,
  .about-grid,
  .contact-grid,
  .flagship{ grid-template-columns:1fr; }

  .offer-grid{ grid-template-columns:1fr; }
  .offer{ padding:28px 0; border-right:0; }
  .offer:first-child{ padding-top:28px; }

  .cases,
  .plans{ grid-template-columns:1fr; }
  .foot-grid{ grid-template-columns:1fr; }
  .record{ rotate:0deg; }

  .flagship-brand{
    border-right:0; border-bottom:1px solid rgba(255,255,255,.1);
    padding-right:0; padding-bottom:30px;
  }
  .training-grid{ grid-template-columns:1fr; }
  .training-aside{ position:static; }

  .launch-grid{ grid-template-columns:1fr; }
  .launch-sticky{ position:static; }
  .launch-markers{ display:none; }
  .launch-panel{ opacity:1; }
}

@media (max-width: 720px){
  /* The open menu is dark on every page. It used to inherit the pale link
     colour the header uses over the hero, which left light grey text on a
     white panel — effectively invisible. */
  .nav{
    display:none; position:absolute; top:100%; left:0; right:0;
    flex-direction:column; align-items:stretch; gap:0;
    background:#0C1318;
    border-bottom:1px solid rgba(255,255,255,.14);
    box-shadow:0 22px 44px -26px rgba(0,0,0,.85);
    padding:8px 24px 22px;
  }
  .nav.open{ display:flex; }
  .nav a{ padding:14px 0; border-bottom:1px solid rgba(255,255,255,.1); }
  .nav a.btn{ margin-top:16px; border-bottom:0; }

  /* beats both the over-hero and the scrolled-past header rules */
  .nav a:not(.btn),
  .home .site-head .nav a:not(.btn),
  .home .site-head.is-stuck .nav a:not(.btn){ color:#E8EFEC; }
  .nav a:not(.btn):hover,
  .home .site-head .nav a:not(.btn):hover,
  .home .site-head.is-stuck .nav a:not(.btn):hover{ color:#6FD3B4; }
  .nav-toggle{ display:block; }
  /* stays sticky so the bar and the header travel together; the dropdown
     is absolute against it, which sticky positioning still supports */
  .site-head{ position:sticky; top:var(--announce-h, 40px); }

  /* on a narrow screen the text spans the full width, so the veil
     shades top-to-bottom instead of left-to-right */
  .hero-veil{
    background:linear-gradient(to bottom,
      rgba(8,13,17,.55) 0%, rgba(8,13,17,.82) 26%,
      rgba(8,13,17,.82) 74%, rgba(8,13,17,.55) 100%);
  }

  .field-pair{ grid-template-columns:1fr; gap:0; }
  .step{ grid-template-columns:52px 1fr; gap:16px; }
  .step-num{ font-size:1.9rem; }
  .record-row{ grid-template-columns:100px 1fr; gap:10px; }
  .record-foot{ flex-direction:column; align-items:flex-start; }
  .direct li{ grid-template-columns:1fr; gap:2px; }
  .foot-nav{ grid-template-columns:repeat(2,1fr); }
  .modules{ grid-template-columns:1fr; }
  .courses{ grid-template-columns:1fr; }
  .announce-inner{ font-size:.82rem; }
}

@media (max-width: 460px){
  .brand-mark{ width:30px; height:30px; }
  .brand-name{ font-size:.9rem; }
  .brand-sub{ display:none; }   /* tagline would wrap awkwardly at this width */
}
