/* =============================================================
   PhotoRestoration — Film-Lab Design System
   Darkroom / contact-sheet aesthetic.
   Dark is the default (the actual darkroom).
   Light is "CMY × Collodion" — magenta primary, silver secondary.
   ============================================================= */

/* ---------- font ---------- */
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400;1,500&display=swap');

/* ---------- tokens ---------- */
:root {
  /* surfaces (light = "CMY × Collodion" — magenta primary, silver secondary) */
  --bg:        #f0f2ee;   /* soft silver-white */
  --bg-2:      #e8efe0;   /* muted mint surface */
  --bg-3:      #d9ddd6;   /* soft gray for inset */
  --fg:        #2a5a3e;   /* muted forest green */
  --fg-muted:  #4a6a54;   /* olive-green */
  --border:    #c2c5c1;   /* silver border */

  --accent:    #d94a7a;   /* muted magenta — primary */
  --accent-2:  #e05a84;   /* brighter hover */
  --accent-amber:  #735e38;  /* dark bronze — tertiary */
  --accent-teal:   #6a8a84;  /* mercury silver-blue — secondary */
  --film:      #eff1ef;   /* match bg for negative cell */
  --ink:       #181a19;   /* alias of fg */

  /* derived */
  --accent-soft: color-mix(in srgb, var(--accent) 14%, transparent);
  --accent-wash: color-mix(in srgb, var(--accent)  8%, transparent);
  --fg-soft:     color-mix(in srgb, var(--fg)     6%, transparent);
  --frame-line:  color-mix(in srgb, var(--ink)   22%, var(--border));
  --red-glow:    color-mix(in srgb, var(--accent) 35%, transparent);

  /* type — single family */
  --font-mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  /* scale (mobile-first, fluid) */
  --fs-h1:     clamp(40px, 9vw, 84px);
  --fs-h2:     clamp(26px, 5vw, 44px);
  --fs-h3:     clamp(20px, 3.2vw, 26px);
  --fs-lead:   16px;
  --fs-body:   15px;
  --fs-meta:   12px;
  --fs-tiny:   10px;

  /* spacing */
  --gap-xs:   8px;
  --gap-sm:   12px;
  --gap-md:   20px;
  --gap-lg:   32px;
  --gap-xl:   56px;
  --gap-2xl:  clamp(64px, 9vw, 112px);
  --container: 1180px;
  --gutter:    clamp(20px, 4vw, 32px);

  /* shape — sharp, technical, no friendly rounding */
  --radius:    2px;
  --radius-sm: 1px;

  /* shadows — restrained, mostly just separation lines */
  --shadow-card:   0 0 0 1px var(--border);
  --shadow-modal:  0 20px 60px -16px rgba(0,0,0,0.15);
}

/* ---------- dark theme (default) ---------- */
:root[data-theme="dark"] {
  --bg:        #0a0a0a;
  --bg-2:      #141210;
  --bg-3:      #1c1815;
  --fg:        #e8e0d0;
  --fg-muted:  #8a8275;
  --border:    #2a2520;

  --accent:    #d92121;   /* safelight red */
  --accent-2:  #ff4d3a;   /* safelight glow */
  --film:      #f4ebd9;
  --ink:       #e8e0d0;

  --accent-soft: color-mix(in srgb, var(--accent) 18%, transparent);
  --accent-wash: color-mix(in srgb, var(--accent) 10%, transparent);
  --fg-soft:     color-mix(in srgb, var(--fg)     8%, transparent);
  --frame-line:  color-mix(in srgb, var(--ink)   22%, var(--border));
  --red-glow:    color-mix(in srgb, var(--accent) 50%, transparent);

  --shadow-modal: 0 30px 80px -20px rgba(0,0,0,0.6);
}

/* ---------- film grain ---------- */
:root[data-theme="dark"] body::before {
  content: '';
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.045;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.92' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  background-size: 220px 220px;
}
:root[data-theme="light"] body::before {
  content: '';
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.025;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.6 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  background-size: 180px 180px;
}

/* ---------- ambient gradient blobs ---------- */
.blob-bg { display: none; }
:root[data-theme="dark"] .blob-bg {
  display: block;
  position: fixed; inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(var(--b, 60px));
  opacity: var(--o, 0.12);
  mix-blend-mode: soft-light;
  will-change: transform;
  width: var(--s, 500px); height: var(--s, 500px);
  left: var(--x, 50%); top: var(--y, 50%);
  margin-left: calc(var(--s, 500px) / -2);
  margin-top: calc(var(--s, 500px) / -2);
  animation: var(--anim, blob-drift-1) var(--d, 40s) ease-in-out var(--del, 0s) infinite;
}
.blob::before {
  content: '';
  display: block;
  width: 100%; height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle at center, #c9a040 0%, #c9a040 25%, transparent 70%);
}
.blob:nth-child(3n+1) { --anim: blob-drift-1; }
.blob:nth-child(3n+2) { --anim: blob-drift-2; }
.blob:nth-child(3n+3) { --anim: blob-drift-3; }

@keyframes blob-drift-1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25%  { transform: translate(100px, -120px) scale(1.12); }
  50%  { transform: translate(-70px, -180px) scale(0.90); }
  75%  { transform: translate(130px, -60px) scale(1.08); }
}
@keyframes blob-drift-2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25%  { transform: translate(-110px, -90px) scale(0.88); }
  50%  { transform: translate(80px, -160px) scale(1.10); }
  75%  { transform: translate(-60px, -50px) scale(0.94); }
}
@keyframes blob-drift-3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25%  { transform: translate(70px, -140px) scale(1.08); }
  50%  { transform: translate(-100px, -80px) scale(0.92); }
  75%  { transform: translate(90px, -180px) scale(1.06); }
}

/* mobile: lighter blobs to avoid GPU jank + Chrome artifact on soft-light */
@media (max-width: 719px) {
  .blob {
    --s: 220px !important;
    --b: 30px !important;
    --o: 0.09 !important;
    --d: 55s !important;
    mix-blend-mode: normal;
  }
  /* show 6 of 8 */
  .blob:nth-child(7),
  .blob:nth-child(8) {
    display: none;
  }
  .blob::before {
    background: radial-gradient(circle at center, #c9a040 0%, #c9a040 25%, rgba(10,10,10,0) 70%);
  }
}

/* ---------- CMY × collodion blobs (light theme) ---------- */
:root[data-theme="light"] .blob-bg {
  display: none;
  position: fixed; inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
:root[data-theme="light"] .blob {
  mix-blend-mode: normal;
  filter: blur(var(--b, 50px));
  opacity: var(--o, 0.07);
}
:root[data-theme="light"] .blob::before {
  background: radial-gradient(circle at center, var(--blob-color, #b84a2a) 0%, var(--blob-color, #b84a2a) 25%, transparent 70%);
}
:root[data-theme="light"] .blob:nth-child(1) { --blob-color: #d97a2b; --o: 0.06; --s: 420px; --b: 60px; }
:root[data-theme="light"] .blob:nth-child(2) { --blob-color: #d97a2b; --o: 0.05; --s: 360px; --b: 55px; }
:root[data-theme="light"] .blob:nth-child(3) { --blob-color: #d97a2b; --o: 0.05; --s: 480px; --b: 65px; }
:root[data-theme="light"] .blob:nth-child(4) { --blob-color: #d97a2b; --o: 0.04; --s: 300px; --b: 50px; }
:root[data-theme="light"] .blob:nth-child(5) { --blob-color: #d97a2b; --o: 0.05; --s: 380px; --b: 55px; }
:root[data-theme="light"] .blob:nth-child(6) { --blob-color: #d97a2b; --o: 0.04; --s: 280px; --b: 45px; }
/* hide last 2 in light theme too */
:root[data-theme="light"] .blob:nth-child(7),
:root[data-theme="light"] .blob:nth-child(8) {
  display: none;
}
@media (max-width: 719px) {
  :root[data-theme="light"] .blob {
    --s: 200px !important;
    --b: 30px !important;
    --o: 0.05 !important;
    --d: 55s !important;
  }
}

/* ---------- collodion sheen (light theme only) ---------- */
:root[data-theme="light"] .blob-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(
      ellipse 140% 60% at 20% 40%,
      rgba(160, 120, 48, 0.05) 0%,
      transparent 60%
    ),
    radial-gradient(
      ellipse 80% 120% at 80% 60%,
      rgba(106, 138, 132, 0.04) 0%,
      transparent 50%
    );
  animation: collodion-flow 22s ease-in-out infinite alternate;
}
@keyframes collodion-flow {
  0%   { transform: translate(0, 0) scale(1); opacity: 0.5; }
  50%  { transform: translate(4%, 3%) scale(1.03); opacity: 0.8; }
  100% { transform: translate(-3%, -2%) scale(0.97); opacity: 0.6; }
}
@media (max-width: 719px) {
  :root[data-theme="light"] .blob-bg::after {
    display: none;
  }
}

/* safelight glow on accent surfaces in dark mode (subtle) */
:root[data-theme="dark"] .safelight-glow {
  box-shadow: 0 0 24px -2px var(--red-glow);
}

/* ---------- reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-mono);
  font-size: var(--fs-body);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: 0; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }
p { text-wrap: pretty; margin: 0; }
h1, h2, h3, h4 { text-wrap: balance; margin: 0; font-weight: 500; }
ul, ol { margin: 0; padding: 0; list-style: none; }

/* ensure content sits above film grain */
.topnav, main, .pagefoot, .mobile-menu, .cmp-modal { position: relative; z-index: 2; }

/* scroll target offset for fixed header */
#home, #about, #portfolio, #services, #testimonials, #pricing, #contact {
  scroll-margin-top: 72px;
}

/* ---------- skip link ---------- */
.skip-link {
  position: absolute; top: -100px; left: 12px;
  background: var(--accent); color: var(--film);
  padding: 10px 14px;
  z-index: 1000;
  font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
}
.skip-link:focus { top: 12px; }

/* ---------- container & sections ---------- */
.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section {
  padding-block: clamp(56px, 8vw, var(--gap-2xl));
  position: relative;
}
.section + .section { border-top: 1px solid var(--border); }

/* ---------- typography ---------- */
h1, .h1 {
  font-size: var(--fs-h1);
  line-height: 0.96;
  letter-spacing: -0.025em;
  font-weight: 600;
  color: var(--ink);
}
h2, .h2 {
  font-size: var(--fs-h2);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 500;
  color: var(--ink);
}
h3, .h3 {
  font-size: var(--fs-h3);
  line-height: 1.2;
  letter-spacing: -0.01em;
  font-weight: 500;
  color: var(--ink);
}
h4 {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-muted);
}
.lead {
  font-size: var(--fs-lead);
  line-height: 1.6;
  color: var(--fg-muted);
  max-width: 60ch;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
}
.eyebrow::before {
  content: '> ';
  color: var(--fg-muted);
}
.italic { font-style: italic; }
.mono-caption {
  font-size: var(--fs-meta);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

/* code-style inline token (used in labels) */
.tok {
  font-family: var(--font-mono);
  color: var(--accent);
}

/* hand-drawn safelight underline */
.mark-underline {
  position: relative;
  display: inline-block;
  white-space: nowrap;
}
.mark-underline::after {
  content: '';
  position: absolute; left: -2%; right: -2%; bottom: -0.12em;
  height: 0.18em;
  background:
    radial-gradient(ellipse 30% 90% at 12% 60%, var(--accent) 0 60%, transparent 70%),
    radial-gradient(ellipse 28% 90% at 35% 50%, var(--accent) 0 60%, transparent 70%),
    radial-gradient(ellipse 30% 90% at 60% 60%, var(--accent) 0 60%, transparent 70%),
    radial-gradient(ellipse 25% 90% at 85% 55%, var(--accent) 0 60%, transparent 70%);
  filter: blur(0.4px);
  opacity: 0.95;
  transform: rotate(-0.4deg);
  pointer-events: none;
}

/* frame corner marks ┌ ┐ └ ┘ */
.frame-corners {
  position: relative;
}
.frame-corners::before,
.frame-corners::after {
  content: '';
  position: absolute;
  width: 14px; height: 14px;
  border: 1px solid var(--accent);
}
.frame-corners::before {
  top: -6px; left: -6px;
  border-right: 0; border-bottom: 0;
}
.frame-corners::after {
  bottom: -6px; right: -6px;
  border-left: 0; border-top: 0;
}

/* frame number badge (top-right corner) */
.frame-num {
  position: absolute; top: 12px; right: 14px;
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--fg-muted);
  z-index: 3;
}
.frame-num b {
  color: var(--accent);
  font-weight: 600;
}

/* =========================================================
   TOPNAV
   ========================================================= */
.topnav {
  position: sticky; top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
:root[data-theme="dark"] .topnav {
  background: color-mix(in srgb, var(--bg) 85%, transparent);
}
.topnav-inner {
  display: flex; align-items: center; gap: var(--gap-md);
  height: 56px;
}

/* REC indicator on far left */
.rec-stamp {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  flex-shrink: 0;
  font-weight: 500;
  padding: 4px 8px;
  border: 1px solid var(--accent-soft);
}
.rec-stamp .rec-dot {
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  animation: rec-blink 1.2s ease-in-out infinite;
  box-shadow: 0 0 8px var(--accent);
}
:root:not([data-theme="dark"]) .rec-stamp .rec-dot {
  background: var(--accent);
  border: none;
  box-shadow: 0 0 6px var(--accent);
}
@keyframes rec-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}

/* brand block: tiny logo + name + filename */
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--ink);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}
.brand .brand-mark {
  width: 18px; height: 18px;
  display: grid; place-items: center;
  color: var(--accent);
}
.brand .brand-mark svg { width: 100%; height: 100%; }
.brand .brand-name { white-space: nowrap; }
.brand .brand-path {
  display: none;
  color: var(--fg-muted);
  font-size: 11px;
  letter-spacing: 0.04em;
  margin-left: 4px;
  font-weight: 400;
}
@media (min-width: 720px) { .brand .brand-path { display: inline; } }

.brand b { color: var(--accent); font-weight: 600; }

/* nav links */
.topnav nav {
  display: none;
  margin-left: auto;
  align-items: center;
  gap: 4px;
}
@media (min-width: 860px) {
  .topnav nav { display: flex; }
}
.topnav nav a {
  position: relative;
  display: inline-block;
  padding: 8px 12px;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-muted);
  transition: color 0.18s ease;
}
.topnav nav a::before {
  content: '/';
  margin-right: 8px;
  color: var(--fg-muted);
  opacity: 0.5;
}
.topnav nav a:first-child::before { content: ''; margin: 0; }
.topnav nav a:hover { color: var(--ink); }
.topnav nav a.active {
  color: var(--accent);
}
.topnav nav a.active::before { color: var(--accent); opacity: 1; }

/* right-side cluster */
.topnav-right {
  display: inline-flex; align-items: center; gap: 6px;
  margin-left: auto;
}
@media (min-width: 860px) { .topnav-right { margin-left: 0; } }

/* theme toggle — minimal square */
.theme-toggle {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border: 1px solid var(--border);
  color: var(--ink);
  position: relative;
  transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease;
}
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); }
.theme-toggle svg { width: 14px; height: 14px; position: absolute; transition: opacity 0.2s ease, transform 0.3s ease; }
.theme-toggle .icon-sun  { opacity: 0; transform: rotate(-90deg) scale(0.6); }
.theme-toggle .icon-moon { opacity: 1; transform: rotate(0)     scale(1);   }
:root[data-theme="dark"] .theme-toggle .icon-sun  { opacity: 1; transform: rotate(0)     scale(1); }
:root[data-theme="dark"] .theme-toggle .icon-moon { opacity: 0; transform: rotate(90deg)  scale(0.6); }

/* hamburger */
.hamburger {
  display: grid; place-items: center;
  width: 34px; height: 34px;
  border: 1px solid var(--border);
  color: var(--ink);
  transition: border-color 0.18s ease, color 0.18s ease;
}
.hamburger:hover { border-color: var(--accent); color: var(--accent); }
.hamburger svg { width: 16px; height: 16px; }
@media (min-width: 860px) { .hamburger { display: none; } }

/* =========================================================
   MOBILE MENU
   ========================================================= */
.mobile-menu {
  position: fixed; inset: 0;
  z-index: 90;
  background: var(--bg);
  display: flex; flex-direction: column;
  padding: 20px;
  transform: translateY(-100%);
  transition: transform 0.32s cubic-bezier(0.65, 0, 0.35, 1);
  overflow-y: auto;
}
.mobile-menu.open { transform: translateY(0); }
body.menu-open { overflow: hidden; }

.mobile-menu-head {
  display: flex; align-items: center; justify-content: space-between;
  height: 56px;
  margin: -20px -20px 32px;
  padding: 0 20px;
  border-bottom: 1px solid var(--border);
}
.mobile-close {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border: 1px solid var(--border);
  color: var(--ink);
}
.mobile-close svg { width: 16px; height: 16px; }

.mobile-nav { display: flex; flex-direction: column; }
.mobile-nav a {
  display: flex; align-items: baseline; gap: 12px;
  padding: 18px 0;
  font-size: 22px;
  letter-spacing: -0.01em;
  font-weight: 500;
  color: var(--ink);
  border-bottom: 1px solid var(--border);
}
.mobile-nav a::before {
  content: counter(mnav, decimal-leading-zero);
  counter-increment: mnav;
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.1em;
  font-weight: 500;
}
.mobile-nav { counter-reset: mnav; }

.mobile-menu-foot {
  margin-top: auto;
  padding-top: 32px;
  display: flex; flex-direction: column; gap: 6px;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-muted);
}
.mobile-menu-foot .row { display: flex; gap: 12px; align-items: center; }
.mobile-menu-foot .rec-stamp { align-self: flex-start; }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  padding-block: clamp(48px, 8vw, 96px);
  position: relative;
  border-bottom: 1px solid var(--border);
}

/* faint film-stock background pattern (sprocket holes left/right) */
.hero::before,
.hero::after {
  content: '';
  position: absolute; top: 0; bottom: 0;
  width: 18px;
  background-image: linear-gradient(
    var(--bg) 0,
    var(--bg) 6px,
    transparent 6px,
    transparent 22px,
    var(--bg) 22px,
    var(--bg) 28px,
    transparent 28px,
    transparent 44px
  );
  background-size: 18px 44px;
  background-repeat: repeat-y;
  pointer-events: none;
  z-index: 1;
  opacity: 0;
}
@media (min-width: 900px) {
  .hero::before { left: 0; opacity: 1; }
  .hero::after { right: 0; opacity: 1; }
}

.hero-inner { position: relative; z-index: 2; }

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 28px;
}
.hero-eyebrow .sep { color: var(--fg-muted); opacity: 0.5; }

.hero h1 {
  font-size: var(--fs-h1);
  line-height: 0.94;
  letter-spacing: -0.03em;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 24px;
}
.hero h1 .line { display: block; }
.hero h1 .acc { color: var(--accent); }

.hero-lead {
  max-width: 56ch;
  font-size: 16px;
  line-height: 1.65;
  color: var(--fg-muted);
  margin-bottom: 36px;
}

.hero-cta {
  display: flex; flex-direction: column; gap: 14px;
  margin-bottom: 48px;
}
@media (min-width: 640px) {
  .hero-cta { flex-direction: row; align-items: stretch; }
}

/* terminal-prompt button */
.tbtn {
  display: inline-flex; align-items: center; justify-content: flex-start;
  gap: 10px;
  padding: 14px 18px;
  min-height: 50px;
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.02em;
  font-weight: 500;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--frame-line);
  position: relative;
  transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease;
  text-align: left;
  cursor: pointer;
}
.tbtn::before {
  content: '>';
  color: var(--accent);
  font-weight: 600;
}
.tbtn .cursor {
  display: inline-block;
  width: 8px; height: 14px;
  background: var(--accent);
  margin-left: 2px;
  animation: cursor-blink 1.05s steps(1) infinite;
  vertical-align: text-bottom;
}
@keyframes cursor-blink {
  0%, 49%   { opacity: 1; }
  50%, 100% { opacity: 0; }
}
.tbtn:hover { border-color: var(--accent); color: var(--accent); }
.tbtn-primary {
  background: var(--accent);
  color: var(--film);
  border-color: var(--accent);
}
.tbtn-primary::before { color: var(--film); }
.tbtn-primary .cursor { background: var(--film); }
.tbtn-primary:hover { background: var(--accent-2); border-color: var(--accent-2); color: var(--film); }
.tbtn-primary:hover::before { color: var(--film); }

@media (min-width: 640px) {
  .tbtn { min-width: 240px; }
}

/* trust strip — three short monospace rows */
.trust-strip {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  max-width: 720px;
}
@media (min-width: 720px) { .trust-strip { grid-template-columns: repeat(3, 1fr); } }
.trust-item {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 16px;
  background: var(--bg);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--fg);
}
.trust-item::before {
  content: '//';
  color: var(--accent);
  font-weight: 600;
  flex-shrink: 0;
}
.trust-item b { font-weight: 500; color: var(--ink); }
.trust-item span { color: var(--fg-muted); margin-left: auto; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; }

/* =========================================================
   SECTION HEAD
   ========================================================= */
.section-head {
  display: flex; flex-direction: column;
  gap: 12px;
  margin-bottom: var(--gap-xl);
  max-width: 720px;
}
.section-head .num-marker {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-muted);
  display: inline-flex; align-items: center; gap: 8px;
}
.section-head .num-marker b { color: var(--accent); font-weight: 500; }

/* =========================================================
   CONTACT SHEET (portfolio)
   ========================================================= */
.contact-sheet {
  position: relative;
  background: var(--bg-2);
  padding: 20px 8px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
:root[data-theme="dark"] .contact-sheet {
  background: var(--bg-2);
}
.contact-sheet-inner { position: relative; }

/* sprocket-hole gutters, left and right */
.contact-sheet::before,
.contact-sheet::after {
  content: '';
  position: absolute; top: 0; bottom: 0;
  width: 18px;
  background-image:
    linear-gradient(var(--bg-2) 0, var(--bg-2) 4px, transparent 4px, transparent 22px, var(--bg-2) 22px, var(--bg-2) 26px, transparent 26px, transparent 44px);
  background-size: 18px 44px;
  background-repeat: repeat-y;
  pointer-events: none;
  opacity: 0.0;
}
@media (min-width: 900px) {
  .contact-sheet::before, .contact-sheet::after { opacity: 1; }
}

.sheet-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  align-items: start;
}
@media (min-width: 720px) { .sheet-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
@media (min-width: 980px) { .sheet-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; } }

/* category filter row */
.filter-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 18px;
  margin: 0 0 28px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  background: var(--bg-2);
  font-family: var(--font-mono, 'IBM Plex Mono', ui-monospace, monospace);
  font-size: 0.78rem;
  color: var(--fg-muted);
}
.filter-row::before {
  content: 'FILTER:';
  letter-spacing: 0.12em;
  margin-right: 4px;
}
.filter-chip {
  background: transparent;
  border: 0;
  padding: 0;
  color: inherit;
  font: inherit;
  cursor: pointer;
  transition: color 0.18s ease;
}
.filter-chip::before { content: '[ '; opacity: 0.4; }
.filter-chip::after  { content: ' ]'; opacity: 0.4; }
.filter-chip:hover { color: var(--fg); }
.filter-chip:hover::before,
.filter-chip:hover::after { opacity: 0.8; }
.filter-chip:focus-visible { outline: 1px dashed var(--accent); outline-offset: 4px; }
.filter-chip.is-active { color: var(--accent); }
.filter-chip.is-active::before,
.filter-chip.is-active::after { opacity: 1; color: var(--accent); }

/* tile hidden state (used by category filter) */
.frame-tile.is-hidden { display: none; }
.sheet-grid.reanimate .frame-tile:not(.is-hidden) {
  animation: filter-fade-in 0.2s ease both;
}
@keyframes filter-fade-in {
  from { opacity: 0.35; transform: translateY(3px); }
  to   { opacity: 1;    transform: translateY(0); }
}

/* ---------- pagination row ---------- */
.pagination-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 20px 0 4px;
  font-family: var(--font-mono);
}
.page-btn,
.page-chip {
  background: none;
  border: 0;
  font-family: inherit;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--fg-muted);
  cursor: pointer;
  padding: 6px 4px;
  transition: color 0.18s ease;
}
.page-chip::before { content: '[ '; opacity: 0.4; }
.page-chip::after  { content: ' ]'; opacity: 0.4; }
.page-chip:hover { color: var(--fg); }
.page-chip:hover::before,
.page-chip:hover::after { opacity: 0.8; }
.page-chip:focus-visible { outline: 1px dashed var(--accent); outline-offset: 4px; }
.page-chip.is-active { color: var(--accent); }
.page-chip.is-active::before,
.page-chip.is-active::after { opacity: 1; color: var(--accent); }
.page-btn {
  padding: 6px 8px;
  color: var(--fg-muted);
}
.page-btn:hover:not(:disabled) { color: var(--fg); }
.page-btn:disabled {
  opacity: 0.3;
  cursor: default;
}
.page-chips {
  display: flex;
  align-items: center;
  gap: 2px;
}

/* tile hidden state — page-hidden used by pagination */
.frame-tile.is-page-hidden { display: none; }

/* individual frame tile */
.frame-tile {
  display: block;
  text-align: left;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  color: inherit;
  position: relative;
}
.frame-tile:focus-visible { outline-offset: 4px; }

.frame {
  position: relative;
  background: var(--film);
  overflow: hidden;
  border: 1px solid var(--frame-line);
  transition: border-color 0.18s ease, transform 0.25s ease;
}
.frame-tile:hover .frame { border-color: var(--accent); transform: translateY(-2px); }
.frame-tile:hover .frame::after { opacity: 1; }

/* after image — fills the card, sets its natural aspect ratio */
[data-tile-after] img {
  display: block;
  width: 100%;
  height: auto;
  filter: contrast(1.02);
}

/* before image — lives in the absolute-positioned thumbnail */
[data-tile-before] img {
  display: block;
  width: auto;
  height: 100%;
  object-fit: contain;
  filter: contrast(1.02);
}

/* before-image thumbnail — bottom-right corner inset */
[data-tile-before] {
  position: absolute;
  bottom: 8px;
  right: 8px;
  height: 45%;
  width: auto;
  border: 1px solid var(--frame-line);
  background: var(--bg);
  padding: 3px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.5);
  z-index: 2;
}

/* tiny "BEFORE" tag in the thumbnail's top-left corner */
[data-tile-before]::before {
  content: 'BEFORE';
  position: absolute;
  top: 4px;
  left: 4px;
  background: var(--bg);
  color: var(--accent);
  font-family: var(--font-mono, 'IBM Plex Mono', ui-monospace, monospace);
  font-size: 9px;
  letter-spacing: 0.12em;
  padding: 2px 6px;
  z-index: 3;
  line-height: 1.2;
  border: 1px solid var(--frame-line);
}
.frame::after {
  content: '';
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, transparent 60%, color-mix(in srgb, var(--ink) 14%, transparent) 100%);
  opacity: 0.7;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

/* thin white "frame" margin on dark mode to mimic the negative border */
:root[data-theme="dark"] .frame {
  background: var(--film);
  border-color: color-mix(in srgb, var(--film) 75%, transparent);
  box-shadow:
    inset 0 0 0 4px var(--film),
    inset 0 0 0 5px color-mix(in srgb, var(--ink) 12%, transparent);
}

/* red dot in the corner of each frame to suggest a frame mark */
.frame-tile .marker {
  position: absolute;
  bottom: 6px; left: 6px;
  width: 6px; height: 6px;
  background: var(--accent);
  z-index: 3;
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--film) 60%, transparent);
}

.frame-meta {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-muted);
}
.frame-meta b { color: var(--ink); font-weight: 500; }
.frame-meta .exif { color: var(--accent); }

/* =========================================================
   SERVICES
   ========================================================= */
.services {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
@media (min-width: 720px) { .services { grid-template-columns: repeat(2, 1fr); } }

.service {
  padding: 28px 20px;
  border-bottom: 1px solid var(--border);
  position: relative;
  transition: background 0.18s ease;
}
@media (min-width: 720px) {
  .service { border-right: 1px solid var(--border); }
  .service:nth-child(2n) { border-right: 0; }
  .service:nth-last-child(-n+2) { border-bottom: 0; }
}
@media (max-width: 719px) {
  .service:last-child { border-bottom: 0; }
  .hero-eyebrow .hide-mobile { display: none; }
}
.service:hover { background: var(--bg-2); }
.service .head {
  display: flex; align-items: baseline; gap: 12px;
  margin-bottom: 16px;
}
.service .num {
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--accent);
  font-weight: 500;
}
.service h3 {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.service p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--fg-muted);
  max-width: 38ch;
}
.service .arrow {
  position: absolute; top: 24px; right: 20px;
  color: var(--fg-muted);
  font-family: var(--font-mono);
  transition: color 0.18s ease, transform 0.18s ease;
}
.service:hover .arrow { color: var(--accent); transform: translateX(3px); }

/* =========================================================
   TESTIMONIALS
   ========================================================= */
.testimonials {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: start;
}
@media (min-width: 720px)  { .testimonials { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .testimonials { grid-template-columns: repeat(4, 1fr); } }

.testimonial {
  background: var(--bg-2);
  border: 1px solid var(--border);
  padding: 24px 20px;
  display: flex; flex-direction: column;
  gap: 14px;
  position: relative;
}
.testimonial::before {
  content: '';
  position: absolute; top: 0; left: 0;
  width: 0; height: 0;
  border-top: 8px solid var(--accent);
  border-right: 8px solid transparent;
}
.testimonial .head {
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--fg-muted);
  text-transform: uppercase;
  display: flex; align-items: center; gap: 8px;
  flex-wrap: wrap;
}
.testimonial .head .ok { color: var(--accent); font-weight: 500; }
.testimonial .head .ok::before { content: '// '; }
.testimonial .stars {
  font-family: var(--font-mono);
  letter-spacing: 0.18em;
  color: var(--accent);
  font-size: 13px;
}
.testimonial blockquote {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  color: var(--fg);
  flex-grow: 1;
}
.testimonial blockquote::before { content: '“'; color: var(--accent); }
.testimonial blockquote::after  { content: '”'; color: var(--accent); }
.testimonial .author {
  display: flex; align-items: center; gap: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 12px;
}
.testimonial .avatar {
  width: 32px; height: 32px;
  display: grid; place-items: center;
  background: var(--accent);
  color: var(--film);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
}
.testimonial .name { color: var(--ink); font-weight: 500; font-size: 13px; }
.testimonial .role { color: var(--fg-muted); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; }
.testimonial .screenshot {
  margin: -24px -20px 4px;
  padding: 8px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  display: grid; place-items: center;
  overflow: hidden;
}
.testimonial .screenshot img {
  max-width: 100%;
  max-height: 260px;
  width: auto; height: auto;
  object-fit: contain;
  display: block;
}
.testimonial { cursor: pointer; }
.testimonial:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.testimonial blockquote.is-truncated {
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}
.test-read-more {
  align-self: flex-start;
  background: none;
  border: 0;
  padding: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  cursor: pointer;
  letter-spacing: 0.04em;
  text-align: left;
  transition: opacity 0.18s ease;
}
.test-read-more:hover { opacity: 0.75; }
.test-read-more:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 3px;
}

/* =========================================================
   ABOUT PREVIEW (homepage)
   ========================================================= */
.about-preview {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: start;
}
@media (min-width: 860px) {
  .about-preview { grid-template-columns: 1fr 1fr; gap: 64px; }
}
.about-preview .badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 4px 10px;
  border: 1px solid var(--accent-soft);
  margin-bottom: 20px;
  width: max-content;
}
.about-preview p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--fg);
  margin-bottom: 16px;
}
.about-preview .cta { margin-top: 24px; }

/* =========================================================
   PRICING
   ========================================================= */
.pricing {
  display: flex; justify-content: center;
}
.pricing-card {
  width: 100%;
  max-width: 560px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  padding: 32px 24px;
  position: relative;
}
@media (min-width: 720px) { .pricing-card { padding: 40px 36px; } }
.pricing-card .header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.pricing-card .header .eyebrow { font-size: 11px; }
.pricing-card .header .ribbon {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}
.pricing-card .price {
  display: flex; align-items: baseline; gap: 10px;
  margin-bottom: 8px;
}
.pricing-card .price .num {
  font-size: clamp(56px, 12vw, 88px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--ink);
}
.pricing-card .price .per {
  font-size: 13px;
  color: var(--fg-muted);
  letter-spacing: 0.06em;
}
.pricing-card .price-sub {
  font-size: 13px;
  color: var(--fg-muted);
  margin-bottom: 24px;
}
.pricing-card .includes {
  display: flex; flex-direction: column;
  margin-bottom: 28px;
}
.pricing-card .includes li {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 12px 0;
  font-size: 13px;
  border-bottom: 1px dashed var(--border);
  color: var(--fg);
}
.pricing-card .includes li:last-child { border-bottom: 0; }
.pricing-card .includes li::before {
  content: '+';
  color: var(--accent);
  font-weight: 600;
  font-size: 14px;
  margin-top: 1px;
  flex-shrink: 0;
}
.pricing-card .fineprint {
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--fg-muted);
  margin-top: 16px;
  text-align: center;
}

/* =========================================================
   CONTACT
   ========================================================= */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
@media (min-width: 860px) { .contact-grid { grid-template-columns: 1.4fr 1fr; gap: 56px; } }

.contact-form {
  display: flex; flex-direction: column;
  gap: 18px;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-muted);
  display: flex; align-items: center; gap: 6px;
}
.field label::before {
  content: '[';
  color: var(--fg-muted);
}
.field label::after {
  content: ']';
  color: var(--fg-muted);
}
.input, .textarea {
  width: 100%;
  background: var(--bg);
  color: var(--ink);
  border: 1px solid var(--border);
  border-left: 2px solid var(--accent);
  padding: 12px 14px;
  font-family: var(--font-mono);
  font-size: 14px;
  transition: border-color 0.18s ease, background 0.18s ease;
  outline: none;
  border-radius: 0;
}
.input:focus, .textarea:focus {
  border-color: var(--accent);
  background: var(--bg-2);
}
.textarea { resize: vertical; min-height: 130px; }
.field-fineprint {
  font-size: 11px;
  color: var(--fg-muted);
  letter-spacing: 0.04em;
  line-height: 1.6;
}
.field-hint {
  font-size: 10px;
  color: var(--fg-muted);
  letter-spacing: 0.03em;
  margin-top: 4px;
}
.contact-form input[type="file"] {
  font-family: inherit;
  font-size: 12px;
  color: var(--fg);
  padding: 6px 0;
}
.contact-form input[type="file"]::file-selector-button {
  font-family: inherit;
  font-size: 11px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 2px;
  color: var(--fg);
  padding: 4px 10px;
  cursor: pointer;
  margin-right: 8px;
  letter-spacing: 0.04em;
}
.contact-form input[type="file"]::file-selector-button:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.form-status {
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--fg-muted);
  min-height: 1.2em;
}
.form-status.success {
  color: var(--accent);
}
.form-status.success svg { display: inline-block; vertical-align: -2px; margin-right: 3px; width: 10px; height: 10px; }
.form-status.error {
  color: color-mix(in srgb, var(--accent) 70%, var(--ink));
}

.contact-side {
  display: flex; flex-direction: column; gap: 20px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  padding: 24px 20px;
}
.contact-side h3 {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 8px;
}
.contact-side p {
  font-size: 13px;
  line-height: 1.65;
  color: var(--fg-muted);
  margin-bottom: 16px;
}
.contact-channels { display: flex; flex-direction: column; gap: 10px; }
.contact-channel {
  display: grid;
  grid-template-columns: 32px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--ink);
  transition: border-color 0.18s ease, color 0.18s ease;
}
.contact-channel:hover { border-color: var(--accent); color: var(--accent); }
.contact-channel .icon {
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border: 1px solid var(--border);
  color: var(--accent);
}
.contact-channel .icon svg { width: 14px; height: 14px; }
.contact-channel .info { display: flex; flex-direction: column; min-width: 0; }
.contact-channel .label { font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-muted); }
.contact-channel .value { font-size: 13px; color: var(--ink); margin-top: 2px; overflow-wrap: anywhere; }
.contact-channel .arrow { color: var(--fg-muted); transition: transform 0.18s ease, color 0.18s ease; }
.contact-channel:hover .arrow { color: var(--accent); transform: translateX(3px); }

/* =========================================================
   FOOTER
   ========================================================= */
.pagefoot {
  background: var(--bg-2);
  color: var(--fg-muted);
  border-top: 1px solid var(--border);
  padding-block: 56px 28px;
  position: relative;
}
:root:not([data-theme="dark"]) .pagefoot {
  background: var(--ink);
  color: color-mix(in srgb, var(--film) 75%, var(--bg-2));
  border-top-color: var(--ink);
}
:root:not([data-theme="dark"]) .pagefoot .foot-col h4 { color: color-mix(in srgb, var(--film) 55%, transparent); }
:root:not([data-theme="dark"]) .pagefoot .foot-col a { color: color-mix(in srgb, var(--film) 80%, var(--bg-2)); }
:root:not([data-theme="dark"]) .pagefoot .foot-col a:hover { color: var(--accent-2); }
:root:not([data-theme="dark"]) .pagefoot .foot-brand p { color: color-mix(in srgb, var(--film) 60%, transparent); }
:root:not([data-theme="dark"]) .pagefoot .foot-bottom { color: color-mix(in srgb, var(--film) 50%, transparent); border-top-color: color-mix(in srgb, var(--film) 18%, transparent); }

.foot-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-bottom: 40px;
}
@media (max-width: 719px) {
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid > .foot-brand { grid-column: 1 / -1; padding-inline: 8px; }
}
@media (min-width: 720px) { .foot-grid { grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; } }

.foot-brand .brand { margin-bottom: 16px; }
.foot-brand p {
  font-size: 13px;
  line-height: 1.65;
  color: var(--fg-muted);
  max-width: 42ch;
}

.foot-col h4 {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
  font-weight: 500;
}
.foot-col ul { display: flex; flex-direction: column; gap: 8px; }
.foot-col a {
  font-size: 13px;
  color: var(--fg);
  transition: color 0.18s ease;
}
.foot-col a:hover { color: var(--accent); }

.foot-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 11px;
  letter-spacing: 0.06em;
}
:root:not([data-theme="dark"]) .foot-bottom { border-top-color: color-mix(in srgb, var(--film) 18%, transparent); }

/* =========================================================
   COMPARISON MODAL
   ========================================================= */
.cmp-modal {
  position: fixed; inset: 0; z-index: 300;
  display: none;
  align-items: center; justify-content: center;
  padding: clamp(16px, 4vw, 32px);
}
.cmp-modal.open { display: flex; }
.cmp-backdrop {
  position: absolute; inset: 0;
  background: color-mix(in srgb, var(--ink) 88%, transparent);
  backdrop-filter: blur(6px);
  animation: fade-in 0.25s ease;
}
.cmp-container {
  position: relative;
  width: 100%;
  max-width: 880px;
  max-height: 90vh;
  display: flex; flex-direction: column;
  gap: var(--gap-md);
  animation: zoom-in 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes zoom-in {
  from { opacity: 0; transform: scale(0.94); }
  to   { opacity: 1; transform: scale(1); }
}
.cmp-frame {
  position: relative;
  background: var(--film);
  border: 1px solid var(--frame-line);
  overflow: hidden;
  width: min(880px, 100%);
  aspect-ratio: var(--cmp-ar, 4 / 5);
  max-height: 90vh;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
}
.cmp-img {
  position: absolute; inset: 0;
  display: grid;
  place-items: center;
}
.cmp-img img {
  display: block;
  min-width: 0;
  min-height: 0;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}
.cmp-scroll {
  position: absolute; inset: 0;
  overflow: hidden;
}
.cmp-img-wrap { position: absolute; inset: 0; }
.cmp-handle {
  position: absolute; top: 0; bottom: 0;
  left: 50%;
  width: 2px;
  background: var(--accent);
  transform: translateX(-1px);
  cursor: ew-resize;
  z-index: 5;
  box-shadow: 0 0 12px var(--red-glow);
}
.cmp-handle::before {
  content: '';
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 44px; height: 44px;
  background: var(--accent);
  display: grid; place-items: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.5), 0 0 0 2px var(--film);
}
.cmp-handle::after {
  content: '⇆';
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-size: 18px;
  color: var(--film);
  font-weight: 700;
  z-index: 1;
}
.cmp-handle:focus { outline: none; }
.cmp-handle:focus::before { box-shadow: 0 4px 16px rgba(0,0,0,0.5), 0 0 0 2px var(--film), 0 0 0 4px var(--accent); }
.cmp-labels {
  position: absolute; inset: 12px;
  pointer-events: none;
  z-index: 4;
}
.cmp-labels span {
  background: color-mix(in srgb, var(--ink) 70%, transparent);
  color: var(--film);
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 4px 8px;
}
.cmp-labels .label-after {
  position: absolute;
  bottom: 0;
  right: 0;
  background: var(--accent);
}

/* ---------- scroll-to-top button ---------- */
.scroll-top-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 250;
  height: 32px;
  padding: 0 14px;
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease, background 0.18s ease, color 0.18s ease;
}
.scroll-top-btn.is-visible { opacity: 1; visibility: visible; }
.scroll-top-btn:hover {
  background: var(--accent);
  color: var(--film);
}
.scroll-top-btn:focus-visible { outline: 1.5px dashed var(--accent); outline-offset: 4px; }
.scroll-top-btn svg { width: 12px; height: 12px; display: block; }

/* ---------- section nav rail (left side) ---------- */
.nav-rail {
  position: fixed;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.nav-rail.is-visible { opacity: 1; visibility: visible; }
.rail-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  text-decoration: none;
  color: var(--fg-muted);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  border-left: 1.5px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease;
}
.rail-link:hover { color: var(--fg); }
.rail-link.is-active {
  color: var(--accent);
  border-left-color: var(--accent);
}
.rail-num {
  font-size: 9px;
  opacity: 0.5;
  min-width: 14px;
}
.rail-label { text-transform: uppercase; }
@media (max-width: 900px) {
  .nav-rail { display: none; }
}

/* ---------- section nav dock (bottom) ---------- */
.nav-dock {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 0 8px;
  background: color-mix(in srgb, var(--bg-2) 92%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-top: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  opacity: 0;
  visibility: hidden;
  transform: translateY(100%);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}
.nav-dock.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dock-link {
  flex: 1;
  text-align: center;
  padding: 10px 4px;
  text-decoration: none;
  color: var(--fg-muted);
  text-transform: uppercase;
  border-bottom: 1.5px solid transparent;
  transition: color 0.18s ease, border-bottom-color 0.18s ease;
  white-space: nowrap;
}
.dock-link:hover { color: var(--fg); }
.dock-link.is-active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
@media (min-width: 901px) {
  .nav-dock { display: none; }
}

/* ---------- film tip: theme toggle hint for first mobile visit ---------- */
.film-tip {
  position: fixed;
  top: 64px;
  right: 20px;
  z-index: 100;
  max-width: 210px;
  background: var(--accent);
  color: var(--film);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: 0.04em;
  padding: 12px 14px;
  border: 1px solid color-mix(in srgb, var(--accent) 50%, #000);
  opacity: 0;
  visibility: hidden;
  transform: translateX(14px);
  transition: opacity 0.35s ease, visibility 0.35s ease, transform 0.35s ease;
}
.film-tip.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}
/* upward caret pointing to toggle area */
.film-tip::after {
  content: '';
  position: absolute;
  top: -5px;
  right: var(--tip-caret-right, 30px);
  width: 0; height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-bottom: 5px solid var(--accent);
}
.film-tip p { margin: 0; color: var(--film); }
.film-tip .tip-action {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-top: 4px;
  font-weight: 500;
}
.film-tip .tip-action .cursor {
  display: inline-block;
  width: 6px; height: 11px;
  background: var(--film);
  animation: cursor-blink 1.05s steps(1) infinite;
  vertical-align: text-bottom;
}
@media (min-width: 860px) {
  .film-tip { display: none; }
}

/* ---------- comparison zoom button ---------- */
.cmp-zoom-btn {
  position: absolute; bottom: 12px; left: 12px;
  z-index: 10;
  width: 36px; height: 36px;
  border-radius: 4px;
  background: var(--accent);
  border: 1px solid var(--accent);
  display: grid; place-items: center;
  cursor: pointer;
  color: var(--film);
  transition: background 0.18s, border-color 0.18s, box-shadow 0.18s;
}
.cmp-zoom-btn:hover {
  background: color-mix(in srgb, var(--accent) 80%, var(--ink));
  border-color: color-mix(in srgb, var(--accent) 80%, var(--ink));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 30%, transparent);
}
.cmp-zoom-btn:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px;
}
.cmp-zoom-btn svg { width: 18px; height: 18px; display: block; }
.cmp-zoom-btn .icon-zoom-out { display: none; }
.cmp-modal.is-zoomed .cmp-zoom-btn .icon-zoom-in  { display: none; }
.cmp-modal.is-zoomed .cmp-zoom-btn .icon-zoom-out { display: block; }

.cmp-zoom-controls {
  position: absolute;
  bottom: 12px; left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex; align-items: center; gap: 8px;
  background: color-mix(in srgb, var(--ink) 78%, transparent);
  border: 1px solid var(--frame-line);
  padding: 6px 12px;
  color: var(--film);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  white-space: nowrap;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.cmp-zoom-controls[hidden] { display: none; }
.cmp-zoom-controls input[type="range"] {
  width: 120px; height: 4px;
  accent-color: var(--accent);
  cursor: pointer; margin: 0;
}
.cmp-zoom-controls > span {
  font-size: 13px; line-height: 1;
  color: var(--accent); user-select: none;
}
.cmp-zoom-controls [data-cmp-zoom-value] {
  color: var(--film); min-width: 38px; text-align: right;
}

/* ---------- comparison zoom mode overrides ---------- */
.cmp-modal.is-zoomed .cmp-frame {
  overflow: visible;
  touch-action: auto;
}
.cmp-modal.is-zoomed .cmp-scroll {
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x pan-y;
}
.cmp-modal.is-zoomed .cmp-img-wrap {
  position: relative;
  width: fit-content;
  min-width: 100%;
  height: auto;
}
.cmp-modal.is-zoomed .cmp-img {
  position: absolute; inset: 0;
  display: block;
}
.cmp-modal.is-zoomed .cmp-img.cmp-after {
  position: static;
  display: block;
}
.cmp-modal.is-zoomed .cmp-img img {
  max-width: none;
  max-height: none;
  display: block;
  margin: 0 auto;
  width: auto;
  height: auto;
}

.cmp-meta {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--gap-md);
  background: var(--bg-2);
  border: 1px solid var(--border);
  padding: 16px 20px;
  color: var(--fg);
  flex-wrap: wrap;
}
.cmp-meta .category {
  font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
}
.cmp-meta .title {
  font-size: 18px;
  font-weight: 500;
  margin-top: 4px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.cmp-close {
  position: absolute; top: -14px; right: -14px;
  width: 40px; height: 40px;
  background: var(--bg);
  color: var(--ink);
  border: 1px solid var(--border);
  display: grid; place-items: center;
  z-index: 10;
  transition: background 0.18s ease, color 0.18s ease, transform 0.25s ease;
}
.cmp-close:hover { background: var(--accent); color: var(--film); transform: rotate(90deg); }
.cmp-close svg { width: 16px; height: 16px; }
@media (max-width: 640px) {
  .cmp-close { top: 8px; right: 8px; }
}

/* =========================================================
   TESTIMONIAL DETAIL MODAL
   ========================================================= */
.test-modal {
  position: fixed; inset: 0; z-index: 300;
  display: none;
  align-items: stretch; justify-content: center;
  padding: clamp(16px, 4vw, 32px);
}
.test-modal.open { display: flex; }
.test-backdrop {
  position: absolute; inset: 0;
  background: color-mix(in srgb, var(--ink) 88%, transparent);
  backdrop-filter: blur(6px);
  animation: fade-in 0.25s ease;
}
.test-frame {
  position: relative;
  width: 100%;
  max-width: 720px;
  max-height: 90vh;
  background: var(--bg-2);
  border: 1px solid var(--frame-line);
  overflow-y: auto;
  overflow-x: hidden;
  display: flex; flex-direction: column;
  animation: zoom-in 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.test-img {
  position: relative;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  padding: 16px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.test-img > [data-test-img] {
  display: grid; place-items: center;
  min-width: 0; min-height: 0;
}
.test-img img {
  display: block;
  max-width: 100%;
  max-height: 60vh;
  width: auto; height: auto;
  object-fit: contain;
}
.test-text {
  padding: 24px 28px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--fg);
  flex-grow: 1;
}
.test-text blockquote { margin: 0; }
.test-text blockquote::before { content: '“'; color: var(--accent); }
.test-text blockquote::after  { content: '”'; color: var(--accent); }
.test-author {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 28px 24px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  flex-shrink: 0;
}
.test-author .avatar {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  background: var(--accent);
  color: var(--film);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}
.test-author .name { color: var(--ink); font-weight: 500; font-size: 14px; }
.test-close {
  position: absolute; top: 12px; right: 12px;
  z-index: 5;
  width: 40px; height: 40px;
  background: var(--bg-2);
  border: 1px solid var(--frame-line);
  display: grid; place-items: center;
  cursor: pointer;
  color: var(--fg);
  transition: color 0.18s, border-color 0.18s;
}
.test-close:hover { color: var(--accent); border-color: var(--accent); }
.test-close:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.test-close svg { width: 20px; height: 20px; }
.test-zoom-btn {
  position: absolute;
  bottom: 12px; right: 12px;
  z-index: 3;
  width: 36px; height: 36px;
  background: var(--accent);
  border: 1px solid var(--accent);
  display: grid; place-items: center;
  cursor: pointer;
  color: var(--film);
  transition: background 0.18s, border-color 0.18s, box-shadow 0.18s;
}
.test-zoom-btn:hover {
  background: color-mix(in srgb, var(--accent) 80%, var(--ink));
  border-color: color-mix(in srgb, var(--accent) 80%, var(--ink));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 30%, transparent);
}
.test-zoom-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.test-zoom-btn svg { width: 18px; height: 18px; display: block; }
.test-zoom-btn .icon-zoom-out { display: none; }
.test-zoom-controls {
  position: absolute;
  bottom: 12px; left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex; align-items: center; gap: 8px;
  background: color-mix(in srgb, var(--ink) 78%, transparent);
  border: 1px solid var(--frame-line);
  padding: 6px 12px;
  color: var(--film);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  white-space: nowrap;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.test-zoom-controls[hidden] { display: none; }
.test-zoom-controls input[type="range"] {
  width: 120px;
  height: 4px;
  accent-color: var(--accent);
  cursor: pointer;
  margin: 0;
}
.test-zoom-controls > span {
  font-size: 13px;
  line-height: 1;
  color: var(--accent);
  user-select: none;
}
.test-zoom-value { color: var(--film) !important; min-width: 38px; text-align: right; }
.test-modal.is-zoomed .test-zoom-btn .icon-zoom-in  { display: none; }
.test-modal.is-zoomed .test-zoom-btn .icon-zoom-out { display: block; }
.test-modal.is-zoomed .test-img {
  flex: 1;
  padding: 0;
  border-bottom: 0;
  align-items: stretch;
  justify-content: flex-start;
  overflow: hidden;
}
.test-modal.is-zoomed .test-img > [data-test-img] {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  width: 100%;
  height: 100%;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x pan-y;
  user-select: none;
  -webkit-user-select: none;
  cursor: zoom-out;
}
.test-modal.is-zoomed .test-img img {
  max-width: none;
  max-height: none;
  width: auto;
  height: auto;
}
.test-modal.is-zoomed .test-text,
.test-modal.is-zoomed .test-author {
  display: none;
}
@media (max-width: 640px) {
  .test-text { padding: 20px; }
  .test-author { padding: 14px 20px 20px; }
  .test-close { top: 8px; right: 8px; }
  .test-zoom-btn { bottom: 10px; right: 10px; width: 44px; height: 44px; }
  .test-zoom-btn svg { width: 20px; height: 20px; }
  .test-zoom-controls { bottom: 10px; padding: 6px 10px; gap: 6px; font-size: 10px; }
  .test-zoom-controls input[type="range"] { width: 90px; }
  .cmp-zoom-btn { width: 44px; height: 44px; }
  .cmp-zoom-btn svg { width: 20px; height: 20px; }
  .cmp-zoom-controls { bottom: 10px; padding: 6px 10px; font-size: 10px; }
  .cmp-zoom-controls input[type="range"] { width: 90px; }
  .scroll-top-btn { bottom: 52px; right: 16px; height: 36px; padding: 0 12px; }
  .scroll-top-btn svg { width: 14px; height: 14px; }
}

/* nav-dock sits over footer on mobile — add bottom padding */
@media (max-width: 900px) {
  .foot-bottom { padding-bottom: 52px; }
}

/* =========================================================
   ERROR PAGES (404 / 500)
   ========================================================= */
.error-page {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex; align-items: center; justify-content: center;
  padding: clamp(24px, 5vw, 48px);
  position: relative;
  overflow: hidden;
}

.error-page::before {
  content: '';
  position: absolute; inset: 0;
  z-index: -1;
  background:
    radial-gradient(60% 60% at 50% 0%, var(--accent-wash), transparent 70%);
}

.error-inner {
  max-width: 540px;
  text-align: center;
  position: relative;
}

/* contact-sheet-with-torn-frame visual */
.error-art {
  width: clamp(220px, 50vw, 320px);
  aspect-ratio: 4 / 5;
  margin: 0 auto var(--gap-xl);
  position: relative;
  border: 1px solid var(--border);
  background: var(--bg-2);
  padding: 8px;
}
.error-art .frame {
  position: relative;
  width: 100%; height: 100%;
  background: var(--film);
  border: 1px solid var(--frame-line);
  display: grid; place-items: center;
  overflow: hidden;
}
.error-art .frame.torn {
  clip-path: polygon(
    0% 0%, 65% 0%, 70% 4%, 100% 6%, 100% 30%,
    96% 35%, 100% 40%, 98% 70%, 100% 100%, 60% 100%,
    55% 96%, 30% 100%, 0% 98%, 2% 65%, 0% 35%
  );
}
.error-art .frame.washed {
  filter: brightness(2) contrast(0.4);
  background: var(--film);
}
.error-art .code {
  font-size: clamp(64px, 16vw, 96px);
  font-weight: 600;
  color: var(--accent);
  letter-spacing: -0.04em;
  line-height: 1;
  text-shadow: 0 0 24px var(--red-glow);
}
.error-art .frame.washed .code { opacity: 0.4; }
.error-art .num-tag {
  position: absolute; top: 8px; right: 8px;
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--fg-muted);
  text-transform: uppercase;
  z-index: 3;
}
.error-art .num-tag b { color: var(--accent); }

.error-page h1 {
  font-size: clamp(28px, 5vw, 36px);
  margin-bottom: 14px;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.error-page p {
  color: var(--fg-muted);
  font-size: 15px;
  line-height: 1.65;
  margin-bottom: var(--gap-xl);
}
.error-page .error-code {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
  display: inline-flex; align-items: center; gap: 10px;
}
.error-page .error-code::before,
.error-page .error-code::after {
  content: '';
  display: inline-block; width: 24px; height: 1px;
  background: var(--accent);
}
.error-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* =========================================================
   SUBPAGE (about, terms, privacy)
   ========================================================= */
.subpage-hero {
  padding-block: clamp(48px, 7vw, 88px);
  max-width: 720px;
  margin-inline: auto;
  position: relative;
  border-bottom: 1px solid var(--border);
}
.subpage-hero .eyebrow { margin-bottom: 16px; }
.subpage-hero h1 { font-size: var(--fs-h1); margin-bottom: 16px; }
.subpage-hero p.lead { max-width: 56ch; }

.subpage-body { padding-block: var(--gap-2xl); }

/* generic prose */
.prose {
  max-width: 720px;
  margin-inline: auto;
}
.prose h2 {
  font-size: 20px;
  font-weight: 500;
  margin-top: var(--gap-xl);
  margin-bottom: var(--gap-md);
  padding-top: var(--gap-lg);
  border-top: 1px solid var(--border);
  letter-spacing: -0.01em;
  color: var(--ink);
  display: flex; align-items: baseline; gap: 12px;
}
.prose h2::before {
  content: '//';
  color: var(--accent);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.05em;
}
.prose h2:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
.prose p, .prose li {
  color: var(--fg);
  font-size: 15px;
  line-height: 1.75;
  margin-bottom: 16px;
}
.prose p { color: var(--fg-muted); }
.prose ol { padding-left: 0; counter-reset: prose-counter; }
.prose ol > li {
  counter-increment: prose-counter;
  position: relative; padding-left: 40px;
  margin-bottom: 14px;
}
.prose ol > li::before {
  content: counter(prose-counter, decimal-leading-zero);
  position: absolute; left: 0; top: 2px;
  font-size: 12px; font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.05em;
}
.prose ul > li {
  position: relative; padding-left: 20px;
  margin-bottom: 8px;
}
.prose ul > li::before {
  content: '+';
  position: absolute; left: 0; top: 0;
  color: var(--accent);
  font-weight: 600;
}

/* =========================================================
   ABOUT PAGE specific
   ========================================================= */
.about-story {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: start;
  margin-bottom: var(--gap-2xl);
}
@media (min-width: 860px) {
  .about-story { grid-template-columns: 1fr 1fr; gap: 64px; }
}
.about-story .badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 4px 10px;
  border: 1px solid var(--accent-soft);
  margin-bottom: 16px;
  width: max-content;
}
.about-story p { font-size: 15px; line-height: 1.75; color: var(--fg); margin-bottom: 14px; }

.values {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-bottom: var(--gap-2xl);
}
@media (min-width: 720px) { .values { grid-template-columns: repeat(3, 1fr); } }

.value {
  background: var(--bg);
  padding: 28px 20px;
  display: flex; flex-direction: column; gap: 12px;
}
.value .name {
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--accent);
  font-weight: 500;
}
.value h3 { font-size: 17px; font-weight: 500; color: var(--ink); }
.value p { font-size: 13px; line-height: 1.65; color: var(--fg-muted); }

.cta-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  padding: 32px 24px;
  display: flex; flex-direction: column;
  gap: 16px;
  align-items: flex-start;
  position: relative;
}
@media (min-width: 720px) {
  .cta-card { flex-direction: row; align-items: center; justify-content: space-between; padding: 32px 36px; }
}
.cta-card .eyebrow { font-size: 11px; }
.cta-card h3 { font-size: clamp(20px, 3vw, 26px); color: var(--ink); }
.cta-card p { font-size: 14px; color: var(--fg-muted); max-width: 50ch; }

/* =========================================================
   RESPONSIVE HELPERS
   ========================================================= */
.hide-mobile { display: none; }
@media (min-width: 720px) { .hide-mobile { display: initial; } }
.show-mobile { display: initial; }
@media (min-width: 720px) { .show-mobile { display: none; } }

/* =========================================================
   FOCUS
   ========================================================= */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* =========================================================
   REDUCED MOTION
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}

/* =========================================================
   theme transition smoothing for token-driven surfaces
   ========================================================= */
body, .topnav, .mobile-menu, .contact-form, .pricing-card,
.service, .testimonial, .value, .input, .textarea, .frame,
.contact-channel, .cmp-frame, .cmp-meta, .cmp-close,
.hamburger, .mobile-close, .error-art {
  transition: background-color 0.25s ease, color 0.25s ease,
              border-color 0.25s ease;
}
