/* ==========================================================================
   Cognis Technologies. Flat colour blocks, giant type, rounded dark "screens".
   Layout idea: full-bleed colour sections that change as you scroll, one tight grotesque
   for titles, a serif for descriptions, hanging corner tabs, and the 3D living inside
   rounded dark screens. Cognis = cognition: the screens hold neural networks.

   Palette: taken from neural histology, not from AI stereotypes.
     ivory paper (Cajal's drawing sheets), warm black ink (India ink),
     Golgi amber (the stain), cortex coral (tissue and blood), methylene blue (the dye), sage.
   ========================================================================== */

:root {
  --paper: #F6F0E4;
  --paper-2: #ECE3D1;
  --ink: #1B1612;
  --ink-2: rgba(27, 22, 18, .78);
  --ink-3: rgba(27, 22, 18, .58);
  --night: #1B1612;
  --night-2: #2A231D;
  --on-night: #F6F0E4;
  --on-night-2: rgba(246, 240, 228, .74);
  --on-night-3: rgba(246, 240, 228, .52);

  --amber: #F0B23A;
  --amber-soft: #FADFA3;
  --coral: #EC6B4D;
  --coral-soft: #F8CFC0;
  --coral-deep: #C93F25;
  --stain: #2B4A93;
  --stain-field: #A9C1EC;
  --stain-soft: #DCE6F7;
  --sage: #BDD3A6;
  --sage-soft: #E2EBD5;

  --gutter: clamp(20px, 3.4vw, 56px);
  --maxw: 1560px;
  --bar-h: 56px;

  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Newsreader", Georgia, "Times New Roman", serif;
  --font-text: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;

  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-move: cubic-bezier(.65, 0, .35, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font-text); font-size: clamp(1rem, .25vw + .95rem, 1.125rem); line-height: 1.55; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
main { overflow-x: clip; position: relative; z-index: 2; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, textarea { font: inherit; color: inherit; }
::selection { background: var(--coral-deep); color: #fff; }
:focus-visible { outline: 2px solid var(--coral-deep); outline-offset: 3px; }
.bg-night :focus-visible, .bg-stain :focus-visible, .footer :focus-visible, .menu :focus-visible, .sig :focus-visible { outline-color: var(--amber); }
.skip { position: absolute; left: var(--gutter); top: -80px; z-index: 300; background: var(--ink); color: var(--paper); padding: .7em 1.1em; border-radius: 10px; }
.skip:focus { top: 14px; }
.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

/* type -------------------------------------------------------------------- */
h1, h2, h3 { font-family: var(--font-display); font-weight: 800; letter-spacing: -.055em; line-height: .92; margin: 0; }
.h-hero { font-size: clamp(2.8rem, 5.8vw, 6.8rem); }
.h-giant { font-size: clamp(3.4rem, 11.5vw, 12rem); letter-spacing: -.065em; }
.h-section { font-size: clamp(2.6rem, 6vw, 6.4rem); }
.h-sub { font-size: clamp(1.5rem, 2.4vw, 2.3rem); letter-spacing: -.04em; line-height: 1; font-weight: 750; }
.serif { font-family: var(--font-serif); font-weight: 300; letter-spacing: -.01em; }
.lead { font-family: var(--font-serif); font-weight: 300; font-size: clamp(1.3rem, 1.15vw + 1rem, 1.9rem); line-height: 1.28; letter-spacing: -.012em; max-width: 30em; }
.small { font-size: .95rem; color: var(--ink-3); }
.mono { font-family: var(--font-mono); font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; }
.accent { color: var(--coral-deep); }

/* reveals */
.ln { display: block; }
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .12em; margin-bottom: -.12em; padding-right: .04em; margin-right: -.04em; }
.wi { display: inline-block; }
.js [data-split] .wi { transform: translateY(118%); transition: transform 1.05s var(--ease-out); transition-delay: calc(var(--i, 0) * 55ms + var(--delay, 0ms)); }
.js [data-split].in .wi { transform: none; }
.js [data-reveal] { opacity: 0; transform: translateY(30px); transition: opacity .9s var(--ease-out), transform 1.1s var(--ease-out); transition-delay: var(--delay, 0ms); }
.js [data-reveal].in { opacity: 1; transform: none; }

/* buttons ------------------------------------------------------------------ */
.btn { position: relative; display: inline-flex; align-items: center; gap: .7em; min-height: 54px; padding: .8em 1.5em; font: 600 1rem/1 var(--font-text); background: transparent; color: inherit; border-radius: 16px; border: 1.5px solid transparent; cursor: pointer; transition: background-color .3s var(--ease-out), color .3s var(--ease-out), border-color .3s, transform .35s var(--ease-out); will-change: transform; }
.btn svg { width: 18px; height: 18px; transition: transform .35s var(--ease-out); }
.btn:hover svg { transform: translateX(4px); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: var(--coral-deep); color: #fff; }
.btn-amber { background: var(--amber); color: var(--ink); }
.btn-amber:hover { background: var(--paper); }
.btn-line { border-color: currentColor; }
.btn-line:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.on-dark .btn-line:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn-night { background: var(--ink); color: var(--amber); }
.btn-night:hover { background: var(--coral-deep); color: #fff; }
.link { background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1.5px no-repeat; padding-bottom: 2px; transition: background-size .4s var(--ease-out); }
.link:hover { background-size: 0 1.5px; background-position: 100% 100%; }

/* loader ---------------------------------------------------------------------- */
#loader { position: fixed; inset: 0; z-index: 400; background: var(--paper); display: grid; place-items: center; transition: clip-path 1s var(--ease-move); clip-path: inset(0 0 0 0); }
#loader.done { clip-path: inset(0 0 100% 0); pointer-events: none; }
.loader-inner { display: grid; justify-items: center; gap: 22px; }
.loader-mark { width: 104px; height: 90px; color: var(--ink); overflow: visible; }
.loader-mark path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1s var(--ease-move) .15s forwards; }
.loader-mark circle { transform-box: fill-box; transform-origin: center; transform: scale(0); animation: pop .5s var(--ease-out) forwards; }
.loader-mark circle:nth-of-type(1) { animation-delay: .15s; }
.loader-mark circle:nth-of-type(2) { animation-delay: .4s; }
.loader-mark circle:nth-of-type(3) { animation-delay: .6s; }
.loader-mark circle:nth-of-type(4) { animation-delay: .8s; }
.loader-mark circle:nth-of-type(5) { animation-delay: .95s; }
.loader-mark circle:nth-of-type(6) { animation-delay: 1.2s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { to { transform: scale(1); } }

/* cursor ----------------------------------------------------------------------- */
.cursor { position: fixed; left: 0; top: 0; z-index: 350; width: 30px; height: 30px; margin: -15px 0 0 -15px; border: 1.5px solid #fff; border-radius: 50%; pointer-events: none; opacity: 0; mix-blend-mode: difference; transition: width .3s var(--ease-out), height .3s var(--ease-out), margin .3s var(--ease-out), background-color .3s, opacity .3s; }
.cursor.on { opacity: 1; }
.cursor.big { width: 64px; height: 64px; margin: -32px 0 0 -32px; background: #fff; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* header: three tabs hanging from the top edge. Their colour follows the section under them. */
.bar { --tab-bg: var(--ink); --tab-fg: var(--paper); position: fixed; inset: 0 0 auto 0; z-index: 200; height: var(--bar-h); display: grid; grid-template-columns: 1fr auto 1fr; align-items: start; pointer-events: none; }
.bar[data-tone="dark"] { --tab-bg: var(--amber); --tab-fg: var(--ink); }
.bar > * { pointer-events: auto; }
.tab, .logo { display: inline-flex; align-items: center; height: var(--bar-h); background: var(--tab-bg); color: var(--tab-fg); border: 0; cursor: pointer; transition: background-color .35s, color .35s; }
.tab { gap: 14px; padding: 0 26px; font: 600 .78rem/1 var(--font-text); letter-spacing: .06em; text-transform: uppercase; }
.tab:hover { background: var(--coral); color: var(--ink); }
.tab-left { justify-self: start; border-radius: 0 0 22px 0; }
.tab-right { justify-self: end; border-radius: 0 0 0 22px; }
.logo { gap: 10px; padding: 0 24px; border-radius: 0 0 22px 22px; font-family: var(--font-display); font-weight: 800; letter-spacing: -.05em; font-size: 1.4rem; }
.logo svg { width: 34px; height: 30px; overflow: visible; }
.logo:hover { background: var(--coral); color: var(--ink); }
.burger { display: grid; gap: 5px; width: 22px; }
.burger i { display: block; height: 1.5px; background: currentColor; transition: transform .45s var(--ease-out), width .3s; }
.burger i:last-child { width: 70%; }
.tab-left[aria-expanded="true"] .burger i:first-child { transform: translateY(3.25px) rotate(45deg); }
.tab-left[aria-expanded="true"] .burger i:last-child { width: 100%; transform: translateY(-3.25px) rotate(-45deg); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 800; letter-spacing: -.05em; font-size: 1.55rem; color: var(--on-night); }
.brand svg { width: 38px; height: 34px; overflow: visible; }

.menu { position: fixed; inset: 0; z-index: 150; background: var(--night); color: var(--on-night); display: grid; align-content: center; padding: calc(var(--bar-h) + 40px) var(--gutter) 60px; clip-path: inset(0 0 100% 0); visibility: hidden; transition: clip-path .85s var(--ease-move), visibility 0s .85s; }
.menu.open { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .85s var(--ease-move), visibility 0s; }
.menu nav { display: grid; gap: 4px; }
.menu nav a { font-family: var(--font-display); font-weight: 800; letter-spacing: -.06em; font-size: clamp(2.2rem, min(7vw, 10vh), 7rem); line-height: 1; padding: 2px 0; width: fit-content; transition: color .25s, transform .5s var(--ease-out); }
.menu nav a:hover { color: var(--amber); transform: translateX(14px); }
.menu .menu-foot { margin-top: 40px; color: var(--on-night-2); display: flex; flex-wrap: wrap; gap: 8px 28px; }

/* hero: shapes + giant wordmark behind a rounded dark screen ----------------------------- */
#hero-bg { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; }
#hero-bg .shapes { transform: translateY(calc(var(--hero-p, 0) * -140px)); }
.wm-base { fill: #E5DAC4; }
.wm-ink { fill: var(--ink); }
#hero-gl { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; clip-path: inset(17% 4% 9% 50% round 34px); }
.no-gl #hero-gl { display: none; }
.hero { position: relative; z-index: 2; height: 240svh; }
.hero-sticky { position: sticky; top: 0; height: 100svh; display: flex; align-items: flex-start; overflow: hidden; }
.hero-sticky > .wrap { width: 100%; }
.hero-copy { position: relative; padding-top: calc(var(--bar-h) + clamp(24px, 7vh, 90px)); max-width: min(44vw, 46rem); opacity: clamp(0, calc(1 - var(--hero-p, 0) * 5), 1); transform: translateY(calc(var(--hero-p, 0) * -90px)); will-change: transform, opacity; }
.hero-copy h1 { margin-bottom: clamp(20px, 2.6vw, 38px); }
.hero-copy .lead { margin-bottom: clamp(24px, 3vw, 40px); max-width: 24em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hud { position: absolute; left: 0; right: 0; bottom: clamp(30px, 7vh, 70px); pointer-events: none; }
.hud-line { position: absolute; left: 50%; bottom: 0; transform: translate(-50%, 14px); display: flex; align-items: center; gap: 14px; font-family: var(--font-mono); font-size: clamp(.78rem, 1vw, .92rem); letter-spacing: .08em; color: var(--amber); opacity: 0; text-transform: uppercase; white-space: nowrap; transition: opacity .6s var(--ease-out), transform .8s var(--ease-out); }
.hud-line.on { opacity: 1; transform: translate(-50%, 0); }
.hud-line i { display: block; width: 40px; height: 1.5px; background: var(--amber); }
.hud-line b { color: var(--paper); font-weight: 500; }
.scroll-cue { position: absolute; left: var(--gutter); bottom: clamp(26px, 5vh, 52px); display: flex; align-items: center; gap: 14px; font-family: var(--font-mono); font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; color: #fff; mix-blend-mode: difference; opacity: clamp(0, calc(1 - var(--hero-p, 0) * 12), 1); }
.scroll-cue i { display: block; width: 1.5px; height: 44px; background: rgba(255, 255, 255, .3); position: relative; overflow: hidden; }
.scroll-cue i::after { content: ""; position: absolute; left: 0; top: -100%; width: 100%; height: 100%; background: #fff; animation: cue 2s var(--ease-move) infinite; }
@keyframes cue { to { top: 100%; } }

/* colour blocks ------------------------------------------------------------------------ */
.sec { position: relative; }
.pad { padding-block: clamp(90px, 12vw, 180px); }
.bg-amber { background: var(--amber); }
.bg-coral { background: var(--coral); }
.bg-stain { background: var(--stain); color: var(--paper); }
.bg-sky { background: var(--stain-field); }
.bg-sage { background: var(--sage); }
.bg-paper { background: var(--paper); }
.bg-night { background: var(--night); color: var(--on-night); }
.bg-night .lead { color: var(--on-night); }
.bg-night .small, .bg-night .mono { color: var(--on-night-3); }
.bg-coral .small, .bg-coral .lead, .bg-coral { color: var(--ink); }

/* statement */
.statement { min-height: 100svh; display: grid; place-items: center; text-align: center; padding-block: clamp(100px, 14vw, 200px); }
.statement p { font-family: var(--font-display); font-weight: 750; letter-spacing: -.055em; font-size: clamp(2.2rem, 5.6vw, 6rem); line-height: .98; max-width: 17em; margin-inline: auto; }
.js .sw { opacity: .18; }

/* capabilities (pinned): list on the left, a tilting 3D card with a live network on the right */
.caps-pin { height: 100svh; display: flex; align-items: center; padding-top: var(--bar-h); overflow: hidden; }
.caps-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 80px); align-items: center; width: 100%; }
.caps-left h2 { margin-bottom: clamp(18px, 2.4vw, 36px); }
.caps-list { counter-reset: cap; }
.caps-list li { counter-increment: cap; font-family: var(--font-display); font-weight: 750; font-size: clamp(1.6rem, 3.2vw, 3.4rem); letter-spacing: -.055em; line-height: 1.02; color: rgba(246, 240, 228, .58); padding: 4px 0; display: flex; align-items: baseline; gap: 14px; transition: color .5s var(--ease-out), transform .6s var(--ease-out); cursor: pointer; }
.caps-list li::before { content: counter(cap, decimal-leading-zero); font-family: var(--font-mono); font-size: .75rem; letter-spacing: .06em; font-weight: 500; opacity: .8; transform: translateY(-.9em); }
.caps-list li:hover { color: var(--paper); }
.caps-list li.active { color: var(--amber); transform: translateX(8px); }
.caps-desc { position: relative; margin-top: clamp(18px, 2.4vw, 32px); min-height: 8em; max-width: 27em; }
.caps-desc p { position: absolute; inset: 0 auto auto 0; font-family: var(--font-serif); font-weight: 300; font-size: clamp(1.1rem, .8vw + .9rem, 1.45rem); line-height: 1.3; opacity: 0; transform: translateY(14px); transition: opacity .5s var(--ease-out), transform .7s var(--ease-out); pointer-events: none; }
.caps-desc p.on { opacity: 1; transform: none; }
.caps-more { margin-top: 14px; color: var(--on-night-2); font-size: .98rem; }
.screen { background: var(--night); border-radius: clamp(22px, 2.4vw, 36px); }
.caps-visual { position: relative; aspect-ratio: 1; width: min(100%, 74svh); justify-self: center; perspective: 1000px; }
.caps-visual::before { content: ""; position: absolute; inset: 4% -2.5% -3.5% 2.5%; border-radius: clamp(22px, 2.4vw, 36px); background: rgba(14, 10, 8, .34); }
.tilt { position: absolute; inset: 0; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateZ(0); will-change: transform; box-shadow: 0 46px 60px -34px rgba(8, 5, 3, .65), inset 0 0 0 1px rgba(246, 240, 228, .09); }
.tilt canvas { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: inherit; }
.tilt .glare { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(480px circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 238, 205, .13), transparent 58%); opacity: var(--go, 0); }
.tilt .hint { position: absolute; left: 0; right: 0; bottom: 14px; text-align: center; font-family: var(--font-mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--on-night-3); pointer-events: none; transition: opacity .5s; }
.tilt.touched .hint { opacity: 0; }

/* industries: horizontal scroll of flat colour cards */
.ind-pin { height: 100svh; display: flex; flex-direction: column; justify-content: center; padding-top: var(--bar-h); gap: clamp(24px, 4vh, 48px); }
.ind-head { display: flex; justify-content: space-between; align-items: end; gap: 40px; }
.ind-head .lead { font-size: clamp(1.1rem, .7vw + .9rem, 1.5rem); max-width: 20em; }
.ind-track { display: flex; gap: clamp(14px, 1.4vw, 24px); padding-inline: var(--gutter); width: max-content; will-change: transform; }
.ind-card { position: relative; flex: none; width: clamp(280px, 28vw, 440px); height: clamp(320px, 50vh, 500px); border-radius: clamp(22px, 2.2vw, 34px); padding: clamp(22px, 2vw, 32px); display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; color: var(--ink); transition: transform .6s var(--ease-out); }
.ind-card:hover { transform: translateY(-8px); }
.ind-card h3 { font-size: clamp(2.2rem, 3.6vw, 3.8rem); letter-spacing: -.06em; }
.ind-card p { font-family: var(--font-serif); font-weight: 300; font-size: clamp(1.05rem, .5vw + .95rem, 1.3rem); line-height: 1.28; max-width: 17em; margin-top: 12px; }
.c-sage { background: var(--sage); } .c-coral-soft { background: var(--coral-soft); } .c-sky { background: var(--stain-field); }
.c-amber { background: var(--amber); } .c-coral { background: var(--coral); } .c-paper2 { background: var(--paper-2); } .c-night { background: var(--night); color: var(--on-night); }
.ind-art { position: absolute; right: -4%; top: 6%; width: 74%; pointer-events: none; }
.ind-art line { stroke: var(--ink); stroke-width: 1; opacity: .3; }
.ind-art line.p { stroke-dasharray: 6 60; opacity: 1; stroke: var(--coral-deep); stroke-width: 1.6; animation: dash 3.2s linear infinite; }
.ind-art circle { fill: var(--ink); }
.c-coral .ind-art line.p, .c-amber .ind-art line.p { stroke: var(--paper); }
.c-night .ind-art line { stroke: var(--on-night); } .c-night .ind-art circle { fill: var(--amber); } .c-night .ind-art line.p { stroke: var(--amber); }
@keyframes dash { to { stroke-dashoffset: -132; } }

/* process (dark) */
.proc-head { margin-bottom: clamp(50px, 7vw, 110px); max-width: 12em; }
.proc { position: relative; display: grid; gap: clamp(56px, 8vw, 120px); }
.proc-rail { position: absolute; left: 50%; top: 0; bottom: 0; width: 1.5px; background: rgba(246, 240, 228, .18); transform: translateX(-.75px); }
.proc-fill { position: absolute; left: 0; top: 0; width: 100%; height: 100%; background: var(--amber); transform-origin: top; transform: scaleY(0); }
.proc-dot { position: absolute; left: 50%; top: 0; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%; background: var(--amber); }
.proc-step { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 8vw, 140px); align-items: center; }
.proc-step .txt { max-width: 24em; }
.proc-step:nth-child(odd) .txt { grid-column: 1; justify-self: end; text-align: right; }
.proc-step:nth-child(even) .txt { grid-column: 2; justify-self: start; }
.proc-step::after { content: ""; position: absolute; left: 50%; top: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; background: var(--night); border: 1.5px solid rgba(246, 240, 228, .4); transition: background-color .5s, border-color .5s; }
.proc-step.lit::after { background: var(--amber); border-color: var(--amber); }
.proc-step h3 { margin-bottom: 10px; font-size: clamp(2.2rem, 4vw, 4rem); letter-spacing: -.06em; transition: color .5s; color: var(--on-night-3); }
.proc-step.lit h3 { color: var(--amber); }
.proc-step p { font-family: var(--font-serif); font-weight: 300; font-size: clamp(1.1rem, .7vw + .95rem, 1.4rem); line-height: 1.3; color: var(--on-night-2); }
.proc-step .mono { display: block; margin-bottom: 10px; }

/* research: a brain made of nodes, in a dark screen */
.research-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 90px); align-items: center; }
.research h2 { margin-bottom: 24px; }
.research .lead { color: var(--ink); }
.research .lead + .lead { margin-top: 16px; }
.chip { display: inline-flex; align-items: center; gap: 10px; padding: .5em 1em; border: 1.5px solid var(--ink); border-radius: 999px; font-family: var(--font-mono); font-size: .76rem; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 24px; }
.chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--ink); animation: blink 1.6s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .2; } }
.brain-wrap { position: relative; aspect-ratio: 1; width: 100%; max-width: 780px; justify-self: end; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(246, 240, 228, .09); }
#brain-gl { position: absolute; inset: 0; width: 100%; height: 100%; }
.brain-cap { position: absolute; left: 0; bottom: 16px; right: 0; text-align: center; color: var(--on-night-3); font-size: .68rem; letter-spacing: .1em; pointer-events: none; }

/* products */
.prod-card { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(26px, 5vw, 90px); align-items: center; padding: clamp(28px, 4.5vw, 72px); color: var(--on-night); }
.prod-id { display: flex; align-items: center; gap: 16px; margin-bottom: 26px; }
.prod-id img { width: 60px; height: 60px; border-radius: 14px; }
.prod-id span { font-family: var(--font-display); font-weight: 800; letter-spacing: -.04em; font-size: 1.5rem; }
.prod-card h3 { font-size: clamp(2.4rem, 4.6vw, 4.8rem); margin-bottom: 20px; }
.prod-card .lead { color: var(--on-night-2); }
.prod-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.pf { position: relative; padding: 18px 0 18px 38px; border-top: 1px solid rgba(246, 240, 228, .16); }
.pf:first-child { border-top: 0; }
.pf::before { content: ""; position: absolute; left: 0; top: 27px; width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid rgba(246, 240, 228, .4); background: var(--night); }
.pf.core::before { background: var(--amber); border-color: var(--amber); }
.pf b { display: block; font-family: var(--font-display); font-weight: 750; letter-spacing: -.04em; font-size: 1.5rem; }
.pf span { display: block; color: var(--on-night-2); font-family: var(--font-serif); font-weight: 300; font-size: 1.15rem; line-height: 1.3; margin-top: 4px; }

/* company */
.co-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(30px, 6vw, 110px); align-items: center; }
.co-grid h2 { margin-bottom: 22px; }
.principles { display: grid; gap: clamp(28px, 4vw, 50px); }
.principle { padding-top: 22px; border-top: 1.5px solid var(--ink); }
.principle p { font-family: var(--font-serif); font-weight: 300; font-size: clamp(1.15rem, .7vw + 1rem, 1.5rem); line-height: 1.28; max-width: 22em; margin-top: 8px; }

/* contact: a form that is a neural network. Tap what you need, type, and the network fires. */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(28px, 6vw, 100px); align-items: end; }
.contact h2 { font-size: clamp(3rem, 8vw, 8.6rem); letter-spacing: -.07em; line-height: .88; margin-bottom: clamp(18px, 2vw, 30px); }
.contact .lead { max-width: 20em; }
.sig { position: relative; padding: clamp(18px, 2vw, 28px); color: var(--on-night); display: grid; gap: 20px; box-shadow: 0 50px 60px -40px rgba(8, 5, 3, .55), inset 0 0 0 1px rgba(246, 240, 228, .09); }
.sig-kicker { display: flex; justify-content: space-between; gap: 12px; color: var(--on-night-3); font-family: var(--font-mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; }
.sig-stage { position: relative; height: clamp(300px, 33vw, 350px); }
.sig-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.sig-core { position: absolute; left: 50%; top: 50%; width: 88px; height: 88px; margin: -44px 0 0 -44px; display: grid; place-items: center; border-radius: 50%; background: var(--night); }
.sig-core .ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.sig-core .ring circle { fill: none; stroke-width: 2; }
.sig-core .ring .bg { stroke: rgba(246, 240, 228, .2); }
.sig-core .ring .fg { stroke: var(--amber); stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--prog, 0)); transition: stroke-dashoffset .6s var(--ease-out); }
.sig-core .mk { position: relative; width: 40px; height: 35px; color: var(--paper); overflow: visible; transition: transform .35s var(--ease-out); }
.sig-core.ready { box-shadow: 0 0 0 6px rgba(240, 178, 58, .14); }
.sig-core.zap .mk { transform: scale(1.18); }
.sig-chips { position: absolute; inset: 0; }
.chip-node { position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%); display: block; }
.chip-node input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.chip-node span { display: inline-flex; align-items: center; gap: 8px; padding: .62em 1em; border: 1px solid rgba(246, 240, 228, .3); border-radius: 999px; background: var(--night); font: 500 .84rem/1 var(--font-text); white-space: nowrap; transition: background-color .3s, color .3s, border-color .3s, transform .4s var(--ease-out); }
.chip-node span::before { content: ""; width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid currentColor; transition: background-color .3s; }
.chip-node:hover span { border-color: var(--amber); transform: scale(1.06); }
.chip-node input:checked + span { background: var(--amber); color: var(--ink); border-color: var(--amber); }
.chip-node input:checked + span::before { background: var(--ink); border-color: var(--ink); }
.chip-node input:focus-visible + span { outline: 2px solid var(--amber); outline-offset: 3px; }
.sig-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; }
.sig-field label { display: block; font: 500 .7rem/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--on-night-3); margin-bottom: 4px; transition: color .3s; }
.sig-field:focus-within label { color: var(--amber); }
.sig-field.full { grid-column: 1 / -1; }
.sig-field input, .sig-field textarea { width: 100%; background: transparent; border: 0; border-bottom: 1px solid rgba(246, 240, 228, .3); border-radius: 0; padding: 8px 0 10px; font-size: 1.1rem; color: var(--on-night); outline: none; resize: none; transition: border-color .3s; }
.sig-field input:focus, .sig-field textarea:focus { border-bottom-color: var(--amber); }
.sig-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; }
.sig-note { color: var(--on-night-2); font-size: .95rem; line-height: 1.4; flex: 1 1 200px; }
.sig-note a { color: var(--on-night); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.sig-done { position: absolute; inset: 0; z-index: 4; border-radius: inherit; background: var(--night); display: grid; align-content: center; justify-items: start; gap: 14px; padding: clamp(24px, 3vw, 44px); opacity: 0; visibility: hidden; transition: opacity .6s var(--ease-out), visibility 0s .6s; }
.sig-done.show { opacity: 1; visibility: visible; transition: opacity .6s var(--ease-out), visibility 0s; }
.sig-done h3 { font-size: clamp(2.2rem, 4vw, 3.6rem); color: var(--amber); }
.sig-done p { font-family: var(--font-serif); font-weight: 300; font-size: 1.3rem; line-height: 1.3; color: var(--on-night-2); max-width: 22em; }
.sig-done .row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.sig-done.sent [data-fallback] { display: none; }

/* footer */
.footer { background: var(--night); color: var(--on-night); padding-block: clamp(46px, 6vw, 84px) 32px; position: relative; z-index: 2; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 34px; }
.foot-grid p { margin-top: 16px; color: var(--on-night-2); max-width: 26em; }
.foot-grid h3 { font-family: var(--font-text); font-size: .9rem; letter-spacing: 0; font-weight: 600; color: var(--on-night-3); margin-bottom: 14px; line-height: 1.2; }
.foot-grid li + li { margin-top: 8px; }
.foot-grid li a { color: var(--on-night-2); transition: color .2s; }
.foot-grid li a:hover { color: var(--amber); }
.foot-base { margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(246, 240, 228, .16); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; color: var(--on-night-3); font-size: .93rem; }

/* inner pages */
.page-hero { padding-top: calc(var(--bar-h) + clamp(60px, 9vw, 140px)); padding-bottom: clamp(50px, 7vw, 100px); }
.page-hero h1 { margin-bottom: 26px; max-width: 12em; }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(28px, 6vw, 110px); align-items: start; }
.rows { border-top: 1.5px solid var(--ink); margin-top: 28px; }
.rows > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 20px; padding: 16px 0; border-bottom: 1px solid rgba(27, 22, 18, .22); }
.rows dt { font-family: var(--font-display); font-weight: 750; letter-spacing: -.03em; }
.rows dd { margin: 0; font-family: var(--font-serif); font-weight: 300; font-size: 1.2rem; line-height: 1.3; }
.faq { border-top: 1.5px solid var(--ink); }
.faq details { border-bottom: 1px solid rgba(27, 22, 18, .22); padding: 20px 0; }
.faq summary { cursor: pointer; font-family: var(--font-display); font-weight: 750; font-size: 1.5rem; letter-spacing: -.04em; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; transition: transform .35s var(--ease-out); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin-top: 12px; font-family: var(--font-serif); font-weight: 300; font-size: 1.25rem; line-height: 1.3; max-width: 32em; }
.prose { max-width: 40em; }
.prose h2 { font-size: clamp(1.7rem, 2.6vw, 2.4rem); letter-spacing: -.04em; margin: 1.8em 0 .4em; }
.prose p { font-family: var(--font-serif); font-weight: 300; font-size: 1.3rem; line-height: 1.35; }
.prose p + p { margin-top: 1em; }

/* failsafes ------------------------------------------------------------------------------ */
.no-app [data-split] .wi, .no-app [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
.no-app .sw { opacity: 1 !important; }
.no-app #loader { display: none; }
.no-gsap .caps-pin, .no-gsap .ind-pin { height: auto; padding-block: 90px; }
.no-gsap .ind-track { flex-wrap: wrap; width: auto; }
.no-gsap .ind-card { width: min(100%, 420px); }
.no-gsap .proc-step::after { background: var(--amber); border-color: var(--amber); }
.no-gsap .proc-step h3 { color: var(--amber); }
.no-gsap .sw { opacity: 1 !important; }

@media (prefers-reduced-motion: reduce) {
  .js [data-split] .wi, .js [data-reveal] { transform: none !important; transition: opacity .2s linear !important; }
  .js .sw { opacity: 1; }
  .scroll-cue i::after, .chip i, .ind-art line.p { animation: none; }
  #loader { display: none; }
  .hero { height: auto; }
  .hero-sticky { position: relative; height: auto; min-height: 100svh; }
  .tilt { transform: none; }
}

/* responsive --------------------------------------------------------------------------------- */
@media (max-width: 1000px) {
  .caps-pin { height: auto; padding-block: 90px; }
  .caps-grid, .research-grid, .prod-card, .co-grid, .contact-grid, .two-col { grid-template-columns: 1fr; }
  .caps-visual { width: min(100%, 520px); }
  .brain-wrap { justify-self: center; }
  .ind-pin { height: auto; padding-block: 90px; }
  .ind-track { width: auto; flex-direction: column; }
  .ind-card { width: 100%; height: auto; min-height: 300px; gap: 90px; }
  .proc-rail { left: 14px; } .proc-dot { left: 14px; }
  .proc-step { grid-template-columns: 1fr; padding-left: 52px; }
  .proc-step::after { left: 14px; }
  .proc-step:nth-child(n) .txt { grid-column: 1; justify-self: start; text-align: left; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .rows > div { grid-template-columns: 1fr; gap: 4px; }
  .sig-stage { height: 340px; }
}
@media (max-width: 700px) {
  .tab { padding: 0 13px; gap: 9px; font-size: .66rem; white-space: nowrap; }
  .logo { padding: 0 13px; gap: 6px; font-size: 1.15rem; }
  .logo svg { width: 28px; height: 25px; }
  .hero { height: 220svh; }
  .hud-line i { width: 18px; }
  .ind-head { flex-direction: column; align-items: start; gap: 16px; }
  .sig-fields { grid-template-columns: 1fr; }
  .sig-stage { height: auto; display: grid; justify-items: center; gap: 18px; padding-top: 6px; }
  .sig-core { position: relative; left: auto; top: auto; margin: 0; }
  .sig-chips { position: relative; inset: auto; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
  .chip-node { position: relative; left: auto; top: auto; transform: none; }
  .sig-canvas { height: 100%; }
}

/* small blocks used by the inner-page call to action */
.contact-form { display: grid; gap: 22px; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }

/* hero layout follows the shape of the screen, not just its width: portrait and squarish screens stack the copy above the dark screen */
@media (max-width: 1000px) and (max-aspect-ratio: 23/20) {
  .hero-copy { max-width: 100%; }
  #hero-gl { clip-path: inset(50% 4% 5% 4% round 26px); }
}
/* landscape phones: side by side, with the paragraph dropped so the buttons stay on screen */
@media (max-width: 1000px) and (min-aspect-ratio: 23/20) {
  .h-hero { font-size: clamp(1.9rem, 5.6vw, 4rem); }
  .hero-copy { padding-top: calc(var(--bar-h) + 16px); }
}
@media (max-height: 520px) and (min-aspect-ratio: 23/20) {
  .hero-copy .lead { display: none; }
}
