/* ════════════════════════════════════════════════════════════════════════════
   Inner pages (services, about, team, careers, contact, privacy, terms, 404).
   The token, nav, button and form blocks are copied verbatim from index.html so every page matches the home page;
   change them in both places. Page-specific layout is at the bottom.
   ════════════════════════════════════════════════════════════════════════════ */
:root {
  --px: min(100vw / 2000, 100svh / 1426);
  --gutter: calc(96 * var(--px));
  /* palette — near-black neutrals built around the #080814 background. See DESIGN.md */
  --void:   #080814;      /* hero background */
  --canvas: #080814;      /* main background, scene fog */
  --raised: #0E1114;      /* gradient midpoints */
  --lower:  #171B1D;      /* lower section / stats band */
  --panel:  #202326;
  --hair:   #36383A;      /* primary border */
  --hair-subtle: #25282A;
  --hair-strong: #4A4E50;
  --muted:  #62686A;      /* captions on light cards (5.2:1 on card) */
  --text-muted: #98A0B0;  /* accessible muted text on dark and section backgrounds */
  --quiet:  #A3AAA7;      /* secondary text (8.4:1 on background) */
  --soft:   #CFD4D2;
  --bone:   #F1F3F2;      /* cards */
  --paper:  #F5F7F6;      /* primary text (18.4:1 on background) */
  --ink-dark: #101416;    /* dark text on light UI (16.6:1 on card) */
  /* the single UI accent — the secondary 3D green, so page and scene match */
  --accent:       #4AA3FF;  /* azure: focus rings, indices, brackets, highlights (7.6:1 on #080814) */
  --accent-mist:  #A6CFFF;
  --cursor:       #8B7BFF;  /* terminal-button cursor (violet) */

  --bg: var(--canvas);
  --bg-top: var(--void);
  --bg-lower: var(--lower);
  --card: var(--bone);
  --text: var(--paper);
  --dim: var(--quiet);
  --border: var(--hair);

  --line: var(--border);
  --font-display: 'Inter Tight', sans-serif;     /* headings + big stat numbers */
  --font-body: 'Inter', sans-serif;              /* body, nav, logo */
  --font-mono: 'IBM Plex Mono', monospace;       /* tiny labels, tags, CTA buttons — never paragraphs */
  --error: #FF4FA3;       /* the scene pink — form errors */
}

/* White theme: flip the semantic tokens; the raw palette above stays the same */
:root[data-theme="light"] {
  --bg: #F6F8FA;
  --bg-top: #FFFFFF;
  --raised: #EFF1F3;
  --bg-lower: #E4E7EA;
  --card: #171B1F;
  --text: #080A0D;
  --dim: #565B61;
  --border: #D1D5D8;
  --hair: #D1D5D8;
  --accent: #1D4ED8;       /* the blue deepened for contrast on white (6.3:1) */
  --accent-mist: #4AA3FF;
  --error: #C2185B;
  --cursor: #5B3FE0;
}


* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; scroll-behavior: smooth; }
/* nothing may widen the page: a 100vw element includes the scrollbar and used to push the
   layout sideways, scrolling the hero text off the left edge */
html, body { max-width: 100%; overflow-x: clip; }
body { font-family: var(--font-body); color: var(--text); background: var(--bg); transition: background .4s, color .4s; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.wrap { width: 100%; padding: 0 var(--gutter); }

a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

/* ── Terminal-prompt CTA (nav "contact_us", hero "explore_more") ──
   Border + text follow the theme (--text on --bg); the blinking cursor is violet in both themes. */
.btn-terminal {
  display: inline-flex;
  align-items: center;
  padding: 15px 20px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
  text-transform: none;
  text-decoration: none;
  color: var(--text);
  background: transparent;
  border: 1.5px solid var(--text);
  border-radius: 0;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.btn-terminal::after {            /* blinking cursor */
  content: '';
  width: 8px;
  height: 14px;
  margin-left: 6px;
  background: var(--cursor);
  animation: blink 1s steps(1) infinite;
}
.btn-terminal:hover,
.btn-terminal:focus-visible {
  background: var(--text);
  color: var(--bg);
}
.btn-terminal:hover::after,
.btn-terminal:focus-visible::after { background: currentColor; }
.btn-terminal:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
@keyframes blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .btn-terminal::after { animation: none; } }

/* ── Black / white theme toggle ─────────────────────────────── */
.theme-toggle {
  margin-left: calc(28 * var(--px));
  width: calc(78 * var(--px)); height: 100%;
  min-width: 36px; min-height: 36px;
  display: grid; place-items: center;
  background: none; color: var(--text);
  border: 1.5px solid var(--border); border-radius: calc(10 * var(--px));
  cursor: pointer; transition: border-color .2s;
}
.theme-toggle:hover { border-color: var(--text); }
.theme-toggle svg { width: 46%; min-width: 18px; transition: transform .5s cubic-bezier(.2,.8,.2,1); }
:root[data-theme="light"] .theme-toggle svg { transform: rotate(180deg); }


header.wrap { flex: none; padding-top: calc(60 * var(--px)); position: relative; z-index: 5; }
.nav { display: flex; align-items: center; justify-content: space-between; height: calc(78 * var(--px)); }
.brand { display: flex; align-items: center; gap: calc(20 * var(--px)); font: 500 calc(34 * var(--px)) / 1 var(--font-body); letter-spacing: .02em; }
.nav-end { display: flex; align-items: center; height: 100%; }
.nav-links { display: flex; align-items: center; height: 100%; gap: calc(56 * var(--px)); }
.menu-toggle { display: none; }
.nav-links > a:not(.btn-terminal) { font-size: calc(22 * var(--px)); color: var(--text); opacity: .88; transition: opacity .2s; }
.nav-links > a:not(.btn-terminal):hover { opacity: 1; }
.nav-links > a + a:not(.btn-terminal) { margin-left: 0; }
.nav-links > .btn-terminal { margin-left: calc(14 * var(--px)); }
.industry-menu { position: relative; margin-left: 0; height: 100%; display: flex; align-items: center; }
.industry-trigger { border: 0; background: none; color: var(--text); cursor: pointer; font: inherit; opacity: .88; }
.industry-trigger span { color: var(--accent); font-size: .8em; }
.industry-links { position: absolute; top: calc(100% + 12px); left: -18px; width: 300px; padding: 10px; border: 1px solid var(--border); border-radius: 12px; background: color-mix(in oklab, var(--bg) 88%, transparent); box-shadow: 0 22px 50px -20px rgba(0,0,0,.7); backdrop-filter: blur(16px); opacity: 0; transform: translateY(-8px); visibility: hidden; transition: opacity .2s, transform .2s, visibility 0s .2s; }
.industry-menu.open .industry-links, .industry-menu:focus-within .industry-links { opacity: 1; transform: none; visibility: visible; transition-delay: 0s; }
.industry-links a { display: grid; gap: 3px; padding: 11px 12px; color: var(--text); text-decoration: none; border-bottom: 1px solid var(--hair-subtle); }
.industry-links a:hover { background: color-mix(in oklab, var(--accent) 10%, transparent); }
.industry-links strong { font-size: 15px; font-weight: 500; }
.industry-links small { color: var(--dim); font-size: 12px; }
.industry-links .industry-all { display: block; padding-bottom: 8px; border-bottom: 0; color: var(--accent); font-family: var(--font-mono); font-size: 12px; }

.eyebrow { display: flex; align-items: baseline; gap: calc(18 * var(--px)); font-size: calc(24 * var(--px)); color: var(--dim); }
.eyebrow .idx { font: 300 calc(40 * var(--px)) / 1 var(--font-display); color: var(--accent); }

/* ════════════════ CONTACT FORM ════════════════ */
.contact-form { margin-top: calc(48 * var(--px)); display: grid; gap: calc(26 * var(--px)); max-width: calc(720 * var(--px)); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: calc(40 * var(--px)); }
.field { display: grid; gap: 8px; border: 0; min-width: 0; }
.field > span, .field legend { font-size: max(12px, calc(19 * var(--px))); color: var(--dim); }
.field em { font-style: normal; opacity: .7; }
.field input, .field textarea {
  width: 100%; padding: 10px 0; border: 0; border-bottom: 1px solid var(--hair-strong); border-radius: 0;
  background: none; color: var(--text); font: 400 max(15px, calc(24 * var(--px))) / 1.35 var(--font-body);
  transition: border-color .2s; resize: vertical; }
:root[data-theme="light"] .field input, :root[data-theme="light"] .field textarea { border-bottom-color: #9AA0A6; }
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--accent); }
.field input:focus-visible, .field textarea:focus-visible { box-shadow: 0 1px 0 0 var(--accent); }
.field [aria-invalid="true"] { border-bottom-color: var(--error) !important; }
.field .err { min-height: 1em; font-size: max(11px, calc(17 * var(--px))); color: var(--error); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.chips label { position: relative; cursor: pointer; }
.chips input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chips span { display: inline-block; padding: 9px 14px; border: 1px solid var(--hair-strong); border-radius: 999px;
  font-size: max(12px, calc(19 * var(--px))); color: var(--dim); transition: color .2s, background .2s, border-color .2s; }
:root[data-theme="light"] .chips span { border-color: #9AA0A6; }
.chips input:hover + span { color: var(--text); border-color: var(--text); }
.chips input:checked + span { color: var(--bg); background: var(--text); border-color: var(--text); }
.chips input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }
.form-foot { display: flex; align-items: center; gap: calc(36 * var(--px)); flex-wrap: wrap; }
.contact-form .btn-terminal { margin-top: 0; }
.contact-form .btn-terminal[disabled] { opacity: .6; cursor: progress; }
.form-status { font-size: max(13px, calc(21 * var(--px))); color: var(--dim); }
.form-status.ok { color: var(--accent); }


/* ════════════════ PAGE LAYOUT ════════════════ */
/* tablets (assets/device.js): scale from the short side, so portrait and landscape read the same */
:root[data-scale="tablet"] { --px: calc(min(100vw, 100vh) / 1300); }
/* inner pages are text-first: give the scaled nav readable floors */
.brand { font-size: max(18px, calc(34 * var(--px))); gap: max(10px, calc(20 * var(--px))); }
.nav { height: max(48px, calc(78 * var(--px))); }
.nav-links > a:not(.btn-terminal) { font-size: max(14px, calc(22 * var(--px))); }
.nav-links { gap: max(22px, calc(56 * var(--px))); }
.nav-links > a + a:not(.btn-terminal) { margin-left: 0; }
.nav-links > .btn-terminal { margin-left: max(6px, calc(14 * var(--px))); }
.nav-links > a[aria-current="page"] { opacity: 1; color: var(--accent); }
header.wrap { padding-top: max(20px, calc(60 * var(--px))); }
:root { --m-gutter: 16px; --m-head: 60px; }
.page-top { background: var(--bg-top); }
main.page { display: block; }
.page-hero { position: relative; z-index: 1; padding: max(64px, calc(170 * var(--px))) var(--gutter) max(56px, calc(120 * var(--px))); }
.page-hero h1 { margin-top: max(14px, calc(30 * var(--px))); font: 500 max(40px, calc(110 * var(--px))) / 1.06 var(--font-display); letter-spacing: -0.025em; }
.page-hero .subtitle { margin-top: max(16px, calc(30 * var(--px))); max-width: 30ch; font: 500 max(19px, calc(38 * var(--px))) / 1.25 var(--font-display); letter-spacing: -0.01em; }
.page-hero .intro { margin-top: max(16px, calc(30 * var(--px))); max-width: 68ch; font-size: max(15px, calc(25 * var(--px))); line-height: 1.55; color: var(--dim); }
.page-hero .meta { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 8px; }
.tag { display: inline-flex; align-items: center; padding: 7px 12px; border: 1px solid var(--hair-strong); border-radius: 999px;
  font: 400 max(11px, calc(16 * var(--px))) / 1 var(--font-mono); letter-spacing: .04em; text-transform: uppercase; color: var(--dim); }
:root[data-theme="light"] .tag { border-color: #9AA0A6; }
.page-foot { padding: 0 var(--gutter) max(32px, calc(56 * var(--px))); position: relative; z-index: 4; background: var(--bg); }
.panel { padding: max(22px, calc(40 * var(--px))); border: 1px solid var(--hair); border-radius: 14px; background: color-mix(in oklab, var(--text) 2.5%, var(--bg)); }
:root[data-theme="light"] .panel { border-color: var(--border); background: #fff; }
.panel.quote { border-left: 3px solid var(--accent); }
.panel h3 { font: 500 max(18px, calc(30 * var(--px))) / 1.2 var(--font-display); letter-spacing: -0.01em; }
.panel p { margin-top: 12px; font-size: max(14px, calc(22 * var(--px))); line-height: 1.55; color: var(--dim); }
.panel blockquote { font: 500 max(19px, calc(34 * var(--px))) / 1.3 var(--font-display); letter-spacing: -0.01em; }
.checks { margin-top: 18px; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; font-size: max(14px, calc(22 * var(--px))); line-height: 1.4; }
.checks li::before { content: '✓'; color: var(--accent); font-family: var(--font-mono); }
.prose p { font-size: max(15px, calc(25 * var(--px))); line-height: 1.6; color: var(--dim); }
.prose p + p { margin-top: 1.1em; }
.prose strong { color: var(--text); font-weight: 500; }
.split { margin-top: max(36px, calc(70 * var(--px))); display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .9fr); gap: calc(80 * var(--px)); align-items: start; }
.stack { display: grid; gap: 14px; }
.sec h3.lead { font: 500 max(20px, calc(40 * var(--px))) / 1.2 var(--font-display); color: var(--accent); margin-bottom: max(18px, calc(30 * var(--px))); }

/* team */
.founders { margin-top: max(36px, calc(70 * var(--px))); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.founder { padding: max(24px, calc(44 * var(--px))); border: 1px solid var(--hair); border-radius: 14px; }
:root[data-theme="light"] .founder { border-color: var(--border); }
.avatar { width: max(64px, calc(110 * var(--px))); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; background: var(--c);
  font: 500 max(26px, calc(46 * var(--px))) / 1 var(--font-display); color: #080814; }
.founder h3 { margin-top: max(20px, calc(34 * var(--px))); font: 500 max(20px, calc(36 * var(--px))) / 1.2 var(--font-display); letter-spacing: -0.01em; }
.founder span { display: block; margin-top: 8px; font: 400 max(12px, calc(18 * var(--px))) var(--font-mono); text-transform: uppercase; letter-spacing: .05em; color: var(--dim); }
.founder-email, .founder-linkedin { display: inline-block; margin-top: 14px; font-size: max(12px, calc(16 * var(--px))); color: var(--accent-mist); }
.founder-linkedin { margin-left: 12px; }
.founder-email:hover, .founder-linkedin:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.foot-contact { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.foot-whatsapp { color: var(--dim); font-size: 13px; }
.foot-whatsapp:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.pills { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 8px; }

/* careers */
.job-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 20px; }
.job-head h3 { font: 500 max(24px, calc(48 * var(--px))) / 1.15 var(--font-display); letter-spacing: -0.02em; }
.job .prose { margin-top: max(24px, calc(40 * var(--px))); max-width: 76ch; }
.job h4 { margin-top: max(28px, calc(44 * var(--px))); font: 400 max(12px, calc(17 * var(--px))) var(--font-mono); letter-spacing: .1em; text-transform: uppercase; }
.bullets { margin-top: 14px; display: grid; gap: 10px; }
.bullets li { display: flex; gap: 12px; font-size: max(14px, calc(22 * var(--px))); line-height: 1.5; color: var(--dim); }
.bullets li::before { content: '→'; color: var(--accent); font-family: var(--font-mono); }
.job .panel.quote { margin-top: max(28px, calc(44 * var(--px))); }
dialog.modal { margin: auto; width: min(640px, calc(100% - 32px)); max-height: calc(100svh - 32px); padding: max(24px, calc(44 * var(--px)));
  border: 1px solid var(--hair); border-radius: 14px; background: var(--bg); color: var(--text); }
dialog.modal::backdrop { background: rgba(4, 5, 10, .7); backdrop-filter: blur(4px); }
.modal-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.modal-head h2 { font: 500 max(22px, calc(40 * var(--px))) / 1.15 var(--font-display); letter-spacing: -0.01em; }
.modal-head p { margin-top: 8px; color: var(--dim); font-size: max(14px, calc(21 * var(--px))); }
.modal-x { flex: none; width: 40px; height: 40px; border: 1.5px solid var(--border); border-radius: 10px; background: none; color: var(--text); cursor: pointer; font-size: 18px; }
.modal .contact-form { max-width: none; }

/* contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: calc(100 * var(--px)); align-items: start; }
.contact-grid .contact-form { margin-top: 0; max-width: none; }
.info-row { display: grid; gap: 6px; }
.info-row + .info-row { margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--hair-subtle); }
.info-row span { font: 400 max(11px, calc(16 * var(--px))) var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.info-row a { font: 500 max(18px, calc(30 * var(--px))) / 1.2 var(--font-display); }
.info-row a:hover { color: var(--accent); }

/* legal */
.legal { max-width: 82ch; }
.legal section + section { margin-top: max(30px, calc(52 * var(--px))); padding-top: max(30px, calc(52 * var(--px))); border-top: 1px solid var(--hair-subtle); }
.legal h2 { display: flex; gap: 14px; align-items: baseline; font: 500 max(20px, calc(36 * var(--px))) / 1.2 var(--font-display); letter-spacing: -0.01em; }
.legal h2 .idx { font: 400 max(12px, calc(18 * var(--px))) var(--font-mono); color: var(--accent); }
.legal p, .legal li { font-size: max(15px, calc(23 * var(--px))); line-height: 1.65; color: var(--dim); }
.legal p { margin-top: 14px; }
.legal ul { margin-top: 12px; display: grid; gap: 8px; }
.legal li { position: relative; padding-left: 28px; }
.legal li::before { content: '—'; position: absolute; left: 0; color: var(--accent); }
.legal strong { color: var(--text); font-weight: 500; }
.legal .callout { margin-top: 16px; padding: 16px 20px; border-left: 3px solid var(--accent); background: color-mix(in oklab, var(--text) 4%, var(--bg)); color: var(--text); }
.entity { display: flex; flex-wrap: wrap; gap: 8px 32px; margin-top: 20px; font-family: var(--font-mono); font-size: max(12px, calc(18 * var(--px))); }

/* 404 */
.lost { min-height: 70svh; display: grid; align-content: center; }
.lost .actions { margin-top: max(28px, calc(56 * var(--px))); display: flex; flex-wrap: wrap; gap: 12px; }

/* scroll reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .reveal { opacity: 1; transform: none; transition: none; } }

@media (max-width: 1100px) {
  .split, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* ── phones + small tablets: same header + ☰ dropdown as the home page ── */
@media (max-width: 900px) {
  html.nav-locked, html.nav-locked body { overflow: hidden; }
  header.wrap { padding: env(safe-area-inset-top) var(--m-gutter) 0; }
  .nav { height: var(--m-head); position: relative; z-index: 101; }
  .brand { gap: 10px; font-size: 18px; }
  .theme-toggle { width: 44px; height: 44px; margin-left: 0; border-radius: 10px; }
  .theme-toggle svg { min-width: 0; width: 20px; }
  .menu-toggle { display: grid; place-content: center; gap: 6px; width: 44px; height: 44px; margin-left: 8px;
    background: none; border: 1.5px solid var(--border); border-radius: 10px; color: var(--text); cursor: pointer; }
  .menu-toggle span { display: block; width: 18px; height: 1.5px; background: currentColor; transition: transform .3s cubic-bezier(.2,.8,.2,1); }
  .nav.open .menu-toggle span:first-child { transform: translateY(3.75px) rotate(45deg); }
  .nav.open .menu-toggle span:last-child  { transform: translateY(-3.75px) rotate(-45deg); }
  .nav-scrim { position: fixed; inset: 0; z-index: 90; border: 0; background: rgba(4, 6, 18, .42); opacity: 0; visibility: hidden; transition: opacity .28s, visibility 0s .28s; cursor: pointer; }
  .nav.open ~ .nav-scrim { opacity: 1; visibility: visible; transition-delay: 0s; }
  .nav-links { position: fixed; z-index: 100; top: 0; right: 0; bottom: 0; width: min(76vw, 320px);
    height: auto; flex-direction: column; align-items: stretch; justify-content: flex-start; padding: calc(env(safe-area-inset-top) + var(--m-head) + 28px) 24px 28px;
    background: color-mix(in oklab, var(--bg) 58%, transparent); border-left: 1px solid var(--border);
    box-shadow: -24px 0 64px -24px rgba(0,0,0,.7); backdrop-filter: blur(16px);
    opacity: 0; transform: translateX(100%); visibility: hidden;
    transition: opacity .28s, transform .34s cubic-bezier(.2,.8,.2,1), visibility 0s .34s; }
  .nav.open .nav-links { opacity: 1; transform: none; visibility: visible; transition-delay: 0s; }
  .nav-links > a:not(.btn-terminal) { display: flex; align-items: center; min-height: 48px; margin: 0 !important;
    font-size: 17px; border-bottom: 1px solid var(--hair-subtle); }
  :root[data-theme="light"] .nav-links > a:not(.btn-terminal) { border-bottom-color: var(--border); }
  .nav-links > .btn-terminal { margin: 16px 0 0; justify-content: center; }
  .industry-menu { height: auto; display: block; margin: 0 !important; }
  .industry-trigger { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 48px; padding: 0; font-size: 17px; border-bottom: 1px solid var(--hair-subtle); text-align: left; }
  .industry-links { position: static; width: auto; padding: 0 0 4px 12px; border: 0; border-radius: 0; background: transparent; box-shadow: none; backdrop-filter: none; opacity: 1; transform: none; visibility: visible; display: none; }
  .industry-menu.open .industry-links { display: block; }
  .industry-links a { padding: 9px 8px; }
  .industry-links strong { font-size: 14px; }
  .industry-links small { font-size: 11px; }
  .page-hero { padding: 48px var(--m-gutter) 40px; }
  .page-foot { padding: 0 var(--m-gutter) 32px; }
  .eyebrow { font-size: 13px; gap: 10px; } .eyebrow .idx { font-size: 20px; }
  .field-row { grid-template-columns: 1fr; gap: 22px; }
  .contact-form { gap: 22px; }
}

/* single column only on phone widths; tablets keep two */
@media (max-width: 600px) { .founders { grid-template-columns: 1fr; } }
@media (min-width: 601px) and (max-width: 1100px) { .founders { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ── hero with cube words (team, careers): copy left, the cube canvas in the right column (assets/cube-text.js) ── */
.page-hero.has-cubes { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: calc(80 * var(--px)); align-items: center; }
.page-hero.has-cubes .intro { max-width: 52ch; }
.cube-word { position: relative; height: clamp(180px, 30vh, 300px); opacity: 0; transition: opacity .9s ease; }   /* one line of cube letters */
.cube-word.ready { opacity: 1; }
.cube-art { position: relative; height: clamp(300px, 56vh, 560px); opacity: 0; transition: opacity .9s ease; }   /* a square emblem */
.cube-art.ready { opacity: 1; }
.cube-art canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.cube-word canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* cube words on a device without WebGL (assets/cube-text.js): the same words, as text */
.cube-fallback { display: block; font: 500 clamp(28px, 6vw, 72px) / 1.05 var(--font-display); letter-spacing: -0.02em; color: var(--text); }
:root[data-layout="mobile"] .page-hero.has-cubes { grid-template-columns: 1fr; row-gap: 12px; }
:root[data-layout="mobile"] .cube-word { height: clamp(120px, 20svh, 220px); }
:root[data-layout="mobile"] .cube-art { height: clamp(260px, 40svh, 420px); }

/* ── legal pages: key-points box, sub-headings, data tables ── */
.legal-summary { margin-bottom: max(36px, calc(60 * var(--px))); padding: max(20px, calc(34 * var(--px))); border: 1px solid var(--hair); border-left: 3px solid var(--accent); border-radius: 14px;
  background: color-mix(in oklab, var(--text) 3%, var(--bg)); }
:root[data-theme="light"] .legal-summary { border-color: var(--border); border-left-color: var(--accent); background: #fff; }
.legal-summary h2 { font: 400 max(12px, calc(17 * var(--px))) var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--text); }
.legal-summary p { margin-top: 10px; }
.legal h3 { margin-top: max(20px, calc(30 * var(--px))); font: 500 max(16px, calc(26 * var(--px))) / 1.3 var(--font-display); color: var(--text); }
.legal-table { margin-top: 16px; overflow-x: auto; border: 1px solid var(--hair); border-radius: 12px; }
:root[data-theme="light"] .legal-table { border-color: var(--border); }
.legal-table table { width: 100%; border-collapse: collapse; font-size: max(14px, calc(20 * var(--px))); line-height: 1.5; }
.legal-table th { text-align: left; padding: 12px 16px; font: 400 max(11px, calc(15 * var(--px))) var(--font-mono); letter-spacing: .08em; text-transform: uppercase;
  color: var(--text); background: color-mix(in oklab, var(--text) 5%, var(--bg)); }
.legal-table td { padding: 12px 16px; color: var(--dim); vertical-align: top; border-top: 1px solid var(--hair-subtle); }
:root[data-theme="light"] .legal-table td { border-top-color: var(--border); }
.legal-table td:first-child { color: var(--text); }
:root[data-layout="mobile"] .legal-table table { min-width: 560px; }   /* scrolls sideways inside its box on phones, never the page */

/* inline links inside card / panel / section-intro copy */
.card-n p a, .panel p a, .sec-head .sub a, .sec > .sub a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.card-n p a:hover, .panel p a:hover, .sec-head .sub a:hover, .sec > .sub a:hover { color: var(--text); }

/* ── Device adaptation, every page (assets/device.js) ──
   Touch screens: links and buttons outside running text are comfortable to tap (44px, WCAG 2.5.5 / Apple HIG). */
:root[data-input="touch"] .nav .brand, :root[data-input="touch"] .foot-brand .brand { min-height: 44px; }
:root[data-input="touch"] .foot-bar nav a, :root[data-input="touch"] .related-links a { display: inline-flex; align-items: center; min-height: 44px; }
:root[data-input="touch"] .site-foot ul a { display: inline-flex; align-items: center; min-height: 32px; }
/* notched phones: the last line of the footer clears the home indicator */
.page-foot { padding-bottom: max(32px, calc(env(safe-area-inset-bottom) + 16px)); }
/* phones held upright: page heroes start closer to the header, buttons stay compact */
:root[data-layout="mobile"][data-orient="portrait"] .page-hero { padding-top: 36px; padding-bottom: 40px; }
:root[data-layout="mobile"] .page-hero .actions .btn-terminal, :root[data-layout="mobile"] .hero-ctas .btn-terminal { padding: 11px 12px; font-size: 12px; }
@media (prefers-reduced-transparency: reduce) {
  .industry-links, .nav-links { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
  dialog.modal::backdrop { backdrop-filter: none; background: rgba(4, 5, 10, .92); }
}
