/* Layout: a hero with the film, then one long scroll that tells the story. Each scene pins (sticky) while scrolling drives
   its animation: copy on the left, an 800-wide drawing stage on the right, stacked on phones. Single light look: ink on paper. */
:root {
  --paper: #FAFAF7; --ink: #141414; --card: #FFFFFF; --grey: #6F6F6A; --rule: #E3E2DD; --agent: #58BAEB;
  --display: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --body: "Inter", "Helvetica Neue", Arial, sans-serif;
  --nav: 74px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 18px; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--agent); outline-offset: 3px; border-radius: 6px; }

/* brand */
.wordmark { display: inline-flex; align-items: flex-end; gap: .14em; font-family: var(--display); font-weight: 700; letter-spacing: -0.035em; line-height: .86; color: var(--ink); text-decoration: none; }
.wordmark i { display: block; width: .4em; height: .113em; margin-bottom: .113em; border-radius: .03em; background: var(--agent); }
.bar { display: inline-block; width: 40px; height: 12px; border-radius: 4px; background: var(--agent); vertical-align: middle; flex: none; }

/* nav */
nav.nav { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; height: var(--nav); display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-inline: clamp(16px, 4vw, 48px); background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(6px); border-bottom: 2px solid var(--ink); }
.logo { display: block; line-height: 0; flex: none; }
.logo img { display: block; height: 30px; width: auto; }
.close .logo img { height: clamp(44px, 7.5vw, 108px); max-width: 100%; margin: 0 auto; }
nav.nav .links { display: flex; align-items: center; gap: clamp(12px, 3vw, 32px); font-weight: 600; font-size: 16px; }
nav.nav .links > a:not(.btn) { text-decoration: none; }
nav.nav .links > a:not(.btn):hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
@media (max-width: 960px) { nav.nav .links > .wide { display: none; } }
@media (max-width: 560px) { nav.nav { gap: 10px; } nav.nav .links { gap: 14px; font-size: 15px; } nav.nav .links .ai { display: none; } nav.nav .btn { padding: 0 14px; } .logo img { height: 25px; } nav.nav .links > .mid { display: none; } }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 54px; padding: 0 26px; border-radius: 14px; border: 3px solid var(--ink); background: var(--ink); color: var(--paper); font: 800 17px var(--body); text-decoration: none; white-space: nowrap; box-shadow: 5px 5px 0 var(--agent); transition: transform .15s, box-shadow .15s; }
.btn:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--agent); }
.btn.ghost { background: var(--card); color: var(--ink); box-shadow: 5px 5px 0 var(--ink); }
nav.nav .btn { height: 44px; padding: 0 18px; font-size: 15px; }

/* hero */
.hero { display: flex; flex-direction: column; align-items: center; text-align: center; padding-inline: clamp(16px, 5vw, 72px); padding-block: clamp(56px, 8vw, 110px) clamp(64px, 8vw, 120px); }
.hero h1 { font-size: clamp(40px, 5.2vw, 82px); max-width: 24ch; }
.hero .lead { font-size: clamp(18px, 1.45vw, 22px); color: var(--grey); margin: 24px auto 0; max-width: 880px; }
.team { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(16px, 4vw, 64px); margin-top: clamp(44px, 5vw, 72px); }
.member { text-align: center; animation: pop .5s both cubic-bezier(.2,1.4,.4,1); }
@media (prefers-reduced-motion: reduce) { .member { animation: none; } }
.hero .film { width: min(1040px, 100%); margin-top: clamp(40px, 5vw, 64px); text-align: left; }
.film { position: relative; min-width: 0; border: 3px solid var(--ink); border-radius: 22px; box-shadow: 12px 12px 0 var(--ink); background: var(--card); overflow: hidden; }
.film video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: var(--paper); }
.film .play { position: absolute; inset: 0; display: grid; place-items: center; background: transparent; border: 0; cursor: pointer; }
.film .play span { display: inline-flex; align-items: center; gap: 14px; height: 64px; padding: 0 28px 0 22px; border-radius: 18px; background: var(--ink); color: var(--paper); font: 800 18px var(--body); box-shadow: 6px 6px 0 var(--agent); }
.film .play svg { width: 26px; height: 26px; }
.film .play[hidden] { display: none; }
.hero .lead b { color: var(--ink); font-weight: 600; }
.hero .ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-top: 34px; }

/* scroll scenes */
.scene { position: relative; border-top: 2px solid var(--ink); }
.pin { position: sticky; top: var(--nav); height: calc(100svh - var(--nav)); display: grid; grid-template-columns: minmax(300px, 560px) minmax(0, 1fr); align-items: center; gap: clamp(24px, 4vw, 64px); padding-inline: clamp(16px, 5vw, 72px); padding-bottom: 7vh; }
.copy { position: relative; display: grid; min-width: 0; }
.copy .step { grid-area: 1 / 1; transition: opacity .35s, transform .35s; }
.copy .step:not(:first-child) { opacity: 0; transform: translateY(16px); pointer-events: none; }
.copy .step.on { opacity: 1; transform: none; pointer-events: auto; }
.copy .step.off { opacity: 0; transform: translateY(-16px); }
.kicker { font: 800 13px var(--body); letter-spacing: .2em; text-transform: uppercase; color: var(--grey); display: flex; align-items: center; gap: 12px; margin: 0 0 18px; }
h1, h2 { font-family: var(--display); font-weight: 700; letter-spacing: -0.03em; line-height: 1.02; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(32px, 4vw, 58px); }
.copy p { font-size: clamp(17px, 1.35vw, 20px); color: var(--grey); margin: 20px 0 0; max-width: 46ch; }
.copy p b { color: var(--ink); font-weight: 600; }
.hl { box-shadow: inset 0 -.32em 0 var(--agent); }
.stagebox { position: relative; min-width: 0; height: 100%; display: flex; align-items: center; justify-content: center; }
.stage { position: relative; width: 800px; flex: none; transform-origin: 50% 50%; }
@media (max-width: 860px) {
  .pin { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); align-items: start; padding-top: 18px; padding-bottom: 12px; gap: 6px; }
  .copy p { margin-top: 10px; font-size: 15.5px; }
  .kicker { margin-bottom: 10px; font-size: 11px; }
}

/* drawing kit inside stages: every box sizes to its own text */
.s-abs { position: absolute; }
.card { position: absolute; background: var(--card); border: 3px solid var(--ink); border-radius: 18px; box-shadow: 8px 8px 0 var(--ink); padding: 18px 22px 22px; }
.card.flow { position: relative; }
.chead { display: flex; align-items: center; gap: 12px; font: 800 14px var(--body); letter-spacing: .16em; text-transform: uppercase; }
.chead .bar { width: 34px; height: 11px; }
.chead .r { margin-left: auto; color: var(--grey); }
.b { padding: 13px 18px; border-radius: 20px; font-size: 22px; line-height: 1.32; font-weight: 500; max-width: 100%; }
.b.me { background: var(--ink); color: var(--paper); border-bottom-right-radius: 5px; }
.b.ag { background: var(--card); border: 3px solid var(--ink); border-bottom-left-radius: 5px; box-shadow: 6px 6px 0 var(--ink); }
.b .who { display: flex; align-items: center; gap: 10px; font: 800 13px var(--body); letter-spacing: .16em; text-transform: uppercase; margin-bottom: 8px; }
.b .who .bar { width: 30px; height: 10px; }
.lbl { font: 800 14px var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--grey); }
.row { display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 2.5px solid var(--ink); border-radius: 11px; padding: 9px 14px; font: 600 19px var(--body); background: var(--card); }
.row .l { display: flex; align-items: center; gap: 10px; min-width: 0; }
.tile { position: absolute; display: flex; flex-direction: column; align-items: center; }
.tile .ico { width: 76px; height: 76px; border-radius: 20px; border: 3px solid var(--ink); background: var(--card); box-shadow: 5px 5px 0 var(--ink); display: grid; place-items: center; color: var(--ink); transition: background .2s, color .2s; }
.tile.lit .ico { background: var(--ink); color: var(--paper); }
.tile .ico svg { width: 42px; height: 42px; }
.tile span { margin-top: 12px; font: 600 18px var(--body); white-space: nowrap; }
.face { position: absolute; }
.sbtn { display: inline-flex; align-items: center; justify-content: center; height: 50px; padding: 0 20px; border-radius: 13px; border: 3px solid var(--ink); font: 800 18px var(--body); background: var(--card); white-space: nowrap; }
.sbtn.k { background: var(--ink); color: var(--paper); }
.big { font-family: var(--display); font-weight: 700; letter-spacing: -0.035em; line-height: 1.04; }
.mono { position: absolute; width: 58px; height: 58px; border-radius: 50%; border: 3px solid var(--ink); background: var(--card); display: grid; place-items: center; font: 800 18px var(--body); }
.col { position: absolute; display: flex; flex-direction: column; gap: 16px; }
.ico-in { display: inline-grid; width: 26px; height: 26px; flex: none; }
.ico-in svg { width: 26px; height: 26px; }

/* plain sections */
.band { padding-block: clamp(80px, 12vw, 150px); padding-inline: clamp(16px, 5vw, 72px); border-top: 2px solid var(--ink); }
.band .head { max-width: 980px; }
.band .head p { color: var(--grey); font-size: clamp(17px, 1.4vw, 20px); max-width: 56ch; margin: 18px 0 0; }
.metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); margin-top: clamp(40px, 6vw, 80px); }
.metric svg { width: 52px; height: 52px; display: block; }
.metric .n { font-family: var(--display); font-weight: 700; font-size: clamp(88px, 11vw, 180px); letter-spacing: -0.045em; line-height: .9; margin-top: 18px; font-variant-numeric: tabular-nums; }
.metric .n small { font-size: .45em; margin-left: .05em; }
.metric .u { width: 140px; height: 16px; border-radius: 5px; background: var(--agent); margin: 22px 0 20px; }
.metric h3 { font: 800 clamp(21px, 1.8vw, 26px)/1.15 var(--body); margin: 0; }
.metric p { color: var(--grey); margin: 10px 0 0; font-size: 17px; }
.trust { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 36px); margin-top: clamp(36px, 5vw, 64px); }
.trust article { background: var(--card); border: 3px solid var(--ink); border-radius: 20px; box-shadow: 8px 8px 0 var(--ink); padding: 30px 28px 32px; min-width: 0; }
.trust svg { width: 44px; height: 44px; display: block; }
.trust h3 { font: 800 22px/1.2 var(--body); margin: 22px 0 0; }
.trust p { color: var(--grey); margin: 10px 0 0; font-size: 17px; }
@media (max-width: 860px) { .metrics, .trust { grid-template-columns: minmax(0, 1fr); } }
.close { text-align: center; padding-block: clamp(100px, 14vw, 200px); padding-inline: 16px; border-top: 2px solid var(--ink); }
.close .tag { font-family: var(--display); font-weight: 500; font-size: clamp(28px, 3.6vw, 52px); letter-spacing: -0.01em; margin: clamp(14px, 2vw, 24px) 0 0; }
.close .ctas { display: flex; justify-content: center; flex-wrap: wrap; gap: 18px; margin-top: 44px; }
footer .flinks { display: flex; flex-wrap: wrap; gap: 20px; } footer a { text-decoration: none; } footer a:hover { color: var(--ink); }
footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 26px clamp(16px, 5vw, 72px); border-top: 2px solid var(--ink); font-size: 14px; color: var(--grey); }

/* reveal for plain sections (scroll-in) */
.js .rv { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1); }
.js .rv.in { opacity: 1; transform: none; }
@keyframes pop { from { opacity: 0; transform: translateY(18px) scale(.94); } to { opacity: 1; transform: none; } }
.pop { animation: pop .45s both cubic-bezier(.2,1.4,.4,1); }
@media (prefers-reduced-motion: reduce) { .js .rv { opacity: 1; transform: none; transition: none; } .pop { animation: none; } html { scroll-behavior: auto; } .copy .step { transition: none; } }

/* Industries menu (markup generated by scripts/build-pages.py) */
.ind { position: relative; }
.ind > button { display: inline-flex; align-items: center; gap: 7px; padding: 0; border: 0; background: none; color: inherit; font: inherit; font-weight: 600; cursor: pointer; white-space: nowrap; }
.ind > button svg { width: 12px; height: 12px; transition: transform .2s; }
.ind.open > button svg { transform: rotate(180deg); }
.ind-panel { position: absolute; top: calc(100% + 24px); left: 50%; transform: translateX(-50%); width: min(760px, 94vw); display: none; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 26px; padding: 24px; background: #fff; border: 3px solid #141414; border-radius: 20px; box-shadow: 8px 8px 0 #141414; z-index: 60; font-size: 15.5px; line-height: 1.3; text-align: left; }
.ind-panel::before { content: ""; position: absolute; left: 0; right: 0; top: -28px; height: 28px; }
.ind.open .ind-panel { display: grid; }
@media (hover: hover) and (min-width: 561px) { .ind:hover .ind-panel { display: grid; } }
.ind-panel .ip-k { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font: 800 12px Inter, sans-serif; letter-spacing: .18em; text-transform: uppercase; color: #6F6F6A; }
.ind-panel .ip-k .bar { width: 24px; height: 8px; }
.ind-panel a { text-decoration: none; }
.ind-panel .ip-main { display: flex; align-items: center; gap: 10px; padding: 10px 12px; margin: 0 -12px 6px; border-radius: 10px; font: 800 18px "Space Grotesk", sans-serif; letter-spacing: -0.01em; }
.ind-panel .ip-main:hover, .ind-panel .ip-sub a:hover { background: #FAFAF7; }
.ind-panel .ip-sub { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; }
.ind-panel .ip-sub a { display: block; padding: 7px 12px; margin: 0 -12px; border-radius: 9px; font-weight: 600; }
.ind-panel .ip-soon { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; color: #6F6F6A; font-weight: 600; }
.ind-panel .ip-soon span { margin-left: 8px; padding: 1px 7px; border: 2px solid #E3E2DD; border-radius: 6px; font: 800 10px Inter, sans-serif; letter-spacing: .12em; text-transform: uppercase; vertical-align: 1px; }
