/* ============================================================================
   OmniQuest Labs — the shared system
   Everything every page of the site has in common: the faces, the tokens, the
   type scale, the fixed header, the buttons, the star field, the closing band,
   the footer and the reveal. Anything that belongs to ONE page lives in that
   page's own stylesheet, never here.
   ========================================================================== */

@font-face{font-family:'SG';src:url('../fonts/SpaceGrotesk-300.woff2') format('woff2'),url('../fonts/SpaceGrotesk-300.ttf') format('truetype');font-weight:300;font-style:normal;font-display:swap}
@font-face{font-family:'SG';src:url('../fonts/SpaceGrotesk-400.woff2') format('woff2'),url('../fonts/SpaceGrotesk-400.ttf') format('truetype');font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:'SG';src:url('../fonts/SpaceGrotesk-500.woff2') format('woff2'),url('../fonts/SpaceGrotesk-500.ttf') format('truetype');font-weight:500;font-style:normal;font-display:swap}
@font-face{font-family:'SG';src:url('../fonts/SpaceGrotesk-700.woff2') format('woff2'),url('../fonts/SpaceGrotesk-700.ttf') format('truetype');font-weight:700;font-style:normal;font-display:swap}
@font-face{font-family:'IN';src:url('../fonts/Inter-300.woff2') format('woff2'),url('../fonts/Inter-300.ttf') format('truetype');font-weight:300;font-style:normal;font-display:swap}
@font-face{font-family:'IN';src:url('../fonts/Inter-400.woff2') format('woff2'),url('../fonts/Inter-400.ttf') format('truetype');font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:'IN';src:url('../fonts/Inter-500.woff2') format('woff2'),url('../fonts/Inter-500.ttf') format('truetype');font-weight:500;font-style:normal;font-display:swap}
@font-face{font-family:'IN';src:url('../fonts/Inter-600.woff2') format('woff2'),url('../fonts/Inter-600.ttf') format('truetype');font-weight:600;font-style:normal;font-display:swap}

:root{
  --void:#0B132B; --void-2:#0E1733; --void-3:#141F42;
  --cyan:#00F1FD; --violet:#7F00FF; --blue:#367BFF; --lav:#C6A5FF;
  --white:#FFFFFF; --silver:#E0E1DD; --ink:#1A2340;
  --gut:clamp(20px,4.6vw,88px); --maxw:1760px;
}
*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{background:var(--void);color:var(--silver);font-family:'IN',system-ui,sans-serif;font-weight:300;font-size:17px;line-height:1.6;overflow-x:hidden;-webkit-font-smoothing:antialiased}
/* A <picture> is only a wrapper for choosing a format. display:contents takes
   its box out of the layout entirely, so every image inside one behaves exactly
   as it did when it was a direct child of its container - which matters,
   because several rules here position these images absolutely. */
picture{display:contents}
img{display:block;max-width:100%;height:auto}
a{color:inherit;text-decoration:none}

/* ----------------------------------------------------------------------------
   The browser's own margins, written down.

   This design was built against the default stylesheet and never stated the
   margins it was inheriting. Inside WordPress a parent theme resets them, and
   headings and paragraphs close up by a few pixels each, which compounds into
   tens of pixels down a long page. These are the exact UA values, so nothing
   here changes how the design renders - it only stops someone else changing it.
   Every component rule below overrides these, as it did before.
   -------------------------------------------------------------------------- */
h1{margin-top:.67em;margin-bottom:.67em}
h2{margin-top:.83em;margin-bottom:.83em}
h3{margin-top:1em;margin-bottom:1em}
h4{margin-top:1.33em;margin-bottom:1.33em}
h5{margin-top:1.67em;margin-bottom:1.67em}
p{margin-top:1em;margin-bottom:1em}
ul,ol{margin-top:1em;margin-bottom:1em;padding-left:40px}
figure{margin:1em 40px}
blockquote{margin:1em 40px}
.wrap{width:100%;max-width:var(--maxw);margin:0 auto;padding:0 var(--gut)}

/* type */
.d1{font-family:'SG';font-weight:300;font-size:clamp(40px,4.4vw,78px);line-height:1.06;letter-spacing:-.025em;color:var(--white)}
.d1 b{font-weight:500}
.d2{font-family:'SG';font-weight:300;font-size:clamp(32px,3.7vw,64px);line-height:1.08;letter-spacing:-.022em}
.d3{font-family:'SG';font-weight:400;font-size:clamp(22px,1.9vw,34px);line-height:1.18;letter-spacing:-.015em}
/* 1em top and bottom is the browser default this was written against; any
   page rule that sets its own margin still wins, because the page
   stylesheets load after this one */
.lede{font-size:clamp(16px,1.06vw,19px);line-height:1.68;font-weight:300;margin:1em 0}
.label{font-family:'SG';font-weight:500;font-size:12.5px;letter-spacing:.22em;text-transform:uppercase}
.mono{font-family:'SG';font-weight:400;font-size:13px;letter-spacing:.1em}

/* header */
header{position:fixed;inset:0 0 auto 0;z-index:70;background:rgba(11,19,43,.72);backdrop-filter:blur(18px) saturate(1.4);border-bottom:1px solid rgba(224,225,221,.13);transition:background .3s}
header.solid{background:rgba(11,19,43,.97)}
.bar{display:flex;align-items:center;gap:36px;height:98px}
.brand{width:clamp(160px,12vw,208px);flex:none}
nav{display:flex;gap:28px;margin-left:auto}
nav a{font-family:'SG';font-weight:400;font-size:16px;letter-spacing:0;color:rgba(224,225,221,.88);position:relative;padding:6px 0}
nav a::after{content:"";position:absolute;left:0;right:100%;bottom:0;height:1px;background:var(--cyan);transition:right .3s}
nav a:hover::after,nav a[aria-current]::after{right:0}
nav a[aria-current]{color:#fff}
.cta{font-family:'SG';font-weight:500;font-size:14px;letter-spacing:.12em;text-transform:uppercase;background:var(--cyan);color:var(--void);padding:14px 26px;display:inline-block;border-radius:8px;transition:transform .25s,background .25s}
.cta:hover{transform:translateY(-2px);background:#6FF7FF}
.cta--ghost{background:transparent;color:#fff;box-shadow:inset 0 0 0 1px rgba(224,225,221,.4)}
.cta--ghost:hover{background:rgba(255,255,255,.08);box-shadow:inset 0 0 0 1px rgba(224,225,221,.7)}

/* the star field: a drawn field, never a blurred disc.

   pointer-events:none is not optional. This is an absolutely positioned sheet
   over the whole of its section, and with pointer events left at auto it
   swallows every click underneath it while looking completely innocent - the
   buttons are visible, correctly placed, and simply do nothing. On the Students
   page it was eating BOTH hero buttons, "Explore Missions" and "Chart Course",
   and had been doing so since the page was built. Nothing decorative should
   ever be in front of something you can press. */
.stars{pointer-events:none;position:absolute;inset:0;opacity:.55;background-repeat:repeat;background-size:420px 420px;
  background-image:
    radial-gradient(1.4px 1.4px at 40px 60px, rgba(255,255,255,.75), transparent),
    radial-gradient(1.2px 1.2px at 180px 140px, rgba(198,165,255,.7), transparent),
    radial-gradient(1px 1px at 300px 40px, rgba(255,255,255,.55), transparent),
    radial-gradient(1.6px 1.6px at 240px 300px, rgba(0,241,253,.55), transparent),
    radial-gradient(1px 1px at 80px 340px, rgba(255,255,255,.5), transparent),
    radial-gradient(1.2px 1.2px at 370px 230px, rgba(255,255,255,.45), transparent);}

/* sections */
.sec{padding:clamp(80px,8vw,150px) 0;position:relative}
.light{background:var(--white);color:var(--ink)}

/* the closing band, on every page */
.band{position:relative;min-height:620px;display:flex;align-items:center;overflow:hidden}
.band img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.band::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(11,19,43,.92) 0%,rgba(11,19,43,.5) 46%,rgba(11,19,43,.12) 100%)}
.band .wrap{position:relative;z-index:2}
.band__box{background:linear-gradient(140deg,rgba(0,241,253,.24),rgba(127,0,255,.3));padding:1px;border-radius:14px;max-width:640px;box-shadow:0 50px 100px -34px rgba(0,0,0,.9)}
.band__in{background:rgba(9,15,36,.88);border-radius:13px;padding:clamp(30px,3vw,46px)}
.band__in h2{margin:0 0 24px;color:#fff}

/* footer */
footer{background:var(--void);padding:clamp(66px,6vw,110px) 0 44px;border-top:1px solid rgba(224,225,221,.13)}
.foot{display:grid;grid-template-columns:4fr 3fr 3fr;gap:clamp(28px,4vw,70px)}
.foot__mark{width:clamp(176px,15vw,248px);margin-bottom:26px}
.foot h4{font-family:'SG';font-weight:400;font-size:17px;line-height:1.6;letter-spacing:-.01em;color:rgba(224,225,221,.92);margin:0 0 18px}
/* stated, not inherited: a host stylesheet resets paragraph margins and
   heading line-height, and this footer is the one place the design was
   leaning on the browser default */
.foot>div>p{margin:16px 0}
.foot ul{list-style:none;margin:0;padding:0}
.foot li{margin-bottom:11px;font-size:16px;color:rgba(224,225,221,.8)}
.foot li a:hover{color:var(--cyan)}
.foot__meta{display:flex;justify-content:space-between;gap:20px;margin-top:clamp(44px,5vw,80px);padding-top:24px;border-top:1px solid rgba(224,225,221,.13);font-size:14px;color:rgba(224,225,221,.62);flex-wrap:wrap}
.foot__legal{display:flex;gap:clamp(18px,2vw,28px);flex-wrap:wrap}
.foot__legal a{border-bottom:1px solid rgba(224,225,221,.22);transition:color .3s,border-color .3s}
.foot__legal a:hover{color:var(--cyan);border-bottom-color:var(--cyan)}
.foot__legal a[aria-current]{color:rgba(224,225,221,.92)}

/* reveal */
.js .rv{opacity:0;transform:translateY(24px)}
.js .rv.in{opacity:1;transform:none;transition:opacity .9s cubic-bezier(.2,.7,.2,1),transform .9s cubic-bezier(.2,.7,.2,1)}
@media (prefers-reduced-motion:reduce){.js .rv{opacity:1;transform:none}}

/* menu */
.menu-btn{display:none;margin-left:auto;width:44px;height:44px;background:none;border:1px solid rgba(224,225,221,.4);border-radius:10px;cursor:pointer;position:relative}
.menu-btn i{position:absolute;left:11px;right:11px;height:1px;background:#fff;transition:transform .3s,opacity .2s}
.menu-btn i:nth-child(1){top:16px}.menu-btn i:nth-child(2){top:22px}.menu-btn i:nth-child(3){top:28px}
body.open .menu-btn i:nth-child(1){transform:translateY(6px) rotate(45deg)}
body.open .menu-btn i:nth-child(2){opacity:0}
body.open .menu-btn i:nth-child(3){transform:translateY(-6px) rotate(-45deg)}
.sheet{position:fixed;inset:98px 0 0 0;background:var(--void);z-index:65;display:none;padding:34px var(--gut)}
body.open .sheet{display:block}
.sheet a{display:block;font-family:'SG';font-weight:300;font-size:28px;color:#fff;padding:15px 0;border-bottom:1px solid rgba(224,225,221,.13)}

@media (max-width:1200px){
  .foot{grid-template-columns:1fr 1fr}
}
@media (max-width:820px){
  nav,header .cta{display:none}
  .menu-btn{display:block}
  .foot{grid-template-columns:1fr}
  .band::after{background:linear-gradient(0deg,rgba(11,19,43,.95) 20%,rgba(11,19,43,.55) 100%)}
}


/* ============================================================================
   The arrival.

   The page used to land in three jolts: a white flash, then a dark page with no
   words in it, then the words, nearly two seconds apart. The ground is now
   painted before the stylesheet arrives (inline in the head), the faces are
   subset to Latin and served as woff2 so they land in tens of milliseconds
   instead of two seconds, and what is above the fold comes in on a short
   stagger rather than snapping on.

   None of this is decoration. It exists so the first second reads as one event
   instead of three accidents.

   The hidden state is written here, by selector, rather than added by the
   script: a class added at DOMContentLoaded would hide elements the browser has
   already painted, which is a flash in the other direction. The script only
   sets each element's delay and then releases the whole thing. It is all under
   html.js, so with no script the page is simply visible, and site.js caps the
   wait so a slow font can never hold the page back.
   ========================================================================== */

/* 16 Nov 2026. The arrival is now painted by the BROWSER, not released by the
   script, and the two elements that decide the Largest Contentful Paint carry
   no opacity change at all.

   What was wrong: everything above the fold sat at opacity 0 under html.js, and
   came back only when site.js added .ready. The script capped its own wait at
   700 ms, but that clock only starts once the script itself has arrived, so on
   a throttled phone the whole page stayed blank until it did — measured at
   3,572 ms to first paint. Chrome does not count an element at opacity 0 as a
   Largest Contentful Paint candidate, so the only candidate it found on the
   home page was a 1,870 px thumbnail, and Lighthouse reported that it could not
   find one at all.

   So: the headline lifts on TRANSFORM alone and is painted immediately; the
   hero photograph is simply there and settles on transform once it has decoded;
   and the supporting lines still fade, on a delay written here rather than set
   by the script. Nothing above the fold now waits for JavaScript. */

.hero__copy h1,.ehero__in h1,.bhero__in h1,.shero__copy h1,
.ahero__in h1,.chero__copy h1,.lhero__in h1{
  animation:entLift .66s cubic-bezier(.22,.72,.2,1) both}

.hero__sub,.hero__acts,.rail,
.ehero__sub,.ehero__acts,
.bhero__sub,.bhero__acts,
.shero__copy .ilist,.shero__sub,.shero__acts,
.ahero__tag,
.chero__sub,
.lhero__sub,.lhero__meta{
  animation:entRise .66s cubic-bezier(.22,.72,.2,1) both;animation-delay:.09s}

.hero__acts,.ehero__acts,.bhero__acts,.shero__acts,
.shero__copy .ilist,.lhero__meta,.rail{animation-delay:.18s}

/* the drawn orbit and the About ring are objects, so they settle rather than
   rise; they are not photographs and carry no download, so they come in with
   the type */
.orbit,.ahero__ring{
  animation:entSettle .9s cubic-bezier(.22,.72,.2,1) both;animation-delay:.18s}

/* A photograph is a few hundred kilobytes and arrives on its own clock, so it
   is never faded in — it would animate while still empty and then fill in
   underneath. It is present from the first paint and settles on transform when
   site.js reports that the picture has actually decoded. If the script never
   runs, the picture is simply there. */
html.hero-img .bhero__shot,html.hero-img .shero__shot,
html.hero-img .chero__shot,html.hero-img .ehero img{
  animation:entSettleT .9s cubic-bezier(.22,.72,.2,1) both}

@keyframes entLift{from{transform:translateY(16px)}to{transform:none}}
@keyframes entRise{from{opacity:0;transform:translateY(16px)}to{opacity:1;transform:none}}
@keyframes entSettle{from{opacity:0;transform:scale(1.028)}to{opacity:1;transform:none}}
@keyframes entSettleT{from{transform:scale(1.028)}to{transform:none}}

@media (prefers-reduced-motion:reduce){
  [class]{animation:none !important}
}

/* ============================================================================
   The hero photographs, under a pointer.

   One object, one answer: it lifts a little and its shadow deepens, as though
   it had come toward you. Deliberately not a zoom - these figures carry their
   own shadow and have no clipping frame, so scaling one makes it bleed over
   whatever is beside it. A transform cannot reflow the page, so nothing here
   can move the layout.

   Only on a real pointer. On a phone the photographs are simply photographs.
   ========================================================================== */
@media (hover:hover) and (pointer:fine){
  .bhero__shot img,.shero__shot img,.chero__shot img,.love__shot img,.wide img{
    transition:transform .55s cubic-bezier(.2,.7,.2,1), box-shadow .55s ease, filter .55s ease}

  .bhero__shot:hover img,.shero__shot:hover img,.love__shot:hover img,.wide:hover img{
    transform:translateY(-7px);
    filter:brightness(1.05) saturate(1.04);
    box-shadow:0 80px 150px -40px rgba(0,0,0,.95),0 0 0 1px rgba(224,225,221,.17)}

  /* the contact photograph is a full-height panel, not a card: it has no
     shadow to deepen, so it answers by warming and easing closer instead */
  .chero__shot:hover img{transform:scale(1.03);filter:brightness(1.06) saturate(1.05)}
}
@media (prefers-reduced-motion:reduce){
  .bhero__shot img,.shero__shot img,.chero__shot img,.love__shot img,.wide img,.chip,.orbit__svg{
    transition:none}
}

/* ============================================================================
   Targets big enough for a fingertip.

   A sweep across sixteen device widths found three text links whose boxes are
   23px and 31px tall. WCAG 2.5.8 puts the floor at 24px and 44px is what is
   actually comfortable, so the footer's legal pair failed outright and the
   three card links and the Students "For educators" link were marginal.

   The hit area is grown with an invisible pseudo-element rather than with
   padding, because every one of these links carries its own underline and
   padding would push that line away from its text. An absolutely positioned
   pseudo-element is out of flow - it is not a flex item inside .card__l, and
   it moves nothing. The ink stays exactly where it was; only the target that
   a finger has to find gets bigger.
   ========================================================================== */
.foot__legal a,.card__l,.grown a{position:relative}
.foot__legal a::after,.card__l::after,.grown a::after{
  content:"";position:absolute;left:0;right:0;top:50%;height:44px;
  transform:translateY(-50%)}


/* ============================================================================
   Research sources.

   A <details> element, because a native disclosure is keyboard operable, works
   with a screen reader and survives with no script at all - which matters for a
   block whose whole job is to let a sceptical reader check a number.

   It is closed by default: twelve full citations before the closing band would
   bury the page, and the reader who wants them is deliberately looking.
   ========================================================================== */
.srcs{padding-top:clamp(50px,4.6vw,80px);padding-bottom:clamp(60px,5.4vw,96px)}
/* full content width: this rule sits directly under the rules of the rows above
   it, and a shorter one reads as an unfinished line. The list keeps its own
   readable measure below. */
.srcs__d{border-top:1px solid #D7DAE3}
.srcs__d summary{display:flex;align-items:baseline;gap:16px;cursor:pointer;
  padding:clamp(20px,2vw,28px) 0;list-style:none}
.srcs__d summary::-webkit-details-marker{display:none}
.srcs__t{font-family:'SG';font-weight:400;font-size:clamp(18px,1.3vw,22px);
  letter-spacing:-.012em;color:var(--ink)}
.srcs__n{font-family:'SG';font-weight:400;font-size:13px;letter-spacing:.14em;
  text-transform:uppercase;color:#6B7488}
/* the marker is drawn, so it can rotate and so it is not a font glyph */
.srcs__d summary::after{content:"";margin-left:auto;width:11px;height:11px;flex:none;
  border-right:1.5px solid #6B7488;border-bottom:1.5px solid #6B7488;
  transform:rotate(45deg) translateY(-3px);transition:transform .3s ease}
.srcs__d[open] summary::after{transform:rotate(-135deg) translateY(-3px)}
.srcs__d summary:hover .srcs__t{color:var(--violet)}

.srcs__l{margin:0 0 clamp(14px,1.4vw,22px);padding-left:26px;max-width:92ch;
  counter-reset:none}
.srcs__l li{margin-bottom:15px;color:#404A63;font-size:15.5px;line-height:1.58}
.srcs__l li:last-child{margin-bottom:0}
.srcs__l b{font-weight:500;color:var(--ink)}
.srcs__l i{font-style:italic}

/* ============================================================================
   The research callout.

   Three statistics, which this site had none of until the client supplied them.
   The figure is set in the brand's own large number grammar - the same Space
   Grotesk Light in violet that the numbered steps use - rather than inventing a
   statistic style, and the citation sits under each card in muted caption text
   where his brief asked for it. The card is a plain field with a hairline, not
   a box with a shadow: a number this size does not need a container to be read.
   ========================================================================== */
/* the same trap as .ways__head: this is also a .wrap, so a width here would
   centre the heading away from the cards. The measure is on the h2. */
.rsch__head h2{max-width:15ch}
.rsch__head h2{color:var(--ink);margin:0}
.rsch__head h2 em{font-style:normal;color:var(--violet)}

.rsch{margin-top:clamp(46px,4.6vw,86px);display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(30px,3.4vw,70px);align-items:start}
.rsch__c{border-top:1px solid #D7DAE3;padding-top:clamp(20px,2vw,30px)}
.rsch__fig{font-family:'SG';font-weight:300;font-size:clamp(54px,5.2vw,86px);line-height:.92;
  letter-spacing:-.03em;color:var(--violet);margin:0 0 18px}
/* The small span is for a UNIT OR A SIGN standing beside the figure - the per
   cent mark - and never for part of the number itself. "11" with a small
   raised "-14" after it does not read as the ages 11 to 14, it reads as 11 to
   the power of minus 14. A range is one number and stays at full size.
   .pre is the same treatment for a sign that comes BEFORE the figure, so that
   the # of "#50" is set like the % of "40%" instead of standing at full
   height beside it. The client's words: "why there is inequality". */
.rsch__fig span{font-size:.46em;letter-spacing:0;margin-left:2px;vertical-align:super}
.rsch__fig span.pre{margin-left:0;margin-right:3px}
.rsch h3{font-family:'SG';font-weight:400;font-size:clamp(20px,1.5vw,26px);line-height:1.12;
  letter-spacing:-.018em;color:var(--ink);margin:0 0 14px;max-width:18ch}
.rsch p:not(.rsch__fig):not(.rsch__src){margin:0;color:#404A63;
  font-size:clamp(15.5px,1.02vw,17px);line-height:1.6}
.rsch__src{margin:18px 0 0;color:#6B7488;font-size:13.5px;line-height:1.45;
  font-family:'SG';font-weight:400;letter-spacing:.01em}

@media (max-width:1200px){
  .rsch{grid-template-columns:1fr;gap:clamp(30px,4vw,44px)}
  .rsch__head h2{max-width:none}
  .rsch h3{max-width:none}
  .rsch p:not(.rsch__fig):not(.rsch__src){max-width:60ch}
}

/* Social: the two platform marks, in the footer on every page and in the
   contact page's details column. The glyphs are the platforms' own, which is
   how anyone recognises them at 17px; the link itself borrows the site's
   existing ghost-button border rather than introducing a new shape. */
.soc{display:flex;flex-wrap:wrap;gap:12px;align-items:center;margin:22px 0 0;padding:0;list-style:none}
.soc a{display:inline-flex;align-items:center;gap:9px;font-size:15px;line-height:1;
  color:rgba(224,225,221,.86);border:1px solid rgba(224,225,221,.26);border-radius:3px;
  padding:10px 15px 10px 13px;transition:color .3s,border-color .3s,background-color .3s}
.soc a:hover{color:var(--void);background:var(--cyan);border-color:var(--cyan)}
.soc svg{width:17px;height:17px;fill:currentColor;flex:none}
.coords .soc{margin-top:14px}
.coords .soc a{color:var(--ink);border-color:rgba(26,35,64,.28)}
.coords .soc a:hover{color:#fff;background:var(--violet);border-color:var(--violet)}
