/* ==========================================================================
   VENCIRE
   Brand system: Space Grotesk · #FFFFFF #D9D9D9 #8A8A8A #1A1A1A #000000
   Accent #4F46E5 · Dark-committed. Intelligent, precise, futuristic, relentless.
   ========================================================================== */

:root{
  --black:#000000;
  --near:#0A0A0B;
  --panel:#0E0E10;
  --panel-2:#141416;
  --ink-900:#1A1A1A;
  --grey:#8A8A8A;
  --silver:#D9D9D9;
  --white:#FFFFFF;
  --accent:#4F46E5;
  --accent-soft:rgba(79,70,229,.14);

  --hair:rgba(255,255,255,.09);
  --hair-2:rgba(255,255,255,.16);

  --font:"Space Grotesk","Helvetica Neue",Helvetica,Arial,sans-serif;

  --nav-h:72px;                 /* header height — hero clearance keys off this */
  --gut:clamp(20px,5vw,64px);
  --maxw:1200px;
  /* Tightened once Careers landed — the page is long enough now that the
     original rhythm read as drift rather than restraint. */
  --sect:clamp(60px,6.4vw,96px);
}

*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

body{
  margin:0;
  background:var(--black);
  color:var(--silver);
  font-family:var(--font);
  font-weight:400;
  font-size:16px;
  line-height:1.62;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  overflow-x:hidden;
}

img,svg{max-width:100%;display:block}
a{color:inherit;text-decoration:none}

::selection{background:var(--accent);color:#fff}

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

.wrap{max-width:var(--maxw);margin:0 auto;padding-inline:var(--gut)}

/* ---------- type ---------- */
h1,h2,h3,h4{margin:0;font-weight:500;letter-spacing:-.02em;line-height:1.08;color:var(--white)}
p{margin:0}

.eyebrow{
  font-size:11px;
  font-weight:500;
  letter-spacing:.22em;
  text-transform:uppercase;
  color:var(--grey);
  display:flex;
  align-items:center;
  gap:14px;
}
.eyebrow::before{
  content:"";
  width:24px;height:1px;
  background:var(--hair-2);
  flex:none;
}
.eyebrow .num{color:var(--accent)}

.h-xl{font-size:clamp(33px,6.1vw,70px);letter-spacing:-.032em;line-height:1.06}
.h-lg{font-size:clamp(30px,4.6vw,54px);letter-spacing:-.03em}
.h-md{font-size:clamp(22px,2.6vw,32px);letter-spacing:-.02em;line-height:1.18}
.lede{font-size:clamp(17px,1.75vw,21px);line-height:1.55;color:var(--silver)}
.muted{color:var(--grey)}
.small{font-size:14px;line-height:1.6}

.mono{
  font-variant-numeric:tabular-nums;
  font-size:11px;
  letter-spacing:.18em;
  text-transform:uppercase;
  color:var(--grey);
}

/* ---------- logo ---------- */
.mark{height:var(--s,30px);width:auto;flex:none}
/* Nav uses the real wordmark file. Source cap height is 57px, so 18px
   keeps it above 3x on retina and the letterforms stay crisp. */
.nav-wordmark{height:18px;width:auto;flex:none;display:block}
@media (max-width:560px){.nav-wordmark{height:16px}}

.lockup{display:flex;align-items:center;gap:13px}
.wordmark{
  font-size:16px;
  font-weight:500;
  letter-spacing:.34em;
  color:var(--white);
  text-transform:uppercase;
  padding-left:2px;
}

/* ---------- nav ---------- */
.nav{
  position:fixed;inset:0 0 auto 0;z-index:60;
  border-bottom:1px solid transparent;
  transition:background .35s ease,border-color .35s ease,backdrop-filter .35s ease;
}
.nav.stuck{
  background:rgba(0,0,0,.72);
  backdrop-filter:blur(14px) saturate(1.4);
  -webkit-backdrop-filter:blur(14px) saturate(1.4);
  border-bottom-color:var(--hair);
}
.nav-in{
  display:flex;align-items:center;justify-content:space-between;
  gap:24px;height:var(--nav-h);
}
.nav-links{display:flex;align-items:center;gap:34px}
.nav-links a{
  font-size:14px;color:var(--grey);
  transition:color .2s ease;
  position:relative;
}
.nav-links a:hover{color:var(--white)}
/* Current section indicator — a nav that tells you where you are. */
.nav-links a::after{
  content:"";position:absolute;left:0;right:0;bottom:-7px;height:1px;
  background:var(--white);transform:scaleX(0);transform-origin:left;
  transition:transform .28s cubic-bezier(.22,.61,.36,1);
}
.nav-links a.current{color:var(--white)}
.nav-links a.current::after{transform:scaleX(1)}

.btn{
  display:inline-flex;align-items:center;gap:9px;
  height:40px;padding:0 20px;
  border:1px solid var(--hair-2);
  border-radius:999px;
  font-size:14px;font-weight:500;color:var(--white);
  background:transparent;
  transition:background .22s ease,border-color .22s ease,transform .22s ease;
  white-space:nowrap;
}
.btn:hover{background:rgba(255,255,255,.07);border-color:rgba(255,255,255,.3)}
.btn:active{transform:translateY(1px)}
.btn-solid{
  background:var(--white);color:var(--black);border-color:var(--white);
}
.btn-solid:hover{background:var(--silver);border-color:var(--silver)}
.btn .arw{transition:transform .22s ease}
.btn:hover .arw{transform:translateX(3px)}

.nav-toggle{display:none;background:none;border:0;padding:8px;cursor:pointer;color:var(--white)}

@media (max-width:900px){
  .nav-links,.nav .btn{display:none}
  .nav-toggle{display:block}
  .nav.open .nav-links{
    display:flex;flex-direction:column;align-items:flex-start;gap:4px;
    position:absolute;top:var(--nav-h);left:0;right:0;
    background:rgba(0,0,0,.96);
    backdrop-filter:blur(14px);
    -webkit-backdrop-filter:blur(14px);
    border-bottom:1px solid var(--hair);
    padding:14px var(--gut) 26px;
  }
  .nav.open .nav-links a{font-size:19px;color:var(--white);padding:11px 0;width:100%}
}

/* ---------- hero ---------- */
.hero{
  position:relative;
  min-height:100svh;                      /* full bleed, honest on mobile */
  display:flex;flex-direction:column;
  align-items:center;justify-content:center;
  /* Clearance is the header plus air that scales with both viewport
     dimensions, so it holds on a laptop and on a 27" display alike. */
  padding-top:calc(var(--nav-h) + clamp(40px, 4vh + 2.4vw, 116px));
  padding-bottom:clamp(80px,10vw,120px);
  overflow:hidden;text-align:center;
}
@supports not (min-height:100svh){ .hero{min-height:100vh} }

/* Terrain fills the lower field and is masked at both edges. */
#field{
  position:absolute;left:0;right:0;bottom:0;
  width:100%;height:66%;
  z-index:0;opacity:1;pointer-events:none;
  -webkit-mask-image:linear-gradient(180deg,transparent 0%,#000 34%,#000 88%,transparent 100%);
          mask-image:linear-gradient(180deg,transparent 0%,#000 34%,#000 88%,transparent 100%);
}

/* Accent bloom overhead, and a soft floor so the copy always sits clear. */
.hero::after{
  content:"";position:absolute;inset:0;z-index:1;pointer-events:none;
  background:
    radial-gradient(88% 50% at 50% -6%, rgba(79,70,229,.17), transparent 66%),
    radial-gradient(66% 50% at 50% 47%, rgba(0,0,0,.70), transparent 78%);
}

.hero-in{position:relative;z-index:2;width:100%}
.hero h1{
  margin:0 auto;
  max-width:none;                          /* line breaks are authored in the markup */
}
.hero .lede{
  margin:clamp(24px,3vw,34px) auto 0;
  max-width:64ch;color:var(--grey);
}
.hero-cta{
  display:flex;flex-wrap:wrap;gap:12px;
  justify-content:center;
  margin-top:clamp(30px,3.6vw,42px);
}

/* Status strip pinned to the floor of the hero. */

.hero-grid{
  position:absolute;inset:0;z-index:0;pointer-events:none;
  max-width:var(--maxw);margin:0 auto;padding-inline:var(--gut);
  display:grid;grid-template-columns:repeat(4,1fr);
  -webkit-mask-image:linear-gradient(180deg,#000 0%,#000 58%,transparent 94%);
          mask-image:linear-gradient(180deg,#000 0%,#000 58%,transparent 94%);
}
.hero-grid span{border-left:1px solid rgba(255,255,255,.04)}
.hero-grid span:first-child{border-left-color:rgba(255,255,255,.06)}

/* ---------- sections ---------- */
/* Clears the 72px fixed header so anchor jumps don't land under it. */
section[id]{scroll-margin-top:calc(var(--nav-h) + 8px)}
.sect{padding-block:var(--sect);position:relative}
.sect-head h2{margin-top:18px}
.sect + .sect{border-top:1px solid var(--hair)}
.sect-head{max-width:840px}
.sect-head h2{margin-top:24px}
.sect-head .lede{margin-top:18px;color:var(--grey);max-width:680px}

/* ---------- products ----------
   Editorial rows, not cards. Identity column left, substance right,
   hairline rules between. Quiet by default, in the reference register. */
.prod-list{margin-top:clamp(34px,4vw,52px);border-top:1px solid var(--hair)}

.prod{
  display:grid;gap:24px 64px;
  padding:clamp(30px,3.8vw,50px) 0;
  border-bottom:1px solid var(--hair);
}
@media (min-width:920px){
  .prod{grid-template-columns:minmax(0,290px) minmax(0,1fr);gap:0 72px}
}

.status{
  display:inline-flex;align-items:center;gap:8px;
  font-size:10.5px;letter-spacing:.2em;text-transform:uppercase;color:var(--grey);
}
.status.live{color:var(--white)}
.dot{width:6px;height:6px;border-radius:50%;background:var(--accent);flex:none}
.dot.pulse{animation:pulse 2.4s ease-in-out infinite}
.dot.idle{background:var(--grey);opacity:.5}
@keyframes pulse{0%,100%{opacity:1}50%{opacity:.25}}

.prod-id h3{margin:18px 0 0}
/* Product wordmarks are the real brand files, sized to a shared cap height. */
.prod-logo{height:34px;width:auto;display:block}
.prod-logo.adviper{height:30px}
.prod-id .role{margin-top:14px;font-size:13.5px;color:var(--grey)}

.prod-body .desc{
  font-size:clamp(16.5px,1.75vw,20px);line-height:1.58;color:var(--silver);
  max-width:640px;
}

.facts{list-style:none;margin:30px 0 0;padding:0;max-width:640px}
.facts li{
  padding:13px 0;border-top:1px solid var(--hair);
  font-size:14.5px;line-height:1.6;color:var(--grey);
}
.facts b{color:var(--white);font-weight:500}

.prod-meta{
  display:flex;flex-wrap:wrap;gap:10px 30px;
  margin-top:26px;padding-top:20px;border-top:1px solid var(--hair);
  max-width:640px;
}
.prod-meta span{font-size:11px;letter-spacing:.16em;text-transform:uppercase;color:var(--grey)}
.prod-meta b{color:var(--white);font-weight:500}

.prod-link{
  display:inline-flex;align-items:center;gap:9px;
  margin-top:28px;font-size:14.5px;font-weight:500;color:var(--white);
  width:fit-content;
  border-bottom:1px solid var(--hair-2);padding-bottom:3px;
  transition:border-color .22s ease;
}
.prod-link:hover{border-bottom-color:var(--white)}
.prod-link .arw{transition:transform .22s ease}
.prod-link:hover .arw{transform:translateX(4px)}

/* ---------- pipeline ---------- */
.pipe-wrap{
  margin-top:clamp(34px,4vw,52px);
  border:1px solid var(--hair);border-radius:18px;
  background:linear-gradient(180deg,var(--panel) 0%,var(--near) 100%);
  padding:clamp(24px,3.2vw,38px);
}
.pipe-head{display:flex;flex-wrap:wrap;gap:12px;align-items:baseline;justify-content:space-between}
.pipe-scroll{overflow-x:auto;margin-top:30px;padding-bottom:6px;-webkit-overflow-scrolling:touch}
.pipe{display:flex;align-items:stretch;gap:0;min-width:760px}
.step{flex:1;position:relative;padding-right:26px}
.step:last-child{padding-right:0}
.step .n{font-size:10.5px;letter-spacing:.18em;color:var(--accent);text-transform:uppercase}
.step .t{margin-top:11px;font-size:15.5px;font-weight:500;color:var(--white)}
.step .s{margin-top:6px;font-size:10.5px;letter-spacing:.13em;text-transform:uppercase;color:var(--grey)}
.step .bar{margin-top:16px;height:2px;background:var(--hair-2);border-radius:2px;position:relative;overflow:hidden}
.step .bar::after{
  content:"";position:absolute;inset:0;width:36%;
  background:linear-gradient(90deg,transparent,var(--accent),transparent);
  animation:flow 3.4s linear infinite;animation-delay:var(--d,0s);
}
@keyframes flow{from{transform:translateX(-120%)}to{transform:translateX(320%)}}
.repair{
  margin-top:18px;display:flex;align-items:center;gap:10px;
  font-size:10.5px;letter-spacing:.18em;text-transform:uppercase;color:var(--grey);
}
.repair i{flex:none;width:34px;height:1px;background:var(--hair-2);display:block}
.pipe-note{margin-top:22px;font-size:13.5px;color:var(--grey);line-height:1.6}

@media (prefers-reduced-motion:reduce){
  .step .bar::after{animation:none;opacity:.5;width:100%}
  .dot.pulse{animation:none}
}

/* ---------- split ---------- */
.split{display:grid;gap:20px;margin-top:clamp(28px,3.4vw,42px)}
@media (min-width:860px){.split{grid-template-columns:1fr 1fr}}
.panel{
  border:1px solid var(--hair);border-radius:18px;
  padding:clamp(24px,3vw,36px);
  background:linear-gradient(180deg,var(--panel) 0%,var(--near) 100%);
}
.panel h3{font-size:20px}
.panel p{margin-top:15px;font-size:15px;color:var(--grey);line-height:1.66}

/* ---------- principles ---------- */
.rules{margin-top:clamp(34px,4vw,52px);border-top:1px solid var(--hair)}
.rule{
  display:grid;gap:10px 40px;
  padding:clamp(24px,2.9vw,34px) 0;
  border-bottom:1px solid var(--hair);
  transition:background .3s ease;
}
@media (min-width:860px){
  .rule{grid-template-columns:64px minmax(0,300px) minmax(0,1fr);align-items:start}
}
.rule .idx{font-size:12px;letter-spacing:.16em;color:var(--accent);padding-top:5px}
.rule h3{font-size:clamp(19px,2.1vw,24px)}
.rule p{font-size:15px;color:var(--grey);line-height:1.68}

/* ---------- careers ---------- */
.careers-note{
  margin-top:clamp(26px,3vw,38px);
  display:flex;flex-wrap:wrap;gap:10px 30px;
  padding-bottom:26px;border-bottom:1px solid var(--hair);
}
.careers-note span{font-size:11px;letter-spacing:.16em;text-transform:uppercase;color:var(--grey)}
.careers-note b{color:var(--white);font-weight:500}

.role-group{margin-top:clamp(30px,3.6vw,46px)}
.role-group > h3{
  font-size:11px;letter-spacing:.2em;text-transform:uppercase;
  color:var(--grey);font-weight:500;
}
.roles{list-style:none;margin:20px 0 0;padding:0;border-top:1px solid var(--hair)}

.role-row{
  display:grid;gap:6px 32px;
  padding:22px 0;border-bottom:1px solid var(--hair);
  align-items:baseline;
  transition:background .25s ease;
}
@media (min-width:900px){
  .role-row{grid-template-columns:minmax(0,1fr) 230px 216px;gap:0 32px;padding:20px 0}
}
.role-row:hover{background:rgba(255,255,255,.022)}

.role-t{font-size:16.5px;font-weight:500;color:var(--white);letter-spacing:-.01em;line-height:1.34}
.role-t .disc{display:block;margin-top:5px;font-size:13px;font-weight:400;color:var(--grey);letter-spacing:0}
.role-loc{font-size:13.5px;color:var(--grey);line-height:1.5}
.role-pay{font-size:13.5px;color:var(--silver);line-height:1.5}
.role-pay .sub{display:block;margin-top:3px;font-size:11px;letter-spacing:.13em;text-transform:uppercase;color:var(--grey)}

.careers-apply{
  margin-top:clamp(28px,3.4vw,42px);
  padding-top:28px;border-top:1px solid var(--hair);
  display:flex;flex-wrap:wrap;gap:16px 30px;align-items:center;
}
.careers-apply p{font-size:14.5px;color:var(--grey);max-width:520px;line-height:1.6}

/* ---------- contact ---------- */
.contact-grid{display:grid;gap:18px;margin-top:clamp(30px,3.6vw,44px)}
@media (min-width:760px){.contact-grid{grid-template-columns:1fr 1fr}}
.mail{
  border:1px solid var(--hair);border-radius:16px;
  padding:clamp(22px,2.8vw,30px);
  background:linear-gradient(180deg,var(--panel) 0%,var(--near) 100%);
  transition:border-color .28s ease,transform .28s ease;
  display:block;
}
.mail:hover{border-color:var(--hair-2);transform:translateY(-2px)}
.mail .k{font-size:11px;letter-spacing:.18em;text-transform:uppercase;color:var(--grey)}
.mail .a{
  margin-top:13px;font-size:clamp(18px,2.3vw,25px);
  color:var(--white);letter-spacing:-.02em;
  display:flex;align-items:center;gap:10px;
}
.mail .arw{transition:transform .22s ease}
.mail:hover .arw{transform:translateX(4px)}

/* ---------- footer ---------- */
.foot{border-top:1px solid var(--hair);padding-block:40px 28px}
.foot-in{display:grid;gap:30px}
@media (min-width:860px){.foot-in{grid-template-columns:1.4fr 1fr 1fr;gap:40px}}
.foot-lockup{height:46px;width:auto;opacity:.92}
@media (max-width:560px){.foot-lockup{height:38px}}
.fcol h4{font-size:11px;letter-spacing:.2em;text-transform:uppercase;color:var(--grey);font-weight:500}
.fcol ul{list-style:none;margin:16px 0 0;padding:0;display:grid;gap:11px}
.fcol a{font-size:14.5px;color:var(--silver);transition:color .2s ease}
.fcol a:hover{color:var(--white)}
.foot-btm{
  margin-top:30px;padding-top:20px;border-top:1px solid var(--hair);
  display:flex;flex-wrap:wrap;gap:12px;justify-content:space-between;
  font-size:12.5px;color:var(--grey);
}

/* ---------- reveal ----------
   Content is visible by default. The hidden state is applied only when
   JS has confirmed it is running (html.js), so a failed observer, a
   blocked script, or a static render can never leave the page blank. */
.js .rv{opacity:0;transform:translateY(16px);transition:opacity .7s cubic-bezier(.22,.61,.36,1),transform .7s cubic-bezier(.22,.61,.36,1)}
.js .rv.in{opacity:1;transform:none}
@media (prefers-reduced-motion:reduce){.js .rv{opacity:1;transform:none;transition:none}}

/* ---------- standalone page ----------
   A page whose first section sits directly under the fixed 72px header
   needs its own top clearance; the home page gets this from .hero. */
.sect-page{padding-top:clamp(122px,14vw,168px)}
.sect-page .sect-head h1{margin-top:24px}

/* ==========================================================================
   MOTION
   Restrained and purposeful. Entrances are pure CSS animations, so they
   resolve even if the script fails to load — nothing can be left hidden.
   Everything here is disabled under prefers-reduced-motion.
   ========================================================================== */

@keyframes lineUp   { from{transform:translateY(110%)} to{transform:none} }
@keyframes fadeUp   { from{opacity:0;transform:translateY(14px)} to{opacity:1;transform:none} }
@keyframes fadeDown { from{opacity:0;transform:translateY(-10px)} to{opacity:1;transform:none} }
@keyframes drawRule { from{transform:scaleX(0)} to{transform:scaleX(1)} }
@keyframes pageIn   { from{opacity:0} to{opacity:1} }
@keyframes pageOut  { from{opacity:1} to{opacity:0} }

/* --- page transition: no white flash between home and Careers --- */
.js body{animation:pageIn .5s ease both}
.js.leaving body{animation:pageOut .26s ease both}

/* --- headline: lines rise out of their own mask --- */
.reveal-lines .ln{display:block;overflow:hidden;padding-bottom:.06em}
.reveal-lines .ln > span{display:block}
.js .reveal-lines .ln > span{animation:lineUp 1.05s cubic-bezier(.16,1,.3,1) both}
.js .reveal-lines .ln:nth-child(1) > span{animation-delay:.08s}
.js .reveal-lines .ln:nth-child(2) > span{animation-delay:.17s}
.js .reveal-lines .ln:nth-child(3) > span{animation-delay:.32s}

/* --- the rest of the hero settles in behind it --- */
.js .hero .lede   {animation:fadeUp .9s cubic-bezier(.16,1,.3,1) both;animation-delay:.42s}
.js .hero-cta     {animation:fadeUp .9s cubic-bezier(.16,1,.3,1) both;animation-delay:.52s}
.js .sect-page .sect-head{animation:fadeUp .8s cubic-bezier(.16,1,.3,1) both;animation-delay:.10s}

/* --- header --- */
.js .nav{animation:fadeDown .7s ease both}

.nav-progress{
  position:absolute;left:0;bottom:-1px;height:1px;width:100%;
  transform:scaleX(var(--p,0));transform-origin:left;
  background:linear-gradient(90deg,var(--accent),rgba(255,255,255,.85));
  opacity:0;transition:opacity .4s ease;pointer-events:none;
}
.nav.stuck .nav-progress{opacity:.9}

/* --- section eyebrow rule draws itself as the section arrives --- */
.js .rv .eyebrow::before{transform:scaleX(0);transform-origin:left}
.js .rv.in .eyebrow::before{animation:drawRule .8s cubic-bezier(.16,1,.3,1) .12s both}
.js .sect-page .eyebrow::before{animation:drawRule .8s cubic-bezier(.16,1,.3,1) .3s both}

/* --- rows respond to the pointer --- */
.role-row,.prod,.rule{transition:background .3s ease,transform .35s cubic-bezier(.16,1,.3,1)}
@media (hover:hover) and (min-width:900px){
  .role-row:hover{transform:translateX(6px)}
  .rule:hover{background:rgba(255,255,255,.018)}
}
.prod-logo{transition:transform .5s cubic-bezier(.16,1,.3,1)}
@media (hover:hover){ .prod:hover .prod-logo{transform:translateY(-2px)} }

@media (prefers-reduced-motion:reduce){
  .js body,
  .js.leaving body,
  .js .reveal-lines .ln > span,
  .js .hero .eyebrow,.js .hero .lede,.js .hero-cta,
  .js .sect-page .sect-head,
  .js .nav,
  .js .rv.in .eyebrow::before,
  .js .hero .eyebrow::before,
  .js .sect-page .eyebrow::before{animation:none !important;opacity:1 !important;transform:none !important}
  .js .rv .eyebrow::before{transform:scaleX(1) !important}
  .nav-progress{display:none}
  .role-row:hover,.rule:hover{transform:none}
}

/* ---------- standalone page ----------
   A page whose first section sits directly under the fixed 72px header
   needs its own top clearance; the home page gets this from .hero. */
.sect-page{padding-top:clamp(122px,14vw,168px)}
.sect-page .sect-head h1{margin-top:24px}

/* ==========================================================================
   FIT — device and screen-size adaptation
   ========================================================================== */

/* Touch targets: coarse pointers get real hit areas without changing the look. */
@media (pointer:coarse){
  .fcol ul{gap:2px}
  .fcol a{display:inline-block;padding:11px 0;min-height:44px;line-height:1.5}
  .prod-link,.card-link{padding:12px 0 8px;min-height:44px;align-items:center}
  .nav-links a{min-height:44px;display:flex;align-items:center}
  .mail{padding-block:22px}
}

/* Phones */
@media (max-width:560px){
  .h-xl{font-size:clamp(33px,9.2vw,46px);line-height:1.06}
  .h-lg{font-size:clamp(26px,7.4vw,36px)}
  .lede{font-size:16.5px}
  .hero-cta{gap:10px}
  .hero-cta .btn{flex:1 1 100%;justify-content:center}
  .prod-meta{gap:8px 18px}
  .prod-meta span{font-size:10.5px}
  .role-row{padding:20px 0}
  .role-t{font-size:16px}
  .careers-note{gap:8px 20px}
  .careers-note span{font-size:10.5px}
  .careers-apply .btn{width:100%;justify-content:center}
  .pipe-wrap,.panel,.card{border-radius:14px}
}

/* Very narrow phones — keep the wordmark and menu from colliding */
@media (max-width:380px){
  .nav-wordmark{height:15px}
  .h-xl{font-size:clamp(30px,8.8vw,38px)}
}

/* Tablets: two-up where the desktop grid would be too tight */
@media (min-width:561px) and (max-width:900px){
  .role-row{grid-template-columns:minmax(0,1fr) auto;gap:10px 24px}
  .role-row .role-t{grid-column:1 / -1}
  .role-pay{text-align:right}
}

/* Large displays — cap the measure so text never runs long */
@media (min-width:1600px){
  :root{--maxw:1320px}
  .prod-body .desc,.facts,.prod-meta{max-width:720px}
}

/* Landscape phones: the hero shouldn't need a full screen of scrolling */
@media (max-height:520px) and (orientation:landscape){
  .hero{padding-top:104px;padding-bottom:56px}
  .sect-page{padding-top:104px}
}

/* ==========================================================================
   MOTION — second pass
   Rows resolve in sequence rather than all at once, and structural
   hairlines draw themselves as each block arrives.
   ========================================================================== */

@keyframes rowIn  { from{opacity:0;transform:translateY(12px)} to{opacity:1;transform:none} }
@keyframes glowIn { from{opacity:0} to{opacity:1} }

/* Role rows arrive in sequence within their group. */
.js .role-group.in .role-row{animation:rowIn .62s cubic-bezier(.16,1,.3,1) both}
.js .role-group.in .role-row:nth-child(1){animation-delay:.04s}
.js .role-group.in .role-row:nth-child(2){animation-delay:.09s}
.js .role-group.in .role-row:nth-child(3){animation-delay:.14s}
.js .role-group.in .role-row:nth-child(4){animation-delay:.19s}
.js .role-group.in .role-row:nth-child(5){animation-delay:.24s}
.js .role-group.in .role-row:nth-child(6){animation-delay:.29s}
.js .role-group.in .role-row:nth-child(n+7){animation-delay:.33s}

/* Product rows: the detail list resolves after the description. */
.js .prod.in .facts li{animation:rowIn .6s cubic-bezier(.16,1,.3,1) both}
.js .prod.in .facts li:nth-child(1){animation-delay:.10s}
.js .prod.in .facts li:nth-child(2){animation-delay:.17s}
.js .prod.in .facts li:nth-child(3){animation-delay:.24s}
.js .prod.in .facts li:nth-child(4){animation-delay:.31s}
.js .prod.in .prod-meta{animation:rowIn .6s cubic-bezier(.16,1,.3,1) .36s both}
.js .prod.in .prod-link{animation:rowIn .6s cubic-bezier(.16,1,.3,1) .44s both}

/* Principles stagger down the list. */
.js .rule.in{animation:rowIn .66s cubic-bezier(.16,1,.3,1) both}

/* Pipeline steps light up left to right. */
.js .pipe-wrap.in .step{animation:rowIn .6s cubic-bezier(.16,1,.3,1) both}
.js .pipe-wrap.in .step:nth-child(1){animation-delay:.06s}
.js .pipe-wrap.in .step:nth-child(2){animation-delay:.13s}
.js .pipe-wrap.in .step:nth-child(3){animation-delay:.20s}
.js .pipe-wrap.in .step:nth-child(4){animation-delay:.27s}
.js .pipe-wrap.in .step:nth-child(5){animation-delay:.34s}
.js .pipe-wrap.in .step:nth-child(6){animation-delay:.41s}

/* Contact tiles. */
.js .mail.in{animation:rowIn .66s cubic-bezier(.16,1,.3,1) both}

/* Buttons pick up a faint accent bloom on hover. */
.btn-solid{position:relative;overflow:hidden}
.btn-solid::after{
  content:"";position:absolute;inset:0;border-radius:inherit;
  background:radial-gradient(120% 180% at 50% 120%, rgba(79,70,229,.30), transparent 62%);
  opacity:0;transition:opacity .35s ease;
}
@media (hover:hover){ .btn-solid:hover::after{opacity:1} }

/* Footer lockup settles in. */
.js .foot-lockup{animation:glowIn 1s ease both}

@media (prefers-reduced-motion:reduce){
  .js .role-group.in .role-row,
  .js .prod.in .facts li,
  .js .prod.in .prod-meta,
  .js .prod.in .prod-link,
  .js .rule.in,
  .js .pipe-wrap.in .step,
  .js .mail.in,
  .js .foot-lockup{animation:none !important;opacity:1 !important;transform:none !important}
  .btn-solid::after{display:none}
}



/* ==========================================================================
   HERO — small screens
   Same composition, re-proportioned. The terrain sits lower and lighter so
   the copy never competes with it, and the status strip stays on one row.
   ========================================================================== */
@media (max-width:900px){
  /* Top-align on phones: centring inside a full-height box leaves a
     large dead gap under the fixed nav. */
  /* Content-led height on phones. A 90svh floor left ~260px of dead space
     below the buttons, since the hero content is far shorter than the
     viewport here. Just enough height remains for the terrain to read. */
  .hero{
    min-height:72svh;
    justify-content:flex-start;
    padding-top:calc(var(--nav-h) + clamp(40px, 5vh + 3vw, 104px));
    padding-bottom:clamp(36px,8vw,56px);
  }
  .hero .lede{max-width:38ch}
  #field{
    height:48%;opacity:.8;
    -webkit-mask-image:linear-gradient(180deg,transparent 0%,#000 40%,#000 86%,transparent 100%);
            mask-image:linear-gradient(180deg,transparent 0%,#000 40%,#000 86%,transparent 100%);
  }
  .hero::after{
    background:
      radial-gradient(130% 40% at 50% -4%, rgba(79,70,229,.17), transparent 68%),
      linear-gradient(180deg, rgba(0,0,0,.70) 0%, rgba(0,0,0,.42) 44%, transparent 64%);
  }
  .hero-grid{grid-template-columns:repeat(2,1fr)}
}

@media (max-width:560px){
  .hero .lede{max-width:30ch}
  .hero-cta{gap:10px;width:100%}
  .hero-cta .btn{flex:1 1 100%;justify-content:center}
}

/* Short landscape screens: never let the hero force a scroll to read it. */
@media (max-height:560px) and (orientation:landscape){
  .hero{min-height:auto;padding:112px 0 72px}
  #field{height:56%}
}

/* Below ~700px the authored line breaks strand single words, so the
   headline reflows naturally and animates as one block instead. */
@media (max-width:700px){
  .reveal-lines .ln,
  .reveal-lines .ln > span{display:inline;overflow:visible;padding-bottom:0}
  .js .reveal-lines .ln > span{animation:none}
  .js .reveal-lines{animation:fadeUp .95s cubic-bezier(.16,1,.3,1) .16s both}
}
@media (max-width:700px) and (prefers-reduced-motion:reduce){
  .js .reveal-lines{animation:none}
}

/* Compensation disclaimer — deliberately quiet, but present and readable. */
.pay-note{
  margin-top:clamp(28px,3.4vw,42px);
  padding-top:20px;border-top:1px solid var(--hair);
  max-width:72ch;font-size:12.5px;line-height:1.68;color:var(--grey);
}

/* Research areas — four disciplines, not two panels. */
.areas{
  display:grid;gap:20px;
  margin-top:clamp(28px,3.4vw,42px);
  grid-template-columns:repeat(auto-fit,minmax(248px,1fr));
}
.areas .panel{display:flex;flex-direction:column}
.area-n{
  font-size:11px;letter-spacing:.2em;color:var(--accent);
  display:block;margin-bottom:14px;
}
.areas .panel h3{font-size:18.5px}
.areas .panel p{margin-top:13px;font-size:14.5px;line-height:1.65}
@media (max-width:560px){ .areas{gap:16px} }

/* The final row of a hairline-separated list sits directly above a section
   boundary, so its own closing rule and bottom padding are redundant —
   they stack with the section's padding and read as a dead gap. */
.prod-list > .prod:last-child,
.rules > .rule:last-child,
.roles > .role-row:last-child{
  border-bottom:0;
  padding-bottom:0;
}
