/* =========================================================
   PRISM — WebForge design system
   Light in, form out. See DESIGN.md for the rules.
   ========================================================= */

:root {
  --paper: #F5F7FB;
  --paper-2: #ECEFF6;
  --white: #FFFFFF;
  --ink: #14162B;
  --ink-2: #4A4F6A;
  --ink-3: #868BA6;
  --line: #D8DDEA;
  --line-2: #E6E9F2;

  --ember: #FF5A5F;
  --amber: #FF8A3D;
  --gold: #FFC94A;
  --mint: #3FD9A0;
  --teal: #12C2A4;
  --cyan: #2BB3FF;
  --violet: #7B5CFF;
  --orchid: #C05CFF;

  --band: var(--violet);
  --band-2: var(--cyan);

  --spectrum: linear-gradient(90deg, var(--ember), var(--amber) 17%, var(--gold) 33%, var(--mint) 50%, var(--cyan) 66%, var(--violet) 83%, var(--orchid));
  --spectrum-3: linear-gradient(90deg, var(--amber), var(--teal) 50%, var(--violet));

  --f-display: "Funnel Display", "Funnel Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-text: "Funnel Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --fs-display: clamp(2.6rem, 7vw, 7rem);
  --fs-h2: clamp(2.3rem, 4.8vw, 4.4rem);
  --fs-h3: clamp(1.3rem, 1.8vw, 1.6rem);
  --fs-lead: clamp(1.1rem, 1.4vw, 1.3rem);
  --fs-body: 1.0625rem;
  --fs-small: .875rem;

  --r-slab: 28px;
  --r-card: 22px;
  --r-sm: 12px;

  --gutter: clamp(20px, 4vw, 56px);
  --max: 1440px;
  --section: clamp(88px, 10.5vw, 156px);
  --header-h: 76px;

  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);

  --glass-bg: linear-gradient(180deg, rgba(255, 255, 255, .82), rgba(255, 255, 255, .5));
  --glass-shadow: inset 0 1px 0 rgba(255, 255, 255, 1), inset 0 -1px 0 rgba(20, 22, 43, .04), 0 1px 2px rgba(20, 22, 43, .04), 0 30px 60px -36px rgba(40, 50, 120, .30);
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-text);
  font-size: var(--fs-body);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: rgba(123, 92, 255, .18); color: var(--ink); }

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

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; left: 16px; top: 12px; z-index: 200;
  padding: 10px 16px; border-radius: 999px; background: var(--ink); color: #fff;
  transform: translateY(-160%); transition: transform .3s var(--ease);
}
.skip-link:focus { transform: none; }

.container {
  width: 100%;
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Typography ---------- */
.display, .h2, .h3, .price, .brand-word {
  font-family: var(--f-display);
}
.display {
  font-size: var(--fs-display);
  line-height: .94;
  letter-spacing: -.04em;
  font-weight: 500;
}
.h2 {
  font-size: var(--fs-h2);
  line-height: 1;
  letter-spacing: -.035em;
  font-weight: 500;
  max-width: 16ch;
}
.h3 {
  font-size: var(--fs-h3);
  line-height: 1.15;
  letter-spacing: -.015em;
  font-weight: 600;
}
.lead {
  font-size: var(--fs-lead);
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 34em;
}
.muted { color: var(--ink-2); }
.tnum { font-variant-numeric: tabular-nums; }

/* Refraction headings: base + three colour-split ghosts */
.refract { position: relative; }
.refract .rf-base { display: block; position: relative; }
.refract .rf-ghost {
  position: absolute; inset: 0;
  pointer-events: none;
  mix-blend-mode: multiply;
  opacity: 0;
  user-select: none;
}
.refract .rf-g1 { color: var(--amber); }
.refract .rf-g2 { color: var(--teal); }
.refract .rf-g3 { color: var(--violet); }
.ln { display: block; overflow: visible clip; padding-bottom: .08em; margin-bottom: -.08em; }
.ln > span { display: inline-block; will-change: transform; }

/* ---------- Buttons ---------- */
.btn {
  --h: 54px;
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: var(--h);
  padding: 0 26px;
  border-radius: 999px;
  font-family: var(--f-text);
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: -.005em;
  white-space: nowrap;
  isolation: isolate;
  overflow: hidden;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), background-color .3s;
}
.btn-sm { --h: 44px; padding: 0 20px; font-size: .95rem; }
.btn-lg { --h: 64px; padding: 0 34px; font-size: 1.08rem; }
.btn-ink {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .14) inset, 0 14px 30px -16px rgba(20, 22, 43, .55);
}
.btn-ink::before {
  /* the glint: a sliver of spectrum sliding across obsidian glass */
  content: ""; position: absolute; z-index: -1;
  top: -20%; bottom: -20%; left: -40%; width: 38%;
  background: linear-gradient(100deg, transparent 0%, rgba(255, 138, 61, .0) 10%, rgba(255, 138, 61, .55) 30%, rgba(18, 194, 164, .55) 50%, rgba(123, 92, 255, .6) 70%, transparent 90%);
  filter: blur(6px);
  transform: translateX(-120%) skewX(-18deg);
  transition: transform .9s var(--ease);
}
.btn-ink:hover::before, .btn-ink:focus-visible::before { transform: translateX(420%) skewX(-18deg); }
.btn-ink:hover { transform: translateY(-2px); box-shadow: 0 1px 0 rgba(255, 255, 255, .14) inset, 0 20px 40px -18px rgba(60, 50, 160, .6); }
.btn-glass {
  background: rgba(255, 255, 255, .7);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px rgba(20, 22, 43, .1), inset 0 1px 0 #fff, 0 10px 24px -18px rgba(40, 50, 120, .4);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.btn-glass:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px rgba(20, 22, 43, .18), inset 0 1px 0 #fff, 0 16px 30px -18px rgba(40, 50, 120, .5); }
.btn .btn-ico { width: 18px; height: 18px; flex: none; transition: transform .5s var(--ease); }
.btn:hover .btn-ico { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  transition: transform .6s var(--ease);
}
.site-header::before {
  content: ""; position: absolute; inset: 0;
  background: rgba(245, 247, 251, .72);
  -webkit-backdrop-filter: blur(18px) saturate(1.5); backdrop-filter: blur(18px) saturate(1.5);
  border-bottom: 1px solid rgba(20, 22, 43, .06);
  opacity: 0; transition: opacity .4s;
}
.site-header.is-scrolled::before { opacity: 1; }
.site-header.is-hidden { transform: translateY(-100%); }
.header-inner {
  position: relative; height: 100%;
  display: flex; align-items: center; gap: 24px;
}
.brand { display: inline-flex; align-items: center; flex: none; }
.brand svg { height: 30px; width: auto; overflow: visible; }
.brand .wf-word path, .brand .wf-word circle { transition: stroke .3s; }
.nav { margin-left: auto; }
.nav ul { display: flex; gap: clamp(14px, 2vw, 30px); }
.nav a {
  position: relative; display: inline-block;
  font-size: .96rem; font-weight: 500; color: var(--ink);
  padding: 8px 0;
}
.nav a .beam-line {
  position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; display: block;
  pointer-events: none;
}
.nav a .beam-line i {
  position: absolute; left: 0; right: 0; height: 1.5px; border-radius: 2px;
  transform: scaleX(0); transform-origin: left center;
  transition: transform .5s var(--ease), translate .5s var(--ease);
}
.nav a .beam-line i:nth-child(1) { background: var(--ink); top: 0; }
.nav a .beam-line i:nth-child(2) { background: var(--amber); top: 0; transition-delay: .08s; }
.nav a .beam-line i:nth-child(3) { background: var(--teal); top: 0; transition-delay: .12s; }
.nav a .beam-line i:nth-child(4) { background: var(--violet); top: 0; transition-delay: .16s; }
.nav a:hover .beam-line i, .nav a:focus-visible .beam-line i, .nav a[aria-current="page"] .beam-line i { transform: scaleX(1); }
.nav a:hover .beam-line i:nth-child(2), .nav a[aria-current="page"] .beam-line i:nth-child(2) { translate: 0 3px; }
.nav a:hover .beam-line i:nth-child(3), .nav a[aria-current="page"] .beam-line i:nth-child(3) { translate: 0 5.5px; }
.nav a:hover .beam-line i:nth-child(4), .nav a[aria-current="page"] .beam-line i:nth-child(4) { translate: 0 8px; }
.header-cta { flex: none; }

.menu-toggle {
  display: none;
  width: 48px; height: 48px; margin-left: auto; margin-right: -8px;
  border-radius: 999px; position: relative;
}
.menu-toggle span.bar {
  position: absolute; left: 13px; right: 13px; height: 2px; border-radius: 2px; background: var(--ink);
  transition: transform .5s var(--ease), opacity .3s, background-color .3s;
}
.menu-toggle span.bar:nth-child(2) { top: 18px; }
.menu-toggle span.bar:nth-child(3) { top: 24px; background: linear-gradient(90deg, var(--amber), var(--teal), var(--violet)); right: 19px; }
.menu-toggle span.bar:nth-child(4) { top: 30px; }
.menu-open .menu-toggle span.bar:nth-child(2) { transform: translateY(6px) rotate(45deg); }
.menu-open .menu-toggle span.bar:nth-child(3) { opacity: 0; }
.menu-open .menu-toggle span.bar:nth-child(4) { transform: translateY(-6px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(245, 247, 251, .94);
  -webkit-backdrop-filter: blur(24px) saturate(1.4); backdrop-filter: blur(24px) saturate(1.4);
  padding: calc(var(--header-h) + 24px) var(--gutter) 32px;
  display: flex; flex-direction: column;
  overflow-y: auto;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu ul { display: grid; gap: 4px; }
.mobile-menu li a {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  font-family: var(--f-display); font-size: clamp(2rem, 9vw, 3rem); letter-spacing: -.035em; line-height: 1.15;
  padding: 10px 0; border-bottom: 1px solid var(--line);
}
.mobile-menu li a small { font-family: var(--f-text); font-size: .9rem; letter-spacing: 0; color: var(--ink-2); }
.mobile-menu .mm-foot { margin-top: auto; padding-top: 32px; display: grid; gap: 16px; }
.mobile-menu .mm-beam { height: 3px; border-radius: 3px; background: var(--spectrum-3); transform-origin: left; margin-top: 28px; }

/* ---------- Sections ---------- */
.section { padding-block: var(--section); position: relative; }
.section-head {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 32px 64px; align-items: end;
  margin-bottom: clamp(48px, 6vw, 88px);
}
.section-head p { color: var(--ink-2); font-size: var(--fs-lead); line-height: 1.5; max-width: 30em; }
.section-mark {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .9rem; color: var(--ink-2); margin-bottom: 20px;
}
.section-mark svg { width: 18px; height: 18px; overflow: visible; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  padding-top: calc(var(--header-h) + clamp(16px, 3vw, 40px));
  padding-bottom: 56px;
  overflow: clip;
  display: flex; flex-direction: column;
}
.hero-grid {
  position: relative;
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 5.2fr) minmax(0, 6.8fr);
  gap: 0 clamp(16px, 3vw, 48px);
  align-items: center;
}
.hero-copy { position: relative; z-index: 3; padding-bottom: 32px; }
.hero-copy .display { margin-bottom: clamp(24px, 3vw, 36px); white-space: nowrap; }
.hero-copy .lead { margin-bottom: clamp(28px, 3.4vw, 44px); max-width: 30em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-meta {
  display: flex; align-items: center; gap: 10px;
  margin-top: clamp(28px, 4vw, 48px);
  font-size: .92rem; color: var(--ink-2);
}
.hero-meta .lv-flag { display: inline-flex; width: 22px; height: 12px; border-radius: 2px; overflow: hidden; flex-direction: column; box-shadow: 0 0 0 1px rgba(20,22,43,.08); }
.hero-meta .lv-flag i { flex: 2; background: #9E3039; }
.hero-meta .lv-flag i:nth-child(2) { flex: 1; background: #fff; }

.hero-visual { position: relative; z-index: 1; align-self: stretch; display: flex; align-items: center; }
.hero-stage {
  position: relative; width: 106%; margin-right: -6%;
  aspect-ratio: 900 / 800;
}
.hero-stage > svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }

.bt-pos { position: absolute; z-index: 4; left: calc(var(--x) * 1%); top: calc(var(--y) * 1%); }
.beam-tag {
  position: relative;
  transform: translate(-26%, -50%);
  display: inline-flex; align-items: center; gap: 12px;
  padding: 8px 16px 8px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .8);
  -webkit-backdrop-filter: blur(14px) saturate(1.5); backdrop-filter: blur(14px) saturate(1.5);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .9), 0 0 0 1px rgba(20, 22, 43, .07), 0 16px 34px -20px rgba(40, 50, 120, .45);
  white-space: nowrap;
  transition: box-shadow .4s var(--ease), background-color .3s;
}
.beam-tag:hover { background: #fff; box-shadow: inset 0 0 0 1px #fff, 0 0 0 1px rgba(20, 22, 43, .12), 0 20px 40px -18px rgba(40, 50, 120, .55); }
.beam-tag .bt-dot { width: 26px; height: 26px; border-radius: 50%; background: linear-gradient(135deg, var(--band), var(--band-2)); flex: none; position: relative; box-shadow: inset 0 1px 1px rgba(255,255,255,.6); }
.beam-tag .bt-dot::after { content: ""; position: absolute; inset: 8px; border-radius: 50%; background: #fff; opacity: .9; }
.beam-tag .bt-name { font-weight: 500; font-size: .92rem; }
.beam-tag .bt-price { font-family: var(--f-display); font-size: .92rem; color: var(--ink-2); }
.beam-tag .bt-price b { color: var(--ink); font-weight: 600; }

.hero-foot {
  position: relative; z-index: 3;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  font-size: .88rem; color: var(--ink-2);
}
.scroll-cue { display: inline-flex; align-items: center; gap: 14px; }
.scroll-cue .sc-rail { position: relative; width: 2px; height: 44px; border-radius: 2px; background: var(--line); overflow: hidden; }
.scroll-cue .sc-photon {
  position: absolute; left: -2px; top: -10px; width: 6px; height: 14px; border-radius: 6px;
  background: linear-gradient(180deg, transparent, var(--violet), var(--teal), var(--amber));
  animation: photonDrop 2.2s cubic-bezier(.7, 0, .3, 1) infinite;
}
@keyframes photonDrop { 0% { transform: translateY(0); } 70%, 100% { transform: translateY(62px); } }
.hero-foot .coords { display: inline-flex; gap: 18px; align-items: center; }
.reg-cross { width: 14px; height: 14px; color: var(--ink-3); animation: spin 14s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* hero illustration internals */
.illo .stroke { fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.illo .stroke-thin { fill: none; stroke: var(--ink); stroke-width: 1; stroke-linecap: round; stroke-linejoin: round; }
.illo .hidden-edge { fill: none; stroke: var(--ink); stroke-width: 1; opacity: .2; stroke-linecap: round; }
.illo .annot { fill: none; stroke: var(--ink-3); stroke-width: 1; stroke-linecap: round; }
.illo .annot-text { fill: var(--ink-3); font-family: var(--f-text); font-size: 13px; font-style: italic; }
.illo .ink-fill { fill: var(--ink); }
.illo .hl { fill: none; stroke: #fff; stroke-width: 1.5; stroke-linecap: round; }
.illo .cursor { animation: caret 1s steps(1) infinite; }
@keyframes caret { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }

/* ---------- Ticker ---------- */
.ticker {
  position: relative;
  border-block: 1px solid var(--line);
  overflow: hidden;
  padding-block: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,.55), rgba(255,255,255,.2));
}
.ticker-skew { will-change: transform; }
.ticker-track {
  display: flex; width: max-content;
  animation: marquee 38s linear infinite;
}
.ticker-track > span {
  display: inline-flex; align-items: center; gap: 28px; padding-right: 28px;
  font-family: var(--f-display); font-size: clamp(1.2rem, 2vw, 1.6rem); letter-spacing: -.02em; white-space: nowrap;
}
.ticker-track svg { width: 18px; height: 16px; animation: spin 9s linear infinite; flex: none; }
.ticker-track span:nth-child(3n+2) svg { animation-duration: 12s; animation-direction: reverse; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Services ---------- */
.services { padding-top: clamp(96px, 11vw, 160px); }
.split-beam {
  position: absolute; left: 0; top: 0; width: 100%; height: 100%;
  pointer-events: none; overflow: visible; z-index: 0;
}
.service-wrap { position: relative; }
.service-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px);
  padding-top: clamp(72px, 8vw, 120px);
}
.service-card {
  --band: var(--amber); --band-2: var(--gold);
  position: relative;
  display: flex; flex-direction: column;
  min-height: 460px;
  padding: clamp(24px, 2.4vw, 34px);
  border-radius: var(--r-card);
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: var(--glass-shadow), 0 0 0 1px rgba(20, 22, 43, .06);
  overflow: hidden;
  isolation: isolate;
  transform-style: preserve-3d;
  will-change: transform;
  transition: box-shadow .6s var(--ease);
}
.service-card::before {
  /* the band rim: refracted light caught on the top edge */
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: linear-gradient(90deg, transparent, var(--band) 20%, var(--band-2) 80%, transparent);
  opacity: .9;
}
.service-card .sc-fan {
  /* a narrow refracted fan, not a blob */
  position: absolute; z-index: -1; top: 0; right: -10%; width: 70%; height: 70%;
  background: conic-gradient(from 200deg at 100% 0%, transparent 0deg, color-mix(in srgb, var(--band) 22%, transparent) 12deg, color-mix(in srgb, var(--band-2) 20%, transparent) 24deg, transparent 36deg);
  filter: blur(14px);
  opacity: .9;
  transition: opacity .6s;
}
.service-card .sc-caustic {
  position: absolute; z-index: -1; left: 0; top: 0; width: 320px; height: 320px; margin: -160px 0 0 -160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.95) 0%, color-mix(in srgb, var(--band) 30%, transparent) 30%, color-mix(in srgb, var(--band-2) 18%, transparent) 48%, transparent 66%);
  opacity: 0; pointer-events: none;
  transition: opacity .5s;
}
.service-card:hover .sc-caustic { opacity: .85; }
.service-card .sc-sweep {
  position: absolute; z-index: 2; top: -30%; bottom: -30%; width: 30%; left: -40%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.0) 20%, rgba(255,255,255,.75) 50%, transparent 80%);
  transform: skewX(-16deg); pointer-events: none;
}
.service-card:hover { box-shadow: var(--glass-shadow), 0 0 0 1px rgba(20, 22, 43, .1), 0 40px 80px -40px color-mix(in srgb, var(--band) 60%, rgba(40, 50, 120, .5)); }
.sc-glyph { width: 100%; height: 168px; margin-bottom: auto; position: relative; }
.sc-glyph svg { width: 100%; height: 100%; overflow: visible; }
.sc-title { margin-top: 36px; margin-bottom: 12px; max-width: 20ch; }
.sc-text { color: var(--ink-2); max-width: 30ch; }
.sc-foot {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 16px;
  margin-top: 28px; padding-top: 22px; border-top: 1px solid rgba(20, 22, 43, .08);
}
.price { font-weight: 500; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.price small { font-family: var(--f-text); font-size: .9rem; font-weight: 400; letter-spacing: 0; color: var(--ink-2); margin-right: 6px; }
.sc-price { font-size: clamp(1.8rem, 2.6vw, 2.3rem); }
.sc-go {
  width: 48px; height: 48px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  background: var(--ink); color: #fff;
  transition: transform .6s var(--ease), background-color .4s;
}
.sc-go svg { width: 20px; height: 20px; transition: transform .6s var(--ease); }
.service-card:hover .sc-go { transform: rotate(-45deg); background: linear-gradient(135deg, var(--band), var(--band-2)); }
.service-card:focus-visible { outline-offset: 4px; border-radius: var(--r-card); }

/* ---------- Process (optical bench) ---------- */
.process { overflow: clip; }
.process-pin { position: relative; }
.bench {
  position: relative;
  margin: 0 calc(var(--gutter) * -1) clamp(24px, 3vw, 40px);
}
.bench svg { width: 100%; height: auto; max-height: 40vh; overflow: visible; }
.process .section-head { margin-bottom: clamp(24px, 4vw, 56px); }
.process-pin { padding-top: 24px; }
.bench .station { transform-box: fill-box; transform-origin: 50% 100%; }
.bench .station .glass { transition: fill .6s; }
.steps {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 40px);
  counter-reset: step;
}
.step { position: relative; padding-top: 20px; border-top: 1px solid var(--line); }
.step::before {
  content: ""; position: absolute; left: 0; top: -1px; height: 2px; width: 100%;
  background: var(--spectrum-3); transform: scaleX(var(--p, 0)); transform-origin: left;
}
.step-no { font-family: var(--f-display); font-size: .95rem; color: var(--ink-3); font-variant-numeric: tabular-nums; display: block; margin-bottom: 12px; transition: color .4s; }
.step h3 { margin-bottom: 10px; }
.step p { color: var(--ink-2); font-size: 1rem; }
.step-icon { display: none; }
.step.is-on .step-no { color: var(--ink); }
.process-counter {
  font-family: var(--f-display); font-variant-numeric: tabular-nums;
  font-size: 1rem; color: var(--ink-2);
  display: inline-flex; align-items: center; gap: 10px;
}
.process-counter b { color: var(--ink); font-weight: 600; display: inline-block; min-width: 2ch; }

/* ---------- Craft (what every project gets) ---------- */
.craft-slab {
  position: relative;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  border-radius: var(--r-slab);
  background: var(--glass-bg);
  box-shadow: var(--glass-shadow), 0 0 0 1px rgba(20, 22, 43, .06);
  overflow: hidden;
}
.craft-slab::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 1px;
  background: var(--spectrum); opacity: .7;
}
.craft-cell {
  position: relative;
  padding: clamp(28px, 3vw, 44px);
  border-right: 1px solid rgba(20, 22, 43, .07);
  border-bottom: 1px solid rgba(20, 22, 43, .07);
  --tint: var(--amber);
}
.craft-cell:nth-child(3n) { border-right: 0; }
.craft-cell:nth-child(n+4) { border-bottom: 0; }
.craft-cell .glyph { width: 84px; height: 84px; margin: -6px 0 26px -6px; }
.craft-cell .glyph svg > rect.g-thin:first-child { display: none; }
.craft-cell::before {
  content: ""; position: absolute; top: 0; left: clamp(28px, 3vw, 44px); width: 44px; height: 3px;
  background: var(--tint); border-radius: 0 0 3px 3px;
}
.craft-cell { transition: background-color .5s; }
.craft-cell:hover { background: color-mix(in srgb, var(--tint) 5%, transparent); }
.craft-slab::after {
  content: ""; position: absolute; top: 0; left: 0; width: 22%; height: 1px;
  background: linear-gradient(90deg, transparent, #fff 40%, #fff 60%, transparent);
  box-shadow: 0 0 12px 2px rgba(255,255,255,.9);
  animation: edgeRun 5.5s cubic-bezier(.65,0,.35,1) infinite;
}
@keyframes edgeRun { from { transform: translateX(-100%); } to { transform: translateX(560%); } }
.craft-cell .glyph svg { width: 100%; height: 100%; overflow: visible; }
.craft-cell h3 { margin-bottom: 8px; }
.craft-cell p { color: var(--ink-2); font-size: 1rem; max-width: 30ch; }

.glyph .g-ink { fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.glyph .g-thin { fill: none; stroke: var(--ink); stroke-width: 1; stroke-linecap: round; stroke-linejoin: round; opacity: .35; }
.glyph .g-tint { fill: var(--tint); }
.glyph .g-tint-stroke { fill: none; stroke: var(--tint); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.glyph .g-glass { fill: url(#glyph-glass); }
.glyph .g-dot { fill: var(--ink); }
.glyph .g-blink { animation: caret 1s steps(1) infinite; }

/* ---------- CTA ---------- */
.cta-slab {
  position: relative;
  border-radius: var(--r-slab);
  padding: clamp(48px, 8vw, 120px) clamp(24px, 6vw, 96px);
  background: linear-gradient(180deg, #fff, rgba(255,255,255,.6));
  box-shadow: var(--glass-shadow), 0 0 0 1px rgba(20, 22, 43, .06);
  overflow: hidden;
  isolation: isolate;
}
.cta-slab .caustic {
  position: absolute; z-index: -1; left: 0; top: 0;
  width: 560px; height: 560px; margin: -280px 0 0 -280px;
  border-radius: 50%;
  background:
    radial-gradient(circle, transparent 38%, rgba(255, 138, 61, .32) 44%, rgba(255, 201, 74, .28) 48%, rgba(63, 217, 160, .26) 52%, rgba(43, 179, 255, .28) 56%, rgba(123, 92, 255, .3) 60%, transparent 66%);
  filter: blur(10px);
  pointer-events: none;
  will-change: transform;
}
.cta-slab .caustic-core {
  position: absolute; z-index: -1; left: 0; top: 0; width: 220px; height: 220px; margin: -110px 0 0 -110px;
  border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,1), rgba(255,255,255,0) 70%);
  pointer-events: none; will-change: transform;
}
.cta-slab h2 { max-width: 13ch; font-size: clamp(2.6rem, 6.4vw, 6rem); line-height: .96; letter-spacing: -.04em; font-weight: 500; }
.cta-slab p { margin-top: 24px; max-width: 34em; color: var(--ink-2); font-size: var(--fs-lead); line-height: 1.5; }
.cta-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; margin-top: clamp(32px, 4vw, 48px); }
.mail-link {
  font-family: var(--f-display); font-size: clamp(1.2rem, 2vw, 1.6rem); letter-spacing: -.02em;
  display: inline-flex; align-items: center; position: relative; padding: 4px 0;
}
.mail-link::after { content: ""; position: absolute; left: 0; right: 14px; bottom: 0; height: 1.5px; background: var(--spectrum-3); transform: scaleX(.18); transform-origin: left; transition: transform .7s var(--ease); }
.mail-link:hover::after, .mail-link:focus-visible::after { transform: scaleX(1); }
.caret { display: inline-block; width: 2px; height: 1.05em; margin-left: 6px; background: var(--violet); animation: caret 1.05s steps(1) infinite; }
.cta-prism { position: absolute; right: clamp(-60px, -2vw, 0px); top: 50%; width: clamp(220px, 30vw, 420px); transform: translateY(-50%); z-index: -1; opacity: .95; }
.cta-prism svg { width: 100%; height: auto; overflow: visible; }

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  padding-top: clamp(72px, 9vw, 128px);
  padding-bottom: 32px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, var(--paper), #fff);
  overflow: clip;
}
.footer-top {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 2fr); gap: 48px;
}
.footer-brand p { margin-top: 20px; color: var(--ink-2); max-width: 26em; }
.footer-brand .brand svg { height: 34px; }
.footer-nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.footer-nav h3 { font-family: var(--f-text); font-size: .88rem; font-weight: 500; color: var(--ink-3); margin-bottom: 16px; }
.footer-nav li + li { margin-top: 8px; }
.footer-nav a { display: inline-block; position: relative; padding: 2px 0; }
.footer-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--spectrum-3); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.footer-nav a:hover::after, .footer-nav a:focus-visible::after { transform: scaleX(1); }
.footer-word { margin: clamp(56px, 8vw, 112px) 0 clamp(28px, 3vw, 40px); }
.footer-word svg { width: 100%; height: auto; overflow: visible; }
.footer-line { height: 1px; background: var(--spectrum); background-size: 200% 100%; animation: shimmer 6s linear infinite; opacity: .8; }
@keyframes shimmer { to { background-position: -200% 0; } }
.footer-bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px;
  padding-top: 24px; font-size: .9rem; color: var(--ink-2);
}
.footer-bottom a:hover { color: var(--ink); }
.to-top { display: inline-flex; align-items: center; gap: 8px; }
.to-top svg { width: 14px; height: 14px; transition: transform .5s var(--ease); }
.to-top:hover svg { transform: translateY(-3px); }

/* =========================================================
   Service page
   ========================================================= */
.svc-hero { min-height: auto; padding-bottom: clamp(40px, 6vw, 88px); }
.svc-hero .hero-grid { align-items: center; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: .92rem; color: var(--ink-2); margin-bottom: 28px; }
.crumbs a:hover { color: var(--ink); }
.crumbs svg { width: 12px; height: 12px; animation: spin 10s linear infinite; }
.svc-price-row {
  display: flex; flex-wrap: wrap; align-items: stretch; gap: 0;
  margin: clamp(28px, 3vw, 40px) 0;
  border-radius: 20px;
  background: var(--glass-bg);
  box-shadow: var(--glass-shadow), 0 0 0 1px rgba(20, 22, 43, .06);
  overflow: hidden; max-width: 560px; position: relative;
}
.svc-price-row::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: linear-gradient(180deg, var(--band), var(--band-2)); }
.svc-price-row > div { padding: 18px 24px; }
.svc-price-row .spr-price { border-right: 1px solid rgba(20,22,43,.07); }
.svc-price-row .spr-label { font-size: .85rem; color: var(--ink-2); display: block; margin-bottom: 6px; }
.svc-price-row .price { font-size: clamp(2rem, 3vw, 2.6rem); }
.svc-price-row .spr-for { flex: 1; min-width: 200px; }
.svc-price-row .spr-for p { font-size: .98rem; line-height: 1.45; }
.price-shimmer {
  background: linear-gradient(100deg, var(--ink) 0 40%, var(--band) 46%, var(--band-2) 52%, var(--ink) 58% 100%);
  background-size: 260% 100%; background-position: 100% 0;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: priceShine 6s var(--ease-io) infinite;
}
@keyframes priceShine { 0%, 55% { background-position: 100% 0; } 85%, 100% { background-position: 0% 0; } }

/* included: sticky exploded stack + list */
.included-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 96px);
  align-items: start;
}
.stack-col { position: sticky; top: calc(var(--header-h) + 24px); }
.stack-stage { position: relative; aspect-ratio: 600 / 640; }
.stack-stage svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.stack-caption { margin-top: 12px; font-size: .92rem; color: var(--ink-2); display: flex; align-items: center; gap: 10px; min-height: 1.6em; }
.stack-caption b { color: var(--ink); font-weight: 500; }
.stack-caption .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--band); box-shadow: 0 0 0 4px color-mix(in srgb, var(--band) 20%, transparent); animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 9px color-mix(in srgb, var(--band) 0%, transparent); } }

.inc-list { display: grid; gap: 0; }
.inc-item {
  position: relative;
  display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 20px; align-items: start;
  padding: 28px 0;
  border-top: 1px solid var(--line);
  transition: opacity .5s;
}
.inc-item:last-child { border-bottom: 1px solid var(--line); }
.inc-item::before {
  content: ""; position: absolute; left: 0; top: -1px; height: 2px; width: 100%;
  background: linear-gradient(90deg, var(--band), var(--band-2), transparent);
  transform: scaleX(0); transform-origin: left; transition: transform .8s var(--ease);
}
.inc-item.is-active::before { transform: scaleX(1); }
.inc-ico {
  width: 56px; height: 56px; border-radius: 16px;
  display: grid; place-items: center;
  background: var(--glass-bg);
  box-shadow: var(--glass-shadow), 0 0 0 1px rgba(20, 22, 43, .07);
  transition: box-shadow .5s, transform .6s var(--ease);
}
.inc-ico svg { width: 30px; height: 30px; overflow: visible; }
.inc-ico svg * { fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.inc-item.is-active .inc-ico { transform: translateY(-2px) rotate(-4deg); box-shadow: var(--glass-shadow), 0 0 0 1.5px var(--band), 0 14px 30px -16px var(--band); }
.inc-item h3 { margin-bottom: 6px; font-size: clamp(1.2rem, 1.6vw, 1.45rem); }
.inc-item p { color: var(--ink-2); }
.inc-item .inc-link { display: inline-flex; margin-top: 10px; font-weight: 500; position: relative; }
.inc-item .inc-link::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1.5px; background: linear-gradient(90deg, var(--amber), var(--gold)); transform-origin: left; transform: scaleX(.3); transition: transform .6s var(--ease); }
.inc-item .inc-link:hover::after { transform: scaleX(1); }
.inc-base { background: linear-gradient(90deg, rgba(255, 138, 61, .07), transparent 70%); border-radius: 0; }
.inc-tag { display: inline-block; font-size: .8rem; padding: 2px 10px; border-radius: 999px; background: var(--paper-2); color: var(--ink-2); margin-left: 8px; vertical-align: middle; font-family: var(--f-text); font-weight: 500; letter-spacing: 0; }

/* best for */
.bestfor-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0;
  border-radius: var(--r-slab);
  background: var(--glass-bg);
  box-shadow: var(--glass-shadow), 0 0 0 1px rgba(20, 22, 43, .06);
  overflow: hidden; position: relative;
}
.bestfor-grid::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 2px; background: linear-gradient(90deg, var(--band), var(--band-2), var(--band)); opacity: .8; }
.bf-item {
  position: relative; padding: clamp(28px, 3vw, 40px) clamp(22px, 2.4vw, 34px) clamp(32px, 3.4vw, 44px);
  border-right: 1px solid rgba(20, 22, 43, .07);
  transition: background-color .5s;
}
.bf-item:last-child { border-right: 0; }
.bf-item:hover { background: color-mix(in srgb, var(--band) 5%, transparent); }
.bf-item svg.bf-facet { width: 72px; height: 72px; margin: -8px 0 36px -8px; overflow: visible; }
.bf-item h3 { margin-bottom: 8px; }
.bf-item p { color: var(--ink-2); font-size: 1rem; }
.bf-item::after {
  content: ""; position: absolute; left: 24px; right: 24px; bottom: 0; height: 2px;
  background: linear-gradient(90deg, var(--band), var(--band-2));
  transform: scaleX(.12); transform-origin: left; transition: transform .8s var(--ease);
}
.bf-item:hover::after { transform: scaleX(1); }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 5vw, 96px); align-items: start; }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 26px 0;
  font-family: var(--f-display); font-size: clamp(1.2rem, 1.8vw, 1.5rem); letter-spacing: -.015em; font-weight: 500;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover .faq-q { color: var(--ink-2); }
.faq-x { position: relative; width: 36px; height: 36px; border-radius: 50%; flex: none; box-shadow: inset 0 0 0 1px rgba(20,22,43,.14); transition: background-color .4s, transform .6s var(--ease); }
.faq-x::before, .faq-x::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 1.5px; margin: -.75px 0 0 -7px; background: var(--ink); border-radius: 2px; transition: transform .6s var(--ease), background-color .4s; }
.faq-x::after { transform: rotate(90deg); }
.faq-item[open] .faq-x { background: linear-gradient(135deg, var(--band), var(--band-2)); transform: rotate(135deg); }
.faq-item[open] .faq-x::before, .faq-item[open] .faq-x::after { background: #fff; }
.faq-a { padding: 0 64px 28px 0; color: var(--ink-2); max-width: 40em; }

/* other services */
.other-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
.other-grid .service-card { min-height: 380px; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1180px) {
  .nav ul { gap: 18px; }
  .beam-tag { padding: 6px 12px 6px 8px; gap: 8px; }
  .beam-tag .bt-dot { width: 20px; height: 20px; }
  .beam-tag .bt-dot::after { inset: 6px; }
  .beam-tag .bt-name, .beam-tag .bt-price { font-size: .82rem; }
  .nav li.nav-process { display: none; }
}
@media (max-width: 1024px) {
  .section-head { grid-template-columns: minmax(0, 1fr); }
  .service-grid { grid-template-columns: minmax(0, 1fr); padding-top: 24px; }
  .service-card { min-height: 0; }
  .sc-glyph { height: 120px; }
  .split-beam { display: none; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .craft-slab { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .craft-cell:nth-child(3n) { border-right: 1px solid rgba(20, 22, 43, .07); }
  .craft-cell:nth-child(2n) { border-right: 0; }
  .craft-cell:nth-child(n+4) { border-bottom: 1px solid rgba(20, 22, 43, .07); }
  .craft-cell:nth-child(n+5) { border-bottom: 0; }
  .footer-top { grid-template-columns: minmax(0, 1fr); }
  .included-grid { grid-template-columns: minmax(0, 1fr); }
  .stack-col { position: relative; top: 0; max-width: 520px; }
  .bestfor-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bf-item:nth-child(2) { border-right: 0; }
  .bf-item:nth-child(-n+2) { border-bottom: 1px solid rgba(20, 22, 43, .07); }
  .faq-grid { grid-template-columns: minmax(0, 1fr); }
  .cta-prism { opacity: .35; }
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-copy { padding-bottom: 8px; }
  .hero-stage { width: 100%; margin: 0 auto; max-width: 760px; }
  .hero-visual { margin-top: 12px; }
  .nav, .header-cta { display: none; }
  .menu-toggle { display: block; }
  .bench { display: none; }
  .steps { grid-template-columns: minmax(0, 1fr); row-gap: 0; position: relative; padding-left: 0; }
  .step { display: grid; grid-template-columns: 64px minmax(0, 1fr); column-gap: 20px; padding: 28px 0; border-top: 0; }
  .step::before { display: none; }
  .step-icon { display: block; grid-row: 1 / span 3; width: 64px; height: 64px; position: relative; z-index: 1; }
  .step-icon svg { width: 100%; height: 100%; overflow: visible; }
  .step-no { margin-bottom: 4px; }
  .steps-rail { position: absolute; left: 31px; top: 40px; bottom: 40px; width: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
  .steps-rail i { position: absolute; inset: 0; background: linear-gradient(180deg, var(--ink), var(--amber), var(--teal), var(--violet)); transform-origin: top; transform: scaleY(0); }
}
@media (min-width: 901px) {
  .steps-rail { display: none; }
}
@media (max-width: 720px) {
  :root { --header-h: 66px; --fs-display: 14vw; }
  .brand svg { height: 26px; }
  .hero { min-height: auto; padding-bottom: 32px; }
  .hero-stage { width: 112%; margin-left: -4%; }
  .hero-stage { aspect-ratio: auto; }
  .hero-stage > svg { position: relative; inset: auto; height: auto; }
  .beam-tags { position: relative; display: grid; gap: 8px; margin: 4px 0 0 3.6%; width: 89.3%; }
  .bt-pos { position: relative; left: auto; top: auto; }
  .beam-tag { transform: none; justify-content: flex-start; width: 100%; }
  .beam-tag .bt-price { margin-left: auto; }
  .hero-foot { display: none; }
  .hero-actions .btn { flex: 1 1 auto; }
  .craft-slab { grid-template-columns: minmax(0, 1fr); }
  .craft-cell { border-right: 0 !important; border-bottom: 1px solid rgba(20, 22, 43, .07) !important; display: grid; grid-template-columns: 56px minmax(0, 1fr); column-gap: 20px; }
  .craft-cell:last-child { border-bottom: 0 !important; }
  .craft-cell .glyph { width: 56px; height: 56px; grid-row: 1 / span 2; margin: 0; }
  .footer-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .bestfor-grid { grid-template-columns: minmax(0, 1fr); }
  .bf-item { border-right: 0; border-bottom: 1px solid rgba(20, 22, 43, .07); }
  .bf-item:last-child { border-bottom: 0; }
  .other-grid { grid-template-columns: minmax(0, 1fr); }
  .svc-price-row .spr-price { border-right: 0; border-bottom: 1px solid rgba(20,22,43,.07); width: 100%; }
  .faq-a { padding-right: 0; }
  .inc-item { grid-template-columns: 48px minmax(0, 1fr); gap: 16px; }
  .inc-ico { width: 48px; height: 48px; border-radius: 14px; }
  .cta-prism { display: none; }
}
@media (min-width: 721px) {
  .beam-tags { position: absolute; inset: 0; pointer-events: none; }
  .beam-tags .bt-pos { pointer-events: auto; }
}

/* =========================================================
   Production additions
   ========================================================= */

/* ---------- Hero legibility: the beam fades under the copy ---------- */
.hero-copy .rf-base, .hero-copy .lead, .hero-copy .crumbs {
  text-shadow: 0 0 16px var(--paper), 0 0 6px var(--paper), 0 0 2px var(--paper);
}
.svc-hero .display { font-size: clamp(2.8rem, 5.4vw, 5.6rem); }
.h1-tag {
  display: inline-block; vertical-align: top; margin: .18em 0 0 .2em;
  font-family: var(--f-text); font-size: .2em; letter-spacing: 0; font-weight: 500;
  padding: .3em .8em; border-radius: 999px; color: var(--ink-2);
  background: var(--paper-2); box-shadow: inset 0 0 0 1px rgba(20, 22, 43, .08);
  text-shadow: none;
}

/* ---------- Odometer prices (final value always in the HTML) ---------- */
.odo-roll { display: inline-flex; align-items: flex-start; white-space: nowrap; }
.odo-d { display: inline-block; height: 1.02em; overflow: hidden; }
.odo-strip { display: block; will-change: transform; }
.odo-strip > span, .odo-c { display: block; height: 1.02em; line-height: 1.02; }
.odo-c { display: inline-block; }

/* ---------- Sparks off primary buttons ---------- */
.spark {
  position: fixed; left: 0; top: 0; z-index: 300;
  width: 8px; height: 2px; border-radius: 2px;
  pointer-events: none;
}

/* ---------- Riga clock ---------- */
.riga { display: none; align-items: center; gap: 8px; font-variant-numeric: tabular-nums; }
.js .riga { display: inline-flex; }
.riga i { width: 6px; height: 6px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 3px color-mix(in srgb, var(--teal) 22%, transparent); }
.riga-colon { animation: caret 1s steps(1) infinite; display: inline-block; width: .35em; text-align: center; }

/* ---------- Live dimension line (home hero) ---------- */
.dim { display: none; position: relative; height: 16px; margin: -14px 0 22px; color: var(--ink-3); font-size: .78rem; }
.js .dim { display: block; }
.dim-line { position: absolute; left: 0; top: 7px; height: 1px; width: var(--w, 0px); background: currentColor; transform-origin: left center; }
.dim-line::before, .dim-line::after { content: ""; position: absolute; top: -5px; width: 1px; height: 11px; background: currentColor; }
.dim-line::before { left: 0; }
.dim-line::after { right: 0; }
.dim-label {
  position: absolute; top: -1px; left: calc(var(--w, 0px) / 2); transform: translateX(-50%);
  padding: 0 8px; background: var(--paper); font-variant-numeric: tabular-nums; line-height: 16px; white-space: nowrap;
}

/* ---------- Cookie banner ---------- */
.cookie {
  position: fixed; right: 20px; bottom: 20px; z-index: 150;
  width: min(420px, calc(100vw - 40px));
  padding: 20px 20px 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, .88);
  -webkit-backdrop-filter: blur(18px) saturate(1.5); backdrop-filter: blur(18px) saturate(1.5);
  box-shadow: var(--glass-shadow), 0 0 0 1px rgba(20, 22, 43, .08), 0 30px 70px -30px rgba(40, 50, 120, .45);
  overflow: hidden;
}
.cookie[hidden] { display: none; }
.ck-beam { position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--spectrum); transform-origin: left center; }
.ck-head { display: flex; gap: 14px; align-items: flex-start; }
.ck-glyph { width: 40px; height: 40px; flex: none; overflow: visible; }
.cookie p { font-size: .94rem; line-height: 1.5; color: var(--ink-2); }
.ck-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin-top: 16px; padding-left: 54px; }
.ck-actions a { font-size: .9rem; color: var(--ink); text-decoration: underline; text-decoration-color: rgba(123, 92, 255, .5); text-underline-offset: 3px; margin-left: 4px; }
.footer-nav .linklike { font: inherit; color: inherit; padding: 2px 0; position: relative; text-align: left; }
.footer-nav .linklike::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--spectrum-3); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.footer-nav .linklike:hover::after, .footer-nav .linklike:focus-visible::after { transform: scaleX(1); }
.mm-legal { display: flex; gap: 18px; font-size: .9rem; color: var(--ink-2); }
.mm-legal a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line); }
.mobile-menu li a[aria-current="page"] { color: var(--ink); }
.mobile-menu li a[aria-current="page"] { position: relative; padding-left: 22px; }
.mobile-menu li a[aria-current="page"]::after { content: ""; position: absolute; left: 0; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%; background: var(--spectrum-3); }

/* ---------- Anatomy diagrams (websites, web apps) ---------- */
[data-anatomy] [data-part] { transition: opacity .5s; }
[data-anatomy] .pg { opacity: 0; }
[data-anatomy] .is-dim { opacity: .55; }

/* ---------- Legal pages ---------- */
.legal-hero { padding-top: calc(var(--header-h) + clamp(40px, 7vw, 104px)); padding-bottom: clamp(36px, 5vw, 72px); }
.lh-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; }
.legal-hero .display { font-size: clamp(2.7rem, 6vw, 5.8rem); white-space: normal; }
.legal-meta { margin-top: 22px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; color: var(--ink-2); font-size: .95rem; }
.legal-meta .lm-date { display: inline-flex; align-items: center; gap: 10px; }
.legal-meta .lm-date i { width: 8px; height: 8px; border-radius: 50%; background: var(--violet); box-shadow: 0 0 0 4px rgba(123, 92, 255, .16); animation: pulseV 2s ease-in-out infinite; }
@keyframes pulseV { 50% { box-shadow: 0 0 0 9px rgba(123, 92, 255, 0); } }
.legal-glyph { width: clamp(104px, 12vw, 160px); flex: none; }
.legal-glyph svg { width: 100%; height: auto; overflow: visible; }
.legal-grid {
  display: grid; grid-template-columns: minmax(190px, 250px) minmax(0, 70ch);
  gap: clamp(32px, 6vw, 112px); align-items: start;
  padding-bottom: var(--section);
}
.toc { position: sticky; top: calc(var(--header-h) + 28px); }
.toc summary {
  list-style: none; font-size: .88rem; color: var(--ink-3); margin-bottom: 14px; pointer-events: none;
  display: flex; align-items: center; justify-content: space-between;
}
.toc summary::-webkit-details-marker { display: none; }
.toc-wrap { position: relative; border-left: 1px solid var(--line); }
.toc ol { display: grid; }
.toc a {
  display: block; padding: 7px 0 7px 18px;
  font-size: .93rem; line-height: 1.35; color: var(--ink-2);
  transition: color .3s, transform .5s var(--ease);
}
.toc a:hover { color: var(--ink); }
.toc a.is-active { color: var(--ink); transform: translateX(4px); }
.toc-ind {
  position: absolute; left: -1.5px; top: 0; width: 3px; height: 34px; border-radius: 3px; transform-origin: 50% 0%;
  background: linear-gradient(180deg, var(--amber), var(--teal), var(--violet));
  will-change: transform;
}
.legal-body > section { margin-bottom: clamp(40px, 4.4vw, 64px); scroll-margin-top: calc(var(--header-h) + 28px); }
.legal-body h2 {
  display: flex; gap: .55em; align-items: baseline;
  font-family: var(--f-display); font-weight: 500; letter-spacing: -.02em;
  font-size: clamp(1.45rem, 2.1vw, 1.85rem); line-height: 1.2; margin-bottom: 16px;
}
.legal-body h2 .num { color: var(--ink-3); font-variant-numeric: tabular-nums; font-size: .8em; }
.legal-body p, .legal-body li { color: var(--ink-2); font-size: 1.0625rem; line-height: 1.72; }
.legal-body p + p, .legal-body ul + p, .legal-body table + p { margin-top: 16px; }
.legal-body ul { display: grid; gap: 12px; margin: 4px 0 4px; }
.legal-body ul li { position: relative; padding-left: 24px; }
.legal-body ul li::before {
  content: ""; position: absolute; left: 2px; top: .58em; width: 9px; height: 8px;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  background: linear-gradient(90deg, var(--amber), var(--teal), var(--violet));
}
.legal-body strong { color: var(--ink); font-weight: 600; }
.legal-body a { color: var(--ink); text-decoration: underline; text-decoration-color: rgba(123, 92, 255, .5); text-underline-offset: 3px; }
.legal-body a:hover { text-decoration-color: var(--violet); }
.legal-table {
  width: 100%; border-collapse: separate; border-spacing: 0; margin: 20px 0 8px;
  border-radius: 18px; overflow: hidden; background: var(--glass-bg);
  box-shadow: var(--glass-shadow), 0 0 0 1px rgba(20, 22, 43, .07);
  font-size: .97rem;
}
.legal-table th { text-align: left; font-weight: 500; font-size: .86rem; color: var(--ink-2); padding: 14px 18px; background: rgba(236, 239, 246, .75); border-bottom: 1px solid var(--line); }
.legal-table td { padding: 15px 18px; vertical-align: top; color: var(--ink-2); line-height: 1.5; border-bottom: 1px solid rgba(20, 22, 43, .06); }
.legal-table tr:last-child td { border-bottom: 0; }
.legal-table td:first-child { color: var(--ink); }
.legal-table code, .legal-body code {
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: .86em;
  background: var(--paper-2); padding: 2px 7px; border-radius: 6px; color: var(--ink);
}
.legal-end { margin-top: 8px; padding: 22px 24px; border-radius: 18px; background: var(--paper-2); color: var(--ink-2); font-size: .98rem; display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between; }
.legal-end a { color: var(--ink); font-weight: 500; }

/* ---------- Contact ---------- */
.contact-hero { padding-top: calc(var(--header-h) + clamp(36px, 6vw, 92px)); padding-bottom: clamp(28px, 4vw, 56px); }
.ch-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 24px clamp(32px, 5vw, 80px); align-items: center; }
.contact-hero .display { font-size: clamp(2.7rem, 5.6vw, 5.6rem); white-space: normal; max-width: 12ch; }
.contact-hero .lead { margin-top: 26px; }
.contact-scene svg { width: 100%; height: auto; overflow: visible; }
.contact-main { padding-bottom: var(--section); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4.3fr); gap: clamp(20px, 3vw, 40px); align-items: start; }
.form-slab {
  position: relative; border-radius: var(--r-slab);
  padding: clamp(24px, 3.6vw, 48px);
  background: var(--glass-bg);
  box-shadow: var(--glass-shadow), 0 0 0 1px rgba(20, 22, 43, .06);
}
.form-slab::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 2px; border-radius: var(--r-slab) var(--r-slab) 0 0; background: var(--spectrum); opacity: .75; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 20px; }
.field { display: grid; gap: 8px; align-content: start; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field > label, .field legend { font-weight: 500; font-size: .96rem; color: var(--ink); padding: 0; }
.field .opt { color: var(--ink-3); font-weight: 400; }
fieldset.field { border: 0; margin: 0; padding: 0; min-width: 0; }
.input-wrap { position: relative; }
.input-wrap::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 0; height: 2px; border-radius: 2px;
  background: var(--spectrum-3); transform: scaleX(0); transform-origin: left center;
  transition: transform .7s var(--ease);
}
.input-wrap:focus-within::after { transform: scaleX(1); }
.input {
  display: block; width: 100%; font: inherit; color: var(--ink);
  background: rgba(255, 255, 255, .8);
  border: 1px solid rgba(20, 22, 43, .15); border-radius: 14px;
  padding: 14px 16px; min-height: 52px;
  transition: border-color .3s, box-shadow .3s, background-color .3s;
}
textarea.input { min-height: 160px; resize: vertical; line-height: 1.55; }
.input::placeholder { color: #9A9EB5; }
.input:focus { outline: none; background: #fff; border-color: rgba(123, 92, 255, .55); box-shadow: 0 12px 30px -20px rgba(123, 92, 255, .7); }
.input[aria-invalid="true"] { border-color: #D9414A; background: #FFF8F8; }
.err { display: flex; gap: 8px; align-items: flex-start; color: #B3262F; font-size: .9rem; line-height: 1.4; }
.err:empty { display: none; }
.err::before { content: ""; width: 14px; height: 14px; flex: none; margin-top: 2px; background: currentColor; clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.chip span {
  display: inline-flex; align-items: center; gap: 9px;
  min-height: 44px; padding: 10px 16px; border-radius: 999px;
  background: rgba(255, 255, 255, .8); box-shadow: inset 0 0 0 1px rgba(20, 22, 43, .15);
  font-size: .95rem; cursor: pointer; user-select: none;
  transition: background-color .3s, color .3s, box-shadow .3s, transform .4s var(--ease);
}
.chip span::before { content: ""; width: 9px; height: 9px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--ink-3); transition: background .3s, box-shadow .3s; }
.chip span:hover { box-shadow: inset 0 0 0 1px rgba(20, 22, 43, .3); }
.chip input:checked + span { background: var(--ink); color: #fff; box-shadow: 0 10px 24px -14px rgba(20, 22, 43, .6); }
.chip input:checked + span::before { background: linear-gradient(135deg, var(--amber), var(--teal), var(--violet)); box-shadow: none; }
.chip input:focus-visible + span { outline: 2px solid var(--violet); outline-offset: 3px; }
.chips[aria-invalid="true"] .chip span { box-shadow: inset 0 0 0 1px #D9414A; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: .96rem; color: var(--ink-2); line-height: 1.5; cursor: pointer; }
.consent input {
  appearance: none; -webkit-appearance: none; flex: none;
  width: 22px; height: 22px; margin: 1px 0 0; border-radius: 7px;
  border: 1.5px solid rgba(20, 22, 43, .3); background: #fff; cursor: pointer;
  transition: background-color .3s, border-color .3s;
}
.consent input:checked {
  background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath d='M6 11.5l3.2 3.2L16 8' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
  border-color: var(--ink);
}
.consent input:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; }
.consent input[aria-invalid="true"] { border-color: #D9414A; }
.consent a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(123, 92, 255, .5); }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 6px; }
.form-note { font-size: .88rem; color: var(--ink-2); }
.form-done { display: none; }
.form-slab.is-sent .form-body { display: none; }
.form-slab.is-sent .form-done { display: block; }
.form-done .fd-icon { width: 76px; height: 76px; margin-bottom: 26px; overflow: visible; }
.form-done h2 { font-family: var(--f-display); font-weight: 500; letter-spacing: -.03em; font-size: clamp(1.8rem, 3vw, 2.6rem); line-height: 1.05; margin-bottom: 16px; max-width: 18ch; }
.form-done p { color: var(--ink-2); font-size: var(--fs-lead); line-height: 1.5; max-width: 34em; }
.form-done p a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.form-done .fd-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.side-slab {
  position: sticky; top: calc(var(--header-h) + 24px);
  border-radius: var(--r-slab); overflow: hidden;
  background: var(--glass-bg);
  box-shadow: var(--glass-shadow), 0 0 0 1px rgba(20, 22, 43, .06);
}
.side-block { padding: clamp(22px, 2.6vw, 32px); }
.side-block + .side-block { border-top: 1px solid rgba(20, 22, 43, .07); }
.side-block h2 { font-family: var(--f-text); font-size: .88rem; font-weight: 500; color: var(--ink-3); margin-bottom: 10px; }
.side-mail { font-family: var(--f-display); font-size: clamp(1.3rem, 2vw, 1.6rem); letter-spacing: -.02em; display: inline-flex; align-items: center; position: relative; }
.side-mail::after { content: ""; position: absolute; left: 0; right: 14px; bottom: -3px; height: 1.5px; background: var(--spectrum-3); transform: scaleX(.2); transform-origin: left; transition: transform .7s var(--ease); }
.side-mail:hover::after { transform: scaleX(1); }
.side-block p { color: var(--ink-2); }
.next-steps { position: relative; display: grid; gap: 22px; margin-top: 6px; }
.next-steps::before { content: ""; position: absolute; left: 15px; top: 16px; bottom: 16px; width: 2px; background: var(--line); border-radius: 2px; }
.ns-wrap { position: relative; }
.ns-wrap .ns-rail { position: absolute; z-index: 1; left: 15px; top: 16px; bottom: 16px; width: 2px; border-radius: 2px; background: linear-gradient(180deg, var(--amber), var(--teal), var(--violet)); transform-origin: top; }
.next-steps li { position: relative; display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 14px; align-items: start; }
.next-steps .ns-n {
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; position: relative; z-index: 1;
  background: #fff; box-shadow: inset 0 0 0 1.5px rgba(20, 22, 43, .18);
  font-family: var(--f-display); font-size: .9rem; font-weight: 600; font-variant-numeric: tabular-nums;
  transition: background-color .4s, color .4s, box-shadow .4s;
}
.next-steps li.is-on .ns-n { background: var(--ink); color: #fff; box-shadow: 0 0 0 5px rgba(123, 92, 255, .14); }
.next-steps p { color: var(--ink-2); font-size: .98rem; line-height: 1.5; padding-top: 4px; }

/* ---------- 404 ---------- */
.nf {
  min-height: 100svh; display: grid; align-items: center;
  padding: calc(var(--header-h) + 40px) 0 64px;
}
.nf-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 32px clamp(32px, 5vw, 80px); align-items: center; }
.nf .display { font-size: clamp(2.6rem, 5.8vw, 5.6rem); white-space: normal; max-width: 11ch; }
.nf .lead { margin: 24px 0 36px; }
.nf-scene svg { width: 100%; height: auto; overflow: visible; }
.nf-code { font-family: var(--f-display); font-size: .95rem; color: var(--ink-3); margin-bottom: 18px; display: inline-flex; align-items: center; gap: 10px; }

/* ---------- Production responsive ---------- */
@media (max-width: 900px) {
  .legal-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .toc { position: relative; top: 0; padding: 18px 20px; border-radius: 18px; background: var(--glass-bg); box-shadow: var(--glass-shadow), 0 0 0 1px rgba(20, 22, 43, .07); }
  .toc summary { pointer-events: auto; cursor: pointer; margin-bottom: 0; font-size: .95rem; color: var(--ink); font-weight: 500; }
  .toc summary::after { content: ""; width: 10px; height: 10px; border-right: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); transform: rotate(45deg) translateY(-3px); transition: transform .4s var(--ease); }
  .toc[open] summary { margin-bottom: 12px; }
  .toc[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
  .lh-row { align-items: flex-start; }
  .contact-grid, .ch-grid, .nf-grid { grid-template-columns: minmax(0, 1fr); }
  .side-slab { position: relative; top: 0; }
  .contact-scene { max-width: 520px; }
  .nf-scene { order: -1; max-width: 560px; }
}
@media (max-width: 720px) {
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .legal-glyph { width: 84px; }
  .lh-row { flex-direction: column-reverse; align-items: flex-start; gap: 20px; }
  .legal-table, .legal-table tbody, .legal-table tr, .legal-table td { display: block; width: 100%; }
  .legal-table { background: none; box-shadow: none; border-radius: 0; overflow: visible; }
  .legal-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .legal-table tr {
    margin-bottom: 12px; border-radius: 16px; overflow: hidden;
    background: var(--glass-bg); box-shadow: var(--glass-shadow), 0 0 0 1px rgba(20, 22, 43, .07);
  }
  .legal-table td { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 12px 16px; }
  .legal-table td::before { content: attr(data-label); font-size: .78rem; color: var(--ink-3); font-weight: 500; }
  .ck-actions { padding-left: 0; }
  .cookie { left: 12px; right: 12px; bottom: 12px; width: auto; }
  .h1-tag { font-size: .26em; }
  .svc-hero .display { font-size: clamp(2.3rem, 11vw, 3.4rem); }
}

/* JS-driven hidden initial states (only when JS is running; failsafe below) */
.js [data-hide], .js [data-refract] { visibility: hidden; }
.js-fallback [data-hide], .js-fallback [data-refract] { visibility: visible !important; opacity: 1 !important; transform: none !important; }
