/* Keyvortx Technologies: site styles.
   Plain CSS, no build step. Colours, type sizes, spacing and durations come from the tokens in
   :root. If you need a new value, add a token first. */

:root {
  /* Colour */
  --bg: #0a0907;                    /* warm black */
  --surface: #121214;
  --surface-2: #19191c;
  --ink: #f2f1ee;
  --ink-2: #b4b2ac;
  --ink-3: #84827c;
  --rule: rgba(242, 241, 238, 0.11);
  --rule-strong: rgba(242, 241, 238, 0.34);
  --signal: #ff5a26;
  --signal-ink: #ff7d52;            /* signal light enough for small text on the dark background */
  --on-signal: #0b0b0c;
  --ok: #5fd08f;
  --edge: #050506;
  --surface-signal: #2a170f;
  --bg-glass: rgba(10, 9, 7, 0.72);
  --band-top: rgba(18, 18, 20, 0.9);
  --band-bottom: rgba(12, 12, 13, 0.6);
  /* Background: black and amber gold, after Deus Ex: Human Revolution */
  --glow-1: rgba(226, 160, 52, 0.17);
  --glow-2: rgba(160, 96, 28, 0.15);
  --glow-3: rgba(255, 90, 38, 0.07);
  --shaft: rgba(240, 180, 76, 0.05);
  --lattice: rgba(226, 160, 52, 0.14);
  --signal-wash: rgba(255, 90, 38, 0.14);

  /* Type scale (ratio about 1.45) */
  --t-xs: 12px;
  --t-s: 15px;
  --t-m: 17px;
  --t-lead: 20px;
  --t-l: 24px;
  --t-xl: 36px;
  --t-2xl: 54px;
  --t-3xl: 80px;
  --track-label: 0.12em;
  /* Measured: in RznSans Bold the closest pairs (r-y, r-f, y-v, r-t) sit 0.04-0.05em apart at
     default spacing. Tracking tighter than about -0.02em makes them touch, so stay above it. */
  --track-tight: -0.01em;
  --track-display: -0.02em;

  /* Space */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 96px;
  --s-10: 144px;
  --pad: clamp(16px, 4vw, 48px);
  --max: 1320px;

  /* Motion: the same duration scale as our desktop apps */
  --dur-instant: 120ms;
  --dur-fast: 180ms;
  --dur-base: 250ms;
  --dur-moderate: 350ms;
  --dur-slow: 500ms;
  --step: 70ms;                      /* stagger between items */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  /* The hero intro runs longer than interface feedback does */
  --rise: 900ms;
  --ease-rise: cubic-bezier(0.16, 1, 0.3, 1);
  --draw: 1100ms;
  --ease-draw: cubic-bezier(0.65, 0, 0.35, 1);
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "RznSans", sans-serif;
  font-size: var(--t-m);
  line-height: 1.55;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* Background, fixed behind everything: amber glows and two light shafts drift slowly (::before),
   and a faint lattice of shard-like triangles shows only where a drifting light falls on it (::after).
   Both move by transform only, so the animation stays off the main thread. */
body::before, body::after {
  content: ""; position: fixed; inset: -20%; z-index: -1; pointer-events: none;
  will-change: transform;
}
body::before {
  background:
    linear-gradient(112deg, transparent 38%, var(--shaft) 44%, transparent 50%),
    linear-gradient(112deg, transparent 58%, var(--shaft) 61%, transparent 64%),
    radial-gradient(45% 40% at 22% 18%, var(--glow-1), transparent 70%),
    radial-gradient(40% 45% at 82% 52%, var(--glow-2), transparent 70%),
    radial-gradient(50% 35% at 45% 92%, var(--glow-3), transparent 70%);
  animation: bg-drift 36s ease-in-out infinite alternate;
}
body::after {
  background:
    repeating-linear-gradient(0deg, var(--lattice) 0 1px, transparent 1px 56px),
    repeating-linear-gradient(60deg, var(--lattice) 0 1px, transparent 1px 56px),
    repeating-linear-gradient(-60deg, var(--lattice) 0 1px, transparent 1px 56px);
  -webkit-mask-image: radial-gradient(28% 24% at 30% 28%, #000, transparent), radial-gradient(24% 28% at 72% 62%, #000, transparent);
  mask-image: radial-gradient(28% 24% at 30% 28%, #000, transparent), radial-gradient(24% 28% at 72% 62%, #000, transparent);
  animation: bg-sweep 52s ease-in-out infinite alternate;
}
@keyframes bg-drift { from { transform: translate3d(-5%, -3%, 0); } to { transform: translate3d(5%, 4%, 0); } }
@keyframes bg-sweep { from { transform: translate3d(6%, -4%, 0); } to { transform: translate3d(-6%, 5%, 0); } }
h1, h2, h3, p, blockquote, dl, dd, ol { margin: 0; }
h1, h2, h3 { font-weight: 700; line-height: 1.05; letter-spacing: var(--track-tight); }
a { color: inherit; text-decoration: none; }
code { font-family: inherit; }
em { font-style: italic; }
::selection { background: var(--signal); color: var(--on-signal); }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; }

.skip {
  position: absolute; left: var(--s-4); top: -100px; z-index: 200;
  padding: var(--s-2) var(--s-4); background: var(--ink); color: var(--bg);
}
.skip:focus { top: var(--s-4); }

.sec-head, .m-name, .m-val, .feature-k, .field label {
  font-size: var(--t-xs);
  font-weight: 500;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
}

/* ---------- Load and scroll reveals ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
.load { animation: rise var(--dur-slow) var(--ease) both; animation-delay: calc(var(--d) * var(--step) + 200ms); }

/* Hidden only when site.js is running (it adds .js to <html>), so the page still reads without it. */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Header ---------- */
.top {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: var(--s-4);
  padding: var(--s-3) var(--pad);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-base) var(--ease), background var(--dur-base) var(--ease);
  animation: rise var(--dur-slow) var(--ease) both;
}
.top.scrolled { border-bottom-color: var(--rule); background: var(--bg-glass); -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3); }
.mark { display: inline-flex; align-items: center; gap: var(--s-3); justify-self: start; font-size: var(--t-lead); font-weight: 700; letter-spacing: var(--track-tight); }
.mark-icon { width: 30px; height: 30px; color: var(--ink); }
.mark-rings { transform-origin: 20px 20px; animation: spin 14s linear infinite; }   /* the vortex turns slowly */
.mark-inner { opacity: 0.55; }
@keyframes spin { to { transform: rotate(360deg); } }
.clock { font-size: var(--t-s); color: var(--ink-2); white-space: nowrap; }
.clock-city { color: var(--ink); font-weight: 700; }
.links { display: flex; justify-content: flex-end; gap: var(--s-5); font-size: var(--t-s); }
.links a { position: relative; display: inline-flex; gap: var(--s-2); padding: var(--s-1) 0; }
.links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform var(--dur-moderate) var(--ease);
}
.links a:hover::after { transform: scaleX(1); transform-origin: left; }
.links-cta { font-weight: 700; }
.links-cta i, .arrow-link i, .send i { font-style: normal; display: inline-block; transition: transform var(--dur-base) var(--ease), color var(--dur-instant); }
.links-cta:hover i { transform: translateX(3px); color: var(--signal-ink); }
@media (max-width: 900px) { .links .wide-only { display: none; } }
@media (max-width: 700px) { .clock { display: none; } .top { grid-template-columns: auto 1fr; } }

/* ---------- Hero: a type specimen ---------- */
.hero { max-width: var(--max); margin: 0 auto; padding: calc(var(--s-9) + var(--s-2)) var(--pad) 0; }
.specimen { --gut-l: 128px; --gut-r: 104px; position: relative; margin-top: var(--s-4); }
@media (max-width: 760px) { .specimen { --gut-l: 0px; --gut-r: 0px; } .m-name, .m-val { display: none; } }
.word {
  position: relative; z-index: 1;
  font-size: clamp(64px, 21vw, 300px);       /* site.js fits it to the column exactly */
  line-height: 1; letter-spacing: 0; white-space: nowrap;   /* a specimen shows the font's own spacing */
  padding: 0.18em var(--gut-r) 0.28em var(--gut-l);
}
.word-inner {
  display: inline-block;
  clip-path: inset(-0.5em -0.3em -0.07em -0.3em);   /* the mask the letters rise through: its bottom edge is the descender line */
}
/* Intro: the guide lines draw in as soon as the page paints. Once the font is ready, each letter
   fades in, left to right. */
.ch {
  display: inline-block; cursor: default;
  opacity: 0;
  transition: opacity var(--rise) var(--ease) calc(var(--k, 0) * 55ms), color var(--dur-instant) 0s;
  animation: shown 1ms linear 3s forwards;   /* fallback if the script never runs */
}
.js .ch { animation-delay: 6s; }             /* and a late one if it stalls */
@keyframes shown { to { opacity: 1; } }
.ch.set { opacity: 1; animation: none; }
.ch.set:hover { color: var(--signal); }
.probe { display: inline-block; width: 0; height: 0; }

.metric {
  position: absolute; left: 0; right: 0; top: var(--y, -999px); z-index: 0; pointer-events: none;
  display: flex; align-items: center; gap: var(--s-2); transform: translateY(-50%);
}
.specimen.placed .metric { transition: top var(--dur-moderate) var(--ease); }   /* glides when measurements replace the estimate */
.metric::before {
  content: ""; order: 2; flex: 1; height: 1px;
  background: repeating-linear-gradient(90deg, var(--ink-3) 0 6px, transparent 6px 11px);
  clip-path: inset(0 100% 0 0);              /* revealed, not stretched, so the dashes keep their length */
  transition: clip-path var(--draw) var(--ease-draw) calc(var(--mi, 0) * 90ms);
}
.specimen.lines .metric::before { clip-path: inset(0 0 0 0); }
.metric-base::before { background: var(--ink-2); }
.metric[hidden] { display: none; }
.metric.no-label .m-name, .metric.no-label .m-val { visibility: hidden; }
.m-name, .m-val {
  line-height: 1.2; color: var(--ink-2); white-space: nowrap;
  opacity: 0; transition: opacity var(--dur-slow) ease calc(var(--mi, 0) * 90ms + 150ms);
}
.specimen.lines .m-name, .specimen.lines .m-val { opacity: 1; }
.m-name { order: 1; }
.m-val { order: 3; color: var(--ink); }
.metric-base .m-name, .metric-base .m-val { color: var(--signal-ink); font-weight: 700; }

.hero-foot {
  display: grid; grid-template-columns: 1.25fr 1fr; gap: var(--s-8); align-items: end;
  margin-top: var(--s-8); padding-top: var(--s-6); border-top: 1px solid var(--rule-strong);
}
.lead { font-size: clamp(34px, 4.2vw, 60px); font-weight: 700; line-height: 1.05; letter-spacing: var(--track-tight); max-width: 12em; }
.intro > p:first-child { font-size: var(--t-lead); line-height: 1.5; }
.intro-links { display: flex; flex-wrap: wrap; gap: var(--s-4) var(--s-6); margin-top: var(--s-6); }
.arrow-link {
  display: inline-flex; align-items: center; gap: var(--s-2);
  padding-bottom: var(--s-1); border-bottom: 2px solid var(--ink); font-weight: 700;
  transition: border-color var(--dur-fast);
}
.arrow-link:hover { border-color: var(--signal); }
.arrow-link:hover i { transform: translateX(4px); color: var(--signal-ink); }
.arrow-link.quiet { font-weight: 500; border-bottom-color: var(--rule-strong); }
.arrow-link.quiet:hover i { transform: translateY(3px); }
.foot .arrow-link.quiet:hover i { transform: translateY(-3px); }
@media (max-width: 860px) { .hero-foot { grid-template-columns: 1fr; gap: var(--s-6); } }

/* ---------- Ticker: a slow, continuous marquee ---------- */
.ticker { margin-top: var(--s-9); overflow: hidden; border-block: 1px solid var(--rule-strong); padding: var(--s-4) 0; }
.ticker-track { display: flex; align-items: center; gap: var(--s-5); width: max-content; animation: marquee 70s linear infinite; }
@keyframes marquee { to { transform: translateX(calc(-50% - var(--s-5) / 2)); } }
.ticker span { font-size: var(--t-l); font-weight: 500; letter-spacing: -0.02em; white-space: nowrap; }
.ticker b { width: 10px; height: 10px; background: var(--signal); flex: none; }

/* ---------- Sections ---------- */
.sec { max-width: var(--max); margin: 0 auto; padding: var(--s-9) var(--pad) 0; }
.sec-head { display: flex; align-items: center; gap: var(--s-4); color: var(--ink-2); }
.sec-num { color: var(--signal-ink); font-weight: 700; }
.sec-rule { flex: 1; height: 1px; background: var(--ink-3); transform: scaleX(0); transform-origin: left; transition: transform var(--dur-slow) var(--ease) 150ms; }
.sec-head.in .sec-rule { transform: scaleX(1); }
.sec-title { max-width: 18em; margin: var(--s-6) 0 var(--s-7); font-size: clamp(32px, 4.6vw, var(--t-2xl)); }

/* §01 services: three cards, icons draw themselves in */
.services { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--rule-strong); }
.svc { position: relative; padding: var(--s-6) var(--s-5) var(--s-7) 0; border-bottom: 1px solid var(--rule); }
.svc + .svc { padding-left: var(--s-5); border-left: 1px solid var(--rule); }
.svc::before {
  content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 2px; background: var(--signal);
  transform: scaleX(0); transform-origin: left; transition: transform var(--dur-moderate) var(--ease);
}
.svc:hover::before { transform: scaleX(1); }
.svc-icon {
  display: block; width: 48px; height: 48px; overflow: visible;
  fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
  color: var(--ink); transition: color var(--dur-fast), transform var(--dur-moderate) var(--ease);
}
.svc-icon path { stroke-dasharray: 1; stroke-dashoffset: 0; }
.js .svc-icon path { stroke-dashoffset: 1; transition: stroke-dashoffset var(--dur-slow) var(--ease) calc(var(--p, 0) * 120ms + 200ms); }
.js .svc.in .svc-icon path { stroke-dashoffset: 0; }
.svc-icon path:nth-child(2) { --p: 1; } .svc-icon path:nth-child(3) { --p: 2; } .svc-icon path:nth-child(4) { --p: 3; }
.svc:hover .svc-icon { color: var(--signal); transform: translateY(-4px); }
.svc h3 { margin: var(--s-7) 0 var(--s-2); font-size: var(--t-l); }
.svc p { color: var(--ink-2); font-size: var(--t-s); max-width: 22em; }
.services .svc:nth-child(2) { transition-delay: 70ms; }
.services .svc:nth-child(3) { transition-delay: 140ms; }
@media (max-width: 900px) {
  .services { grid-template-columns: 1fr; }
  .svc, .svc + .svc {
    display: grid; grid-template-columns: 48px 1fr; column-gap: var(--s-4); align-items: start;
    padding: var(--s-5) 0; border-left: 0;
  }
  .svc-icon { grid-row: 1 / 3; width: 40px; height: 40px; }
  .svc h3 { margin: 0 0 var(--s-1); }
}

/* Prototype to production: a highlighted service with its four steps */
.feature {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: var(--s-8); align-items: center;
  margin-top: var(--s-7); padding: var(--s-7) var(--s-6);
  border: 1px solid var(--rule-strong);
  background: linear-gradient(135deg, var(--signal-wash), transparent 55%), var(--surface);
}
.feature-k { color: var(--signal-ink); }
.feature h3 { margin: var(--s-3) 0 var(--s-4); font-size: clamp(28px, 3.2vw, var(--t-xl)); max-width: 16em; }
.feature-copy > p:not(.feature-k) { color: var(--ink-2); max-width: 32em; }
.feature .arrow-link { margin-top: var(--s-6); }
.pipeline { position: relative; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-3); }
.pipeline::before, .pipeline::after {
  content: ""; position: absolute; left: 8px; right: 8px; top: 7px; height: 2px; background: var(--rule-strong);
}
.pipeline::after {
  background: var(--signal); transform: scaleX(0); transform-origin: left;
  transition: transform calc(var(--dur-slow) * 3) var(--ease) 300ms;
}
.feature.in .pipeline::after { transform: scaleX(1); }
.pipeline li { position: relative; padding-top: var(--s-6); font-size: var(--t-lead); font-weight: 700; }
.pipeline li::before {
  content: ""; position: absolute; left: 0; top: 0; width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid var(--rule-strong); background: var(--surface);
  transition: background var(--dur-base), border-color var(--dur-base), box-shadow var(--dur-base);
  transition-delay: calc(var(--n) * 375ms + 300ms);
}
.feature.in .pipeline li::before { background: var(--signal); border-color: var(--signal); box-shadow: 0 0 0 6px var(--signal-wash); }
.pipeline li span { display: block; margin-top: var(--s-1); font-size: var(--t-s); font-weight: 400; color: var(--ink-2); }
@media (max-width: 960px) { .feature { grid-template-columns: 1fr; gap: var(--s-7); } }
@media (max-width: 560px) {
  .feature { padding: var(--s-6) var(--s-4); }
  .pipeline { grid-template-columns: 1fr 1fr; row-gap: var(--s-6); }
  .pipeline::before, .pipeline::after { display: none; }
}

/* §02 principles: a large-type list; a row fills with the signal colour on hover */
.values { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule-strong); }
.value {
  position: relative; isolation: isolate;
  display: grid; grid-template-columns: 56px minmax(0, 0.8fr) minmax(0, 1fr); gap: var(--s-5); align-items: baseline;
  padding: var(--s-5) 0; border-bottom: 1px solid var(--rule);
}
.value::before {
  content: ""; position: absolute; inset: 0 calc(var(--s-3) * -1); z-index: -1; background: var(--signal);
  transform: scaleY(0); transform-origin: bottom; transition: transform var(--dur-moderate) var(--ease);
}
.value:hover::before { transform: scaleY(1); }
.value-n { color: var(--signal-ink); font-size: var(--t-s); font-weight: 700; transition: color var(--dur-instant); }
.value-t {
  font-size: clamp(30px, 3.4vw, 46px); line-height: 1.1; letter-spacing: var(--track-display);
  transition: transform var(--dur-moderate) var(--ease), color var(--dur-instant);
}
.value-d { color: var(--ink-2); max-width: 30em; transition: color var(--dur-instant); }
.value:hover .value-n, .value:hover .value-t, .value:hover .value-d { color: var(--on-signal); }
.value:hover .value-t { transform: translateX(var(--s-3)); }
@media (max-width: 760px) {
  .value { grid-template-columns: 40px 1fr; row-gap: var(--s-2); }
  .value-d { grid-column: 2; }
}

/* §03 capabilities: an exploded stack */
.sec-dark { max-width: none; margin-top: var(--s-10); padding: var(--s-9) 0; background: linear-gradient(180deg, var(--band-top), var(--band-bottom)); border-block: 1px solid var(--rule); }
.sec-dark-inner { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }

.stack { --sep: 0; display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-8); align-items: center; }
.stack-fig { position: relative; height: 720px; display: grid; place-items: center; }
.plates { position: relative; width: 230px; height: 230px; transform-style: preserve-3d; transform: translateY(210px) rotateX(58deg) rotateZ(-45deg); }
.plate { position: absolute; inset: 0; transform-style: preserve-3d; transform: translateZ(calc(var(--i) * (14px + var(--sep) * 86px))); }
.face {
  position: absolute; inset: 0; transform-style: preserve-3d;
  border: 1.5px solid var(--ink-2); background-color: var(--surface-2); color: var(--ink-2);
  transition: border-color var(--dur-base), background-color var(--dur-base), color var(--dur-base);
}
.face::after { content: ""; position: absolute; inset: -1.5px; transform: translateZ(-10px); background: var(--edge); border: 1.5px solid var(--rule); }
.plate.on .face { border-color: var(--signal); background-color: var(--surface-signal); color: var(--signal); }
.f-metal { display: flex; flex-direction: column; justify-content: center; gap: 10px; padding: var(--s-5); }
.f-metal i { height: 22px; border: 1px solid currentColor; }
.f-platform { background-image: linear-gradient(currentColor 1px, transparent 1px), linear-gradient(90deg, currentColor 1px, transparent 1px); background-size: 23px 23px; background-position: -1px -1px; }
.f-type i { position: absolute; left: 10%; right: 10%; height: 1px; background: currentColor; }
.f-type i:nth-child(1) { top: 28%; } .f-type i:nth-child(2) { top: 44%; } .f-type i:nth-child(3) { top: 72%; }
.f-type b { position: absolute; left: 50%; top: 44%; width: 28%; height: 28%; border: 2px solid currentColor; border-radius: 50%; transform: translateX(-50%); }
.f-ui { display: grid; grid-template-columns: 58px 1fr; grid-template-rows: 20px 1fr; gap: 10px; padding: var(--s-5); }
.f-ui i { border: 1px solid currentColor; }
.f-ui i:first-child { grid-column: 1 / 3; }
.f-product { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-5); padding: 40px; }
.f-product i { border: 1.5px solid currentColor; border-radius: 24%; }
.f-story { display: grid; place-items: center; }
.f-story i { width: 0; height: 0; border-left: 64px solid currentColor; border-top: 38px solid transparent; border-bottom: 38px solid transparent; margin-left: var(--s-4); }

.layers { list-style: none; padding: 0; border-top: 1px solid var(--ink-2); }
.layer {
  position: relative; display: grid; grid-template-columns: 48px 1fr; gap: var(--s-3);
  padding: var(--s-4) 0; border-bottom: 1px solid var(--rule); color: var(--ink-2); cursor: default;
  transition: color var(--dur-base);
}
.layer::before { content: ""; position: absolute; left: calc(var(--s-4) * -1); top: var(--s-4); bottom: var(--s-4); width: 3px; background: var(--signal); transform: scaleY(0); transition: transform var(--dur-base) var(--ease); }
.layer-n { font-size: var(--t-xs); font-weight: 700; letter-spacing: var(--track-label); padding-top: 6px; }
.layer h3 { font-size: var(--t-l); color: inherit; }
.layer p { font-size: var(--t-s); margin-top: var(--s-1); }
.layer.on { color: var(--ink); }
.layer.on::before { transform: scaleY(1); }
.layer.on .layer-n { color: var(--signal); }
@media (max-width: 960px) {
  .stack { grid-template-columns: 1fr; gap: var(--s-5); }
  .stack-fig { height: 470px; }
  .plates { width: 180px; height: 180px; transform: translateY(120px) rotateX(58deg) rotateZ(-45deg); }
  .plate { transform: translateZ(calc(var(--i) * (10px + var(--sep) * 38px))); }
  .f-product { padding: 30px; gap: var(--s-4); }
  .f-metal { padding: var(--s-4); gap: 7px; } .f-metal i { height: 17px; }
  .f-story i { border-left-width: 50px; border-top-width: 30px; border-bottom-width: 30px; }
  .layer::before { left: -10px; }
}

/* §04 contact */
.contact { margin-top: var(--s-6); max-width: 880px; }
.jom { font-size: clamp(48px, 6.4vw, 92px); line-height: 0.95; letter-spacing: var(--track-display); }
.jom-dot { color: var(--signal); }
.contact-text { margin-top: var(--s-4); color: var(--ink-2); font-size: var(--t-lead); max-width: 32em; }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-5); margin-top: var(--s-7); }
.field-wide, .form-foot { grid-column: 1 / -1; }
.field { position: relative; display: grid; gap: var(--s-2); }
.field label { color: var(--ink-2); transition: color var(--dur-fast); }
.field input, .field textarea {
  width: 100%; padding: var(--s-3) var(--s-4); border: 1px solid var(--rule); border-bottom: 1.5px solid var(--rule-strong); border-radius: 0;
  background: var(--surface); color: var(--ink); font: inherit; font-size: var(--t-lead); font-weight: 500;
  outline: none; resize: none;
}
.field textarea { line-height: 1.45; min-height: 150px; }
.field::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--signal);
  transform: scaleX(0); transform-origin: left; transition: transform var(--dur-moderate) var(--ease);
}
.field:focus-within::after { transform: scaleX(1); }
.field:focus-within label { color: var(--ink); }
.field.invalid label { color: var(--signal-ink); }
.field.invalid input, .field.invalid textarea { border-bottom-color: var(--signal-ink); }
.hp { position: absolute; left: -9999px; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-4) var(--s-5); }
.send {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; gap: var(--s-4);
  padding: var(--s-4) var(--s-6); border: 0; border-radius: 0; background: var(--ink); color: var(--bg);
  font: inherit; font-size: var(--t-m); font-weight: 700; cursor: pointer;
  transition: color var(--dur-base);
}
.send::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--signal); transform: scaleX(0); transform-origin: left; transition: transform var(--dur-moderate) var(--ease); }
.send:hover { color: var(--on-signal); }
.send:hover::before { transform: scaleX(1); }
.send:hover i { transform: translateX(4px); }
.send:disabled { opacity: 0.5; cursor: progress; }
.form-status { font-size: var(--t-s); color: var(--ink-2); }
.form-status.ok { color: var(--ok); font-weight: 500; }
.form-status.err { color: var(--signal-ink); font-weight: 500; }
.form.sent .field { opacity: 0.4; pointer-events: none; transition: opacity var(--dur-slow); }
@media (max-width: 640px) { .form { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.foot { max-width: var(--max); margin: var(--s-9) auto 0; padding: 0 var(--pad); }
.foot-row {
  padding: var(--s-4) 0 var(--s-6); border-top: 1px solid var(--rule);
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--s-3) var(--s-6);
  font-size: var(--t-s); color: var(--ink-2);
}

/* ---------- 404 ---------- */
.lost { min-height: 100svh; display: grid; place-items: center; padding: var(--pad); text-align: center; }
.lost h1 { font-size: clamp(110px, 26vw, 300px); letter-spacing: var(--track-display); line-height: 0.85; }
.lost h1 span { color: var(--signal); }
.lost p { margin: var(--s-5) 0 var(--s-6); color: var(--ink-2); font-size: var(--t-lead); }

/* ---------- Less motion when the system asks for it ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 1ms !important; animation-delay: 0ms !important; animation-iteration-count: 1 !important;
    transition-duration: 1ms !important; transition-delay: 0ms !important;
  }
  /* Elements without their own transition list default to "all": keep the specimen's
     font-size change instant, or site.js would measure a size mid-change. */
  .word, .word-inner, .probe { transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
