/* ══════════════════════════════════════════════════════════════════════
   SHRESTECH — the specimen portfolio
   Design system: research-journal serif × terminal mono on lab void.
   One living organism (WebGL) behind everything; everything else quiet.
   ══════════════════════════════════════════════════════════════════════ */

/* ── Fonts (self-hosted, latin subsets) ─────────────────────────────── */
@font-face {
  font-family: "Instrument Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/ins-serif-regular.woff2") format("woff2");
}
@font-face {
  font-family: "Instrument Serif";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/ins-serif-italic.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 100 700;
  font-display: swap;
  src: url("/assets/fonts/plex-sans-var.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/plex-mono-400.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/plex-mono-500.woff2") format("woff2");
}

/* ── Tokens ────────────────────────────────────────────────────────────
   Two temperatures: the room is warm (lab charcoal, bone ink); the
   organism is cold (brand blue/cyan). Temperature, not brightness,
   separates the specimen from its ground. */
:root {
  --void: #0C0B09;
  --void-2: #14120E;
  --ink: #F2EDE3;
  --dim: #A9A093;
  --faint: #6B6459;
  --line: #27231B;
  --line-bright: #3D372B;
  --signal: #3D7BFF;
  --cyan: #00D4FF;

  --font-display: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --font-body: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --maxw: 1160px;
  --gutter: clamp(1.25rem, 4.5vw, 3.5rem);
  --section-pad: clamp(6rem, 16vh, 11rem);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
}

/* ── Base ────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html {
  background: var(--void);
  color-scheme: dark;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: transparent;
  color: var(--ink);
  font: 400 1.0625rem/1.72 var(--font-body);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

::selection { background: var(--cyan); color: var(--void); }

a { color: inherit; text-decoration: none; }

img, svg { display: block; }

em { font-style: italic; }

h1, h2, h3, p, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }

abbr[title] { text-decoration: none; }

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 2px;
}

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--void); }
::-webkit-scrollbar-thumb { background: var(--line); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--line-bright); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}

.skip-link {
  position: fixed; top: -100%; left: 1rem; z-index: 300;
  padding: .8rem 1.2rem;
  background: var(--cyan); color: var(--void);
  font: 500 .8rem var(--font-mono); letter-spacing: .08em;
  border-radius: 2px;
  transition: top .2s var(--ease-out);
}
.skip-link:focus { top: 1rem; }

/* ── Layer cake: organism canvas → backdrop → vignette → content ────── */
#organism {
  position: fixed; inset: 0;
  width: 100vw; height: 100vh;
  z-index: 0;
  display: block;
}
html.no-webgl #organism { display: none; }

.backdrop {
  position: fixed; inset: 0; z-index: 0;
  background:
    radial-gradient(46% 36% at 62% 38%, rgba(61, 123, 255, 0.14), transparent 70%),
    radial-gradient(28% 22% at 70% 26%, rgba(0, 212, 255, 0.06), transparent 70%),
    var(--void);
  display: none;
}
html.no-webgl .backdrop { display: block; }

.vignette {
  position: fixed; inset: 0; z-index: 0;
  pointer-events: none;
  background: radial-gradient(130% 100% at 50% 38%, transparent 52%, rgba(12, 11, 9, 0.62) 100%);
}

/* the reading scrim: the organism frames the page at its edges, but
   the copy column sits on a dark bed — text wins its fights */
.scrim {
  position: fixed; inset: 0; z-index: 0;
  pointer-events: none;
  background: linear-gradient(90deg,
    rgba(12, 11, 9, 0) 0%,
    rgba(12, 11, 9, 0.52) 16%,
    rgba(12, 11, 9, 0.52) 84%,
    rgba(12, 11, 9, 0) 100%);
}
@media (max-width: 760px) {
  .scrim { background: rgba(12, 11, 9, 0.55); }
}

.site-head, main, .site-foot { position: relative; z-index: 1; }

/* ── The examination lens (custom cursor) ──────────────────────────────
   The cursor is the instrument: a reticle lens that follows the probe.
   Inside it the organism gives up its structure — the reveal is the
   service, rendered in WebGL; this is the frame around it. */
.cursor {
  position: fixed; top: 0; left: 0; z-index: 400;
  pointer-events: none;
  display: none;
}
html.js-anim.fine-pointer .cursor { display: block; }
html.js-anim.fine-pointer * { cursor: none !important; }

.cursor-lens {
  position: absolute; top: 0; left: 0;
  width: 118px; height: 118px; margin: -59px 0 0 -59px;
  border: 1px solid rgba(0, 212, 255, 0.34);
  border-radius: 50%;
  transition: width .3s var(--ease-out), height .3s var(--ease-out),
              margin .3s var(--ease-out), border-color .3s, opacity .3s;
  will-change: transform;
}
.lens-tick { position: absolute; background: rgba(0, 212, 255, 0.85); }
.lens-tick.t { left: 50%; top: -1px; width: 1px; height: 9px; }
.lens-tick.b { left: 50%; bottom: -1px; width: 1px; height: 9px; }
.lens-tick.l { top: 50%; left: -1px; width: 9px; height: 1px; }
.lens-tick.r { top: 50%; right: -1px; width: 9px; height: 1px; }

.lens-bracket { position: absolute; width: 12px; height: 12px; opacity: 0; transition: opacity .25s; }
.lens-bracket.tl { top: 14px; left: 14px; border-top: 1px solid var(--cyan); border-left: 1px solid var(--cyan); }
.lens-bracket.tr { top: 14px; right: 14px; border-top: 1px solid var(--cyan); border-right: 1px solid var(--cyan); }
.lens-bracket.bl { bottom: 14px; left: 14px; border-bottom: 1px solid var(--cyan); border-left: 1px solid var(--cyan); }
.lens-bracket.br { bottom: 14px; right: 14px; border-bottom: 1px solid var(--cyan); border-right: 1px solid var(--cyan); }

.lens-binary {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border-radius: 50%;
  mix-blend-mode: screen;
  opacity: 0.85;
}

.lens-cross {
  position: absolute; top: 50%; left: 50%;
  width: 14px; height: 14px; margin: -7px 0 0 -7px;
  opacity: 0.9;
}
.lens-cross::before, .lens-cross::after {
  content: ""; position: absolute; background: var(--cyan);
}
.lens-cross::before { left: 50%; top: 0; bottom: 0; width: 1px; }
.lens-cross::after { top: 50%; left: 0; right: 0; height: 1px; }

.cursor-dot {
  position: absolute; top: 0; left: 0;
  width: 5px; height: 5px; margin: -2.5px 0 0 -2.5px;
  background: var(--cyan);
  border-radius: 50%;
  will-change: transform;
}
.cursor-readout {
  position: absolute; top: 0; left: 0;
  transform: translate(70px, 52px);
  font: 500 .58rem/1.7 var(--font-mono);
  letter-spacing: .14em; text-transform: uppercase;
  color: rgba(0, 212, 255, 0.85);
  white-space: nowrap;
  text-align: left;
}
.cursor-readout::before {
  content: ""; display: block; width: 5px; height: 5px;
  margin-bottom: 5px; border-radius: 50%;
  background: var(--cyan);
  animation: readout-blink 1.6s steps(2) infinite;
}
@keyframes readout-blink { 50% { opacity: 0.25; } }
.cursor-label {
  position: absolute; top: 0; left: 0;
  transform: translate(70px, -30px);
  font: 500 .62rem/1 var(--font-mono);
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--cyan);
  opacity: 0;
  transition: opacity .25s;
  white-space: nowrap;
}
body[data-cursor="link"] .cursor-lens {
  width: 88px; height: 88px; margin: -44px 0 0 -44px;
  border-color: rgba(0, 212, 255, 0.8);
}
body[data-cursor="link"] .lens-bracket { opacity: 1; }
body[data-cursor="link"] .cursor-label { opacity: 1; }
body[data-cursor="link"] .cursor-readout { opacity: 0.35; }
body[data-cursor="down"] .cursor-lens {
  width: 64px; height: 64px; margin: -32px 0 0 -32px;
  border-color: rgba(242, 237, 227, 0.7);
}

/* ── Header / nav ────────────────────────────────────────────────────── */
.site-head {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background .4s, border-color .4s, backdrop-filter .4s;
  border-bottom: 1px solid transparent;
}
.site-head.scrolled {
  background: rgba(12, 11, 9, 0.72);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}

.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem;
  padding: 1.1rem var(--gutter);
  max-width: var(--maxw);
  margin: 0 auto;
}

.brand {
  display: inline-flex; align-items: center; gap: .7rem;
  color: var(--ink);
}
.brand-mark { width: 30px; height: 30px; color: var(--cyan); }
.brand-probe { color: var(--signal); fill: var(--signal); }
.brand-name {
  font: 500 .82rem var(--font-mono);
  letter-spacing: .34em;
}
.brand:hover .brand-mark { color: var(--signal); }
.brand-mark, .brand-probe { transition: color .3s; }

.nav-menu {
  display: flex; align-items: center; gap: 2.2rem;
}
.nav-links { display: flex; gap: 1.9rem; }
.nav-links a {
  position: relative;
  font: 500 .72rem var(--font-mono);
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--dim);
  padding: .4rem 0;
  transition: color .25s;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--cyan);
  transform: scaleX(0); transform-origin: right;
  transition: transform .35s var(--ease-out);
}
.nav-links a:hover, .nav-links a:focus-visible { color: var(--ink); }
.nav-links a:hover::after, .nav-links a:focus-visible::after {
  transform: scaleX(1); transform-origin: left;
}

.nav-toggle {
  display: none;
  background: none; border: 0; padding: .6rem;
  color: var(--ink);
}
.nav-toggle-bar {
  display: block; width: 22px; height: 1.5px;
  background: currentColor; margin: 5px 0;
  transition: transform .3s var(--ease-out), opacity .3s;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* sound toggle */
.sound-toggle {
  display: inline-flex; align-items: center; gap: .65rem;
  background: none;
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: .5rem .85rem;
  color: var(--dim);
  font: 500 .64rem var(--font-mono);
  letter-spacing: .18em; text-transform: uppercase;
  transition: border-color .3s, color .3s;
}
.sound-toggle:hover { border-color: var(--line-bright); color: var(--ink); }
.sound-icon { display: inline-flex; align-items: flex-end; gap: 2px; height: 12px; }
.sound-bar {
  width: 2px; height: 100%;
  background: currentColor; opacity: .45;
  transform: scaleY(.3); transform-origin: bottom;
}
html.sound-on .sound-toggle { color: var(--cyan); border-color: rgba(0, 212, 255, .4); }
html.sound-on .sound-bar {
  opacity: 1;
  animation: eq 1.1s ease-in-out infinite;
}
html.sound-on .sound-bar:nth-child(1) { animation-delay: 0s; }
html.sound-on .sound-bar:nth-child(2) { animation-delay: .18s; }
html.sound-on .sound-bar:nth-child(3) { animation-delay: .36s; }
html.sound-on .sound-bar:nth-child(4) { animation-delay: .54s; }
@keyframes eq {
  0%, 100% { transform: scaleY(.25); }
  50% { transform: scaleY(1); }
}

/* ── Section scaffolding ─────────────────────────────────────────────── */
.section-pad { padding: var(--section-pad) var(--gutter); }
.section-inner {
  max-width: var(--maxw);
  margin: 0 auto;
}
section { scroll-margin-top: 4.5rem; }

.section-head { max-width: 46rem; margin-bottom: clamp(3rem, 7vh, 5rem); }
.section-head h2 {
  font: 400 clamp(2.5rem, 5.6vw, 4.3rem)/1.04 var(--font-display);
  letter-spacing: -0.01em;
  margin: 1.4rem 0 1.6rem;
}
.section-head h2 em { color: var(--cyan); }
.section-lede { color: var(--dim); max-width: 36rem; font-size: 1.1rem; }

.stamp {
  display: flex; align-items: center; gap: 1.1rem;
  font: 500 .7rem/1 var(--font-mono);
  letter-spacing: .24em; text-transform: uppercase;
  color: var(--dim);
}
.stamp-idx { color: var(--cyan); }
.stamp::after {
  content: ""; flex: 1; height: 1px;
  background: linear-gradient(90deg, var(--line), transparent);
}

/* ── Hero ────────────────────────────────────────────────────────────── */
.hero {
  min-height: 100svh;
  display: grid;
  align-items: center;
  position: relative;
}
.hero-inner {
  width: min(var(--maxw), 100%);
  margin: 0 auto;
  padding: 7rem var(--gutter) 9rem;
}
.eyebrow {
  font: 500 .72rem var(--font-mono);
  letter-spacing: .3em; text-transform: uppercase;
  color: var(--dim);
  display: flex; align-items: center; gap: 1rem;
}
.eyebrow::before {
  content: ""; width: 2.6rem; height: 1px;
  background: var(--cyan);
}

.hero-title {
  font: 400 clamp(2.7rem, 7.2vw, 6.9rem)/1.02 var(--font-display);
  letter-spacing: -0.015em;
  margin: 2.2rem 0 2.4rem;
  text-wrap: balance;
  text-shadow: 0 2px 40px rgba(12, 11, 9, 0.8);
}
.hero-title em { color: var(--cyan); }
.hero-title .line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.hero-title .line-inner { display: inline-block; will-change: transform; }
html.js-anim .hero-title .line-inner {
  transform: translateY(115%);
  animation: rise 1.15s var(--ease-out) forwards;
}
html.js-anim .hero-title .line:nth-child(2) .line-inner { animation-delay: .14s; }
@keyframes rise { to { transform: translateY(0); } }

.lede {
  color: var(--dim);
  font-size: clamp(1.05rem, 1.6vw, 1.22rem);
  max-width: 34rem;
  text-shadow: 0 1px 24px rgba(12, 11, 9, 0.9);
}

.hero-cta {
  display: flex; flex-wrap: wrap; gap: 1rem;
  margin-top: 2.6rem;
}

.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  font: 500 .76rem var(--font-mono);
  letter-spacing: .16em; text-transform: uppercase;
  padding: 1.05rem 1.7rem;
  border-radius: 2px;
  border: 1px solid transparent;
  transition: background .3s, border-color .3s, color .3s, box-shadow .3s;
}
.btn-solid {
  background: var(--signal); color: #F4F8FF;
}
.btn-solid:hover {
  background: #5A8DFF;
  box-shadow: 0 10px 40px rgba(61, 123, 255, 0.35);
}
.btn-ghost {
  border-color: var(--line-bright); color: var(--ink);
}
.btn-ghost:hover { border-color: var(--cyan); color: var(--cyan); }

.hero-chips {
  display: flex; flex-wrap: wrap; gap: .7rem;
  margin-top: 3.2rem;
}
.hero-chips li {
  font: 400 .64rem var(--font-mono);
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--dim);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: .5rem .8rem;
  background: rgba(12, 11, 9, 0.45);
}

/* the specimen tag — names the metaphor once, sits near the organism */
.hero-specimen {
  position: absolute;
  right: clamp(1rem, 4vw, 4rem);
  bottom: clamp(5rem, 12vh, 8rem);
  font: 500 .6rem/1.8 var(--font-mono);
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--dim);
  text-align: right;
  display: none;
}
.hero-specimen .spec-dot {
  display: inline-block;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--cyan);
  margin-right: .5rem;
  vertical-align: 1px;
  animation: readout-blink 1.8s steps(2) infinite;
}
.hero-specimen .spec-name { color: var(--dim); }
@media (min-width: 900px) { .hero-specimen { display: block; } }

.scroll-hint {
  position: absolute;
  left: 50%; bottom: 2.2rem;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: .8rem;
  font: 500 .62rem var(--font-mono);
  letter-spacing: .3em; text-transform: uppercase;
  color: var(--dim);
}
.scroll-line {
  width: 1px; height: 3.2rem;
  background: linear-gradient(var(--cyan), transparent);
  overflow: hidden;
  position: relative;
}
.scroll-line::after {
  content: ""; position: absolute; inset: 0;
  background: var(--cyan);
  transform-origin: top;
  animation: drip 2.2s var(--ease-soft) infinite;
}
@keyframes drip {
  0% { transform: scaleY(0); transform-origin: top; }
  45% { transform: scaleY(1); transform-origin: top; }
  55% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ── Manifesto ───────────────────────────────────────────────────────── */
.manifesto { position: relative; }
.manifesto-inner {
  max-width: 62rem;
  margin: 0 auto;
  padding-top: clamp(9rem, 24vh, 15rem);
  padding-bottom: clamp(9rem, 24vh, 15rem);
}
.manifesto-text {
  font: 400 clamp(1.9rem, 4.4vw, 3.4rem)/1.32 var(--font-display);
  letter-spacing: -0.005em;
  text-wrap: balance;
}
.manifesto-text .w { transition: opacity .5s var(--ease-soft), color .5s var(--ease-soft); }
html.js-anim .manifesto-text .w { opacity: 0.16; }
html.js-anim .manifesto-text .w.lit { opacity: 1; }
html.js-anim .manifesto-text .w.hot { color: var(--cyan); opacity: 1; }
.manifesto-sig {
  margin-top: 2.4rem;
  font: 400 .7rem var(--font-mono);
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--dim);
  text-align: right;
}

/* ── Services ────────────────────────────────────────────────────────── */
.service-list { border-bottom: 1px solid var(--line); }
.service-row {
  position: relative;
  display: grid;
  grid-template-columns: 4.5rem minmax(13rem, 0.85fr) 1.35fr;
  gap: clamp(1.2rem, 3vw, 3rem);
  align-items: baseline;
  padding: clamp(1.8rem, 4vh, 2.8rem) clamp(.4rem, 1.5vw, 1.4rem);
  border-top: 1px solid var(--line);
  transition: background .35s;
}
.service-row::before {
  content: ""; position: absolute; left: 0; top: -1px;
  width: 2px; height: 0;
  background: var(--cyan);
  transition: height .4s var(--ease-out);
}
.service-row:hover { background: linear-gradient(90deg, rgba(61, 123, 255, 0.06), transparent 55%); }
.service-row:hover::before { height: 100%; }

.service-idx {
  font: 500 .78rem var(--font-mono);
  letter-spacing: .2em;
  color: var(--dim);
  transition: color .3s;
}
.service-row:hover .service-idx { color: var(--cyan); }

.service-name {
  font: 400 clamp(1.7rem, 2.8vw, 2.4rem)/1.1 var(--font-display);
  letter-spacing: -0.01em;
}
.service-body p { color: var(--dim); max-width: 52ch; }
.service-meta {
  margin-top: .9rem;
  font: 500 .66rem var(--font-mono) !important;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--dim) !important;
  max-width: none !important;
}

/* ── Method ──────────────────────────────────────────────────────────── */
.method-list {
  margin-left: 1.1rem;
  border-left: 1px solid var(--line);
  max-width: 46rem;
}
.method-list li {
  position: relative;
  padding: clamp(1.6rem, 3.5vh, 2.4rem) 0 clamp(1.6rem, 3.5vh, 2.4rem) 3rem;
}
.method-list li + li { border-top: 1px dashed var(--line); }
.method-idx {
  position: absolute; left: -18px; top: clamp(1.9rem, 4vh, 2.7rem);
  width: 36px; height: 36px;
  border: 1px solid var(--line-bright);
  border-radius: 50%;
  background: var(--void);
  display: grid; place-items: center;
  font: 400 1.05rem var(--font-display);
  font-style: italic;
  color: var(--dim);
  transition: border-color .35s, color .35s, box-shadow .35s;
}
.method-list li:hover .method-idx {
  border-color: var(--cyan);
  color: var(--cyan);
  box-shadow: 0 0 24px rgba(0, 212, 255, 0.22);
}
.method-list h3 {
  font: 600 1.02rem/1.3 var(--font-body);
  letter-spacing: .01em;
  margin-bottom: .55rem;
}
.method-list p { color: var(--dim); max-width: 46ch; }

/* ── Field notes ─────────────────────────────────────────────────────── */
.notes-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.4rem;
}
.note {
  grid-column: span 4;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: rgba(16, 14, 11, 0.66);
  padding: clamp(1.6rem, 3vw, 2.3rem);
  position: relative;
  overflow: hidden;
  transition: border-color .35s, transform .35s var(--ease-out);
}
.note:nth-child(2) { margin-top: 2.6rem; }
.note:nth-child(3) { margin-top: 5.2rem; }
.note::after {
  content: ""; position: absolute; inset: auto 0 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  transform: scaleX(0);
  transition: transform .5s var(--ease-out);
}
.note:hover { border-color: var(--line-bright); transform: translateY(-4px); }
.note:hover::after { transform: scaleX(1); }

.note-tag {
  font: 500 .66rem var(--font-mono);
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 1.3rem;
}
.note h3 {
  font: 400 1.75rem/1.15 var(--font-display);
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
}
.note p { color: var(--dim); font-size: .98rem; }
.note-obs {
  margin-top: 1.4rem;
  font: 500 .62rem var(--font-mono) !important;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--dim) !important;
}
.note-obs::before { content: "◦ "; color: var(--cyan); }
.note-obs.typing::after {
  content: "▌";
  color: var(--cyan);
  animation: caret .7s steps(2) infinite;
}
@keyframes caret { 50% { opacity: 0; } }

/* ── About ───────────────────────────────────────────────────────────── */
.about-body { max-width: 42rem; }
.about-body p {
  color: var(--dim);
  font-size: clamp(1.1rem, 1.8vw, 1.28rem);
  line-height: 1.75;
}
.about-body p + p { margin-top: 1.6rem; }
.about-body strong { color: var(--ink); font-weight: 500; }

/* ── Contact ─────────────────────────────────────────────────────────── */
.contact-card {
  position: relative;
  max-width: 44rem;
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 5rem) clamp(1.5rem, 5vw, 4rem);
  border: 1px solid var(--line);
  border-radius: 2px;
  background: rgba(16, 14, 11, 0.6);
  text-align: center;
}
.corner { position: absolute; width: 18px; height: 18px; }
.corner-tl { top: -1px; left: -1px; border-top: 2px solid var(--cyan); border-left: 2px solid var(--cyan); }
.corner-tr { top: -1px; right: -1px; border-top: 2px solid var(--cyan); border-right: 2px solid var(--cyan); }
.corner-bl { bottom: -1px; left: -1px; border-bottom: 2px solid var(--cyan); border-left: 2px solid var(--cyan); }
.corner-br { bottom: -1px; right: -1px; border-bottom: 2px solid var(--cyan); border-right: 2px solid var(--cyan); }

.contact-offer {
  margin: 0 0 2.4rem;
  padding: 0 0 2rem;
  border-bottom: 1px solid var(--line);
}
.offer-title {
  font: 500 .72rem var(--font-mono);
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: .8rem;
}
.offer-title::before { content: "◦ "; }
.offer-sub {
  color: var(--dim);
  font-size: .95rem;
  max-width: 34rem;
  margin: 0 auto;
}

.contact-label {
  font: 500 .68rem var(--font-mono);
  letter-spacing: .26em; text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 1.4rem;
}
.contact-mail {
  display: inline-block;
  font: 400 clamp(1.7rem, 5vw, 3.3rem)/1.1 var(--font-display);
  font-style: italic;
  letter-spacing: -0.01em;
  transition: color .3s;
  overflow-wrap: anywhere;
}
.contact-mail:hover { color: var(--cyan); }
.contact-note {
  margin-top: 1.8rem;
  color: var(--dim);
  font-size: .95rem;
}

/* ── Footer ──────────────────────────────────────────────────────────── */
.site-foot {
  border-top: 1px solid var(--line);
  background: rgba(12, 11, 9, 0.6);
}
.foot-grid {
  display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2.5rem;
  padding: 2.4rem var(--gutter);
  font-size: .85rem;
  color: var(--dim);
}
.foot-brand { font-weight: 500; color: var(--ink); }
.foot-mail { color: var(--dim); }
.foot-mail:hover { color: var(--cyan); }
.mono {
  font: 400 .64rem var(--font-mono);
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--dim);
}
.foot-copy { margin-left: auto; }

/* ── Reveal system (only when JS is present) ─────────────────────────── */
html.js-anim .reveal {
  opacity: 0;
  transform: translateY(26px);
}
html.js-anim .reveal.in {
  opacity: 1;
  transform: none;
  transition: opacity .9s var(--ease-soft), transform .9s var(--ease-out);
}
html.js-anim .method-list .reveal.in:nth-child(1) { transition-delay: .05s; }
html.js-anim .method-list .reveal.in:nth-child(2) { transition-delay: .12s; }
html.js-anim .method-list .reveal.in:nth-child(3) { transition-delay: .19s; }
html.js-anim .method-list .reveal.in:nth-child(4) { transition-delay: .26s; }
html.js-anim .method-list .reveal.in:nth-child(5) { transition-delay: .33s; }
html.js-anim .service-list .reveal.in:nth-child(2) { transition-delay: .08s; }
html.js-anim .service-list .reveal.in:nth-child(3) { transition-delay: .16s; }
html.js-anim .service-list .reveal.in:nth-child(4) { transition-delay: .24s; }
html.js-anim .notes-grid .reveal.in:nth-child(2) { transition-delay: .1s; }
html.js-anim .notes-grid .reveal.in:nth-child(3) { transition-delay: .2s; }

/* ── Responsive ──────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .service-row { grid-template-columns: 3.2rem 1fr; }
  .service-body { grid-column: 2; }
  .note { grid-column: span 12; }
  .note:nth-child(2), .note:nth-child(3) { margin-top: 0; }
}

@media (max-width: 760px) {
  :root { --section-pad: clamp(4.5rem, 12vh, 7rem); }

  .nav-toggle { display: block; }
  .nav-menu {
    position: fixed; inset: 0;
    flex-direction: column; justify-content: center;
    gap: 3rem;
    background: rgba(12, 11, 9, 0.96);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    opacity: 0; visibility: hidden;
    transition: opacity .35s var(--ease-out), visibility .35s;
    z-index: -1;
  }
  .nav-menu.open { opacity: 1; visibility: visible; }
  .nav-links { flex-direction: column; align-items: center; gap: 1.9rem; }
  .nav-links a { font-family: var(--font-display); font-size: 2rem; letter-spacing: .02em; text-transform: none; }

  .hero-inner { padding-top: 8rem; }
  .hero-title { margin-top: 1.6rem; }
  .scroll-hint { display: none; }

  .service-row { grid-template-columns: 1fr; gap: .5rem; }
  .service-idx { margin-bottom: .4rem; }
  .service-body { grid-column: 1; }

  .foot-grid { flex-direction: column; align-items: flex-start; gap: .6rem; }
  .foot-copy { margin-left: 0; }
}

/* ── Reduced motion: everything visible, nothing chasing ─────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html.js-anim .reveal { opacity: 1; transform: none; }
  html.js-anim .hero-title .line-inner { transform: none; animation: none; }
  html.js-anim .manifesto-text .w { opacity: 1; }
  .scroll-hint { display: none; }
}

/* ── Print ───────────────────────────────────────────────────────────── */
@media print {
  html { background: #fff; }
  body { color: #000; }
  #organism, .backdrop, .vignette, .cursor, .site-head, .scroll-hint { display: none !important; }
  .section-pad { padding: 2rem 0; }
  .lede, .service-body p, .method-list p, .note p, .about-body p { color: #333; }
}
