/* ============================================================
   ANNA GRYNKO — Senior / Lead Product Designer
   Direction: Bold modern SYSTEMS design.
   Grid-forward, monospace metadata, kinetic display type,
   measurable-impact storytelling. Built for a FAANG / F500 bar.
   ============================================================ */

/* ---------- TOKENS ---------- */
:root,
[data-theme="dark"] {
  /* Surfaces — deep ink, layered panels */
  --bg: #0a0a0c;
  --surface: #101013;
  --surface-2: #16161b;
  --surface-3: #1c1c22;
  --panel: #131318;
  --divider: #25252c;
  --border: #2e2e36;
  --grid-line: rgba(255, 255, 255, 0.045);

  /* Text */
  --text: #e8e8ea;
  --text-strong: #ffffff;
  --text-muted: #9a9aa3;
  --text-faint: #6b6b75;
  --text-inverse: #0a0a0c;

  /* Accent — signal lime/chartreuse over ink: technical, confident, distinctive */
  --accent: #c8ff4d;
  --accent-2: #7af0c8;
  --accent-hover: #d6ff73;
  --accent-ink: #0a0a0c;
  --accent-soft: rgba(200, 255, 77, 0.12);
  --accent-line: rgba(200, 255, 77, 0.30);
  --accent-glow: rgba(200, 255, 77, 0.16);

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 26px;
  --radius-full: 999px;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 16px 40px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 40px 90px rgba(0, 0, 0, 0.6);

  --maxw: 1320px;
  --gutter: clamp(1.25rem, 5vw, 5rem);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.4, 0, 0.2, 1);
  --t-fast: 180ms;
  --t-med: 280ms;

  /* Type scale (fluid) */
  --text-xs: clamp(0.72rem, 0.7rem + 0.1vw, 0.78rem);
  --text-sm: clamp(0.84rem, 0.82rem + 0.12vw, 0.9rem);
  --text-base: clamp(1rem, 0.97rem + 0.15vw, 1.06rem);
  --text-body: clamp(1.05rem, 1rem + 0.3vw, 1.18rem); /* long-form reading body — ~17–19px */
  --text-lg: clamp(1.12rem, 1rem + 0.5vw, 1.35rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.1vw, 2.1rem);
  --text-2xl: clamp(2.1rem, 1.3rem + 3vw, 3.6rem);
  --text-3xl: clamp(2.8rem, 1.2rem + 5.4vw, 6rem);
  --text-hero: clamp(3.2rem, 0.4rem + 10vw, 9.5rem);

  --font-display: "Clash Display", "General Sans", -apple-system, sans-serif;
  --font-sans: "General Sans", "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "Geist Mono", "JetBrains Mono", ui-monospace, "SFMono-Regular", monospace;
}

[data-theme="light"] {
  --bg: #f3f6f3;
  --surface: #fbfdfb;
  --surface-2: #ffffff;
  --surface-3: #eaf1ec;
  --panel: #ffffff;
  --divider: #dde6df;
  --border: #cdd9d0;
  --grid-line: rgba(4, 120, 87, 0.05);

  --text: #15211b;
  --text-strong: #06120c;
  --text-muted: #4a5550;
  --text-faint: #687069;
  --text-inverse: #fbfdfb;

  /* Emerald accent system — vivid yet WCAG-AA on light surfaces */
  --accent: #047857;          /* primary — AA on bg (5.08) & white-on-it (5.48) */
  --accent-2: #0e7490;        /* teal secondary */
  --accent-vivid: #059669;    /* brighter emerald — large display text / gradients */
  --accent-bright: #10b981;   /* decorative glows only (not text) */
  --accent-hover: #036249;
  --accent-ink: #ffffff;
  --accent-soft: rgba(4, 120, 87, 0.09);
  --accent-line: rgba(4, 120, 87, 0.26);
  --accent-glow: rgba(16, 185, 129, 0.18);

  --shadow-sm: 0 1px 2px rgba(6, 40, 28, 0.05);
  --shadow-md: 0 16px 40px rgba(6, 40, 28, 0.10);
  --shadow-lg: 0 40px 90px rgba(6, 40, 28, 0.15);
}

/* ---------- RESET / BASE ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-padding-top: 6rem;
}
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.6;
  overflow-x: clip;
  transition: background var(--t-med) var(--ease-out), color var(--t-med) var(--ease-out);
}

img, picture, video, svg, canvas { display: block; max-width: 100%; height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 { text-wrap: balance; line-height: 1.02; font-weight: 600; letter-spacing: -0.02em; }
p, li { text-wrap: pretty; }

::selection { background: var(--accent); color: var(--accent-ink); }

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

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--text-strong); color: var(--bg);
  padding: 0.75rem 1.25rem; border-radius: var(--radius-sm);
}
.skip-link:focus { left: 1rem; top: 1rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ---------- LAYOUT ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
section { position: relative; }
.section-pad { padding-block: clamp(4.5rem, 10vw, 10rem); }
.section-pad-sm { padding-block: clamp(3rem, 6vw, 6rem); }

.mono {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-faint);
  font-variant-numeric: tabular-nums;
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--accent); display: inline-block; }

.display { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.03em; line-height: 0.96; }
.lead { font-size: var(--text-lg); color: var(--text-muted); max-width: 52ch; line-height: 1.5; }
.accent-txt { color: var(--accent); }

/* ---------- HEADER ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: transform 0.4s var(--ease-out), background 0.4s var(--ease-out), border-color 0.4s var(--ease-out);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: color-mix(in oklab, var(--bg) 82%, transparent);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom-color: var(--divider);
}
.site-header.hide { transform: translateY(-100%); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; font-weight: 600; letter-spacing: -0.02em; font-size: var(--text-base); }
.brand svg { width: 30px; height: 30px; color: var(--text-strong); }
.brand .brand-sub { font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: 0.04em; color: var(--text-faint); text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: clamp(1.25rem, 3vw, 2.4rem); }
.nav-links a { font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-muted); position: relative; padding-block: 0.25rem; transition: color var(--t-fast) var(--ease-out); }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: -2px; height: 1px; width: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform var(--t-fast) var(--ease-out); }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text-strong); }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.nav-right { display: flex; align-items: center; gap: 0.5rem; }
.theme-toggle, .menu-btn { width: 40px; height: 40px; display: grid; place-items: center; border-radius: var(--radius-full); color: var(--text-muted); transition: background var(--t-fast) var(--ease-out), color var(--t-fast) var(--ease-out); }
.theme-toggle:hover, .menu-btn:hover { background: var(--surface-3); color: var(--text-strong); }
.menu-btn { display: none; }

.mobile-menu { position: fixed; inset: 0; z-index: 99; background: var(--bg); display: flex; flex-direction: column; justify-content: center; gap: 1rem; padding: var(--gutter); opacity: 0; visibility: hidden; transition: opacity var(--t-med) var(--ease-out), visibility var(--t-med); }
.mobile-menu.open { opacity: 1; visibility: visible; }
.mobile-menu a { font-family: var(--font-display); font-size: var(--text-2xl); color: var(--text-strong); }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: var(--font-mono); font-size: var(--text-xs); font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase;
  padding: 0.95rem 1.5rem; border-radius: var(--radius-full);
  transition: transform var(--t-fast) var(--ease-out), background var(--t-fast) var(--ease-out), color var(--t-fast) var(--ease-out), border-color var(--t-fast) var(--ease-out), box-shadow var(--t-fast) var(--ease-out);
  will-change: transform;
}
.btn svg { width: 15px; height: 15px; transition: transform var(--t-fast) var(--ease-out); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-2px); box-shadow: 0 10px 30px var(--accent-glow); }
.btn-primary:hover svg { transform: translateX(3px); }
.btn-ghost { color: var(--text-strong); border: 1px solid var(--border); }
.btn-ghost:hover { border-color: var(--text-strong); transform: translateY(-2px); }
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { background: var(--accent-hover); transform: translateY(-2px); box-shadow: 0 10px 30px var(--accent-glow); }
.btn-accent:hover svg { transform: translateX(3px); }
.link-arrow { display: inline-flex; align-items: center; gap: 0.4rem; font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: 0.05em; text-transform: uppercase; font-weight: 500; color: var(--text-strong); }
.link-arrow svg { width: 15px; height: 15px; transition: transform var(--t-fast) var(--ease-out); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- REVEAL ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); will-change: opacity, transform; }
.reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.07s; }
.reveal-d2 { transition-delay: 0.14s; }
.reveal-d3 { transition-delay: 0.21s; }
.reveal-d4 { transition-delay: 0.28s; }

/* ============================================================
   HERO — kinetic systems grid
   ============================================================ */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden; padding-top: 72px; }
.hero-grid-bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(120% 90% at 50% 35%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(120% 90% at 50% 35%, #000 30%, transparent 80%);
}
.hero-glow {
  position: absolute; z-index: 0; pointer-events: none;
  width: 70vw; height: 70vw; max-width: 900px; max-height: 900px;
  top: -10%; right: -10%;
  background: radial-gradient(circle, var(--accent-glow), transparent 62%);
  filter: blur(20px);
}
.hero-inner { position: relative; z-index: 3; width: 100%; }
.hero-top { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: clamp(1.5rem, 3vw, 2.4rem); }
.hero-status { display: inline-flex; align-items: center; gap: 0.5rem; font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-muted); border: 1px solid var(--border); border-radius: var(--radius-full); padding: 0.4rem 0.85rem; }
.hero-status .pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 var(--accent-glow); animation: pulse 2.4s var(--ease-io) infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 var(--accent-glow); } 70% { box-shadow: 0 0 0 8px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }

.hero h1 {
  font-family: var(--font-display); font-weight: 600;
  font-size: var(--text-hero); line-height: 0.92; letter-spacing: -0.04em;
  max-width: 16ch; color: var(--text-strong);
}
.hero h1 .accent { color: var(--accent); }
.hero h1 .outline { -webkit-text-stroke: 1.5px var(--text-strong); color: transparent; }
.hero-sub { margin-top: clamp(1.5rem, 3vw, 2.2rem); font-size: var(--text-lg); color: var(--text-muted); max-width: 56ch; line-height: 1.5; }
.hero-cta { margin-top: clamp(2rem, 4vw, 2.8rem); margin-bottom: clamp(3rem, 8vw, 6rem); display: flex; flex-wrap: wrap; gap: 0.9rem; }

/* Proof bar — above the fold credibility */
.proofbar {
  border-block: 1px solid var(--divider);
  background: color-mix(in oklab, var(--surface) 60%, transparent);
}
.proofbar-row { display: grid; grid-template-columns: repeat(4, 1fr); }
.proofbar-cell { padding: clamp(1.5rem, 3vw, 2.4rem) clamp(0.5rem, 2vw, 1.5rem); border-left: 1px solid var(--divider); }
.proofbar-cell:first-child { border-left: 0; }
.proofbar-cell .pf-num { font-family: var(--font-display); font-weight: 600; font-size: var(--text-2xl); color: var(--text-strong); line-height: 1; letter-spacing: -0.03em; }
.proofbar-cell .pf-num .accent { color: var(--accent); }
.proofbar-cell .pf-lbl { font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-muted); margin-top: 0.7rem; line-height: 1.4; }

/* Logos / context strip */
.context-strip { border-bottom: 1px solid var(--divider); padding-block: clamp(1.75rem, 3vw, 2.5rem); }
.context-row { display: flex; align-items: center; gap: clamp(1.5rem, 4vw, 3.5rem); flex-wrap: wrap; }
.context-label { font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-faint); }
.context-item { font-family: var(--font-display); font-size: var(--text-lg); color: var(--text-muted); font-weight: 500; }

/* ============================================================
   SECTION HEADS
   ============================================================ */
.section-head { display: flex; flex-direction: column; gap: 1.1rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head h2 { font-family: var(--font-display); font-weight: 600; font-size: var(--text-2xl); color: var(--text-strong); max-width: 20ch; }
.section-head .lead { margin-top: 0.25rem; }
.section-head-row { flex-direction: row; justify-content: space-between; align-items: flex-end; gap: 2rem; flex-wrap: wrap; }
.section-head-row > div { flex: 1 1 auto; min-width: 0; }
@media (max-width: 640px) { .section-head-row { flex-direction: column; align-items: flex-start; gap: 1.25rem; } }

/* ============================================================
   FEATURED WORK — indexed system cards
   ============================================================ */
.work-list { display: flex; flex-direction: column; }
.work-card { display: block; position: relative; border-top: 1px solid var(--divider); padding-block: clamp(2.5rem, 5vw, 4rem); transition: padding var(--t-med) var(--ease-out); }
.work-card:last-child { border-bottom: 1px solid var(--divider); }
.work-grid { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: clamp(1.5rem, 4vw, 4rem); align-items: center; }
.work-card:nth-child(even) .work-visual { order: 2; }
.work-visual { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: var(--surface-3); aspect-ratio: 16/10; box-shadow: var(--shadow-sm); border: 1px solid var(--divider); transition: transform var(--t-med) var(--ease-out), box-shadow var(--t-med) var(--ease-out); }
.work-visual img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease-out); }
/* Mockup variant: show the full device frame on a neutral panel instead of cropping */
.work-visual--contain { background: var(--surface-2); display: grid; place-items: center; }
.work-visual--contain img { object-fit: contain; padding: clamp(0.5rem, 2.5vw, 1.75rem); }
.work-card:hover .work-visual { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.work-card:hover .work-visual img { transform: scale(1.03); }
.work-meta { display: flex; flex-direction: column; gap: 1rem; }
.work-num { font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); font-variant-numeric: tabular-nums; }
.work-meta h3 { font-family: var(--font-display); font-weight: 600; font-size: var(--text-xl); color: var(--text-strong); }
.work-meta p { color: var(--text-muted); max-width: 46ch; }
.work-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tag { font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: 0.03em; color: var(--text-muted); border: 1px solid var(--border); border-radius: var(--radius-full); padding: 0.3rem 0.8rem; }
.work-impact { display: flex; gap: clamp(1.5rem, 4vw, 3rem); margin-top: 0.5rem; flex-wrap: wrap; }
.impact-stat .num { font-family: var(--font-display); font-size: var(--text-xl); color: var(--text-strong); font-weight: 600; line-height: 1; letter-spacing: -0.02em; }
.impact-stat .num .accent { color: var(--accent); }
.impact-stat .lbl { font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: 0.03em; color: var(--text-muted); margin-top: 0.4rem; }

/* ============================================================
   IMPACT DASHBOARD — animated metrics, software feel
   ============================================================ */
.impact-dash { background: var(--surface); border-block: 1px solid var(--divider); }
.dash-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--divider); border: 1px solid var(--divider); border-radius: var(--radius-lg); overflow: hidden; }
.dash-cell { background: var(--panel); padding: clamp(1.75rem, 3vw, 2.5rem); display: flex; flex-direction: column; gap: 0.6rem; min-height: 190px; position: relative; transition: background var(--t-med) var(--ease-out); }
.dash-cell:hover { background: var(--surface-2); }
.dash-cell .d-num { font-family: var(--font-display); font-weight: 600; font-size: clamp(2.2rem, 4vw, 3.2rem); color: var(--text-strong); line-height: 1; letter-spacing: -0.03em; }
.dash-cell .d-num .accent { color: var(--accent); }
.dash-cell .d-num .unit { font-size: 0.5em; color: var(--text-muted); }
.dash-cell .d-lbl { font-size: var(--text-sm); color: var(--text-muted); margin-top: auto; max-width: 26ch; }
.dash-cell .d-tag { font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-faint); }
.dash-spark { height: 2px; background: var(--divider); border-radius: 2px; overflow: hidden; margin-top: 0.3rem; }
.dash-spark::after { content: ""; display: block; height: 100%; width: 0; background: var(--accent); transition: width 1.1s var(--ease-out) 0.2s; }
.dash-cell.in .dash-spark::after { width: var(--spark, 70%); }

/* ============================================================
   SYSTEM EXPLORER — signature interactive piece
   ============================================================ */
.sysx { background: var(--bg); }
.sysx-wrap { display: grid; grid-template-columns: 264px 1fr; gap: clamp(1.25rem, 2.4vw, 2rem); align-items: start; }
.sysx-rail { display: flex; flex-direction: column; gap: 0.3rem; position: sticky; top: 96px; }
.sysx-rail-head { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-faint); padding: 0 0.25rem 0.85rem; display: flex; align-items: center; gap: 0.5rem; }
.sysx-rail-head::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.sysx-tab { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 0.85rem; align-items: center; text-align: left; padding: 0.78rem 0.9rem 0.78rem 1.05rem; border-radius: 12px; border: 1px solid transparent; color: var(--text-muted); transition: background-color var(--t-fast) var(--ease-out), border-color var(--t-fast) var(--ease-out), color var(--t-fast) var(--ease-out); width: 100%; }
.sysx-tab::before { content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%) scaleY(0); transform-origin: center; width: 3px; height: 22px; border-radius: 0 3px 3px 0; background: var(--accent); transition: transform var(--t-med) var(--ease-out); }
.sysx-tab .sx-idx { font-family: var(--font-mono); font-size: 0.66rem; font-weight: 600; letter-spacing: 0.02em; color: var(--text-faint); width: 26px; height: 26px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--divider); border-radius: 7px; background: var(--surface); transition: all var(--t-fast) var(--ease-out); }
.sx-tab-txt { display: flex; flex-direction: column; gap: 0.05rem; min-width: 0; }
.sysx-tab .sx-name { font-weight: 600; color: var(--text); font-size: 0.95rem; line-height: 1.25; }
.sysx-tab .sx-sub { font-size: 0.74rem; color: var(--text-faint); line-height: 1.2; }
.sysx-tab:hover { background: var(--surface); color: var(--text); }
.sysx-tab:hover .sx-idx { border-color: var(--border); color: var(--text-muted); }
.sysx-tab.active { background: var(--surface-2); border-color: var(--divider); }
.sysx-tab.active::before { transform: translateY(-50%) scaleY(1); }
.sysx-tab.active .sx-idx { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }
.sysx-tab.active .sx-name { color: var(--text-strong); }
.sysx-tab.active .sx-sub { color: var(--text-muted); }
.sysx-panel { position: relative; background: var(--panel); border: 1px solid var(--divider); border-radius: var(--radius-lg); padding: clamp(1.5rem, 3vw, 2.5rem); min-height: 400px; overflow: hidden; }
.sysx-panel-bg { position: absolute; inset: 0; background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px); background-size: 40px 40px; -webkit-mask-image: radial-gradient(120% 100% at 100% 0, #000 30%, transparent 80%); mask-image: radial-gradient(120% 100% at 100% 0, #000 30%, transparent 80%); pointer-events: none; }
.sx-view { display: none; position: relative; z-index: 1; }
.sx-view.show { display: block; animation: sxFade 0.42s var(--ease-out); }
@keyframes sxFade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.sx-vhead { margin-bottom: 1.6rem; }
.sx-eyebrow { display: inline-block; font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.7rem; }
.sx-view h3 { font-family: var(--font-display); font-weight: 600; font-size: var(--text-xl); letter-spacing: -0.01em; color: var(--text-strong); margin-bottom: 0.5rem; display: flex; align-items: baseline; gap: 0.7rem; flex-wrap: wrap; }
.sx-ratio { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.02em; color: var(--text-faint); border: 1px solid var(--divider); border-radius: var(--radius-full); padding: 0.18rem 0.6rem; }
.sx-vhead p { color: var(--text-muted); max-width: 52ch; font-size: 0.95rem; line-height: 1.55; margin: 0; }
.sx-foot { display: flex; align-items: center; gap: 0.7rem; margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--divider); font-size: 0.8rem; color: var(--text-muted); }
.sx-ac-pill { font-family: var(--font-mono); font-size: 0.62rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); background: var(--accent-soft); border: 1px solid var(--accent-line); border-radius: var(--radius-full); padding: 0.22rem 0.55rem; flex: none; }
/* swatches */
.sx-swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(108px, 1fr)); gap: 0.7rem; }
.sx-swatch { border-radius: 12px; border: 1px solid var(--divider); overflow: hidden; background: var(--surface-2); transition: border-color var(--t-fast) var(--ease-out), transform var(--t-fast) var(--ease-out); }
.sx-swatch:hover { border-color: var(--border); transform: translateY(-2px); }
.sx-swatch .chip { display: block; width: 100%; height: 72px; padding: 0; border: 0; border-bottom: 1px solid var(--divider); border-radius: 0; }
.sx-swatch .meta { padding: 0.6rem 0.7rem; display: flex; flex-direction: column; gap: 0.12rem; }
.sx-swatch .meta .nm { font-size: 0.82rem; color: var(--text-strong); font-weight: 600; }
.sx-swatch .meta .hex { font-family: var(--font-mono); font-size: 0.7rem; color: var(--text-faint); }
/* type specimen */
.sx-type-row { display: flex; align-items: baseline; gap: 1rem; padding-block: 0.95rem; border-top: 1px solid var(--divider); flex-wrap: wrap; }
.sx-type-row:first-of-type { border-top: 0; }
.sx-type-row .spec { font-family: var(--font-display); color: var(--text-strong); line-height: 1; }
.sx-type-row .tk { margin-left: auto; text-align: right; display: flex; flex-direction: column; gap: 0.12rem; }
.sx-type-row .tk-nm { font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-muted); letter-spacing: 0.02em; }
.sx-type-row .tk-sz { font-family: var(--font-mono); font-size: 0.66rem; color: var(--text-faint); }
/* tokens grid */
.sx-tokens { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.6rem; }
.sx-token { display: flex; align-items: center; gap: 0.8rem; padding: 0.8rem 0.95rem; background: var(--surface-2); border: 1px solid var(--divider); border-radius: 10px; transition: border-color var(--t-fast) var(--ease-out); }
.sx-token:hover { border-color: var(--border); }
.sx-token .dot { width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--divider); flex: 0 0 auto; }
.sx-token .dot.ico { display: inline-flex; align-items: center; justify-content: center; background: var(--surface); font-family: var(--font-mono); font-size: 0.72rem; font-weight: 600; color: var(--accent); }
.sx-token .dot.ico[data-cat="radius"] { border-top-left-radius: 13px; border-bottom-right-radius: 3px; }
.sx-token .dot.ico[data-cat="motion"]::after { content: ""; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--accent); border-right-color: transparent; }
.sx-token .dot.ico[data-cat="elevation"] { box-shadow: 0 4px 10px rgba(0,0,0,0.55); }
.sx-token .dot.ico[data-cat="elevation"]::after { content: ""; width: 12px; height: 12px; border-radius: 3px; background: var(--accent); }
.sx-token .tinfo { display: flex; flex-direction: column; gap: 0.1rem; min-width: 0; }
.sx-token .tinfo .tn { font-family: var(--font-mono); font-size: 0.76rem; color: var(--text-strong); }
.sx-token .tinfo .tv { font-family: var(--font-mono); font-size: 0.68rem; color: var(--text-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sx-token .tcat { margin-left: auto; font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-faint); border: 1px solid var(--divider); border-radius: var(--radius-full); padding: 0.15rem 0.45rem; flex: none; }
/* components */
.sx-comp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0.7rem; }
.sx-comp { background: var(--surface-2); border: 1px solid var(--divider); border-radius: 12px; padding: 0; display: flex; flex-direction: column; overflow: hidden; transition: border-color var(--t-fast) var(--ease-out); }
.sx-comp:hover { border-color: var(--border); }
.sx-comp .cdemo { width: 100%; min-height: 70px; display: flex; align-items: center; gap: 0.55rem; flex-wrap: wrap; padding: 1.1rem; background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px); background-size: 18px 18px; }
.sx-comp .cdemo-field { flex-direction: column; align-items: stretch; gap: 0.3rem; }
.sx-comp .cmeta { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; padding: 0.65rem 0.85rem; border-top: 1px solid var(--divider); }
.sx-comp .cname { font-family: var(--font-mono); font-size: 0.68rem; color: var(--text-muted); }
.sx-comp .cstate { font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.04em; color: var(--text-faint); border: 1px solid var(--divider); border-radius: var(--radius-full); padding: 0.12rem 0.42rem; white-space: nowrap; }
.mini-btn { font-family: var(--font-sans); font-size: 0.74rem; font-weight: 600; letter-spacing: 0.01em; padding: 0.5rem 0.95rem; border-radius: 9px; display: inline-flex; align-items: center; }
.mini-btn.solid { background: var(--accent); color: var(--accent-ink); box-shadow: 0 2px 8px var(--accent-glow); }
.mini-btn.outline { border: 1px solid var(--border); color: var(--text); }
.mini-lab { font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-faint); }
.mini-input { width: 100%; padding: 0.5rem 0.7rem; border: 1px solid var(--border); border-radius: 8px; background: var(--bg); font-size: 0.74rem; color: var(--text-muted); }
.mini-toggle { width: 40px; height: 23px; border-radius: var(--radius-full); background: var(--accent); position: relative; flex: none; box-shadow: 0 2px 6px var(--accent-glow); }
.mini-toggle::after { content: ""; position: absolute; top: 3px; left: 20px; width: 17px; height: 17px; border-radius: 50%; background: var(--accent-ink); }
.mini-toggle-lab { font-size: 0.74rem; font-weight: 500; color: var(--text); }
.mini-badge { font-family: var(--font-sans); font-size: 0.72rem; font-weight: 600; padding: 0.32rem 0.65rem 0.32rem 0.5rem; border-radius: var(--radius-full); background: var(--accent-soft); color: var(--accent); border: 1px solid var(--accent-line); display: inline-flex; align-items: center; gap: 0.4rem; }
.mini-msg { font-family: var(--font-sans); font-size: 0.72rem; font-weight: 600; padding: 0.42rem 0.7rem; border-radius: 10px; display: inline-flex; align-items: center; line-height: 1.2; }
.sx-subhead { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-faint); margin: 1.4rem 0 0.7rem; }
.sx-subhead:first-of-type { margin-top: 0.6rem; }
.mini-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
.mini-bar { width: 100%; height: 6px; border-radius: 3px; background: var(--divider); overflow: hidden; }
.mini-bar > i { display: block; height: 100%; width: 68%; background: var(--accent); }
@media (max-width: 720px) {
  .sysx-wrap { grid-template-columns: 1fr; }
  .sysx-rail { position: static; flex-direction: row; flex-wrap: wrap; }
  .sysx-rail-head { width: 100%; padding-bottom: 0.5rem; }
  .sysx-tab { width: auto; flex: 1 1 calc(50% - 0.3rem); }
  .sysx-tab::before { display: none; }
}

/* ---------- Realistic Blinds To Go component set (modelled on the live UI) ---------- */
.btg-kit { --btg-red: #b02522; --btg-red-dark: #8a1c1a; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(0.9rem, 2vw, 1.4rem); }
.kit-block { background: var(--surface-2); border: 1px solid var(--divider); border-radius: var(--radius-md); padding: clamp(0.95rem, 2vw, 1.35rem); display: flex; flex-direction: column; gap: 0.85rem; }
.kit-label { font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-faint); }
.kit-row { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; }
.kit-states { font-family: var(--font-mono); font-size: 0.68rem; color: var(--text-faint); letter-spacing: 0.03em; }

/* Buttons — BTG red, near-square retail radius */
.btgc-btn { font-family: var(--font-sans); font-size: 0.82rem; font-weight: 600; line-height: 1; letter-spacing: 0.01em; padding: 0.72rem 1.05rem; border-radius: 4px; display: inline-flex; align-items: center; gap: 0.4rem; cursor: pointer; transition: background-color var(--t-fast) var(--ease-out), transform var(--t-fast) var(--ease-out), color var(--t-fast) var(--ease-out); }
.btgc-btn.sm { font-size: 0.76rem; padding: 0.55rem 0.85rem; }
.btgc-btn.solid { background: var(--btg-red); color: #fff; }
.btgc-btn.solid:hover { background: var(--btg-red-dark); transform: translateY(-1px); }
.btgc-btn.ghost { background: transparent; color: #f0e9e8; border: 1px solid rgba(176, 37, 34, 0.65); }
.btgc-btn.ghost:hover { background: rgba(176, 37, 34, 0.14); border-color: var(--btg-red); }
.btgc-btn.link { background: transparent; color: var(--btg-red); padding-inline: 0.2rem; font-weight: 600; }
.btgc-btn.link:hover { color: #d5413c; }
.btgc-btn.link.onred { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.btgc-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Promotional banner */
.btgc-promo { background: linear-gradient(180deg, #b02522, #951d1b); border-radius: 6px; padding: 0.85rem 1.05rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.9rem; color: #fff; }
.btgc-promo .promo-eyebrow { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.85; width: 100%; }
.btgc-promo .promo-deal { font-size: 0.98rem; }
.btgc-promo .promo-deal strong { font-weight: 700; letter-spacing: 0.01em; }
.btgc-promo .btgc-btn.link.onred { margin-left: auto; }

/* Store search field + button */
.btgc-search { display: flex; gap: 0.5rem; align-items: stretch; flex-wrap: wrap; }
.bs-field { flex: 1 1 200px; display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.6rem 0.85rem; border: 1px solid var(--border); border-radius: 4px; background: #fff; color: #6e6a66; font-size: 0.84rem; }
.bs-field svg { color: #6e6a66; flex: none; }

/* Trust badges */
.btgc-trust { display: inline-flex; align-items: center; gap: 0.45rem; font-size: 0.82rem; color: var(--text); padding: 0.5rem 0.8rem; border: 1px solid var(--divider); border-radius: var(--radius-full); background: var(--surface); }
.btgc-trust svg { color: var(--btg-red); flex: none; }

/* Store card */
.btgc-store { display: flex; gap: 0.9rem; padding: 0.85rem; border: 1px solid var(--divider); border-radius: 8px; background: var(--surface); }
.bs-thumb { flex: none; width: 84px; height: 84px; border-radius: 6px; background: linear-gradient(135deg, #2a2a31, #1c1c22); border: 1px solid var(--divider); position: relative; overflow: hidden; }
.bs-thumb::after { content: ""; position: absolute; inset: 14px 10px; border-radius: 2px; background: repeating-linear-gradient(90deg, rgba(240,236,230,0.22) 0 3px, transparent 3px 8px); }
.bs-body { display: flex; flex-direction: column; gap: 0.3rem; min-width: 0; }
.bs-name { font-weight: 600; font-size: 0.95rem; color: var(--text-strong); display: inline-flex; align-items: baseline; gap: 0.5rem; }
.bs-dist { font-family: var(--font-mono); font-size: 0.7rem; color: var(--text-muted); font-weight: 400; }
.bs-addr { font-size: 0.8rem; color: var(--text-muted); }
.bs-hours { font-size: 0.78rem; color: var(--text-muted); }
.bs-open { color: #4ea96a; font-weight: 600; }
.bs-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.35rem; }

/* List / Map segmented toggle */
.btgc-toggle { display: inline-flex; border: 1px solid var(--border); border-radius: var(--radius-full); padding: 3px; background: var(--surface); align-self: flex-start; }
.btgc-toggle .seg { font-size: 0.8rem; font-weight: 600; padding: 0.4rem 1.1rem; border-radius: var(--radius-full); color: var(--text-muted); cursor: pointer; transition: background-color var(--t-fast) var(--ease-out), color var(--t-fast) var(--ease-out); }
.btgc-toggle .seg.is-on { background: var(--btg-red); color: #fff; }

@media (max-width: 640px) {
  .btg-kit { grid-template-columns: 1fr; }
}

/* ============================================================
   PHILOSOPHY / PRINCIPLES
   ============================================================ */
.philosophy { background: var(--surface); border-block: 1px solid var(--divider); }
.philo-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.philo-statement { font-family: var(--font-display); font-weight: 600; font-size: var(--text-2xl); line-height: 1.06; letter-spacing: -0.025em; color: var(--text-strong); }
.philo-statement em { color: var(--accent); font-style: normal; }
.philo-cards { display: grid; gap: 0; }
.philo-card { padding: 1.5rem 0; border-top: 1px solid var(--divider); display: grid; grid-template-columns: auto 1fr; gap: 1.25rem; }
.philo-card:last-child { border-bottom: 1px solid var(--divider); }
.philo-card .pidx { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--accent); font-variant-numeric: tabular-nums; padding-top: 0.3rem; }
.philo-card h4 { font-size: var(--text-lg); color: var(--text-strong); margin-bottom: 0.4rem; font-weight: 600; }
.philo-card p { color: var(--text-muted); font-size: var(--text-base); }

/* ============================================================
   PROCESS
   ============================================================ */
.process-track { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1px; background: var(--divider); border: 1px solid var(--divider); border-radius: var(--radius-lg); overflow: hidden; }
.process-step { background: var(--panel); padding: clamp(1.5rem, 2.5vw, 2.2rem); display: flex; flex-direction: column; gap: 1rem; min-height: 230px; transition: background var(--t-med) var(--ease-out); }
.process-step:hover { background: var(--surface-2); }
.process-step .pnum { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--accent); font-variant-numeric: tabular-nums; letter-spacing: 0.06em; }
.process-step h4 { font-size: var(--text-lg); color: var(--text-strong); }
.process-step p { font-size: var(--text-sm); color: var(--text-muted); margin-top: auto; }
.process-ico { width: 30px; height: 30px; color: var(--accent); }

/* ============================================================
   CTA
   ============================================================ */
.cta { text-align: center; position: relative; overflow: hidden; }
.cta .hero-grid-bg { mask-image: radial-gradient(80% 80% at 50% 50%, #000 20%, transparent 75%); -webkit-mask-image: radial-gradient(80% 80% at 50% 50%, #000 20%, transparent 75%); }
.cta h2 { font-family: var(--font-display); font-weight: 600; font-size: var(--text-3xl); line-height: 0.98; color: var(--text-strong); max-width: 18ch; margin-inline: auto; letter-spacing: -0.035em; position: relative; }
.cta .lead { margin-inline: auto; text-align: center; max-width: 50ch; margin-top: 1.5rem; position: relative; }
.cta-actions { margin-top: 2.5rem; display: flex; justify-content: center; flex-wrap: wrap; gap: 0.9rem; position: relative; }

/* ---------- FOOTER ---------- */
.site-footer { border-top: 1px solid var(--divider); padding-block: clamp(3rem, 6vw, 5rem); }
.footer-grid { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; align-items: flex-start; }
.footer-brand { display: flex; flex-direction: column; gap: 0.75rem; max-width: 34ch; }
.footer-brand .display { font-size: var(--text-xl); color: var(--text-strong); }
.footer-brand p { color: var(--text-muted); font-size: var(--text-sm); }
.footer-links { display: flex; gap: clamp(2rem, 5vw, 4rem); }
.footer-col { display: flex; flex-direction: column; gap: 0.7rem; }
.footer-col .ftitle { font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 0.3rem; }
.footer-col a { font-size: var(--text-sm); color: var(--text-muted); transition: color var(--t-fast) var(--ease-out); }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { margin-top: clamp(2.5rem, 5vw, 4rem); padding-top: 1.5rem; border-top: 1px solid var(--divider); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-family: var(--font-mono); font-size: var(--text-xs); color: var(--text-faint); }

/* ============================================================
   PAGE HEADERS (about / work / case)
   ============================================================ */
.page-top { padding-top: calc(72px + clamp(3rem, 8vw, 7rem)); position: relative; }
.page-grid-bg { position: absolute; top: 0; left: 0; right: 0; height: 520px; z-index: 0; pointer-events: none; background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px); background-size: 64px 64px; mask-image: linear-gradient(180deg, #000 0%, transparent 100%); -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 100%); }
.has-grid { position: relative; z-index: 1; }
.page-top h1 { font-family: var(--font-display); font-weight: 600; font-size: var(--text-3xl); line-height: 0.98; color: var(--text-strong); letter-spacing: -0.035em; max-width: 18ch; }

/* ABOUT */
.about-hero { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: clamp(2rem, 5vw, 4rem); align-items: end; }
.about-portrait { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); aspect-ratio: 3/4; border: 1px solid var(--divider); }
.about-portrait img { width: 100%; height: 100%; object-fit: cover; }
.about-bio { max-width: 62ch; }
.about-bio p { margin-bottom: 1.2rem; font-size: var(--text-lg); color: var(--text); line-height: 1.6; }
.about-bio p.muted { color: var(--text-muted); font-size: var(--text-base); }

.timeline { display: flex; flex-direction: column; }
.tl-item { display: grid; grid-template-columns: 160px 1fr; gap: clamp(1rem, 3vw, 3rem); padding-block: clamp(1.75rem, 3vw, 2.5rem); border-top: 1px solid var(--divider); }
.tl-item:last-child { border-bottom: 1px solid var(--divider); }
.tl-when { font-family: var(--font-mono); font-size: var(--text-sm); color: var(--accent); font-variant-numeric: tabular-nums; }
.tl-role { font-size: var(--text-lg); color: var(--text-strong); font-weight: 600; }
.tl-co { color: var(--text-muted); font-weight: 500; font-family: var(--font-mono); font-size: var(--text-sm); }
.tl-meta { color: var(--text-muted); font-size: var(--text-sm); margin-top: 0.35rem; }
.tl-cred { display: inline-flex; align-items: center; gap: 0.4rem; margin-top: 0.6rem; font-family: var(--font-mono); font-size: var(--text-sm); font-weight: 600; color: var(--accent); text-decoration: none; border-bottom: 1px solid transparent; transition: border-color 0.2s var(--ease-out), opacity 0.2s var(--ease-out); }
.tl-cred:hover { border-color: var(--accent); }
.tl-cred svg { transition: transform 0.2s var(--ease-out); }
.tl-cred:hover svg { transform: translate(2px, -2px); }
.tl-points { margin-top: 0.9rem; display: flex; flex-direction: column; gap: 0.55rem; }
.tl-points li { color: var(--text-muted); font-size: var(--text-base); padding-left: 1.1rem; position: relative; max-width: 66ch; }
.tl-points li::before { content: ""; position: absolute; left: 0; top: 0.65em; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.tl-points li strong { color: var(--text); font-weight: 600; }

.skills-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1.5rem, 3vw, 2.5rem); }
.skill-block h4 { font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 1rem; }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip { font-size: var(--text-sm); color: var(--text); background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-full); padding: 0.4rem 0.9rem; transition: border-color var(--t-fast) var(--ease-out), color var(--t-fast) var(--ease-out); }
.chip:hover { border-color: var(--accent-line); color: var(--accent); }

/* ============================================================
   CASE STUDY
   ============================================================ */
.cs-hero { padding-top: calc(72px + clamp(3rem, 8vw, 7rem)); position: relative; }
.cs-hero h1 { font-family: var(--font-display); font-weight: 600; font-size: var(--text-3xl); line-height: 0.96; color: var(--text-strong); max-width: 18ch; letter-spacing: -0.035em; margin-top: 1.25rem; }
.cs-hero .lead { margin-top: 1.5rem; font-size: var(--text-lg); max-width: 56ch; color: var(--text-muted); line-height: 1.5; }
.cs-meta { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; margin-top: clamp(2.5rem, 5vw, 4rem); border-top: 1px solid var(--divider); padding-top: 2rem; }
.cs-meta .m-label { font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.5rem; }
.cs-meta .m-val { font-size: var(--text-sm); color: var(--text); }
.cs-cover { margin-top: clamp(2.5rem, 6vw, 5rem); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); background: var(--surface-3); border: 1px solid var(--divider); }
.cs-cover img { width: 100%; }
/* Full-width mockup cover: device frame centred on a clean panel, no crop */
.cs-cover--full { background: var(--surface-2); display: grid; place-items: center; }
.cs-cover--full img { width: 100%; max-width: 1200px; object-fit: contain; padding: clamp(1rem, 4vw, 3rem); }
/* Cover variant: fill the frame width with the full dashboard inset so nothing touches the edges */
.cs-cover.cs-cover--full img { max-width: none; padding: clamp(1rem, 2.5vw, 2rem); }

.cs-section { padding-block: clamp(3rem, 7vw, 6rem); }
.cs-twocol { display: grid; grid-template-columns: 240px 1fr; gap: clamp(1.5rem, 4vw, 4rem); align-items: start; }
.cs-twocol .cs-kicker { position: sticky; top: 96px; }
.cs-kicker .eyebrow { margin-bottom: 0.75rem; }
.cs-kicker h2 { font-family: var(--font-display); font-weight: 600; font-size: var(--text-xl); color: var(--text-strong); }
.cs-body p { font-size: var(--text-body); color: var(--text); line-height: 1.65; margin-bottom: 1.2rem; max-width: 66ch; }
.cs-body p.muted { color: var(--text-muted); font-size: var(--text-base); }
/* keep captions / quotes at their intended scale — override the .cs-body p cascade */
.cs-body .ba-caption { font-size: var(--text-sm); line-height: 1.5; max-width: 60ch; }
.cs-body .flow-quote { font-size: var(--text-base); line-height: 1.5; max-width: none; }
.cs-body strong { color: var(--text-strong); font-weight: 600; }
.cs-body em { color: var(--accent); font-style: normal; }

/* methodology callout — new for credibility */
.method { margin-top: 1.5rem; border: 1px solid var(--accent-line); background: var(--accent-soft); border-radius: var(--radius-md); padding: 1.25rem 1.4rem; }
.method .m-head { display: flex; align-items: center; gap: 0.5rem; font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.6rem; }
.method p { font-size: var(--text-sm); color: var(--text); margin: 0; max-width: none; line-height: 1.55; }
.method p + p { margin-top: 0.5rem; }
/* contribution attribution row */
.contrib { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-top: 1.25rem; }
.contrib .c-pill { font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: 0.03em; padding: 0.4rem 0.85rem; border-radius: var(--radius-full); border: 1px solid var(--border); color: var(--text-muted); }
.contrib .c-pill.mine { border-color: var(--accent-line); color: var(--accent); background: var(--accent-soft); }

.cs-figure { margin-block: clamp(2rem, 5vw, 4rem); }
.cs-figure img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); background: var(--surface-3); border: 1px solid var(--divider); }
.cs-figure figcaption { margin-top: 1rem; font-size: var(--text-sm); color: var(--text-muted); max-width: 62ch; }
.cs-figure.full { grid-column: 1 / -1; }

/* Before / after comparison */
.ba-grid { margin-top: clamp(2rem, 4vw, 3rem); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.25rem, 3vw, 2.25rem); align-items: start; }
@media (max-width: 820px) { .ba-grid { grid-template-columns: 1fr; } }
.ba-item { margin: 0; position: relative; }
.ba-tag { display: inline-flex; align-items: center; gap: 0.45rem; font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: 0.08em; text-transform: uppercase; font-weight: 500; padding: 0.32rem 0.7rem; border-radius: var(--radius-full); margin-bottom: 0.9rem; }
.ba-tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.ba-before { color: var(--text-muted); background: var(--surface-3); border: 1px solid var(--divider); }
.ba-after { color: var(--accent-ink); background: var(--accent); }
.ba-frame { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); background: var(--surface-3); border: 1px solid var(--divider); }
.ba-after ~ .ba-frame, .ba-item:last-child .ba-frame { border-color: var(--accent-line); }
.ba-frame img { width: 100%; display: block; }
.ba-item figcaption { margin-top: 1rem; font-size: var(--text-sm); color: var(--text-muted); max-width: 52ch; }
.ba-item figcaption strong { color: var(--text-strong); font-weight: 600; }

.decision { border-top: 1px solid var(--divider); padding-top: clamp(2rem, 4vw, 3rem); margin-top: clamp(2rem, 4vw, 3rem); }
.decision .dnum { font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: 0.06em; color: var(--accent); margin-bottom: 0.75rem; }
.decision h3 { font-family: var(--font-display); font-weight: 600; font-size: var(--text-xl); color: var(--text-strong); margin-bottom: 1rem; max-width: 24ch; }
.decision p { font-size: var(--text-lg); color: var(--text); line-height: 1.6; max-width: 66ch; }

.metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--divider); border: 1px solid var(--divider); border-radius: var(--radius-lg); overflow: hidden; }
.metric { background: var(--panel); padding: clamp(1.75rem, 3vw, 2.5rem); }
.metric .mnum { font-family: var(--font-display); font-weight: 600; font-size: var(--text-2xl); color: var(--text-strong); line-height: 1; letter-spacing: -0.03em; }
.metric .mnum .accent { color: var(--accent); }
.metric .mlbl { margin-top: 0.9rem; font-size: var(--text-sm); color: var(--text-muted); max-width: 30ch; }

.cs-next { border-top: 1px solid var(--divider); }
.cs-next-card { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 4rem); align-items: center; }
.cs-next-card .nv { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4/5; box-shadow: var(--shadow-sm); border: 1px solid var(--divider); }
.cs-next-card .nv img { width: 100%; height: 100%; object-fit: cover; object-position: center 28%; }

.mockup-pair { display: grid; grid-template-columns: 1.55fr 0.85fr; gap: clamp(1rem, 3vw, 2rem); align-items: center; }
.mockup-pair img { border-radius: var(--radius-md); box-shadow: var(--shadow-md); width: 100%; border: 1px solid var(--divider); }

/* FLOW / BEFORE-AFTER / SLIDER (preserved) */
.flow { border-top: 1px solid var(--divider); padding-top: clamp(2.25rem, 4vw, 3.25rem); margin-top: clamp(2.25rem, 4vw, 3.25rem); }
.flow:first-of-type { border-top: 0; margin-top: 0; padding-top: 0; }
.flow-head { display: flex; align-items: baseline; gap: 0.9rem; flex-wrap: wrap; }
.flow-tag { font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); font-weight: 500; }
.flow h3 { font-family: var(--font-display); font-weight: 600; font-size: var(--text-xl); color: var(--text-strong); letter-spacing: -0.02em; }
.flow > p { font-size: var(--text-body); color: var(--text); line-height: 1.65; max-width: 66ch; margin-top: 0.85rem; }

.ba-pair { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1rem, 2.5vw, 1.75rem); margin-top: clamp(1.5rem, 3vw, 2.25rem); }
.ba-item { display: flex; flex-direction: column; }
.ba-label { display: inline-flex; align-items: center; gap: 0.5rem; font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: 0.06em; text-transform: uppercase; font-weight: 500; margin-bottom: 0.7rem; }
.ba-label .dot { width: 8px; height: 8px; border-radius: 50%; }
.ba-label.before { color: var(--text-muted); }
.ba-label.before .dot { background: var(--text-faint); }
.ba-label.after { color: var(--accent); }
.ba-label.after .dot { background: var(--accent); }
.ba-item figure { margin: 0; border-radius: var(--radius-md); overflow: hidden; background: var(--surface-3); box-shadow: var(--shadow-md); border: 1px solid var(--divider); }
.ba-item.after figure { box-shadow: 0 18px 50px -22px var(--accent-glow), var(--shadow-md); border-color: var(--accent-line); }
.ba-item img { display: block; width: 100%; }
/* Decision 03 — both phone mockups locked to one shared height */
.ba-phones .ba-item figure { aspect-ratio: 941 / 1672; background: var(--surface-2); }
.ba-phones .ba-item img { width: 100%; height: 100%; object-fit: contain; }
.ba-caption { margin-top: 0.85rem; font-size: var(--text-sm); color: var(--text-muted); line-height: 1.5; }

.flow-quotes { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1rem, 2.5vw, 1.75rem); margin-top: 1.25rem; }
.flow-quote { padding: 1.1rem 1.25rem; border-radius: var(--radius-md); font-size: var(--text-base); line-height: 1.5; }
.flow-quote.before { background: var(--surface-2); border: 1px solid var(--divider); color: var(--text-muted); }
.flow-quote.after { background: var(--accent-soft); border: 1px solid var(--accent-line); color: var(--text); }
.flow-quote .q-who { display: block; margin-top: 0.5rem; font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-faint); }
.flow-quote.after .q-who { color: var(--accent); }

.compare { position: relative; width: 100%; border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-md); border: 1px solid var(--divider); user-select: none; touch-action: pan-y; cursor: ew-resize; background: var(--surface-3); }
.compare img { display: block; width: 100%; height: 100%; pointer-events: none; }
.compare .cmp-after { position: relative; width: 100%; }
.compare .cmp-after img { width: 100%; height: auto; object-fit: cover; object-position: left top; }
.compare .cmp-clip { position: absolute; inset: 0; overflow: hidden; width: 50%; }
.compare .cmp-clip img { position: absolute; left: 0; top: 0; max-width: none; object-fit: cover; object-position: left top; }
.compare .cmp-tag { position: absolute; top: 0.85rem; z-index: 3; font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: 0.06em; text-transform: uppercase; font-weight: 500; padding: 0.3rem 0.65rem; border-radius: 100px; backdrop-filter: blur(8px); }
.compare .cmp-tag.before { left: 0.85rem; background: rgba(0,0,0,.55); color: #fff; }
.compare .cmp-tag.after { right: 0.85rem; background: var(--accent); color: var(--accent-ink); }
.compare .cmp-handle { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--accent); z-index: 4; transform: translateX(-1px); }
.compare .cmp-knob { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 42px; height: 42px; border-radius: 50%; background: var(--accent); box-shadow: var(--shadow-md); display: grid; place-items: center; color: var(--accent-ink); }
.compare .cmp-knob svg { width: 20px; height: 20px; }

.flowrail { list-style: none; margin: clamp(1.5rem,3vw,2.25rem) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: step; position: relative; }
.flowrail li { position: relative; padding: 2.65rem 1.25rem 0; }
.flowrail li::before { counter-increment: step; content: counter(step, decimal-leading-zero); font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: 0.06em; color: var(--accent); font-weight: 500; }
.flowrail .s-dot { position: absolute; top: 1.9rem; left: 0; width: 11px; height: 11px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.flowrail .s-line { position: absolute; top: 2.4rem; left: 11px; right: 0; height: 2px; background: var(--divider); overflow: hidden; }
.flowrail .s-line::after { content: ""; position: absolute; inset: 0; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 0.7s var(--ease-out); }
.flowrail.is-on .s-line::after { transform: scaleX(1); }
.flowrail li:last-child .s-line { display: none; }
.flowrail h4 { font-size: var(--text-base); color: var(--text-strong); font-weight: 600; margin-top: 0.5rem; }
.flowrail p { font-size: var(--text-sm); color: var(--text-muted); line-height: 1.5; margin-top: 0.35rem; max-width: 24ch; }

.takeaways { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--divider); border: 1px solid var(--divider); border-radius: var(--radius-lg); overflow: hidden; margin-top: clamp(1.5rem,3vw,2rem); }
.takeaway { background: var(--panel); padding: clamp(1.5rem,2.5vw,2rem); }
.takeaway .t-num { font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: 0.06em; color: var(--accent); font-weight: 500; }
.takeaway h4 { font-family: var(--font-display); font-weight: 600; font-size: var(--text-lg); color: var(--text-strong); margin-top: 0.6rem; }
.takeaway p { font-size: var(--text-sm); color: var(--text-muted); line-height: 1.55; margin-top: 0.55rem; }

.prob-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--divider); border: 1px solid var(--divider); border-radius: var(--radius-lg); overflow: hidden; margin-top: clamp(1.75rem,3.5vw,2.5rem); }
.prob { background: var(--panel); padding: clamp(1.5rem,2.5vw,2rem); display: flex; flex-direction: column; }
.prob-stat { font-family: var(--font-display); font-weight: 600; font-size: clamp(2rem, 4vw, 2.75rem); line-height: 1; color: var(--text-strong); letter-spacing: -0.03em; }
.prob h3 { font-size: var(--text-lg); color: var(--text-strong); font-weight: 600; margin-top: 0.9rem; }
.prob p { font-size: var(--text-sm); color: var(--text-muted); line-height: 1.55; margin-top: 0.5rem; }
.prob-src { margin-top: auto; padding-top: 0.9rem; font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-faint); }
.prob-goal { background: var(--accent-soft); }
.prob-goal h3, .prob-goal .prob-stat { color: var(--text-strong); }
.prob-goal .prob-stat { color: var(--accent); }
.prob-goal p { color: var(--text); }

.flow-swap { margin-top: clamp(1.5rem,3vw,2.25rem); display: grid; gap: 0.85rem; }
.fs-row { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; padding: clamp(1rem,2vw,1.4rem) clamp(1.1rem,2.2vw,1.6rem); border-radius: var(--radius-md); border: 1px solid var(--divider); }
.fs-old { background: var(--surface-2); }
.fs-new { background: var(--accent-soft); border-color: var(--accent-line); }
.fs-tag { flex: 0 0 auto; font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: 0.06em; text-transform: uppercase; font-weight: 500; padding: 0.35rem 0.7rem; border-radius: 100px; }
.fs-tag.old { background: var(--divider); color: var(--text-muted); }
.fs-tag.new { background: var(--accent); color: var(--accent-ink); }
.fs-steps { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.fs-steps > span:not(.fs-arrow) { font-size: var(--text-sm); font-weight: 500; color: var(--text-strong); padding: 0.4rem 0.8rem; border-radius: 8px; background: var(--bg); border: 1px solid var(--divider); }
.fs-new .fs-steps > span:not(.fs-arrow) { border-color: var(--accent-line); }
.fs-arrow { color: var(--accent); font-size: var(--text-base); }

.ds-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1rem,2.5vw,1.75rem); margin-top: clamp(1.5rem,3vw,2.25rem); align-items: start; }
.ds-grid .cs-figure { margin: 0; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .sysx-wrap { grid-template-columns: 1fr; }
  .sysx-rail { position: static; flex-direction: row; overflow-x: auto; gap: 0.5rem; padding-bottom: 0.5rem; }
  .sysx-tab { min-width: 150px; }
}
@media (max-width: 900px) {
  .menu-btn { display: grid; }
  .nav-links.desktop { display: none; }
  .work-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .work-card:nth-child(even) .work-visual { order: 0; }
  .philo-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .process-track { grid-template-columns: 1fr 1fr; }
  .dash-grid { grid-template-columns: 1fr 1fr; }
  .proofbar-row { grid-template-columns: 1fr 1fr; }
  .proofbar-cell:nth-child(3) { border-left: 0; }
  .proofbar-cell:nth-child(odd) { border-left: 0; }
  .proofbar-cell:nth-child(3), .proofbar-cell:nth-child(4) { border-top: 1px solid var(--divider); }
  .about-hero { grid-template-columns: 1fr; align-items: start; }
  .about-portrait { max-width: 360px; }
  .skills-grid { grid-template-columns: 1fr; }
  .cs-meta { grid-template-columns: 1fr 1fr; }
  .cs-twocol { grid-template-columns: 1fr; gap: 1rem; }
  .cs-twocol .cs-kicker { position: static; }
  .metrics { grid-template-columns: 1fr; }
  .cs-next-card { grid-template-columns: 1fr; }
  .cs-next-card .nv { aspect-ratio: 3/4; }
  .cs-next-card .nv img { object-position: center 22%; }
  .mockup-pair { grid-template-columns: 1fr; }
  .tl-item { grid-template-columns: 1fr; gap: 0.5rem; }
  .ba-pair { grid-template-columns: 1fr; }
  .flow-quotes { grid-template-columns: 1fr; }
  .flowrail { grid-template-columns: 1fr 1fr; row-gap: 1.75rem; }
  .flowrail li:nth-child(2) .s-line { display: none; }
  .takeaways { grid-template-columns: 1fr; }
  .prob-grid { grid-template-columns: 1fr 1fr; }
  .ds-grid { grid-template-columns: 1fr; }
  .fs-row { align-items: flex-start; flex-direction: column; gap: 0.75rem; }
  .sx-tokens { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .process-track { grid-template-columns: 1fr; }
  .dash-grid { grid-template-columns: 1fr; }
  .proofbar-row { grid-template-columns: 1fr; }
  .proofbar-cell { border-left: 0 !important; border-top: 1px solid var(--divider); }
  .proofbar-cell:first-child { border-top: 0; }
  .hero h1 { font-size: clamp(2.8rem, 14vw, 4.2rem); }
  .cs-meta { grid-template-columns: 1fr; gap: 1.25rem; }
  .prob-grid { grid-template-columns: 1fr; }
}

@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 { opacity: 1 !important; transform: none !important; }
}

/* custom cursor */
@media (hover: hover) and (pointer: fine) {
  /* DOT: bright accent core that always stays visible */
  .cursor-dot { position: fixed; top: 0; left: 0; z-index: 10001; pointer-events: none; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); transform: translate(-50%, -50%); box-shadow: 0 0 10px 1px var(--accent-glow); transition: width 0.25s var(--ease-out), height 0.25s var(--ease-out), opacity 0.25s, box-shadow 0.22s var(--ease-out), background-color 0.22s var(--ease-out); }

  /* RING: consistently large at all times (no tiny idle state) with a soft glow */
  .cursor-ring { position: fixed; top: 0; left: 0; z-index: 10000; pointer-events: none; width: 48px; height: 48px; border-radius: 50%; border: 1.6px solid var(--accent-line); background: var(--accent-soft); transform: translate(-50%, -50%); opacity: 0.85; box-shadow: 0 0 0 1px var(--accent-glow), 0 0 16px 2px var(--accent-glow); transition: width 0.3s var(--ease-out), height 0.3s var(--ease-out), border-color 0.22s var(--ease-out), border-width 0.22s var(--ease-out), opacity 0.22s var(--ease-out), box-shadow 0.25s var(--ease-out), background-color 0.22s var(--ease-out); }

  /* BLEND DISC: a SOLID, hard-edged white disc that cleanly inverts text /
     objects it overlaps via mix-blend-mode: difference (no feathering — a
     gradient makes white text smear into a muddy blur). Kept smaller than the
     glowing ring so over plain black it reads as a tidy light core rather
     than a heavy washed-out circle. Created dynamically by main.js. */
  .cursor-blend { position: fixed; top: 0; left: 0; z-index: 9999; pointer-events: none; width: 30px; height: 30px; border-radius: 50%; background: #fff; transform: translate(-50%, -50%); opacity: 1; mix-blend-mode: difference; transition: width 0.3s var(--ease-out), height 0.3s var(--ease-out), opacity 0.25s; }

  /* HOVER over interactive elements: everything grows and intensifies */
  .cursor-dot.hover-active { width: 12px; height: 12px; box-shadow: 0 0 16px 3px var(--accent-glow); }
  .cursor-ring.hover-active { width: 72px; height: 72px; opacity: 1; border-width: 2px; border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent-glow), 0 0 28px 6px var(--accent-glow); }
  .cursor-blend.hover-active { width: 46px; height: 46px; opacity: 1; }

  /* Press feedback: a quick squeeze on mousedown */
  .cursor-ring.cursor-press { width: 38px; height: 38px; }
  .cursor-blend.cursor-press { width: 22px; height: 22px; }
}

/* utility additions */
.hide { display: none !important; }
html.menu-open, html.menu-open body { overflow: hidden; }
@media (hover: hover) and (pointer: fine) {
  body.has-cursor { cursor: none; }
  body.has-cursor a, body.has-cursor button, body.has-cursor [data-magnetic] { cursor: none; }
}

/* ---------- HEADER / FOOTER reconciliation ---------- */
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 1.5rem; }
.brand .brand-txt { display: inline-flex; flex-direction: column; line-height: 1.15; }
.brand .brand-sub { display: block; margin-top: 1px; }
.nav { display: flex; align-items: center; gap: clamp(1.1rem, 2.5vw, 2.2rem); height: auto; }
.nav > a { font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-muted); position: relative; padding-block: 0.25rem; transition: color var(--t-fast) var(--ease-out); }
.nav > a::after { content: ""; position: absolute; left: 0; bottom: -2px; height: 1px; width: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform var(--t-fast) var(--ease-out); }
.nav > a:hover, .nav > a[aria-current="page"] { color: var(--text-strong); }
.nav > a:hover::after, .nav > a[aria-current="page"]::after { transform: scaleX(1); }
.menu-btn { flex-direction: column; gap: 5px; }
.menu-btn span { display: block; width: 20px; height: 2px; background: currentColor; border-radius: 2px; transition: transform var(--t-fast) var(--ease-out), opacity var(--t-fast); }
html.menu-open .menu-btn span:first-child { transform: translateY(3.5px) rotate(45deg); }
html.menu-open .menu-btn span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
.eyebrow .s-dot { display: none; }
.footer-links-head { font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 0.85rem; display: block; }
.footer-col { display: flex; flex-direction: column; }
.footer-links { flex-direction: column; gap: 0.6rem !important; }
.footer-links a { color: var(--text-muted); font-size: var(--text-sm); transition: color var(--t-fast) var(--ease-out); }
.footer-links a:hover { color: var(--text-strong); }
@media (max-width: 768px) {
  .nav { display: none; }
  .menu-btn { display: flex; }
}

/* impact dashboard: 6 cells → 3 columns */
.impact-dash .dash-grid { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .impact-dash .dash-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .impact-dash .dash-grid { grid-template-columns: 1fr; } }
/* work-list wrapper */
.work-list { display: block; }

/* swatch internals */
.sx-swatch .chip { display: block; width: 100%; }
.sx-swatch .meta { display: flex; flex-direction: column; gap: 0.15rem; }
.sx-swatch .meta .nm { line-height: 1.2; word-break: normal; }
.sx-token .tinfo { display: flex; flex-direction: column; gap: 0.1rem; min-width: 0; }
.sx-token .tinfo .tn, .sx-token .tinfo .tv { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ── Design-system explorer: grid demo + caption (case studies) ── */
.sx-cap { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--text-faint); margin-top: 0.9rem; letter-spacing: 0.02em; }
.btg-grid-demo, .amway-grid-demo { display: grid; gap: 8px; margin-top: 1.5rem; height: 88px; }
.btg-grid-demo { grid-template-columns: repeat(12, 1fr); }
.amway-grid-demo { grid-template-columns: repeat(8, 1fr); }
.btg-grid-demo > span, .amway-grid-demo > span { background: var(--accent-soft); border: 1px solid var(--accent-line); border-radius: 4px; }
@media (max-width: 640px) {
  .btg-grid-demo { grid-template-columns: repeat(4, 1fr); height: 64px; }
  .amway-grid-demo { grid-template-columns: repeat(4, 1fr); height: 64px; }
  .btg-grid-demo > span:nth-child(n+5), .amway-grid-demo > span:nth-child(n+5) { display: none; }
}

/* ============================================================
   LIGHT MODE — engagement layer (emerald palette, AA-safe)
   Scoped to [data-theme="light"] so dark mode is untouched.
   ============================================================ */

/* Brighter, layered hero atmosphere — emerald aurora + warm light */
[data-theme="light"] .hero-glow {
  width: 80vw; height: 80vw; max-width: 1000px; max-height: 1000px;
  top: -14%; right: -12%;
  background:
    radial-gradient(circle at 60% 40%, var(--accent-glow), transparent 60%),
    radial-gradient(circle at 30% 70%, rgba(14, 116, 144, 0.12), transparent 65%);
  filter: blur(8px);
}
[data-theme="light"] .hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(60% 50% at 85% 8%, rgba(16, 185, 129, 0.14), transparent 70%),
    radial-gradient(55% 45% at 10% 95%, rgba(14, 116, 144, 0.10), transparent 70%);
}

/* Large display accent words get a lively emerald gradient (decorative — paired text stays AA) */
[data-theme="light"] .hero h1 .accent,
[data-theme="light"] .display .accent,
[data-theme="light"] h2 .accent {
  background: linear-gradient(115deg, var(--accent) 0%, var(--accent-vivid) 55%, var(--accent-bright) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* Animated nav underline thickens + emerald on hover */
[data-theme="light"] .nav-links a::after { height: 2px; background: linear-gradient(90deg, var(--accent), var(--accent-vivid)); }

/* Work cards: emerald lift on hover + number badge pops */
[data-theme="light"] .work-card { transition: padding var(--t-med) var(--ease-out), background var(--t-med) var(--ease-out); }
[data-theme="light"] .work-card:hover { background: linear-gradient(90deg, var(--accent-soft), transparent 55%); }
[data-theme="light"] .work-card:hover .work-num { color: var(--accent-vivid); }
[data-theme="light"] .work-num { font-weight: 600; }

/* Proof bar gets a subtle emerald top accent + animated numbers pop */
[data-theme="light"] .proofbar { background: linear-gradient(180deg, var(--accent-soft), transparent 40%); border-top: 2px solid var(--accent-line); }
[data-theme="light"] .proofbar-cell .pf-num .accent {
  background: linear-gradient(120deg, var(--accent), var(--accent-vivid));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
}

/* Tags: tinted, lively chips */
[data-theme="light"] .tag { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent-hover); }

/* Section eyebrow + flow tags: vivid emerald */
[data-theme="light"] .flow-tag { color: var(--accent); font-weight: 600; }
[data-theme="light"] .eyebrow { color: var(--accent); }
[data-theme="light"] .eyebrow::before { background: linear-gradient(90deg, var(--accent), var(--accent-vivid)); height: 2px; }

/* Buttons: gradient primary with glow for energy */
/* Button gradient kept within AA-safe emerald range (white text >= 5.0 across the whole fill) */
[data-theme="light"] .btn-primary,
[data-theme="light"] .btn-accent {
  background: linear-gradient(120deg, var(--accent-hover), var(--accent));
  box-shadow: 0 6px 18px rgba(4, 120, 87, 0.22);
}
[data-theme="light"] .btn-primary:hover,
[data-theme="light"] .btn-accent:hover {
  background: linear-gradient(120deg, #02503b, var(--accent-hover));
  box-shadow: 0 12px 32px rgba(4, 120, 87, 0.32);
}

/* Case-study cover: warm emerald-tinted frame */
[data-theme="light"] .cs-cover { border-color: var(--accent-line); box-shadow: 0 24px 60px rgba(6, 40, 28, 0.12); }

/* Links / link-arrow hover energy */
[data-theme="light"] .link-arrow { color: var(--accent); }
[data-theme="light"] .link-arrow:hover { color: var(--accent-hover); }

/* Hero status pulse dot — brighter emerald ring */
[data-theme="light"] .hero-status .pulse { background: var(--accent-vivid); }

/* ============================================================
   TRINITY (Project 03) — scoped case-study theme + components
   Indigo/violet/gold school palette, applied only on .trinity
   ============================================================ */
.trinity { --tri-violet:#a78bfa; --tri-violet-deep:#7c3aed; --tri-gold:#fbbf24; --tri-rose:#f87171; }

/* Trinity accent recolours within the case study (does not touch global tokens) */
.trinity .eyebrow { color: var(--tri-violet); }
.trinity .cs-hero h1 .hl,
.trinity .accent-txt { color: var(--tri-violet); }
.trinity .proofbar-cell .pf-num .accent { color: var(--tri-violet); }
.trinity .flow-tag { background: rgba(167,139,250,0.14); color: var(--tri-violet); border-color: rgba(167,139,250,0.32); }
.trinity .flowrail .s-dot { background: var(--tri-violet); box-shadow: 0 0 0 4px rgba(167,139,250,0.16); }
.trinity .c-pill.mine { background: rgba(167,139,250,0.14); color: var(--tri-violet); border-color: rgba(167,139,250,0.3); }
.trinity .metric .mnum .accent { color: var(--tri-violet); }

/* Trinity sysx explorer — recolour the active rail + signal to violet/gold */
.trinity .sysx-rail-head::before { background: var(--tri-violet); box-shadow: 0 0 0 3px rgba(167,139,250,0.18); }
.trinity .sysx-tab.active { color: var(--text-strong); }
.trinity .sysx-tab.active .sx-idx { background: var(--tri-violet); color: #fff; }
.trinity .sysx-tab::before { background: var(--tri-violet); }
.trinity .sx-ac-pill { background: rgba(167,139,250,0.16); color: var(--tri-violet); }

/* Dual-device showcase: parent mobile + student desktop side by side */
.dualdev { display: grid; grid-template-columns: 1.55fr 0.9fr; gap: clamp(1.25rem, 3vw, 2.25rem); align-items: stretch; margin-top: clamp(1.5rem, 3vw, 2.25rem); }
.dualdev .dd-cell { background: var(--surface); border: 1px solid var(--divider); border-radius: var(--radius-lg); padding: clamp(1rem, 2vw, 1.5rem); display: flex; flex-direction: column; }
.dualdev .dd-cell img { width: auto; max-width: 100%; height: 539px; margin: 0 auto; border-radius: var(--radius-md); display: block; border: 1px solid var(--border); }
.dualdev .dd-tag { font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: 0.05em; text-transform: uppercase; color: var(--tri-violet); margin-bottom: 0.75rem; display: flex; align-items: center; gap: 0.5rem; }
.dualdev .dd-tag .dd-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--tri-violet); }
.dualdev .dd-cap { font-size: var(--text-sm); color: var(--text-muted); margin-top: 0.85rem; line-height: 1.5; }
@media (max-width: 820px) { .dualdev { grid-template-columns: 1fr; } }

/* Problems-during-process log */
.problog { display: grid; gap: 1px; background: var(--divider); border: 1px solid var(--divider); border-radius: var(--radius-lg); overflow: hidden; margin-top: clamp(1.5rem, 3vw, 2.25rem); }
.prob-item { background: var(--panel); padding: clamp(1.3rem, 2.4vw, 1.9rem); display: grid; grid-template-columns: auto 1fr; gap: clamp(1rem, 2vw, 1.5rem); align-items: start; }
.prob-item .pn { font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: 0.08em; color: var(--tri-violet); padding-top: 0.2rem; white-space: nowrap; }
.prob-item h4 { font-family: var(--font-display); font-weight: 500; font-size: var(--text-lg); color: var(--text-strong); margin-bottom: 0.45rem; }
.prob-item .pp { color: var(--text-muted); line-height: 1.6; font-size: var(--text-sm); }
.prob-item .pfix { margin-top: 0.7rem; font-size: var(--text-sm); color: var(--text); display: flex; gap: 0.55rem; line-height: 1.55; }
.prob-item .pfix b { color: var(--tri-violet); font-weight: 600; white-space: nowrap; font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: 0.04em; text-transform: uppercase; padding-top: 0.15rem; }
@media (max-width: 640px) { .prob-item { grid-template-columns: 1fr; gap: 0.5rem; } }

/* Collaboration timeline (cross-functional, distributed) */
.collab { margin-top: clamp(1.5rem, 3vw, 2.25rem); }
.collab-row { display: grid; grid-template-columns: 130px 1fr; gap: clamp(1rem, 2.5vw, 2rem); padding: clamp(1.1rem, 2vw, 1.6rem) 0; border-top: 1px solid var(--divider); }
.collab-row:first-child { border-top: 0; }
.collab-row .phase { font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: 0.06em; text-transform: uppercase; color: var(--tri-violet); }
.collab-row .phase .ph-loc { display: block; color: var(--text-faint); margin-top: 0.35rem; text-transform: none; letter-spacing: 0; }
.collab-row h4 { font-family: var(--font-display); font-weight: 500; font-size: var(--text-md); color: var(--text-strong); margin-bottom: 0.4rem; }
.collab-row p { color: var(--text-muted); font-size: var(--text-sm); line-height: 1.6; }
.collab-row .who { margin-top: 0.7rem; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.collab-row .who span { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.03em; color: var(--text-muted); background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-full); padding: 0.3rem 0.7rem; }
@media (max-width: 640px) { .collab-row { grid-template-columns: 1fr; gap: 0.5rem; } }

/* ============================================================
   TRINITY — marketing scene images, phone-frame mockups, prototype CTA
   ============================================================ */

/* Full-bleed marketing/product-presentation image */
.trinity .mkt-shot { grid-column: 1 / -1; margin-block: clamp(2rem, 5vw, 4rem); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--divider); box-shadow: var(--shadow-md); background: var(--surface-3); }
.trinity .mkt-shot img { display: block; width: 100%; }
.trinity .mkt-shot figcaption { padding: 0.95rem clamp(1rem, 2.5vw, 1.6rem); font-size: var(--text-sm); color: var(--text-muted); border-top: 1px solid var(--divider); background: var(--surface); }

/* Phone-frame mockup row for parent mobile screens */
.trinity .phonerow { grid-column: 1 / -1; margin-top: clamp(1.75rem, 4vw, 3rem); display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1rem, 2.5vw, 2rem); align-items: start; }
.trinity .phonefig { display: flex; flex-direction: column; align-items: center; text-align: center; }
.trinity .phone-mk { position: relative; width: 100%; max-width: 252px; border-radius: 46px; background: linear-gradient(155deg, #2a2a2c 0%, #131314 30%, #050506 70%, #1a1a1c 100%); padding: 9px; box-shadow: 0 44px 84px -18px rgba(0,0,0,0.66), 0 8px 22px rgba(0,0,0,0.4), inset 0 0 0 1px rgba(255,255,255,0.07); }
/* glossy black inner bezel rim */
.trinity .phone-mk::before { content: ""; position: absolute; inset: 3px; border-radius: 43px; background: #050506; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.05), inset 0 1px 2px rgba(255,255,255,0.08); pointer-events: none; z-index: 1; }
/* right-edge side buttons (power) */
.trinity .phone-mk::after { content: ""; position: absolute; right: -2px; top: 132px; width: 3px; height: 58px; border-radius: 0 2px 2px 0; background: linear-gradient(#2a2a2c, #131314); }
/* left-edge side buttons (volume + silent) */
.trinity .phone-mk .btns-l { position: absolute; left: -2px; top: 92px; width: 3px; height: 26px; border-radius: 2px 0 0 2px; background: linear-gradient(#2a2a2c, #131314); box-shadow: 0 40px 0 #2a2a2c, 0 40px 0 0 #131314, 0 84px 0 #2a2a2c; }
/* real iOS notch — wide rounded-bottom rectangle */
.trinity .phone-mk .notch { position: absolute; top: 9px; left: 50%; transform: translateX(-50%); width: 47%; height: 26px; background: #000; border-radius: 0 0 19px 19px; z-index: 6; }
.trinity .phone-mk .notch::before { content: ""; position: absolute; top: 50%; left: 26%; transform: translateY(-50%); width: 30px; height: 5px; border-radius: 3px; background: #0c0c0e; box-shadow: inset 0 0 0 1px rgba(60,70,90,0.4); }
.trinity .phone-mk .notch::after { content: ""; position: absolute; top: 50%; right: 22%; transform: translateY(-50%); width: 7px; height: 7px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #1e2838, #050608); box-shadow: inset 0 0 0 1px rgba(90,110,160,0.3); }
.trinity .phone-mk .scr { position: relative; border-radius: 38px; overflow: hidden; background: #000; box-shadow: inset 0 0 0 1px rgba(0,0,0,0.6); z-index: 2; }
.trinity .phone-mk .scr img { display: block; width: 100%; }
.trinity .phonefig .ph-tag { font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: 0.05em; text-transform: uppercase; color: var(--tri-violet); margin-top: 1rem; display: inline-flex; align-items: center; gap: 0.45rem; }
.trinity .phonefig .ph-tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--tri-violet); }
.trinity .phonefig .ph-cap { font-size: var(--text-sm); color: var(--text-muted); margin-top: 0.5rem; line-height: 1.5; max-width: 30ch; }
@media (max-width: 980px) { .trinity .phonerow { grid-template-columns: repeat(2, 1fr); gap: clamp(1.25rem, 4vw, 2.5rem); } }
@media (max-width: 520px) { .trinity .phonerow { grid-template-columns: 1fr; } .trinity .phone-mk { max-width: 280px; } }

/* Interactive prototype CTA banner */
.trinity .proto-cta { grid-column: 1 / -1; margin-block: clamp(2rem, 5vw, 4rem); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid rgba(167,139,250,0.3); background: linear-gradient(120deg, rgba(46,16,101,0.55), rgba(124,58,237,0.22) 55%, rgba(16,11,33,0.4)); padding: clamp(1.5rem, 4vw, 2.75rem); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: clamp(1.25rem, 3vw, 2rem); }
.trinity .proto-cta .pc-copy { max-width: 56ch; }
.trinity .proto-cta .pc-eyebrow { font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: 0.14em; text-transform: uppercase; color: var(--tri-gold); margin-bottom: 0.6rem; }
.trinity .proto-cta h3 { font-family: var(--font-display); font-weight: 600; font-size: var(--text-xl); color: var(--text-strong); line-height: 1.1; }
.trinity .proto-cta p { color: var(--text-muted); font-size: var(--text-sm); margin-top: 0.6rem; line-height: 1.55; }
.trinity .proto-cta .pc-btn { flex-shrink: 0; display: inline-flex; align-items: center; gap: 0.6rem; font-family: var(--font-mono); font-size: var(--text-sm); letter-spacing: 0.03em; font-weight: 500; color: #160d33; background: var(--tri-gold); padding: 0.9rem 1.5rem; border-radius: var(--radius-full); text-decoration: none; transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease; box-shadow: 0 10px 30px rgba(251,191,36,0.28); }
.trinity .proto-cta .pc-btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2.2; }
.trinity .proto-cta .pc-btn:hover { transform: translateY(-2px); background: #fcd34d; box-shadow: 0 16px 40px rgba(251,191,36,0.4); }
@media (max-width: 720px) { .trinity .proto-cta { flex-direction: column; align-items: flex-start; } }

/* ===== Trinity research section ===== */
.trinity .rs-methods { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(0.9rem, 2vw, 1.25rem); margin-top: clamp(1.75rem, 4vw, 2.75rem); }
.trinity .rs-method { background: var(--panel); border: 1px solid rgba(167,139,250,0.18); border-radius: var(--radius-lg); padding: clamp(1.25rem, 2.2vw, 1.6rem); display: flex; flex-direction: column; }
.trinity .rs-method .rs-mtag { font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: 0.12em; text-transform: uppercase; color: var(--tri-violet); }
.trinity .rs-method h3 { font-family: var(--font-display); font-weight: 600; font-size: var(--text-base); color: var(--text-strong); margin-top: 0.7rem; line-height: 1.15; }
.trinity .rs-method p { font-size: var(--text-sm); color: var(--text-muted); line-height: 1.55; margin-top: 0.55rem; }
.trinity .rs-method .rs-mmeta { margin-top: auto; padding-top: 0.9rem; font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: 0.04em; color: var(--text-faint); }

.trinity .rs-parts { display: flex; flex-direction: column; gap: 0.75rem; margin-top: 1.4rem; }
.trinity .rs-part { display: flex; align-items: center; gap: 1rem; background: var(--panel); border: 1px solid rgba(167,139,250,0.16); border-radius: var(--radius-md); padding: 0.95rem 1.15rem; }
.trinity .rs-part .rs-pnum { font-family: var(--font-display); font-weight: 600; font-size: var(--text-xl); color: var(--tri-violet); line-height: 1; min-width: 1.6ch; text-align: center; }
.trinity .rs-part .rs-pl b { display: block; font-size: var(--text-base); color: var(--text-strong); font-weight: 600; }
.trinity .rs-part .rs-pl span { font-size: var(--text-sm); color: var(--text-muted); }

.trinity .rs-finds { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1rem, 2.5vw, 1.5rem); margin-top: clamp(1.5rem, 3vw, 2rem); }
.trinity .rs-find { background: var(--panel); border: 1px solid var(--divider); border-radius: var(--radius-lg); padding: clamp(1.4rem, 2.6vw, 1.85rem); position: relative; }
.trinity .rs-find .rs-fn { font-family: var(--font-mono); font-size: var(--text-sm); color: var(--tri-gold); letter-spacing: 0.08em; }
.trinity .rs-find h3 { font-family: var(--font-display); font-weight: 600; font-size: var(--text-lg); color: var(--text-strong); margin-top: 0.55rem; line-height: 1.15; }
.trinity .rs-find p { font-size: var(--text-sm); color: var(--text-muted); line-height: 1.6; margin-top: 0.65rem; }
.trinity .rs-quote { margin: 1.1rem 0 0; padding: 1rem 1.15rem; border-left: 3px solid var(--tri-violet); background: rgba(167,139,250,0.07); border-radius: 0 var(--radius-md) var(--radius-md) 0; font-size: var(--text-base); color: var(--text); line-height: 1.55; font-style: italic; }
.trinity .rs-quote cite { display: block; margin-top: 0.6rem; font-style: normal; font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: 0.04em; text-transform: uppercase; color: var(--tri-violet); }

.trinity .rs-map { margin-top: clamp(2.25rem, 5vw, 3.25rem); border: 1px solid rgba(167,139,250,0.22); border-radius: var(--radius-lg); overflow: hidden; }
.trinity .rs-map-head { padding: clamp(1.25rem, 3vw, 1.75rem); background: rgba(167,139,250,0.06); border-bottom: 1px solid var(--divider); }
.trinity .rs-map-head h3 { font-family: var(--font-display); font-weight: 600; font-size: var(--text-lg); color: var(--text-strong); margin-top: 0.6rem; line-height: 1.1; }
.trinity .rs-map-row { display: grid; grid-template-columns: 1fr auto 1.4fr; align-items: center; gap: clamp(0.75rem, 2vw, 1.5rem); padding: clamp(0.95rem, 2vw, 1.25rem) clamp(1.25rem, 3vw, 1.75rem); border-bottom: 1px solid var(--divider); }
.trinity .rs-map-row:last-child { border-bottom: 0; }
.trinity .rs-map-row .rs-from { font-size: var(--text-sm); color: var(--text-muted); }
.trinity .rs-map-row .rs-arrow { color: var(--tri-gold); font-size: var(--text-lg); }
.trinity .rs-map-row .rs-to { font-size: var(--text-base); color: var(--text-strong); font-weight: 500; }

@media (max-width: 980px) { .trinity .rs-methods { grid-template-columns: repeat(2, 1fr); } .trinity .rs-finds { grid-template-columns: 1fr; } }
@media (max-width: 620px) { .trinity .rs-methods { grid-template-columns: 1fr; } .trinity .rs-map-row { grid-template-columns: 1fr; gap: 0.4rem; } .trinity .rs-map-row .rs-arrow { display: none; } }

/* ===== Key screens gallery (checkout case study) ===== */
/* Key screens — horizontal scroll rail with hover zoom */
.screen-gallery { display: flex; gap: clamp(1.25rem, 2.5vw, 2rem); margin-top: clamp(1.75rem, 3.5vw, 2.75rem); overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; padding-bottom: 1.25rem; -webkit-overflow-scrolling: touch; scrollbar-width: thin; scrollbar-color: var(--border) transparent; }
.screen-gallery::-webkit-scrollbar { height: 8px; }
.screen-gallery::-webkit-scrollbar-track { background: var(--surface-2); border-radius: 100px; }
.screen-gallery::-webkit-scrollbar-thumb { background: var(--border); border-radius: 100px; }
.screen-gallery::-webkit-scrollbar-thumb:hover { background: var(--text-faint); }
.screen-gallery .screen-card { margin: 0; display: flex; flex-direction: column; flex: 0 0 clamp(280px, 32vw, 420px); scroll-snap-align: start; }
.screen-gallery .sg-frame { position: relative; overflow: hidden; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); background: var(--surface-3); border: 1px solid var(--divider); transition: border-color var(--t-med) var(--ease-out), box-shadow var(--t-med) var(--ease-out); }
.screen-gallery .screen-card:hover .sg-frame { border-color: var(--accent-line); box-shadow: 0 22px 60px -26px var(--accent-glow), var(--shadow-md); }
.screen-gallery .screen-card img { width: 100%; height: auto; display: block; transform: scale(1); transition: transform var(--t-med) var(--ease-out); will-change: transform; }
.screen-gallery .screen-card:hover img { transform: scale(1.08); }
.screen-gallery .screen-card figcaption { margin-top: 1rem; font-size: var(--text-sm); color: var(--text-muted); line-height: 1.55; }
.screen-gallery .sg-tag { display: block; font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.5rem; }
@media (max-width: 760px) { .screen-gallery .screen-card { flex: 0 0 78vw; } }
