/* Celsa Technologies: site styles
   Ink base with one light section, lime as the only accent, hairline rules instead of floating cards.
   Type: Archivo (variable width) for everything, IBM Plex Mono for the odd technical detail. */

@view-transition { navigation: auto; }

:root {
  --bg: #0a0b0d;
  --bg-elev: #111317;
  --line: rgba(255, 255, 255, 0.1);
  --line-2: rgba(255, 255, 255, 0.2);
  --text: #f2f2ee;
  --text-2: #b6b9bf;
  --text-3: #8d9098;
  --accent: #c8f53b;
  --accent-ink: #0a0c03;
  --paper: #ecebe6;
  --indigo: #6f5cff;
  --cobalt: #3f5fe8;
  --ice: #a9c6ff;
  --graphite: #262a31;

  --font-display: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;

  --container: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 10px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in: cubic-bezier(0.55, 0, 1, 0.45);
  --header-h: 72px;

  color-scheme: dark;
  interpolate-size: allow-keywords;
}

/* ---------- base ---------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  min-height: 100svh;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img, svg, canvas, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

.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: 16px; z-index: 100; padding: 10px 16px; border-radius: 6px;
  background: var(--accent); color: var(--accent-ink); font-weight: 600;
  transform: translateY(-160%); transition: transform 0.3s var(--ease);
}
.skip-link:focus { transform: none; }

/* ---------- type ---------- */

.display-xl, .display-l, .display-m, .page-title, .statement {
  font-family: var(--font-display);
  font-weight: 640;
  font-stretch: 104%;
  text-wrap: balance;
}
.display-xl { font-size: clamp(2.6rem, 1.2rem + 5.6vw, 6rem); line-height: 0.98; letter-spacing: -0.04em; }
.display-l { font-size: clamp(2.05rem, 1.2rem + 3.2vw, 4rem); line-height: 1.02; letter-spacing: -0.035em; }
.display-m { font-size: clamp(1.55rem, 1.15rem + 1.6vw, 2.4rem); line-height: 1.08; letter-spacing: -0.028em; }
.lead { font-size: clamp(1.08rem, 1rem + 0.35vw, 1.3rem); line-height: 1.55; color: var(--text-2); max-width: 40rem; text-wrap: pretty; }
.muted { color: var(--text-3); }
.dim { color: var(--text-3); }
p { text-wrap: pretty; }
.label { display: block; font-size: 0.92rem; color: var(--text-3); margin-bottom: 10px; }
.grad-text { color: var(--accent); }
.mono { font-family: var(--font-mono); }

/* ---------- buttons, tags, links ---------- */

.btn {
  --h: 48px;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55em;
  height: var(--h); padding: 0 1.25em; border: 0; border-radius: 6px;
  font: 500 0.97rem/1 var(--font-body); white-space: nowrap;
  transition: background-color 0.25s, color 0.25s, box-shadow 0.25s, transform 0.3s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn .arrow { transition: transform 0.4s var(--ease); flex: none; }
.btn:hover .arrow { transform: translateX(3px); }
.btn:hover .arrow-out { transform: translate(2px, -2px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: #d8ff63; }
.btn-ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1px var(--text-2); }
.btn-sm { --h: 40px; padding: 0 1em; font-size: 0.9rem; }
.btn-block { width: 100%; }

.tag { font-size: 0.88rem; color: var(--text-3); }
.tag-live { color: var(--text-2); }
.work-meta { display: flex; flex-wrap: wrap; align-items: baseline; }
.work-meta .tag + .tag::before { content: "·"; margin: 0 0.5em; color: var(--text-3); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 500; color: var(--text);
  text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 4px; text-decoration-thickness: 1px;
  transition: text-decoration-color 0.3s;
}
.link-arrow .arrow { transition: transform 0.4s var(--ease); }
a:hover .link-arrow, .link-arrow:hover { text-decoration-color: currentColor; }
a:hover .link-arrow .arrow, .link-arrow:hover .arrow { transform: translateX(4px); }

.chip {
  position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 14px;
  border-radius: 6px; box-shadow: inset 0 0 0 1px var(--line-2);
  font-size: 0.93rem; color: var(--text-2); cursor: pointer; user-select: none;
  transition: background-color 0.2s, color 0.2s, box-shadow 0.2s;
}
.chip:hover { color: var(--text); box-shadow: inset 0 0 0 1px var(--text-3); }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip:has(input:checked) { background: var(--text); color: var(--bg); box-shadow: none; }
.chip:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 3px; }
.chip small { font-size: 0.8rem; opacity: 0.7; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }

.ticks { list-style: none; display: grid; gap: 8px; margin: 24px 0 30px; }
.ticks li { position: relative; padding-left: 1.3em; color: var(--text-2); }
.ticks li::before { content: "–"; position: absolute; left: 0; color: var(--text-3); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- header & nav ---------- */

.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  border-bottom: 1px solid transparent;
  transition: background-color 0.35s, border-color 0.35s;
  view-transition-name: site-header;
}
.is-scrolled .site-header { background: var(--bg); border-bottom-color: var(--line); }
.menu-open .site-header { background: transparent; border-bottom-color: transparent; }
.header-inner {
  max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter);
  height: var(--header-h); display: flex; align-items: center; gap: 20px;
}
.brand { display: inline-flex; align-items: center; gap: 9px; flex: none; }
.brand-word { font: 700 1.4rem/1 var(--font-display); font-stretch: 108%; letter-spacing: -0.05em; padding-bottom: 2px; }
.brand-mark { color: var(--text); overflow: visible; }
.brand-arc { transition: transform 0.8s var(--ease); transform-origin: 16px 16px; }
.brand-dot { fill: var(--accent); transition: transform 0.8s var(--ease); transform-origin: 16px 16px; }
.brand:hover .brand-arc, .brand:hover .brand-dot { transform: rotate(-24deg); }

.nav { margin-left: auto; }
.nav-list { display: flex; gap: 2px; list-style: none; }
.nav-link { position: relative; display: block; padding: 10px 14px; font-size: 0.97rem; color: var(--text-2); transition: color 0.25s; }
.nav-link:hover, .nav-link[aria-current="page"] { color: var(--text); }
.nav-active { position: absolute; left: 14px; right: 14px; bottom: 3px; height: 2px; background: var(--accent); view-transition-name: nav-pill; }
.header-cta { margin-left: 8px; }

.menu-btn {
  display: none; place-items: center; width: 44px; height: 44px; margin-left: auto; flex: none;
  border: 0; border-radius: 6px; background: transparent; box-shadow: inset 0 0 0 1px var(--line-2); color: var(--text);
}
.menu-lines { position: relative; width: 18px; height: 10px; }
.menu-lines::before, .menu-lines::after {
  content: ""; position: absolute; left: 0; right: 0; height: 1.6px; background: currentColor;
  transition: transform 0.5s var(--ease), top 0.5s var(--ease);
}
.menu-lines::before { top: 0; }
.menu-lines::after { top: calc(100% - 1.6px); }
.menu-btn[aria-expanded="true"] .menu-lines::before { top: calc(50% - 0.8px); transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-lines::after { top: calc(50% - 0.8px); transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 55;
  display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
  padding: 104px var(--gutter) max(28px, env(safe-area-inset-bottom));
  overflow-y: auto; overscroll-behavior: contain;
  background: var(--bg);
  clip-path: circle(0px at calc(100% - var(--gutter) - 22px) 36px);
  visibility: hidden;
  transition: clip-path 0.55s var(--ease-in), visibility 0s linear 0.55s;
}
.menu-open .mobile-menu {
  clip-path: circle(160vmax at calc(100% - var(--gutter) - 22px) 36px);
  visibility: visible;
  transition: clip-path 0.85s var(--ease), visibility 0s;
}
.mm-list { list-style: none; display: grid; gap: 2px; border-top: 1px solid var(--line); }
.mm-list li { border-bottom: 1px solid var(--line); }
.mm-list a {
  display: block; padding: 14px 0;
  font: 600 clamp(1.9rem, 8.5vw, 3rem)/1.1 var(--font-display); font-stretch: 104%; letter-spacing: -0.035em;
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.4s, transform 0.6s var(--ease), color 0.25s;
}
.mm-list a[aria-current="page"] { color: var(--accent); }
.menu-open .mm-list a { opacity: 1; transform: none; transition-delay: calc(0.16s + var(--i) * 0.045s); }
.mm-foot { display: grid; gap: 6px; color: var(--text-2); opacity: 0; transition: opacity 0.5s 0.4s; }
.mm-foot a { color: var(--text); font-weight: 500; }
.menu-open .mm-foot { opacity: 1; }
.menu-open { overflow: hidden; }

@media (max-width: 900px) {
  .nav, .header-cta { display: none; }
  .menu-btn { display: grid; }
  :root { --header-h: 64px; }
}

/* ---------- layout ---------- */

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { position: relative; padding-block: clamp(80px, 10vw, 144px); }
.section-tight { padding-block: clamp(56px, 7vw, 96px); }
.section, .section-tight { overflow-x: clip; }
.section-head { display: grid; gap: 20px; margin-bottom: clamp(40px, 5.5vw, 72px); }
@media (min-width: 960px) {
  .section-head.split { grid-template-columns: 1.2fr 1fr; align-items: end; gap: 48px; }
}
.section-head.split > .btn { justify-self: start; }
@media (min-width: 960px) { .section-head.split > .btn { justify-self: end; } }

/* the one light section: sits under the ColdSoup app, which is light itself */
.section-light {
  --text: #121317; --text-2: #4a4d54; --text-3: #6d7078;
  --line: rgba(18, 19, 23, 0.12); --line-2: rgba(18, 19, 23, 0.25);
  background: var(--paper); color: var(--text);
}
.section-light .btn-primary { background: #121317; color: #f2f2ee; }
.section-light .btn-primary:hover { background: #2a2c33; }

/* ---------- reveal & split text ---------- */

.js [data-reveal] {
  opacity: 0; transform: translate3d(0, 24px, 0);
  transition: opacity 0.8s var(--ease), transform 1s var(--ease);
  transition-delay: calc(var(--d, 0) * 80ms);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-reveal="scale"] { transform: scale(0.97) translate3d(0, 16px, 0); }

[data-split] .w { display: inline-block; }
.js [data-split] .w {
  opacity: 0; transform: translate3d(0, 0.4em, 0);
  transition: opacity 0.7s var(--ease), transform 0.9s var(--ease);
  transition-delay: calc(var(--i) * 38ms + var(--d, 0) * 80ms);
}
.js [data-split].is-in .w { opacity: 1; transform: none; }

/* ---------- cards ---------- */

.card {
  position: relative; isolation: isolate; overflow: hidden;
  border-radius: var(--radius);
  background: var(--bg-elev);
  box-shadow: inset 0 0 0 1px var(--line);
}

/* editorial grids: each item sits under its own hairline */
.rule-grid { list-style: none; display: grid; column-gap: 36px; }
.rule-grid > * { border-top: 1px solid var(--line); padding: 20px 0 34px; }
.rule-grid h3 { font: 600 1.2rem/1.25 var(--font-display); letter-spacing: -0.015em; margin-bottom: 8px; }
.rule-grid p { color: var(--text-2); font-size: 0.98rem; }
@media (min-width: 720px) { .rule-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .rule-grid.three { grid-template-columns: repeat(3, 1fr); } .rule-grid.four { grid-template-columns: repeat(4, 1fr); } }

/* ---------- morphing shape (CSS) ---------- */

.morph-blob {
  position: absolute; aspect-ratio: 1; width: var(--size, 420px); pointer-events: none;
  border-radius: 42% 58% 70% 30% / 45% 45% 55% 55%;
  background: var(--c1, var(--accent));
  animation: blob-morph 14s ease-in-out infinite alternate, blob-spin 50s linear infinite;
}
.morph-blob.alt { animation-duration: 18s, 64s; animation-direction: alternate-reverse, reverse; }
@keyframes blob-morph {
  0%   { border-radius: 42% 58% 70% 30% / 45% 45% 55% 55%; }
  25%  { border-radius: 70% 30% 46% 54% / 30% 39% 61% 70%; }
  50%  { border-radius: 28% 72% 35% 65% / 56% 30% 70% 44%; }
  75%  { border-radius: 58% 42% 62% 38% / 38% 62% 38% 62%; }
  100% { border-radius: 50% 50% 30% 70% / 65% 55% 45% 35%; }
}
@keyframes blob-spin { to { rotate: 360deg; } }

/* ---------- home hero ---------- */

.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: max(660px, 100svh);
  display: grid; align-items: center;
  padding: 120px 0 120px;
}
.hero-orb { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; view-transition-name: blob; }
.hero-fallback { display: none; }
.orb-off .hero-orb { display: none; }
.orb-off .hero-fallback { display: block; position: absolute; z-index: -1; right: 6%; top: 22%; --size: min(460px, 70vw); view-transition-name: blob; }
.hero-copy { max-width: 46rem; position: relative; }
.hero-title { margin: 0 0 26px; }
.hero-lead { max-width: 36rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero-meta {
  position: absolute; left: 0; right: 0; bottom: 28px;
  font-size: 0.92rem; color: var(--text-3);
}
.hero-meta ul { display: flex; flex-wrap: wrap; gap: 6px 28px; list-style: none; }
.hero-meta .clock b { color: var(--text-2); font-weight: 500; font-variant-numeric: tabular-nums; }

@media (max-width: 899px) {
  .hero { align-items: end; padding: 40svh 0 96px; min-height: 100svh; }
  .hero-meta ul li:nth-child(n + 3) { display: none; }
  .orb-off .hero-fallback { top: 10%; right: -12%; }
}

/* ---------- marquee ---------- */

.marquee {
  overflow: hidden; padding-block: 22px;
  border-block: 1px solid var(--line);
}
.marquee-track { display: flex; width: max-content; animation: marquee 46s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee ul { display: flex; align-items: center; gap: 28px; padding-right: 28px; list-style: none; }
.marquee li { font: 600 clamp(1.4rem, 1rem + 1.6vw, 2.3rem)/1 var(--font-display); font-stretch: 104%; letter-spacing: -0.03em; white-space: nowrap; }
.marquee li:nth-child(4n + 3) { color: var(--text-3); }
.marquee li.sep { color: var(--text-3); font-weight: 300; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- morphing words ---------- */

.morph-line { display: block; }
.morph {
  display: grid; justify-items: start;
  color: var(--accent);
  filter: url(#threshold) blur(0.5px);
  min-height: 1.05em;
}
.morph > span { grid-area: 1 / 1; white-space: nowrap; will-change: filter, opacity; }
.no-morph .morph { filter: none; }

/* ---------- studio duo ---------- */

.duo { display: grid; gap: 16px; }
@media (min-width: 860px) { .duo { grid-template-columns: 1fr 1fr; } }
.duo-card {
  display: flex; flex-direction: column; min-height: 440px; padding: clamp(26px, 3.4vw, 44px);
  transition: transform 0.6s var(--ease), box-shadow 0.3s;
}
.duo-card:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1px var(--line-2); }
.duo-label { font-size: 0.92rem; color: var(--text-3); }
.duo-card h3 { margin: 12px 0 14px; max-width: 14ch; }
.duo-card p { color: var(--text-2); max-width: 24rem; }
@media (min-width: 860px) and (max-width: 1100px) { .duo-card p { max-width: 19rem; } }
.duo-card .link-arrow { margin-top: auto; padding-top: 28px; }
.duo-art { position: absolute; right: -40px; bottom: -40px; width: 290px; height: 290px; z-index: -1; pointer-events: none; }
@media (max-width: 600px) { .duo-art { width: 210px; height: 210px; right: -60px; bottom: -70px; opacity: 0.5; } .duo-card { min-height: 380px; } }

.rings { position: absolute; inset: 0; }
.rings i {
  position: absolute; inset: calc(var(--k) * 34px); border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, calc(0.32 - var(--k) * 0.05));
  border-top-color: var(--accent);
  animation: blob-spin calc(12s + var(--k) * 5s) linear infinite;
  transition: inset 0.8s var(--ease), border-radius 0.8s var(--ease);
}
.rings i:nth-child(even) { animation-direction: reverse; }
.duo-card:hover .rings i { inset: calc(var(--k) * 26px); border-radius: 38% 62% 54% 46% / 44% 40% 60% 56%; }
.rings b { position: absolute; inset: 42%; border-radius: 50%; background: var(--accent); transition: inset 0.8s var(--ease); }
.duo-card:hover .rings b { inset: 38%; }

.tiles { position: absolute; inset: 30px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; rotate: -12deg; }
.tiles i {
  border-radius: 4px; background: #1d2027; box-shadow: inset 0 0 0 1px var(--line-2);
  transition: border-radius 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: calc(var(--k) * 40ms);
}
.tiles i:nth-child(5) { background: var(--accent); box-shadow: none; }
.duo-card:hover .tiles i { border-radius: 50%; transform: rotate(90deg) scale(0.86); }

/* ---------- capabilities ---------- */

.caps-title { max-width: 16ch; margin-bottom: clamp(44px, 6vw, 76px); }

/* ---------- ColdSoup showcase + app mock ---------- */

.showcase { display: grid; gap: clamp(36px, 5vw, 64px); align-items: center; }
@media (min-width: 1000px) { .showcase { grid-template-columns: 0.85fr 1.15fr; } }
.showcase-copy .display-l { margin: 16px 0 20px; }
.product-mark { display: inline-flex; align-items: center; gap: 10px; font: 700 0.95rem var(--font-body); }
.product-mark i { width: 18px; height: 18px; border-radius: 5px; background: var(--indigo); }
.meta-line { margin-top: 28px; font-size: 0.95rem; color: var(--text-3); }
.meta-line b { color: var(--text-2); font-weight: 500; }

.cs-stage { position: relative; isolation: isolate; perspective: 1400px; padding: 6% 0; }
.cs-stage .morph-blob { --size: 62%; --c1: var(--indigo); right: -6%; top: -4%; z-index: -1; }
.cs-window {
  --cs: #6f5cff;
  position: relative; overflow: hidden; border-radius: 12px;
  background: #f4f4f2; color: #16171b; font-size: 12px; line-height: 1.45;
  box-shadow: 0 30px 70px -30px rgba(20, 20, 30, 0.45), 0 0 0 1px rgba(0, 0, 0, 0.08);
  transform: rotateX(var(--rx, 5deg)) rotateY(var(--ry, -7deg));
  transition: transform 1s var(--ease);
}
.cs-stage:hover .cs-window { --rx: 0deg; --ry: 0deg; }
.cs-bar { display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 12px; background: #fff; border-bottom: 1px solid #e6e6e2; }
.cs-dots { display: flex; gap: 6px; }
.cs-dots i { width: 9px; height: 9px; border-radius: 50%; background: #dcdcd7; }
.cs-room { display: flex; align-items: center; gap: 8px; font-weight: 600; white-space: nowrap; overflow: hidden; }
.cs-code { font: 500 10px var(--font-mono); color: #6b6c72; background: #efeff0; padding: 2px 6px; border-radius: 5px; }
.cs-avatars { display: flex; margin-left: auto; }
.cs-avatars i { width: 22px; height: 22px; margin-left: -6px; border-radius: 50%; border: 2px solid #fff; display: grid; place-items: center; font: 700 9px var(--font-body); font-style: normal; color: #fff; background: hsl(var(--h) 70% 55%); }
.cs-share { background: var(--cs); color: #fff; font-weight: 600; padding: 5px 11px; border-radius: 7px; }
.cs-body { display: grid; grid-template-columns: 132px 1fr 196px; min-height: 340px; }
.cs-side { padding: 12px 10px; border-right: 1px solid #e6e6e2; display: grid; align-content: start; gap: 4px; background: #fafaf8; }
.cs-logo { display: flex; align-items: center; gap: 6px; font: 800 11px var(--font-mono); letter-spacing: 0.04em; margin-bottom: 8px; }
.cs-logo::before { content: ""; width: 12px; height: 12px; border-radius: 3px; background: var(--cs); }
.cs-side ul { list-style: none; display: grid; gap: 2px; }
.cs-side li { padding: 4px 8px; border-radius: 6px; color: #4b4d55; }
.cs-side li.on { background: #ebe9ff; color: #3a2fd0; font-weight: 600; }
.cs-files-h { margin: 10px 0 2px 8px; font: 600 9.5px var(--font-mono); text-transform: uppercase; letter-spacing: 0.06em; color: #8a8b91; }
.cs-doc { padding: 20px 22px; background: #fff; min-width: 0; }
.cs-doc-title { font: 700 17px/1.2 var(--font-body); letter-spacing: -0.02em; margin-bottom: 8px; }
.cs-doc-p { color: #474951; margin-bottom: 12px; }
.cs-insert { display: grid; gap: 6px; }
.cs-insert p { position: relative; padding: 4px 8px; border-radius: 6px; background: #efedff; color: #2c2580; animation: cs-in 0.6s var(--ease) both; }
.cs-insert p::before { content: "•"; margin-right: 6px; color: var(--cs); }
.cs-insert .cs-revert { justify-self: start; font: 600 10px var(--font-mono); color: var(--cs); background: #fff; border: 1px solid #d9d5ff; border-radius: 6px; padding: 3px 7px; animation: cs-in 0.6s var(--ease) both; }
.cs-lines { display: grid; gap: 8px; margin-top: 14px; }
.cs-lines i { display: block; height: 7px; border-radius: 4px; background: #ececea; width: var(--w, 100%); }
.cs-helper { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-left: 1px solid #e6e6e2; background: #fafaf8; min-width: 0; }
.cs-helper-h { display: flex; align-items: center; gap: 7px; font-weight: 700; }
.cs-pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--cs); }
.cs-state { font: 500 10px var(--font-mono); color: #8a8b91; }
.cs-msg { padding: 8px 10px; border-radius: 10px; }
.cs-msg:empty { display: none; }
.cs-msg-user { align-self: flex-end; background: var(--cs); color: #fff; border-bottom-right-radius: 3px; max-width: 92%; }
.cs-msg-ai { background: #fff; border: 1px solid #e6e6e2; color: #33343b; border-bottom-left-radius: 3px; animation: cs-in 0.5s var(--ease) both; }
.cs-input { margin-top: auto; padding: 8px 10px; border-radius: 9px; background: #fff; border: 1px solid #e0e0dc; color: #9a9ba1; }
.caret::after { content: ""; display: inline-block; width: 1.5px; height: 1em; margin-left: 1px; vertical-align: -2px; background: currentColor; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
@keyframes cs-in { from { opacity: 0; transform: translateY(6px); } }
@media (max-width: 720px) {
  .cs-body { grid-template-columns: 1fr; min-height: 0; }
  .cs-side { display: none; }
  .cs-helper { border-left: 0; border-top: 1px solid #e6e6e2; min-height: 150px; }
  .cs-window { transform: none; }
  .cs-room b { max-width: 34vw; overflow: hidden; text-overflow: ellipsis; }
}

/* ---------- service rows (home) ---------- */

.svc-list { list-style: none; border-top: 1px solid var(--line); }
.svc-list li { border-bottom: 1px solid var(--line); }
.svc-row {
  position: relative; isolation: isolate; display: grid; align-items: center; gap: 4px 24px;
  grid-template-columns: 1fr auto; padding: 24px 16px;
  transition: color 0.35s;
}
.svc-row::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--accent);
  clip-path: inset(50% 0 50% 0); transition: clip-path 0.55s var(--ease);
}
.svc-name { font: 600 clamp(1.35rem, 1rem + 1.4vw, 2.1rem)/1.1 var(--font-display); font-stretch: 104%; letter-spacing: -0.03em; }
.svc-desc { grid-column: 1; color: var(--text-2); transition: color 0.35s; }
.svc-price { grid-column: 2; grid-row: 1 / span 2; display: flex; align-items: center; gap: 14px; font-size: 1rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.svc-price .arrow { width: 20px; height: 20px; transition: transform 0.45s var(--ease); }
@media (hover: hover) {
  .svc-row:hover { color: var(--accent-ink); }
  .svc-row:hover::before { clip-path: inset(0 0 0 0); }
  .svc-row:hover .svc-desc { color: rgba(10, 12, 3, 0.72); }
  .svc-row:hover .arrow { transform: translateX(4px); }
}
@media (max-width: 640px) {
  .svc-row { grid-template-columns: 1fr; padding: 20px 0; }
  .svc-desc, .svc-price { grid-column: 1; grid-row: auto; }
  .svc-price { margin-top: 6px; }
}

/* ---------- work cards ---------- */

.work-grid { display: grid; gap: 16px; }
@media (min-width: 760px) { .work-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1120px) { .work-grid.three { grid-template-columns: repeat(3, 1fr); } }
.work-card { display: flex; flex-direction: column; padding: 10px 10px 24px; transition: transform 0.6s var(--ease), box-shadow 0.3s; }
.work-card.wide { grid-column: 1 / -1; }
@media (min-width: 1120px) { .work-grid.three .work-card.wide { grid-column: span 2; } }
.work-card:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1px var(--line-2); }
.work-card[hidden] { display: none; }
.work-open { position: absolute; inset: 0; z-index: 3; border: 0; background: none; border-radius: inherit; }
.work-open:focus-visible { outline-offset: -3px; }
.work-visual {
  position: relative; overflow: hidden; isolation: isolate; aspect-ratio: 16 / 10; border-radius: 6px;
  background: hsl(var(--hue) 28% 14%);
}
.work-card.wide .work-visual { aspect-ratio: 16 / 9; }
@media (min-width: 1120px) {
  .work-grid.three .work-card.wide { display: grid; grid-template-columns: 1.3fr 1fr; gap: 10px 28px; padding: 10px 28px 10px 10px; align-items: center; }
  .work-grid.three .work-card.wide .work-visual { grid-row: 1 / span 3; aspect-ratio: auto; height: 100%; min-height: 320px; }
}
.work-body { padding: 20px 12px 0; display: grid; gap: 8px; }
.work-body h3 { font: 600 1.45rem/1.12 var(--font-display); font-stretch: 104%; letter-spacing: -0.025em; }
.work-body p { color: var(--text-2); font-size: 0.98rem; }
.work-body .link-arrow { margin-top: 6px; font-size: 0.95rem; }

.wv-frame {
  position: absolute; left: 9%; right: 9%; top: 14%; bottom: -8%;
  border-radius: 8px 8px 0 0; background: #0e1014;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
  transition: transform 0.9s var(--ease);
}
.wv-frame::before { content: ""; position: absolute; left: 12px; top: 11px; width: 34px; height: 8px; background: radial-gradient(circle at 4px 4px, rgba(255,255,255,.22) 3px, transparent 3.5px), radial-gradient(circle at 17px 4px, rgba(255,255,255,.22) 3px, transparent 3.5px), radial-gradient(circle at 30px 4px, rgba(255,255,255,.22) 3px, transparent 3.5px); }
.work-card:hover .wv-frame { transform: translateY(-8px); }
.wv { position: absolute; inset: 30px 16px 16px; display: grid; gap: 8px; }
.wv i { display: block; border-radius: 4px; background: rgba(255, 255, 255, 0.07); }
.wv i.hi { background: hsl(var(--hue) 80% 62%); }
.wv i.soft { background: hsl(var(--hue) 60% 60% / 0.22); }
.wv-store { grid-template-columns: repeat(3, 1fr); grid-template-rows: 20px 1fr 1fr; }
.wv-store i:first-child { grid-column: 1 / -1; }
.wv-dash { grid-template-columns: 22% 1fr 1fr; grid-template-rows: 1fr 1fr 1fr; }
.wv-dash i:first-child { grid-row: 1 / -1; }
.wv-dash .bars { grid-column: 2 / -1; grid-row: 2 / -1; display: flex; align-items: end; gap: 6%; padding: 10px; background: rgba(255,255,255,.03); border-radius: 4px; }
.wv-dash .bars b { flex: 1; border-radius: 2px 2px 0 0; background: hsl(var(--hue) 80% 62% / 0.85); height: var(--v); transition: height 0.9s var(--ease); }
.work-card:hover .wv-dash .bars b { height: calc(var(--v) * 0.6 + 30%); }
.wv-site { grid-template-rows: 30% 10% 10% 1fr; grid-template-columns: 1fr 1fr; }
.wv-site i:nth-child(1) { grid-column: 1 / -1; }
.wv-site i:nth-child(2) { width: 60%; }
.wv-site i:nth-child(4), .wv-site i:nth-child(5) { grid-row: 4; }
.wv-cal { grid-template-columns: repeat(7, 1fr); grid-auto-rows: 1fr; }
.wv-list { grid-auto-rows: 1fr; }
.wv-list i { display: flex; }
.wv-list i::after { content: ""; margin: auto 10px auto auto; width: 18%; height: 40%; border-radius: 3px; background: hsl(var(--hue) 70% 62% / 0.5); }
.wv-cs { inset: 0; padding: 0; }
.wv-cs .cs-window { position: absolute; inset: 12% 7% -10%; transform: none; font-size: 9px; pointer-events: none; }
.wv-cs .cs-body { grid-template-columns: 1fr 150px; min-height: 0; height: 100%; }
.wv-cs .cs-side { display: none; }
.wv-cs .cs-helper { border-top: 0; border-left: 1px solid #e6e6e2; min-height: 0; }
@media (min-width: 1280px) { .wv-cs .cs-body { grid-template-columns: 100px 1fr 150px; } .wv-cs .cs-side { display: grid; } }

.work-cta { justify-content: center; gap: 12px; min-height: 280px; padding: clamp(28px, 4vw, 44px); background: transparent; box-shadow: inset 0 0 0 1px var(--line-2); }
.work-cta h3 { font: 600 clamp(1.5rem, 1.1rem + 1.4vw, 2.2rem)/1.1 var(--font-display); font-stretch: 104%; letter-spacing: -0.03em; max-width: 18ch; }
.work-cta p { color: var(--text-2); max-width: 30rem; }
.work-cta .morph-blob { --size: 160px; --c1: var(--accent); right: -40px; top: -50px; z-index: -1; }
@media (min-width: 760px) { .work-cta { grid-column: 1 / -1; } }
@media (min-width: 1120px) { .work-cta { grid-column: span 2; } }

/* ---------- process ---------- */

.step-time { display: block; margin-bottom: 18px; font-size: 0.92rem; color: var(--accent); }
.section-light .step-time { color: var(--text-3); }

/* ---------- CTA block ---------- */

.cta-panel {
  position: relative; isolation: isolate; overflow: hidden;
  padding: clamp(44px, 7vw, 96px) clamp(24px, 6vw, 80px);
  border-radius: var(--radius);
  background: var(--accent); color: var(--accent-ink);
}
.cta-panel .morph-blob { --size: clamp(180px, 26vw, 360px); --c1: var(--accent-ink); right: -6%; bottom: -30%; z-index: -1; }
.cta-panel h2 { margin: 0 0 20px; max-width: 15ch; }
.cta-panel .lead { color: rgba(10, 12, 3, 0.75); max-width: 32rem; }
.cta-panel .grad-text { color: inherit; }
.cta-panel .btn-primary { background: var(--accent-ink); color: #f2f2ee; }
.cta-panel .btn-primary:hover { background: #23271a; }
.cta-panel .btn-ghost { color: var(--accent-ink); box-shadow: inset 0 0 0 1.5px rgba(10, 12, 3, 0.35); }
.cta-panel .btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--accent-ink); }
.cta-panel ::selection { background: var(--accent-ink); color: var(--accent); }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
@media (max-width: 600px) { .cta-panel .morph-blob { --size: 160px; right: -60px; bottom: -70px; } }
.copy-btn .to-copy, .copy-btn .copied { display: inline-flex; align-items: center; gap: 8px; }
.copy-btn .copied { display: none; }
.copy-btn.is-copied .copied { display: inline-flex; }
.copy-btn.is-copied .to-copy { display: none; }

/* ---------- inner page hero ---------- */

.page-hero { position: relative; isolation: isolate; overflow: clip; padding: clamp(150px, 17vw, 220px) 0 clamp(56px, 7vw, 96px); }
.page-hero > .morph-blob {
  z-index: -1; --size: clamp(150px, 26vw, 400px);
  top: clamp(64px, 8vw, 110px); right: calc(var(--size) * -0.2);
  view-transition-name: blob;
}
@media (min-width: 1300px) { .page-hero > .morph-blob { right: calc((100vw - var(--container)) / 2 - var(--size) * 0.1); } }
.page-title { font-size: clamp(3.2rem, 1.4rem + 7.6vw, 8.6rem); line-height: 0.92; letter-spacing: -0.05em; margin: 0 0 28px; view-transition-name: page-title; width: fit-content; }
.page-hero .lead { max-width: 42rem; }
.page-hero-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.page-products .page-hero > .morph-blob { --c1: var(--indigo); }
.page-services .page-hero > .morph-blob { --c1: var(--accent); }
.page-work .page-hero > .morph-blob { --c1: var(--ice); }
.page-about .page-hero > .morph-blob { --c1: var(--cobalt); }
.page-contact .page-hero > .morph-blob { --c1: var(--accent); }
.page-handbook .page-hero > .morph-blob { --c1: var(--graphite); }
.page-terms .page-hero > .morph-blob, .page-privacy .page-hero > .morph-blob, .page-refunds .page-hero > .morph-blob { --c1: var(--graphite); }

/* ---------- products page ---------- */

.lab-list { list-style: none; border-top: 1px solid var(--line); }
.lab-list li { display: grid; gap: 6px 24px; padding: 24px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 760px) { .lab-list li { grid-template-columns: 1fr 1.4fr auto; align-items: baseline; } }
.lab-list h3 { font: 600 1.35rem/1.2 var(--font-display); font-stretch: 104%; letter-spacing: -0.02em; }
.lab-list p { color: var(--text-2); }
.lab-list .status { font-size: 0.92rem; color: var(--text-3); white-space: nowrap; }
.lab-list .status.live { color: var(--accent); }

/* ---------- the handbook ---------- */

.book {
  --w: clamp(190px, 22vw, 280px);
  position: relative; display: block; width: var(--w); aspect-ratio: 148 / 210; flex: none;
  transform: perspective(1200px) rotateY(-22deg) rotateX(3deg);
  transition: transform 0.9s var(--ease);
}
.book:hover { transform: perspective(1200px) rotateY(-6deg) rotateX(1deg); }
.book::after {
  content: ""; position: absolute; top: 1.5%; bottom: 1.5%; right: -11px; width: 12px; z-index: -1;
  border-radius: 0 3px 3px 0;
  background: repeating-linear-gradient(90deg, #e9e8e2 0 1px, #c9c8c1 1px 2px);
}
.book-cover {
  position: absolute; inset: 0; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; padding: 11% 10%;
  border-radius: 2px 5px 5px 2px;
  background: var(--accent); color: var(--accent-ink);
  box-shadow: inset 5px 0 0 rgba(0, 0, 0, 0.14), inset 6px 0 0 rgba(255, 255, 255, 0.3), 26px 34px 50px -24px rgba(0, 0, 0, 0.7);
}
.book-cover .morph-blob { --c1: var(--accent-ink); --size: 78%; right: -26%; bottom: -12%; z-index: -1; }
.book-title { font: 700 calc(var(--w) * 0.11)/0.98 var(--font-display); font-stretch: 110%; letter-spacing: -0.035em; max-width: 8ch; }
.book-sub { margin-top: 10px; font-size: calc(var(--w) * 0.045); line-height: 1.3; max-width: 15ch; opacity: 0.75; }
.book-brand { margin-top: auto; font: 700 calc(var(--w) * 0.07) var(--font-display); letter-spacing: -0.05em; color: var(--accent); background: var(--accent-ink); align-self: flex-start; padding: 2px 6px; border-radius: 2px; }
.book.lg { --w: clamp(220px, 30vw, 380px); }

.hb-band { display: grid; gap: clamp(36px, 6vw, 88px); align-items: center; padding-block: clamp(36px, 5vw, 64px); border-block: 1px solid var(--line); }
@media (min-width: 860px) { .hb-band { grid-template-columns: auto 1fr; padding-inline: clamp(0px, 4vw, 56px); } }
.hb-band .book-wrap, .hb-hero .book-wrap { justify-self: center; padding-right: 14px; }

.hb-hero { display: grid; gap: clamp(40px, 6vw, 96px); align-items: center; }
@media (min-width: 960px) { .hb-hero { grid-template-columns: 1fr auto; } }
.buy-box { margin-top: 32px; display: grid; gap: 16px; max-width: 34rem; padding-top: 24px; border-top: 1px solid var(--line); }
.buy-price { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.buy-price strong { font: 600 2.6rem/1 var(--font-display); letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.buy-price span { color: var(--text-3); }
.spec { border-top: 1px solid var(--line); }
.spec div { display: grid; grid-template-columns: 150px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.spec dt { color: var(--text-3); }
.spec dd { color: var(--text); }
@media (max-width: 520px) { .spec div { grid-template-columns: 1fr; gap: 2px; } }
.toc-list { list-style: none; counter-reset: ch; border-top: 1px solid var(--line); }
.toc-list li { counter-increment: ch; display: grid; grid-template-columns: 3.2em 1fr; gap: 0 12px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.toc-list li::before { content: counter(ch); color: var(--text-3); font-variant-numeric: tabular-nums; }
.toc-list b { font-weight: 600; }
.toc-list span { grid-column: 2; color: var(--text-2); font-size: 0.97rem; }

/* ---------- services: pricing ---------- */

.pricing { list-style: none; display: grid; column-gap: 28px; }
@media (min-width: 720px) { .pricing { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1180px) { .pricing { grid-template-columns: repeat(4, 1fr); } }
.price-card { display: flex; flex-direction: column; border-top: 1px solid var(--line-2); padding: 22px 0 40px; }
.price-card h3 { font: 600 1.35rem/1.15 var(--font-display); font-stretch: 104%; letter-spacing: -0.02em; }
.price { margin: 18px 0 4px; font: 600 2.4rem/1 var(--font-display); letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.price .from { display: block; margin-bottom: 8px; font: 400 0.92rem var(--font-body); letter-spacing: 0; color: var(--text-3); }
.price-desc { color: var(--text-2); margin-top: 12px; }
.price-card .ticks { margin: 18px 0 24px; font-size: 0.96rem; gap: 6px; }
.price-time { margin-top: auto; margin-bottom: 16px; font-size: 0.92rem; color: var(--text-3); }
.quote-row { margin-top: 8px; display: grid; gap: 22px; align-items: center; padding: 32px 0; border-block: 1px solid var(--line-2); }
@media (min-width: 900px) { .quote-row { grid-template-columns: 1.4fr auto; } }
.quote-row h3 { font: 600 clamp(1.5rem, 1.1rem + 1.4vw, 2.2rem)/1.1 var(--font-display); font-stretch: 104%; letter-spacing: -0.03em; margin-bottom: 10px; }
.quote-row p { color: var(--text-2); max-width: 44rem; }
.care { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px 28px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.care p { color: var(--text-2); max-width: 52rem; }
.care strong { color: var(--text); font-weight: 600; }
.fine { font-size: 0.88rem; color: var(--text-3); }

/* ---------- services: estimator ---------- */

.estimator { display: grid; }
@media (min-width: 1000px) { .estimator { grid-template-columns: 1.35fr 1fr; } }
.est-form { padding: clamp(24px, 3.5vw, 44px); display: grid; gap: 28px; }
.est-form fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.est-form legend { padding: 0; margin-bottom: 12px; font-weight: 500; color: var(--text); }
.range-wrap { display: grid; gap: 10px; }
.range-labels { display: flex; justify-content: space-between; font-size: 0.9rem; color: var(--text-3); }
.range-labels span.on { color: var(--text); }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; cursor: pointer; }
input[type="range"]::-webkit-slider-runnable-track { height: 3px; background: linear-gradient(90deg, var(--text) var(--p, 50%), rgba(255, 255, 255, 0.16) var(--p, 50%)); }
input[type="range"]::-moz-range-track { height: 3px; background: rgba(255, 255, 255, 0.16); }
input[type="range"]::-moz-range-progress { height: 3px; background: var(--text); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; margin-top: -8.5px; border-radius: 50%; background: var(--accent); border: 0; }
input[type="range"]::-moz-range-thumb { width: 20px; height: 20px; border: 0; border-radius: 50%; background: var(--accent); }
.est-result { display: flex; flex-direction: column; gap: 12px; padding: clamp(24px, 3.5vw, 44px); border-top: 1px solid var(--line); }
@media (min-width: 1000px) { .est-result { border-top: 0; border-left: 1px solid var(--line); } }
.est-price { font: 600 clamp(1.9rem, 1.1rem + 2.4vw, 3rem)/1 var(--font-display); letter-spacing: -0.04em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.est-price .dash { color: var(--text-3); margin: 0 0.08em; }
.est-weeks { color: var(--text-2); }
.est-weeks b { color: var(--text); font-weight: 500; }
.est-summary { list-style: none; display: flex; flex-wrap: wrap; color: var(--text-3); font-size: 0.92rem; margin-bottom: 8px; }
.est-summary li + li::before { content: ", "; white-space: pre; }
.est-result .btn { margin-top: auto; }

/* ---------- FAQ (details morph) ---------- */

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 22px 0; cursor: pointer; font: 600 1.1rem/1.35 var(--font-display); letter-spacing: -0.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--accent); }
.faq summary i { position: relative; flex: none; width: 16px; height: 16px; transition: transform 0.45s var(--ease); }
.faq summary i::before, .faq summary i::after { content: ""; position: absolute; left: 0; top: 50%; width: 16px; height: 1.6px; margin-top: -0.8px; background: currentColor; transition: transform 0.45s var(--ease); }
.faq summary i::after { transform: rotate(90deg); }
.faq details[open] summary i { transform: rotate(180deg); }
.faq details[open] summary i::after { transform: rotate(0deg); }
.faq .faq-a { padding: 0 0 26px; color: var(--text-2); max-width: 52rem; }
.faq details::details-content { block-size: 0; overflow: hidden; transition: block-size 0.45s var(--ease), content-visibility 0.45s allow-discrete; }
.faq details[open]::details-content { block-size: auto; }

/* ---------- work page ---------- */

.filters { display: flex; flex-wrap: wrap; gap: 0 26px; margin-bottom: 28px; border-bottom: 1px solid var(--line); }
.tab { position: relative; padding: 12px 0 14px; border: 0; background: none; color: var(--text-3); font-size: 0.98rem; transition: color 0.2s; }
.tab:hover { color: var(--text); }
.tab[aria-pressed="true"] { color: var(--text); }
.tab[aria-pressed="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--accent); view-transition-name: tab-line; }
.work-note { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: center; justify-content: space-between; padding: 22px 0; border-block: 1px solid var(--line); color: var(--text-2); }
.work-note strong { color: var(--text); font-weight: 600; }

.case-dialog {
  width: min(880px, calc(100vw - 24px)); max-height: calc(100svh - 24px); padding: 0; border: 0; border-radius: 12px;
  background: #0f1114; color: var(--text); box-shadow: 0 0 0 1px var(--line-2), 0 40px 100px -30px rgba(0, 0, 0, 0.9);
  overflow: auto; overscroll-behavior: contain;
}
.case-dialog::backdrop { background: rgba(4, 5, 7, 0.78); }
.case-dialog[open] { animation: dlg-in 0.55s var(--ease); }
.case-dialog[open]::backdrop { animation: fade-in 0.35s ease; }
@keyframes dlg-in { from { opacity: 0; transform: translateY(20px); } }
@keyframes fade-in { from { opacity: 0; } }
.vt-ui .case-dialog[open] { animation: none; }
.case-dialog .work-visual { border-radius: 0; aspect-ratio: 16 / 7; }
.case-dialog .wv-dash .bars b { height: calc(var(--v) * 0.8); }
.case-close { position: absolute; top: 14px; right: 14px; z-index: 5; width: 40px; height: 40px; border-radius: 6px; border: 0; background: #0f1114; color: var(--text); display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--line-2); }
.case-close:hover { box-shadow: inset 0 0 0 1px var(--text-2); }
.case-content { padding: clamp(24px, 4vw, 44px); display: grid; gap: 16px; }
.case-content h2 { font: 600 clamp(1.8rem, 1.2rem + 2vw, 2.7rem)/1.05 var(--font-display); font-stretch: 104%; letter-spacing: -0.035em; }
.case-content > p { color: var(--text-2); font-size: 1.05rem; }
.case-cols { display: grid; gap: 22px; margin-top: 8px; }
@media (min-width: 720px) { .case-cols { grid-template-columns: repeat(2, 1fr); } }
.case-cols h3 { font-size: 0.95rem; font-weight: 500; color: var(--text-3); margin-bottom: 10px; }
.case-cols ul { list-style: none; display: grid; gap: 8px; color: var(--text-2); }
.case-cols li { position: relative; padding-left: 1.3em; }
.case-cols li::before { content: "–"; position: absolute; left: 0; color: var(--text-3); }
.case-foot { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 10px; }

/* ---------- about page ---------- */

.statement { font-size: clamp(1.85rem, 1.1rem + 2.8vw, 3.6rem); line-height: 1.12; letter-spacing: -0.035em; max-width: 22ch; }
@supports (animation-timeline: view()) {
  .statement .sw { opacity: 0.2; animation: word-light linear both; animation-timeline: view(); animation-range: cover calc(18% + var(--i) * 1.2%) cover calc(26% + var(--i) * 1.2%); }
}
@keyframes word-light { to { opacity: 1; } }
.story { display: grid; gap: clamp(32px, 5vw, 80px); margin-top: clamp(48px, 6vw, 88px); }
@media (min-width: 960px) { .story { grid-template-columns: 1fr 1fr; } }
.story p { color: var(--text-2); font-size: 1.08rem; }
.story p + p { margin-top: 18px; }
.story strong { color: var(--text); font-weight: 600; }

.company { border-top: 1px solid var(--line); }
.company div { display: grid; gap: 4px 20px; padding: 18px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 560px) { .company div { grid-template-columns: 150px 1fr; } }
.company dt { color: var(--text-3); }
.company dd { color: var(--text); }
.company dd small { display: block; margin-top: 2px; font-size: 0.95rem; color: var(--text-2); }

.london { position: relative; overflow: hidden; isolation: isolate; border-radius: var(--radius); box-shadow: inset 0 0 0 1px var(--line); min-height: 360px; display: grid; align-content: end; padding: clamp(26px, 4vw, 44px); background: #0d0f12; }
.london svg.map { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.london .pin { position: absolute; left: 46%; top: 38%; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); }
.london .mono { color: var(--text-3); font-size: 0.85rem; }
.london h3 { font: 600 clamp(1.5rem, 1.1rem + 1.4vw, 2.2rem)/1.1 var(--font-display); font-stretch: 104%; letter-spacing: -0.03em; margin-top: 8px; max-width: 20ch; }
.two-col { display: grid; gap: 28px; align-items: start; }
@media (min-width: 960px) { .two-col { grid-template-columns: 1fr 1fr; gap: 56px; } }

/* ---------- contact ---------- */

.contact-grid { display: grid; gap: clamp(36px, 5vw, 64px); align-items: start; }
@media (min-width: 1000px) { .contact-grid { grid-template-columns: 0.9fr 1.1fr; } }
.contact-email { display: block; margin: 4px 0 18px; font: 600 clamp(1.35rem, 0.7rem + 3.2vw, 2.5rem)/1.1 var(--font-display); letter-spacing: -0.03em; overflow-wrap: anywhere; transition: color 0.25s; }
.contact-email:hover { color: var(--accent); }
.contact-dl { margin-top: 40px; border-top: 1px solid var(--line); }
.contact-dl div { display: grid; grid-template-columns: 150px 1fr; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.contact-dl dt { color: var(--text-3); }
.contact-dl dd { color: var(--text-2); }
.contact-dl dd a { color: var(--text); }
.contact-dl dd a:hover { color: var(--accent); }
@media (max-width: 520px) { .contact-dl div { grid-template-columns: 1fr; gap: 2px; } }

.brief { padding: clamp(24px, 3.5vw, 44px); display: grid; gap: 24px; }
.brief h2 { font: 600 1.55rem/1.1 var(--font-display); font-stretch: 104%; letter-spacing: -0.025em; }
.brief .sub { color: var(--text-2); margin-top: -12px; }
.fields { display: grid; gap: 14px; }
@media (min-width: 640px) { .fields.two { grid-template-columns: 1fr 1fr; } }
.field { position: relative; display: grid; }
.field input, .field textarea, .field select {
  width: 100%; padding: 24px 14px 10px; border: 0; border-radius: 6px; outline: 0;
  background: #0b0c0f; box-shadow: inset 0 0 0 1px var(--line-2);
  font-size: 1rem; transition: box-shadow 0.2s;
}
.field textarea { min-height: 150px; resize: vertical; padding-top: 30px; }
.field select { appearance: none; -webkit-appearance: none; padding-right: 40px; background-image: linear-gradient(45deg, transparent 50%, var(--text-2) 50%), linear-gradient(-45deg, transparent 50%, var(--text-2) 50%); background-position: calc(100% - 22px) 55%, calc(100% - 16px) 55%; background-size: 6px 6px; background-repeat: no-repeat; }
.field select option { background: #12151b; color: var(--text); }
.field label { position: absolute; left: 14px; top: 17px; font-size: 1rem; color: var(--text-3); pointer-events: none; transform-origin: left top; transition: transform 0.3s var(--ease), color 0.2s; }
.field input:focus, .field textarea:focus, .field select:focus { box-shadow: inset 0 0 0 1.5px var(--text); }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label,
.field select + label { transform: translateY(-9px) scale(0.78); color: var(--text-2); }
.field input:user-invalid, .field textarea:user-invalid { box-shadow: inset 0 0 0 1.5px #ff6b6b; }
.field .req { color: var(--text-3); }
.brief-group { border: 0; padding: 0; margin: 0; min-width: 0; }
.brief-group legend { padding: 0; margin-bottom: 12px; font-weight: 500; }
.brief-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.brief-foot .fine { max-width: 30rem; }
.brief-done { display: none; padding: 16px 18px; border-radius: 6px; box-shadow: inset 0 0 0 1px var(--line-2); color: var(--text-2); }
.brief-done strong { color: var(--text); }
.brief.is-sent .brief-done { display: block; animation: cs-in 0.5s var(--ease) both; }

/* ---------- legal ---------- */

.legal-grid { display: grid; gap: 40px; align-items: start; }
@media (min-width: 1000px) { .legal-grid { grid-template-columns: 240px 1fr; gap: 72px; } }
.legal-toc { position: sticky; top: calc(var(--header-h) + 32px); display: grid; gap: 10px; }
.legal-toc .label { margin: 0; }
.legal-toc ol { list-style: none; display: grid; gap: 1px; }
.legal-toc a { display: block; padding: 5px 0; font-size: 0.94rem; color: var(--text-3); transition: color 0.2s; }
.legal-toc a:hover, .legal-toc a.is-active { color: var(--text); }
@media (max-width: 999px) {
  .legal-toc { position: static; padding: 18px 0; border-block: 1px solid var(--line); }
  .legal-toc ol { columns: 2; column-gap: 20px; display: block; }
}
@media (max-width: 520px) { .legal-toc ol { columns: 1; } }
.prose { max-width: 46rem; color: var(--text-2); font-size: 1.04rem; line-height: 1.72; }
.prose h2 { margin: 56px 0 16px; color: var(--text); font: 600 1.55rem/1.2 var(--font-display); font-stretch: 104%; letter-spacing: -0.02em; scroll-margin-top: calc(var(--header-h) + 24px); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 28px 0 10px; color: var(--text); font: 600 1.12rem/1.3 var(--font-display); }
.prose p, .prose ul, .prose ol { margin: 0 0 16px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: 8px; }
.prose a { color: var(--text); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: currentColor; }
.prose strong { color: var(--text); font-weight: 600; }
.prose .callout { padding: 16px 0 16px 18px; border-left: 1px solid var(--line-2); margin: 0 0 24px; }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 20px; font-size: 0.96rem; }
.prose th, .prose td { text-align: left; padding: 12px 12px 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { color: var(--text); font-weight: 600; }
.table-wrap { overflow-x: auto; }
.read-progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 70; background: var(--accent); transform-origin: left; transform: scaleX(0); pointer-events: none; }
@supports (animation-timeline: scroll()) {
  .read-progress { animation: grow-x linear both; animation-timeline: scroll(root); }
}
@keyframes grow-x { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ---------- footer ---------- */

.site-footer { padding: clamp(64px, 8vw, 104px) 0 28px; border-top: 1px solid var(--line); }
.footer-top { display: grid; gap: 44px; }
@media (min-width: 1000px) { .footer-top { grid-template-columns: 1fr 1.5fr; gap: 64px; } }
.footer-brand { display: grid; gap: 16px; align-content: start; justify-items: start; }
.footer-brand p { color: var(--text-2); max-width: 26rem; }
.footer-email { display: inline-flex; align-items: center; gap: 10px; font: 600 1.15rem var(--font-display); letter-spacing: -0.015em; color: var(--text); overflow-wrap: anywhere; }
.footer-email:hover { color: var(--accent); }
.footer-email .arrow { transition: transform 0.4s var(--ease); }
.footer-email:hover .arrow { transform: translateX(4px); }
.footer-cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px 24px; }
@media (min-width: 720px) { .footer-cols { grid-template-columns: repeat(4, 1fr); } }
.footer-h { font: 500 0.95rem var(--font-body); color: var(--text-3); margin-bottom: 12px; }
.footer-cols ul { list-style: none; display: grid; gap: 8px; }
.footer-cols a, .footer-cols span { display: inline-flex; align-items: center; gap: 6px; color: var(--text-2); transition: color 0.2s; }
.footer-cols a:hover { color: var(--text); }
.footer-legal { display: grid; gap: 12px; margin-top: clamp(48px, 7vw, 88px); padding-top: 24px; border-top: 1px solid var(--line); font-size: 0.88rem; color: var(--text-3); }
.footer-legal a { color: var(--text-2); }
.footer-legal a:hover { color: var(--text); }
.footer-legal-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; }

/* ---------- 404 ---------- */

.lost { min-height: 100svh; display: grid; place-items: center; text-align: center; position: relative; isolation: isolate; overflow: clip; padding: 140px 0 80px; }
.lost .morph-blob { --size: clamp(240px, 36vw, 460px); left: 50%; top: 50%; translate: -50% -60%; z-index: -1; --c1: var(--graphite); view-transition-name: blob; }
.lost h1 { font: 700 clamp(6rem, 3rem + 16vw, 14rem)/0.85 var(--font-display); letter-spacing: -0.06em; }
.lost p { color: var(--text-2); margin: 18px auto 32px; max-width: 30rem; }
.lost .btn-row { justify-content: center; }

/* ---------- page transitions ---------- */

.no-vt body { animation: page-in 0.6s var(--ease) both; }
.no-vt.is-leaving body { opacity: 0; transform: translateY(-6px); transition: opacity 0.2s ease, transform 0.2s ease; }
@keyframes page-in { from { opacity: 0; transform: translateY(12px); } }

::view-transition-group(*) { animation-duration: 0.7s; animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1); }
::view-transition-old(root) { animation: vt-out 0.32s cubic-bezier(0.55, 0, 1, 0.45) both; }
::view-transition-new(root) { animation: vt-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.05s both; }
::view-transition-group(blob) { animation-duration: 0.95s; }
::view-transition-group(site-header) { animation: none; }
::view-transition-old(site-header) { animation: none; opacity: 0; }
::view-transition-new(site-header) { animation: none; }
::view-transition-old(page-title), ::view-transition-new(page-title) { height: 100%; width: auto; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-10px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(20px); } }
@keyframes vt-out-left { to { opacity: 0; transform: translateX(-36px); } }
@keyframes vt-in-right { from { opacity: 0; transform: translateX(48px); } }
@keyframes vt-out-right { to { opacity: 0; transform: translateX(36px); } }
@keyframes vt-in-left { from { opacity: 0; transform: translateX(-48px); } }
html:active-view-transition-type(forward)::view-transition-old(root) { animation-name: vt-out-left; }
html:active-view-transition-type(forward)::view-transition-new(root) { animation-name: vt-in-right; }
html:active-view-transition-type(backward)::view-transition-old(root) { animation-name: vt-out-right; }
html:active-view-transition-type(backward)::view-transition-new(root) { animation-name: vt-in-left; }
html.vt-ui::view-transition-old(root) { animation: fade-out 0.25s ease both; }
html.vt-ui::view-transition-new(root) { animation: fade-in 0.3s ease both; }
html.vt-ui::view-transition-group(*) { animation-duration: 0.5s; }
@keyframes fade-out { to { opacity: 0; } }

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; }
  .js [data-reveal], .js [data-split] .w { opacity: 1; transform: none; }
  .marquee-track { animation: none; }
  .statement .sw { opacity: 1 !important; }
}
