/* =========================================================
   NEPSYS Digital Solution — design system
   Palette: Himalayan night + first light
   ========================================================= */

:root {
  --night: #0B1230;      /* page base: deep indigo night */
  --deep: #111A3D;       /* raised panels */
  --ridge: #24326A;      /* lines, borders, contour base */
  --snow: #EEF1F8;       /* primary text */
  --mist: #9AA5C4;       /* secondary text */
  --dawn: #F5B971;       /* first-light accent: CTAs, focus, peaks */
  --glacier: #8FB8FF;    /* links, secondary highlights */

  --bg: var(--night);
  --bg-raised: var(--deep);
  --bg-sunk: #080D24;
  --line: rgba(154, 165, 196, 0.18);
  --line-strong: rgba(154, 165, 196, 0.34);
  --text: var(--snow);
  --text-muted: var(--mist);
  --accent: var(--dawn);
  --accent-ink: #1A1206;
  --link: var(--glacier);
  --contour: 36, 50, 106;        /* rgb triplet for canvas */
  --contour-hi: 245, 185, 113;
  --header-bg: rgba(11, 18, 48, 0.72);
  --shadow: 0 30px 60px -30px rgba(2, 4, 16, 0.8);

  --font-display: "Unbounded", "Inter Display", "Inter", system-ui, sans-serif;
  --font-body: "Instrument Sans", "Noto Sans Devanagari", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* type scale (≈1.25, fluid at display sizes) */
  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-base: 1.0625rem;
  --fs-md: 1.25rem;
  --fs-lg: clamp(1.4rem, 1.1rem + 1vw, 1.75rem);
  --fs-xl: clamp(1.8rem, 1.3rem + 2vw, 2.75rem);
  --fs-2xl: clamp(2.2rem, 1.4rem + 3.4vw, 4.25rem);
  --fs-hero: clamp(2.5rem, 1.2rem + 5.2vw, 6rem);

  --gutter: clamp(1rem, 0.4rem + 2.6vw, 2.5rem);
  --maxw: 1320px;
  --section: clamp(5rem, 3rem + 7vw, 10rem);

  --r-panel: 22px;
  --r-media: 10px;
  --r-pill: 999px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);

  color-scheme: dark;
}

/* Daylight theme */
:root[data-theme="light"] {
  --bg: #F2F4FA;
  --bg-raised: #FFFFFF;
  --bg-sunk: #E6EAF4;
  --line: rgba(11, 18, 48, 0.12);
  --line-strong: rgba(11, 18, 48, 0.26);
  --text: #0B1230;
  --text-muted: #4B5578;
  --accent: #B8641C;
  --accent-ink: #FFFFFF;
  --link: #2747B8;
  --contour: 160, 172, 210;
  --contour-hi: 205, 120, 48;
  --header-bg: rgba(242, 244, 250, 0.8);
  --shadow: 0 30px 60px -34px rgba(11, 18, 48, 0.35);
  color-scheme: light;
}

/* Accessibility toggles */
:root[data-a11y-contrast="on"] {
  --text-muted: var(--text);
  --line: var(--line-strong);
}
:root[data-a11y-links="on"] a { text-decoration: underline !important; text-underline-offset: 3px; }
:root[data-a11y-spacing="on"] body { letter-spacing: 0.03em; word-spacing: 0.12em; line-height: 1.9; }


/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
/* iPhone Safari turns off position: sticky for the whole page when the body is overflow-x: hidden, so the pinned scenes
   (review ring, zoom, process cards, deck) scrolled away and left their scroll length empty. clip trims sideways
   overflow the same way without making the body a scroll box, so sticky keeps working. Desktop looks the same. */
@supports (overflow-x: clip) { body { 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; background: none; border: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 500; line-height: 1.08; letter-spacing: -0.02em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--accent); color: var(--accent-ink); }

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

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 200;
  background: var(--accent); color: var(--accent-ink);
  padding: 0.7rem 1.1rem; border-radius: var(--r-pill); font-weight: 600;
  transition: top 0.2s;
}
.skip-link:focus { top: 1rem; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); position: relative; }
.section--tight { padding-block: calc(var(--section) * 0.6); }
.prose-measure { max-width: 62ch; }

.h-display { font-size: var(--fs-hero); font-weight: 500; letter-spacing: -0.035em; line-height: 0.98; }
.h-section { font-size: var(--fs-2xl); letter-spacing: -0.03em; }
.h-sub { font-size: var(--fs-xl); }
.lede { font-size: var(--fs-md); color: var(--text-muted); line-height: 1.55; max-width: 56ch; }
.muted { color: var(--text-muted); }

.section-head { display: grid; gap: 1.4rem; margin-bottom: clamp(2.5rem, 2rem + 3vw, 5rem); max-width: 54rem; }

/* ---------- buttons ---------- */
.btn {
  --btn-bg: transparent; --btn-fg: var(--text); --btn-bd: var(--line-strong);
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  min-height: 3.25rem; padding: 0 1.6rem;
  border-radius: var(--r-pill);
  border: 1px solid var(--btn-bd);
  background: var(--btn-bg); color: var(--btn-fg);
  font-weight: 600; font-size: var(--fs-sm); letter-spacing: 0.01em;
  transition: color 0.4s var(--ease-out), border-color 0.4s var(--ease-out), transform 0.4s var(--ease-out);
  white-space: nowrap;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--text);
  transform: translateY(101%); border-radius: inherit;
  transition: transform 0.5s var(--ease-out);
}
.btn:hover::before { transform: translateY(0); }
.btn:hover { color: var(--bg); border-color: var(--text); }
.btn--primary { --btn-bg: var(--accent); --btn-fg: var(--accent-ink); --btn-bd: var(--accent); }
.btn--primary::before { background: var(--snow); }
:root[data-theme="light"] .btn--primary::before { background: var(--night); }
.btn--primary:hover { color: var(--night); border-color: var(--snow); }
:root[data-theme="light"] .btn--primary:hover { color: #fff; border-color: var(--night); }
.btn--sm { min-height: 2.6rem; padding: 0 1.15rem; font-size: var(--fs-xs); }
.btn svg { width: 1.05em; height: 1.05em; flex: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }

.text-link {
  color: var(--link); font-weight: 600;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size 0.4s var(--ease-out);
}
.text-link:hover { background-size: 100% 1px; }

.icon { width: 1.25rem; height: 1.25rem; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: transform 0.5s var(--ease-out), background-color 0.4s, border-color 0.4s, backdrop-filter 0.4s;
  border-bottom: 1px solid transparent;
}
.site-header.is-solid {
  background: var(--header-bg);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-color: var(--line);
}
.site-header.is-hidden { transform: translateY(-100%); }
.header-inner { display: flex; align-items: center; gap: 2rem; height: 76px; }

.brand { display: inline-flex; align-items: center; gap: 0.65rem; font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; letter-spacing: -0.02em; }
.brand-mark { width: 34px; height: 34px; }
.brand-mark .peak-hi { stroke: var(--accent); }
.brand small { display: block; font-family: var(--font-body); font-weight: 500; font-size: 0.68rem; letter-spacing: 0.02em; color: var(--text-muted); margin-top: 0.15rem; }

.main-nav { margin-left: auto; }
.main-nav > ul { display: flex; align-items: center; gap: 0.25rem; }
.nav-link {
  display: inline-flex; align-items: center; gap: 0.3rem;
  padding: 0.55rem 0.9rem; border-radius: var(--r-pill);
  font-size: var(--fs-sm); font-weight: 500; color: var(--text-muted);
  transition: color 0.25s, background-color 0.25s;
}
.nav-link:hover, .nav-link[aria-expanded="true"], .nav-link[aria-current="page"] { color: var(--text); background: rgba(154,165,196,0.1); }
.nav-link .icon { width: 0.95rem; height: 0.95rem; transition: transform 0.3s var(--ease-out); }
.nav-link[aria-expanded="true"] .icon { transform: rotate(180deg); }

.header-tools { display: flex; align-items: center; gap: 0.5rem; }
.tool-btn {
  width: 2.6rem; height: 2.6rem; display: grid; place-items: center;
  border-radius: 50%; border: 1px solid var(--line); color: var(--text);
  transition: border-color 0.25s, background-color 0.25s;
}
.tool-btn:hover { border-color: var(--line-strong); background: rgba(154,165,196,0.08); }
.tool-btn .icon { width: 1.1rem; height: 1.1rem; }
.theme-toggle .i-sun { display: none; }
:root[data-theme="light"] .theme-toggle .i-sun { display: block; }
:root[data-theme="light"] .theme-toggle .i-moon { display: none; }
.menu-toggle { display: none; }

/* mega menu */
.has-mega { position: relative; }
.mega {
  position: absolute; top: calc(100% + 14px); left: 50%;
  width: min(760px, 92vw);
  transform: translate(-50%, 8px);
  opacity: 0; visibility: hidden;
  transition: opacity 0.3s var(--ease-out), transform 0.4s var(--ease-out), visibility 0.3s;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--r-panel);
  box-shadow: var(--shadow);
  padding: 0.75rem;
  display: grid; grid-template-columns: 1.35fr 1fr; gap: 0.75rem;
}
.mega::before { content: ""; position: absolute; inset: -16px 0 auto 0; height: 16px; }
.has-mega.is-open .mega { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.mega-list { display: grid; gap: 0.25rem; }
.mega-item {
  display: grid; grid-template-columns: 2.6rem 1fr; gap: 0.9rem; align-items: center;
  padding: 0.8rem; border-radius: 14px;
  transition: background-color 0.25s;
}
.mega-item:hover, .mega-item:focus-visible { background: rgba(154,165,196,0.09); }
.mega-item .mi-icon { width: 2.6rem; height: 2.6rem; border-radius: 12px; display: grid; place-items: center; background: var(--bg-sunk); color: var(--accent); border: 1px solid var(--line); }
.mega-item strong { display: block; font-size: var(--fs-sm); font-weight: 600; }
.mega-item span { display: block; font-size: var(--fs-xs); color: var(--text-muted); line-height: 1.45; }
.mega-feature {
  position: relative; overflow: hidden;
  border-radius: 16px; padding: 1.4rem; min-height: 100%;
  background: var(--bg-sunk); border: 1px solid var(--line);
  display: flex; flex-direction: column; justify-content: flex-end; gap: 0.8rem;
}
.mega-feature canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.9; }
.mega-feature > *:not(canvas) { position: relative; }
.mega-feature p { font-family: var(--font-display); font-size: 1.15rem; line-height: 1.2; letter-spacing: -0.02em; }

/* mobile menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 99;
  background: var(--bg);
  padding: 100px var(--gutter) 2rem;
  display: flex; flex-direction: column; gap: 2rem;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.6s var(--ease-io);
  overflow-y: auto;
}
.mobile-menu.is-open { clip-path: inset(0 0 0 0); }
.mobile-menu nav a {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-display); font-size: clamp(1.6rem, 7vw, 2.4rem); letter-spacing: -0.03em;
  padding: 0.7rem 0; border-bottom: 1px solid var(--line);
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.5s var(--ease-out), transform 0.6s var(--ease-out);
}
.mobile-menu.is-open nav a { opacity: 1; transform: none; }
.mobile-menu nav a .icon { width: 1.4rem; height: 1.4rem; color: var(--accent); }
.mobile-sub { display: grid; gap: 0.2rem; padding: 0.5rem 0 0.8rem 0.2rem; border-bottom: 1px solid var(--line); }
.mobile-menu .mobile-sub a { font-family: var(--font-body); font-size: var(--fs-base); color: var(--text-muted); border: 0; padding: 0.35rem 0; }
.mobile-menu-foot { margin-top: auto; display: grid; gap: 1rem; color: var(--text-muted); font-size: var(--fs-sm); }
body.menu-open { overflow: hidden; }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding-top: 120px; overflow: hidden;
}
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 40%;
  background: linear-gradient(to top, var(--bg), transparent);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 2; padding-bottom: clamp(2rem, 4vw, 3.5rem); }
.hero h1 { max-width: 15ch; }
.hero-foot {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2rem 3rem; align-items: end;
  margin-top: clamp(2rem, 3vw, 3rem);
}
.hero-foot .lede { color: var(--text); opacity: 0.82; }
.hero-meta {
  display: flex; flex-wrap: wrap; gap: 0.6rem 1.4rem;
  margin-top: 1.4rem; font-size: var(--fs-xs); color: var(--text-muted);
}
.hero-meta span { display: inline-flex; align-items: center; gap: 0.45rem; }
.hero-meta span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

/* hero load sequence */
.line-mask { display: block; overflow: hidden; padding-bottom: 0.06em; margin-bottom: -0.06em; }
.line-mask > span { display: block; transform: translateY(105%); transition: transform 1.1s var(--ease-out); }
.is-loaded .line-mask > span { transform: none; }
.is-loaded .line-mask:nth-child(2) > span { transition-delay: 0.09s; }
.is-loaded .line-mask:nth-child(3) > span { transition-delay: 0.18s; }
.is-loaded .line-mask:nth-child(4) > span { transition-delay: 0.27s; }
.hero-fade { opacity: 0; transform: translateY(14px); transition: opacity 0.9s var(--ease-out) 0.45s, transform 1s var(--ease-out) 0.45s; }
.is-loaded .hero-fade { opacity: 1; transform: none; }

/* ticker */
.ticker { position: relative; z-index: 2; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; background: color-mix(in srgb, var(--bg) 60%, transparent); }
.ticker-track { display: flex; width: max-content; animation: ticker 38s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-track span {
  display: inline-flex; align-items: center; gap: 2.2rem; padding: 1.05rem 1.1rem;
  font-family: var(--font-display); font-size: var(--fs-md); letter-spacing: -0.02em; white-space: nowrap;
}
.ticker-track span::after { content: ""; width: 0.5rem; height: 0.5rem; transform: rotate(45deg); border: 1.5px solid var(--accent); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- statement (scroll fill) ---------- */
.statement-text {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(1.7rem, 1rem + 3vw, 3.6rem); line-height: 1.15; letter-spacing: -0.03em;
  max-width: 24ch;
}
.statement-text .w { color: color-mix(in srgb, var(--text) 22%, transparent); transition: color 0.35s linear; }
.statement-text .w.on { color: var(--text); }
.statement-aside { margin-top: 2.5rem; display: flex; gap: 2rem; flex-wrap: wrap; align-items: center; }

/* ---------- services list ---------- */
.svc-list { border-top: 1px solid var(--line); position: relative; }
.svc-row {
  position: relative; display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) 3.5rem;
  gap: 2rem; align-items: center;
  padding: clamp(1.6rem, 1.2rem + 1.5vw, 2.6rem) 0;
  border-bottom: 1px solid var(--line);
  transition: padding 0.5s var(--ease-out);
}
.svc-row h3 { font-size: var(--fs-xl); transition: transform 0.5s var(--ease-out), color 0.3s; }
.svc-row p { color: var(--text-muted); max-width: 46ch; }
.svc-row .svc-go {
  width: 3.5rem; height: 3.5rem; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line-strong); transition: background-color 0.35s, color 0.35s, transform 0.5s var(--ease-out), border-color .35s;
}
.svc-row:hover h3, .svc-row:focus-visible h3 { transform: translateX(0.6rem); color: var(--accent); }
.svc-row:hover .svc-go { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); transform: rotate(45deg); }
.svc-row .svc-art-inline { display: none; }
.svc-preview {
  position: fixed; left: 0; top: 0; z-index: 30; pointer-events: none;
  width: 300px; aspect-ratio: 4/3; border-radius: 16px; overflow: hidden;
  background: var(--bg-raised); border: 1px solid var(--line-strong); box-shadow: var(--shadow);
  opacity: 0; transform: translate(-50%, -50%) scale(0.85) rotate(-4deg);
  transition: opacity 0.3s var(--ease-out), transform 0.5s var(--ease-out);
}
.svc-preview.is-on { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(-3deg); }
.svc-preview .art { position: absolute; inset: 0; opacity: 0; transition: opacity 0.3s; }
.svc-preview .art.is-on { opacity: 1; }

/* service art (shared SVG illustrations) */
.art svg { width: 100%; height: 100%; }
.art { --a-line: var(--line-strong); --a-fill: var(--bg-sunk); --a-soft: rgba(154,165,196,0.16); --a-hot: var(--accent); --a-cool: var(--glacier); color: var(--text-muted); background: var(--bg-raised); }

/* ---------- commitments ---------- */
.split { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(2rem, 5vw, 6rem); align-items: start; }
.split-sticky { position: sticky; top: 120px; display: grid; gap: 1.4rem; }
.commit-list { display: grid; }
.commit {
  display: grid; grid-template-columns: 3rem 1fr; gap: 1.25rem;
  padding: 2rem 0; border-top: 1px solid var(--line);
}
.commit:last-child { border-bottom: 1px solid var(--line); }
.commit .c-ico { width: 3rem; height: 3rem; border-radius: 14px; display: grid; place-items: center; color: var(--accent); background: var(--bg-raised); border: 1px solid var(--line); }
.commit h3 { font-size: var(--fs-md); font-family: var(--font-body); font-weight: 600; letter-spacing: 0; margin-bottom: 0.4rem; line-height: 1.3; }
.commit p { color: var(--text-muted); }

/* ---------- process (sticky stack) ---------- */
.process { background: var(--bg-sunk); }
.stack { display: grid; gap: 1.5rem; }
.stack-card {
  position: sticky; top: calc(110px + var(--i) * 18px);
  display: grid; grid-template-columns: clamp(3.5rem, 2.5rem + 3vw, 6.5rem) minmax(0, 1fr) minmax(0, 0.9fr); gap: clamp(1.25rem, 3vw, 3.5rem);
  align-items: start;
  padding: clamp(1.6rem, 1rem + 2.5vw, 3rem);
  background: var(--bg-raised); border: 1px solid var(--line);
  border-radius: var(--r-panel);
  box-shadow: 0 -20px 40px -30px rgba(2,4,16,0.6);
  transform-origin: 50% 0;
  will-change: transform;
  min-height: 250px;
}
.stack-num { font-family: var(--font-display); font-size: var(--fs-2xl); line-height: 0.9; color: var(--accent); letter-spacing: -0.04em; }
.stack-card h3 { font-size: var(--fs-xl); margin-bottom: 1rem; }
.stack-card p { color: var(--text-muted); }
.stack-card ul { display: grid; gap: 0.7rem; }
.stack-card li { display: flex; gap: 0.7rem; align-items: baseline; color: var(--text); font-size: var(--fs-sm); }
.stack-card li::before { content: ""; flex: none; width: 0.9rem; height: 1px; background: var(--accent); transform: translateY(-0.25rem); }

/* ---------- work ---------- */
.work-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 2rem); }
.work-card { grid-column: span 6; display: grid; gap: 1.1rem; }
.work-card:nth-child(3n+1) { grid-column: span 7; }
.work-card:nth-child(3n+2) { grid-column: span 5; margin-top: clamp(0px, 8vw, 8rem); }
.work-card:nth-child(3n) { grid-column: 3 / span 8; }
.work-media {
  position: relative; overflow: hidden; border-radius: var(--r-media);
  background: var(--bg-raised); border: 1px solid var(--line);
  aspect-ratio: 16/10;
}
.work-media img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 1.2s var(--ease-out); }
.work-card:hover .work-media img { transform: scale(1.04); }
.work-meta { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; }
.work-meta h3 { font-size: var(--fs-lg); }
.work-meta span { color: var(--text-muted); font-size: var(--fs-sm); }

/* ---------- founder ---------- */
.founder { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(2rem, 5vw, 6rem); align-items: center; }
.founder-panel {
  position: relative; overflow: hidden; aspect-ratio: 4/5;
  border-radius: var(--r-panel); background: var(--bg-sunk); border: 1px solid var(--line);
  display: flex; flex-direction: column; justify-content: space-between; padding: 1.8rem;
}
.founder-panel canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.founder-panel > *:not(canvas) { position: relative; }
.founder-mono { font-family: var(--font-display); font-size: clamp(4rem, 10vw, 8rem); letter-spacing: -0.06em; line-height: 0.85; }
.founder-sign { display: grid; gap: 0.2rem; }
.founder-sign strong { font-size: var(--fs-md); }
.founder-sign span { color: var(--text-muted); font-size: var(--fs-sm); }
.letter { display: grid; gap: 1.3rem; }
.letter p { font-size: var(--fs-md); line-height: 1.6; color: var(--text-muted); max-width: 54ch; }
.letter p:first-of-type { color: var(--text); font-family: var(--font-display); font-size: var(--fs-lg); line-height: 1.3; letter-spacing: -0.02em; }
.letter .slogan, .slogan { font-family: var(--font-display); font-size: var(--fs-md); color: var(--accent); letter-spacing: -0.01em; }

/* ---------- tech wall ---------- */
.tech { overflow: hidden; }
.tech-rows { display: grid; gap: 1rem; margin-top: 3rem; }
.tech-row { display: flex; gap: 1rem; width: max-content; will-change: transform; }
.chip {
  display: inline-flex; align-items: center; gap: 0.8rem;
  padding: 0.9rem 1.4rem 0.9rem 0.9rem; border-radius: var(--r-pill);
  border: 1px solid var(--line); background: var(--bg-raised);
  font-weight: 600; white-space: nowrap;
}
.chip i { font-style: normal; width: 2.2rem; height: 2.2rem; border-radius: 50%; display: grid; place-items: center; background: var(--bg-sunk); color: var(--accent); font-family: var(--font-display); font-size: 0.72rem; border: 1px solid var(--line); }

/* ---------- FAQ ---------- */
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem;
  text-align: left; padding: 1.5rem 0; font-size: var(--fs-md); font-weight: 600; line-height: 1.35;
}
.faq-q .pm { flex: none; width: 2.4rem; height: 2.4rem; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; transition: transform 0.45s var(--ease-out), background-color 0.3s, color .3s; }
.faq-q[aria-expanded="true"] .pm { transform: rotate(45deg); background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.5s var(--ease-out); }
.faq-a > div { overflow: hidden; }
.faq-a p { color: var(--text-muted); padding-bottom: 1.6rem; max-width: 64ch; }
.faq-item.is-open .faq-a { grid-template-rows: 1fr; }

/* ---------- CTA ---------- */
.cta {
  position: relative; overflow: hidden;
  border-radius: calc(var(--r-panel) + 8px);
  background: var(--bg-sunk); border: 1px solid var(--line);
  padding: clamp(3rem, 2rem + 6vw, 8rem) clamp(1.5rem, 1rem + 4vw, 5rem);
}
.cta canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.cta > *:not(canvas) { position: relative; }
.cta h2 { font-size: var(--fs-2xl); max-width: 16ch; margin-bottom: 1.5rem; }
.cta .lede { margin-bottom: 2.4rem; }

/* ---------- footer ---------- */
.site-footer { padding-top: var(--section); overflow: hidden; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 2.5rem; padding-bottom: 3rem; border-bottom: 1px solid var(--line); }
.footer-grid h2 { font-family: var(--font-body); font-size: var(--fs-sm); font-weight: 600; color: var(--text-muted); letter-spacing: 0; margin-bottom: 1.1rem; }
.footer-grid ul { display: grid; gap: 0.6rem; }
.footer-grid a:not(.btn) { color: var(--text); transition: color 0.2s; }
.footer-grid a:not(.btn):hover { color: var(--accent); }
.footer-about { display: grid; gap: 1.2rem; align-content: start; max-width: 34ch; }
.footer-about p { color: var(--text-muted); font-size: var(--fs-sm); }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; padding-block: 1.6rem; font-size: var(--fs-xs); color: var(--text-muted); }
.footer-bottom ul { display: flex; gap: 1.5rem; }
.footer-word {
  font-family: var(--font-display); font-weight: 600;
  font-size: min(23vw, 24rem); line-height: 0.78; letter-spacing: -0.06em; text-align: center;
  color: transparent; -webkit-text-stroke: 1px var(--line-strong);
  white-space: nowrap; user-select: none;
  transform: translateY(12%);
  margin-top: 1rem;
}

/* ---------- floating tools ---------- */
.float-dock { position: fixed; right: clamp(0.8rem, 2vw, 1.5rem); bottom: clamp(0.8rem, 2vw, 1.5rem); z-index: 90; display: grid; gap: 0.6rem; justify-items: end; }
.dock-btn {
  width: 3.2rem; height: 3.2rem; border-radius: 50%; display: grid; place-items: center;
  background: var(--bg-raised); border: 1px solid var(--line-strong); color: var(--text);
  box-shadow: var(--shadow);
  transition: transform 0.4s var(--ease-out), opacity 0.3s, background-color .3s, color .3s;
}
.dock-btn:hover { transform: translateY(-2px); }
.dock-btn--accent { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.dock-top { opacity: 0; pointer-events: none; transform: translateY(10px); }
.dock-top.is-on { opacity: 1; pointer-events: auto; transform: none; }

.a11y-panel {
  position: fixed; right: clamp(0.8rem, 2vw, 1.5rem); bottom: calc(clamp(0.8rem, 2vw, 1.5rem) + 4rem);
  z-index: 95; width: min(320px, calc(100vw - 1.6rem));
  background: var(--bg-raised); border: 1px solid var(--line-strong); border-radius: var(--r-panel);
  box-shadow: var(--shadow); padding: 1.3rem;
  opacity: 0; visibility: hidden; transform: translateY(10px) scale(0.98); transform-origin: 100% 100%;
  transition: opacity 0.3s var(--ease-out), transform 0.4s var(--ease-out), visibility 0.3s;
}
.a11y-panel.is-open { opacity: 1; visibility: visible; transform: none; }
.a11y-panel h2 { font-family: var(--font-body); font-size: var(--fs-base); font-weight: 600; letter-spacing: 0; margin-bottom: 1rem; }
.a11y-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 0.65rem 0; border-top: 1px solid var(--line); font-size: var(--fs-sm); }
.switch { position: relative; width: 2.8rem; height: 1.6rem; border-radius: 99px; background: var(--bg-sunk); border: 1px solid var(--line-strong); transition: background-color 0.25s; flex: none; }
.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: calc(1.6rem - 6px); height: calc(1.6rem - 6px); border-radius: 50%; background: var(--text-muted); transition: transform 0.3s var(--ease-out), background-color .25s; }
.switch[aria-checked="true"] { background: var(--accent); border-color: var(--accent); }
.switch[aria-checked="true"]::after { transform: translateX(1.2rem); background: var(--accent-ink); }
.size-ctrl { display: flex; gap: 0.4rem; }
.size-ctrl button { width: 2.2rem; height: 2.2rem; border-radius: 10px; border: 1px solid var(--line-strong); font-weight: 700; }
.size-ctrl button:hover { border-color: var(--accent); }
.a11y-reset { margin-top: 0.8rem; font-size: var(--fs-xs); color: var(--link); font-weight: 600; }

/* ---------- reveal (headings only, restrained) ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.9s var(--ease-out), transform 1s var(--ease-out); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- inner page hero ---------- */
.page-hero { position: relative; padding-top: calc(76px + clamp(4rem, 3rem + 6vw, 9rem)); padding-bottom: clamp(3rem, 2rem + 4vw, 6rem); overflow: hidden; }
.page-hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.85; }
.page-hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 60%; background: linear-gradient(to top, var(--bg), transparent); pointer-events: none; }
.page-hero .wrap { position: relative; z-index: 2; }
.page-hero h1 { font-size: clamp(2.3rem, 1.3rem + 4.2vw, 5.2rem); letter-spacing: -0.035em; max-width: 18ch; line-height: 1; }
.page-hero .lede { margin-top: 1.6rem; }
.crumbs { display: flex; gap: 0.5rem; flex-wrap: wrap; font-size: var(--fs-xs); color: var(--text-muted); margin-bottom: 1.6rem; }
.crumbs a:hover { color: var(--text); }
.crumbs li + li::before { content: "/"; margin-right: 0.5rem; opacity: 0.5; }

/* services overview grid */
.svc-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.svc-card {
  position: relative; display: grid; grid-template-rows: auto 1fr; overflow: hidden;
  border-radius: var(--r-panel); border: 1px solid var(--line); background: var(--bg-raised);
  transition: border-color 0.35s, transform 0.6s var(--ease-out);
}
.svc-card:hover { border-color: var(--line-strong); transform: translateY(-4px); }
.svc-card .art { aspect-ratio: 16/9; border-bottom: 1px solid var(--line); }
.svc-card-body { padding: clamp(1.4rem, 1rem + 1.5vw, 2.2rem); display: grid; gap: 0.9rem; align-content: start; }
.svc-card h2 { font-size: var(--fs-lg); }
.svc-card p { color: var(--text-muted); }
.svc-card .tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.4rem; }
.tag { font-size: var(--fs-xs); padding: 0.3rem 0.7rem; border-radius: var(--r-pill); border: 1px solid var(--line); color: var(--text-muted); }

/* detail page blocks */
.detail-hero-art { margin-top: clamp(2.5rem, 4vw, 4rem); border-radius: var(--r-panel); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 21/9; }
.incl-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.incl {
  padding: clamp(1.5rem, 1rem + 1.4vw, 2.4rem); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  display: grid; gap: 0.8rem; align-content: start;
}
.incl .icon { color: var(--accent); width: 1.6rem; height: 1.6rem; }
.incl h3 { font-family: var(--font-body); font-size: var(--fs-md); font-weight: 600; letter-spacing: 0; line-height: 1.3; }
.incl p { color: var(--text-muted); font-size: var(--fs-sm); }
.fit-list { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.fit-list li { padding: 0.75rem 1.2rem; border-radius: var(--r-pill); background: var(--bg-raised); border: 1px solid var(--line); }
.steps-inline { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; counter-reset: s; }
.steps-inline li { counter-increment: s; padding-top: 1.4rem; border-top: 2px solid var(--line); display: grid; gap: 0.6rem; position: relative; }
.steps-inline li::before { content: counter(s, decimal-leading-zero); font-family: var(--font-display); color: var(--accent); font-size: var(--fs-sm); }
.steps-inline li::after { content: ""; position: absolute; top: -2px; left: 0; width: 0; height: 2px; background: var(--accent); transition: width 1.2s var(--ease-out) calc(var(--d, 0) * 0.15s); }
.steps-inline.is-in li::after { width: 100%; }
.steps-inline h3 { font-family: var(--font-body); font-size: var(--fs-md); font-weight: 600; letter-spacing: 0; }
.steps-inline p { color: var(--text-muted); font-size: var(--fs-sm); }
.next-svc { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.next-svc a { padding: 1.6rem; border-radius: var(--r-panel); border: 1px solid var(--line); display: grid; gap: 0.5rem; transition: border-color .3s, background-color .3s; }
.next-svc a:hover { border-color: var(--accent); background: var(--bg-raised); }
.next-svc strong { font-family: var(--font-display); font-weight: 500; font-size: var(--fs-md); letter-spacing: -0.02em; }
.next-svc span { color: var(--text-muted); font-size: var(--fs-sm); }

/* about */
.values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.value { padding: 2rem; border-radius: var(--r-panel); background: var(--bg-raised); border: 1px solid var(--line); display: grid; gap: 0.8rem; align-content: start; }
.value h3 { font-size: var(--fs-md); }
.value p { color: var(--text-muted); }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.facts div { padding: 1.4rem 0; border-bottom: 1px solid var(--line); display: grid; gap: 0.3rem; }
.facts div:nth-child(odd) { padding-right: 1.5rem; }
.facts dt { color: var(--text-muted); font-size: var(--fs-sm); }
.facts dd { margin: 0; font-weight: 600; }

/* ---------- forms ---------- */
.form-card { background: var(--bg-raised); border: 1px solid var(--line); border-radius: calc(var(--r-panel) + 4px); padding: clamp(1.4rem, 1rem + 2.4vw, 3rem); box-shadow: var(--shadow); }
.field { display: grid; gap: 0.45rem; }
.field label, .field .label { font-size: var(--fs-sm); font-weight: 600; }
.field .optional { color: var(--text-muted); font-weight: 400; }
.input {
  width: 100%; min-height: 3.2rem; padding: 0.85rem 1rem; border-radius: 14px;
  background: var(--bg-sunk); border: 1px solid var(--line-strong); color: var(--text);
  transition: border-color 0.25s, box-shadow 0.25s;
}
textarea.input { min-height: 9rem; resize: vertical; line-height: 1.5; }
.input::placeholder { color: color-mix(in srgb, var(--text-muted) 70%, transparent); }
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }
.input[aria-invalid="true"] { border-color: #FF7A7A; }
.field-err { color: #FF9C9C; font-size: var(--fs-xs); min-height: 1em; }
:root[data-theme="light"] .field-err { color: #B42318; }
:root[data-theme="light"] .input[aria-invalid="true"] { border-color: #B42318; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; }
.form-grid .full { grid-column: 1 / -1; }
/* The anti-robot field. Hidden with display:none, not moved off-screen: a browser never offers to autofill a field it
   doesn't lay out, so a visitor's saved details can't land in it, while robots that fill every field in the HTML still do. */
.hp { display: none; }
.form-status { margin-top: 1rem; font-size: var(--fs-sm); }
.form-status.is-error { color: #FF9C9C; }

/* quote wizard */
.wizard { max-width: 880px; margin-inline: auto; }
.wz-steps { display: grid; grid-template-columns: repeat(4, 1fr); margin-bottom: 2.5rem; position: relative; }
.wz-steps::before { content: ""; position: absolute; top: 1.05rem; left: 12.5%; right: 12.5%; height: 2px; background: var(--line); }
.wz-progress { position: absolute; top: 1.05rem; left: 12.5%; height: 2px; background: var(--accent); width: 0; transition: width 0.6s var(--ease-out); }
.wz-step { position: relative; display: grid; justify-items: center; gap: 0.5rem; font-size: var(--fs-xs); color: var(--text-muted); text-align: center; }
.wz-dot { width: 2.1rem; height: 2.1rem; border-radius: 50%; display: grid; place-items: center; background: var(--bg-raised); border: 1px solid var(--line-strong); font-weight: 700; font-size: 0.8rem; transition: background-color .35s, color .35s, border-color .35s; }
.wz-dot .icon { width: 0.9rem; height: 0.9rem; stroke-width: 3; display: none; }
.wz-step.is-current { color: var(--text); }
.wz-step.is-current .wz-dot { border-color: var(--accent); color: var(--accent); }
.wz-step.is-done .wz-dot { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.wz-step.is-done .wz-dot b { display: none; }
.wz-step.is-done .wz-dot .icon { display: block; }
.wz-panel { display: none; }
.wz-panel.is-active { display: block; animation: wzIn 0.55s var(--ease-out); }
@keyframes wzIn { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: none; } }
.wz-panel h2 { font-family: var(--font-display); font-size: var(--fs-lg); margin-bottom: 0.5rem; }
.wz-panel > p { color: var(--text-muted); margin-bottom: 1.6rem; }
.wz-group + .wz-group { margin-top: 2.2rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.wz-group h3 { font-family: var(--font-body); font-size: var(--fs-md); font-weight: 600; letter-spacing: 0; margin-bottom: 0.3rem; }
.wz-group > p { color: var(--text-muted); font-size: var(--fs-sm); margin-bottom: 1.1rem; }
.opt-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.7rem; }
.opt-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.opt-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.opt {
  position: relative; display: grid; grid-template-columns: auto 1fr; gap: 0.85rem; align-items: center;
  padding: 0.95rem 1rem; border-radius: 14px; text-align: left;
  border: 1px solid var(--line-strong); background: var(--bg-sunk);
  transition: border-color .25s, background-color .25s, transform .3s var(--ease-out);
}
.opt:hover { border-color: var(--text-muted); }
.opt .o-ico { width: 2.3rem; height: 2.3rem; border-radius: 10px; display: grid; place-items: center; background: var(--bg-raised); border: 1px solid var(--line); color: var(--accent); }
.opt .o-ico .icon { width: 1.05rem; height: 1.05rem; }
.opt strong { display: block; font-size: var(--fs-sm); font-weight: 600; line-height: 1.3; }
.opt small { display: block; font-size: var(--fs-xs); color: var(--text-muted); line-height: 1.35; }
.opt--check { grid-template-columns: 1.3rem 1fr; }
.opt .box { width: 1.3rem; height: 1.3rem; border-radius: 6px; border: 1.5px solid var(--line-strong); display: grid; place-items: center; transition: background-color .2s, border-color .2s; }
.opt .box .icon { width: 0.85rem; height: 0.85rem; stroke-width: 3; opacity: 0; color: var(--accent-ink); }
.opt[aria-pressed="true"], .opt[aria-checked="true"] { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, var(--bg-sunk)); }
.opt[aria-pressed="true"] .box { background: var(--accent); border-color: var(--accent); }
.opt[aria-pressed="true"] .box .icon { opacity: 1; }
.opt[aria-checked="true"] .o-ico { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.currency { display: inline-flex; padding: 3px; border-radius: 99px; border: 1px solid var(--line-strong); margin-bottom: 1rem; }
.currency button { padding: 0.35rem 0.9rem; border-radius: 99px; font-size: var(--fs-xs); font-weight: 600; color: var(--text-muted); }
.currency button[aria-pressed="true"] { background: var(--text); color: var(--bg); }
.wz-nav { display: flex; gap: 0.75rem; margin-top: 2.4rem; }
.wz-nav .btn--primary { flex: 1; }
.wz-nav .btn[disabled] { opacity: 0.4; pointer-events: none; }
.wz-count { text-align: center; color: var(--text-muted); font-size: var(--fs-xs); margin-top: 1.1rem; }
.wz-summary { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1.6rem; }
.wz-done { text-align: center; padding: 2rem 0; display: grid; gap: 1rem; justify-items: center; }
.wz-done .ok { width: 4rem; height: 4rem; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); }
.wz-done .ok .icon { width: 1.8rem; height: 1.8rem; stroke-width: 2.5; }

.contact-split { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.contact-aside { display: grid; gap: 2rem; }
.contact-line { display: grid; gap: 0.3rem; padding-bottom: 1.4rem; border-bottom: 1px solid var(--line); }
.contact-line span { color: var(--text-muted); font-size: var(--fs-sm); }
.contact-line a, .contact-line strong { font-family: var(--font-display); font-weight: 500; font-size: var(--fs-md); letter-spacing: -0.02em; word-break: break-word; }

/* legal */
.legal { max-width: 72ch; }
.legal h2 { font-size: var(--fs-lg); margin: 2.6rem 0 0.9rem; }
.legal p, .legal li { color: var(--text-muted); margin-bottom: 0.9rem; }
.legal ul { list-style: disc; padding-left: 1.3rem; }

/* 404 */
.nf { min-height: 100svh; display: grid; place-items: center; text-align: center; position: relative; overflow: hidden; }
.nf canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.nf > div { position: relative; display: grid; gap: 1.4rem; justify-items: center; padding: 6rem var(--gutter); }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .main-nav, .header-cta { display: none; }
  .menu-toggle { display: grid; }
  .header-tools { margin-left: auto; }
  .stack-card { grid-template-columns: clamp(3.5rem, 2.5rem + 3vw, 6.5rem) minmax(0, 1fr); }
  .stack-card ul { grid-column: 2; }
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-about { grid-column: 1 / -1; max-width: 46ch; }
  .incl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps-inline { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2rem; }
  .opt-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .hero-foot { grid-template-columns: 1fr; }
  .split, .founder, .contact-split { grid-template-columns: 1fr; }
  .split-sticky { position: static; }
  .svc-row { grid-template-columns: minmax(0, 1fr) 3rem; gap: 0.9rem 1rem; }
  .svc-row p { grid-column: 1; }
  .svc-row .svc-go { grid-row: 1; grid-column: 2; width: 3rem; height: 3rem; }
  .svc-row .svc-art-inline { display: block; grid-column: 1 / -1; aspect-ratio: 16/8; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); }
  .svc-preview { display: none; }
  .work-card, .work-card:nth-child(n) { grid-column: 1 / -1; margin-top: 0; }
  .founder-panel { aspect-ratio: 16/11; }
  .svc-cards, .values, .next-svc { grid-template-columns: 1fr; }
  .opt-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-hero-art { aspect-ratio: 16/10; }
}
@media (max-width: 600px) {
  :root { --fs-base: 1rem; }
  .header-inner { height: 66px; }
  .brand small { display: none; }
  .stack-card { grid-template-columns: 1fr; top: calc(84px + var(--i) * 12px); min-height: 0; }
  .stack-card ul { grid-column: auto; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .incl-grid, .steps-inline, .facts { grid-template-columns: 1fr; }
  .facts div:nth-child(odd) { padding-right: 0; }
  .form-grid, .opt-grid, .opt-grid--4, .opt-grid--2 { grid-template-columns: 1fr; }
  .wz-step span { display: none; }
  .btn-row .btn { flex: 1 1 auto; }
  .footer-bottom { flex-direction: column; }
  .theme-toggle { display: none; }
  .mobile-menu .theme-toggle { display: grid; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .reveal, .hero-fade, .line-mask > span { opacity: 1; transform: none; }
}
:root[data-a11y-motion="off"] *, :root[data-a11y-motion="off"] *::before, :root[data-a11y-motion="off"] *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
:root[data-a11y-motion="off"] .reveal, :root[data-a11y-motion="off"] .hero-fade, :root[data-a11y-motion="off"] .line-mask > span { opacity: 1; transform: none; }

/* service art primitives */
.art .a-frame { fill: var(--a-fill); stroke: var(--a-line); stroke-width: 1.2; }
.art .a-line { fill: none; stroke: var(--a-line); stroke-width: 1.2; stroke-linecap: round; }
.art .a-soft { fill: var(--a-soft); }
.art .a-hot { fill: var(--a-hot); }
.art .a-hot-s { fill: none; stroke: var(--a-hot); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.art .a-cool { fill: var(--a-cool); opacity: 0.85; }
.art .a-cool-s { fill: none; stroke: var(--a-cool); stroke-width: 1.2; opacity: 0.7; }
.art .a-text { fill: var(--text); opacity: 0.75; }

[hidden] { display: none !important; }
@media (max-width: 600px) {
  .hero-foot .lede { font-size: 1.0625rem; }
  .hero { padding-top: 96px; }
}

/* work: real screenshots */
.work-media { aspect-ratio: 16/9; }
.work-card { position: relative; }
.work-card .work-go {
  position: absolute; right: 1rem; bottom: 1rem; width: 3.2rem; height: 3.2rem; border-radius: 50%;
  display: grid; place-items: center; background: var(--accent); color: var(--accent-ink);
  opacity: 0; transform: scale(0.7) rotate(-45deg); transition: opacity .35s var(--ease-out), transform .5s var(--ease-out);
}
.work-card:hover .work-go, .work-card:focus-visible .work-go { opacity: 1; transform: none; }
.work-card h3 { transition: color .3s; }
.work-card:hover h3 { color: var(--accent); }
.work-meta { flex-wrap: wrap; }
.work-sum { color: var(--text-muted); font-size: var(--fs-sm); margin-top: -0.6rem; }
.work-media--shot { display: block; box-shadow: var(--shadow); }
.next-proj {
  display: flex; align-items: baseline; gap: 1.2rem; flex-wrap: wrap;
  padding: 2rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.next-proj strong { font-family: var(--font-display); font-weight: 500; font-size: var(--fs-xl); letter-spacing: -0.03em; transition: color .3s; }
.next-proj .icon { width: 2rem; height: 2rem; margin-left: auto; align-self: center; transition: transform .5s var(--ease-out); }
.next-proj:hover strong { color: var(--accent); }
.next-proj:hover .icon { transform: rotate(45deg); color: var(--accent); }

/* =========================================================
   v2 — motion system & new components
   ========================================================= */

/* accent themes (hero rail / accessibility panel) */
:root[data-accent="glacier"] { --accent: #8FB8FF; --contour-hi: 143, 184, 255; }
:root[data-accent="aurora"]  { --accent: #6EE7B7; --contour-hi: 110, 231, 183; }
:root[data-accent="rose"]    { --accent: #FF8FA3; --contour-hi: 255, 143, 163; }
:root[data-accent="snow"]    { --accent: #EEF1F8; --contour-hi: 238, 241, 248; }
:root[data-theme="light"][data-accent="glacier"] { --accent: #2747B8; --contour-hi: 60, 95, 210; }
:root[data-theme="light"][data-accent="aurora"]  { --accent: #0F7A55; --contour-hi: 20, 140, 95; }
:root[data-theme="light"][data-accent="rose"]    { --accent: #B4234A; --contour-hi: 190, 50, 85; }
:root[data-theme="light"][data-accent="snow"]    { --accent: #0B1230; --contour-hi: 60, 70, 120; }

.accent-rail { display: flex; flex-direction: column; gap: 0.55rem; padding: 0.6rem; border-radius: 99px; background: color-mix(in srgb, var(--bg) 55%, transparent); border: 1px solid var(--line); backdrop-filter: blur(8px); }
.hero-rail { position: absolute; left: clamp(0.6rem, 1.2vw, 1.4rem); top: 50%; transform: translateY(-50%); z-index: 3; }
.panel-rail { flex-direction: row; padding: 0.3rem; background: transparent; backdrop-filter: none; }
.swatch { width: 1.1rem; height: 1.1rem; border-radius: 50%; border: 2px solid transparent; box-shadow: 0 0 0 1px var(--line-strong); transition: transform .35s var(--ease-out), box-shadow .3s; }
.swatch:hover { transform: scale(1.2); }
.swatch[aria-checked="true"] { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--text); transform: scale(1.1); }
.swatch--dawn { background: #F5B971; } .swatch--glacier { background: #8FB8FF; } .swatch--aurora { background: #6EE7B7; } .swatch--rose { background: #FF8FA3; } .swatch--snow { background: #EEF1F8; }
.a11y-accent { flex-wrap: wrap; }
.hero .hero-inner { padding-left: clamp(0px, 2.2vw, 2.5rem); }

/* button with attached arrow circle */
.btn.has-arrow { padding-right: 0.45rem; gap: 0.9rem; }
.b-arr { width: 2.35rem; height: 2.35rem; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, currentColor 14%, transparent); transition: transform .5s var(--ease-out), background-color .3s; }
.btn--sm.has-arrow { padding-right: 0.3rem; } .btn--sm .b-arr { width: 2rem; height: 2rem; }
.b-arr .icon { width: 1rem; height: 1rem; transition: transform .5s var(--ease-out); }
.btn.has-arrow:hover .b-arr { transform: rotate(45deg); }

/* mega menu: list → sub list → feature */
.header-inner { position: relative; }
.has-mega { position: static; }
.mega { top: calc(100% - 4px); left: 50%; width: min(1060px, 96vw); grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 0.8fr); }
.mega-item { grid-template-columns: 2.6rem 1fr auto; }
.mega-item .mi-chev { width: 1rem; height: 1rem; transform: rotate(-90deg); opacity: 0; transition: opacity .25s, transform .35s var(--ease-out); }
.mega-item.is-active { background: rgba(154,165,196,0.1); }
.mega-item.is-active .mi-chev { opacity: 1; transform: rotate(-90deg) translateY(3px); }
.mega-subs { position: relative; border-left: 1px solid var(--line); padding: 0.6rem 0.8rem 0.6rem 1.2rem; }
.mega-sub { display: none; }
.mega-sub.is-active { display: grid; gap: 0.6rem; animation: subIn .45s var(--ease-out); }
@keyframes subIn { from { opacity: 0; transform: translateX(10px); } to { opacity: 1; transform: none; } }
.mega-sub-h { font-size: var(--fs-xs); color: var(--text-muted); }
.mega-sub ul { display: grid; gap: 0.15rem; }
.mega-sub li a { display: flex; align-items: center; gap: 0.6rem; padding: 0.45rem 0.4rem; border-radius: 8px; font-size: var(--fs-sm); transition: background-color .2s, color .2s, padding .3s var(--ease-out); }
.mega-sub li a .icon { width: 0.9rem; height: 0.9rem; color: var(--text-muted); transition: color .2s, transform .35s var(--ease-out); }
.mega-sub li a:hover { background: rgba(154,165,196,0.08); padding-left: 0.7rem; }
.mega-sub li a:hover .icon { color: var(--accent); transform: rotate(45deg); }
.mega-sub .text-link { margin-top: 0.4rem; font-size: var(--fs-sm); }

/* ---------- page transition ---------- */
.pt { position: fixed; inset: 0; z-index: 400; pointer-events: none; background: var(--bg-sunk); display: grid; place-items: center; clip-path: inset(100% 0 0 0); }
.pt-inner { display: grid; justify-items: center; gap: 1.2rem; color: var(--text); opacity: 0; transition: opacity .25s; }
.pt .brand-mark { width: 56px; height: 56px; }
.pt-bar { width: 120px; height: 2px; background: var(--line-strong); position: relative; overflow: hidden; border-radius: 2px; }
.pt-bar::after { content: ""; position: absolute; inset: 0; background: var(--accent); transform: scaleX(0); transform-origin: left; }
html.pt-leave .pt { pointer-events: auto; clip-path: inset(0 0 0 0); transition: clip-path .55s var(--ease-io); }
html.pt-leave .pt-inner { opacity: 1; transition-delay: .2s; }
html.pt-leave .pt-bar::after { transform: scaleX(0.8); transition: transform 1.2s var(--ease-out) .25s; }
html.pt-in .pt { clip-path: inset(0 0 0 0); }
html.pt-in .pt-inner { opacity: 1; }
html.pt-in .pt-bar::after { transform: scaleX(1); }
html.pt-out .pt { clip-path: inset(0 0 100% 0); transition: clip-path .7s var(--ease-io) .05s; }
html.pt-out .pt-inner { opacity: 0; transition: opacity .2s; }
html.pt-out .pt-bar::after { transform: scaleX(1); }

/* ---------- zoom intro (pinned) ---------- */
.zoom { position: relative; height: 330vh; }
.zoom-pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: grid; place-items: center; }
.zoom-stage { text-align: center; }
.zoom-text {
  will-change: opacity;
  font-family: var(--font-display); font-weight: 400; font-size: clamp(1.6rem, 0.9rem + 3vw, 3.7rem);
  line-height: 1.22; letter-spacing: -0.03em; max-width: 22ch; margin-inline: auto;
  transition: opacity .2s linear, filter .2s linear;
}
.zoom-text .w { display: inline-block; opacity: 0.1; transform: translateY(0.25em); filter: blur(4px); transition: opacity .45s var(--ease-out), transform .6s var(--ease-out), filter .45s; }
.zoom-text .w.on { opacity: 1; transform: none; filter: none; }
.zchip { display: inline-block; vertical-align: middle; width: 2.1em; height: 1.05em; border-radius: 0.24em; overflow: hidden; margin: 0 0.06em; background: var(--bg-raised); border: 1px solid var(--line-strong); transform: translateY(-0.06em); }
.zchip img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.zchip--target { width: 2.8em; background: var(--bg-sunk); border-color: transparent; }
.zoom-media { position: absolute; inset: 0; z-index: 2; background: var(--bg-sunk); clip-path: inset(50% 50% 50% 50% round 12px); opacity: 0; will-change: clip-path; }
.zoom-media canvas { width: 100%; height: 100%; }
.zoom-media::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 30% 60%, transparent, color-mix(in srgb, var(--bg-sunk) 70%, transparent)); }
.zoom-over { position: absolute; inset: 0; z-index: 3; display: flex; align-items: center; opacity: 0; pointer-events: none; will-change: opacity, transform; }
.zoom-over.is-on { pointer-events: auto; }
.zoom-over-inner { display: grid; gap: 2rem; }
.zoom-over h2 { max-width: 18ch; }
.zoom-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem clamp(2rem, 4vw, 4rem); max-width: 980px; }
.zoom-cols p { color: var(--text-muted); font-size: var(--fs-md); line-height: 1.6; }
.zoom-over .btn-row { gap: 1.5rem; }

/* ---------- project showcase accordion (pinned) ---------- */
.showcase { position: relative; height: calc(var(--n) * 70vh + 100vh); }
.showcase-pin { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; align-items: center; padding-top: 70px; overflow: hidden; }
.showcase-pin > .wrap { display: grid; gap: clamp(1.2rem, 2.5vh, 2rem); }
.showcase-head { display: flex; justify-content: space-between; align-items: end; gap: 2rem; flex-wrap: wrap; }
.showcase-head .lede { max-width: 38ch; }
.acc { display: flex; gap: 10px; height: clamp(420px, 60vh, 620px); }
.acc-item {
  position: relative; flex: 0 0 68px; min-width: 0; overflow: hidden; border-radius: var(--r-panel);
  background: color-mix(in srgb, var(--ridge) calc(100% - var(--k) * 13%), var(--deep));
  border: 1px solid var(--line);
  transition: flex-basis .9s var(--ease-io), flex-grow .9s var(--ease-io), background-color .5s, transform .5s var(--ease-out);
}
:root[data-theme="light"] .acc-item { background: color-mix(in srgb, #C9D0E6 calc(100% - var(--k) * 10%), #F7F8FC); }
.acc-item:not(.is-active):hover { transform: translateY(-6px); }
.acc-item.is-active { flex: 1 1 auto; background: var(--bg-raised); border-color: var(--line-strong); }
.acc-item::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .9s var(--ease-io) .2s; }
.acc-item.is-active::before { transform: scaleX(1); }
.acc-tab {
  position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 0.9rem;
  padding: 1.3rem 0; color: var(--text); transition: opacity .35s;
}
.acc-tab-num { font-family: var(--font-display); font-size: var(--fs-xs); color: var(--accent); }
.acc-tab-name { writing-mode: vertical-rl; transform: rotate(180deg); font-weight: 600; font-size: var(--fs-sm); white-space: nowrap; }
.acc-item.is-active .acc-tab { opacity: 0; pointer-events: none; }
.acc-panel {
  position: absolute; inset: 0; display: grid; grid-template-columns: minmax(300px, 0.9fr) minmax(320px, 1.1fr); gap: clamp(1.5rem, 3vw, 3rem);
  padding: clamp(1.6rem, 3vw, 2.8rem); min-width: 720px; opacity: 0; visibility: hidden; transform: translateX(24px);
  transition: opacity .3s, transform .6s var(--ease-out), visibility .3s;
}
.acc-item.is-active .acc-panel { opacity: 1; visibility: visible; transform: none; transition: opacity .6s .45s, transform .9s var(--ease-out) .4s, visibility 0s .4s; }
.acc-info { display: flex; flex-direction: column; gap: 0.9rem; min-width: 0; }
.acc-num { font-family: var(--font-display); font-size: clamp(3rem, 2rem + 4vw, 6rem); line-height: 0.85; letter-spacing: -0.05em; color: var(--accent); }
.acc-info h3 { font-size: var(--fs-xl); margin-top: 0.4rem; }
.acc-info h3 a { display: inline-flex; align-items: center; gap: 0.5rem; }
.acc-info h3 .icon { width: 0.8em; height: 0.8em; color: var(--accent); transition: transform .5s var(--ease-out); }
.acc-info h3 a:hover .icon { transform: rotate(45deg); }
.acc-type { font-weight: 600; font-size: var(--fs-sm); }
.acc-sum { color: var(--text-muted); max-width: 46ch; }
.acc-info .btn-row { margin-top: auto; gap: 1.2rem; }
.acc-side { display: grid; grid-template-rows: auto 1fr; gap: 1.2rem; min-width: 0; }
.acc-shot { display: block; border-radius: var(--r-media); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); aspect-ratio: 16/9; transform: rotate(-1.5deg) translateY(12px); transition: transform 1.1s var(--ease-out) .5s; }
.acc-item.is-active .acc-shot { transform: rotate(-1.5deg); }
.acc-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 1.2s var(--ease-out); }
.acc-shot:hover img { transform: scale(1.04); }
.acc-meta { display: grid; align-content: end; }
.acc-meta div { display: grid; grid-template-columns: 6rem 1fr; gap: 1rem; padding: 0.55rem 0; border-top: 1px solid var(--line); font-size: var(--fs-xs); }
.acc-meta dt { color: var(--text-muted); }
.acc-meta dd { margin: 0; font-weight: 600; }
.showcase-foot { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; color: var(--text-muted); font-size: var(--fs-sm); }

/* ---------- trust deck (pinned, curtain opens) ---------- */
.deck { position: relative; height: calc(var(--n) * 60vh + 140vh); }
.deck-pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.deck-stage { position: absolute; inset: 0; display: grid; place-items: center; background: radial-gradient(ellipse at 50% 40%, color-mix(in srgb, var(--text) 9%, var(--bg-sunk)), var(--bg-sunk) 70%); }
.deck-cards { position: relative; width: min(420px, 86vw); height: min(460px, 62vh); perspective: 1400px; }
.deck-card {
  position: absolute; inset: 0; border-radius: var(--r-panel); padding: clamp(1.4rem, 1rem + 1.5vw, 2.2rem);
  background: var(--snow); color: var(--night); box-shadow: 0 40px 80px -40px rgba(2,4,16,.65), 0 2px 0 rgba(255,255,255,.4) inset;
  display: flex; flex-direction: column; will-change: transform, opacity; transform-origin: 50% 110%;
}
.deck-card--dark { background: linear-gradient(160deg, #1B2550, #0E1534); color: var(--snow); }
.deck-card--cta { background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 22%, #121A40), #0B1230); color: var(--snow); text-align: center; }
.deck-dots { display: flex; gap: 4px; align-self: flex-end; }
.deck-dots i { width: 6px; height: 4px; border-radius: 2px; background: currentColor; opacity: .25; }
.deck-dots i.on { width: 18px; opacity: .9; }
.deck-body { display: flex; flex-direction: column; gap: 1rem; flex: 1; margin: 0; }
.deck-card--cta .deck-body { justify-content: center; align-items: center; }
.deck-ico { width: 3rem; height: 3rem; border-radius: 14px; display: grid; place-items: center; background: color-mix(in srgb, currentColor 8%, transparent); margin-top: 0.4rem; }
.deck-card:not(.deck-card--dark):not(.deck-card--cta) .deck-ico { color: #B8641C; }
.deck-card--dark .deck-ico { color: var(--accent); }
.deck-body h3 { font-size: var(--fs-lg); line-height: 1.15; }
.deck-body p { opacity: .72; font-size: var(--fs-base); }
.deck-q { font-family: var(--font-display); font-size: 3rem; line-height: .6; opacity: .5; }
.deck-body footer { margin-top: auto; display: grid; gap: .15rem; font-size: var(--fs-sm); padding-top: 1rem; border-top: 1px solid color-mix(in srgb, currentColor 14%, transparent); }
.deck-body footer span { opacity: .6; }
.deck-curtain { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.deck-half { position: absolute; top: 0; bottom: 0; width: 50%; overflow: hidden; will-change: transform;
  background: radial-gradient(ellipse 60% 70% at 50% 0%, color-mix(in srgb, var(--accent) 38%, var(--night)) 0%, var(--night) 70%); background-size: 200% 100%; }
.deck-half--l { left: 0; background-position: left top; }
.deck-half--r { right: 0; background-position: right top; }
.deck-title { position: absolute; top: 0; bottom: 0; width: 200%; display: grid; place-content: center; text-align: center; gap: 1rem; padding: 0 var(--gutter); color: var(--snow); }
.deck-half--r .deck-title { left: -100%; }
.deck-h { font-family: var(--font-display); font-weight: 500; font-size: var(--fs-2xl); letter-spacing: -0.03em; line-height: 1.05; margin: 0; }
.deck-sub { color: color-mix(in srgb, var(--snow) 70%, transparent); max-width: 46ch; margin-inline: auto; font-size: var(--fs-md); }
.deck-seam { position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; margin-left: -1px; z-index: 2; background: linear-gradient(transparent, rgba(255,255,255,.9), transparent); transform: scaleY(0); box-shadow: 0 0 30px 6px rgba(255,255,255,.35); }

/* ---------- CTA words fill ---------- */
.fill-words .w { color: color-mix(in srgb, var(--text) 25%, transparent); transition: color .4s linear; }
.fill-words .w.on { color: var(--text); }
.fill-words .w.hot { color: var(--accent); }

/* ---------- work filter ---------- */
.work-filter { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2.5rem; }
.wf-btn { padding: 0.6rem 1.1rem; border-radius: 99px; border: 1px solid var(--line-strong); font-size: var(--fs-sm); font-weight: 600; transition: background-color .3s, color .3s, border-color .3s; }
.wf-btn span { color: var(--text-muted); font-weight: 500; margin-left: .2rem; }
.wf-btn:hover { border-color: var(--text); }
.wf-btn[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.wf-btn[aria-pressed="true"] span { color: inherit; opacity: .6; }
.work-grid--filter .work-card { transition: opacity .35s var(--ease-out), transform .5s var(--ease-out); }
.work-grid--filter .work-card.is-out { opacity: 0; transform: scale(.96) translateY(10px); }
.work-grid--filter .work-card.is-gone { display: none; }
.work-grid--filter.is-filtered .work-card { grid-column: span 6 !important; margin-top: 0 !important; }

/* ---------- static mode (reduced motion / stop animations) ---------- */
.is-static .zoom, .is-static .showcase, .is-static .deck { height: auto; }
.is-static .zoom-pin, .is-static .showcase-pin, .is-static .deck-pin { position: relative; height: auto; overflow: visible; }
.is-static .zoom-pin { display: block; padding-block: var(--section); }
.is-static .zoom-text .w { opacity: 1; transform: none; filter: none; }
.is-static .zoom-media { position: relative; clip-path: none; opacity: 1; height: 50vh; margin: 3rem var(--gutter) 0; border-radius: var(--r-panel); overflow: hidden; }
.is-static .zoom-over { position: relative; opacity: 1; pointer-events: auto; margin-top: 3rem; }
.is-static .showcase-pin { padding-block: var(--section); }
.is-static .deck-pin { padding-block: var(--section); background: var(--bg-sunk); }
.is-static .deck-stage { position: relative; background: none; }
.is-static .deck-cards { width: auto; height: auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; padding: 0 var(--gutter); max-width: var(--maxw); margin-inline: auto; perspective: none; }
.is-static .deck-card { position: relative; inset: auto; min-height: 280px; transform: none !important; opacity: 1 !important; }
.is-static .deck-curtain { position: relative; order: -1; }
.is-static .deck-pin { display: flex; flex-direction: column-reverse; }
.is-static .deck-half { position: relative; width: 100%; background: none; }
.is-static .deck-half--r, .is-static .deck-seam { display: none; }
.is-static .deck-title { position: relative; width: 100%; color: var(--text); padding-bottom: 2.5rem; }
.is-static .deck-sub { color: var(--text-muted); }

/* ---------- responsive for v2 ---------- */
@media (max-width: 1199px) {
  .showcase { height: auto; }
  .showcase-pin { position: relative; height: auto; overflow: visible; padding-block: var(--section); }
  .acc { flex-direction: column; height: auto; gap: 8px; }
  .acc-item { flex: none; }
  .acc-item:not(.is-active):hover { transform: none; }
  .acc-tab { position: relative; inset: auto; flex-direction: row; justify-content: flex-start; padding: 1.1rem 1.3rem; gap: 1rem; min-height: 64px; }
  .acc-tab-name { writing-mode: horizontal-tb; transform: none; white-space: normal; text-align: left; }
  .acc-item.is-active .acc-tab { display: none; }
  .acc-panel { position: relative; inset: auto; min-width: 0; display: none; grid-template-columns: 1fr; }
  .acc-item.is-active .acc-panel { display: grid; }
  .acc-num { font-size: 3rem; }
  .acc-shot { transform: none !important; }
  .mega { grid-template-columns: 1fr 1fr; }
  .mega-feature { display: none; }
}
@media (max-width: 820px) {
  .zoom-cols { grid-template-columns: 1fr; }
  .zoom-cols p { font-size: var(--fs-base); }
  .zoom { height: 280vh; }
  .work-grid--filter.is-filtered .work-card { grid-column: 1 / -1 !important; }
}
@media (max-width: 600px) {
  .hero-rail { display: none; }
  .hero .hero-inner { padding-left: 0; }
  .zoom-over-inner { gap: 1.2rem; }
  .zoom-over h2 { font-size: clamp(1.8rem, 8vw, 2.4rem); }
  .zoom-cols p:nth-child(2) { display: none; }
  .deck-cards { height: min(440px, 64vh); }
  .deck-h { font-size: clamp(1.9rem, 8vw, 2.6rem); }
  .btn.has-arrow { padding-right: 0.35rem; }
}

/* v2 refinements */
.zoom-media { background: radial-gradient(ellipse 70% 80% at var(--cx, 62%) var(--cy, 38%), color-mix(in srgb, var(--accent) 34%, var(--bg-sunk)) 0%, var(--bg-sunk) 62%); }
.zoom-media canvas { position: absolute; inset: 0; }
.acc-info h3 { font-size: var(--fs-lg); line-height: 1.12; }
@media (min-width: 1200px) { .acc-panel { grid-template-columns: minmax(280px, 0.85fr) minmax(340px, 1.15fr); } }
@media (min-width: 700px) and (max-width: 1199px) { .acc-panel { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
@media (max-width: 699px) { .acc-panel { grid-template-columns: minmax(0, 1fr); padding: 1.3rem; } .acc-side { grid-template-rows: auto; } .acc-meta div { grid-template-columns: 5.5rem 1fr; } }

.swatch { width: 1.6rem; height: 1.6rem; padding: 4px; background-clip: content-box; }
.accent-rail { gap: 0.2rem; padding: 0.35rem; }

/* =========================================================
   v3 — hero image, vertical banner, theme switch, panels
   ========================================================= */
:root { --page-bg: var(--bg); }

/* hero: photographic background, always on a night palette */
.hero { --text: #EEF1F8; --text-muted: #B4BCD6; --line: rgba(238,241,248,.18); --line-strong: rgba(238,241,248,.36); --bg: #0B1230; color: var(--text); background: #0B1230; }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 70%; transform: scale(1.06); animation: heroDrift 26s var(--ease-io) infinite alternate; }
@keyframes heroDrift { to { transform: scale(1.12) translate3d(-1.2%, -1%, 0); } }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8,12,36,.88) 0%, rgba(8,12,36,.55) 42%, rgba(8,12,36,.08) 75%), linear-gradient(to bottom, rgba(8,12,36,.55), transparent 30%); }
.hero-canvas { z-index: 1; opacity: .5; mix-blend-mode: screen; }
.hero::after { background: linear-gradient(to top, var(--page-bg), transparent); height: 22%; z-index: 1; }
.hero-inner { z-index: 3; }
.hero-foot { grid-template-columns: minmax(0, 1fr); max-width: 760px; }
.hero-foot .btn-row { margin-top: .4rem; }
.has-dark-hero .site-header:not(.is-solid) { --text: #EEF1F8; --text-muted: #C3CAE0; color: #EEF1F8; }
.has-dark-hero .site-header:not(.is-solid) .tool-btn { border-color: rgba(238,241,248,.3); }

/* vertical service banner */
.hero-strip { position: absolute; top: 0; bottom: 0; right: clamp(5.5rem, 10vw, 11rem); width: 62px; z-index: 2; overflow: hidden;
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 92%, #000), color-mix(in srgb, var(--accent) 70%, #0B1230));
  color: #1A1206; box-shadow: 0 0 60px -10px color-mix(in srgb, var(--accent) 60%, transparent); }
:root[data-accent="snow"] .hero-strip, :root[data-theme="light"][data-accent="snow"] .hero-strip { color: #0B1230; }
.hero-strip-track { display: flex; flex-direction: column; align-items: center; animation: stripUp 34s linear infinite; }
.hero-strip:hover .hero-strip-track { animation-play-state: paused; }
.hero-strip span { writing-mode: vertical-rl; display: flex; align-items: center; gap: 1.4rem; padding: 1.4rem 0; font-family: var(--font-display); font-size: 1.15rem; font-weight: 500; letter-spacing: -0.01em; white-space: nowrap; }
.hero-strip i { display: grid; place-items: center; }
.hero-strip .brand-mark { width: 22px; height: 22px; }
.hero-strip .brand-mark .peak-hi { stroke: currentColor; }
@keyframes stripUp { to { transform: translateY(-50%); } }
@media (min-width: 821px) { .hero .ticker { display: none; } }
@media (max-width: 820px) { .hero-strip { display: none; } }

/* theme switch: vertical sun/moon pill, bottom-left */
.theme-pill { position: fixed; z-index: 90; left: calc(clamp(.6rem, 1.2vw, 1.2rem) + env(safe-area-inset-left, 0px)); bottom: calc(clamp(.8rem, 2vw, 1.5rem) + env(safe-area-inset-bottom, 0px));
  display: flex; flex-direction: column; gap: 6px; padding: 5px; border-radius: 99px;
  background: color-mix(in srgb, var(--bg-raised) 88%, transparent); border: 1px solid var(--line-strong); box-shadow: var(--shadow); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.theme-pill::before { content: ""; position: absolute; left: 5px; top: 5px; width: 2.5rem; height: 2.5rem; border-radius: 50%; background: var(--bg); box-shadow: 0 6px 16px -6px rgba(2,4,16,.6), 0 0 0 1px var(--line); transition: transform .55s var(--ease-out); }
.theme-pill[data-on="dark"]::before { transform: translateY(calc(2.5rem + 6px)); }
.theme-pill button { position: relative; z-index: 1; width: 2.5rem; height: 2.5rem; border-radius: 50%; display: grid; place-items: center; color: var(--text-muted); transition: color .3s, transform .4s var(--ease-out); }
.theme-pill button:hover { color: var(--text); transform: rotate(-12deg); }
.theme-pill button[aria-pressed="true"] { color: var(--accent); }
.theme-pill .icon { width: 1.1rem; height: 1.1rem; }
body.menu-open .theme-pill { opacity: 0; pointer-events: none; }
@media (max-width: 600px) { .theme-pill button, .theme-pill::before { width: 2.2rem; height: 2.2rem; } .theme-pill[data-on="dark"]::before { transform: translateY(calc(2.2rem + 6px)); } }

/* dock */
.dock-btn { position: relative; }
.dock-chat { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); width: 3.6rem; height: 3.6rem; }
.dock-chat::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--accent); opacity: 0; animation: ringPulse 3.2s var(--ease-out) infinite 2s; }
@keyframes ringPulse { 0% { opacity: .55; transform: scale(.9); } 70%, 100% { opacity: 0; transform: scale(1.35); } }
.dock-chat-i { display: grid; place-items: center; transition: transform .45s var(--ease-out), opacity .3s; }
.dock-chat-i--close { position: absolute; inset: 0; opacity: 0; transform: rotate(-90deg) scale(.6); }
.dock-chat.is-active .dock-chat-i--open { opacity: 0; transform: rotate(90deg) scale(.6); }
.dock-chat.is-active .dock-chat-i--close { opacity: 1; transform: none; }
.dock-chat.is-active::after { animation: none; }
.dock-a11y.is-active { background: var(--text); color: var(--bg); }
.dock-badge { position: absolute; top: -4px; right: -4px; min-width: 1.25rem; height: 1.25rem; padding: 0 .3rem; border-radius: 99px; background: var(--accent); color: var(--accent-ink); font-size: .7rem; font-weight: 700; display: grid; place-items: center; }

/* shared panel shell */
.w-panel.a11y-panel, .w-panel { position: fixed; z-index: 95; right: calc(clamp(.8rem, 2vw, 1.5rem) + env(safe-area-inset-right, 0px)); bottom: calc(clamp(.8rem, 2vw, 1.5rem) + 4.4rem + env(safe-area-inset-bottom, 0px));
  width: min(440px, calc(100vw - 1.6rem)); max-height: min(760px, calc(100svh - 7.5rem)); padding: 0; display: flex; flex-direction: column;
  background: var(--bg-raised); border: 1px solid var(--line-strong); border-radius: 26px; box-shadow: 0 40px 90px -30px rgba(2,4,16,.75), 0 0 0 1px rgba(255,255,255,.02) inset;
  opacity: 0; visibility: hidden; transform: translateY(14px) scale(.97); transform-origin: 100% 100%; transition: opacity .3s var(--ease-out), transform .45s var(--ease-out), visibility .3s; overflow: hidden; }
.w-panel.is-open { opacity: 1; visibility: visible; transform: none; }
.wp-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: .9rem; align-items: center; padding: 1.1rem 1.2rem; border-bottom: 1px solid var(--line); }
.wp-head h2 { font-family: var(--font-body); font-size: 1.08rem; font-weight: 700; letter-spacing: 0; margin: 0; }
.wp-head p { color: var(--text-muted); font-size: var(--fs-xs); margin-top: .15rem; }
.wp-badge { width: 2.7rem; height: 2.7rem; border-radius: 14px; display: grid; place-items: center; color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent); }
.wp-close { width: 2.7rem; height: 2.7rem; border-radius: 50%; display: grid; place-items: center; background: var(--text); color: var(--bg); transition: transform .4s var(--ease-out); }
.wp-close:hover { transform: rotate(90deg); }
.wp-body { overflow-y: auto; overscroll-behavior: contain; padding: 1.2rem; display: grid; gap: 1.6rem; scrollbar-width: thin; }
.wp-foot { padding: .9rem 1.2rem; border-top: 1px solid var(--line); background: var(--bg-raised); }

/* accessibility panel contents */
.a11y-group { display: grid; gap: .75rem; }
.a11y-gh { display: flex; justify-content: space-between; align-items: center; font-size: var(--fs-xs); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); }
.a11y-gh span { display: inline-flex; align-items: center; gap: .5rem; }
.a11y-gh .icon { width: 1rem; height: 1rem; }
.a11y-gh em { font-style: normal; text-transform: none; letter-spacing: 0; font-weight: 500; }
.a11y-segs { display: grid; gap: .5rem; }
.a11y-segs--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.a11y-segs--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.a11y-seg { min-height: 3.1rem; border-radius: 14px; display: grid; place-items: center; background: var(--bg-sunk); border: 1px solid var(--line); font-family: var(--font-display); font-weight: 500; transition: background-color .25s, color .25s, border-color .25s, transform .3s var(--ease-out); }
.a11y-seg:hover { border-color: var(--line-strong); transform: translateY(-1px); }
.a11y-seg[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); box-shadow: 0 10px 24px -12px var(--accent); }
.a11y-seg .icon { width: 1.15rem; height: 1.15rem; }
.a11y-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
.a11y-card { position: relative; display: grid; gap: .25rem; justify-items: start; text-align: left; padding: 1rem; border-radius: 18px; background: var(--bg-sunk); border: 1px solid var(--line); transition: border-color .25s, background-color .25s, transform .35s var(--ease-out); }
.a11y-card:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.a11y-card .a11y-ico { width: 2.3rem; height: 2.3rem; border-radius: 11px; display: grid; place-items: center; background: var(--bg-raised); border: 1px solid var(--line); margin-bottom: .55rem; transition: background-color .25s, color .25s; }
.a11y-card .a11y-ico .icon { width: 1.05rem; height: 1.05rem; }
.a11y-card strong { font-size: var(--fs-sm); font-weight: 650; line-height: 1.25; }
.a11y-card small { font-size: var(--fs-xs); color: var(--text-muted); line-height: 1.35; }
.a11y-tick { position: absolute; top: .8rem; right: .8rem; width: 1.35rem; height: 1.35rem; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); opacity: 0; transform: scale(.5); transition: opacity .25s, transform .4s var(--ease-out); }
.a11y-tick .icon { width: .8rem; height: .8rem; stroke-width: 3; }
.a11y-card[aria-pressed="true"] { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, var(--bg-sunk)); }
.a11y-card[aria-pressed="true"] .a11y-ico { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.a11y-card[aria-pressed="true"] .a11y-tick { opacity: 1; transform: none; }
.panel-rail { flex-direction: row; justify-content: flex-start; gap: .5rem; padding: 0; border: 0; background: none; }
.a11y-reset { width: 100%; min-height: 3.1rem; border-radius: 16px; display: flex; align-items: center; justify-content: center; gap: .6rem; background: var(--bg-sunk); border: 1px solid var(--line-strong); font-weight: 650; font-size: var(--fs-sm); color: var(--text); transition: background-color .25s, color .25s; }
.a11y-reset:hover { background: var(--text); color: var(--bg); }
.a11y-reset .icon { width: 1.1rem; height: 1.1rem; transition: transform .6s var(--ease-out); }
.a11y-reset:hover .icon { transform: rotate(-200deg); }

/* chat panel contents */
.wp-head--chat { grid-template-columns: auto minmax(0, 1fr) auto; }
.chat-online { width: .7rem; height: .7rem; border-radius: 50%; background: #3DDC97; box-shadow: 0 0 0 4px rgba(61,220,151,.18); animation: onlinePulse 2.4s ease-in-out infinite; }
@keyframes onlinePulse { 50% { box-shadow: 0 0 0 7px rgba(61,220,151,.05); } }
.chat-view { display: grid; gap: .9rem; animation: chatIn .45s var(--ease-out); }
@keyframes chatIn { from { opacity: 0; transform: translateX(12px); } to { opacity: 1; transform: none; } }
.chat-q { font-family: var(--font-display); font-size: var(--fs-lg); letter-spacing: -.02em; line-height: 1.15; }
.chat-sub { color: var(--text-muted); margin-top: -.4rem; }
.chat-opts { display: grid; gap: .6rem; margin-top: .3rem; }
.chat-opt { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: .9rem; align-items: center; text-align: left; padding: .95rem 1rem; border-radius: 18px; border: 1px solid var(--line); background: var(--bg-sunk); color: var(--text); transition: border-color .25s, transform .35s var(--ease-out), background-color .25s; }
.chat-opt:hover { border-color: var(--line-strong); transform: translateX(-3px); }
.chat-opt strong { display: block; font-size: var(--fs-sm); font-weight: 650; }
.chat-opt small { display: block; font-size: var(--fs-xs); color: var(--text-muted); overflow-wrap: anywhere; }
.chat-ico { width: 2.6rem; height: 2.6rem; border-radius: 50%; display: grid; place-items: center; background: var(--bg-raised); border: 1px solid var(--line); }
.chat-ico .icon { width: 1.1rem; height: 1.1rem; }
.chat-opt--primary { background: var(--text); color: var(--bg); border-color: var(--text); }
.chat-opt--primary small { color: color-mix(in srgb, var(--bg) 65%, transparent); }
.chat-opt--primary .chat-ico { background: color-mix(in srgb, var(--bg) 12%, transparent); border-color: transparent; }
.chat-copy { display: inline-flex; align-items: center; gap: .35rem; padding: .45rem .7rem; border-radius: 99px; border: 1px solid var(--line-strong); font-size: var(--fs-xs); font-weight: 600; }
.chat-copy .icon { width: .9rem; height: .9rem; }
.chat-copy:hover { border-color: var(--accent); color: var(--accent); }
.chat-addr { user-select: all; }
.chat-back { justify-self: start; display: inline-flex; align-items: center; gap: .4rem; font-size: var(--fs-sm); color: var(--text-muted); font-weight: 600; }
.chat-back .icon { width: 1rem; height: 1rem; }
.chat-view h3 { font-family: var(--font-display); font-size: var(--fs-lg); font-weight: 500; }
#chat-form { display: grid; gap: .9rem; }
#chat-form textarea.input { min-height: 7rem; }
.chat-done { display: grid; justify-items: center; text-align: center; gap: .8rem; padding: 1.5rem 0; }
.chat-done .ok { width: 3.4rem; height: 3.4rem; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); }
.chat-done p { color: var(--text-muted); }
@media (max-width: 600px) { .w-panel, .w-panel.a11y-panel { right: .5rem; left: .5rem; width: auto; bottom: calc(4.9rem + env(safe-area-inset-bottom, 0px)); max-height: calc(100svh - 6.5rem); } }

/* ---------- accessibility effects ---------- */
:root[data-a11y-font="on"] body, :root[data-a11y-font="on"] body * { font-family: Verdana, Tahoma, "Segoe UI", Arial, sans-serif !important; letter-spacing: normal; }
:root[data-a11y-lh="on"] main p, :root[data-a11y-lh="on"] main li, :root[data-a11y-lh="on"] main dd, :root[data-a11y-lh="on"] footer p { line-height: 2 !important; }
:root[data-a11y-ls="on"] main, :root[data-a11y-ls="on"] footer { letter-spacing: .06em !important; word-spacing: .16em !important; }
:root[data-a11y-ls="on"] main *, :root[data-a11y-ls="on"] footer * { letter-spacing: inherit !important; }
:root[data-a11y-ul="on"] a { text-decoration: underline !important; text-underline-offset: 3px; }
:root[data-a11y-align="left"] main :is(h1,h2,h3,p,li,dd,blockquote) { text-align: left !important; }
:root[data-a11y-align="center"] main :is(h1,h2,h3,p,li,dd,blockquote) { text-align: center !important; }
:root[data-a11y-align="right"] main :is(h1,h2,h3,p,li,dd,blockquote) { text-align: right !important; }
:root[data-a11y-align="justify"] main :is(p,li,dd,blockquote) { text-align: justify !important; }
:root[data-a11y-contrast="on"] { --bg: #000; --bg-raised: #0A0A0A; --bg-sunk: #000; --text: #FFF; --text-muted: #FFF; --line: rgba(255,255,255,.55); --line-strong: #FFF; --accent: #FFD60A; --accent-ink: #000; --link: #7FDBFF; --page-bg: #000; }
:root[data-theme="light"][data-a11y-contrast="on"] { --bg: #FFF; --bg-raised: #FFF; --bg-sunk: #FFF; --text: #000; --text-muted: #000; --line: rgba(0,0,0,.6); --line-strong: #000; --accent: #0033CC; --accent-ink: #FFF; --link: #0033CC; --page-bg: #FFF; }
:root[data-a11y-contrast="on"] .hero-bg img, :root[data-a11y-contrast="on"] .hero-canvas { opacity: .25; }
:root[data-a11y-filtered] :is(main, .site-header, .site-footer) { filter: var(--a11y-filter); }
:root[data-a11y-invert="on"] main img { filter: invert(1) hue-rotate(180deg); }
:root[data-a11y-cursor="on"], :root[data-a11y-cursor="on"] * { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='44' viewBox='0 0 24 24'%3E%3Cpath d='M4.04 4.04a.5.5 0 0 1 .54-.11l16 6.5a.5.5 0 0 1-.04.94l-6.12 1.97a2 2 0 0 0-1.29 1.29l-1.97 6.12a.5.5 0 0 1-.94.04l-6.5-16a.5.5 0 0 1 .11-.54z' fill='%23111' stroke='%23fff' stroke-width='1.5'/%3E%3C/svg%3E") 6 6, auto !important; }
:root[data-a11y-focus="on"] :focus, :root[data-a11y-focus="on"] :focus-visible { outline: 4px solid #FFD60A !important; outline-offset: 3px !important; box-shadow: 0 0 0 8px rgba(0,0,0,.85) !important; border-radius: 8px; }
:root[data-a11y-links="on"] :is(main, footer, .site-header) a { outline: 2px dashed var(--accent); outline-offset: 3px; text-decoration: underline !important; text-underline-offset: 3px; }
:root[data-a11y-headings="on"] main :is(h1, h2, h3) { outline: 2px solid var(--accent); outline-offset: 8px; border-radius: 6px; }
:root[data-a11y-hideimg="on"] :is(main img, .hero-bg, .hero-canvas, main canvas, .zoom-media, .zchip, .acc-shot, .art) { visibility: hidden !important; }
.reading-guide { position: fixed; left: 0; right: 0; top: 0; height: 36px; z-index: 300; pointer-events: none; border-top: 2px solid var(--accent); border-bottom: 2px solid var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); box-shadow: 0 0 0 100vmax rgba(2,4,16,.32); }
.w-panel, .w-panel.a11y-panel { z-index: 120; }
@media (max-width: 600px) { .w-panel, .w-panel.a11y-panel { max-height: calc(100svh - 6.5rem - env(safe-area-inset-top, 0px)); } }
.hero .hero-inner { padding-left: calc(var(--gutter) + clamp(0px, 2.2vw, 2.5rem)); }
:root[data-theme="light"] .hero::after { display: none; }
@media (max-width: 600px) { .hero .hero-inner { padding-left: var(--gutter); } .theme-pill { display: none; } }

/* v3.1 hero fixes: headline size with the real display font; banner clears the header */
.hero h1.h-display { font-size: clamp(2.3rem, 0.8rem + 4vw, 4.8rem); max-width: 15ch; line-height: 1.02; }
.hero-strip { top: 76px; border-radius: 0 0 0 0; }
@media (max-width: 600px) { .hero h1.h-display { font-size: clamp(2.1rem, 9.5vw, 2.8rem); } }

/* =========================================================
   v4 — logo, credentials, letter pop-in, accent everywhere
   ========================================================= */
:root { --link: var(--accent); }
:root[data-theme="light"] { --link: var(--accent); }

/* brand logo tile */
.brand-logo { width: 44px; height: 44px; border-radius: 12px; object-fit: cover; box-shadow: 0 6px 18px -8px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.08); }
.site-footer .brand-logo { width: 56px; height: 56px; border-radius: 14px; }
.pt-logo { width: 84px; height: 84px; border-radius: 22px; box-shadow: 0 20px 50px -20px rgba(0,0,0,.8); }
.founder-logo { position: relative; width: min(72%, 300px); border-radius: 22px; box-shadow: 0 30px 70px -30px rgba(0,0,0,.8); align-self: center; margin-top: auto; }

/* header over the dark hero: only the bar's own links turn light, not the dropdown */
:root[data-theme="light"] .has-dark-hero .site-header:not(.is-solid) { --text: #0B1230; --text-muted: #4B5578; color: #0B1230; }
.has-dark-hero .site-header:not(.is-solid) > .header-inner > .brand,
.has-dark-hero .site-header:not(.is-solid) .main-nav > ul > li > .nav-link,
.has-dark-hero .site-header:not(.is-solid) .menu-toggle { color: #EEF1F8; }
.has-dark-hero .site-header:not(.is-solid) .brand small { color: #C3CAE0; }
.has-dark-hero .site-header:not(.is-solid) .main-nav > ul > li > .nav-link { color: #D5DBEC; }
.has-dark-hero .site-header:not(.is-solid) .main-nav > ul > li > .nav-link:hover,
.has-dark-hero .site-header:not(.is-solid) .main-nav > ul > li > .nav-link[aria-expanded="true"] { color: #fff; background: rgba(238,241,248,.12); }
.has-dark-hero .site-header:not(.is-solid) .menu-toggle { border-color: rgba(238,241,248,.3); }
.mega { color: var(--text); }
.mega-item strong, .mega-sub li a, .mega-feature p { color: var(--text); }

/* intro: letters pop in one by one (no blur) */
.zoom-text .w { opacity: 1; transform: none; filter: none; white-space: nowrap; }
.zoom-text .ch { display: inline-block; opacity: 0; transform: translateY(0.55em) scale(0.4) rotate(-8deg); transition: opacity .28s ease-out, transform .5s cubic-bezier(.34, 1.56, .64, 1); }
.zoom-text .ch.on { opacity: 1; transform: none; }
.zoom-text .zchip { opacity: 0; transform: scale(.3); transition: opacity .3s, transform .55s cubic-bezier(.34, 1.56, .64, 1); }
.zoom-text .zchip.on { opacity: 1; transform: translateY(-0.06em); }
.zoom-text .ch.on:last-child { color: inherit; }
.is-static .zoom-text .ch, .is-static .zoom-text .zchip { opacity: 1; transform: none; }

/* unopened project tabs take the chosen accent */
.acc-item:not(.is-active) { background: color-mix(in srgb, var(--accent) calc(92% - var(--k) * 8%), #0B1230); border-color: transparent; }
:root[data-theme="light"] .acc-item:not(.is-active) { background: color-mix(in srgb, var(--accent) calc(28% + var(--k) * 9%), #FFFFFF); }
.acc-item:not(.is-active) .acc-tab { color: #0B1230; }
.acc-item:not(.is-active) .acc-tab-num { color: #0B1230; opacity: .7; }
:root[data-theme="light"] .acc-item:not(.is-active) .acc-tab { color: #0B1230; }
:root[data-accent="glacier"]:not([data-theme="light"]) .acc-item:not(.is-active) .acc-tab,
:root[data-accent="rose"]:not([data-theme="light"]) .acc-item:not(.is-active) .acc-tab { color: #0B1230; }
.acc-item:not(.is-active):hover { filter: brightness(1.08); }

/* accent touches across the site */
.process { background: color-mix(in srgb, var(--accent) 5%, var(--bg-sunk)); }
.footer-word { -webkit-text-stroke: 1px color-mix(in srgb, var(--accent) 45%, var(--line-strong)); }
.chip:hover { border-color: var(--accent); }
.chip:hover i { background: var(--accent); color: var(--accent-ink); }
.cta { border-color: color-mix(in srgb, var(--accent) 30%, var(--line)); box-shadow: 0 40px 100px -60px var(--accent); }
.wf-btn[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.stack-card { border-top: 2px solid color-mix(in srgb, var(--accent) 55%, transparent); }
.commit .c-ico, .incl .icon, .value .icon { color: var(--accent); }
.svc-card:hover { border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); }
.faq-item.is-open .faq-q { color: var(--accent); }
.hero-meta span::before, .deck-dots i.on { background: var(--accent); }
html { scrollbar-color: color-mix(in srgb, var(--accent) 60%, var(--bg-raised)) var(--bg); }
::selection { background: var(--accent); color: var(--accent-ink); }

/* hero: credentials panel beside the headline */
.hero .hero-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 360px); gap: 2.5rem clamp(2rem, 4vw, 4rem); align-items: end;
  margin-left: max(0px, calc((100vw - var(--maxw)) / 2)); margin-right: auto;
  max-width: min(var(--maxw), calc(100vw - 11.5rem - max(0px, calc((100vw - var(--maxw)) / 2)))); }
.hero-main { min-width: 0; }
.hero-trust { display: grid; gap: .9rem; padding-bottom: .4rem; }
.ht-title { font-family: var(--font-display); font-size: var(--fs-sm); letter-spacing: .01em; color: var(--text); }
.ht-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
.ht-card { display: grid; gap: .3rem; align-content: start; padding: .9rem; border-radius: 18px; color: var(--text);
  background: rgba(11,18,48,.52); border: 1px solid rgba(238,241,248,.16); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  transition: border-color .3s, transform .45s var(--ease-out), background-color .3s; }
a.ht-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.ht-card strong { font-size: var(--fs-sm); font-weight: 650; line-height: 1.25; }
.ht-card span:not(.ht-ico) { font-size: var(--fs-xs); color: var(--text-muted); line-height: 1.4; }
.ht-card--wide { grid-column: 1 / -1; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: .9rem; }
.ht-card--wide > div { display: grid; gap: .2rem; }
.ht-ico { width: 2.1rem; height: 2.1rem; border-radius: 50%; display: grid; place-items: center; background: #fff; color: #0B1230; margin-bottom: .35rem; }
.ht-ico .icon { width: 1rem; height: 1rem; }
.ht-logo { width: 46px; height: 46px; border-radius: 12px; }
.ht-seal { position: relative; display: block; flex: none; width: 64px; height: 64px; }
.ht-seal svg, .ht-seal .s-spin { position: absolute; inset: 0; width: 100%; height: 100%; }
.ht-seal .s-spin { display: block; animation: sealSpin 28s linear infinite; will-change: transform; }
.ht-seal .s-spin svg { position: static; display: block; }
.ht-seal .s-ring { fill: none; stroke: var(--accent); stroke-width: 2; }
.ht-seal .s-core { fill: var(--accent); }
.ht-seal .s-text { fill: var(--text); font: 700 8.6px/1 var(--font-body); letter-spacing: 1.6px; }
.ht-seal .s-check { fill: none; stroke: var(--accent-ink); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
@keyframes sealSpin { to { transform: rotate(360deg); } }
.hero-strip { right: clamp(4.5rem, 6.5vw, 7rem); }
@media (max-width: 1100px) {
  .hero .hero-inner { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .hero-trust { max-width: 560px; }
}
@media (max-width: 820px) { .hero .hero-inner { max-width: none; margin-inline: auto; } }
@media (max-width: 600px) { .ht-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ht-seal { width: 52px; height: 52px; } }
:root[data-theme="light"] .hero .ht-card { background: rgba(11,18,48,.55); }

/* =========================================================
   v5 — hero layout with device mockups, trust row, pacing
   ========================================================= */
/* slower scroll scenes */
.zoom { height: 400vh; }
.showcase { height: calc(var(--n) * 88vh + 100vh); }
.deck { height: calc(var(--n) * 78vh + 160vh); }
.zoom-text .ch { transition: opacity .42s ease-out, transform .75s cubic-bezier(.34, 1.56, .64, 1); }
.zoom-text .zchip { transition: opacity .45s, transform .8s cubic-bezier(.34, 1.56, .64, 1); }
.acc-item { transition: flex-basis 1.15s var(--ease-io), flex-grow 1.15s var(--ease-io), background-color .6s, transform .5s var(--ease-out); }
.acc-item.is-active .acc-panel { transition: opacity .7s .55s, transform 1.1s var(--ease-out) .5s, visibility 0s .5s; }
@media (max-width: 820px) { .zoom { height: 320vh; } }

/* hero grid: text | devices, trust row below */
.hero .hero-inner { grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr); grid-template-areas: "main devices" "trust trust"; align-items: center; gap: 2rem clamp(1.5rem, 3.5vw, 3.5rem); }
.hero-main { grid-area: main; }
.devices { grid-area: devices; }
.hero-trust { grid-area: trust; padding: 0; }
.hero h1.h-display { font-size: clamp(2.2rem, 0.4rem + 3.4vw, 4rem); }
.hero-foot { margin-top: clamp(1.4rem, 2.4vw, 2.2rem); }

/* trust row */
.hero-trust .ht-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .7rem; }
.hero-trust .ht-card { grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: .8rem; padding: .8rem .95rem; }
.hero-trust .ht-card > div { display: grid; gap: .15rem; min-width: 0; }
.hero-trust .ht-ico { margin: 0; width: 2.4rem; height: 2.4rem; }
.hero-trust .ht-seal { width: 46px; height: 46px; }
.hero-trust .ht-logo { width: 42px; height: 42px; }

/* device mockups */
.devices { position: relative; margin: 0; padding: 0 0 2.6rem; justify-self: center; width: 100%; max-width: 560px; animation: dvFloat 7s ease-in-out infinite; }
@keyframes dvFloat { 50% { transform: translateY(-8px); } }
.dv-laptop { position: relative; width: 88%; filter: drop-shadow(0 40px 50px rgba(2,4,16,.6)); }
.dv-lid { position: relative; padding: 3.2% 3.2% 4%; border-radius: 18px 18px 6px 6px; background: linear-gradient(160deg, #2C3140, #0D0F16 60%); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12), inset 0 0 0 4px #05060A; }
.dv-cam { position: absolute; top: 1.2%; left: 50%; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: #1E2533; box-shadow: 0 0 0 1px #2E3546; }
.dv-screen { position: relative; aspect-ratio: 16 / 10; border-radius: 4px; overflow: hidden; background: #0B1230; }
.dv-base { position: relative; height: 0; padding-bottom: 3.4%; margin: 0 -6%; border-radius: 0 0 14px 14px / 0 0 10px 10px; background: linear-gradient(to bottom, #C9CDD6, #8B909C 55%, #5D626D); box-shadow: inset 0 1px 0 rgba(255,255,255,.7); }
.dv-base span { position: absolute; top: 0; left: 50%; width: 15%; height: 42%; margin-left: -7.5%; border-radius: 0 0 8px 8px; background: linear-gradient(to bottom, #9CA1AC, #B8BCC6); }
.dv-phone { position: absolute; right: 0; bottom: 1.4rem; width: 27%; padding: 2.2%; border-radius: 22% / 10.5%; background: linear-gradient(145deg, #5B5E66, #2A2C31 45%, #6C6F77); box-shadow: 0 30px 50px -18px rgba(2,4,16,.75), inset 0 0 0 1px rgba(255,255,255,.25); }
.dv-phone::before, .dv-phone::after { content: ""; position: absolute; width: 3px; border-radius: 2px; background: #4A4D55; }
.dv-phone::before { left: -2px; top: 22%; height: 9%; box-shadow: 0 14px 0 #4A4D55; }
.dv-phone::after { right: -2px; top: 28%; height: 14%; }
.dv-phone-screen { position: relative; aspect-ratio: 440 / 956; border-radius: 19% / 8.8%; overflow: hidden; background: #0B1230; }
.dv-island { position: absolute; z-index: 2; top: 2.2%; left: 50%; width: 32%; height: 3.4%; transform: translateX(-50%); border-radius: 99px; background: #000; }
.dv-scroll { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0%; animation: dvScroll 22s ease-in-out infinite; }
/* scroll the screenshot with a transform (GPU), not object-position (repaints every frame) */
@supports (height: 1cqh) {
  .dv-screen, .dv-phone-screen { container-type: size; }
  .dv-scroll { height: auto; object-fit: fill; animation-name: dvScrollT; will-change: transform; backface-visibility: hidden; }
}
@keyframes dvScrollT { 0%, 8% { transform: translate3d(0, 0, 0); } 46%, 54% { transform: translate3d(0, calc(100cqh - 100%), 0); } 92%, 100% { transform: translate3d(0, 0, 0); } }
.dv-paused .dv-scroll { animation-play-state: paused; }
.dv-scroll--phone { animation-duration: 26s; animation-delay: -3s; }
@keyframes dvScroll { 0%, 8% { object-position: 50% 0%; } 46%, 54% { object-position: 50% 100%; } 92%, 100% { object-position: 50% 0%; } }
.devices:hover .dv-scroll { animation-play-state: paused; }
.devices figcaption { position: absolute; left: 0; bottom: 0; display: flex; flex-wrap: wrap; gap: .4rem .6rem; font-size: var(--fs-xs); color: var(--text-muted); }
.devices figcaption span { padding: .25rem .65rem; border-radius: 99px; border: 1px solid var(--line); background: rgba(11,18,48,.5); }
.devices figcaption span:last-child { border: 0; background: none; padding-left: 0; }
.devices figcaption b { color: var(--accent); font-weight: 700; }
.is-static .devices, .is-static .dv-scroll { animation: none; }

@media (max-width: 1100px) {
  .hero .hero-inner { grid-template-columns: minmax(0, 1fr); grid-template-areas: "main" "devices" "trust"; }
  .devices { max-width: 520px; justify-self: start; }
  .hero-trust .ht-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-trust { max-width: none; }
}
@media (max-width: 600px) {
  .devices { max-width: 100%; padding-bottom: 3.6rem; }
  .devices figcaption span:last-child { flex-basis: 100%; }
  .hero-trust .ht-card { grid-template-columns: minmax(0, 1fr); gap: .5rem; align-items: start; }
}
.is-static .deck-stage { display: block; }
.is-static .deck-cards { width: 100%; box-sizing: border-box; }
@media (min-width: 1101px) { .hero .hero-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
@media (max-width: 1100px) { .hero .hero-inner { grid-template-columns: minmax(0, 1fr); } .devices { max-width: 560px; } }
.devices { padding: 0; display: grid; gap: .9rem; max-width: 600px; }
.dv-stage { position: relative; padding-bottom: 4%; }
.dv-phone { bottom: 0; }
.devices figcaption { position: static; }

/* =========================================================
   v6 — banner on the left edge, wider hero, light hero
   ========================================================= */
.hero-bg img { position: absolute; inset: 0; }
.hero-bg .hb-day { display: none; }
@media (min-width: 821px) {
  .hero-strip { left: 0; right: auto; width: 64px; box-shadow: 10px 0 50px -14px color-mix(in srgb, var(--accent) 55%, transparent); }
  .hero-rail { left: calc(64px + 1rem); }
  .hero .hero-inner { max-width: none; width: 100%; margin: 0;
    padding-left: calc(64px + 4.4rem); padding-right: max(calc(var(--gutter) + 4.4rem), calc((100vw - 1680px) / 2)); }
  body.hero-on .theme-pill { left: calc(64px + 1rem + env(safe-area-inset-left, 0px)); }
  .theme-pill { transition: left .55s var(--ease-out), opacity .3s; }
}
@media (min-width: 1101px) {
  .hero .hero-inner { grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); column-gap: clamp(2rem, 4vw, 5rem); }
  .devices { max-width: 740px; justify-self: end; }
}
.devices::before { content: ""; position: absolute; z-index: -1; inset: 8% 6% 18% 10%; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 38%, transparent), transparent); filter: blur(30px); opacity: .7; }
.devices { isolation: isolate; }

/* light theme: daytime hero */
:root[data-theme="light"] .hero { --text: #0B1230; --text-muted: #3F4A6B; --line: rgba(11,18,48,.14); --line-strong: rgba(11,18,48,.3); --bg: #F2F4FA; background: #E7ECF7; color: #0B1230; }
:root[data-theme="light"] .hero-bg .hb-night { display: none; }
:root[data-theme="light"] .hero-bg .hb-day { display: block; }
:root[data-theme="light"] .hero-bg::after { background: linear-gradient(90deg, rgba(242,244,250,.94) 0%, rgba(242,244,250,.72) 40%, rgba(242,244,250,.12) 78%), linear-gradient(to bottom, rgba(242,244,250,.5), transparent 30%); }
:root[data-theme="light"] .hero-canvas { mix-blend-mode: multiply; opacity: .45; }
:root[data-theme="light"] .hero::after { display: block; }
:root[data-theme="light"] .hero .btn:not(.btn--primary) { border-color: rgba(11,18,48,.3); }
:root[data-theme="light"] .hero .ht-card { background: rgba(255,255,255,.72); border-color: rgba(11,18,48,.1); box-shadow: 0 14px 30px -22px rgba(11,18,48,.5); }
:root[data-theme="light"] .hero .ht-ico { background: #0B1230; color: #fff; }
:root[data-theme="light"] .hero .ht-seal .s-text { fill: #0B1230; }
:root[data-theme="light"] .devices figcaption span { background: rgba(255,255,255,.7); border-color: rgba(11,18,48,.12); }
:root[data-theme="light"] .accent-rail { background: rgba(255,255,255,.6); }
:root[data-theme="light"] .has-dark-hero .site-header:not(.is-solid) > .header-inner > .brand,
:root[data-theme="light"] .has-dark-hero .site-header:not(.is-solid) .menu-toggle { color: #0B1230; }
:root[data-theme="light"] .has-dark-hero .site-header:not(.is-solid) .brand small { color: #4B5578; }
:root[data-theme="light"] .has-dark-hero .site-header:not(.is-solid) .main-nav > ul > li > .nav-link { color: #2A3354; }
:root[data-theme="light"] .has-dark-hero .site-header:not(.is-solid) .main-nav > ul > li > .nav-link:hover,
:root[data-theme="light"] .has-dark-hero .site-header:not(.is-solid) .main-nav > ul > li > .nav-link[aria-expanded="true"] { color: #0B1230; background: rgba(11,18,48,.07); }
:root[data-theme="light"] .has-dark-hero .site-header:not(.is-solid) .menu-toggle { border-color: rgba(11,18,48,.25); }
@media (min-width: 821px) { .hero-rail { top: clamp(170px, 42vh, 50%); } }

/* =========================================================
   v7 — full-height banner, hero blur edge, snake process
   ========================================================= */
@media (min-width: 821px) {
  .hero-strip { top: 0; bottom: 0; -webkit-mask-image: linear-gradient(to bottom, #000 82%, transparent); mask-image: linear-gradient(to bottom, #000 82%, transparent); }
  .hero-rail { top: clamp(200px, 50vh, 56%); }
}
.hero { padding-bottom: 0; }
.hero .hero-inner { padding-bottom: clamp(4.5rem, 7vw, 6.5rem); }
.hero-fadebar { position: absolute; left: 0; right: 0; bottom: 0; height: clamp(70px, 9vw, 120px); z-index: 5; pointer-events: none;
  -webkit-backdrop-filter: blur(22px) saturate(120%); backdrop-filter: blur(22px) saturate(120%);
  background: linear-gradient(to bottom, color-mix(in srgb, var(--page-bg) 35%, transparent), color-mix(in srgb, var(--page-bg) 92%, transparent) 70%, var(--page-bg));
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 40%); mask-image: linear-gradient(to bottom, transparent, #000 40%); }
:root[data-theme="light"] .hero-fadebar { --page-bg: #F2F4FA; }
.hero::after { display: none !important; }

/* process: split screen */
.process-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: clamp(1.5rem, 4vw, 4.5rem); align-items: start; }
.process-grid .stack-card { grid-template-columns: clamp(3.2rem, 2.4rem + 2vw, 5rem) minmax(0, 1fr); }
.process-grid .stack-card ul { grid-column: 2; }
.stack-card { transition: border-color .5s, box-shadow .5s; }
.stack-card.is-current { border-color: color-mix(in srgb, var(--accent) 60%, var(--line)); box-shadow: 0 -20px 40px -30px rgba(2,4,16,.6), 0 30px 70px -45px var(--accent); }
.stack-card .stack-num { transition: color .4s; color: color-mix(in srgb, var(--accent) 45%, var(--text-muted)); }
.stack-card.is-current .stack-num { color: var(--accent); }
@media (max-width: 900px) {
  .process-grid { grid-template-columns: minmax(0, 1fr); }
  .process-grid .stack-card { top: calc(170px + var(--i) * 12px); }
}
.process-grid .stack { padding-bottom: 32vh; } @media (max-width: 900px) { .process-grid .stack { padding-bottom: 18vh; } }
@media (max-width: 900px) { .process-grid .stack { padding-bottom: 30vh; } }

/* =========================================================
   v8 — mobile spacing, accent contrast, review cards
   ========================================================= */
/* scene heights: long pinned scrolls only where the scene is pinned */
.showcase { height: auto; }
@media (min-width: 1200px) { .showcase { height: calc(var(--n) * 88vh + 100vh); } }
@media (max-width: 820px) { .deck { height: calc(var(--n) * 55vh + 120vh); } .zoom { height: 260vh; } }
.is-static .showcase, .is-static .deck, .is-static .zoom { height: auto; }

/* text on accent surfaces always uses the accent's own ink colour */
.hero-strip, :root[data-accent="snow"] .hero-strip, :root[data-theme="light"][data-accent="snow"] .hero-strip { color: var(--accent-ink); }
.hero-strip .brand-mark .peak-hi { stroke: currentColor; }
.deck-half { background: radial-gradient(ellipse 60% 70% at 50% 0%, color-mix(in srgb, var(--accent) 34%, #0B1230) 0%, #0B1230 70%); background-size: 200% 100%; }
:root[data-accent="snow"] .deck-half { background: radial-gradient(ellipse 60% 70% at 50% 0%, #2A3566 0%, #0B1230 70%); background-size: 200% 100%; }
.deck-half--l { background-position: left top; } .deck-half--r { background-position: right top; }
.deck-title, .deck-h { color: #EEF1F8; }
.deck-card--cta { background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 22%, #121A40), #0B1230); color: #EEF1F8; }
.deck-card--cta .btn--primary { background: var(--accent); color: var(--accent-ink); }
:root[data-theme="light"][data-accent="snow"] .deck-card--cta .btn--primary { background: #EEF1F8; color: #0B1230; border-color: #EEF1F8; }

/* review cards */
.deck-rhead { display: flex; align-items: center; justify-content: space-between; margin-top: .3rem; }
.g-logo { width: 28px; height: 28px; }
.deck-stars { color: #F5A623; letter-spacing: 2px; font-size: 1.05rem; }
.deck-review p { font-size: var(--fs-md); line-height: 1.5; opacity: .9; }
.deck-google { justify-content: center; align-items: center; text-align: center; }
.deck-google .g-logo { width: 44px; height: 44px; }
.deck-rating { font-family: var(--font-display); font-size: 3.6rem; line-height: 1; opacity: 1 !important; }
.deck-card:not(.deck-card--dark):not(.deck-card--cta) .btn { color: #0B1230; border-color: rgba(11,18,48,.3); } .deck-card:not(.deck-card--dark):not(.deck-card--cta) .btn:hover { color: #fff; } .deck-card:not(.deck-card--dark):not(.deck-card--cta) .btn::before { background: #0B1230; }
.dv-scroll { transition: opacity .16s ease; } .dv-scroll.is-swapping { opacity: 0; }

/* =========================================================
   v9 — loading screen (liquid fill)
   ========================================================= */
html.is-loading { overflow: hidden; }
.loader { position: fixed; inset: 0; z-index: 500; display: grid; place-items: center; background: var(--bg); clip-path: inset(0 0 0 0); transition: clip-path .85s var(--ease-io); }
.loader::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 50% 40% at 50% 55%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%); }
.ld-inner { position: relative; display: grid; justify-items: center; gap: clamp(.8rem, 2vw, 1.4rem); width: min(80vw, 760px); transition: transform .85s var(--ease-io), opacity .5s; }
.ld-logo { width: clamp(40px, 5vw, 58px); height: auto; aspect-ratio: 1; border-radius: 14px; box-shadow: 0 14px 30px -14px rgba(0,0,0,.7); animation: ldIn .7s var(--ease-out) both; }
.ld-svg { width: 100%; height: auto; overflow: visible; animation: ldIn .7s var(--ease-out) .08s both; }
@keyframes ldIn { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }
.ld-text { font-family: var(--font-display); font-weight: 600; font-size: 190px; letter-spacing: 0; }
.ld-outline { fill: none; stroke: color-mix(in srgb, var(--text) 30%, transparent); stroke-width: 2.2; }
.ld-glass { fill: color-mix(in srgb, var(--text) 5%, transparent); }
.ld-wave--front { fill: var(--accent); animation: ldWave 1.15s linear infinite; }
.ld-wave--back { fill: color-mix(in srgb, var(--accent) 50%, var(--bg)); animation: ldWaveB 1.8s linear infinite; }
@keyframes ldWave { from { transform: translateX(0); } to { transform: translateX(-200px); } }
@keyframes ldWaveB { from { transform: translate(-260px, 5px); } to { transform: translate(0, 5px); } }
.ld-drop { fill: var(--accent); opacity: 0; transform-box: fill-box; transform-origin: center; animation: ldDrop var(--d) cubic-bezier(.2,.7,.4,1) var(--dl) infinite; }
@keyframes ldDrop {
  0% { transform: translate(0, 4px) scale(.5); opacity: 0; }
  12% { opacity: 1; }
  45% { transform: translate(var(--dx), -34px) scale(1); opacity: 1; }
  80% { transform: translate(calc(var(--dx) * 1.7), -6px) scale(.7); opacity: .8; }
  100% { transform: translate(calc(var(--dx) * 1.9), 6px) scale(.4); opacity: 0; }
}
.ld-splash { transition: opacity .35s; }
.ld-pct { font-family: var(--font-body); font-size: var(--fs-sm); font-weight: 600; letter-spacing: .2em; color: var(--text-muted); font-variant-numeric: tabular-nums; animation: ldIn .7s var(--ease-out) .15s both; }
.ld-shine { opacity: 0; }
.loader.ld-done .ld-splash { opacity: 0; }
.loader.ld-done .ld-shine { opacity: 1; animation: ldShine .7s var(--ease-out) forwards; }
@keyframes ldShine { from { transform: translateX(0); } to { transform: translateX(1300px); } }
.loader.ld-done .ld-logo { animation: ldPop .6s cubic-bezier(.34,1.56,.64,1); }
@keyframes ldPop { 50% { transform: scale(1.14); } }
.loader.ld-exit { clip-path: inset(0 0 100% 0); pointer-events: none; }
.loader.ld-exit .ld-inner { transform: translateY(-60px); opacity: 0; }
/* loader v2: physics-driven water */
.ld-wave--front, .ld-wave--back { animation: none; }
.ld-wave--back { fill: color-mix(in srgb, var(--accent) 55%, var(--bg)); }
.ld-glass { fill: color-mix(in srgb, var(--text) 9%, transparent); }
.ld-outline { stroke-width: 3.6; stroke: color-mix(in srgb, var(--text) 34%, transparent); }
.ld-drop { animation: none; opacity: 1; fill: var(--accent); }
.ld-depth { pointer-events: none; }
.ld-pct { display: none; }

/* =========================================================
   v10 — review ring (devices land in a card, cards rotate)
   ========================================================= */
.hero-bg { overflow: hidden; }
.has-ring .hero { overflow: visible; }
.has-ring .hero .hero-inner { z-index: 7; pointer-events: none; }
.has-ring .hero .hero-inner > * { pointer-events: auto; }
.has-ring .hero .devices { transform-origin: 0 0; animation: none; will-change: transform; }
.has-ring .hero .devices.hero-fade { transition: opacity .9s var(--ease-out) .45s; }

.ring { --cw: clamp(270px, 24vw, 370px); position: relative; height: calc(100vh + var(--n) * 62vh); }
.ring-pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: grid; place-items: center; perspective: 1900px; perspective-origin: 50% 46%; }
.ring-marquee { position: absolute; left: 0; top: 50%; z-index: 0; display: flex; white-space: nowrap; pointer-events: none; will-change: transform;
  font: 500 clamp(3.4rem, 9.5vw, 9.5rem)/1 var(--font-display); letter-spacing: -.045em; color: var(--text); }
.ring-marquee i { font-style: normal; color: var(--accent); font-size: .5em; vertical-align: .35em; padding: 0 .25em; }
.ring-stage { position: relative; z-index: 1; width: var(--cw); height: calc(var(--cw) * 1.4); transform-style: preserve-3d; }
.ring-track { position: absolute; inset: 0; transform-style: preserve-3d; will-change: transform; }
.ring-card { position: absolute; inset: 0; border-radius: 24px; overflow: hidden; isolation: isolate; color: var(--rc-fg);
  -webkit-backface-visibility: hidden; backface-visibility: hidden; pointer-events: none;
  transform: rotateY(calc(var(--i) * var(--step, 45deg))) translateZ(var(--r, 420px));
  padding: clamp(1.1rem, 1.5vw, 1.5rem); display: flex; flex-direction: column; gap: .9rem;
  box-shadow: 0 40px 80px -42px rgba(2,4,16,.6); }
.ring-card.is-front { pointer-events: auto; }
.rc-bg { position: absolute; inset: 0; z-index: -1; background: var(--rc-bg); border-radius: inherit; pointer-events: none; }
.rc-shade { position: absolute; inset: 0; z-index: 3; background: #02040F; opacity: 0; border-radius: inherit; pointer-events: none; will-change: opacity; }
.rc--devices { box-shadow: none; overflow: visible; }
.rc--devices.rc-solid { box-shadow: 0 40px 80px -42px rgba(2,4,16,.6); }


.rc--accent { --rc-bg: linear-gradient(165deg, color-mix(in srgb, var(--accent) 92%, #fff), color-mix(in srgb, var(--accent) 72%, #0B1230)); --rc-fg: #0B1230; }
.rc--dark { --rc-bg: linear-gradient(165deg, #1C2756, #0B1230); --rc-fg: #EEF1F8; }
.rc--tint { --rc-bg: linear-gradient(165deg, color-mix(in srgb, var(--accent) 42%, #141B44), #0B1230 85%); --rc-fg: #EEF1F8; }
.rc--light { --rc-bg: linear-gradient(165deg, #FFFFFF, #E9EDF7); --rc-fg: #0B1230; }
.rc--photo { --rc-bg: #0B1230; --rc-fg: #EEF1F8; padding: 0; }
.rc--cta { --rc-bg: radial-gradient(ellipse 90% 70% at 50% 0%, color-mix(in srgb, var(--accent) 48%, #0B1230), #0B1230 75%); --rc-fg: #EEF1F8; justify-content: center; }
:root[data-accent="snow"] .rc--accent { --rc-bg: linear-gradient(165deg, #FFFFFF, #CBD3EA); }

.rc-head { display: grid; gap: .3rem; }
.rc-label { font-size: var(--fs-xs); font-weight: 650; letter-spacing: .02em; opacity: .72; }
.rc-title { font: 500 clamp(1.25rem, 1rem + .9vw, 1.7rem)/1.1 var(--font-display); letter-spacing: -.025em; }
.rc-dv { position: relative; flex: 1; min-height: 0; }
.dv-clone { position: absolute; margin: 0; max-width: none; transform-origin: 0 0; animation: none !important; }

.rc-rtop { display: flex; justify-content: space-between; align-items: center; }
.ring-card .g-logo { width: 30px; height: 30px; }
.rc-stars { color: #FBBC04; letter-spacing: 2px; font-size: 1.15rem; line-height: 1; }
.rc-stars-off { opacity: .3; }
.rc-quote { margin: 0; flex: 1; min-height: 0; overflow: hidden; }
.rc-quote::before { content: "“"; display: block; font: 600 3.6rem/.7 var(--font-display); opacity: .3; margin-bottom: .2rem; }
.rc-quote p { font-size: clamp(1rem, .9rem + .35vw, 1.2rem); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 9; -webkit-box-orient: vertical; overflow: hidden; }
.rc-quote--long p { font-size: .95rem; -webkit-line-clamp: 11; }
.rc-person { display: flex; gap: .75rem; align-items: center; padding-top: .9rem; border-top: 1px solid color-mix(in srgb, currentColor 16%, transparent); }
.rc-av { width: 2.7rem; height: 2.7rem; flex: none; border-radius: 50%; display: grid; place-items: center; object-fit: cover; background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: .9rem; }
.rc-person strong { display: block; font-size: var(--fs-sm); }
.rc-person span { display: block; font-size: var(--fs-xs); opacity: .7; }

.rc-g { flex: 1; display: grid; place-content: center; justify-items: center; text-align: center; gap: .55rem; }
.rc-g .g-logo { width: 54px; height: 54px; margin-bottom: .3rem; }
.rc-g-rating { font: 500 clamp(3.6rem, 3rem + 2vw, 5rem)/1 var(--font-display); letter-spacing: -.04em; }
.rc-g .rc-stars { font-size: 1.5rem; }
.rc-g-count { font-size: var(--fs-sm); opacity: .75; }
.rc-g .btn { margin-top: .6rem; color: #0B1230; border-color: rgba(11,18,48,.3); }
.rc-g .btn::before { background: #0B1230; } .rc-g .btn:hover { color: #fff; }

.rc-proj { display: flex; flex-direction: column; height: 100%; color: inherit; }
.rc-proj img { width: 100%; height: 58%; object-fit: cover; object-position: top; }
.rc-proj-body { padding: 1.2rem 1.3rem 1.4rem; display: grid; gap: .45rem; margin-top: auto; }
.rc-proj-body p { font-size: var(--fs-sm); opacity: .7; }
.rc-cta { display: grid; gap: .9rem; justify-items: start; }
.rc-cta p:not(.rc-label) { opacity: .78; }

@media (max-width: 820px) {
  .ring { --cw: min(74vw, 310px); height: calc(100vh + var(--n) * 52vh); }
  .ring-pin { perspective: 1200px; }
}

/* reduced motion: flat, swipeable row */
.is-static .ring { height: auto; }
.is-static .ring-pin { position: relative; height: auto; display: block; place-items: normal; perspective: none; padding-block: var(--section); overflow: visible; }
.is-static .ring-marquee { position: relative; top: auto; transform: none !important; white-space: normal; display: block; font-size: clamp(2rem, 5vw, 3.6rem); padding: 0 var(--gutter) 2rem; max-width: var(--maxw); margin-inline: auto; }
.is-static .ring-marquee span { display: block; }
.is-static .ring-stage { width: 100%; max-width: 100%; height: auto; transform-style: flat; justify-self: stretch; }
.is-static .ring-track { position: relative; display: flex; gap: 1rem; overflow-x: auto; transform: none !important; padding: 0 var(--gutter) 1rem; padding-inline: max(var(--gutter), calc((100% - var(--maxw)) / 2 + var(--gutter))); scroll-padding-inline: max(var(--gutter), calc((100% - var(--maxw)) / 2 + var(--gutter))); scroll-snap-type: x mandatory; }
.is-static .ring-card { position: relative; inset: auto; flex: 0 0 min(80vw, 340px); height: calc(min(80vw, 340px) * 1.4); transform: none !important; opacity: 1 !important; scroll-snap-align: center; pointer-events: auto; }
.is-static .rc-shade { opacity: 0 !important; }
.is-static .rc-bg, .is-static .rc-head { opacity: 1 !important; }
.rc-person .rc-av { display: grid; opacity: 1; font-size: .9rem; line-height: 1; }
.is-static .ring-card { scroll-snap-align: start; }

/* =========================================================
   v11 — process route (winding progress) + FAQ folders
   ========================================================= */
:root { --rt-track: rgba(154, 165, 196, 0.13); --rt-shade: rgba(0, 0, 0, 0.34); --rt-dot-off: #232E5E; --rt-num-off: color-mix(in srgb, var(--accent) 50%, var(--text-muted));
  --rt-dot-on: #03061A; --rt-num-on: var(--accent);
  --fq-back: #03061A; --fq-back-line: rgba(154, 165, 196, 0.16); --fq-paper: #FBFAF6; --fq-paper-ink: #1B2140; --fq-paper-muted: #4B5578; }
:root[data-theme="light"] { --rt-track: rgba(11, 18, 48, 0.085); --rt-shade: rgba(11, 18, 48, 0.13); --rt-dot-off: #C9CFE0; --rt-num-off: color-mix(in srgb, var(--accent) 65%, #6B7390);
  --rt-dot-on: #0B1230; --rt-num-on: color-mix(in srgb, var(--accent) 50%, #FFE7C9);
  --fq-back: #111733; --fq-back-line: transparent; }

/* cards: a touch smaller, the route gets the wider column */
.process-grid { grid-template-columns: minmax(0, 0.84fr) minmax(0, 1.16fr); gap: clamp(1.5rem, 3vw, 3.5rem); align-items: stretch; }
.process-grid .stack { gap: 1.25rem; }
.process-grid .stack-card { padding: clamp(1.2rem, 0.8rem + 1.5vw, 2rem); gap: 0.55rem clamp(0.9rem, 1.8vw, 1.6rem); min-height: 0; }
.process-grid .stack-card h3 { font-size: var(--fs-lg); margin-bottom: 0.5rem; }
.process-grid .stack-card p { font-size: var(--fs-sm); }
.process-grid .stack-num { font-size: clamp(1.7rem, 1.1rem + 1.8vw, 2.8rem); }
.process-grid .stack-card ul { gap: 0.45rem; margin-top: 0.35rem; }

.process-grid .stack { position: relative; z-index: 2; }
.route { position: relative; z-index: 1; min-width: 0; }
.route-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.rt-live { will-change: transform; }
.rt-track, .rt-shade, .rt-fill { fill: none; stroke-width: var(--sw, 20px); stroke-linecap: round; stroke-linejoin: round; }
.rt-track { stroke: var(--rt-track); }
.rt-shade { stroke: var(--rt-shade); transform: translateY(calc(var(--sw, 20px) * 0.26)); }
.rt-fill { stroke: var(--accent); }
.rt-node { position: absolute; left: 0; top: 0; width: 0; height: 0; }
.rt-dot { position: absolute; left: 0; top: 0; width: var(--dd, 52px); height: var(--dd, 52px); margin: calc(var(--dd, 52px) / -2) 0 0 calc(var(--dd, 52px) / -2);
  display: grid; place-items: center; border-radius: 50%; background: var(--rt-dot-off); color: var(--rt-num-off);
  font: 500 calc(var(--dd, 52px) * 0.34)/1 var(--font-display); letter-spacing: -0.02em; z-index: 2;
  transform: scale(0.76); transition: transform 0.75s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.45s, color 0.45s, box-shadow 0.45s; }
.rt-node.on .rt-dot { transform: scale(1); background: var(--rt-dot-on); color: var(--rt-num-on); box-shadow: 0 12px 26px -12px rgba(0, 0, 0, 0.6); }
.rt-dot::after { content: ""; position: absolute; inset: -7px; border-radius: 50%; border: 2px dashed color-mix(in srgb, var(--accent) 70%, transparent); opacity: 0; transform: scale(0.8); transition: opacity 0.5s, transform 0.6s var(--ease-out); }
.rt-node.now .rt-dot::after { opacity: 1; transform: scale(1); animation: rtSpin 14s linear infinite; will-change: transform; }
@keyframes rtSpin { from { transform: scale(1) rotate(0deg); } to { transform: scale(1) rotate(360deg); } }
.rt-label { --ts: clamp(1.3rem, 0.95rem + 1vw, 1.9rem); position: absolute; top: calc(var(--ts) * -0.62); width: var(--lw, 240px); z-index: 1; }
.rt-node.is-r .rt-label { left: calc(var(--dd, 52px) / 2 + 18px); text-align: left; }
.rt-node.is-l .rt-label { right: calc(var(--dd, 52px) / 2 + 18px); text-align: right; }
.rt-title { margin: 0; overflow: hidden; padding-bottom: 0.1em; font: 500 var(--ts)/1.12 var(--font-display); letter-spacing: -0.03em; color: var(--text); text-wrap: balance; }
.rt-title span { display: inline-block; transform: translateY(108%); transition: transform 0.85s var(--ease-out); }
.rt-text { margin: 0.5rem 0 0; color: var(--text-muted); font-size: var(--fs-sm); line-height: 1.45; text-wrap: pretty;
  clip-path: inset(0 0 100% 0); opacity: 0; transition: clip-path 1s var(--ease-out) 0.2s, opacity 0.6s 0.2s; }
.rt-node.is-l .rt-text { margin-left: auto; }
.rt-node.on .rt-title span { transform: none; }
.rt-node.on .rt-text { clip-path: inset(0 0 0 0); opacity: 1; }
.route:not(.is-live) .route-svg, .route:not(.is-live) .rt-node { visibility: hidden; }
.route-mini, .route-now { display: none; }
.is-static .rt-title span, .is-static .rt-text, .is-static .rt-dot { transition: none; }
.is-static .rt-node.now .rt-dot::after { animation: none; }

@media (max-width: 900px) {
  .process-grid { grid-template-columns: minmax(0, 1fr); }
  .route { order: -1; position: sticky; top: 70px; z-index: 6; display: grid; gap: 0.5rem; padding: 0.75rem 1rem; border-radius: var(--r-panel); background: var(--bg-raised); border: 1px solid var(--line); }
  .route-svg, .rt-node { display: none; }
  .route-mini { position: relative; display: flex; justify-content: space-between; align-items: center; }
  .rm-track { position: absolute; left: 1rem; right: 1rem; top: 50%; height: 6px; margin-top: -3px; border-radius: 6px; background: var(--rt-track); overflow: hidden; }
  .rm-fill { position: absolute; inset: 0; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 0.25s linear; }
  .rm-node { position: relative; width: 2.1rem; height: 2.1rem; border-radius: 50%; display: grid; place-items: center; font: 500 0.72rem/1 var(--font-display); background: var(--rt-dot-off); color: var(--rt-num-off); transform: scale(0.86); transition: background-color 0.4s, color 0.4s, transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1); }
  .rm-node.on { background: var(--rt-dot-on); color: var(--rt-num-on); transform: scale(1); }
  .rm-node.now { transform: scale(1.14); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 45%, transparent); }
  .route-now { display: flex; align-items: baseline; gap: 0.45rem; margin: 0; font-size: var(--fs-xs); color: var(--text-muted); }
  .route-now b { font: 500 var(--fs-md)/1 var(--font-display); color: var(--accent); }
  .route-now span { margin-left: auto; color: var(--text); font-weight: 600; }
}

/* FAQ: folders that open on hover (tap on touch, Enter/Space on keyboard) */
.fq-head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 1.25rem clamp(2rem, 5vw, 5rem); align-items: end; margin-bottom: clamp(2.2rem, 4vw, 3.5rem); }
.fq-head .h-section { margin: 0; }
.fq-intro .lede { margin: 0 0 1.4rem; }
.fq-intro .btn-row { align-items: center; }
.fq-hint { font-size: var(--fs-xs); color: var(--text-muted); }
.fq-hint-touch { display: none; }
@media (hover: none) { .fq-hint-fine { display: none; } .fq-hint-touch { display: inline; } }
.fq-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1rem, 1.6vw, 1.5rem); align-items: stretch; }
.fq { --pt: 46px; position: relative; min-height: 15rem; isolation: isolate; }
.fq-back { position: absolute; inset: 0; z-index: 0; }
.fq-back::before { content: ""; position: absolute; inset: 27px 0 0; border-radius: 0 18px 18px 18px; background: var(--fq-back); box-shadow: inset 0 0 0 1px var(--fq-back-line), 0 24px 50px -34px rgba(0, 0, 0, 0.7); }
.fq-tab { position: absolute; left: 0; top: 0; height: 28px; display: inline-flex; align-items: center; gap: 0.45rem; padding: 0 0.4rem 0 1.05rem; border-radius: 14px 0 0 0;
  background: var(--fq-back); color: var(--accent); font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.01em; white-space: nowrap; box-shadow: inset 1px 1px 0 var(--fq-back-line); }
.fq-tab::after { content: ""; position: absolute; left: calc(100% - 1px); top: 0; width: 38px; height: 28px; background: inherit; clip-path: polygon(0 0, 14% 0, 100% 100%, 0 100%); }
.fq-tab .icon { width: 0.95rem; height: 0.95rem; }
.fq-paper { position: absolute; z-index: 1; left: 3.2%; right: 3.2%; top: var(--pt); bottom: 26px; border-radius: 12px; overflow: hidden;
  background: linear-gradient(180deg, #fff, var(--fq-paper) 40%); color: var(--fq-paper-ink);
  box-shadow: 0 -8px 18px -12px rgba(0, 0, 0, 0.45); transform-origin: 0 0; transform: rotate(1.15deg) translateY(5px);
  transition: transform 0.65s var(--ease-out); }
.fq-paper p { margin: 0; padding: 1.05rem 1.35rem; font-size: var(--fs-sm); line-height: 1.55; max-width: 62ch; opacity: 0; transform: translateY(6px); transition: opacity 0.35s, transform 0.5s var(--ease-out); }
.fq-h { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; height: calc(100% - var(--pt) - 18px); margin: 0; font: inherit; transition: height 0.65s var(--ease-out); }
.fq-front { position: relative; width: 100%; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; text-align: left; overflow: hidden;
  padding: 1rem 1.4rem 1.2rem; border-radius: 16px; color: var(--accent-ink); cursor: pointer; transform-origin: 50% 100%;
  background:
    radial-gradient(55% 110% at 50% 28%, color-mix(in srgb, #fff 18%, transparent), transparent 70%),
    linear-gradient(180deg, color-mix(in srgb, var(--accent) 90%, #fff) 0%, var(--accent) 42%, color-mix(in srgb, var(--accent) 84%, #000) 100%);
  box-shadow: 0 -12px 26px -16px rgba(0, 0, 0, 0.55), inset 0 1px 0 color-mix(in srgb, #fff 45%, transparent); }
.fq-front:focus-visible { outline: 3px solid var(--text); outline-offset: 4px; }
.fq-num { position: absolute; left: 1.4rem; top: 1rem; font-size: var(--fs-xs); font-weight: 600; opacity: 0.78; transition: opacity 0.35s, transform 0.45s var(--ease-out); }
.fq-q { font: 500 clamp(1.02rem, 0.82rem + 0.62vw, 1.36rem)/1.24 var(--font-display); letter-spacing: -0.015em; max-width: calc(100% - 3.4rem); text-wrap: balance; }
.fq-mark { position: absolute; top: -1px; right: 1.35rem; width: 2.2rem; height: 3rem; display: grid; justify-items: center; align-content: start; padding-top: 0.5rem;
  background: var(--fq-paper); color: var(--fq-paper-ink); clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 76%, 0 100%); }
.fq-mark .icon { width: 1.05rem; height: 1.05rem; transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1); }
.fq.is-open .fq-h { height: var(--fo, 6rem); }
.fq.is-open .fq-front { animation: fqFlap 0.65s var(--ease-out); }
.fq.is-closing .fq-front { animation: fqFlap2 0.65s var(--ease-out); }
.fq.is-open .fq-num { opacity: 0; transform: translateY(-8px); }
.fq.is-open .fq-mark .icon { transform: rotate(45deg); }
.fq.is-open .fq-paper { transform: rotate(0deg) translateY(-6px); }
.fq.is-open .fq-paper p { opacity: 1; transform: none; transition-delay: 0.14s, 0.14s; }
@keyframes fqFlap { 0% { transform: perspective(900px) rotateX(0); } 42% { transform: perspective(900px) rotateX(13deg); } 100% { transform: perspective(900px) rotateX(0); } }
@keyframes fqFlap2 { 0% { transform: perspective(900px) rotateX(0); } 42% { transform: perspective(900px) rotateX(9deg); } 100% { transform: perspective(900px) rotateX(0); } }
.is-static .fq-h, .is-static .fq-paper, .is-static .fq-paper p, .is-static .fq-num, .is-static .fq-mark .icon { transition-duration: 0.01s; transition-delay: 0s; }
.is-static .fq-front { animation: none !important; }
@media (max-width: 900px) { .fq-head { grid-template-columns: minmax(0, 1fr); align-items: start; } }
@media (max-width: 760px) { .fq-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 420px) { .fq-front { padding: 0.9rem 1.1rem 1.05rem; } .fq-num { left: 1.1rem; top: 0.9rem; } .fq-mark { right: 1rem; } .fq-paper p { padding: 0.95rem 1.1rem; } }

/* =========================================================
   v12 — scroll performance: GPU-only layers for per-frame effects
   ========================================================= */
.stack-dim { position: absolute; inset: 0; z-index: 4; border-radius: inherit; background: #000; opacity: 0; pointer-events: none; will-change: opacity; }
.is-static .stack-dim { opacity: 0 !important; }
.is-static .ht-seal .s-spin { animation: none; }
.process-grid .stack-card, .tech-row, .ring-marquee { backface-visibility: hidden; }
/* the project accordion: the open panel has its final width from the start, so a widening card only moves its edge
   instead of re-wrapping all of its text on every frame */
@media (min-width: 1200px) {
  .acc { container-type: inline-size; }
  .acc-panel { right: auto; width: max(720px, calc(100cqw - (var(--n, 6) - 1) * 78px)); }
  .acc-item { contain: layout paint; will-change: transform; }
  .acc-panel { will-change: transform, opacity; }
}
/* looping decoration rests while it is off screen or hidden */
.hero-out .hero-strip-track, .hero-out .hero-bg img, .hero-out .ht-seal .s-spin { animation-play-state: paused; }
.chat-panel:not(.is-open) .chat-online { animation: none; }

/* =========================================================
   v13 — pages, pricing and blog made in the admin panel
   ========================================================= */
.prose { max-width: 70ch; display: grid; gap: 1.1rem; }
.prose > .h-sub { margin-bottom: 0.6rem; }
.prose p, .prose li { color: var(--text-muted); font-size: var(--fs-base); line-height: 1.7; }
.prose h2 { font-size: var(--fs-lg); margin-top: 1.6rem; letter-spacing: -0.02em; }
.prose h3 { font-family: var(--font-body); font-size: var(--fs-md); font-weight: 600; letter-spacing: 0; margin-top: 1rem; }
.prose ul, .prose ol { padding-left: 1.3rem; display: grid; gap: 0.45rem; }
.prose ul { list-style: disc; } .prose ol { list-style: decimal; }
.prose li::marker { color: var(--accent); }
.prose strong { color: var(--text); font-weight: 600; }
.prose blockquote { margin: 0.6rem 0; padding: 0.4rem 0 0.4rem 1.4rem; border-left: 2px solid var(--accent); }
.prose blockquote p { font-family: var(--font-display); font-size: var(--fs-md); line-height: 1.45; color: var(--text); letter-spacing: -0.01em; }
.prose blockquote cite { display: block; margin-top: 0.6rem; font-style: normal; font-size: var(--fs-sm); color: var(--text-muted); }
.prose figure, .pg-figure { margin: 0.8rem 0; display: grid; gap: 0.7rem; }
.prose figure img, .pg-figure img { width: 100%; height: auto; border-radius: var(--r-media); border: 1px solid var(--line); background: var(--bg-raised); }
.pg-figure { margin: 0; } .pg-figure img { box-shadow: var(--shadow); }
.prose figcaption, .pg-figure figcaption { font-size: var(--fs-sm); color: var(--text-muted); }
.post-hero h1 { max-width: 22ch; }
.post-meta { display: flex; flex-wrap: wrap; gap: 0.5rem 1.2rem; font-size: var(--fs-sm); color: var(--text-muted); margin-bottom: 1.2rem; }
.post-meta span:first-child { color: var(--accent); font-weight: 600; }
.post-cover img { aspect-ratio: auto; max-height: 72vh; object-fit: cover; }
.post-body { margin-inline: 0; }
.post-cta { margin: 1.4rem 0; padding: clamp(1.4rem, 1rem + 1.5vw, 2rem); border-radius: var(--r-panel); background: var(--bg-raised); border: 1px solid var(--line); display: grid; gap: 0.8rem; justify-items: start; }
.post-cta h2 { margin: 0; font-size: var(--fs-md); }
.post-foot { margin-top: 2rem; padding-top: 1.4rem; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 0.8rem 1.4rem; align-items: center; justify-content: space-between; color: var(--text-muted); font-size: var(--fs-sm); }
.post-foot .tags { display: flex; flex-wrap: wrap; gap: 0.4rem; padding: 0; list-style: none; }
.post-card .work-media .art { width: 100%; height: 100%; }

.price-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 1.25rem; align-items: stretch; }
.price-card { display: flex; flex-direction: column; gap: 1rem; padding: clamp(1.5rem, 1.1rem + 1.5vw, 2.3rem); border-radius: var(--r-panel); border: 1px solid var(--line); background: var(--bg-raised); }
.price-card.is-hl { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow); }
.price-card h2 { font-size: var(--fs-lg); }
.price-desc { color: var(--text-muted); font-size: var(--fs-sm); }
.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.2rem 0.6rem; padding: 1rem 0; border-block: 1px solid var(--line); }
.price b { font-family: var(--font-display); font-weight: 500; font-size: var(--fs-xl); letter-spacing: -0.03em; }
.price-from, .price-per { font-size: var(--fs-sm); color: var(--text-muted); }
.price-list { display: grid; gap: 0.6rem; flex: 1; align-content: start; }
.price-list li { display: flex; gap: 0.6rem; align-items: flex-start; font-size: var(--fs-sm); }
.price-list .icon { width: 1.1rem; height: 1.1rem; flex: none; color: var(--accent); margin-top: 0.15rem; }
.price-card .btn { justify-content: center; }
.price-note { margin-top: 1.6rem; color: var(--text-muted); font-size: var(--fs-sm); max-width: 70ch; }
