/* hd-site.css — the base of the institutional design (Nov 2026).
 *
 * One copy of everything the pages built in this design have in common
 * (home, how we work, readiness, product, research, pricing, privacy): the
 * tokens, the buttons, the nav and its drawer, the prompt to scroll, the
 * photograph-and-plate head, the blue band, the section heads, the ruled
 * grids, the dark close and the footer. Each of those pages used to carry
 * this in its own <style> block, so a change to the nav was an edit per page
 * and the copies had begun to drift.
 *
 * A page loads this file first and keeps only what is its own in its
 * <style> block, which comes later in the cascade and so wins. index.html
 * links it in its own head; the wrapped pages get it from SITE_HEAD in
 * deploy.sh. hd-site.js is the script half: the menu drawer, the prompt to
 * scroll and the footage in the closing band.
 *
 * This is not the design system. shared-ds.html is, and the pages that take
 * $SHARED_CSS do not load this file: the class names collide.
 */

/* ===== tokens — HumanData Design System v4, the light set =====
   Light only. Marketing pages do not follow the system's dark setting. */
:root{
  --font:'IBM Plex Sans',-apple-system,BlinkMacSystemFont,sans-serif;
  --mono:'IBM Plex Mono','SF Mono',monospace;
  --display:'Libre Caslon Display',Georgia,serif;
  --accent:#2563EB;--accent-hover:#1D4ED8;
  color-scheme:light;
  --bg:#F5F5F5;--bg1:#FFFFFF;--bg2:#EEEEEE;--bg3:#E2E2E2;
  --bd:rgba(0,0,0,.12);--bd2:rgba(0,0,0,.22);--bd3:rgba(0,0,0,.32);
  --t1:#080808;--t2:#3D3D3D;--t3:#6B6B6B;--t4:#B0B0B0;
  --ease:cubic-bezier(.4,0,.2,1);
}

*{box-sizing:border-box}
html,body{margin:0}
body{font-family:var(--font);background:var(--bg);color:var(--t1);font-size:15px;line-height:1.5;
  -webkit-font-smoothing:antialiased;overflow-x:hidden;transition:background .25s,color .25s}
a{color:inherit;text-decoration:none}
h1,h2,h3,h4,p,ul{margin:0}
ul{padding:0;list-style:none}
button,input,textarea{font-family:inherit}
.label{font-family:var(--mono);font-size:10px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:var(--t3)}
.label.blue{color:var(--accent)}
.wrap{max-width:1180px;margin:0 auto;padding:0 20px}
/* the short rule: the one recurring mark under a headline */
.mark-rule{display:block;width:88px;height:4px;background:var(--accent);margin-top:30px}

/* ===== buttons: square, outlined at rest, the fill is the rollover =====
   --btn-pad lets a page set the resting size once without having to restate
   .btn-sm after it. The home page does. */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:var(--btn-pad,13px 22px);
  font-size:14px;font-weight:600;letter-spacing:.02em;border:1.5px solid transparent;background:transparent;
  color:var(--t1);cursor:pointer;white-space:nowrap;transition:background .15s,color .15s,border-color .15s,transform .1s}
.btn:hover{transform:translateY(-1px)}
.btn:focus-visible{outline:2px solid rgba(37,99,235,.6);outline-offset:2px}
.btn-solid{border-color:var(--accent);color:var(--accent)}
.btn-solid:hover{background:var(--accent);color:#fff}
.btn-ink{border-color:var(--t1);color:var(--t1)}
.btn-ink:hover{background:var(--t1);color:var(--bg1)}
.btn-sm{padding:7px 14px;font-size:12px}

/* ===== nav ===== */
.nav{position:fixed;inset:0 0 auto 0;z-index:50;height:60px;border-bottom:1px solid var(--bd);
  background:color-mix(in srgb,var(--bg1) 92%,transparent);backdrop-filter:blur(10px);display:flex;align-items:center}
.nav .wrap{display:flex;align-items:center;width:100%}
.logo{display:flex;align-items:center}
.logo-mark{width:28px;height:28px;background:var(--accent);display:grid;place-items:center;font-family:var(--mono);font-weight:700;font-size:14px;color:#fff}
.logo-text{font-family:var(--mono);font-size:14px;font-weight:700;letter-spacing:.04em;padding-left:10px}
.nav-r{margin-left:auto;display:flex;align-items:center;gap:14px}
.nav-r .lk{font-size:14px;color:var(--t2);padding:6px 4px}
.nav-r .lk:hover{color:var(--t1)}
.icon-btn{width:32px;height:32px;display:grid;place-items:center;border:1px solid var(--bd);background:transparent;color:var(--t2);cursor:pointer}
.icon-btn svg{width:15px;height:15px}

/* ===== menu drawer: hamburger on the right, panel slides in from the left ===== */
.menu-btn{width:40px;height:40px;border:0;color:var(--t1)}
.menu-btn svg{width:22px;height:22px}
/* desktop: the pages are named in the header; below that width, the drawer */
.nav-links{display:none}
@media(min-width:1000px){
  .nav-links{display:flex;align-items:stretch;gap:24px;height:60px;margin-left:34px}
  .nav-links a{display:flex;align-items:center;font-size:14px;color:var(--t2);border-bottom:2px solid transparent;border-top:2px solid transparent;white-space:nowrap}
  .nav-links a:hover{color:var(--t1)}
  .nav-links a[aria-current]{color:var(--t1);border-bottom-color:var(--accent)}
  .nav .menu-btn{display:none}
}

/* the prompt to scroll: fixed to the foot of the first screen, gone once they move */
.scroll-cue{position:fixed;right:24px;bottom:22px;z-index:40;display:inline-flex;align-items:center;gap:10px;
  padding:10px 16px;background:var(--bg1);color:var(--t1);border:1.5px solid var(--t1);cursor:pointer;
  font-family:var(--mono);font-size:11px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;
  transition:opacity .25s,background .15s,color .15s}
.scroll-cue:hover{background:var(--t1);color:var(--bg1)}
.scroll-cue:focus-visible{outline:2px solid rgba(37,99,235,.6);outline-offset:3px}
.scroll-cue svg{width:14px;height:14px;animation:cue 1.6s ease-in-out infinite}
.scroll-cue.gone{opacity:0;pointer-events:none}
@keyframes cue{0%,100%{transform:translateY(-2px)}50%{transform:translateY(3px)}}
@media(max-width:700px){.scroll-cue{right:16px;bottom:16px;width:44px;height:44px;padding:0;gap:0;justify-content:center;font-size:0}}
@media(max-width:560px){.nav-r .lk{display:none}.nav-r{gap:8px}}
.drawer-scrim{position:fixed;inset:0;z-index:85;background:rgba(0,0,0,.55);opacity:0;pointer-events:none;transition:opacity .2s}
.drawer-scrim.open{opacity:1;pointer-events:auto}
.drawer{position:fixed;top:0;bottom:0;left:0;z-index:90;width:min(320px,86vw);background:var(--bg1);border-right:1px solid var(--bd2);
  display:flex;flex-direction:column;transform:translateX(-100%);visibility:hidden;transition:transform .25s var(--ease),visibility .25s}
.drawer.open{transform:translateX(0);visibility:visible}
.drawer-h{height:60px;display:flex;align-items:center;justify-content:space-between;padding:0 16px 0 20px;border-bottom:1px solid var(--bd)}
.drawer-h>div{display:flex;gap:8px}
.drawer-links a{display:block;padding:16px 20px;font-size:17px;color:var(--t1);border-bottom:1px solid var(--bd)}
.drawer-links a:hover,.drawer-links a[aria-current]{color:var(--accent)}
.drawer-f{margin-top:auto;padding:20px}
.drawer-f .btn{width:100%}

/* ===== HEAD: a photograph, and the offer on a plate =====
   The plate overlaps the picture and bleeds to the left edge. The inner pages
   use .phead as written; the home page has its own .hero and resizes the plate. */
.phead{padding-top:60px;background:var(--bg1)}
.phead-photo{height:min(40vh,360px);background:var(--accent);overflow:hidden}
.phead-photo img{display:block;width:100%;height:100%;object-fit:cover;object-position:60% 72%}
.plate{position:relative;max-width:880px;margin-top:-104px;background:var(--bg1);padding:44px 56px 76px 0}
.plate::before{content:"";position:absolute;inset:0 auto 0 -100vw;width:calc(100vw + 2px);background:var(--bg1)}
.plate>*{position:relative}
.phead h1{font-family:var(--display);font-weight:400;font-size:clamp(38px,5.3vw,70px);line-height:1.02;letter-spacing:-.025em;margin-top:16px}
.phead .sub{margin-top:26px;font-size:19px;line-height:1.55;color:var(--t2);max-width:62ch}
.acts{display:flex;gap:14px;flex-wrap:wrap;margin-top:36px}
.acts .btn{padding:15px 26px;font-size:15px}
.fine{margin-top:26px;display:flex;gap:28px;flex-wrap:wrap}
@media(max-width:860px){
  .phead-photo{height:220px}
  .plate{margin-top:-44px;padding:28px 24px 52px 0}
  .phead .sub{font-size:17px}
}
/* the pause control on a moving head: the home photographs, the research film */
.hero-pause{position:absolute;top:18px;right:20px;width:36px;height:36px;display:grid;place-items:center;border:1.5px solid #fff;background:transparent;color:#fff;cursor:pointer;transition:background .15s,color .15s}
.hero-pause:hover{background:#fff;color:#080808}
.hero-pause:focus-visible{outline:2px solid #fff;outline-offset:3px}
.hero-pause svg{width:14px;height:14px}
.hero-pause .i-play,.hero-pause.is-paused .i-pause{display:none}
.hero-pause.is-paused .i-play{display:block}

/* ===== THE ARGUMENT: full-width blue band ===== */
.story{background:var(--accent);color:#fff;padding:88px 0 92px}
.story .label{color:rgba(255,255,255,.75)}
.story-cols{display:grid;grid-template-columns:minmax(0,6fr) minmax(0,5fr);gap:64px;align-items:start;margin-top:22px}
.story h2{font-family:var(--display);font-weight:400;font-size:clamp(38px,5.2vw,70px);line-height:1.02;letter-spacing:-.025em}
.story p{color:rgba(255,255,255,.92);font-size:17px;line-height:1.62;margin:0 0 14px}
@media(max-width:860px){.story{padding:60px 0}.story-cols{grid-template-columns:1fr;gap:28px}}

/* ===== section heads ===== */
.sec{padding:92px 0 96px}
.sec.white{background:var(--bg1)}
.sec-h h2{font-family:var(--display);font-weight:400;font-size:clamp(36px,4.6vw,60px);line-height:1.02;letter-spacing:-.02em;margin-top:14px}
.sec-h p{color:var(--t2);font-size:17px;line-height:1.6;max-width:62ch;margin-top:26px}
@media(max-width:860px){.sec{padding:60px 0 64px}}
/* a section head with a photograph beside it */
.sec-top{display:grid;gap:36px;align-items:end}
.shot{margin:0}
.shot img{display:block;width:100%;height:auto;aspect-ratio:16/10;object-fit:cover}
@media(min-width:900px){.sec-top{grid-template-columns:minmax(0,1fr) minmax(0,420px);gap:56px}}

/* ===== ruled grid: four across, each under a rule ===== */
.keep{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0 36px;margin-top:52px}
.keep>div{border-top:2px solid var(--t1);padding-top:20px}
.keep h3{font-size:19px;font-weight:600;line-height:1.3}
.keep p{color:var(--t2);font-size:15px;line-height:1.6;margin-top:10px}
.keep .label{display:block;margin-bottom:10px}
@media(max-width:980px){.keep{grid-template-columns:1fr 1fr;gap:36px}}
@media(max-width:560px){.keep{grid-template-columns:1fr}}

/* ===== a figure you step through: one caption on screen at a time =====
   The pipeline and the method cycle, both on the product page. With
   no script every caption is listed; the script adds .js to the figure and
   shows the caption for the step that is lit. */
.hl-cap h4{font-family:var(--display);font-weight:400;font-size:clamp(22px,2.4vw,28px);line-height:1.15;letter-spacing:-.02em}
.hl-cap>p{margin-top:8px;font-size:16px;line-height:1.55;color:var(--t2)}
.hl-cap+.hl-cap{margin-top:22px}
.hl.js .hl-cap{display:none;margin-top:0}
.hl.js .hl-cap.on{display:block;animation:hl-in .45s ease}
@keyframes hl-in{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}

/* ===== two columns: a headline and its argument on the left, the list on the right ===== */
.who{display:grid;grid-template-columns:minmax(0,6fr) minmax(0,5fr);gap:64px;align-items:start}
.who h2{font-family:var(--display);font-weight:400;font-size:clamp(34px,4.2vw,54px);line-height:1.04;letter-spacing:-.02em;margin-top:14px}
@media(max-width:860px){.who{grid-template-columns:1fr;gap:40px}}

/* ===== CLOSE: the last word, then one action ===== */
.close{background:var(--t1);color:var(--bg1);padding:100px 0 108px}
.close h2{font-family:var(--display);font-weight:400;font-size:clamp(44px,6.6vw,96px);line-height:.96;letter-spacing:-.03em}
.close p{font-size:18px;line-height:1.6;max-width:56ch;margin-top:30px;opacity:.82}
.close .btn{margin-top:36px;padding:15px 26px;font-size:15px;border-color:var(--bg1);color:var(--bg1)}
.close .btn:hover{background:var(--bg1);color:var(--t1)}
@media(max-width:860px){.close{padding:68px 0 72px}}
/* the closing band carries footage: light moving through an intersection */
.close{position:relative;overflow:hidden}
.close-vid{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:50% 35%}
.close::before{content:"";position:absolute;inset:0;z-index:1;
  background:linear-gradient(90deg,rgba(8,8,8,.94) 0%,rgba(8,8,8,.78) 42%,rgba(8,8,8,.3) 100%)}
.close .wrap{position:relative;z-index:2}
.close-pause{position:absolute;z-index:2;right:20px;bottom:18px;width:36px;height:36px;display:grid;place-items:center;
  border:1.5px solid #fff;background:transparent;color:#fff;cursor:pointer;transition:background .15s,color .15s}
.close-pause:hover{background:#fff;color:#080808}
.close-pause:focus-visible{outline:2px solid #fff;outline-offset:3px}
.close-pause svg{width:14px;height:14px}
.close-pause .i-play,.close-pause.is-paused .i-pause{display:none}
.close-pause.is-paused .i-play{display:block}
@media(max-width:860px){.close::before{background:rgba(8,8,8,.6)}}

footer{border-top:1px solid var(--bd);padding:32px 0 40px}
footer .wrap{display:flex;gap:24px;justify-content:space-between;flex-wrap:wrap;align-items:flex-start}
footer p{font-size:11px;color:var(--t3);max-width:78ch;line-height:1.6}
footer .links{display:flex;gap:18px;flex-wrap:wrap;font-size:13px;color:var(--t2)}
footer .links a:hover{color:var(--t1)}

@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}
