:root{
  --paper:#FFFFFF;--paper-2:#F5F5F2;--ink:#1D1D17;--ink-2:#5E5E57;--line:#E7E6E1;
  --navy:#1D1D17;--navy-2:#26261E;--navy-3:#1F2A44;--on-dark:#FAF9F6;--on-dark-2:#B7B5AC;
  --blue:#2F6BFF;--blue-ink:#1F4FD8;--lav:#A9C2FF;--green:#2FA36B;--green-ink:#1F7A4E;
  --radius:14px;--shadow:0 1px 2px rgb(0 0 0/.06),0 8px 24px rgb(0 0 0/.06);
  --serif:var(--sans);
  --sans:'Inter',system-ui,-apple-system,'Segoe UI',Roboto,sans-serif;
  --ease:cubic-bezier(.2,.7,.2,1);
}
*{box-sizing:border-box;margin:0}
html{scroll-behavior:smooth;scroll-padding-top:80px}
body{font-family:var(--sans);font-size:17px;line-height:1.6;color:var(--ink);background:var(--paper);-webkit-font-smoothing:antialiased}
img,video{display:block;max-width:100%}
a{color:inherit}
ul,ol{list-style:none;padding:0}
button{font:inherit;color:inherit;cursor:pointer}
:focus-visible{outline:2px solid var(--blue);outline-offset:3px}
.band--dark :focus-visible,.footer :focus-visible{outline-color:var(--on-dark)}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.skip{position:absolute;left:12px;top:-60px;background:var(--ink);color:#fff;padding:10px 16px;border-radius:8px;z-index:100}
.skip:focus{top:12px}
.container{max-width:1200px;margin-inline:auto;padding-inline:clamp(20px,5vw,48px)}
.center{text-align:center;margin-top:48px}

h1,h2,h3,h4{font-family:var(--sans);font-weight:500;letter-spacing:-.025em}
h1{font-size:clamp(2.75rem,6vw,5.5rem);line-height:1.02}
h2{font-size:clamp(2rem,3.6vw,3.25rem);line-height:1.1}
h3{font-weight:500;font-size:1.05rem;line-height:1.35}
.lede{font-size:clamp(1.05rem,1.4vw,1.25rem);line-height:1.55;max-width:60ch;color:var(--ink-2)}
.label{font-size:12px;letter-spacing:.12em;text-transform:uppercase;font-weight:500;color:var(--blue-ink);margin-bottom:16px}
.band--dark .label{color:#A9C2FF}

/* buttons */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:48px;padding:0 26px;border-radius:999px;background:var(--ink);color:#fff;text-decoration:none;font-weight:500;font-size:15px;border:1px solid var(--ink);transition:transform .2s var(--ease),background .2s}
.btn:hover{transform:translateY(-1px);background:#3a3a30}
.btn--sm{min-height:44px;padding:0 20px;font-size:14px}
.btn--ghost{background:transparent;color:var(--ink)}
.btn--ghost:hover{background:rgb(29 29 23/.07)}
.btn--blue{background:var(--blue);border-color:var(--blue)}
.btn--blue:hover{background:var(--blue-ink)}
.btn--block{width:100%}

/* nav */
.nav{background:var(--paper);position:fixed;inset:0 0 auto 0;z-index:50;transition:background .3s,border-color .3s,backdrop-filter .3s;border-bottom:1px solid transparent}
.nav__inner{display:flex;align-items:center;justify-content:space-between;height:68px;max-width:none;padding-inline:clamp(20px,5.5vw,80px)}
.wordmark{font-family:"EB Garamond",Garamond,Georgia,serif;font-weight:700;font-size:24px;letter-spacing:.1em;text-decoration:none;color:inherit;
  }
.wordmark--lg{font-size:32px}
.nav__links{display:flex;align-items:center;gap:10px;font-size:14.5px}
.nav__links a:not(.btn){text-decoration:none;color:var(--ink-2);padding:9px 14px;transition:color .2s}
.nav__links a:not(.btn):hover,.nav__links a:not(.btn):focus-visible{color:var(--blue)}
.nav--solid{border-color:var(--line)}
.nav__toggle{display:none;width:44px;height:44px;background:none;border:0;position:relative}
.nav__toggle span{position:absolute;left:11px;right:11px;height:1.5px;background:var(--ink);transition:transform .25s}
.nav__toggle span:first-child{top:18px}.nav__toggle span:last-child{top:26px}
.nav__toggle[aria-expanded=true] span:first-child{transform:translateY(4px) rotate(45deg)}
.nav__toggle[aria-expanded=true] span:last-child{transform:translateY(-4px) rotate(-45deg)}

/* hero — text on top, video card expands to full-bleed on scroll */
.hero{background:var(--paper);padding-top:calc(68px + clamp(28px,5vw,64px))}
.hero__text{--pad:clamp(20px,5.5vw,80px);max-width:none;padding-inline:var(--pad)}
.hero h1{font-family:var(--sans);font-weight:600;font-size:clamp(2.6rem,6.4vw,6.2rem);line-height:1.02;letter-spacing:-.035em;max-width:14ch}
.hero__sub{font-family:var(--serif);font-weight:400;font-size:clamp(1.25rem,2.1vw,1.9rem);line-height:1.3;color:var(--ink-2);max-width:48ch;margin-top:clamp(20px,2.5vw,32px)}
.hero__stage{margin-top:clamp(40px,6vw,88px);--p:0;--inx:clamp(20px,5.5vw,80px);--iny:clamp(16px,3.3vw,48px)}
.hero__card{position:relative;height:min(82svh,860px);min-height:360px;overflow:hidden;background:radial-gradient(ellipse at 60% 30%,#ebe8df,#d6d2c6);
  clip-path:inset(0 calc(var(--inx)*(1 - var(--p))) calc(var(--iny)*(1 - var(--p))) calc(var(--inx)*(1 - var(--p))) round calc(4px*(1 - var(--p))))}
.hero__video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.hero__pause{position:absolute;right:clamp(20px,4vw,40px);bottom:clamp(20px,4vw,36px);width:44px;height:44px;border-radius:50%;border:1px solid rgb(29 29 23/.3);background:rgb(255 255 255/.8);display:grid;place-items:center}
.hero__pause svg{fill:var(--ink)}
.hero__pause .i-play{display:none}
.hero__pause.is-paused .i-play{display:block}.hero__pause.is-paused .i-pause{display:none}

/* bands */
.band{padding-block:clamp(72px,10vw,140px)}
.band--paper2{background:var(--paper-2)}
.band--dark{background:var(--navy);color:var(--on-dark)}
.band--dark .lede{color:var(--on-dark-2)}
.head{max-width:760px;margin-bottom:clamp(40px,5vw,64px)}
.head .lede{margin-top:20px}

/* breaks */
.breaks{display:grid;grid-template-columns:repeat(2,1fr);gap:24px}
.break{background:var(--paper);border:1px solid var(--line);border-radius:var(--radius);padding:clamp(24px,3vw,36px);display:flex;flex-direction:column;gap:20px}
.break__how{font-size:15.5px;color:var(--ink-2);border-top:1px solid var(--line);padding-top:16px}
.break__how span{display:block;font-size:11.5px;letter-spacing:.12em;text-transform:uppercase;font-weight:600;color:var(--blue-ink);margin-bottom:6px}

/* solutions: vertical tabs + detail panel */
.container--wide{max-width:1360px}
.band--dark h2{max-width:20ch}
.sol{display:grid;grid-template-columns:minmax(240px,300px) 1fr;gap:clamp(20px,3vw,40px);margin-top:clamp(36px,5vw,64px);align-items:start}
.sol__tabs{display:flex;flex-direction:column;gap:8px}
.sol__tab{display:flex;align-items:center;gap:12px;text-align:left;background:transparent;border:1px solid #3a3a30;border-radius:14px;color:var(--on-dark);padding:18px 18px;font-size:16px;min-height:56px;transition:background .25s,color .25s}
.sol__tab:hover{background:rgb(250 249 246/.07)}
.sol__dot{width:6px;height:6px;background:currentColor;opacity:0;flex:none}
.sol__tab[aria-selected=true]{background:var(--paper);color:var(--ink);font-weight:500}
.sol__tab[aria-selected=true] .sol__dot{opacity:1}
.sol__panel{background:var(--navy-2);border:1px solid #33332a;border-radius:var(--radius);padding:clamp(24px,3vw,44px);animation:fade .35s var(--ease)}
.sol__panel[hidden]{display:none}
.sol__panel h3{font-weight:500;font-size:clamp(1.9rem,3vw,2.8rem);line-height:1.1;letter-spacing:-.03em}
.sol__panel>p{color:var(--on-dark-2);margin-top:14px;max-width:56ch}
.sol__fig{margin:28px 0;border-radius:10px;overflow:hidden;background:#EFECE3;aspect-ratio:16/10}
.sol__fig img{width:100%;height:100%;object-fit:cover}
.btn--ghost-dark{background:transparent;color:var(--on-dark);border-color:rgb(250 249 246/.5)}
.btn--ghost-dark:hover{background:var(--paper);color:var(--ink)}

/* challenge */
.challenge-wrap{padding-bottom:clamp(72px,10vw,140px)}
.challenge{background:var(--navy-2);color:var(--on-dark);border-radius:24px;padding:clamp(28px,5vw,64px);max-width:860px;margin-inline:auto}
.challenge h2{font-family:var(--sans);font-weight:500;font-size:clamp(1.6rem,2.6vw,2.2rem);margin-bottom:12px}
.challenge>p{color:var(--on-dark-2);margin-bottom:24px;max-width:60ch}
.challenge textarea{width:100%;background:var(--navy);color:var(--on-dark);border:1px solid #44443a;border-radius:12px;padding:16px;font:inherit;resize:vertical;min-height:120px;margin-bottom:12px}
.challenge textarea::placeholder{color:#8c8a80}
.challenge .btn{background:var(--blue);border-color:var(--blue)}
.err{color:#ff9d9d;font-size:14px;margin-bottom:12px}
.thanks{font-family:var(--serif);font-size:1.8rem}

/* how it works: horizontal layered flow */
.flow{overflow-x:auto;padding:8px 24px 40px 4px;margin:0 -4px;scrollbar-width:thin}
.flow__track{--gap:clamp(30px,3.6vw,56px);display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,1.5fr) minmax(0,1fr);gap:var(--gap);align-items:stretch}
.stage{position:relative;display:flex;flex-direction:column;outline-offset:8px;transition:transform .35s var(--ease)}
.stage .tag{margin-bottom:16px;align-self:flex-start}
.stage:not(:last-child)::after{content:"";position:absolute;left:calc(100% + 6px);top:55%;width:calc(var(--gap) - 20px);height:1px;background:var(--ink-2)}
.stage:not(:last-child)::before{content:"";position:absolute;left:calc(100% + var(--gap) - 20px);top:calc(55% - 4px);width:8px;height:8px;border-top:1px solid var(--ink-2);border-right:1px solid var(--ink-2);transform:rotate(45deg)}
.sheet{background:#fff;border:1px solid var(--line);border-radius:var(--radius);display:flex;flex-direction:column;flex:1;padding:24px clamp(16px,1.6vw,22px) 26px;min-height:440px;
  box-shadow:8px 8px 0 -1px var(--paper-2),8px 8px 0 0 var(--line),16px 16px 0 -1px var(--paper-2),16px 16px 0 0 var(--line);transition:border-color .3s,box-shadow .3s}
.sheet h3{font-size:1.2rem;margin-bottom:10px}
.sheet p{font-size:15px;color:var(--ink-2)}
.chips{display:flex;flex-wrap:wrap;gap:8px;margin-top:auto;padding-top:20px}
.chips li{font-size:13px;line-height:1;padding:8px 12px;border-radius:999px;background:var(--paper-2);border:1px solid var(--line);color:var(--ink)}
.chips--green li{background:#E6F3EC;border-color:#BFE0CE;color:var(--green-ink)}
.out__title{margin-top:auto;padding-top:20px;font-weight:600;color:var(--green-ink)!important;font-size:14px!important;letter-spacing:.02em}
.stage--out .sheet{border-color:var(--green)}
.stage--out .out__title+.chips{margin-top:0;padding-top:10px}
.stage:hover,.stage:focus-visible,.stage.is-active{transform:translateY(-6px)}
.stage:hover .sheet,.stage:focus-visible .sheet,.stage.is-active .sheet{border-color:var(--ink)}
.stage--out:hover .sheet,.stage--out.is-active .sheet{border-color:var(--green)}
.core{background:var(--navy);color:var(--on-dark);border-radius:var(--radius);display:flex;flex-direction:column;flex:1;padding:24px clamp(16px,1.6vw,22px) 26px;min-height:440px;box-shadow:0 0 0 1px var(--blue),0 18px 50px rgb(47 107 255/.22)}
.core h3{font-size:1.55rem;letter-spacing:.04em;margin-bottom:10px}
.core>p{color:var(--on-dark-2);font-size:15px}
.stage--core .tag{background:rgb(47 107 255/.18);color:#1f4fd8}
.layers{position:relative;height:334px;margin-top:auto;padding-top:0;flex:none}
.core>p{margin-bottom:22px}
.layer{position:absolute;left:0;right:0;height:116px;border-radius:12px;padding:12px 14px;border:1px solid rgb(250 249 246/.14);box-shadow:0 10px 24px rgb(0 0 0/.35);transition:transform .35s var(--ease)}
.layer strong{display:block;font-weight:500;font-size:14px;margin-bottom:4px}
.layer strong i{font-family:var(--serif);font-size:1.3em;font-style:normal;color:#A9C2FF;margin-right:4px}
.layer span{display:block;font-size:12.5px;line-height:1.4;color:var(--on-dark-2)}
.layer--data{top:0;left:0;right:24px;background:#2d2d25}
.layer--math{top:108px;left:12px;right:12px;background:#24385f}
.layer--ai{top:216px;left:24px;right:0;background:#2f5fd0;border-color:rgb(169 194 255/.5)}
.layer--ai span{color:#e4ecff}
.stage--core:hover .layer--data,.stage--core.is-active .layer--data{transform:translateY(-8px)}
.stage--core:hover .layer--ai,.stage--core.is-active .layer--ai{transform:translateY(8px)}
.flow__note{max-width:64ch;margin-top:8px;font-family:var(--serif);font-size:clamp(1.25rem,1.8vw,1.6rem);line-height:1.35;color:var(--ink)}

/* audience */
.aud__tabs{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.aud__tab{text-align:left;border:1px solid var(--navy-3);color:var(--on-dark);border-radius:var(--radius);padding:26px;background:var(--navy-3);display:flex;flex-direction:column;gap:6px;transition:background .3s,color .3s,border-color .3s;min-height:44px}
.aud__tab span{font-size:14.5px;color:var(--on-dark-2)}
.aud__tab svg{margin-bottom:12px}
.aud__tab h3{font-size:1.2rem}
.aud__tab p{margin-top:14px;padding-top:16px;border-top:1px solid rgb(250 249 246/.14);font-size:16px;line-height:1.5;color:var(--on-dark)}
@keyframes fade{from{opacity:0;transform:translateY(6px)}}


/* cta */
.cta__box{max-width:860px;margin-inline:auto;background:var(--navy-3);border-radius:28px;padding:clamp(28px,5vw,64px)}
.pill{display:inline-block;font-size:12px;letter-spacing:.1em;font-weight:600;color:#A9C2FF;background:rgb(47 107 255/.22);padding:6px 14px;border-radius:999px;margin-bottom:24px}
.cta__box h2{max-width:20ch}
.cta__box p{color:var(--on-dark-2);margin:20px 0 32px;max-width:56ch}
.green{color:var(--green);font-style:italic}

/* footer */
.footer{background:var(--navy-2);color:var(--on-dark);padding-block:64px 32px}
.footer__tag{color:var(--on-dark-2);margin:8px 0 40px;padding-bottom:40px;border-bottom:1px solid #3a3a30}
.footer__cols{display:grid;grid-template-columns:repeat(3,1fr);gap:32px;padding-bottom:40px;border-bottom:1px solid #3a3a30}
.footer h3{font-size:1rem;margin-bottom:12px}
.footer__cols a{display:block;color:var(--on-dark-2);text-decoration:none;font-size:15px;padding:4px 0}
.footer a:hover{color:#fff}
.footer__legal{margin-top:28px;font-size:13.5px;color:var(--on-dark-2)}

/* reveal */
.js [data-reveal]{opacity:0;transform:translateY(16px);transition:opacity .6s var(--ease),transform .6s var(--ease);transition-delay:calc(var(--i,0)*70ms)}
.js [data-reveal].is-in{opacity:1;transform:none}

@media (max-width:1024px){
}
@media (max-width:900px){
  .nav__toggle{display:block}
  .nav__links{position:fixed;inset:68px 0 0 0;background:var(--paper);flex-direction:column;align-items:flex-start;gap:4px;padding:24px clamp(20px,5vw,48px);font-size:20px;transform:translateX(100%);visibility:hidden;transition:transform .3s var(--ease),visibility .3s}
  .nav__links.is-open{transform:none;visibility:visible}
  .nav--open{background:var(--paper)}
  .breaks{grid-template-columns:1fr}
  .sol{grid-template-columns:1fr}
  .sol__tabs{flex-direction:row;overflow-x:auto;gap:8px;scrollbar-width:none}
  .sol__tab,.sol__tab:first-child{white-space:nowrap;border:1px solid #3a3a30;border-radius:999px;padding:10px 18px;min-height:44px}
  .sol__dot{display:none}
  .footer__cols{grid-template-columns:1fr 1fr}
}
@media (max-width:600px){
  
  .aud__tabs{grid-template-columns:1fr}
  .footer__cols{grid-template-columns:1fr}
}
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .js [data-reveal]{opacity:1;transform:none;transition:none}
  *{animation:none!important}
}

.eg{font-size:13px!important;color:var(--ink-2);margin-top:20px;font-weight:500}
.chips--list{flex-direction:column;flex-wrap:nowrap;gap:8px;margin-top:8px;padding-top:0}
.chips--list li{line-height:1.35;font-size:13.5px;padding:10px 14px;border-radius:10px;background:var(--paper-2);border:1px solid var(--line)}

@media (max-width:1060px){
  .flow__track{grid-template-columns:240px 240px 330px 240px;gap:56px;--gap:56px;min-width:1000px}
}

/* nav: current page */
.nav__links a[aria-current=page]{color:var(--ink)}
.footer a[aria-current=page]{color:#fff}

/* articles page (coming soon) */
.page{min-height:calc(100vh - 340px);display:flex;flex-direction:column}
.page__hero{padding-top:calc(68px + clamp(40px,7vw,96px));padding-bottom:clamp(32px,4vw,56px)}
.page__hero h1{font-family:var(--sans);font-weight:600;font-size:clamp(2.6rem,6.4vw,6.2rem);line-height:1.02;letter-spacing:-.035em}
.soon-wrap{padding-bottom:clamp(72px,10vw,140px)}
.soon{background:var(--navy-2);color:var(--on-dark);border-radius:24px;padding:clamp(32px,6vw,80px)}
.soon h2{font-size:clamp(2rem,4vw,3.4rem);letter-spacing:-.03em}
.soon p{color:var(--on-dark-2);max-width:52ch;margin-top:16px;font-size:clamp(1.05rem,1.4vw,1.2rem)}
.soon__actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:32px}


/* Solutions submenu */
.has-sub{position:relative;display:flex;align-items:center}
.subnav__toggle{background:none;border:0;color:var(--ink-2);width:24px;height:32px;display:grid;place-items:center;margin-left:-8px;cursor:pointer;transition:color .2s,transform .2s}
.subnav__toggle[aria-expanded=true]{transform:rotate(180deg)}
.has-sub:hover .subnav__toggle,.subnav__toggle:hover,.subnav__toggle:focus-visible{color:var(--blue)}
.subnav{list-style:none;margin:0;padding:8px;position:absolute;top:100%;left:0;min-width:230px;background:#fff;border:1px solid var(--line);border-radius:16px;box-shadow:0 18px 40px rgb(29 29 23/.12);opacity:0;visibility:hidden;transform:translateY(-4px);transition:opacity .2s,transform .2s,visibility .2s}
.subnav::before{content:"";position:absolute;left:0;right:0;top:-12px;height:12px}
.has-sub:hover .subnav,.has-sub:focus-within .subnav,.has-sub.is-open .subnav{opacity:1;visibility:visible;transform:none}
.nav__links .subnav a:not(.btn){display:block;padding:10px 14px;border-radius:10px;color:var(--ink)}
.nav__links .subnav a:not(.btn):hover{background:var(--paper-2);color:var(--blue)}
@media (max-width:900px){
  .has-sub{flex-wrap:wrap}
  .subnav{position:static;opacity:1;visibility:visible;transform:none;box-shadow:none;border:0;padding:0 0 0 16px;min-width:0;width:100%;background:none}
  .subnav__toggle{display:none}
  .nav__links .subnav a:not(.btn){font-size:17px;color:var(--ink-2)}
}

/* solution detail pages */
.page__hero .hero__sub{margin-top:clamp(16px,2vw,24px)}
.page__cta{padding-top:clamp(72px,10vw,140px)}


/* ==========================================================================
   PRISM header logo: the letters fold into a prism on scroll.
   rest      = "PRISM" drawn as stroked letters (ink)
   scrolled  = M's V flips into the roof, I lies down as the base,
               R's leg becomes the incoming beam, a thin spectrum exits.
   Driven only by .nav--scrolled on <header id="nav">.
   ========================================================================== */

.wordmark--svg{
  --logo-h:24px;                          /* 20px / 28px both work */
  --logo-dur:.62s;
  display:inline-flex;align-items:center;line-height:0;
  color:var(--ink,#1D1D17);
  /* neutralise the text-wordmark rainbow (background-clip:text + color:transparent would hide the svg) */
  background:none;-webkit-background-clip:border-box;background-clip:border-box;animation:none;
  letter-spacing:0;border-radius:4px;
}
.wordmark--svg:focus-visible{outline:2px solid var(--blue,#2F6BFF);outline-offset:6px}

.wordmark--svg .lg{
  display:block;flex:none;overflow:hidden;
  height:var(--logo-h);
  width:calc(var(--logo-h) * 85 / 24);    /* full viewBox */
  transition:width .6s var(--ease,cubic-bezier(.2,.7,.2,1)) .08s;
}
:is(.nav--scrolled .wordmark--svg,.wordmark--foot:hover,.wordmark--foot:focus-visible) .lg{
  width:calc(var(--logo-h) * 34 / 24);  /* crop to the mark (preserveAspectRatio xMinYMid slice) */
  transition-delay:.06s;
}

/* every moving part rotates/scales around its own centre */
.wordmark--svg .lg-glyph,
.wordmark--svg .lg-ray{transform-box:fill-box;transform-origin:center}

/* ---------- REST state (also the timing used when scrolling back UP) ---------- */
.wordmark--svg .lg-glyph{
  transition:
    transform var(--logo-dur) var(--ease,cubic-bezier(.2,.7,.2,1)),
    opacity .3s var(--ease,cubic-bezier(.2,.7,.2,1)),
    stroke-width var(--logo-dur) var(--ease,cubic-bezier(.2,.7,.2,1));
}
/* letters that came back reappear after the moving parts have left */
.wordmark--svg .lg-m  {transition-delay:.20s,.20s,0s}
.wordmark--svg .lg-s  {transition-delay:.24s,.24s,0s}
.wordmark--svg .lg-r  {transition-delay:.28s,.28s,0s}
.wordmark--svg .lg-p  {transition-delay:.32s,.32s,0s}
.wordmark--svg .lg-m-v{transition-delay:.06s,0s,0s}
.wordmark--svg .lg-i  {transition-delay:.04s,0s,0s}
.wordmark--svg .lg-r-leg{transition-delay:.02s,0s,0s}

.wordmark--svg .lg-ray{
  stroke-width:1.4;stroke-dasharray:1 1;stroke-dashoffset:1;opacity:0;
  transition:stroke-dashoffset .18s ease-in,opacity .18s ease-in;
}

/* ---------- SCROLLED state (timing used when scrolling DOWN) ---------- */
/* 1. letters not needed collapse one after another */
:is(.nav--scrolled .wordmark--svg,.wordmark--foot:hover,.wordmark--foot:focus-visible) .lg-p{transform:scale(.4);opacity:0;transition-delay:0s,0s,0s}
:is(.nav--scrolled .wordmark--svg,.wordmark--foot:hover,.wordmark--foot:focus-visible) .lg-r{transform:translateX(-10px) scale(.4);opacity:0;transition-delay:.04s,.04s,0s}
:is(.nav--scrolled .wordmark--svg,.wordmark--foot:hover,.wordmark--foot:focus-visible) .lg-s{transform:translateX(-30px) scale(.3);opacity:0;transition-delay:.08s,.08s,0s}
:is(.nav--scrolled .wordmark--svg,.wordmark--foot:hover,.wordmark--foot:focus-visible) .lg-m{transform:translateX(-60.5px) scaleY(0);opacity:0;transition-delay:.06s,.06s,0s}

/* 2. survivors re-form into the prism */
:is(.nav--scrolled .wordmark--svg,.wordmark--foot:hover,.wordmark--foot:focus-visible) .lg-r-leg{               /* R leg -> incoming white light */
  transform:translate(-22.75px,-2.5px) rotate(-63.7deg);
  stroke-width:2.2;transition-delay:.04s,0s,.04s}
:is(.nav--scrolled .wordmark--svg,.wordmark--foot:hover,.wordmark--foot:focus-visible) .lg-i{                   /* I -> base (14 -> 16 long) */
  transform:translate(-25.5px,7px) rotate(90deg) scaleY(1.1429);
  transition-delay:.06s,0s,0s}
:is(.nav--scrolled .wordmark--svg,.wordmark--foot:hover,.wordmark--foot:focus-visible) .lg-m-v{                 /* M's V -> roof, flipped */
  transform:translate(-60.5px,0) rotate(-180deg);
  transition-delay:.08s,0s,0s}

/* 3. the spectrum draws out of the right face, last */
:is(.nav--scrolled .wordmark--svg,.wordmark--foot:hover,.wordmark--foot:focus-visible) .lg-ray{
  stroke-dashoffset:0;opacity:1;
  transition:stroke-dashoffset .26s var(--ease,cubic-bezier(.2,.7,.2,1)),opacity .12s linear;
}
:is(.nav--scrolled .wordmark--svg,.wordmark--foot:hover,.wordmark--foot:focus-visible) .lg-ray--1{transition-delay:.34s,.34s}
:is(.nav--scrolled .wordmark--svg,.wordmark--foot:hover,.wordmark--foot:focus-visible) .lg-ray--2{transition-delay:.37s,.37s}
:is(.nav--scrolled .wordmark--svg,.wordmark--foot:hover,.wordmark--foot:focus-visible) .lg-ray--3{transition-delay:.40s,.40s}
:is(.nav--scrolled .wordmark--svg,.wordmark--foot:hover,.wordmark--foot:focus-visible) .lg-ray--4{transition-delay:.43s,.43s}

/* ---------- hover / focus ---------- */

/* ---------- sizes ---------- */
/* override --logo-h on .wordmark--svg (or a parent) to resize, e.g. 20px or 28px */
@media (max-width:900px){.wordmark--svg{--logo-h:22px}}

/* ---------- reduced motion: no transition, just swap ---------- */
@media (prefers-reduced-motion:reduce){
  .wordmark--svg .lg,
  .wordmark--svg .lg-glyph,
  .wordmark--svg .lg-ray{transition:none!important}
}

/* real Inter letters (text); the stroke shapes only appear once the fold starts */
.wordmark--svg .lg-t{fill:currentColor;stroke:none;font-family:"EB Garamond",Garamond,Georgia,serif;font-weight:700;font-size:20px;transition:transform var(--logo-dur) var(--ease),opacity .3s var(--ease)}
.wordmark--svg .lg-r-leg,.wordmark--svg .lg-i,.wordmark--svg .lg-m-v{opacity:0}
:is(.nav--scrolled .wordmark--svg,.wordmark--foot:hover,.wordmark--foot:focus-visible) .lg-r-leg,:is(.nav--scrolled .wordmark--svg,.wordmark--foot:hover,.wordmark--foot:focus-visible) .lg-i,:is(.nav--scrolled .wordmark--svg,.wordmark--foot:hover,.wordmark--foot:focus-visible) .lg-m-v{opacity:1}
:is(.nav--scrolled .wordmark--svg,.wordmark--foot:hover,.wordmark--foot:focus-visible) .lg-t-i,:is(.nav--scrolled .wordmark--svg,.wordmark--foot:hover,.wordmark--foot:focus-visible) .lg-t-m{opacity:0;transform:none;transition-delay:0s}

/* contact dialog */
html:has(dialog.cform[open]){overflow:hidden}
.cform{margin:auto;border:0;padding:0;background:transparent;width:min(720px,calc(100% - 32px));max-height:calc(100dvh - 32px);color:var(--ink);overflow:visible}
.cform::backdrop{background:rgb(29 29 23/.55);backdrop-filter:blur(3px)}
.cform__box{position:relative;background:var(--paper);border-radius:20px;padding:clamp(24px,4vw,44px);max-height:calc(100dvh - 32px);overflow:auto}
.cform__x{position:absolute;top:14px;right:16px;width:40px;height:40px;border:0;border-radius:50%;background:transparent;font-size:28px;line-height:1;cursor:pointer;color:var(--ink-2)}
.cform__x:hover{background:var(--paper-2);color:var(--ink)}
.cform h2{font-weight:500;font-size:clamp(1.5rem,2.4vw,2rem);letter-spacing:-.025em}
.cform__lede{color:var(--ink-2);margin:8px 0 24px}
.cform__status{color:var(--ink-2)}.cform__status a{color:var(--blue)}
.cf-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px 16px;margin-bottom:18px}
.cf-f{min-width:0}.cf-f--full{grid-column:1/-1}
.cform label,.cform legend{display:block;font-size:12px;letter-spacing:.08em;text-transform:uppercase;color:var(--ink-2);margin-bottom:8px;padding:0}
.cform input:not([type=checkbox]),.cform textarea{display:block;width:100%;font:inherit;font-size:16px;letter-spacing:0;text-transform:none;color:var(--ink);background:var(--paper);border:1px solid #D4D3CC;border-radius:8px;padding:0 16px;min-height:50px}
.cform textarea{padding:14px 16px;resize:vertical;min-height:110px}
.cform input::placeholder,.cform textarea::placeholder{color:#8c8a80}
.cform input:focus-visible,.cform textarea:focus-visible{outline:2px solid var(--blue);outline-offset:1px;border-color:var(--blue)}
.cform [aria-invalid]{border-color:#d33}
.cform fieldset{border:0;padding:0;min-width:0}
.cf-chips{display:flex;flex-wrap:wrap;gap:10px}
.cf-chip{margin:0!important;position:relative;text-transform:none!important;letter-spacing:0!important}
.cf-chip input{position:absolute;opacity:0;inset:0;margin:0;cursor:pointer}
.cf-chip span{display:block;padding:10px 18px;border:1px solid #D4D3CC;border-radius:999px;font-size:15px;color:var(--ink);transition:background .2s,color .2s,border-color .2s}
.cf-chip:hover span{border-color:var(--ink)}
.cf-chip input:checked+span{background:var(--ink);color:#fff;border-color:var(--ink)}
.cf-chip input:focus-visible+span{outline:2px solid var(--blue);outline-offset:2px}
.cf-err{color:#c22;font-size:14px;margin-top:6px}.cf-err--form{margin:0 0 14px}
.cform .btn[disabled]{opacity:.6;cursor:progress}
.cform__thanks h2{margin-bottom:20px}
@media (max-width:600px){.cf-grid{grid-template-columns:1fr}}

/* footer logo: folds into the prism on hover, same as the header on scroll */
.wordmark--foot{--logo-h:36px;display:block;width:calc(var(--logo-h)*85/24);height:var(--logo-h);margin:0;color:var(--on-dark,#FAF9F6);cursor:default}
.wordmark--foot:focus-visible{outline:2px solid var(--blue,#2F6BFF);outline-offset:6px}
