/* ==========================================================================
   Holding company — design system.
   Palette: an abyss-to-jade range with champagne as the single warm. Built
   to glow against dark rather than sit flat on it.
   ========================================================================== */

@font-face{font-family:Spectral;src:url(../fonts/spectral-300.woff2)format("woff2");font-weight:300;font-style:normal;font-display:swap}
@font-face{font-family:Spectral;src:url(../fonts/spectral-300i.woff2)format("woff2");font-weight:300;font-style:italic;font-display:swap}
@font-face{font-family:Spectral;src:url(../fonts/spectral-400.woff2)format("woff2");font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:Spectral;src:url(../fonts/spectral-400i.woff2)format("woff2");font-weight:400;font-style:italic;font-display:swap}
@font-face{font-family:Spectral;src:url(../fonts/spectral-600.woff2)format("woff2");font-weight:600;font-style:normal;font-display:swap}
@font-face{font-family:Plex;src:url(../fonts/plex-400.woff2)format("woff2");font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:Plex;src:url(../fonts/plex-500.woff2)format("woff2");font-weight:500;font-style:normal;font-display:swap}

:root{
  /* Declare the scheme. Android Chrome offers a "Darken websites" setting
     that re-paints pages which say nothing about their own colours, and it
     inverts light surfaces: the cream bands here come back near-black and
     the whole site becomes one unbroken dark run. Naming the scheme is the
     standard way to say the palette is deliberate and should be left
     alone. It also settles the colour of form controls and scrollbars,
     which were previously whatever the device decided. */
  color-scheme:light;

  /* --- dark range: deep, blue-leaning, never flat black --- */
  --abyss:#04151a;
  --deep:#072026;
  --deep-2:#0a2a31;
  --deep-3:#0f373f;

  /* --- the living accent: sea through jade to aqua --- */
  --sea:#0b5f54;
  --jade:#16a189;
  --aqua:#5fd9c0;
  --aqua-dim:rgba(95,217,192,.16);

  /* --- warm: champagne, used sparingly and never as a fill --- */
  --champ:#d9c49a;
  --champ-deep:#a88d5e;

  /* --- light range --- */
  --stone:#f5f3ee;
  --stone-2:#eae7df;
  --stone-3:#fbfaf6;
  --stone-4:#dcd7cb;

  /* --- text on each --- */
  --on-dark:#eef3f2;
  --on-dark-dim:#9fb5b4;
  --on-dark-faint:#6b8584;
  --on-light:#07252b;
  --on-light-dim:#3c5c60;
  --on-light-faint:#6e8a8c;

  --rule:rgba(7,37,43,.15);
  --rule-soft:rgba(7,37,43,.08);
  --rule-dark:rgba(238,243,242,.16);
  --rule-dark-soft:rgba(238,243,242,.08);

  --serif:Spectral,"Iowan Old Style",Georgia,serif;
  --sans:Plex,"IBM Plex Sans",system-ui,-apple-system,Segoe UI,sans-serif;

  --measure:34rem;
  --gut:clamp(20px,5vw,64px);
  --header-h:76px;
  --ease:cubic-bezier(.22,.78,.24,1);
  --ease-out:cubic-bezier(.16,1,.3,1);
}

*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
body{
  margin:0;background:var(--stone);color:var(--on-light);
  font:400 1.0625rem/1.68 var(--serif);
  font-feature-settings:"kern" 1,"liga" 1;
  text-rendering:optimizeLegibility;overflow-x:hidden;
}
img,svg,canvas{max-width:100%;display:block}
svg,canvas{height:auto}
a{color:inherit;text-decoration:none}

/* ---- type ------------------------------------------------------------- */
h1,h2,h3,h4{margin:0;font-weight:300;letter-spacing:-.015em;line-height:1.08}
h1{font-size:clamp(2.5rem,5.8vw,4.9rem)}
h2{font-size:clamp(1.9rem,3.7vw,3.1rem)}
h3{font-size:clamp(1.22rem,1.9vw,1.58rem);line-height:1.22}
h4{font-size:1.02rem;font-weight:400}
p{margin:0 0 1.15em}
em{font-style:italic}
strong{font-weight:600}
.lede{font-size:clamp(1.12rem,1.65vw,1.36rem);line-height:1.6;font-weight:300;
  color:var(--on-light-dim)}
.measure{max-width:var(--measure)}
.measure-wide{max-width:46rem}

.label,.eyebrow,.num,.btn,nav a,th,.cap,.yr{font-family:var(--sans)}
.eyebrow{display:block;font-size:.675rem;font-weight:500;letter-spacing:.21em;
  text-transform:uppercase;color:var(--on-light-faint);margin:0 0 1.2rem}
.num{font-size:.7rem;font-weight:500;letter-spacing:.14em;color:var(--champ-deep);
  font-variant-numeric:tabular-nums}
.cap{font-size:.78rem;line-height:1.55;color:var(--on-light-faint)}

/* ---- layout ----------------------------------------------------------- */
.wrap{width:100%;max-width:1220px;margin:0 auto;padding:0 var(--gut)}
.wrap-narrow{width:100%;max-width:880px;margin:0 auto;padding:0 var(--gut)}
section{position:relative}
.band{padding:clamp(4.5rem,9.5vw,9rem) 0}
.band-tight{padding:clamp(3rem,5.5vw,5.2rem) 0}

/* dark bands get a subtle vertical lift so they never read as a flat slab */
.band-dark{
  background:linear-gradient(175deg,var(--deep) 0%,var(--abyss) 60%,#031115 100%);
  color:var(--on-dark);
}
.band-dark h1,.band-dark h2,.band-dark h3,.band-dark h4{color:var(--on-dark)}
.band-dark .lede{color:var(--on-dark-dim)}
.band-dark .eyebrow{color:var(--champ)}
.band-dark .cap{color:var(--on-dark-faint)}
.band-dark em{color:var(--aqua)}
.band-dark .num{color:var(--champ)}
.band-sea{background:linear-gradient(160deg,var(--deep-3),var(--sea) 70%,#06443c);
  color:var(--on-dark)}
.band-sea h2,.band-sea h3{color:#fff}
.band-sea .eyebrow{color:var(--aqua)}
.band-sea .lede{color:rgba(238,243,242,.82)}
.band-stone2{background:var(--stone-2)}
.rule-top{border-top:1px solid var(--rule)}
em.hl{color:var(--sea);font-style:italic}

/* section rule with number */
.srule{display:flex;align-items:baseline;gap:1.4rem;padding-bottom:1.5rem;
  margin-bottom:clamp(2rem,3.6vw,3.3rem);border-bottom:1px solid var(--rule);
  position:relative}
.srule .num{flex:none;padding-top:.2rem}
.srule h2{flex:1 1 auto}
.band-dark .srule,.band-sea .srule{border-color:var(--rule-dark)}
/* the rule draws itself in when the section arrives */
.srule::after{content:"";position:absolute;left:0;bottom:-1px;height:1px;width:0;
  background:var(--jade);transition:width 1.1s var(--ease-out) .1s}
.srule.in::after{width:100%}

/* ---- header ----------------------------------------------------------- */
.site-header{position:sticky;top:0;z-index:70;transition:background .4s,border-color .4s;
  background:rgba(245,243,238,.9);border-bottom:1px solid var(--rule-soft)}
@supports (backdrop-filter:blur(8px)){
  .site-header{backdrop-filter:saturate(150%) blur(12px)}
}
/* over a dark hero the header inverts until you scroll */
.site-header.on-dark{background:transparent;border-color:transparent;color:var(--on-dark)}
.site-header.on-dark .brand b{color:var(--on-dark)}
.site-header.on-dark .brand .bt>span{color:var(--on-dark-faint)}
.site-header.on-dark nav a{color:rgba(238,243,242,.78)}
.site-header.on-dark nav a:hover,.site-header.on-dark nav a[aria-current=page]{color:#fff}
.site-header.on-dark .burger{border-color:var(--rule-dark)}
.site-header.on-dark .burger i{background:var(--on-dark)}
.hd{display:flex;align-items:center;gap:2rem;height:var(--header-h)}
.brand{display:flex;align-items:center;gap:.85rem;flex:none}
.brand .mk{width:30px;height:30px;flex:none;overflow:visible}
.brand .bt{display:block}
.brand b{display:block;font:300 1.14rem/1 var(--serif);letter-spacing:-.012em;
  white-space:nowrap;color:var(--on-light);transition:color .4s}
.brand .bt>span{display:block;font:500 .56rem/1 var(--sans);letter-spacing:.22em;
  text-transform:uppercase;color:var(--on-light-faint);margin-top:.36rem;transition:color .4s}
/* the mark's rules slide out a touch on hover */
.brand .mk g path{transition:transform .45s var(--ease-out)}
.brand:hover .mk g path:nth-child(1){transform:translateX(3px)}
.brand:hover .mk g path:nth-child(2){transform:translateX(2px)}
.brand:hover .mk g path:nth-child(3){transform:translateX(1px)}
nav{margin-left:auto}
nav ul{display:flex;gap:2rem;list-style:none;margin:0;padding:0}
nav a{position:relative;font-size:.76rem;letter-spacing:.1em;text-transform:uppercase;
  color:var(--on-light-dim);padding:.3rem 0;transition:color .25s}
nav a::after{content:"";position:absolute;left:0;right:0;bottom:-2px;height:1px;
  background:var(--jade);transform:scaleX(0);transform-origin:left;
  transition:transform .4s var(--ease-out)}
nav a:hover,nav a[aria-current=page]{color:var(--on-light)}
nav a:hover::after,nav a[aria-current=page]::after{transform:scaleX(1)}
.burger{display:none;margin-left:auto;width:42px;height:42px;background:none;
  border:1px solid var(--rule);cursor:pointer;padding:0;position:relative}
.burger i{position:absolute;left:11px;right:11px;height:1px;background:var(--on-light);
  transition:transform .34s var(--ease),opacity .2s}
.burger i:nth-child(1){top:15px}.burger i:nth-child(2){top:20px}.burger i:nth-child(3){top:25px}
html.nav-open .burger i:nth-child(1){transform:translateY(5px) rotate(45deg)}
html.nav-open .burger i:nth-child(2){opacity:0}
html.nav-open .burger i:nth-child(3){transform:translateY(-5px) rotate(-45deg)}

@media (max-width:900px){
  :root{--header-h:64px}
  .burger{display:block}
  /* The closed panel has to clear the header as well as itself. Sitting at
     top:var(--header-h), translateY(-120%) moved it by 120% of its OWN
     height, which on a three-item menu left about 20px of opaque panel
     hanging over the bar — and because the nav is a child of the header,
     that strip painted on top of it and sliced the ascenders off the brand.
     Moving by its own height plus the header's puts the last pixel exactly
     at the top edge; the 10px is margin for a longer menu or a taller bar.
     visibility also keeps the closed links out of the tab order. */
  nav{position:fixed;inset:var(--header-h) 0 auto;margin:0;
    background:var(--deep);border-bottom:1px solid var(--rule-dark);
    transform:translateY(calc(-100% - var(--header-h) - 10px));
    visibility:hidden;
    transition:transform .46s var(--ease-out),visibility 0s linear .46s;
    max-height:calc(100vh - var(--header-h));overflow-y:auto}
  html.nav-open nav{transform:translateY(0);visibility:visible;
    transition:transform .46s var(--ease-out),visibility 0s}
  /* The gutter lives on the links, not on the list, so a row can carry a
     background that reaches the full width of the panel while its text
     still lines up with everything else on the page. */
  nav ul{flex-direction:column;gap:0;padding:.6rem 0 1.8rem}
  nav a,.site-header.on-dark nav a{display:block;padding:1rem var(--gut);font-size:.95rem;
    color:rgba(238,243,242,.85);border-bottom:1px solid var(--rule-dark-soft)}
  /* the desktop indicator is an underline that slides out beneath the word;
     stacked in a panel it has nothing to sit against, so it is switched off
     here and replaced below */
  nav a::after{display:none}

  /* --- which page you are on -------------------------------------------
     The only thing separating the current item from the rest was pure
     white against white at 85% — about as visible as nothing at all, and
     the underline that carries it on desktop is off in this panel. So the
     open menu gets a marker of its own: a jade bar in the gutter beside
     the word, full-strength text, and a wash that fades out across the
     row. The bar is the same jade tick the footer uses to start itself,
     turned on its side. */
  nav a[aria-current=page],
  .site-header.on-dark nav a[aria-current=page]{
    color:#fff;font-weight:500;
    padding-left:calc(var(--gut) + 1.05rem);
    background:linear-gradient(90deg,rgba(95,217,192,.13),rgba(95,217,192,0) 62%)}
  nav a[aria-current=page]::before{content:"";position:absolute;
    left:var(--gut);top:50%;transform:translateY(-50%);
    width:3px;height:1.15em;background:var(--jade);border-radius:2px}
  /* keep the bar readable while the dark panel is open */
  html.nav-open .site-header{background:var(--deep)!important;border-color:transparent!important}
  html.nav-open .brand b{color:var(--on-dark)!important}
  html.nav-open .brand .bt>span{color:var(--on-dark-faint)!important}
  html.nav-open .burger{border-color:var(--rule-dark)!important}
  html.nav-open .burger i{background:var(--on-dark)!important}
}

/* ---- buttons ---------------------------------------------------------- */
.btn{display:inline-flex;align-items:center;gap:.75rem;position:relative;overflow:hidden;
  font-size:.72rem;font-weight:500;letter-spacing:.15em;text-transform:uppercase;
  padding:1rem 1.8rem;border:1px solid var(--on-light);color:var(--on-light);
  background:none;cursor:pointer;transition:color .35s var(--ease),border-color .35s}
.btn::before{content:"";position:absolute;inset:0;background:var(--on-light);
  transform:translateY(101%);transition:transform .45s var(--ease-out);z-index:0}
.btn:hover::before{transform:translateY(0)}
.btn:hover{color:var(--stone-3)}
.btn>*{position:relative;z-index:1}
.btn svg{width:13px;height:13px;flex:none;transition:transform .35s var(--ease);
  position:relative;z-index:1}
.btn:hover svg{transform:translateX(5px)}
.btn-jade{border-color:var(--jade);background:var(--jade);color:#04231e}
.btn-jade::before{background:var(--aqua)}
.btn-jade:hover{color:#04231e;border-color:var(--aqua)}
.btn-ghost{border-color:var(--rule-dark);color:var(--on-dark)}
.btn-ghost::before{background:var(--on-dark)}
.btn-ghost:hover{color:var(--abyss);border-color:var(--on-dark)}
.btns{display:flex;flex-wrap:wrap;gap:.9rem;margin-top:2.3rem}

.tlink{font-family:var(--sans);font-size:.72rem;font-weight:500;letter-spacing:.15em;
  text-transform:uppercase;color:var(--sea);display:inline-flex;align-items:center;gap:.6rem;
  padding-bottom:.4rem;position:relative}
.tlink::after{content:"";position:absolute;left:0;bottom:0;height:1px;width:100%;
  background:var(--rule);transition:background .3s}
.tlink::before{content:"";position:absolute;left:0;bottom:0;height:1px;width:0;
  background:var(--jade);transition:width .45s var(--ease-out);z-index:1}
.tlink:hover::before{width:100%}
.band-dark .tlink,.band-sea .tlink{color:var(--aqua)}
.band-dark .tlink::after{background:var(--rule-dark)}

/* ---- reveals ---------------------------------------------------------- */
.rv{opacity:0;transform:translateY(26px);
  transition:opacity .9s var(--ease-out),transform .9s var(--ease-out)}
.rv.in{opacity:1;transform:none}
.rv-d1{transition-delay:.09s}.rv-d2{transition-delay:.18s}
.rv-d3{transition-delay:.27s}.rv-d4{transition-delay:.36s}
.no-js .rv{opacity:1;transform:none}

/* headline words rise in behind a clipping mask */
.rise{display:block;overflow:hidden}
.rise>span{display:block;transform:translateY(105%);
  transition:transform 1s var(--ease-out)}
.rise.in>span{transform:none}
.no-js .rise>span{transform:none}

/* ---- footer ----------------------------------------------------------- */
.site-footer{background:var(--abyss);color:var(--on-dark-dim);
  padding:clamp(3.5rem,6vw,5.5rem) 0 2rem;font-size:.92rem;position:relative;overflow:hidden}
.site-footer .wrap{position:relative;z-index:1}
.ft-top{display:grid;gap:2.8rem;grid-template-columns:1.6fr repeat(3,1fr);
  padding-bottom:3rem;border-bottom:1px solid var(--rule-dark-soft)}
@media (max-width:900px){.ft-top{grid-template-columns:1fr 1fr}}
@media (max-width:560px){.ft-top{grid-template-columns:1fr;gap:2.1rem}}
.ft-top h4{font:500 .66rem/1 var(--sans);letter-spacing:.2em;text-transform:uppercase;
  color:var(--champ);margin-bottom:1.2rem}
.ft-top ul{list-style:none;margin:0;padding:0}
.ft-top li{margin-bottom:.72rem}
.ft-top a{color:var(--on-dark-dim);transition:color .25s}
.ft-top a:hover{color:var(--aqua)}
.ft-brand b{display:block;font:300 1.35rem/1.2 var(--serif);color:var(--on-dark);
  margin-bottom:.85rem}
.ft-brand p{color:var(--on-dark-faint);font-size:.9rem;max-width:26rem;line-height:1.62}
.ft-bot{display:flex;flex-wrap:wrap;gap:1rem 2rem;justify-content:space-between;
  padding-top:1.8rem;font:400 .74rem/1.6 var(--sans);color:var(--on-dark-faint)}

/* ---- misc ------------------------------------------------------------- */
.sr{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;
  clip:rect(0,0,0,0);white-space:nowrap;border:0}
:focus-visible{outline:2px solid var(--jade);outline-offset:3px}
::selection{background:var(--jade);color:#04231e}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{animation-duration:.001ms!important;animation-iteration-count:1!important;
    transition-duration:.001ms!important}
  .rv{opacity:1;transform:none}
  .rise>span{transform:none}
  .srule::after{width:100%}
}
@media print{
  .site-header,nav,.btns,.site-footer,canvas{display:none}
  body{background:#fff;color:#000}
}

/* Reduced motion: reveal everything outright rather than waiting on scroll,
   so nothing below the fold depends on an animation that will never run.
   Kept last so it wins over the component rules. */
@media (prefers-reduced-motion:reduce){
  .ladder li,.pdef,.mech,.pull,.rv{opacity:1!important;transform:none!important}
  .psys .p-col{transform:none!important}
  .psys .p-cap,.mapfig .c-som{opacity:1!important}
  .psys .p-tie,.mapfig .cor{stroke-dashoffset:0!important}
  .phase .bar,.figs div::before{width:100%!important}
  .pull::before{transform:scaleY(1)!important}
}

/* ---- phone: lift the dark passages -------------------------------------
   The palette was set on a desktop monitor at full brightness. Two thirds
   of the home page is dark, and it finishes on an unbroken dark run of
   roughly 2,400 pixels — about three phone screens with no relief. On a
   handset, especially one in dark mode where the system is also dimming
   the panel, #04151a stops reading as deep teal and becomes black, the
   sections stop separating from one another, and the quieter text drops
   below comfortable reading contrast.

   So on small screens the dark end of the range is lifted several steps
   and the two muted text tones are brought up with it. The hues are
   unchanged — this is the same palette with its floor raised, not a
   different scheme. Nothing here touches tablet or desktop.

   It is deliberately NOT tied to prefers-color-scheme. Binding it to the
   dark-mode query would make the site darker in dark mode and lighter in
   light mode, which is the opposite of what is wanted: the problem is a
   small dim screen, not the system preference. */
@media (max-width:760px){
  :root{
    --abyss:#0a2329;
    --deep:#0e2f37;
    --deep-2:#133a43;
    --deep-3:#1a4a52;
    --on-dark-dim:#b2c6c4;
    --on-dark-faint:#8aa3a2;
    --rule-dark:rgba(238,243,242,.22);
    --rule-dark-soft:rgba(238,243,242,.12);
  }
}
