/* ============================================================
   CSS CUSTOM PROPERTIES — FRUTIGER AERO THEME
   Sky-blue glass aesthetic, ~2007–2013 era
============================================================ */
:root {
  --bg:             #E8F4FD;
  --bg-secondary:   #D4EAF7;
  --surface:        rgba(255, 255, 255, 0.68);
  --surface-solid:  #FFFFFF;
  --border:         rgba(90, 175, 230, 0.32);
  --border-solid:   #A8D4EE;
  --border-hi:      rgba(255, 255, 255, 0.80);
  --text-primary:   #0B2540;
  --text-secondary: #1D4F7A;
  --text-muted:     #2D6898;
  --accent-text:    #0D62A8;
  --accent:         #0A88CC;
  --accent-btn-bg:  #0D6EBE;
  --accent-light:   rgba(90, 185, 240, 0.22);
  --accent-lighter: rgba(170, 225, 252, 0.28);
  --shadow-sm:  0 2px 8px rgba(8,50,110,0.08);
  --shadow-md:  0 8px 28px rgba(8,50,110,0.12);
  --shadow-lg:  0 24px 56px rgba(8,50,110,0.18);
  --font-heading: 'Nunito', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, sans-serif;
  --radius-sm:  12px;
  --radius-md:  22px;
  --radius-lg:  32px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --focus-color: #0D62A8;
}

/* ---- Dark mode ---- */
[data-theme="dark"] {
  --bg:             #17110E;
  --bg-secondary:   #211710;
  --surface:        rgba(36, 26, 22, 0.82);
  --surface-solid:  #2A1E18;
  --border:         rgba(123,106,95,0.22);
  --border-solid:   rgba(123,106,95,0.35);
  --border-hi:      rgba(255,255,255,0.08);
  --text-primary:   #F5F0EA;
  --text-secondary: #C9BCB2;
  --text-muted:     #A89A90;
  --accent-text:    #D4C5BC;
  --accent:         #C4B5AA;
  --accent-btn-bg:  #D4C5BC;
  --accent-light:   rgba(123,106,95,0.22);
  --accent-lighter: rgba(123,106,95,0.12);
  --shadow-sm:  0 2px 8px rgba(0,0,0,0.28);
  --shadow-md:  0 8px 28px rgba(0,0,0,0.32);
  --shadow-lg:  0 24px 56px rgba(0,0,0,0.44);
}

/* ---- High contrast ---- */
[data-contrast="high"] {
  --bg:             #FFFFFF;
  --bg-secondary:   #F5F5F5;
  --surface:        rgba(255,255,255,0.98);
  --surface-solid:  #FFFFFF;
  --border:         #1A1614;
  --border-solid:   #1A1614;
  --text-primary:   #000000;
  --text-secondary: #000000;
  --text-muted:     #111111;
  --accent-text:    #1A0A00;
  --accent:         #1A0A00;
  --accent-btn-bg:  #000000;
  --accent-light:   #E0E0E0;
  --accent-lighter: #F0F0F0;
  --focus-color:    #000000;
}

[data-theme="dark"][data-contrast="high"] {
  --bg:             #000000;
  --bg-secondary:   #0A0A0A;
  --surface:        rgba(0,0,0,0.98);
  --surface-solid:  #000000;
  --border:         #FFFFFF;
  --border-solid:   #FFFFFF;
  --text-primary:   #FFFFFF;
  --text-secondary: #EEEEEE;
  --text-muted:     #DDDDDD;
  --accent-text:    #FFD9CC;
  --accent:         #FFD9CC;
  --accent-btn-bg:  #FFD9CC;
  --accent-light:   #1A1A1A;
  --accent-lighter: #0D0D0D;
  --focus-color:    #FFFFFF;
}

/* ============================================================
   RESET & BASE
============================================================ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text-primary);
  overflow-x: hidden;
  transition: background 0.3s ease, color 0.3s ease;
}

/* ============================================================
   FOCUS STATES — WCAG 2.4.11
============================================================ */
:focus { outline: none; }
:focus-visible {
  outline: 2px dashed var(--focus-color);
  outline-offset: 4px;
  border-radius: 3px;
}
.card:focus-visible,
.bento-card:focus-visible {
  outline: 2px dashed var(--focus-color);
  outline-offset: 4px;
  border-radius: var(--radius-md);
}
a:focus-visible,
button:focus-visible {
  outline: 2px dashed var(--focus-color);
  outline-offset: 4px;
  border-radius: 4px;
}

/* ============================================================
   SKIP LINK
============================================================ */
.skip-link {
  position: absolute; top: -100%; left: 16px;
  padding: 8px 16px;
  background: var(--text-primary); color: var(--bg);
  font-size: 14px; font-weight: 600;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  z-index: 9999; text-decoration: none;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 0; }

/* ============================================================
   KEYFRAME ANIMATIONS
============================================================ */
@keyframes blobFloat1 {
  0%,100% { transform: translate(0,0) scale(1); }
  33%      { transform: translate(30px,-20px) scale(1.05); }
  66%      { transform: translate(-15px,15px) scale(0.97); }
}
@keyframes blobFloat2 {
  0%,100% { transform: translate(0,0) scale(1); }
  33%      { transform: translate(-25px,20px) scale(1.03); }
  66%      { transform: translate(20px,-10px) scale(0.95); }
}
@keyframes fadeIn    { from { opacity:0 } to { opacity:1 } }
@keyframes slideLeft { from { opacity:0; transform:translateX(-20px) } to { opacity:1; transform:translateX(0) } }

/* ============================================================
   CUSTOM CURSOR
============================================================ */
/* Custom cursor: structure, behaviour, and the label-pill morph all live in
   style.css (single source — keeps it zero-lag and universal). Linger's blue
   cursor accent is applied lower in this file. */

/* ---- Reduced motion ---- */
[data-motion="reduced"] *,
[data-motion="reduced"] *::before,
[data-motion="reduced"] *::after {
  animation: none !important;
  scroll-behavior: auto !important;
}
[data-motion="reduced"] .hero-liquid-bg,
[data-motion="reduced"] .hero-glass-sheen,
[data-motion="reduced"] .case-hero { opacity: 1 !important; transform: none !important; }

/* ============================================================
   FOOTER
============================================================ */
footer {
  background: var(--surface-solid);
  background: var(--surface);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  display: flex; flex-direction: column;
  align-items: center; gap: 16px;
  padding: 28px 44px; width: 100%;
  transition: background 0.3s ease;
}
.footer-links {
  display: flex; gap: 32px; align-items: center; flex-wrap: wrap; justify-content: center;
}
.footer-links a {
  display: flex; align-items: center; gap: 7px;
  font-size: 14px; font-weight: 500; letter-spacing: 0.01em;
  text-decoration: none; color: var(--text-secondary);
  transition: color 0.2s ease;
}
.footer-links a:hover { color: var(--text-primary); }
.footer-links a svg { width: 17px; height: 17px; transition: transform 0.2s ease; }
.footer-links a:hover svg { transform: translateY(-1px); }
.footer-bottom {
  position: relative; display: flex; align-items: center; width: 100%;
}
.footer-copyright {
  position: absolute; left: 50%; transform: translateX(-50%);
  font-size: 13px; color: var(--text-muted); white-space: nowrap;
}
.footer-top-btn {
  display: flex; align-items: center; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 0;
  font-size: 13px; color: var(--text-muted);
  transition: color 0.2s ease; margin-left: auto;
}
.footer-top-btn:hover { color: var(--text-primary); }

/* ============================================================
   DIVIDER
============================================================ */
.divider {
  width: 200px; height: 1px;
  background: var(--border-solid); border: none; margin: 0;
}

/* ============================================================
   HOMEPAGE — MAIN
============================================================ */
main {
  display: flex; flex-direction: column; align-items: center;
  gap: 64px; padding: 88px 44px;
}

/* ============================================================
   HOMEPAGE — HERO
============================================================ */
.hero-wrapper {
  position: relative; width: 100%; max-width: 1212px;
  display: flex; justify-content: center;
}

/* Pre-hide for GSAP entrance */
.hero-liquid-bg,
.hero-glass-sheen {
  opacity: 0;
  will-change: transform, opacity;
}

/* Canvas animation background — fills wrapper behind the glass card */
.hero-liquid-bg {
  position: absolute; inset: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  z-index: 0; pointer-events: none;
}
.liquid-canvas {
  width: 100%; height: 100%;
  display: block;
}

/* Glass dome sheen overlay — sits above content */
.hero-glass-sheen {
  position: absolute; inset: 0;
  border-radius: var(--radius-lg);
  pointer-events: none;
  z-index: 2;
  overflow: hidden;
  background:
    radial-gradient(ellipse 90% 55% at 50% -5%,
      rgba(255,255,255,0.45) 0%,
      rgba(255,255,255,0.12) 45%,
      transparent 70%),
    linear-gradient(148deg, rgba(255,255,255,0.22) 0%, transparent 38%),
    linear-gradient(328deg, rgba(255,255,255,0.10) 0%, transparent 35%);
  box-shadow:
    inset 0   1.5px 0 rgba(255,255,255,0.92),
    inset 1.5px 0   0 rgba(255,255,255,0.55),
    inset -1.5px 0  0 rgba(255,255,255,0.40),
    inset 0  -1px   0 rgba(255,255,255,0.22);
}

.hero-wrapper::before, .hero-wrapper::after {
  content: ''; position: absolute; border-radius: 50%;
  z-index: 0; pointer-events: none;
}
.hero-wrapper::before {
  width: 340px; height: 340px;
  background: radial-gradient(circle, rgba(123,106,95,0.1) 0%, transparent 70%);
  top: -70px; left: -90px;
  animation: blobFloat1 12s ease-in-out infinite;
}
.hero-wrapper::after {
  width: 270px; height: 270px;
  background: radial-gradient(circle, rgba(232,221,212,0.3) 0%, transparent 70%);
  bottom: -50px; right: -50px;
  animation: blobFloat2 10s ease-in-out infinite;
}
.hero {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center; gap: 28px;
  padding: 72px 80px; width: 100%;
  background: var(--surface-solid);
  background: var(--surface);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 var(--border-hi), var(--shadow-md);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: background 0.3s ease, border-color 0.3s ease;
}
@supports not (backdrop-filter: blur(1px)) {
  .hero { background: var(--surface-solid); }
}
.hero-eyebrow {
  font-size: 11px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 2.8px; color: var(--accent-text);
  padding: 6px 18px;
  border: 1px solid var(--border-solid);
  border-radius: 9999px; background: var(--accent-lighter);
  animation: fadeIn 0.6s ease both;
}
.hero h1 {
  font-family: var(--font-heading);
  font-size: 66px; font-weight: 700; line-height: 1.13;
  text-align: center; color: var(--text-primary);
  letter-spacing: -1.5px; max-width: 880px;
}
.hero h1 .highlight { color: var(--accent-text); }
.underline-draw {
  display: block; width: 0%;
  height: 4px; margin-top: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  border-radius: 2px;
}
.hero-subtitle {
  font-size: 19px; line-height: 1.7;
  text-align: center; color: var(--text-secondary);
  max-width: 760px;
}

/* ============================================================
   HOMEPAGE — SECTION HEADINGS
============================================================ */
.section-heading {
  font-family: var(--font-body);
  font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 2.5px;
  color: var(--text-muted); text-align: center;
}

/* ============================================================
   HOMEPAGE — PROJECTS
============================================================ */
.projects-section {
  display: flex; flex-direction: column; align-items: center;
  gap: 40px; width: 100%; max-width: 1212px;
}
.cards {
  display: flex; gap: 28px; justify-content: center; width: 100%;
}
.card {
  display: flex; flex-direction: column;
  flex: 1 1 0; min-width: 0; max-width: 388px;
  border-radius: var(--radius-md);
  background: var(--surface-solid);
  background: var(--surface);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 var(--border-hi), var(--shadow-sm);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.3s ease;
}
@supports not (backdrop-filter: blur(1px)) {
  .card { background: var(--surface-solid); }
}
.card:hover {
  transform: translateY(-10px);
  box-shadow: inset 0 1px 0 var(--border-hi), var(--shadow-lg);
  border-color: var(--accent);
}
.card-image {
  position: relative; width: 100%;
  aspect-ratio: 4 / 3; overflow: hidden;
}
.card-image img {
  width: 100%; height: 100%; object-fit: cover;
  object-position: top center;
  transition: transform 0.55s var(--ease), filter 0.55s ease;
}
/* WeAct card — contain so full image (phones + logo) is visible */
.card--weact .card-image { background: var(--surface-solid); }
.card--weact .card-image img { object-fit: contain; object-position: center; }

.card:hover .card-image img {
  transform: scale(1.08);
  filter: blur(3px) brightness(0.48);
}
.card-overlay {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  justify-content: flex-end; padding: 22px;
  background: linear-gradient(to top,
    rgba(20,14,10,0.9) 0%,
    rgba(20,14,10,0.1) 60%,
    transparent 100%);
  opacity: 0; transition: opacity 0.4s ease;
}
.card:hover .card-overlay { opacity: 1; }
.card-overlay-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.card-overlay-tag {
  font-size: 10px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.7px;
  color: #F2EDE7;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  backdrop-filter: blur(8px);
  border-radius: 4px; padding: 4px 10px;
}
.card-overlay-impact { font-size: 13px; line-height: 1.5; color: rgba(255,255,255,0.92); }
.card-overlay-impact strong { color: #fff; font-weight: 600; }
.card-text {
  display: flex; flex-direction: column;
  gap: 10px; padding: 24px 22px 22px; flex-grow: 1;
}
.card-text h3 {
  font-family: var(--font-heading);
  font-size: 21px; font-weight: 600;
  line-height: 1.25; letter-spacing: -0.3px;
  color: var(--text-primary);
}
.card-text p {
  font-size: 14px; line-height: 1.65;
  color: var(--text-secondary); flex-grow: 1;
}
.btn-magnetic { display: block; position: relative; margin-top: 10px; }
.btn {
  display: flex; align-items: center; justify-content: center;
  gap: 8px; padding: 12px 20px;
  background: var(--accent-light);
  border: 1px solid var(--border-solid);
  border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: 14px; font-weight: 600;
  color: var(--text-primary); text-decoration: none;
  cursor: pointer; width: 100%;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.btn:hover { background: var(--accent-btn-bg); border-color: var(--accent-btn-bg); color: #fff; }
.btn svg { width: 13px; height: 13px; transition: transform 0.2s ease, filter 0.2s ease; }
.btn:hover svg { transform: translateX(3px); filter: brightness(10); }

/* ============================================================
   HOMEPAGE — BENTO GRID
============================================================ */
.bento-section {
  display: flex; flex-direction: column; align-items: center;
  gap: 36px; width: 100%; max-width: 1212px;
}
.bento-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 20px; width: 100%;
}
.bento-card {
  display: flex; flex-direction: column; gap: 16px;
  padding: 38px 34px;
  background: var(--surface-solid);
  background: var(--surface);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-hi);
  box-shadow: inset 0 1px 0 var(--border-hi), var(--shadow-sm);
  border-radius: var(--radius-md);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease),
              border-color 0.3s ease, background 0.3s ease;
}
@supports not (backdrop-filter: blur(1px)) {
  .bento-card { background: var(--surface-solid); border-color: var(--border-solid); }
}
.bento-card:hover {
  transform: translateY(-6px);
  box-shadow: inset 0 1px 0 var(--border-hi), var(--shadow-md);
  border-color: var(--accent);
}
.bento-header { display: flex; align-items: baseline; gap: 8px; }
.bento-number {
  font-family: var(--font-heading); font-size: 12px; font-weight: 700;
  color: var(--accent-text); letter-spacing: 1px;
}
.bento-sep { color: var(--text-muted); font-size: 12px; }
.bento-label {
  font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 2.2px; color: var(--text-muted);
}
.bento-card h3 {
  font-family: var(--font-heading); font-size: 22px; font-weight: 600;
  line-height: 1.25; letter-spacing: -0.3px; color: var(--text-primary);
}
.bento-logo-wrap {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  background: var(--accent-lighter);
  border: 1px solid var(--border-solid);
  border-radius: 8px; width: fit-content;
}
.bento-logo { height: 26px; width: auto; object-fit: contain; }
.bento-logo-text { font-size: 13px; font-weight: 600; color: var(--text-secondary); }
.bento-card p { font-size: 14.5px; line-height: 1.75; color: var(--text-secondary); }

/* ============================================================
   CASE STUDY TEMPLATE
   ─────────────────────────────────────────────────────────────
   Use this section as the layout reference for all future
   case study / project pages. When prompting Claude, say:
   "Format this page to match the Case Study Template in style.css"

   PAGE STRUCTURE (top to bottom):
   1.  .case-hero          — Centered hero: eyebrow + large h1 + italic tagline + subtitle + CTA btn
   2.  .case-meta          — 4-column project metadata row (label above value, border dividers)
   3.  .case-showcase      — Phone/mockup images + product logo side by side
   4.  .case-band          — Full-width bg-secondary band: .overview-grid (glass cards) + .case-stats (stat cards)
   5.  .marquee-wrap       — Scrolling team names marquee
   6.  .process-pipeline   — Glass card with icon steps + arrows (Research→Synthesis→…→Iteration)
   7.  .case-section       — Wrapper for each numbered content section:
         └─ .section-eyebrow  (e.g. "01  RESEARCH & DISCOVERY")
         └─ .content-row      (text-col + image-col, alternating .reverse for layout variety)
         └─ .content-full     (full-width text + image, e.g. deliverables)
   8.  .case-divider       — Thin horizontal rule between major sections
   9.  Reflection section  — .reflection-grid with .reflection-card glass cards
                             (.reflection-card--wide spans full width for main skills block)

   KEY CLASSES:
   .case-eyebrow       small uppercase label above hero h1
   .case-tagline       italic subheading under h1
   .case-meta          project info row
   .case-band          full-bleed colored background section
   .overview-card      glass card (problem, role, etc.)
   .stat-card          large-number metric card
   .case-section       wrapper for a numbered section
   .section-eyebrow    "01  SECTION NAME" label
   .section-num        numbered pill badge
   .content-row        two-column text + image layout
   .content-row.reverse  flips image to left
   .content-full       single-column full-width content
   .reflection-card    glass card for reflection/skills blocks
   .reflection-card--wide  spans full grid width
   .proto-compare      lo-fi } hi-fi comparison layout
   .persona-carousel   swipeable image carousel
   .process-pipeline   horizontal step pipeline with icons
============================================================ */
/* ============================================================
   CASE STUDY — MAIN LAYOUT
============================================================ */
.case-main {
  display: flex; flex-direction: column;
  align-items: center; width: 100%;
  padding: 0 !important; gap: 0 !important;
}

/* Hero */
.case-hero {
  width: 100%; max-width: 1212px;
  padding: 140px 64px 60px;
  display: flex; flex-direction: column;
  align-items: center; text-align: center; gap: 20px;
}
.case-eyebrow {
  font-family: var(--font-body);
  font-size: 13px; font-weight: 600;
  letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--accent); margin: 0;
}
.case-hero h1 {
  font-family: var(--font-heading);
  font-size: 88px; font-weight: 700;
  line-height: 1.1; letter-spacing: -3px;
  color: var(--text-primary);
}
.case-tagline {
  font-family: var(--font-heading);
  font-size: 28px; font-weight: 400; font-style: italic;
  color: var(--text-secondary); letter-spacing: -0.5px;
}
.case-hero .subtitle {
  font-size: 18px; line-height: 1.6;
  color: var(--text-secondary);
  max-width: 600px; letter-spacing: -0.12px;
}
.speculative-note {
  font-size: 13px; line-height: 1.5;
  font-style: italic;
  color: var(--text-secondary);
  width: 100%; max-width: 1212px;
  padding: 10px 64px 48px;
  letter-spacing: 0.01em;
  text-align: center;
  box-sizing: border-box;
}
@media (max-width: 1023px) { .speculative-note { padding: 10px 44px 48px; } }
@media (max-width: 799px)  { .speculative-note { padding: 10px 28px 40px; } }
.case-btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 14px 50px; margin-top: 8px;
  background: var(--accent-light);
  border: 1px solid var(--accent-text);
  border-radius: 12px;
  font-family: var(--font-body); font-size: 16px; font-weight: 500;
  color: var(--text-primary); text-decoration: none;
  cursor: pointer; width: fit-content;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.3s var(--ease);
}
.case-btn:hover {
  background: var(--accent-btn-bg); border-color: var(--accent-btn-bg);
  color: #fff; transform: translateY(-2px);
}
.case-btn svg { width: 14px; height: 14px; transition: transform 0.2s ease, filter 0.2s ease; }
.case-btn:hover svg { transform: translate(3px, -3px); filter: brightness(10); }

/* ============================================================
   CASE PAGES — Animated glass hero card (linger.css copy)
============================================================ */
.hero-wrapper .case-hero {
  position: relative; z-index: 1;
  background: rgba(255, 255, 255, 0.10);
  backdrop-filter: none; -webkit-backdrop-filter: none;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: var(--radius-lg);
  box-shadow:
    0 6px 48px rgba(0, 0, 0, 0.22),
    0 2px 12px rgba(0, 0, 0, 0.12),
    0 1px 0   rgba(255, 255, 255, 0.80);
  transition: background 0.3s ease, border-color 0.3s ease;
  padding: 56px;
  opacity: 0; will-change: transform, opacity;
}
[data-theme="dark"] .hero-wrapper .case-hero {
  background: rgba(18, 18, 22, 0.62);
  border-color: rgba(255, 255, 255, 0.10);
  box-shadow:
    0 6px 48px rgba(0, 0, 0, 0.45),
    0 2px 12px rgba(0, 0, 0, 0.28),
    0 1px 0   rgba(255, 255, 255, 0.08);
}
/* Equal padding on all four sides across breakpoints */
@media (max-width: 1023px) { .hero-wrapper .case-hero { padding: 44px; } }
@media (max-width: 799px)  { .hero-wrapper .case-hero { padding: 32px; } }
/* Base hero-text-backdrop — mirrors style.css (not shared since linger uses its own CSS) */
.hero-text-backdrop {
  display: flex; flex-direction: column; align-items: center; gap: 28px;
  padding: 40px 48px;
  border-radius: 18px;
  width: 100%; box-sizing: border-box;
  background: rgba(255,255,255,0.42);
  backdrop-filter: blur(10px) saturate(1.2);
  -webkit-backdrop-filter: blur(10px) saturate(1.2);
  position: relative; z-index: 1;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.7), 0 2px 16px rgba(90,120,160,0.10);
  will-change: transform, opacity;
}
[data-theme="dark"] .hero-text-backdrop {
  background: rgba(18,18,22,0.60);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 2px 16px rgba(0,0,0,0.20);
}
/* Equal padding inside the frosted text panel when inside a glass hero */
.hero-wrapper .case-hero .hero-text-backdrop { padding: 40px; }
.hero-wrapper .hero-text-backdrop .case-eyebrow,
.hero-wrapper .hero-text-backdrop h1,
.hero-wrapper .hero-text-backdrop .case-tagline,
.hero-wrapper .hero-text-backdrop .subtitle {
  text-shadow: 0 0 20px rgba(255,255,255,0.5), 0 1px 4px rgba(255,255,255,0.4);
}

/* Project Meta */
.case-meta {
  display: flex; justify-content: center; gap: 0;
  width: 100%; max-width: 1212px;
  padding: 0 64px 48px;
}
.meta-item {
  flex: 1; text-align: center;
  padding: 20px 24px;
  border-left: 1px solid var(--border);
}
.meta-item:first-child { border-left: none; }
.meta-label {
  display: block;
  font-family: var(--font-body);
  font-size: 11px; font-weight: 600;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 8px;
}
.meta-value {
  font-family: var(--font-heading);
  font-size: 16px; font-weight: 600;
  color: var(--text-primary); letter-spacing: -0.2px;
}

/* Phone mockups + logo */
.case-showcase {
  display: flex; align-items: center; justify-content: center;
  gap: 67px; padding: 48px 64px 0;
  width: 100%; max-width: 1212px;
}
.phone-pair { display: flex; align-items: center; position: relative; }
.phone-pair img { height: 500px; width: auto; object-fit: cover; border-radius: 28px; }
.phone-pair img:nth-child(2) { margin-left: -14px; transform: rotate(-2.5deg); }
.case-logo-img { max-width: 405px; height: auto; object-fit: contain; }

/* Overview Band — full-width colored section */
.case-band {
  width: 100%;
  background: var(--bg-secondary);
  padding: 80px 0;
  margin-top: 64px;
  display: flex; justify-content: center;
}
.case-band-inner {
  width: 100%; max-width: 1212px;
  padding: 0 64px;
}
.overview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 48px;
}
.overview-card {
  padding: 40px;
  background: var(--surface);
  /* No backdrop-filter: sits over the flat page bg (+ faint grain), not the
     hero orbs — the live blur was visually inert and cost a per-frame
     composite during scroll/reveal. */
  border: 1px solid var(--border-hi);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.overview-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.overview-card h3 {
  font-family: var(--font-heading);
  font-size: 24px; font-weight: 700;
  color: var(--text-primary); margin-bottom: 16px;
  letter-spacing: -0.4px;
}
.overview-card p, .overview-card li {
  font-size: 16px; line-height: 1.65;
  color: var(--text-secondary); letter-spacing: -0.09px;
}
.overview-card ul { list-style: disc; padding-left: 20px; }
.overview-card li { margin-bottom: 4px; }
.overview-card .role-columns { display: flex; gap: 24px; }
.overview-card .role-columns ul { flex: 1; }

/* Stat Cards */
.case-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.stat-card {
  display: flex; flex-direction: column; align-items: center;
  gap: 8px; padding: 32px 16px;
  background: var(--surface);
  /* No backdrop-filter — inert over the flat bg; see .overview-card note. */
  border: 1px solid var(--border-hi);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.stat-number {
  font-family: var(--font-heading);
  font-size: 48px; font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -1.5px; line-height: 1;
}
.stat-label {
  font-family: var(--font-body);
  font-size: 14px; font-weight: 500;
  color: var(--text-muted); letter-spacing: -0.08px;
}

/* Case Divider */
.case-divider {
  width: 120px; border: none;
  border-top: 1.5px solid var(--border);
  margin: 20px 0;
}

/* Section Eyebrow */
.case-section {
  width: 100%;
  display: flex; flex-direction: column;
  align-items: center;
}
.section-eyebrow {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-body);
  font-size: 13px; font-weight: 600;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--accent);
  padding: 48px 64px 0;
  width: 100%; max-width: 1212px;
}
.section-num {
  font-family: var(--font-heading);
  font-size: 13px; font-weight: 700;
  color: var(--accent);
  background: var(--accent-light);
  padding: 4px 10px;
  border-radius: 6px;
}

/* Marquee */
.marquee-wrap {
  width: 100%; max-width: 1212px;
  overflow: hidden; padding: 20px 0 0;
  mask-image: linear-gradient(90deg, transparent 0%, black 8%, black 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 8%, black 92%, transparent 100%);
}
.marquee-track {
  display: flex; align-items: center; gap: 32px;
  width: max-content; will-change: transform;
}
.marquee-name {
  font-family: var(--font-heading);
  font-size: 20px; font-weight: 600;
  color: var(--text-primary); letter-spacing: -0.3px;
  white-space: nowrap; flex-shrink: 0;
}
.marquee-sep {
  font-family: var(--font-heading);
  font-size: 20px; font-weight: 600;
  color: var(--text-muted); flex-shrink: 0;
}
.marquee-name.info-item--logo {
  display: inline-flex; align-items: center; gap: 8px;
}
.info-logo { height: 22px; width: auto; vertical-align: middle; }

/* Process pipeline */
.process-pipeline {
  display: flex; align-items: center; justify-content: center;
  padding: 20px 64px 40px; width: 100%; max-width: 1212px;
}
.process-pipeline-card {
  background: var(--surface);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-hi);
  border-radius: var(--radius-md); box-shadow: var(--shadow-md);
  padding: 48px 64px; width: 100%;
  display: flex; align-items: center; justify-content: center;
}
.process-step { display: flex; flex-direction: column; align-items: center; gap: 15px; text-align: center; }
.process-icon {
  width: 52px; height: 52px; background: var(--accent);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.3s var(--ease);
}
.process-icon:hover { transform: translateY(-3px); }
.process-icon img { width: 24px; height: 24px; filter: brightness(10); }
.process-icon svg { width: 24px; height: 24px; }
.process-label { font-size: 14px; font-weight: 500; color: var(--text-primary); letter-spacing: -0.08px; }
.process-arrow { font-size: 20px; color: var(--text-muted); flex-shrink: 0; }
.process-arrow svg { width: 28px; height: 18px; stroke: var(--text-muted); }

/* Content rows */
.content-row {
  display: flex; gap: 64px; align-items: center; justify-content: center;
  padding: 48px 64px 40px; width: 100%; max-width: 1212px;
}
.content-row.reverse { flex-direction: row-reverse; }
.content-row .text-col { flex: 1; display: flex; flex-direction: column; gap: 24px; }
.content-row .image-col { flex: 1; display: flex; align-items: center; justify-content: center; }
.content-row h2 {
  font-family: var(--font-heading);
  font-size: 32px; font-weight: 700;
  line-height: 1.2; letter-spacing: -0.72px; color: var(--text-primary);
}
.content-row p, .content-row li { font-size: 16px; line-height: 1.65; color: var(--text-secondary); letter-spacing: -0.09px; }
.content-row p strong, .content-row p em { color: var(--text-primary); }
.content-row ul, .content-row ol { padding-left: 24px; }
.content-row ul { list-style: disc; }
.content-row ol { list-style: decimal; }
.content-row li { margin-bottom: 6px; }
.content-row img {
  max-width: 100%; height: auto;
  border-radius: var(--radius-sm);
}

.content-full { padding: 48px 64px 24px; width: 100%; max-width: 1212px; }
.case-section:last-child .content-full { padding-bottom: 96px; }
.content-full h2 {
  font-family: var(--font-heading);
  font-size: 32px; font-weight: 700;
  line-height: 1.2; letter-spacing: -0.72px; color: var(--text-primary); margin-bottom: 24px;
}
.content-full > p { font-size: 16px; line-height: 1.65; color: var(--text-secondary); margin-bottom: 24px; }
.content-full ul, .content-full ol { padding-left: 24px; margin-bottom: 8px; }
.content-full ul { list-style: disc; }
.content-full ol { list-style: decimal; }
.content-full li { font-size: 16px; line-height: 1.65; color: var(--text-secondary); letter-spacing: -0.09px; margin-bottom: 6px; }
.content-full li strong { color: var(--text-primary); }

/* Figma prototype tabs */
.proto-tabs {
  position: relative;
  display: flex;
  gap: 0;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0;
}
.proto-tab {
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 10px 20px 12px;
  transition: color 0.2s ease;
  white-space: nowrap;
  z-index: 1;
}
.proto-tab:hover { color: var(--text-primary); }
.proto-tab.active { color: var(--accent); }
.proto-tab-indicator {
  position: absolute;
  bottom: -1px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px 2px 0 0;
  transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1), width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

/* Figma prototype embed */
.proto-embed-wrap {
  position: relative;
  width: 100%;
  height: 820px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 8px 40px rgba(0,0,0,0.10);
  margin-bottom: 24px;
  background: var(--bg-secondary);
}
.proto-embed-wrap iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.proto-embed-wrap iframe.loaded { opacity: 1; }

/* Click-to-load poster */
.proto-poster {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  border: none;
  cursor: pointer;
  overflow: hidden;
  background: linear-gradient(135deg, #C2F6FE 0%, #FEC7F8 100%);
  transition: opacity 0.4s ease, visibility 0.4s ease;
}
.proto-poster.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.proto-poster-shot {
  max-height: 86%;
  width: auto;
  border-radius: 26px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.28);
  transform: rotate(-3deg);
  transition: transform 0.5s cubic-bezier(0.16,1,0.3,1);
}
.proto-poster:hover .proto-poster-shot { transform: rotate(-2deg) scale(1.02); }
.proto-poster-cta {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 24px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #1a1a1a;
  background: rgba(255,255,255,0.62);
  border: 1px solid rgba(255,255,255,0.8);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: 0 8px 28px rgba(0,0,0,0.18);
  transition: transform 0.3s cubic-bezier(0.16,1,0.3,1), background 0.3s ease;
}
.proto-poster:hover .proto-poster-cta {
  transform: scale(1.04);
  background: rgba(255,255,255,0.78);
}
.proto-poster-cta svg { color: var(--accent, #c5468a); }
@media (prefers-reduced-motion: reduce) {
  .proto-poster-shot, .proto-poster:hover .proto-poster-shot { transform: none; }
  .proto-poster-cta, .proto-poster:hover .proto-poster-cta { transform: none; }
}

/* Loader */
.proto-loader {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 2;
}
.proto-loader.visible { opacity: 1; pointer-events: auto; }
.proto-loader-shimmer {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    var(--bg-secondary) 40%,
    rgba(255,255,255,0.18) 50%,
    var(--bg-secondary) 60%
  );
  background-size: 200% 100%;
  animation: proto-shimmer 1.4s ease infinite;
}
@keyframes proto-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.proto-loader-icon {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--text-secondary);
  z-index: 1;
}
.proto-loader-icon svg { opacity: 0.5; animation: proto-pulse 1.6s ease-in-out infinite; }
.proto-loader-icon span { font-size: 13px; font-weight: 500; opacity: 0.6; letter-spacing: 0.02em; }
@keyframes proto-pulse {
  0%, 100% { opacity: 0.35; transform: translateY(0); }
  50%       { opacity: 0.7;  transform: translateY(-3px); }
}

.proto-embed-fallback { margin-top: 0; }

/* Prototyping comparison */
.proto-compare {
  display: flex; align-items: center; justify-content: center;
  padding: 24px 64px 40px; width: 100%; max-width: 1212px;
}
.proto-compare img { max-height: 520px; width: auto; object-fit: contain; border-radius: var(--radius-sm); }
.proto-brace {
  font-family: var(--font-heading); font-size: 240px; line-height: 1;
  color: var(--accent); padding: 0 4px; user-select: none;
}
.deliverables-img { max-width: 945px; width: 100%; margin: 0 auto; display: block; border-radius: var(--radius-sm); }
.outcomes-img { max-width: 709px; width: 100%; border-radius: var(--radius-sm); }

/* Persona carousel */
.persona-carousel {
  position: relative; max-width: 540px; width: 100%;
  overflow: hidden; border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}
.persona-track { display: flex; transition: transform 0.5s var(--ease); }
.persona-track img { width: 100%; height: auto; flex-shrink: 0; border-radius: 0; box-shadow: none; }
.carousel-btns {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 100%; display: flex; justify-content: space-between;
  padding: 0 8px; pointer-events: none;
}
.carousel-btn {
  pointer-events: auto; background: var(--accent-light);
  border: none; border-radius: 6px; padding: 6px 8px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s ease;
}
.carousel-btn:hover { background: var(--accent); }
.carousel-btn svg { width: 20px; height: 20px; stroke: var(--text-primary); }
.carousel-btn:hover svg { stroke: #fff; }

/* Reflection — Glass Cards */
.reflection-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px; padding-top: 32px;
}
.reflection-card {
  padding: 36px;
  background: var(--surface);
  /* No backdrop-filter — inert over the flat bg; see .overview-card note. */
  border: 1px solid var(--border-hi);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.reflection-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.reflection-card--wide {
  grid-column: 1 / -1;
}
.reflection-card h3 {
  font-family: var(--font-heading); font-size: 22px; font-weight: 700;
  color: var(--text-primary); margin-bottom: 20px; letter-spacing: -0.12px;
}
.reflection-card p, .reflection-card li { font-size: 16px; line-height: 1.65; color: var(--text-secondary); letter-spacing: -0.09px; }
.reflection-card ul { list-style: disc; padding-left: 24px; }
.reflection-card li { margin-bottom: 10px; }
.reflection-card li strong { color: var(--text-primary); }
.skill-detail { margin-left: 20px; padding-left: 0; list-style: disc; margin-top: 2px; }
.skill-detail li { color: var(--text-secondary); font-weight: 400; margin-bottom: 4px; }

/* ============================================================
   REDUCED TRANSPARENCY
   Glass elements get a solid-blue fallback (not white) so the
   Aero aesthetic is preserved even without translucency.
============================================================ */
@media (prefers-reduced-transparency: reduce) {
  .hero, .card, .bento-card, .process-pipeline-card {
    background: rgba(205, 232, 248, 0.94) !important;
    backdrop-filter: none !important; -webkit-backdrop-filter: none !important;
  }
  .overview-card, .reflection-card {
    background: rgba(220, 238, 252, 0.88) !important;
    backdrop-filter: none !important; -webkit-backdrop-filter: none !important;
  }
  .stat-card {
    background: radial-gradient(circle at 38% 32%,
      rgba(248, 238, 120, 0.95) 0%,
      rgba(100, 222, 195, 0.90) 35%,
      rgba(110, 175, 252, 0.85) 65%,
      rgba(188, 148, 245, 0.75) 100%
    ) !important;
    backdrop-filter: none !important; -webkit-backdrop-filter: none !important;
  }
  [data-theme="dark"] .hero,
  [data-theme="dark"] .card,
  [data-theme="dark"] .bento-card,
  [data-theme="dark"] .process-pipeline-card,
  [data-theme="dark"] .overview-card,
  [data-theme="dark"] .stat-card,
  [data-theme="dark"] .reflection-card {
    background: rgba(10, 38, 95, 0.97) !important;
  }
}

/* ============================================================
   RESPONSIVE — TABLET  800–1279px
============================================================ */
@media (max-width: 1279px) {
  /* Homepage */
  main { padding: 60px 28px; gap: 52px; }
  .hero { padding: 52px 44px; }
  .hero h1 { font-size: 48px; letter-spacing: -0.8px; }
  .hero-subtitle { font-size: 17px; }
  .cards { gap: 20px; }
  .card-text h3 { font-size: 18px; }
  .card-text p { font-size: 13px; }
  .bento-grid { grid-template-columns: repeat(2, 1fr); }
  .bento-card:nth-child(3) { grid-column: span 2; }
  .bento-card h3 { font-size: 19px; }
  .bento-card { padding: 30px 26px; }
  /* Case study */
  .case-hero { padding: 100px 28px 48px; }
  .case-hero h1 { font-size: 64px; letter-spacing: -2px; }
  .case-tagline { font-size: 22px; }
  .case-meta { padding: 0 28px 40px; }
  .meta-item { padding: 16px 16px; }
  .case-showcase { flex-direction: column; gap: 40px; padding: 32px 28px 0; }
  .phone-pair img { height: 400px; }
  .case-logo-img { max-width: 300px; }
  .case-band { padding: 60px 0; margin-top: 48px; }
  .case-band-inner { padding: 0 28px; }
  .overview-grid { gap: 20px; margin-bottom: 32px; }
  .overview-card { padding: 32px; }
  .case-stats { grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .stat-card { padding: 24px 12px; }
  .stat-number { font-size: 36px; }
  .process-pipeline { padding: 20px 28px 32px; }
  .process-pipeline-card { padding: 32px 28px; flex-wrap: wrap; gap: 16px; }
  .section-eyebrow { padding: 40px 28px 0; }
  .content-row { padding: 36px 28px 28px; gap: 40px; }
  .content-full { padding: 36px 28px 24px; }
  .proto-compare { padding: 20px 28px 40px; }
  .proto-compare img { max-height: 400px; }
  .reflection-grid { grid-template-columns: 1fr 1fr; }
  .reflection-card { padding: 28px; }
  footer { padding: 16px 28px; }
}

/* ============================================================
   RESPONSIVE — MOBILE  1–799px
============================================================ */
@media (max-width: 799px) {
  /* Homepage */
  main { padding: 40px 18px; gap: 36px; }
  .hero-wrapper::before, .hero-wrapper::after { display: none; }
  .hero { padding: 40px 22px; gap: 20px; }
  .hero h1 { font-size: 34px; letter-spacing: -0.5px; }
  .hero-subtitle { font-size: 15px; }
  .cards { flex-direction: column; align-items: stretch; gap: 18px; }
  .card { flex: 0 0 auto; max-width: 100%; opacity: 1 !important; transform: none !important; }
  .card:hover { transform: none; box-shadow: var(--shadow-sm); }
  .card-text { padding: 20px 18px 18px; }
  .card-text h3 { font-size: 19px; }
  .card-text p { font-size: 14px; }
  .bento-grid { grid-template-columns: 1fr; }
  .bento-card:nth-child(3) { grid-column: span 1; }
  .bento-card { padding: 26px 20px; gap: 12px; opacity: 1 !important; transform: none !important; }
  .bento-card h3 { font-size: 18px; }
  footer { padding: 16px 20px; }
  .footer-links { gap: 20px; }
  .footer-bottom { flex-direction: column; gap: 8px; }
  /* Case study */
  .case-hero { padding: 60px 18px 32px; gap: 16px; }
  .case-hero h1 { font-size: 48px; letter-spacing: -1.5px; }
  .case-tagline { font-size: 20px; }
  .case-hero .subtitle { font-size: 15px; }
  .case-btn { padding: 12px 32px; font-size: 14px; }
  .case-meta { flex-wrap: wrap; padding: 0 18px 32px; }
  .meta-item { flex: 1 1 40%; padding: 14px 12px; }
  .meta-item:nth-child(3) { border-left: none; }
  .marquee-name { font-size: 16px; }
  .marquee-sep { font-size: 16px; }
  .case-showcase { padding: 24px 18px 0; gap: 28px; }
  .phone-pair { flex-direction: row; justify-content: center; }
  .phone-pair img { height: 220px; width: auto; }
  .phone-pair img:nth-child(2) { margin-left: -10px; margin-top: 0; transform: rotate(-2deg); }
  .case-logo-img { max-width: 220px; }
  .case-band { padding: 48px 0; margin-top: 36px; }
  .case-band-inner { padding: 0 18px; }
  .overview-grid { grid-template-columns: 1fr; gap: 16px; margin-bottom: 24px; }
  .overview-card { padding: 28px; }
  .overview-card .role-columns { flex-direction: column; gap: 8px; }
  .case-stats { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .stat-card { padding: 24px 12px; }
  .stat-number { font-size: 36px; }
  .case-divider { width: 80px; }
  .section-eyebrow { padding: 32px 18px 0; font-size: 12px; }
  .process-pipeline { padding: 10px 18px 24px; }
  .process-pipeline-card { padding: 24px 18px; flex-wrap: wrap; gap: 20px; justify-content: center; }
  .process-step { gap: 8px; }
  .process-icon { width: 40px; height: 40px; border-radius: 10px; }
  .process-icon img { width: 18px; height: 18px; }
  .process-label { font-size: 11px; }
  .process-arrow { display: none; }
  .content-row { flex-direction: column !important; padding: 28px 18px 20px; gap: 28px; }
  .content-row h2 { font-size: 26px; }
  .content-full { padding: 28px 18px 16px; }
  .content-full h2 { font-size: 26px; }
  .proto-tabs { overflow-x: auto; overflow-y: hidden; flex-wrap: nowrap; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .proto-tabs::-webkit-scrollbar { display: none; }
  .proto-embed-wrap { height: 560px; }
  .proto-compare { flex-direction: column; padding: 16px 18px 32px; gap: 0; }
  .proto-compare img { max-height: 320px; }
  .proto-brace { font-size: 80px; transform: rotate(90deg); }
  .reflection-grid { grid-template-columns: 1fr; gap: 12px; }
  .reflection-card { padding: 24px; }
}

/* ============================================================
   REDUCED MOTION
============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .hero-wrapper::before, .hero-wrapper::after { animation: none; }
}

/* ============================================================
   FRUTIGER AERO OVERRIDES
   Genuine blue translucent glass — the background shows through.
   Cards are BLUE first, translucent second. No white base.
============================================================ */

/* ---- Shared glass mixin values (used via CSS custom props) ---- */
/* Very light frosted glass — background & orbs show through strongly */
:root {
  --glass-bg:       linear-gradient(180deg, rgba(255,255,255,0.38) 0%, rgba(255,255,255,0.18) 100%);
  --glass-border:   rgba(255, 255, 255, 0.68);
  --glass-border-t: rgba(255, 255, 255, 0.92);
  --glass-border-b: rgba(180, 215, 245, 0.28);
  --glass-shadow:   0 8px 36px rgba(80, 140, 210, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.88);
  --glass-filter:   blur(22px) saturate(1.8) brightness(1.08);
}

/* ============================================================
   ORB BACKDROP — Iridescent Linger orbs as fixed atmosphere.
   Replicates the green→teal→blue→lavender radial gradient
   from the Figma Orb component (node 72:276).
   Heavy blur + low opacity = ambient colour clouds behind glass.
============================================================ */
/* Orb atmosphere — baked as fixed radial-gradient stack on body::before below.
   Replaces a previous DOM-orb backdrop (35 blurred divs) that was expensive
   to scroll. The fixed pseudo-element approach is effectively free per frame. */

/* ---- Page background: vibrant multicolour landscape ---- */
body {
  background:
    radial-gradient(ellipse 130% 55% at 8%  98%, rgba(110, 210, 145, 0.72) 0%, transparent 52%),
    radial-gradient(ellipse 110% 50% at 94% 4%,  rgba(210, 155, 240, 0.62) 0%, transparent 52%),
    radial-gradient(ellipse 85%  60% at 80% 94%, rgba(248, 185, 130, 0.48) 0%, transparent 58%),
    radial-gradient(ellipse 115% 52% at 4%  16%, rgba(90,  185, 252, 0.52) 0%, transparent 58%),
    radial-gradient(ellipse 95%  65% at 52% 48%, rgba(195, 235, 255, 0.32) 0%, transparent 62%),
    radial-gradient(ellipse 75%  40% at 40% 75%, rgba(175, 235, 200, 0.40) 0%, transparent 55%),
    linear-gradient(155deg, #cce9f7 0%, #c2e5d2 25%, #e2d6f0 52%, #f0e6d0 78%, #c6e8e2 100%);
  /* NO background-attachment:fixed — it forces full CPU repaint every scroll pixel.
     The orb-backdrop is position:fixed so the atmosphere holds without it. */
}
/* Baked orb atmosphere + wave sweep overlays — fixed pseudo-element so the
   browser rasterizes the whole stack once and reuses it every scroll frame.
   Orb gradients approximate the iridescent Linger orb (green→cyan→blue→lavender)
   at varied sizes/positions across the viewport. */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    /* Orb cluster — top on top, bottom on bottom; mix of sizes for depth */
    radial-gradient(circle 380px at -3% -8%,
      rgba(187, 229, 167, 0.55) 0%, rgba(144, 193, 255, 0.35) 30%,
      rgba(223, 213, 252, 0.18) 55%, transparent 75%),
    radial-gradient(circle 300px at 102% 4%,
      rgba(187, 229, 167, 0.48) 0%, rgba(144, 193, 255, 0.32) 30%,
      rgba(223, 213, 252, 0.16) 55%, transparent 75%),
    radial-gradient(circle 160px at 38% 9%,
      rgba(187, 229, 167, 0.50) 0%, rgba(166, 211, 211, 0.34) 30%,
      rgba(144, 193, 255, 0.18) 60%, transparent 80%),
    radial-gradient(circle 110px at 72% 18%,
      rgba(166, 211, 211, 0.55) 0%, rgba(144, 193, 255, 0.30) 40%, transparent 80%),
    radial-gradient(circle 240px at -4% 33%,
      rgba(187, 229, 167, 0.45) 0%, rgba(144, 193, 255, 0.30) 35%,
      rgba(223, 213, 252, 0.16) 60%, transparent 80%),
    radial-gradient(circle 70px at 52% 41%,
      rgba(187, 229, 167, 0.60) 0%, rgba(144, 193, 255, 0.32) 50%, transparent 85%),
    radial-gradient(circle 170px at 103% 45%,
      rgba(166, 211, 211, 0.45) 0%, rgba(144, 193, 255, 0.28) 40%, transparent 80%),
    radial-gradient(circle 240px at 22% 58%,
      rgba(187, 229, 167, 0.42) 0%, rgba(144, 193, 255, 0.28) 35%,
      rgba(223, 213, 252, 0.15) 60%, transparent 80%),
    radial-gradient(circle 300px at 104% 64%,
      rgba(187, 229, 167, 0.42) 0%, rgba(144, 193, 255, 0.30) 35%,
      rgba(223, 213, 252, 0.15) 60%, transparent 80%),
    radial-gradient(circle 110px at 72% 74%,
      rgba(166, 211, 211, 0.48) 0%, rgba(144, 193, 255, 0.28) 45%, transparent 80%),
    radial-gradient(circle 380px at -5% 82%,
      rgba(187, 229, 167, 0.45) 0%, rgba(144, 193, 255, 0.30) 35%,
      rgba(223, 213, 252, 0.16) 60%, transparent 80%),
    radial-gradient(circle 60px at 60% 89%,
      rgba(187, 229, 167, 0.55) 0%, rgba(144, 193, 255, 0.30) 50%, transparent 85%),
    /* Wave sweep overlays — diagonal light bands for depth */
    linear-gradient(158deg, transparent 28%, rgba(155, 225, 185, 0.26) 42%, transparent 58%),
    linear-gradient(22deg,  transparent 22%, rgba(210, 180, 248, 0.20) 38%, transparent 56%);
  pointer-events: none;
  z-index: 0;
}
body::after {
  content: '';
  position: fixed;
  width: 240%;
  height: 280px;
  bottom: 22%;
  left: -70%;
  background: linear-gradient(90deg,
    rgba(110, 215, 165, 0.14) 0%,
    rgba(170, 215, 255, 0.20) 28%,
    rgba(225, 175, 248, 0.16) 58%,
    rgba(248, 198, 155, 0.12) 82%,
    rgba(110, 215, 165, 0.14) 100%
  );
  transform: rotate(-4deg);
  pointer-events: none;
  z-index: 0;
  filter: blur(28px);
}
main { position: relative; z-index: 1; contain: layout style; }
footer { position: relative; z-index: 1; }

/* ---- Hero title: gradient text ---- */
.case-hero h1 {
  background: linear-gradient(135deg, #083060 10%, #1a90d4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.case-tagline { color: #0e5c9a; font-style: italic; }

/* Dark mode hero text — ensure legibility on dark landscape */
[data-theme="dark"] .case-hero h1 {
  background: linear-gradient(135deg, #82c8f5 10%, #c8e8ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
[data-theme="dark"] .case-tagline { color: rgba(160, 210, 255, 0.92); }
[data-theme="dark"] .case-hero .subtitle { color: rgba(185, 220, 250, 0.85); }
[data-theme="dark"] .case-eyebrow { color: rgba(140, 195, 255, 0.80); }

/* ---- CTA button: glass card style — same visual language as sprint-day bentos ---- */
.case-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.32) !important;
  backdrop-filter: blur(12px) saturate(1.8) brightness(1.08) !important;
  -webkit-backdrop-filter: blur(12px) saturate(1.8) brightness(1.08) !important;
  color: rgba(12, 42, 88, 0.94) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.75) !important;
  border-top-color: rgba(255, 255, 255, 0.94) !important;
  border-bottom-color: rgba(175, 210, 245, 0.40) !important;
  border-radius: 18px !important;
  padding: 13px 28px !important;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.1px;
  box-shadow:
    0 4px 22px rgba(80, 130, 210, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.92) !important;
  position: relative;
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  text-decoration: none;
}
/* Subtle inner gloss line at top */
.case-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,0.28) 0%, transparent 50%);
  pointer-events: none;
}
.case-btn:hover {
  background: rgba(255, 255, 255, 0.55) !important;
  color: rgba(8, 32, 72, 0.98) !important;
  transform: translateY(-2px);
  box-shadow:
    0 8px 32px rgba(80, 130, 210, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.96) !important;
  border-color: rgba(255, 255, 255, 0.90) !important;
}
.case-btn svg { stroke: rgba(12, 42, 88, 0.90); transition: transform 0.2s ease; }
.case-btn:hover svg { transform: translate(2px, -2px); }

/* ---- Case meta strip ---- */
.meta-item { border-left-color: rgba(60, 140, 228, 0.30); }
.meta-label { color: #004a8f; } /* darkened from #0c6ab8 — passes AA on all body bg pastels */

/* ---- Overview band: transparent so the orb backdrop shows through the cards ---- */
.case-band {
  background: transparent;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  border-bottom: 1px solid rgba(200, 230, 248, 0.20);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

/* ============================================================
   GLASS CARDS — same frosted-glass look as the sprint-day bentos.
   stat-card keeps its own orb gradient; overview + reflection
   match the Friday / Saturday / … card style exactly.
============================================================ */

/* Stat card keeps its own orb gradient (defined below) */
.stat-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-top-color: var(--glass-border-t);
  border-bottom-color: var(--glass-border-b);
  box-shadow: var(--glass-shadow);
  backdrop-filter: var(--glass-filter);
  -webkit-backdrop-filter: var(--glass-filter);
}

/* Overview + reflection → sprint-day bento style (same values + !important to beat prefers-reduced-transparency overrides) */
.overview-card,
.reflection-card {
  background: rgba(255, 255, 255, 0.30) !important;
  border: 1px solid rgba(255, 255, 255, 0.72) !important;
  border-top-color: rgba(255, 255, 255, 0.92) !important;
  border-bottom-color: rgba(175, 210, 248, 0.32) !important;
  box-shadow: 0 4px 20px rgba(80, 130, 200, 0.14), inset 0 1px 0 rgba(255,255,255,0.88) !important;
  backdrop-filter: blur(12px) saturate(1.8) brightness(1.08) !important;
  -webkit-backdrop-filter: blur(12px) saturate(1.8) brightness(1.08) !important;
}

/* Card headings — dark navy on light glass */
.overview-card h3 {
  color: rgba(12, 42, 88, 0.96) !important;
  text-shadow: none !important;
}
.overview-card p,
.overview-card li { color: rgba(22, 58, 108, 0.88) !important; }


/* ---- Sprint-day cards ---- */
.sprint-day {
  background: rgba(255, 255, 255, 0.30) !important;
  border: 1px solid rgba(255, 255, 255, 0.72) !important;
  border-top-color: rgba(255, 255, 255, 0.92) !important;
  border-bottom-color: rgba(175, 210, 248, 0.32) !important;
  box-shadow: 0 4px 20px rgba(80, 130, 200, 0.14), inset 0 1px 0 rgba(255,255,255,0.88) !important;
  backdrop-filter: blur(12px) saturate(1.8) brightness(1.08) !important;
  -webkit-backdrop-filter: blur(12px) saturate(1.8) brightness(1.08) !important;
}
.sprint-day-label {
  color: rgba(12, 42, 88, 0.95) !important;
  text-shadow: none !important;
  border-bottom-color: rgba(180, 215, 240, 0.45) !important;
}
.sprint-day li {
  background: rgba(255, 255, 255, 0.42) !important;
  color: rgba(18, 52, 108, 0.92) !important;
  border: 1px solid rgba(255, 255, 255, 0.62) !important;
  border-top-color: rgba(255, 255, 255, 0.82) !important;
}

/* ---- Reflection card text — matches sprint-day label / pill colours ---- */
.reflection-card h3 {
  color: rgba(12, 42, 88, 0.95) !important;
  text-shadow: none !important;
  border-bottom: 1px solid rgba(180, 215, 240, 0.45);
  padding-bottom: 12px;
  margin-bottom: 4px;
}
.reflection-card p,
.reflection-card li { color: rgba(18, 52, 108, 0.92) !important; }
.reflection-card li strong { color: rgba(8, 35, 75, 0.98) !important; }
.reflection-card .skill-detail li { color: rgba(18, 52, 108, 0.88) !important; }
.reflection-card--wide { border-left: none; }

/* ---- Stat cards: circular Linger orbs (reference-accurate soft pastel) ---- */
.stat-card {
  aspect-ratio: 1;
  max-width: 175px;
  max-height: 175px;
  margin: 0 auto;
  border-radius: 50% !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 12% !important;
  gap: 3px !important;
  /* Soft blue-lavender gradient — matches reference image orb */
  background: radial-gradient(circle at 42% 36%,
    rgba(238, 255, 222, 0.78) 0%,    /* very pale lime glow — subtle */
    rgba(195, 228, 255, 0.88) 24%,   /* pale sky blue */
    rgba(168, 200, 252, 0.86) 48%,   /* soft blue */
    rgba(192, 172, 248, 0.78) 70%,   /* soft lavender */
    rgba(218, 205, 252, 0.45) 86%,   /* pale lavender edge */
    rgba(240, 238, 255, 0.06) 100%   /* near-transparent rim */
  ) !important;
  border: none !important;
  /* White bloom halo — key feature of the reference orb */
  box-shadow:
    0 0 55px rgba(205, 220, 255, 0.68),
    0 0 110px rgba(220, 212, 255, 0.42),
    0 0 170px rgba(255, 255, 255, 0.22),
    inset 0 6px 20px rgba(255, 255, 255, 0.74),
    inset 0 -4px 14px rgba(160, 185, 248, 0.22) !important;
  backdrop-filter: none !important;   /* orbs have own gradient — no blur needed */
  -webkit-backdrop-filter: none !important;
}
.stat-card:hover {
  transform: translateY(-4px) scale(1.04) !important;
  box-shadow:
    0 0 70px rgba(205, 220, 255, 0.80),
    0 0 130px rgba(220, 212, 255, 0.52),
    0 0 200px rgba(255, 255, 255, 0.28),
    inset 0 6px 20px rgba(255, 255, 255, 0.80),
    inset 0 -4px 14px rgba(160, 185, 248, 0.28) !important;
}
/* Stat text: sized to fit comfortably inside the circle */
.stat-number {
  font-size: clamp(26px, 3.5vw, 38px) !important;
  line-height: 1 !important;
  letter-spacing: -1px !important;
  color: rgba(12, 42, 88, 0.95) !important;
  text-shadow: 0 1px 8px rgba(255, 255, 255, 0.70) !important;
}
.stat-label {
  font-size: clamp(9px, 1.1vw, 12px) !important;
  line-height: 1.2 !important;
  letter-spacing: 0.01em !important;
  text-align: center !important;
  color: rgba(18, 52, 108, 0.88) !important;
  text-shadow: none;
  word-break: break-word;
}
/* Unit ("hrs", "flows"…) was unstyled and inherited the body text colour,
   which goes light in dark mode and fails on the pale orb. Pin it navy. */
.stat-unit {
  color: rgba(18, 52, 108, 0.82) !important;
  text-shadow: none;
}

/* ---- Process pipeline card ---- */
.process-pipeline-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-top-color: var(--glass-border-t);
  border-bottom-color: var(--glass-border-b);
  box-shadow: var(--glass-shadow);
  backdrop-filter: var(--glass-filter);
  -webkit-backdrop-filter: var(--glass-filter);
}

/* ---- Homepage hero card ---- */
.hero {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-top-color: var(--glass-border-t);
  border-bottom-color: var(--glass-border-b);
  box-shadow: var(--glass-shadow);
  backdrop-filter: var(--glass-filter);
  -webkit-backdrop-filter: var(--glass-filter);
}
.hero-wrapper::before {
  background: radial-gradient(circle, rgba(30,150,255,0.22) 0%, transparent 70%);
}
.hero-wrapper::after {
  background: radial-gradient(circle, rgba(30,210,175,0.18) 0%, transparent 70%);
}

/* ---- Homepage project cards ---- */
.card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-top-color: var(--glass-border-t);
  border-bottom-color: var(--glass-border-b);
  box-shadow: var(--glass-shadow);
  backdrop-filter: var(--glass-filter);
  -webkit-backdrop-filter: var(--glass-filter);
}
.card:hover { border-color: rgba(160, 220, 255, 0.80); }
.card-text h3 { color: rgba(12, 42, 88, 0.96); }
.card-text p  { color: rgba(22, 58, 108, 0.86); }

/* ---- Bento cards ---- */
.bento-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-top-color: var(--glass-border-t);
  border-bottom-color: var(--glass-border-b);
  box-shadow: var(--glass-shadow);
  backdrop-filter: var(--glass-filter);
  -webkit-backdrop-filter: var(--glass-filter);
}
.bento-card:hover { border-color: rgba(160, 220, 255, 0.80); }
.bento-card h3 { color: rgba(12, 42, 88, 0.96); }
.bento-card p  { color: rgba(22, 58, 108, 0.86); }
.bento-number  { color: rgba(30, 80, 155, 0.70); }

/* ---- Homepage .btn ---- */
.btn {
  background: linear-gradient(180deg,
    rgba(175, 220, 255, 0.55) 0%,
    rgba(70, 145, 228, 0.70) 100%
  );
  border: 1px solid rgba(210, 240, 255, 0.60);
  border-top-color: rgba(240, 250, 255, 0.80);
  border-bottom-color: rgba(30, 100, 205, 0.55);
  color: rgba(240, 250, 255, 0.96);
  box-shadow: inset 0 1px 0 rgba(240, 250, 255, 0.75);
}
.btn:hover {
  background: linear-gradient(180deg,
    rgba(195, 230, 255, 0.65) 0%,
    rgba(85, 158, 238, 0.80) 100%
  );
  border-color: rgba(160, 220, 255, 0.75);
  color: #fff;
}
.btn svg { stroke: rgba(240, 250, 255, 0.96); }
.btn:hover svg { transform: translateX(3px); filter: none; }

/* ---- Case divider ---- */
.case-divider {
  border: none;
  height: 1.5px;
  width: 120px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(100, 190, 255, 0.60) 35%,
    rgba(80, 220, 195, 0.50) 70%,
    transparent 100%
  );
  margin: 20px auto;
}

/* ---- Section numbers / eyebrows ---- */
.section-num {
  background: rgba(255, 255, 255, 0.48);
  color: rgba(18, 58, 115, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.72);
}
.section-eyebrow { color: rgba(8, 50, 140, 0.96); } /* darkened: ~7:1 on lightest body bg pastels */

/* ---- Cursor ---- */
.cursor-ring { border-color: rgba(30, 140, 230, 0.40); }
.cursor-ring.hovering { border-color: #1a90d4; }
.cursor-dot { background: #1a90d4; }

/* ---- Footer: uses page accent colour, consistent with all pages ---- */
footer {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

/* ---- Phone pair & image columns: glass card frames (no backdrop-filter for perf) ---- */
.phone-pair {
  background: rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(12px) saturate(1.8) brightness(1.08);
  -webkit-backdrop-filter: blur(12px) saturate(1.8) brightness(1.08);
  border: 1.5px solid rgba(255, 255, 255, 0.75);
  border-top-color: rgba(255, 255, 255, 0.94);
  border-bottom-color: rgba(175, 210, 248, 0.35);
  border-radius: 36px;
  padding: 32px 40px 40px;
  box-shadow:
    0 12px 48px rgba(80, 130, 200, 0.20),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}
.phone-pair img {
  box-shadow:
    0 20px 50px rgba(20, 50, 130, 0.28),
    0 4px 16px rgba(20, 50, 130, 0.14);
}

/* image-col: inline content-row phone screenshots */
.image-col {
  background: rgba(255, 255, 255, 0.26);
  backdrop-filter: blur(12px) saturate(1.8) brightness(1.08);
  -webkit-backdrop-filter: blur(12px) saturate(1.8) brightness(1.08);
  border: 1.5px solid rgba(255, 255, 255, 0.72);
  border-top-color: rgba(255, 255, 255, 0.92);
  border-bottom-color: rgba(175, 210, 248, 0.32);
  border-radius: 28px;
  padding: 24px;
  box-shadow:
    0 8px 36px rgba(80, 130, 200, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.90);
}
.image-col img {
  box-shadow: 0 12px 36px rgba(20, 50, 130, 0.22);
  border-radius: var(--radius-md);
}

/* ============================================================
   DARK MODE — Aero overrides
   Darker landscape, deeper glass, light text
============================================================ */
[data-theme="dark"] body {
  background:
    radial-gradient(ellipse 130% 55% at 8%  98%, rgba(40, 120, 70, 0.55) 0%, transparent 52%),
    radial-gradient(ellipse 110% 50% at 94% 4%,  rgba(100, 60, 160, 0.48) 0%, transparent 52%),
    radial-gradient(ellipse 85%  60% at 80% 94%, rgba(130, 80, 40, 0.38) 0%, transparent 58%),
    radial-gradient(ellipse 115% 52% at 4%  16%, rgba(30, 80, 180, 0.40) 0%, transparent 58%),
    linear-gradient(155deg, #0e2035 0%, #0a1e18 25%, #180e2e 52%, #1e1508 78%, #0a1e18 100%);
}
[data-theme="dark"] body::before {
  background:
    /* Orb cluster — cool moonlit tones over deep navy */
    radial-gradient(circle 380px at -3% -8%,
      rgba(120, 180, 255, 0.32) 0%, rgba(80, 140, 255, 0.22) 30%,
      rgba(160, 130, 230, 0.14) 55%, transparent 75%),
    radial-gradient(circle 300px at 102% 4%,
      rgba(120, 180, 255, 0.28) 0%, rgba(80, 140, 255, 0.20) 30%,
      rgba(160, 130, 230, 0.12) 55%, transparent 75%),
    radial-gradient(circle 160px at 38% 9%,
      rgba(140, 200, 255, 0.30) 0%, rgba(100, 160, 255, 0.20) 30%,
      rgba(80, 140, 255, 0.12) 60%, transparent 80%),
    radial-gradient(circle 110px at 72% 18%,
      rgba(160, 210, 255, 0.32) 0%, rgba(100, 160, 255, 0.18) 40%, transparent 80%),
    radial-gradient(circle 240px at -4% 33%,
      rgba(120, 180, 255, 0.26) 0%, rgba(80, 140, 255, 0.18) 35%,
      rgba(160, 130, 230, 0.12) 60%, transparent 80%),
    radial-gradient(circle 70px at 52% 41%,
      rgba(160, 210, 255, 0.36) 0%, rgba(100, 160, 255, 0.20) 50%, transparent 85%),
    radial-gradient(circle 170px at 103% 45%,
      rgba(140, 200, 255, 0.28) 0%, rgba(80, 140, 255, 0.18) 40%, transparent 80%),
    radial-gradient(circle 240px at 22% 58%,
      rgba(120, 180, 255, 0.25) 0%, rgba(80, 140, 255, 0.18) 35%,
      rgba(160, 130, 230, 0.10) 60%, transparent 80%),
    radial-gradient(circle 300px at 104% 64%,
      rgba(120, 180, 255, 0.25) 0%, rgba(80, 140, 255, 0.20) 35%,
      rgba(160, 130, 230, 0.10) 60%, transparent 80%),
    radial-gradient(circle 110px at 72% 74%,
      rgba(140, 200, 255, 0.28) 0%, rgba(100, 160, 255, 0.18) 45%, transparent 80%),
    radial-gradient(circle 380px at -5% 82%,
      rgba(120, 180, 255, 0.26) 0%, rgba(80, 140, 255, 0.20) 35%,
      rgba(160, 130, 230, 0.12) 60%, transparent 80%),
    radial-gradient(circle 60px at 60% 89%,
      rgba(160, 210, 255, 0.32) 0%, rgba(100, 160, 255, 0.20) 50%, transparent 85%),
    linear-gradient(158deg, transparent 28%, rgba(40, 120, 80, 0.20) 42%, transparent 58%),
    linear-gradient(22deg,  transparent 22%, rgba(100, 60, 180, 0.16) 38%, transparent 56%);
}
[data-theme="dark"] :root {
  --glass-bg:       linear-gradient(180deg, rgba(20, 50, 120, 0.62) 0%, rgba(10, 30, 85, 0.76) 100%);
  --glass-border:   rgba(120, 180, 255, 0.30);
  --glass-border-t: rgba(160, 210, 255, 0.55);
  --glass-border-b: rgba(8, 28, 80, 0.60);
  --glass-shadow:   0 8px 36px rgba(0, 10, 50, 0.45), inset 0 1px 0 rgba(160, 210, 255, 0.45);
}
/* Override brown dark-mode tokens with Aero blue palette for header/footer/settings */
[data-theme="dark"] {
  --surface:        rgba(8, 28, 68, 0.88);
  --surface-solid:  #091C44;
  --border:         rgba(80, 140, 255, 0.22);
  --border-hi:      rgba(160, 210, 255, 0.18);
  --text-primary:   #EEF4FF;
  --text-secondary: rgba(185, 218, 250, 0.88);
  --text-muted:     rgba(140, 185, 240, 0.68);
  --accent:         rgba(120, 180, 255, 0.80);
  --accent-text:    rgba(200, 230, 255, 0.95);
  --accent-light:   rgba(20, 60, 160, 0.38);
}
[data-theme="dark"] .overview-card,
[data-theme="dark"] .reflection-card {
  background: rgba(20, 60, 160, 0.42);
  border-color: rgba(80, 150, 255, 0.30);
  border-top-color: rgba(120, 180, 255, 0.55);
}
[data-theme="dark"] .overview-card h3 { color: rgba(200, 230, 255, 0.95) !important; text-shadow: none !important; border-bottom-color: rgba(80,140,220,0.35) !important; }
[data-theme="dark"] .overview-card p,
[data-theme="dark"] .overview-card li  { color: rgba(185, 218, 250, 0.88) !important; }
[data-theme="dark"] .reflection-card h3 { color: rgba(200, 230, 255, 0.95) !important; text-shadow: none !important; border-bottom-color: rgba(80,140,220,0.35) !important; }
[data-theme="dark"] .reflection-card p,
[data-theme="dark"] .reflection-card li { color: rgba(185, 218, 250, 0.88) !important; }
[data-theme="dark"] .reflection-card li strong { color: rgba(225, 245, 255, 0.98) !important; }
/* Orbs keep their light pastel gradient in dark mode, so their text must stay
   dark navy — the previous light-blue values failed WCAG against the pale orb. */
[data-theme="dark"] .stat-number { color: rgba(12, 42, 88, 0.95) !important; text-shadow: 0 1px 8px rgba(255,255,255,0.55) !important; }
[data-theme="dark"] .stat-unit   { color: rgba(18, 52, 108, 0.82) !important; }
[data-theme="dark"] .stat-label  { color: rgba(18, 52, 108, 0.88) !important; }
[data-theme="dark"] .sprint-day-label { color: rgba(200, 230, 255, 0.95) !important; text-shadow: none !important; border-bottom-color: rgba(80,140,220,0.35) !important; }
[data-theme="dark"] .sprint-day li { background: rgba(20, 60, 160, 0.42) !important; color: rgba(195, 228, 255, 0.92) !important; border-color: rgba(80, 150, 255, 0.30) !important; }
[data-theme="dark"] .bento-card h3 { color: rgba(210, 235, 255, 0.96); }
[data-theme="dark"] .bento-card p  { color: rgba(185, 218, 250, 0.88); }
[data-theme="dark"] .section-num { background: rgba(20, 55, 140, 0.55); color: rgba(190, 225, 255, 0.95); border-color: rgba(80, 150, 255, 0.35); }
[data-theme="dark"] .section-eyebrow { color: rgba(150, 200, 255, 0.88); }
[data-theme="dark"] .meta-label { color: rgba(140, 200, 255, 0.92) !important; } /* was #0c6ab8 — dark blue invisible on dark bg */
[data-theme="dark"] .case-btn {
  background: rgba(20, 55, 140, 0.55) !important;
  color: rgba(200, 230, 255, 0.95) !important;
  border-color: rgba(80, 150, 255, 0.45) !important;
  border-top-color: rgba(120, 180, 255, 0.65) !important;
}
[data-theme="dark"] .case-btn svg { stroke: rgba(200, 230, 255, 0.90); }
[data-theme="dark"] .image-col,
[data-theme="dark"] .phone-pair {
  background: rgba(10, 30, 80, 0.48);
  border-color: rgba(80, 140, 220, 0.35);
  border-top-color: rgba(110, 175, 255, 0.55);
}

/* ============================================================
   HIGH CONTRAST — solid, opaque, no glass. WCAG AA minimum.
============================================================ */
[data-contrast="high"] body { background: #FFFFFF !important; }
[data-contrast="high"] body::before,
[data-contrast="high"] body::after { display: none !important; }
[data-contrast="high"] .orb-backdrop { display: none !important; }
[data-contrast="high"] .overview-card,
[data-contrast="high"] .reflection-card,
[data-contrast="high"] .bento-card,
[data-contrast="high"] .hero,
[data-contrast="high"] .card,
[data-contrast="high"] .sprint-day,
[data-contrast="high"] .process-pipeline-card {
  background: #FFFFFF !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: 2px solid #000000 !important;
  box-shadow: none !important;
}
[data-contrast="high"] .stat-card {
  background: #E8F0FF !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: 2px solid #000000 !important;
  box-shadow: none !important;
}
[data-contrast="high"] .overview-card h3,
[data-contrast="high"] .overview-card p,
[data-contrast="high"] .overview-card li,
[data-contrast="high"] .reflection-card h3,
[data-contrast="high"] .reflection-card p,
[data-contrast="high"] .reflection-card li,
[data-contrast="high"] .reflection-card li strong,
[data-contrast="high"] .bento-card h3,
[data-contrast="high"] .bento-card p,
[data-contrast="high"] .sprint-day-label,
[data-contrast="high"] .sprint-day li { color: #000000 !important; text-shadow: none !important; }
[data-contrast="high"] .stat-number { color: #000033 !important; text-shadow: none !important; }
[data-contrast="high"] .stat-label  { color: #000033 !important; text-shadow: none !important; }
[data-contrast="high"] .sprint-day li { background: #E8F0FF !important; border: 1px solid #000000 !important; color: #000000 !important; }
[data-contrast="high"] .case-btn {
  background: #000033 !important;
  color: #FFFFFF !important;
  border: 2px solid #000033 !important;
  backdrop-filter: none !important;
  box-shadow: none !important;
}
[data-contrast="high"] .case-btn:hover { background: #003399 !important; }
[data-contrast="high"] .image-col,
[data-contrast="high"] .phone-pair {
  background: #F0F4FF !important;
  backdrop-filter: none !important;
  border: 2px solid #000000 !important;
  box-shadow: none !important;
}
[data-contrast="high"] footer {
  background: #000033 !important;
  backdrop-filter: none !important;
  border-top: 2px solid #FFFFFF !important;
}
[data-contrast="high"] .footer-links a,
[data-contrast="high"] .footer-top-btn { color: #FFFFFF !important; }
[data-contrast="high"] .footer-copyright { color: rgba(255,255,255,0.75) !important; }

/* Dark + High Contrast */
[data-theme="dark"][data-contrast="high"] body { background: #000000 !important; }
[data-theme="dark"][data-contrast="high"] .overview-card,
[data-theme="dark"][data-contrast="high"] .reflection-card,
[data-theme="dark"][data-contrast="high"] .bento-card,
[data-theme="dark"][data-contrast="high"] .hero,
[data-theme="dark"][data-contrast="high"] .card,
[data-theme="dark"][data-contrast="high"] .sprint-day,
[data-theme="dark"][data-contrast="high"] .stat-card,
[data-theme="dark"][data-contrast="high"] .process-pipeline-card {
  background: #000000 !important;
  border-color: #FFFFFF !important;
}
[data-theme="dark"][data-contrast="high"] .overview-card h3,
[data-theme="dark"][data-contrast="high"] .overview-card p,
[data-theme="dark"][data-contrast="high"] .overview-card li,
[data-theme="dark"][data-contrast="high"] .reflection-card h3,
[data-theme="dark"][data-contrast="high"] .reflection-card p,
[data-theme="dark"][data-contrast="high"] .reflection-card li,
[data-theme="dark"][data-contrast="high"] .reflection-card li strong,
[data-theme="dark"][data-contrast="high"] .bento-card h3,
[data-theme="dark"][data-contrast="high"] .bento-card p,
[data-theme="dark"][data-contrast="high"] .sprint-day-label,
[data-theme="dark"][data-contrast="high"] .sprint-day li,
[data-theme="dark"][data-contrast="high"] .stat-number,
[data-theme="dark"][data-contrast="high"] .stat-label { color: #FFFFFF !important; text-shadow: none !important; }
[data-theme="dark"][data-contrast="high"] .sprint-day li { background: #111111 !important; border-color: #FFFFFF !important; }
[data-theme="dark"][data-contrast="high"] .case-btn { background: #FFFFFF !important; color: #000000 !important; border-color: #FFFFFF !important; }
[data-theme="dark"][data-contrast="high"] footer { background: #000000 !important; border-top-color: #FFFFFF !important; }
/* Fix peach --accent tokens inherited from base dark+HC block — use white for maximum contrast */
[data-theme="dark"][data-contrast="high"] {
  --accent:      #FFFFFF;
  --accent-text: #FFFFFF;
  --accent-light: #1A1A1A;
}

/* ============================================================
   LINGER PAGE TRANSITION — overrides the global vt animation
   with an iridescent bloom when entering/leaving this page.
   The ::view-transition-image-pair is stacked above the content,
   so we can tint the overlay to match the Aero palette.
============================================================ */
@view-transition {
  navigation: auto;
}

@keyframes linger-vt-out {
  to {
    opacity: 0;
    filter: blur(20px) saturate(2.2) hue-rotate(18deg);
    transform: scale(1.05);
  }
}
@keyframes linger-vt-in {
  from {
    opacity: 0;
    filter: blur(20px) saturate(2.2) hue-rotate(-18deg);
    transform: scale(0.96);
  }
}

/* Override the global transition for this page */
::view-transition-old(root) {
  animation: 380ms cubic-bezier(0.4, 0, 1, 1) linger-vt-out both;
}
::view-transition-new(root) {
  animation: 520ms cubic-bezier(0, 0, 0.2, 1) linger-vt-in both;
}
