/* ==========================================================================
   T Tek — styles
   Tokens → base → materials → components → motion prefs
   Palette follows apple.com: #fff / #f5f5f7 bands in light, #000 / #1d1d1f in dark,
   #1d1d1f ink, #6e6e73 secondary, #0071e3 fill blue, #0066cc / #2997ff link blue.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  color-scheme: light dark;

  /* Surfaces: alternating bands, tiles take the opposite band color */
  --bg: #ffffff;
  --band: #f5f5f7;
  --bg-elev: #ffffff;                 /* sheet, popovers */
  --fill: rgba(0, 0, 0, 0.05);        /* segmented bg, tags, icon buttons */
  --fill-strong: rgba(0, 0, 0, 0.09);
  --field: #ffffff;

  --ink: #1d1d1f;
  --ink-2: #6e6e73;
  --ink-3: #86868b;
  --line: #d2d2d7;
  --line-soft: rgba(0, 0, 0, 0.08);

  --accent: #0066cc;                  /* links, eyebrows, active states */
  --btn: #0071e3;                     /* filled buttons */
  --btn-hover: #0077ed;
  --btn-ink: #ffffff;
  --accent-tint: rgba(0, 113, 227, 0.10);
  --danger: #e30000;
  --success: #1d9a4b;

  --material: rgba(255, 255, 255, 0.80);
  --material-edge: rgba(255, 255, 255, 0.60);
  --scrim: rgba(0, 0, 0, 0.40);
  --shadow-sheet: 0 -1px 0 rgba(0, 0, 0, 0.04), 0 12px 48px rgba(0, 0, 0, 0.18);
  --thumb: #ffffff;
  --thumb-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 3px 8px rgba(0, 0, 0, 0.08);

  --sans: -apple-system, BlinkMacSystemFont, system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --max: 61rem;                       /* apple.com content width ≈ 980px */
  --gutter: clamp(1.25rem, 4vw, 2rem);
  --r-sm: 0.75rem;
  --r-md: 1.125rem;                   /* 18px small tiles */
  --r-lg: 1.75rem;                    /* 28px large tiles */
  --r-pill: 980px;

  --bar-h: 3rem;                      /* apple.com nav = 48px */
  --push: 0;                          /* 0..1, set by sheet.js when a sheet is open */
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --band: #1d1d1f;
    --bg-elev: #1d1d1f;
    --fill: rgba(255, 255, 255, 0.10);
    --fill-strong: rgba(255, 255, 255, 0.16);
    --field: #000000;

    --ink: #f5f5f7;
    --ink-2: #a1a1a6;
    --ink-3: #86868b;
    --line: #424245;
    --line-soft: rgba(255, 255, 255, 0.10);

    --accent: #2997ff;
    --btn: #0071e3;
    --btn-hover: #0077ed;
    --accent-tint: rgba(41, 151, 255, 0.16);
    --danger: #ff453a;
    --success: #30d158;

    --material: rgba(22, 22, 23, 0.80);
    --material-edge: rgba(255, 255, 255, 0.08);
    --scrim: rgba(0, 0, 0, 0.60);
    --shadow-sheet: 0 -1px 0 rgba(255, 255, 255, 0.06), 0 12px 48px rgba(0, 0, 0, 0.7);
    --thumb: #636366;
    --thumb-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  }
}

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

html {
  font: 100%/1.47059 var(--sans);       /* apple.com body leading */
  font-optical-sizing: auto;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--bar-h) + 1rem);
  background: var(--bg);
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  min-height: 100dvh;
}
body.sheet-open { overflow: hidden; }

/* Page push-back when a sheet is open (§12) */
main, .footer {
  transform-origin: 50% 0;
  transform: scale(calc(1 - var(--push) * 0.035));
  filter: brightness(calc(1 - var(--push) * 0.08));
}

a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img, svg { display: block; }
ul, ol { list-style: none; }

::selection { background: var(--accent-tint); }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 0.25rem; }
.skip-link {
  position: fixed; top: 0.5rem; left: 0.5rem; z-index: 100;
  padding: 0.5rem 0.875rem; background: var(--bg-elev); color: var(--ink);
  border-radius: var(--r-sm); box-shadow: var(--thumb-shadow);
  transform: translateY(-200%); transition: transform 150ms ease-out;
}
.skip-link:focus { transform: none; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* Everything a pointer can press gets a transform hook (set by gestures.js) */
[data-press] { transform: scale(var(--press, 1)); will-change: transform; }

/* Bands: sections alternate; tiles inside take the opposite color */
main { --tile: var(--band); }
.band { background: var(--band); --tile: var(--bg); }
@media (prefers-color-scheme: dark) { .band { --tile: #000000; } }

/* ---------- Typography (§15) ---------- */
.display {
  font-size: clamp(2.5rem, 5.5vw, 4.25rem);
  line-height: 1.05;
  letter-spacing: -0.015em;
  font-weight: 600;
  max-width: 15ch;
  text-wrap: balance;
}
.title {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.005em;
  font-weight: 600;
  text-wrap: balance;
}
h3 { font-size: 1.5rem; line-height: 1.17; letter-spacing: 0.009em; font-weight: 600; }
h4 { font-size: 1.1875rem; line-height: 1.21; letter-spacing: 0.012em; font-weight: 600; }
.lede { font-size: clamp(1.1875rem, 1.6vw, 1.3125rem); line-height: 1.38; letter-spacing: 0.011em; font-weight: 400; color: var(--ink-2); max-width: 44ch; margin-top: 1.25rem; text-wrap: pretty; }
.sec-desc { color: var(--ink-2); font-size: 1.1875rem; line-height: 1.38; margin-top: 0.75rem; max-width: 52ch; text-wrap: pretty; }
.mono-label {
  font-size: 0.75rem; line-height: 1.33; letter-spacing: -0.01em;
  text-transform: uppercase; color: var(--ink-2); font-weight: 600;
}
.mono-label.accent { color: var(--accent); }
p { text-wrap: pretty; }

/* ---------- Materials & surfaces (§12) ---------- */
.card { background: var(--tile); border-radius: var(--r-lg); }

/* Floating translucent top bar (apple.com nav) */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--bar-h);
  background: var(--material);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
}
/* Scroll-edge effect: appears only when content is under the bar */
.topbar::after {
  content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 1px;
  pointer-events: none;
  background: var(--line-soft);
  opacity: 0; transition: opacity 250ms ease;
}
.topbar.is-scrolled::after { opacity: 1; }

.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 100%; }
.logo { display: inline-flex; align-items: center; gap: 0.5rem; text-decoration: none; font-weight: 600; letter-spacing: -0.01em; font-size: 1rem; white-space: nowrap; }
.logo img { height: 1.625rem; width: auto; }
@media (prefers-color-scheme: dark) { .logo img { filter: brightness(0) invert(1); opacity: 0.92; } }

.nav-links { display: flex; gap: 0.125rem; }
.nav-links a {
  display: inline-block; padding: 0.3125rem 0.75rem; border-radius: var(--r-pill);
  text-decoration: none; font-size: 0.75rem; font-weight: 400; letter-spacing: -0.01em; color: var(--ink);
  opacity: 0.8; transition: opacity 150ms ease, background-color 150ms ease;
}
.nav-links a:hover { opacity: 1; }
.nav-links a.is-active { opacity: 1; background: var(--fill); }

.topbar-actions { display: flex; align-items: center; gap: 0.625rem; }
.btn.topbar-cta { padding: 0.375rem 0.875rem; font-size: 0.75rem; }
.icon-btn.menu-btn { display: none; }

@media (max-width: 52rem) {
  .nav { display: none; }
  .btn.topbar-cta { display: none; }
  .icon-btn.menu-btn { display: inline-flex; }
}

/* Segmented control (iOS) */
.segmented {
  position: relative; display: inline-flex; padding: 0.125rem;
  background: var(--fill); border-radius: var(--r-sm);
}
.segmented .seg {
  position: relative; z-index: 1; padding: 0.25rem 0.75rem; border-radius: calc(var(--r-sm) - 0.125rem);
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0;
  color: var(--ink-2); transition: color 200ms ease;
}
.segmented .seg[aria-checked="true"] { color: var(--ink); }
.segmented-thumb {
  position: absolute; top: 0.125rem; left: 0; height: calc(100% - 0.25rem);
  background: var(--thumb); border-radius: calc(var(--r-sm) - 0.125rem);
  box-shadow: var(--thumb-shadow);
  transform-origin: left center;
  will-change: transform;
}

/* Buttons (§1: feedback on pointer-down, via [data-press]) */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.375rem;
  padding: 0.6875rem 1.25rem; border-radius: var(--r-pill);
  font-weight: 400; font-size: 1.0625rem; line-height: 1.17; letter-spacing: -0.022em; text-decoration: none;
  white-space: nowrap; user-select: none; -webkit-tap-highlight-color: transparent;
  transition: background-color 150ms ease, color 150ms ease, box-shadow 150ms ease;
}
.btn-lg { padding: 0.875rem 1.5rem; font-size: 1.1875rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--btn); color: var(--btn-ink); }
.btn-primary:hover { background: var(--btn-hover); }
.btn-quiet { background: transparent; color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.btn-quiet:hover { background: var(--accent); color: #fff; }

.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2rem; height: 2rem; border-radius: 50%;
  background: var(--fill); color: var(--ink);
  -webkit-tap-highlight-color: transparent;
}
.icon-btn:hover { background: var(--fill-strong); }
.icon-btn svg { width: 0.875rem; height: 0.875rem; }
.menu-icon { position: relative; width: 1rem; height: 0.5rem; display: block; }
.menu-icon i { position: absolute; left: 0; right: 0; height: 1.5px; border-radius: 1px; background: currentColor; transition: transform 250ms ease; }
.menu-icon i:first-child { top: 0; }
.menu-icon i:last-child { bottom: 0; }
.menu-btn[aria-expanded="true"] .menu-icon i:first-child { transform: translateY(3.25px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-icon i:last-child { transform: translateY(-3.25px) rotate(-45deg); }

/* ---------- Sections ---------- */
section { padding: clamp(4.5rem, 10vw, 7.5rem) 0; }
.sec-head { max-width: 60ch; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.sec-head .mono-label { display: block; margin-bottom: 0.625rem; }

/* Hero */
.hero { padding-top: calc(var(--bar-h) + clamp(3.5rem, 9vw, 7rem)); padding-bottom: clamp(3rem, 7vw, 5.5rem); }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (max-width: 56rem) { .hero-grid { grid-template-columns: 1fr; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.3125rem 0.875rem 0.3125rem 0.625rem; border-radius: var(--r-pill);
  background: var(--fill); color: var(--ink);
  font-size: 0.8125rem; font-weight: 500; letter-spacing: -0.01em; margin-bottom: 1.5rem;
}
.pulse { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--success); }
@media (prefers-reduced-motion: no-preference) {
  .pulse { animation: pulse 2.4s ease-out infinite; }
  @keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--success) 45%, transparent); } 70%, 100% { box-shadow: 0 0 0 0.5rem transparent; } }
}

.hero-actions { display: flex; gap: 0.75rem; margin-top: 2rem; flex-wrap: wrap; }
.hero-proof { display: flex; gap: 2rem; flex-wrap: wrap; margin-top: 2.75rem; }
.hero-proof dd { white-space: nowrap; }
.hero-proof dt { font-size: 2rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.hero-proof dd { font-size: 0.875rem; color: var(--ink-2); margin-top: 0.125rem; }

/* Stepper card */
.stepper { padding: 1.5rem; }
.stepper-list { display: flex; flex-direction: column; }
.step {
  display: flex; align-items: center; gap: 0.875rem; padding: 0.875rem 0.25rem;
  font-size: 0.9375rem; color: var(--ink-2); border-bottom: 1px solid var(--line-soft);
  transition: color 300ms ease;
}
.step:last-child { border-bottom: 0; }
.step.is-done { color: var(--ink); }
.step-n {
  position: relative; flex-shrink: 0; width: 1.625rem; height: 1.625rem; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--fill); color: var(--ink-2);
  font-size: 0.75rem; font-weight: 600; font-variant-numeric: tabular-nums;
  transition: background-color 300ms ease, color 300ms ease;
}
.step-n > * { grid-area: 1 / 1; }
.step-check { width: 0.875rem; height: 0.875rem; opacity: 0; transform: scale(0.6); transition: opacity 200ms ease, transform 300ms cubic-bezier(.2,.9,.3,1.2); }
.step.is-done .step-n { background: var(--btn); color: #fff; }
.step.is-done .step-num { opacity: 0; }
.step.is-done .step-check { opacity: 1; transform: none; }
.stepper-track { margin-top: 1rem; height: 0.25rem; border-radius: var(--r-pill); background: var(--fill); overflow: hidden; }
.stepper-fill { display: block; height: 100%; width: 100%; background: var(--btn); border-radius: inherit; transform-origin: left center; transform: scaleX(0); will-change: transform; }

/* Trust strip */
.trust { padding: 1.5rem 0; }
.trust-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.trust-logos { display: flex; gap: 2rem; font-weight: 600; color: var(--ink-2); letter-spacing: -0.01em; }

/* Bento */
.bento { display: grid; grid-template-columns: 1.4fr 1fr; grid-auto-rows: auto; gap: 0.875rem; }
.bento-card { padding: clamp(1.5rem, 3vw, 2.25rem); display: flex; flex-direction: column; gap: 0.75rem; }
.bento-card.lg { grid-row: span 2; }
.bento-card p { color: var(--ink-2); font-size: 1.0625rem; line-height: 1.47; letter-spacing: -0.022em; }
.bento-icon {
  width: 2.75rem; height: 2.75rem; border-radius: 0.875rem;
  background: var(--btn); color: #fff;
  display: grid; place-items: center; font-weight: 600; font-size: 0.9375rem; letter-spacing: -0.02em;
}
.bento-list { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 0.25rem; color: var(--ink); font-size: 1rem; }
.bento-list li { display: flex; gap: 0.625rem; align-items: baseline; }
.bento-list li::before { content: ""; flex-shrink: 0; width: 0.375rem; height: 0.375rem; border-radius: 50%; background: var(--accent); transform: translateY(-0.125rem); }
@media (max-width: 52rem) { .bento { grid-template-columns: 1fr; } .bento-card.lg { grid-row: auto; } }

/* Process */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.875rem; }
.process-step { padding: 1.5rem; border-radius: var(--r-md); background: var(--tile); }
.process-step .mono-label { display: block; margin-bottom: 0.875rem; }
.process-step h4 { margin-bottom: 0.5rem; }
.process-step p { color: var(--ink-2); font-size: 0.9375rem; letter-spacing: -0.016em; }
@media (max-width: 56rem) { .process { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 36rem) { .process { grid-template-columns: 1fr; } }

/* Work list */
.work-list { display: flex; flex-direction: column; gap: 0.75rem; }
.work-row {
  width: 100%; display: flex; align-items: center; gap: 1.25rem; text-align: left;
  padding: 1.375rem 1.5rem; border-radius: var(--r-md);
  background: var(--tile);
  transition: background-color 150ms ease;
  -webkit-tap-highlight-color: transparent;
}
.work-body { display: flex; flex-direction: column; gap: 0.375rem; flex: 1; min-width: 0; }
.work-name { font-weight: 600; font-size: 1.1875rem; letter-spacing: 0.012em; }
.work-desc { color: var(--ink-2); font-size: 0.9375rem; letter-spacing: -0.016em; }
.work-tags { display: flex; gap: 0.375rem; flex-wrap: wrap; margin-top: 0.375rem; }
.tag { font-size: 0.75rem; font-weight: 500; letter-spacing: -0.01em; color: var(--ink-2); background: var(--fill); padding: 0.1875rem 0.625rem; border-radius: var(--r-pill); }
.work-arrow { flex-shrink: 0; width: 2rem; height: 2rem; border-radius: 50%; display: grid; place-items: center; background: var(--fill); color: var(--ink-2); transition: transform 200ms ease, background-color 150ms ease, color 150ms ease; }
.work-arrow svg { width: 1rem; height: 1rem; }
.work-row:hover .work-arrow { transform: translateX(0.125rem); background: var(--btn); color: #fff; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 0.8fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 52rem) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card { padding: clamp(1.5rem, 3vw, 2.25rem); }
.field { margin-bottom: 1.125rem; }
.field label { display: block; font-size: 0.875rem; font-weight: 600; margin-bottom: 0.4375rem; }
.field input, .field textarea {
  width: 100%; padding: 0.8125rem 1rem; border-radius: var(--r-sm);
  border: 1px solid var(--line); background: var(--field); color: var(--ink);
  font: inherit; font-size: 1.0625rem; line-height: 1.4; letter-spacing: -0.022em;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
.field input::placeholder, .field textarea::placeholder { color: var(--ink-3); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--btn); box-shadow: 0 0 0 4px var(--accent-tint); }
.field.is-invalid input, .field.is-invalid textarea { border-color: var(--danger); }
.field textarea { resize: vertical; min-height: 6.5rem; }
.field-err { margin-top: 0.375rem; font-size: 0.8125rem; color: var(--danger); }
.form-status { margin-top: 1rem; font-size: 0.9rem; color: var(--success); text-align: center; }
.contact-info { display: flex; flex-direction: column; gap: 1.375rem; padding-top: 0.5rem; }
.contact-info dt { margin-bottom: 0.25rem; }
.contact-info dd { font-weight: 400; font-size: 1.1875rem; letter-spacing: 0.012em; }
.contact-info a { text-decoration: none; color: var(--accent); }
.contact-info a:hover { text-decoration: underline; }

/* Footer */
.footer { padding: 1.5rem 0 calc(1.5rem + env(safe-area-inset-bottom)); background: var(--band); color: var(--ink-2); font-size: 0.75rem; }
.footer-row { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-top: 1rem; border-top: 1px solid var(--line-soft); }

/* ---------- Sheet (§2–§9, §12) ---------- */
.sheet-root { position: fixed; inset: 0; z-index: 60; }
.sheet-root[hidden] { display: none; }
.sheet-scrim { position: absolute; inset: 0; background: var(--scrim); opacity: 0; will-change: opacity; }
.sheet {
  position: absolute; left: 0; right: 0; bottom: 0;
  margin: 0 auto; max-width: 40rem; max-height: min(88dvh, 44rem);
  display: flex; flex-direction: column;
  background: var(--bg-elev);
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  box-shadow: var(--shadow-sheet);
  padding-bottom: env(safe-area-inset-bottom);
  transform: translateY(100%);
  will-change: transform;
  touch-action: none;
  outline: none;
}
.sheet::after { /* extends under the bottom edge during bouncy overshoot */
  content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 30vh; background: var(--bg-elev);
}
.sheet-grabber { display: flex; justify-content: center; padding: 0.625rem 0 0.25rem; cursor: grab; }
.sheet-grabber span { width: 2.25rem; height: 0.3125rem; border-radius: var(--r-pill); background: var(--fill-strong); }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.5rem 1.25rem 0.75rem 1.5rem; }
.sheet-title { font-size: 1.5rem; font-weight: 600; letter-spacing: 0.009em; }
.sheet-body { overflow-y: auto; overscroll-behavior: contain; padding: 0 1.5rem 1.5rem; touch-action: pan-y; }

.sheet-nav { display: flex; flex-direction: column; gap: 0.375rem; }
.sheet-nav a:not(.btn) {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.875rem 1rem; border-radius: var(--r-md);
  background: var(--fill); text-decoration: none; font-weight: 500; font-size: 1.0625rem; letter-spacing: -0.022em;
  -webkit-tap-highlight-color: transparent;
}
.sheet-nav a.is-active { color: var(--accent); }
.sheet-nav .btn { margin-top: 0.75rem; }

.sheet-project p { color: var(--ink-2); font-size: 1.0625rem; letter-spacing: -0.022em; }
.sheet-project .bento-list { margin: 1rem 0 0; }
.sheet-project .mono-label { display: block; margin: 1.5rem 0 0.5rem; }
.sheet-project .work-tags { margin: 0; }
.sheet-project .btn { margin-top: 1.5rem; }

/* ---------- Reveal (values driven by main.js springs) ---------- */
html.js .reveal { opacity: 0; will-change: transform, opacity; }
html.js .reveal.is-in { will-change: auto; }

/* ---------- 404 ---------- */
.page-404 .topbar { position: fixed; }
.error-page {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding: calc(var(--bar-h) + 3rem) 0 4rem;
  background: var(--bg);
}
.error-inner { max-width: 36rem; }
.error-code {
  font-size: clamp(4rem, 14vw, 7rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.9;
  color: var(--fill-strong);
  margin-bottom: 1.25rem;
  font-variant-numeric: tabular-nums;
}
.error-page .display { max-width: 16ch; }
.error-page .lede { margin-top: 1rem; }
.error-page .hero-actions { margin-top: 2rem; }

/* ---------- Preference fallbacks (§14) ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
  main, .footer { transform: none !important; filter: none !important; }
  .step-check { transition: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .topbar { background: var(--bg-elev); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .sheet-scrim { background: rgba(0, 0, 0, 0.6); }
}
@media (prefers-contrast: more) {
  :root { --ink-2: #424245; --ink-3: #6e6e73; --line-soft: rgba(0, 0, 0, 0.35); }
  @media (prefers-color-scheme: dark) { :root { --ink-2: #d2d2d7; --ink-3: #a1a1a6; --line-soft: rgba(255, 255, 255, 0.4); } }
  .topbar { background: var(--bg-elev); -webkit-backdrop-filter: none; backdrop-filter: none; border-bottom: 1px solid var(--line); }
  .card, .work-row, .process-step { box-shadow: 0 0 0 1.5px var(--line); }
}
