/* ──────────────────────────────────────────────────────────────
   Grained: site styles (v2)
   Four calm pages: Home, Vision, Product, Careers.
   Big type, generous space, hairline rules, one animation (Vision),
   and small interactions that carry meaning (grain, label, verify).
   Grid: two-column layouts share one 5/7 line (--col-gap between).
   ────────────────────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
/* the grain field (assets/js/field.js) lies behind everything; the content sits on top */
.grain-field { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
main, .site-footer { position: relative; z-index: 1; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-2);
  font: 400 1.0625rem/1.6 var(--f-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p { margin: 0; text-wrap: pretty; }
h1, h2, h3, h4 { margin: 0; color: var(--ink); font-weight: 600; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--grain-2); color: var(--ink); }
:focus-visible { outline: 2px solid var(--grain-deep); outline-offset: 3px; border-radius: 4px; }

:root { --col-gap: clamp(36px, 6vw, 112px); --f-ipa: "SF Mono", Menlo, "DejaVu Sans Mono", "Segoe UI", "Lucida Grande", sans-serif; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 10px 14px; border-radius: 8px; font-weight: 600;
}
.skip:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.nw { white-space: nowrap; }

/* ── type ─────────────────────────────────────────────────────── */
.eyebrow {
  display: block;
  font: 500 12px/1.4 var(--f-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--grain-deep);
}
/* one display size for every page title; the muted tail always starts its own line */
.display {
  font-size: clamp(2.5rem, 1rem + 5.1vw, 5.5rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
  font-weight: 600;
  color: var(--ink);
  text-wrap: balance;
}
.display .mute { display: block; }
.h2 {
  font-size: clamp(2.125rem, 0.9rem + 3.2vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  text-wrap: balance;
}
.h3 { font-size: clamp(1.3125rem, 1rem + 0.55vw, 1.5625rem); line-height: 1.22; letter-spacing: -0.02em; }
.mute { color: var(--ink-mute); }
/* IPA glyphs (ɡ, ɪ) are outside the webfont subsets and must never be uppercased */
.ipa { text-transform: none; letter-spacing: 0.02em; font-family: var(--f-ipa); }
.lead {
  font-size: clamp(1.125rem, 1rem + 0.35vw, 1.3125rem);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 36em;
}
.mono { font-family: var(--f-mono); }
.tag {
  display: inline-flex; align-items: center;
  font: 500 11px/1 var(--f-mono); letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-3);
  border: 1px solid var(--line-2); border-radius: 999px; padding: 6px 10px;
  white-space: nowrap;
}

/* ── buttons ──────────────────────────────────────────────────── */
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 50px; padding: 0 24px;
  border-radius: 999px; border: 1px solid transparent;
  font: 600 15px/1 var(--f-sans); letter-spacing: -0.005em;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
  cursor: pointer;
}
.btn .arr { display: inline-block; transition: transform .25s var(--ease-out); }
.btn:is(:hover, :focus-visible) .arr { transform: translateX(3px); }
.btn[href^="#"]:is(:hover, :focus-visible) .arr { transform: translateY(3px); }
.btn-solid { background: var(--ink); color: var(--paper); }
.btn-solid:is(:hover, :focus-visible) { background: color-mix(in srgb, var(--ink) 80%, var(--paper)); }
.btn-line { border-color: var(--line-2); color: var(--ink); background: transparent; }
.btn-line:is(:hover, :focus-visible) { border-color: var(--ink); }

/* hover swap kept from v1 ("Talk to us" → "ping grained.ai"): both labels share one grid
   cell, so the button is always as wide as the longer one and never shifts */
.swap { display: inline-grid; justify-items: center; }
.swap > span { grid-area: 1 / 1; transition: opacity .2s ease; }
.swap .swap-b { opacity: 0; font: 500 14px/1 var(--f-mono); letter-spacing: 0; }
@media (hover: hover) and (pointer: fine) {
  .btn:hover .swap .swap-a { opacity: 0; }
  .btn:hover .swap .swap-b { opacity: 1; }
}

/* ── header ───────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  -webkit-backdrop-filter: saturate(1.2) blur(12px);
  backdrop-filter: saturate(1.2) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.nav { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-header nav { display: flex; align-items: center; }

.brand {
  display: inline-flex; align-items: baseline; gap: 0.2em;
  font: 600 25px/1 var(--f-logo); letter-spacing: -0.01em;
  color: var(--ink);
  white-space: nowrap;
  padding-block: 10px; margin-block: -10px;
}
.brand .mark { height: 0.85em; width: auto; color: var(--grain); flex: none; }
.brand .word { display: inline-block; }
.brand .dot { color: var(--sprout); }
.brand .ai { color: var(--grain); }

.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  display: inline-flex; align-items: center; height: 44px; padding: 0 14px; border-radius: 999px;
  font: 500 15px/1 var(--f-sans); color: var(--ink-2);
  transition: color .2s ease, background-color .2s ease;
}
.nav-links a:is(:hover, :focus-visible) { color: var(--ink); background: var(--paper-2); }
.nav-links a[aria-current="page"] { color: var(--ink); }
.nav-links a[aria-current="page"]::after {
  content: ""; width: 5px; height: 5px; border-radius: 2px; background: var(--grain);
  margin-left: 8px; transform: translateY(-1px);
}
.nav-links .nav-cta { margin-left: 10px; border: 1px solid var(--line-2); color: var(--ink); padding: 0 18px; }
.nav-links .nav-cta:is(:hover, :focus-visible) { border-color: var(--ink); background: transparent; }

.menu-btn {
  display: none; width: 44px; height: 44px; margin-right: -10px;
  border: 0; background: none; cursor: pointer; padding: 0;
  align-items: center; justify-content: center; flex-direction: column; gap: 5px;
}
.menu-btn span { display: block; width: 20px; height: 1.5px; background: var(--ink); transition: transform .25s var(--ease-out), opacity .2s ease; }
.menu-open .menu-btn span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu-open .menu-btn span:nth-child(2) { opacity: 0; }
.menu-open .menu-btn span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

@media (max-width: 760px) {
  :root { --header-h: 64px; }
  .brand { font-size: 22px; }
  /* the collapsed menu only exists when JS can open it */
  .js .menu-btn { display: inline-flex; }
  .js .nav-links {
    position: fixed; left: 0; right: 0; top: var(--header-h); z-index: 2;
    flex-direction: column; align-items: stretch; gap: 0;
    max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 20px;
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .2s ease, transform .25s var(--ease-out), visibility 0s linear .25s;
  }
  .js.menu-open .nav-links { transform: none; opacity: 1; visibility: visible; transition-delay: 0s; }
  .js .nav-links li { width: 100%; }
  .js .nav-links a { display: flex; width: 100%; height: 54px; padding: 0; border-radius: 0; font-size: 19px; border-bottom: 1px solid var(--line); }
  .js .nav-links a:is(:hover, :focus-visible) { background: none; }
  .js .nav-links li:nth-last-child(2) a { border-bottom: 0; }
  .js .nav-links .nav-cta { margin: 14px 0 0; justify-content: center; border-radius: 999px; border: 1px solid var(--ink); height: 50px; }
  html.menu-open { overflow: hidden; }
  html.menu-open .site-header { background: var(--paper); }
  html.menu-open body::after { content: ""; position: fixed; inset: 0; z-index: 40; background: rgb(22 21 15 / .28); }
  /* without JS: show the links, wrapped, under the logo */
  html:not(.js) .site-header { height: auto; position: static; }
  html:not(.js) .nav { flex-wrap: wrap; padding-block: 12px; gap: 6px 12px; }
  html:not(.js) .nav-links { flex-wrap: wrap; gap: 0; margin-left: -14px; }
}

/* ── sections ─────────────────────────────────────────────────── */
.section { padding: clamp(64px, 7vw, 112px) 0; }
.section-tight { padding: clamp(48px, 5vw, 80px) 0; }
.ruled { border-top: 1px solid var(--line); }
.sec-head { display: grid; gap: 22px; max-width: 900px; margin-bottom: clamp(40px, 5vw, 72px); }

/* ── reveal: content is visible without JS; with JS it rises in once.
   .reveal-off is set by a 2.5 s failsafe in <head> if site.js never ran. ── */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  .js:not(.reveal-off) .reveal:not(.is-in) { opacity: 0; }
  .js .reveal.is-in { animation: rise .8s var(--ease-out) both; animation-delay: var(--d, 0ms); }
}
.reveal-off .reveal { opacity: 1 !important; animation: none !important; }
@media print {
  .reveal { opacity: 1 !important; animation: none !important; transform: none !important; }
  .site-header { position: static; }
}

/* ── grain tiles (Home): hover to grain, click to label ───────── */
.tiles {
  --t: 64px; --g: 14px; --r: calc(var(--t) * 0.2); --cols: 4;
  display: grid; grid-template-columns: repeat(var(--cols), var(--t)); grid-auto-flow: row dense; gap: var(--g);
  user-select: none; -webkit-user-select: none;
}
.tile {
  width: var(--t); height: var(--t);
  display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 0;
  cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: gap .5s var(--ease-out);
}
.tile i {
  display: block; background: var(--tile);
  transition: border-radius .5s var(--ease-out), background-color .35s ease, transform .35s var(--ease-out);
}
.tile i:nth-child(1) { border-radius: var(--r) 0 0 0; }
.tile i:nth-child(2) { border-radius: 0 var(--r) 0 0; }
.tile i:nth-child(3) { border-radius: 0 0 0 var(--r); }
.tile i:nth-child(4) { border-radius: 0 0 var(--r) 0; }
.tile.big { grid-column: span 2; grid-row: span 2; width: calc(2 * var(--t) + var(--g)); height: calc(2 * var(--t) + var(--g)); --r: calc(var(--t) * 0.34); }
.tile.is-fine { gap: calc(var(--g) * 0.42); }
.tile.big.is-fine { gap: calc(var(--g) * 0.6); }
.tile.is-fine i { border-radius: calc(var(--r) * 0.55); }
.tile.is-fine i:hover { transform: scale(1.06); }
.tile i.c-o1 { background: var(--tile-o1); }
.tile i.c-o  { background: var(--grain); }
.tile i.c-o3 { background: var(--tile-o3); }
.tile i.c-g  { background: var(--sprout); }
.tile i.c-k  { background: var(--ink); }
.tiles-hint {
  margin-top: 16px; font: 500 11px/1.4 var(--f-mono); letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-3); text-align: right; text-wrap: balance;
}
.on-touch { display: none; }
@media (hover: none) {
  .on-hover { display: none; }
  .on-touch { display: inline; }
}

/* ── home ─────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: calc(100svh - var(--header-h));
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(48px, 7vw, 96px) 0 clamp(56px, 7vw, 104px);
}
.hero-copy { display: grid; gap: clamp(22px, 2.4vw, 32px); }
.hero .display { max-width: none; }
.hero-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: var(--col-gap); margin-top: clamp(4px, 1vw, 14px); }
.hero-text { display: grid; gap: clamp(22px, 2.4vw, 30px); align-content: start; }
.hero .lead { max-width: 34em; }

.sec-head .btns { margin-top: 6px; }
.sec-head.flush { margin-bottom: 0; }
/* hero: the tail of the title breaks in two on wide screens, and the grain form rises beside it */
.hero-form { width: clamp(280px, 34vw, 500px); }
.form-stage { position: relative; width: 100%; aspect-ratio: 1; }
.br-wide { display: none; }
@media (min-width: 901px) {
  .br-wide { display: inline; }
  .hero-tiles, .hero-form { margin-top: calc(-1.84 * clamp(2.5rem, 1rem + 5.1vw, 5.5rem) - clamp(22px, 2.4vw, 32px) - clamp(4px, 1vw, 14px)); }
  .hero-tiles .tiles { --t: clamp(52px, 5.4vw, 84px); --g: clamp(10px, 0.9vw, 13px); }
}

/* ── page heroes ──────────────────────────────────────────────── */
.page-hero { padding: clamp(56px, 8vw, 120px) 0 clamp(36px, 4vw, 56px); }
.page-hero .inner { display: grid; gap: clamp(20px, 2.2vw, 30px); max-width: 1080px; }

/* ── vision ───────────────────────────────────────────────────── */
.figure-wrap { padding-bottom: clamp(24px, 3vw, 40px); }
.figure {
  position: relative; width: 100%;
  aspect-ratio: 21 / 9;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
@media (max-width: 900px) { .figure { aspect-ratio: 16 / 9; } }
@media (max-width: 600px) { .figure { aspect-ratio: 4 / 5; } }
.figcap {
  display: flex; justify-content: space-between; gap: 16px; padding-top: 14px;
  font: 500 11px/1.4 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3);
}

.define { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--col-gap); align-items: start; }
.define .word { font-size: clamp(3rem, 1rem + 4.4vw, 5rem); line-height: 1; letter-spacing: -0.05em; font-weight: 600; color: var(--ink); }
.define .ipa { margin-top: 18px; font-size: 15px; line-height: 1.4; font-weight: 400; color: var(--ink-3); }
.define .pos { font-style: italic; font-family: var(--f-sans); color: var(--ink-3); margin-left: 10px; letter-spacing: 0; }
.senses { display: grid; gap: 28px; counter-reset: s; padding-top: 10px; }
.senses li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 8px; font-size: clamp(19px, 1.6vw, 23px); line-height: 1.45; color: var(--ink); letter-spacing: -0.01em; text-wrap: pretty; }
.senses li::before { counter-increment: s; content: counter(s) "."; font: 500 14px/2.1 var(--f-mono); color: var(--grain-deep); }
.senses li .ex { display: block; margin-top: 6px; font-size: 15px; color: var(--ink-3); letter-spacing: 0; }

/* granularity explorer: one square of data, re-grained from coarse to fine */
.gran { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--col-gap); align-items: center; }
.gran-field {
  --gg: 4px; --gr0: 30px; --gr1: 22px; --gr2: 15px; --gr3: 9px;
  position: relative; width: 100%; max-width: 480px; aspect-ratio: 1;
  display: grid; grid-template-columns: repeat(8, 1fr); grid-template-rows: repeat(8, 1fr);
  cursor: pointer; justify-self: start;
  -webkit-tap-highlight-color: transparent; user-select: none; -webkit-user-select: none;
}
.gcell { position: relative; }
.gcell i {
  position: absolute; top: 0; right: 0; bottom: 0; left: 0;
  background: var(--tile);
  transition: top .6s var(--ease-out), right .6s var(--ease-out), bottom .6s var(--ease-out), left .6s var(--ease-out),
              border-radius .6s var(--ease-out), background-color .45s ease;
}
.gcell i.c-o { background: var(--grain); }
.gcell i.c-g { background: var(--sprout); }
.gcell i.c-k { background: var(--ink); }
.gran-field:hover .gcell i:not([class]), .gran-field:hover .gcell i[class=""] { background-color: var(--tile-hover); }
.gran-side { display: grid; gap: 28px; align-content: center; }
.gran-scale { display: flex; justify-content: space-between; font: 500 11px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.gran-control {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 4px;
  padding: 4px; border-radius: 999px; background: var(--paper-2); border: 1px solid var(--line);
}
.gran-control button {
  appearance: none; border: 0; background: transparent; cursor: pointer;
  height: 44px; border-radius: 999px; padding: 0 6px;
  font: 600 14.5px/1 var(--f-sans); color: var(--ink-3);
  transition: background-color .25s ease, color .25s ease;
}
.gran-control button:hover { color: var(--ink); }
.gran-control button[aria-checked="true"] { background: var(--ink); color: var(--paper); }
.gran-panels { display: grid; }
.gran-panel { grid-area: 1 / 1; display: grid; gap: 12px; align-content: start; }
.gran-panel[hidden] { display: grid; visibility: hidden; }
.gran-panel .k { font: 500 12px/1.4 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--grain-deep); }
.gran-panel h3 { font-size: clamp(30px, 3vw, 42px); line-height: 1.05; letter-spacing: -0.035em; }
.gran-panel p { color: var(--ink-2); font-size: 17px; line-height: 1.6; max-width: 30em; }
.gran-panel .ex { color: var(--ink-3); font-size: 15px; }
.gran-hint { font: 500 11px/1.4 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); text-wrap: balance; }
/* without JS the explorer can't run: show the four sizes as a plain list */
html:not(.js) .gran-field, html:not(.js) .gran-control, html:not(.js) .gran-scale, html:not(.js) .gran-hint, html:not(.js) .hero-tiles { display: none; }
html:not(.js) .gran { grid-template-columns: 1fr; }
html:not(.js) .gran-panels { gap: 32px; }
html:not(.js) .gran-panel { grid-area: auto; }
html:not(.js) .gran-panel[hidden] { visibility: visible; }

/* numbered groups (beliefs, ways of working, assurances, contact) share one pattern:
   an ink rule above, a small mono number, a heading, then text */
.beliefs, .modes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 4vw, 64px); }
.assure { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); }
.belief, .mode, .assure > div { display: grid; gap: 12px; align-content: start; border-top: 1px solid var(--ink); padding-top: 22px; }
.belief .n, .mode .n { font: 500 12px/1 var(--f-mono); letter-spacing: .12em; color: var(--grain-deep); }
.belief p, .mode p { color: var(--ink-2); font-size: 17px; line-height: 1.6; }
.mode .sub { color: var(--ink-3); font-size: 15px; }
.assure h3 { font-size: 18px; letter-spacing: -0.015em; display: flex; align-items: center; gap: 10px; }
.assure h3::before { content: ""; width: 9px; height: 9px; border-radius: 3px; background: var(--sprout); flex: none; }
.assure p { color: var(--ink-3); font-size: 15px; line-height: 1.6; }

.closer { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 32px; }
.closer .h2 { max-width: 14em; }
.closer .h2 .mute { display: block; }
.closer p { color: var(--ink-2); margin-top: 18px; max-width: 34em; }

/* ── product ──────────────────────────────────────────────────── */
.product-top { padding-top: clamp(56px, 8vw, 120px); }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--col-gap); align-items: start; }
.split-intro { position: sticky; top: calc(var(--header-h) + 40px); display: grid; gap: 22px; }
.split-intro p { color: var(--ink-2); max-width: 30em; }

.products { display: grid; gap: 14px; }
.product {
  display: grid; gap: 14px;
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(24px, 2.6vw, 36px);
  background: color-mix(in srgb, var(--paper-2) 55%, transparent);
  transition: border-color .25s ease, background-color .25s ease;
}
.product:hover { border-color: var(--line-2); background: var(--paper-2); }
.product header { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.product .num { font: 500 12px/1 var(--f-mono); letter-spacing: .12em; color: var(--ink-3); }
.product p { color: var(--ink-2); font-size: 17px; line-height: 1.6; max-width: 40em; }
.product .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }

.product:hover .num { color: var(--ink); }

.timeline { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
.era { padding: 22px 22px 0 0; display: grid; gap: 12px; align-content: start; position: relative; }
.era + .era { padding-left: 22px; border-left: 1px solid var(--line); }
.era .when { font: 500 12px/1 var(--f-mono); letter-spacing: .1em; color: var(--ink-3); }
.era .what { font-size: 20px; line-height: 1.25; letter-spacing: -0.02em; font-weight: 600; color: var(--ink); min-height: 2.5em; text-wrap: balance; }
.era p { font-size: 15px; line-height: 1.55; color: var(--ink-3); }
.era.now .when { color: var(--grain-deep); }
.era.now::before { content: ""; position: absolute; top: -4px; left: 22px; width: 32px; height: 7px; border-radius: 2px; background: var(--grain); }

/* ── careers ──────────────────────────────────────────────────── */
.team { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 10fr); gap: 18px var(--col-gap); padding: 34px 0; border-top: 1px solid var(--line); }
.team:last-child { border-bottom: 1px solid var(--line); }
.team h2 { font: 500 12px/1.9 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--grain-deep); }
.roles { display: grid; gap: 4px; }
.role {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 24px; align-items: baseline;
  padding: 14px 0;
}
.role:first-child { padding-top: 0; }
.role .title { grid-column: 1; grid-row: 1; font-size: clamp(22px, 2vw, 28px); line-height: 1.15; letter-spacing: -0.025em; font-weight: 600; color: var(--ink); transition: color .25s ease, transform .35s var(--ease-out); }
.role p { grid-column: 1; grid-row: 2; color: var(--ink-3); font-size: 15px; line-height: 1.55; max-width: 40em; }
.role .apply { grid-column: 2; grid-row: 1; justify-self: end; font-weight: 500; font-size: 14px; color: var(--ink-3); white-space: nowrap; transition: color .25s ease; }
.role .meta { grid-column: 2; grid-row: 2; justify-self: end; font: 500 11px/1.4 var(--f-mono); letter-spacing: .08em; color: var(--ink-3); text-transform: uppercase; white-space: nowrap; }
.role:is(:hover, :focus-visible) .title { color: var(--grain-deep); transform: translateX(6px); }
.role:is(:hover, :focus-visible) .apply { color: var(--grain-deep); }

.name-card { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--col-gap); align-items: start; }
.name-card .word { font-size: clamp(2.75rem, 1rem + 3.8vw, 4.5rem); line-height: .95; letter-spacing: -0.05em; font-weight: 600; color: var(--ink); }
.name-card .ipa { margin-top: 14px; font-size: 15px; line-height: 1.4; font-weight: 400; color: var(--ink-3); }
.name-card .def { font-size: clamp(19px, 1.6vw, 23px); line-height: 1.5; color: var(--ink); letter-spacing: -0.01em; }
.name-card .def em { font-style: italic; color: var(--ink-3); margin-right: 6px; }
.name-card .cv { margin-top: 26px; }
@media (min-width: 901px) {
  .name-card { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; }
  .name-card > :first-child { grid-column: 2; grid-row: 1; text-align: right; }
  .name-card > :last-child { grid-column: 1; grid-row: 1; }
}
.big-mail {
  display: inline-block; margin-top: 14px;
  font-size: clamp(2rem, 1rem + 2.6vw, 3.5rem); line-height: 1.05; letter-spacing: -0.045em; font-weight: 600; color: var(--ink);
  border-bottom: 2px solid var(--line-2); transition: border-color .25s ease, color .25s ease;
  overflow-wrap: break-word;
}
.big-mail:is(:hover, :focus-visible) { border-color: var(--grain); }

.contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 3vw, 48px); max-width: 900px; }
.contact-grid > div { display: grid; gap: 10px; align-content: start; border-top: 1px solid var(--ink); padding-top: 20px; }
.contact-grid .k { font: 500 12px/1.4 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.contact-grid a, .contact-grid .v { font-size: clamp(20px, 1.8vw, 26px); letter-spacing: -0.02em; font-weight: 600; color: var(--ink); }
.contact-grid a { justify-self: start; padding-block: 6px; margin-block: -6px; }
.contact-grid a:is(:hover, :focus-visible) { color: var(--grain-deep); }
.contact-grid p { color: var(--ink-3); font-size: 15px; }

/* ── footer ───────────────────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--line); padding: clamp(48px, 6vw, 80px) 0 32px; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: var(--col-gap); row-gap: 40px; }
.foot-links { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.foot-brand p { margin-top: 18px; color: var(--ink-3); font-size: 15px; max-width: 22em; }
.foot-col h2 { font: 500 11px/1.4 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 14px; }
.foot-col ul { display: grid; gap: 8px; }
.foot-col a { color: var(--ink-2); font-size: 15.5px; }
.foot-col a:is(:hover, :focus-visible) { color: var(--ink); }
.foot-base {
  margin-top: clamp(40px, 5vw, 64px); padding-top: 22px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  font: 400 12px/1.5 var(--f-mono); letter-spacing: .04em; color: var(--ink-3);
}

/* ── 404 ──────────────────────────────────────────────────────── */
.lost { min-height: calc(100svh - var(--header-h) - 200px); display: grid; align-content: center; padding: 80px 0; }
.lost .display { margin-top: 22px; }
.lost .btns { margin-top: 34px; }

/* ── responsive ───────────────────────────────────────────────── */
@media (min-width: 901px) and (max-height: 680px) {
  .split-intro { position: static; }
}
@media (min-width: 641px) and (max-width: 1100px) and (orientation: portrait) {
  .hero { min-height: auto; padding-block: 96px 72px; }
}
@media (max-width: 1100px) {
  .assure { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .era { padding: 20px 14px 0 0; }
  .era + .era { padding-left: 14px; }
  .era .what { font-size: 18px; }
  .era.now::before { left: 14px; }
}
@media (max-width: 900px) {
  .hero-row { grid-template-columns: 1fr; }
  .hero-tiles, .hero-form { justify-self: start; }
  .hero-form { width: min(100%, 420px); }
  .tiles { --t: 56px; --g: 10px; }
  .tiles-hint { text-align: left; }
  .split { grid-template-columns: minmax(0, 1fr); }
  .split-intro { position: static; }
  .define, .name-card { grid-template-columns: 1fr; }
  .gran { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 32px; }
  .beliefs, .modes { grid-template-columns: 1fr; gap: 36px; }
  .team { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr; border-top: 0; }
  .era, .era + .era { padding: 20px 0; border-left: 0; border-top: 1px solid var(--line); }
  .era:first-child { border-top-color: var(--ink); }
  .era .what { font-size: 20px; min-height: 0; }
  .era.now::before { left: 0; }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .hero { min-height: auto; padding-top: 40px; }
  .gran { grid-template-columns: 1fr; gap: 28px; }
  .gran-field { max-width: 420px; }
  .assure { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .foot-links { gap: 24px; }
  .foot-col ul { gap: 0; }
  .foot-col a { display: inline-flex; align-items: center; min-height: 44px; }
  .role { grid-template-columns: 1fr; }
  .role .title, .role p, .role .apply, .role .meta { grid-column: 1; grid-row: auto; justify-self: start; }
  .btn { min-height: 48px; padding: 0 20px; }
}
@media (max-width: 380px) {
  .big-mail { font-size: 9vw; }
  .tiles { --t: 46px; --g: 8px; }
}
@media (max-width: 360px) {
  .tag { letter-spacing: .05em; padding: 6px 8px; }
}

/* ── reduced motion: no slides, spins or cracks ───────────────── */
@media (prefers-reduced-motion: reduce) {
  .role .title, .btn .arr, .nav-links, .menu-btn span,
  .tile, .tile i, .gcell i, .swap > span { transition: none; }
  .role:is(:hover, :focus-visible) .title,
  .btn:is(:hover, :focus-visible) .arr { transform: none; }
}
