/* ============================================================
   KYRASTRA — porcelain in the smoke
   machine precision / human logic · type: Archivo / Instrument
   Serif / JetBrains Mono · signature: one full-screen WebGL
   ether behind the whole page
   ============================================================ */

:root {
  --sea: #04070E;
  --abyss: #0A1322;
  --moon: #F2EDE3;
  --glint: #E6E0D4;   /* porcelain — the hero's material */
  --slate: #9AB4D4;   /* the single color note — the hero's rim light */
  --tide: #6E8CA8;
  --hairline: rgba(110, 140, 168, 0.22);
  --gutter: clamp(16px, 3vw, 56px);
  --font-head: "Archivo", system-ui, sans-serif;
  --font-serif: "Instrument Serif", serif;
  --font-mono: "JetBrains Mono", monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { overflow-x: clip; background: var(--sea); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  background: var(--sea);
  color: var(--moon);
  font-family: var(--font-head);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

::selection { background: var(--glint); color: var(--sea); }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--glint); outline-offset: 3px; }
img { max-width: 100%; display: block; }

.mono { font-family: var(--font-mono); font-weight: 500; font-size: clamp(11px, 0.85vw, 13px); letter-spacing: 0.08em; text-transform: uppercase; }
.serif, .serif em { font-family: var(--font-serif); font-weight: 400; }
em.serif, .serif em { font-style: italic; }
.glint-text { color: var(--glint); }

/* ---------- the ether (full-screen inside the hero only) ---------- */
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

/* ---------- film grain (above content, below nothing important) ---------- */
.grain {
  position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain-shift 0.9s steps(4) infinite;
}
@keyframes grain-shift {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-2%, 1%); }
  50% { transform: translate(1%, -2%); }
  75% { transform: translate(-1%, 2%); }
  100% { transform: translate(0, 0); }
}

/* ---------- Loader ---------- */
.loader { position: fixed; inset: 0; z-index: 999; background: var(--sea); display: flex; align-items: center; justify-content: center; }
.loader-star { width: 6px; height: 6px; border-radius: 50%; background: var(--glint); box-shadow: 0 0 24px 4px rgba(230, 224, 212, 0.55); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  display: flex; justify-content: space-between; align-items: center;
  padding: clamp(14px, 1.8vw, 24px) var(--gutter);
  background: linear-gradient(to bottom, rgba(4, 7, 14, 0.72), transparent);
}
.nav-brand { font-weight: 900; letter-spacing: 0.22em; font-size: clamp(13px, 1.05vw, 16px); }
.nav-links { display: flex; gap: clamp(14px, 2vw, 32px); align-items: center; }
.nav-links a { font-family: var(--font-mono); font-size: clamp(11px, 0.8vw, 13px); letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.85; }
.nav-links a:hover { opacity: 1; color: var(--glint); }
.nav-cta { border: 1px solid var(--glint); color: var(--glint); border-radius: 999px; padding: 7px 16px; opacity: 1 !important; transition: background 0.25s, color 0.25s; will-change: transform; }
.nav-cta:hover { background: var(--glint); color: var(--sea) !important; }

/* ---------- Hero (a window onto the ether) ---------- */
.hero { position: relative; height: 100svh; min-height: 620px; overflow: hidden; }
.hero-inner {
  position: relative; z-index: 2;
  height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  padding: 0 var(--gutter);
}
.hero-name {
  font-weight: 900;
  font-size: clamp(2.5rem, 8.5vw, 9rem);
  line-height: 0.92;
  letter-spacing: 0.02em;
  display: flex;
}
/* one line of what we do + the one action — sits above the fog (z 2) */
.hero-pitch {
  margin-top: clamp(26px, 4vw, 52px);
  display: flex; flex-direction: column; align-items: center; gap: clamp(14px, 1.8vw, 22px);
}
.hero-tag { color: var(--moon); letter-spacing: 0.22em; text-shadow: 0 1px 14px rgba(4, 7, 14, 0.85); }
.hero-cta {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 999px;
  border: 1px solid rgba(216, 104, 116, 0.65);
  background: linear-gradient(160deg, rgba(122, 28, 46, 0.85), rgba(62, 14, 24, 0.85));
  color: var(--moon);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.45);
  transition: background 0.25s, border-color 0.25s;
  will-change: transform;
}
.hero-cta:hover { border-color: rgba(236, 140, 152, 0.95); background: linear-gradient(160deg, rgba(142, 34, 54, 0.95), rgba(74, 16, 28, 0.95)); }
.hn { display: block; overflow: hidden; }
.hn i { display: block; font-style: normal; }
.hero-corner { position: absolute; z-index: 2; color: var(--tide); }
.hero-corner--bl { left: var(--gutter); bottom: 22px; }
.hero-corner--br { right: var(--gutter); bottom: 22px; text-align: right; }
.hero-scroll { position: absolute; left: 50%; transform: translateX(-50%); bottom: 20px; z-index: 2; color: var(--tide); }

/* ---------- Shared section chrome ---------- */
section, .contact { position: relative; }
.sec-head { margin-bottom: clamp(40px, 6vw, 90px); }
.sec-label { color: var(--tide); margin-bottom: clamp(14px, 2vw, 24px); }
.sec-title {
  font-weight: 800;
  font-size: clamp(2.1rem, 5.4vw, 5.4rem);
  line-height: 1.0;
  letter-spacing: -0.025em;
  text-transform: uppercase;
}
.sec-title em { text-transform: none; letter-spacing: 0; }
.sec-sub { margin-top: clamp(14px, 1.8vw, 22px); max-width: 560px; color: var(--tide); font-size: clamp(0.95rem, 1.2vw, 1.1rem); }
.lr { display: block; overflow: hidden; }
.lr > span { display: block; }

/* mercer-style gleam: a slate band flows through the display type as
   you scroll (backgroundPosition scrubbed in main.js) */
.gleam {
  background-image: linear-gradient(100deg,
    #F2EDE3 0%, #F2EDE3 32%, #9AB4D4 46%, #E6E0D4 54%, #F2EDE3 68%, #F2EDE3 100%);
  background-size: 250% 100%;
  background-position: 50% 50%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.gleam em { color: inherit; -webkit-text-fill-color: inherit; }

/* ---------- 01 About / Manifesto ---------- */
.thesis {
  padding: clamp(90px, 14vw, 220px) var(--gutter);
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
  gap: clamp(28px, 5vw, 80px);
}
.thesis-label { grid-column: 1 / -1; color: var(--tide); }
.thesis-big {
  font-weight: 800;
  font-size: clamp(2.4rem, 7vw, 7.2rem);
  line-height: 0.96;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}
.thesis-big em { text-transform: none; }
.tl { display: block; overflow: hidden; }
.tl > span { display: block; }
.thesis-side { display: flex; flex-direction: column; gap: 18px; justify-content: flex-end; max-width: 420px; }
.thesis-side p { color: var(--moon); opacity: 0.85; font-size: clamp(0.98rem, 1.25vw, 1.15rem); }
.thesis-side p + p { color: var(--glint); opacity: 1; }

.about-meta {
  grid-column: 1 / -1;
  margin-top: clamp(28px, 4vw, 56px);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 32px);
  border-top: 1px solid var(--hairline);
  padding-top: clamp(18px, 2.4vw, 30px);
}
.about-meta div { display: flex; flex-direction: column; gap: 6px; }
.about-meta dt { color: var(--tide); }
.about-meta dd { color: var(--moon); font-family: var(--font-mono); font-size: clamp(12px, 0.95vw, 14px); letter-spacing: 0.04em; }

/* ---------- 02 Capabilities (editorial rows) ---------- */
.caps { padding: clamp(70px, 10vw, 160px) var(--gutter); }
.cap-rows { list-style: none; border-bottom: 1px solid var(--hairline); }
.cap-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 5fr) minmax(0, 5fr) minmax(0, 0.5fr);
  gap: clamp(14px, 2.4vw, 44px);
  align-items: start;
  padding: clamp(26px, 3.4vw, 52px) 0;
}
.cap-row .rule {
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: var(--hairline);
  transform-origin: left center;
}
.cap-idx { color: var(--slate); padding-top: 10px; }
.cap-name {
  font-weight: 800;
  font-size: clamp(1.5rem, 3.2vw, 3.1rem);
  line-height: 0.98;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  transition: color 0.3s, transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.cap-body { display: flex; flex-direction: column; gap: 14px; padding-top: 8px; }
.cap-body p { color: var(--moon); opacity: 0.72; max-width: 52ch; font-size: clamp(0.92rem, 1.1vw, 1.05rem); }
.cap-tags { color: var(--tide); }
.cap-arrow {
  justify-self: end; padding-top: 6px;
  font-size: clamp(1.3rem, 2vw, 2rem); color: var(--tide);
  transition: color 0.3s, transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.cap-row:hover .cap-name { color: var(--glint); transform: translateX(10px); }
.cap-row:hover .cap-arrow { color: var(--slate); transform: translate(6px, 6px); }

/* ---------- 03 Process (pinned horizontal journey) ---------- */
.how { padding: clamp(70px, 10vw, 160px) 0 0; }
.how .sec-head { padding: 0 var(--gutter); }
.how-stage { height: 100svh; display: flex; align-items: center; overflow: hidden; }
.how-track {
  display: flex; gap: clamp(20px, 3vw, 56px);
  padding: 0 var(--gutter);
  will-change: transform;
}
.movement {
  flex: 0 0 auto;
  width: min(58vw, 640px);
  border: 1px solid var(--hairline);
  border-radius: 6px;
  background: linear-gradient(160deg, rgba(10, 19, 34, 0.72), rgba(4, 7, 14, 0.35));
  padding: clamp(26px, 3vw, 52px);
  display: flex; flex-direction: column; gap: 16px;
  min-height: min(52vh, 460px);
}
.mv-num {
  font-weight: 900;
  font-size: clamp(3.4rem, 7vw, 7rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(154, 180, 212, 0.5);
}
.movement h3 { font-weight: 800; font-size: clamp(1.5rem, 2.4vw, 2.4rem); text-transform: uppercase; letter-spacing: -0.01em; }
.movement p { color: var(--moon); opacity: 0.72; font-size: clamp(0.95rem, 1.15vw, 1.08rem); max-width: 44ch; margin-top: auto; }

/* ---------- 04 Products ---------- */
.products { padding: clamp(70px, 10vw, 160px) var(--gutter); }
.prod-sub { margin: clamp(30px, 4.5vw, 70px) 0 clamp(14px, 2vw, 28px); display: flex; flex-wrap: wrap; align-items: baseline; gap: 14px 28px; }
.prod-sub--b { margin-top: clamp(60px, 8vw, 120px); }
.sub-head {
  font-weight: 900;
  font-size: clamp(1.4rem, 2.8vw, 2.6rem);
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--glint);
}
.sub-head::first-letter { color: var(--slate); }
.sub-note { color: var(--tide); font-size: clamp(0.92rem, 1.1vw, 1.02rem); }

/* ---------- accordions (wine cards on the dark) ---------- */
.acc { list-style: none; display: flex; flex-direction: column; gap: clamp(10px, 1.3vw, 18px); }
.acc-item {
  border: 1px solid rgba(198, 84, 96, 0.16);
  border-radius: 6px;
  background: linear-gradient(160deg, rgba(88, 22, 32, 0.52), rgba(40, 11, 17, 0.38));
  overflow: hidden;
  transition: border-color 0.3s, background 0.3s;
}
.acc-item:hover { border-color: rgba(210, 96, 108, 0.30); }
.acc-item.open {
  border-color: rgba(216, 104, 116, 0.38);
  background: linear-gradient(160deg, rgba(102, 26, 38, 0.58), rgba(48, 13, 20, 0.44));
}
.acc-head {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 7fr) minmax(0, 3fr) minmax(0, 0.5fr);
  gap: clamp(12px, 2vw, 36px);
  align-items: center;
  padding: clamp(18px, 2.2vw, 30px) clamp(16px, 2.2vw, 32px);
  background: none; border: none; cursor: pointer;
  color: inherit; text-align: left; font: inherit;
  transition: opacity 0.25s;
}
.acc-idx { color: var(--slate); }
.acc-name {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(1.3rem, 2.6vw, 2.5rem);
  line-height: 1;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  transition: color 0.3s, transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.acc-tag { color: var(--tide); }
.acc-plus {
  justify-self: end;
  font-weight: 500;
  font-size: clamp(1.3rem, 2vw, 2rem);
  line-height: 1;
  color: var(--tide);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), color 0.3s;
}
.acc-head:hover .acc-name { color: var(--glint); transform: translateX(8px); }
.acc-head:hover .acc-plus { color: var(--slate); }
.acc-item.open .acc-plus { transform: rotate(45deg); color: var(--glint); }
.acc-item.open .acc-name { color: var(--glint); }
.acc-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}
.acc-item.open .acc-panel { grid-template-rows: 1fr; }
.acc-panel-inner { overflow: hidden; min-height: 0; }
.acc-case {
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
  gap: clamp(18px, 3vw, 48px);
  align-items: end;
  padding: 0 clamp(16px, 2.2vw, 32px) clamp(26px, 3.4vw, 48px);
}
.acc-case .case-media img { aspect-ratio: 16 / 9; }
.acc-case-meta { display: flex; flex-direction: column; gap: 12px; padding-bottom: 6px; }
.acc-case-meta p { color: var(--moon); opacity: 0.75; max-width: 380px; font-size: clamp(0.92rem, 1.1vw, 1.02rem); }
.acc-stat { color: var(--slate); }
.acc-saas-body {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;
  gap: 18px 40px;
  padding: 0 clamp(16px, 2.2vw, 32px) clamp(24px, 3vw, 44px);
}
.acc-saas-body p { color: var(--moon); opacity: 0.75; max-width: 62ch; font-size: clamp(0.98rem, 1.2vw, 1.12rem); }
.acc-open {
  display: inline-block;
  color: var(--glint);
  border: 1px solid var(--glint);
  border-radius: 999px;
  padding: clamp(12px, 1.4vw, 16px) clamp(24px, 2.8vw, 40px);
  font-size: clamp(12px, 1vw, 15px);
  white-space: nowrap;
  transition: background 0.3s, color 0.3s;
}
.acc-open:hover { background: var(--glint); color: var(--sea); }
/* linked rows announce themselves */
.acc-item.has-link .acc-name::after {
  content: "↗";
  font-size: 0.5em;
  color: var(--slate);
  vertical-align: super;
  margin-left: 8px;
}

.case {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
  gap: clamp(20px, 3.4vw, 56px);
  align-items: end;
  padding: clamp(34px, 5vw, 72px) 0;
  border-top: 1px solid var(--hairline);
}
.case:nth-of-type(odd) { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); }
.case:nth-of-type(odd) .case-media { order: 2; }
.case-bignum {
  position: absolute; top: 4px; right: 0; z-index: 0;
  font-weight: 900; font-size: clamp(6rem, 17vw, 17rem); line-height: 1;
  color: transparent; -webkit-text-stroke: 1px rgba(154, 180, 212, 0.13);
  pointer-events: none; user-select: none;
}
.case:nth-of-type(odd) .case-bignum { right: auto; left: 0; }
.case-media { position: relative; z-index: 1; overflow: hidden; border-radius: 4px; background: var(--abyss); }
.case-media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transform: scale(1.02); transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1); }
.case:hover .case-media img { transform: scale(1.06); }
.case-meta { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 10px; padding-bottom: 6px; }
.case-index { color: var(--tide); }
.case-name { font-weight: 800; font-size: clamp(1.6rem, 3vw, 2.8rem); letter-spacing: -0.02em; text-transform: uppercase; }
.case-role { color: var(--moon); opacity: 0.72; max-width: 380px; font-size: clamp(0.92rem, 1.1vw, 1.02rem); }
.case-stat { color: var(--slate); }

/* the conveyor — counter-drifting product names */
.saas-belts { overflow: hidden; margin: clamp(18px, 2.4vw, 36px) calc(-1 * var(--gutter)) clamp(24px, 3vw, 44px); }
.belt { white-space: nowrap; will-change: transform; }
.belt span {
  display: inline-block;
  font-weight: 900;
  font-size: clamp(2.4rem, 6vw, 6rem);
  line-height: 1.06;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: transparent;
  -webkit-text-stroke: 1px rgba(230, 224, 212, 0.22);
  padding-right: 0.5em;
}
.belt--b span { -webkit-text-stroke-color: rgba(154, 180, 212, 0.20); }

.prod-feature {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 14px;
  border: 1px solid var(--glint);
  border-radius: 6px;
  padding: clamp(18px, 2.4vw, 32px);
  margin-bottom: clamp(20px, 2.8vw, 40px);
}
.prod-feature-name { color: var(--glint); font-weight: 700; font-size: clamp(14px, 1.2vw, 18px); }
.prod-feature-desc { color: var(--moon); opacity: 0.75; font-size: clamp(0.95rem, 1.15vw, 1.08rem); }
.prod-feature:hover .prod-feature-name { text-decoration: underline; text-underline-offset: 4px; }
.prod-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
  border-radius: 6px;
  overflow: hidden;
}
.prod { background: var(--sea); }
.prod > a, .prod > div {
  display: flex; flex-direction: column; gap: 7px;
  padding: clamp(16px, 1.9vw, 26px);
  height: 100%;
  transition: background 0.25s;
}
.prod > a:hover { background: var(--abyss); }
.prod-name { color: var(--glint); font-weight: 700; font-size: clamp(12px, 1vw, 15px); }
.prod-desc { color: var(--moon); opacity: 0.66; font-size: clamp(0.86rem, 1vw, 0.96rem); }
.prod-soon {
  font-size: 0.72em; color: var(--tide);
  border: 1px solid rgba(110, 140, 168, 0.4); border-radius: 999px;
  padding: 2px 8px; margin-left: 6px; vertical-align: 2px;
}
.prods-note {
  margin-top: clamp(24px, 3vw, 40px);
  max-width: 640px;
  color: var(--tide);
  font-size: clamp(0.95rem, 1.15vw, 1.08rem);
}
.prods-note em { color: var(--slate); font-family: var(--font-serif); font-style: italic; }

/* ---------- 05 Pricing ---------- */
.pricing { padding: clamp(70px, 10vw, 160px) var(--gutter); }
.tiers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2.6vw, 40px);
  align-items: stretch;
}
.tier {
  position: relative;
  border: 1px solid var(--hairline);
  border-radius: 6px;
  padding: clamp(22px, 2.6vw, 40px);
  display: flex; flex-direction: column; gap: 16px;
  background: linear-gradient(160deg, rgba(10, 19, 34, 0.72), rgba(4, 7, 14, 0.35));
}
.tier--hot { border-color: var(--glint); box-shadow: 0 0 60px rgba(154, 180, 212, 0.10); }
.tier-flag { position: absolute; top: -11px; left: 24px; background: var(--glint); color: var(--sea); padding: 3px 10px; border-radius: 999px; font-weight: 700; }
.tier-name { color: var(--tide); }
.tier-price { font-weight: 900; font-size: clamp(1.9rem, 3vw, 2.9rem); letter-spacing: -0.02em; display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px; }
.tier-days { color: var(--tide); font-weight: 500; }
.tier ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.tier li { color: var(--moon); opacity: 0.8; font-size: clamp(0.92rem, 1.05vw, 1rem); padding-left: 18px; position: relative; }
.tier li::before { content: "—"; position: absolute; left: 0; color: var(--slate); }
.tiers-note { margin-top: clamp(22px, 3vw, 36px); color: var(--tide); text-align: center; }

/* ---------- 06 Commission / Contact ---------- */
.contact { padding: clamp(80px, 12vw, 200px) var(--gutter) clamp(30px, 4vw, 56px); border-top: 1px solid var(--hairline); }
.contact-big {
  font-weight: 900;
  font-size: clamp(2.6rem, 8vw, 8.5rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}
.contact-big em { text-transform: none; }
.contact-sub {
  margin-top: clamp(18px, 2.4vw, 30px);
  max-width: 560px;
  color: var(--tide);
  font-size: clamp(0.95rem, 1.2vw, 1.1rem);
}
.contact-mail {
  display: inline-block;
  margin-top: clamp(28px, 4vw, 56px);
  font-family: var(--font-mono);
  font-size: clamp(1.05rem, 2.2vw, 1.9rem);
  color: var(--glint);
  border: 1px solid var(--glint);
  border-radius: 999px;
  padding: clamp(12px, 1.4vw, 20px) clamp(22px, 2.6vw, 40px);
  transition: background 0.3s, color 0.3s;
  will-change: transform;
}
.contact-mail:hover { background: var(--glint); color: var(--sea); }

/* ---------- contact form (sends via api.kyrastra.com) ---------- */
.cform {
  margin-top: clamp(28px, 4vw, 56px);
  max-width: 720px;
  display: flex; flex-direction: column; gap: clamp(14px, 1.6vw, 20px);
  padding: clamp(20px, 3vw, 36px);
  border: 1px solid rgba(198, 84, 96, 0.22);
  border-radius: 6px;
  background: linear-gradient(160deg, rgba(88, 22, 32, 0.40), rgba(40, 11, 17, 0.28));
}
.cform-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(14px, 1.6vw, 20px); }
.cform-field { display: flex; flex-direction: column; gap: 8px; }
.cform-field .mono { color: var(--tide); }
.cform input, .cform select, .cform textarea {
  width: 100%;
  font: inherit; font-size: 1rem; color: var(--moon);
  background: rgba(4, 7, 14, 0.55);
  border: 1px solid rgba(154, 180, 212, 0.22);
  border-radius: 4px;
  padding: 12px 14px;
  transition: border-color 0.2s;
}
.cform select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--tide) 50%), linear-gradient(135deg, var(--tide) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 36px; }
.cform select option { background: var(--abyss); color: var(--moon); }
.cform textarea { resize: vertical; min-height: 120px; }
.cform input:focus, .cform select:focus, .cform textarea:focus { outline: none; border-color: rgba(216, 104, 116, 0.8); }
.cform [aria-invalid="true"] { border-color: rgba(236, 120, 120, 0.9); }
.cform-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cform-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.cform-actions .hero-cta { cursor: pointer; }
.cform-actions .hero-cta[disabled] { opacity: 0.6; cursor: wait; }
.cform-status { color: var(--tide); }
.cform-status.ok { color: #9fd6a8; }
.cform-status.err { color: #f0a0a8; }
.contact-or { margin-top: clamp(26px, 3vw, 40px); color: var(--tide); }
.contact-or + .contact-mail { margin-top: 10px; }
@media (max-width: 640px) { .cform-row { grid-template-columns: 1fr; } }
.contact-tagline { margin-top: clamp(40px, 6vw, 80px); color: var(--glint); }
.foot-row {
  margin-top: clamp(30px, 4vw, 60px);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  color: var(--tide);
}
.foot-row .mono { color: var(--tide); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .thesis { grid-template-columns: 1fr; }
  .thesis-side { max-width: 560px; justify-content: flex-start; }
  .about-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cap-row { grid-template-columns: minmax(0, 1fr) minmax(0, 11fr); }
  .cap-body { grid-column: 2; }
  .cap-arrow { display: none; }
  .case, .case:nth-of-type(odd) { grid-template-columns: 1fr; align-items: start; }
  .case:nth-of-type(odd) .case-media { order: 0; }
  .how { padding-top: clamp(70px, 10vw, 160px); }
  .how-stage { height: auto; overflow: visible; }
  .how-track { flex-direction: column; padding: 0 var(--gutter); }
  .movement { width: 100%; min-height: 0; }
  .tiers { grid-template-columns: 1fr; }
  .tier--hot { order: -1; }
  .prod-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .acc-head { grid-template-columns: minmax(0, 1.4fr) minmax(0, 9fr) minmax(0, 0.6fr); }
  .acc-tag { display: none; }
  .acc-case { grid-template-columns: 1fr; align-items: start; }
}

@media (max-width: 560px) {
  .nav-links { gap: 12px; }
  .nav-links a:not(.nav-cta) { display: none; }
  .hero { min-height: 520px; }
  .hero-name { font-size: clamp(2.6rem, 13vw, 4rem); }
  .hero-corner--br { display: none; }
  .prod-grid { grid-template-columns: 1fr; }
  .acc-open { width: 100%; text-align: center; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  .grain { animation: none; }
}
