@import "tailwindcss";

/* ═══════════════════════════════════════════════════════
   ELECTRON RARE — Apple SOTA 2026 Design System
   Light-first, glassmorphism, fluid type, generous space
   ═══════════════════════════════════════════════════════ */

/* ── Design Tokens ──────────────────────────────────── */
:root {
  --card-radius: 1.25rem;
  --bg: #ffffff;
  --bg-secondary: #f5f5f7;
  --surface: #ffffff;
  --surface-soft: #f5f5f7;
  --surface-alt: #fafafa;
  --surface-glass: rgba(255, 255, 255, 0.72);
  --pcb-deep: #ffffff;
  --pcb-core: #ffffff;
  --text: #1d1d1f;
  --text-muted: #6e6e73;
  --text-dim: #86868b;
  --accent: #0071e3;
  --accent-hover: #0077ed;
  --accent-soft: rgba(0, 113, 227, 0.08);
  --accent-warm: #e8453c;
  --accent-green: #30d158;
  --trace-cyan: #0071e3;
  --trace-cyan-soft: rgba(0, 113, 227, 0.12);
  --trace-magenta: #e8453c;
  --trace-magenta-soft: rgba(232, 69, 60, 0.1);
  --trace-green: #30d158;
  --trace-green-soft: rgba(48, 209, 88, 0.1);
  --trace-amber: #ff9f0a;
  --trace-amber-soft: rgba(255, 159, 10, 0.1);
  --signal: #e8453c;
  --electric: #0071e3;
  --line: rgba(0, 0, 0, 0.06);
  --line-soft: rgba(0, 0, 0, 0.04);
  --line-edge: rgba(0, 0, 0, 0.08);
  --line-rail: rgba(0, 113, 227, 0.06);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.08);
  --shadow-xl: 0 24px 64px rgba(0, 0, 0, 0.1);
  --transition-fast: 0.2s cubic-bezier(0.25, 0.1, 0.25, 1);
  --transition-smooth: 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
  --transition-spring: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ── Dark Tech Variant (WebGL refonte) ──────────────── */
.dark-site {
  --bg: #080808;
  --bg-secondary: #111111;
  --surface: rgba(255, 255, 255, 0.03);
  --surface-soft: rgba(255, 255, 255, 0.05);
  --surface-alt: rgba(255, 255, 255, 0.02);
  --surface-glass: rgba(255, 255, 255, 0.04);
  --pcb-deep: #0a0a0a;
  --pcb-core: #111111;
  --text: #e8e8e8;
  --text-muted: #9a9a9a;
  --text-dim: #666666;
  --accent: #5bd1d8;
  --accent-hover: #7de0e6;
  --accent-soft: rgba(91, 209, 216, 0.1);
  --accent-warm: #ff6b35;
  --accent-green: #30d158;
  --trace-cyan: #5bd1d8;
  --trace-cyan-soft: rgba(91, 209, 216, 0.15);
  --trace-magenta: #ff6b6b;
  --trace-magenta-soft: rgba(255, 107, 107, 0.12);
  --trace-green: #b6d18f;
  --trace-green-soft: rgba(182, 209, 143, 0.12);
  --trace-amber: #f1c27a;
  --trace-amber-soft: rgba(241, 194, 122, 0.12);
  --signal: #ff6b6b;
  --electric: #5bd1d8;
  --line: rgba(255, 255, 255, 0.06);
  --line-soft: rgba(255, 255, 255, 0.03);
  --line-edge: rgba(255, 255, 255, 0.08);
  --line-rail: rgba(91, 209, 216, 0.08);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.5);
  --shadow-xl: 0 24px 64px rgba(0, 0, 0, 0.6);

  background: var(--bg);
  color: var(--text);
}

.dark-site ::selection {
  color: #000;
  background: #5bd1d8;
}

/* Dark site header */
.dark-site ~ header,
.dark-site ~ .site-header,
body:has(.dark-site) header {
  background: rgba(8, 8, 8, 0.7) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
body:has(.dark-site) .site-header-brand-title {
  color: #ffffff !important;
}
body:has(.dark-site) .site-header-brand-kicker {
  color: rgba(255, 255, 255, 0.4) !important;
}
body:has(.dark-site) .site-header-item {
  color: rgba(255, 255, 255, 0.6) !important;
}
body:has(.dark-site) .site-header-item:hover {
  color: #5bd1d8 !important;
}
body:has(.dark-site) .site-header-quick {
  color: #5bd1d8 !important;
  border-color: rgba(91, 209, 216, 0.3) !important;
}
body:has(.dark-site) body {
  background: #080808;
}

/* ── Reset & Base ────────────────────────────────────── */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  color: var(--text);
  background: var(--bg);
  margin: 0;
  font-family:
    Manrope,
    -apple-system,
    BlinkMacSystemFont,
    "SF Pro Display",
    "Segoe UI",
    Helvetica Neue,
    sans-serif;
  line-height: 1.6;
  letter-spacing: -0.01em;
  text-rendering: optimizeLegibility;
}

/* Remove all retro overlays */
body:before,
body:after {
  display: none;
}

h1, h2, h3 {
  font-family:
    Manrope,
    -apple-system,
    BlinkMacSystemFont,
    "SF Pro Display",
    "Segoe UI",
    Helvetica Neue,
    sans-serif;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.08;
  color: var(--text);
}

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

a, button, label, input, textarea, .studio-muted, p, li {
  font-family:
    Manrope,
    -apple-system,
    BlinkMacSystemFont,
    "SF Pro Display",
    "Segoe UI",
    Helvetica Neue,
    sans-serif;
}

/* ── Layout: Apple-style CSS Grid with named columns ── */
/* Content stays centered; full-bleed sections go edge-to-edge */
.site-shell {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding-left: clamp(1rem, 4vw, 2rem);
  padding-right: clamp(1rem, 4vw, 2rem);
  box-sizing: border-box;
}

.site-shell-lg {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding-left: clamp(1rem, 4vw, 2rem);
  padding-right: clamp(1rem, 4vw, 2rem);
  box-sizing: border-box;
}

/* Apple grid engine on the main content wrapper */
.studio-structure {
  display: grid !important;
  grid-template-columns:
    [full-start] 1fr
    [content-start] min(1200px, 100%)
    [content-end] 1fr
    [full-end];
  gap: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* Default: all children sit in the content column */
.studio-structure > * {
  grid-column: content;
}

/* Full-bleed sections span full width, re-establish grid for children */
.studio-structure > .structure-grid,
.studio-structure > section,
.studio-structure > .photo-strip,
.studio-structure > .video-strip {
  grid-column: full;
  display: grid;
  grid-template-columns: subgrid;
}

/* Their children go back to content column */
.studio-structure > .structure-grid > *,
.studio-structure > section > * {
  grid-column: content;
}

.section-anchor {
  scroll-margin-top: 5rem;
}

/* Remove Tailwind margin-top on sections — panels handle spacing */
.section-anchor.mt-5,
.section-anchor.mt-4 {
  margin-top: 0 !important;
}

.graphic-sprints.mt-5 {
  margin-top: 0 !important;
}

/* ── Navigation ──────────────────────────────────────── */
.site-nav {
  z-index: 30;
  --nav-progress: 0%;
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  background: rgba(255, 255, 255, 0.72);
  position: sticky;
  top: 0;
  overflow: hidden;
  border-bottom: 0.5px solid rgba(0, 0, 0, 0.1);
  transition: background var(--transition-fast), box-shadow var(--transition-fast);
}

.site-nav:before {
  content: "";
  height: 0;
  width: 0;
  position: absolute;
  bottom: 0;
  left: 0;
  pointer-events: none;
}

.site-nav:after {
  display: none;
}

.site-nav .site-shell {
  transition: padding var(--transition-fast), gap var(--transition-fast);
}

.site-nav.is-compact {
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 0.5px 0 rgba(0, 0, 0, 0.1);
}

.site-nav.is-compact .site-shell {
  padding-top: 0.4rem;
  padding-bottom: 0.4rem;
}

/* ── Brand ───────────────────────────────────────────── */
.site-brand {
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  color: var(--text);
  letter-spacing: -0.01em;
}

.site-brand:before {
  content: "";
  background-image: url(/assets/brand/logo-mark.png);
  background-repeat: no-repeat;
  background-size: cover;
  border-radius: 0.5rem;
  width: 1.75rem;
  height: 1.75rem;
  box-shadow: var(--shadow-sm);
}

/* ── Nav Links ───────────────────────────────────────── */
.site-navlink {
  min-height: 2.25rem;
  color: var(--text-muted);
  border: none;
  border-radius: 999px;
  align-items: center;
  padding: 0.35rem 0.85rem;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: color var(--transition-fast), background var(--transition-fast);
  display: inline-flex;
  position: relative;
  overflow: hidden;
  letter-spacing: 0;
}

.site-navlink:before,
.site-navlink:after {
  display: none;
}

.site-navlink:hover,
.site-navlink:focus-visible {
  color: var(--text);
  background: rgba(0, 0, 0, 0.04);
}

.site-navlink.is-active,
.site-navlink[aria-current="location"] {
  color: var(--text);
  background: rgba(0, 0, 0, 0.06);
  font-weight: 600;
  animation: none;
  box-shadow: none;
}

.site-navlink.is-pressed {
  transform: scale(0.97);
}

/* ── Kicker & Pill ───────────────────────────────────── */
.lab-kicker {
  letter-spacing: 0.05em;
  text-transform: uppercase;
  min-height: 1.5rem;
  color: var(--accent);
  border: none;
  border-radius: 999px;
  background: var(--accent-soft);
  align-items: center;
  padding: 0.15rem 0.65rem;
  font-size: 0.7rem;
  font-weight: 600;
  display: inline-flex;
}

.lab-pill {
  letter-spacing: 0.02em;
  min-height: 2rem;
  color: var(--accent);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  align-items: center;
  padding: 0.25rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 500;
  display: inline-flex;
  box-shadow: var(--shadow-sm);
}

/* ── Panels (circuit-board / lab-panel / studio-panel) ── */
.lab-panel,
.circuit-board,
.studio-panel {
  border: 0.5px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--card-radius);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
  padding: clamp(1.25rem, 4vw, 2.5rem);
}

/* Remove grid/circuit overlays */
.lab-panel:before,
.circuit-board:before,
.studio-panel:before,
.lab-panel:after,
.circuit-board:after,
.studio-panel:after {
  display: none;
}

/* ── Circuit decorations (simplified) ────────────────── */
.circuit-title-row {
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
  display: inline-flex;
}

.circuit-title-row h2 {
  margin: 0;
}

.circuit-title-row:after {
  content: "";
  display: block;
  width: 3rem;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-warm));
  opacity: 0.3;
}

.circuit-node {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: var(--accent);
  display: inline-block;
  border: none;
  position: relative;
}

.circuit-node:before,
.circuit-node:after {
  display: none;
}

.circuit-node--magenta {
  background: var(--accent-warm);
}

.circuit-node--cyan {
  background: var(--accent);
}

.circuit-node--green {
  background: var(--accent-green);
}

.circuit-pinline {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.circuit-pinline:before,
.circuit-pinline:after {
  content: "";
  width: 2rem;
  height: 1px;
  display: block;
  background: var(--line);
}

.circuit-board-rail {
  gap: 0.5rem;
  margin-top: 1rem;
  display: grid;
  padding-left: 0;
  border-left: none;
}

.circuit-board-rail > p,
.circuit-board-rail > div {
  margin: 0;
}

.circuit-card {
  border: 0.5px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--card-radius);
  background: var(--surface);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  position: relative;
}

.circuit-card:before,
.circuit-card:after {
  display: none;
}

.circuit-card > * {
  z-index: 1;
  position: relative;
}

/* ── Studio Chips ────────────────────────────────────── */
.studio-chip {
  border: none;
  border-radius: 0.75rem;
  background: var(--bg-secondary);
  padding: 0.5rem 0.85rem;
  font-size: 0.875rem;
  font-weight: 500;
  display: inline-flex;
  white-space: normal;
  align-items: flex-start;
  line-height: 1.45;
  color: var(--text);
  transition: background var(--transition-fast);
}

.studio-chip--cyan {
  background: rgba(0, 113, 227, 0.06);
  color: #0066cc;
}

.studio-chip--pink {
  background: rgba(232, 69, 60, 0.06);
  color: #d63031;
}

.studio-chip--emerald {
  background: rgba(48, 209, 88, 0.06);
  color: #1a9d4a;
}

.studio-chip--vio {
  background: rgba(175, 82, 222, 0.06);
  color: #8944ab;
}

.studio-chip--amber {
  background: rgba(255, 159, 10, 0.06);
  color: #c77d00;
}

/* ── Links & Text Utilities ──────────────────────────── */
.studio-link {
  color: var(--accent);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color var(--transition-fast);
}

.studio-link:hover,
.studio-link:focus-visible {
  color: var(--accent-hover);
  text-decoration-thickness: 2px;
}

.studio-muted {
  color: var(--text-muted);
}

.section-lead {
  max-width: 60ch;
  color: var(--text-muted);
  font-size: clamp(1rem, 0.95rem + 0.2vw, 1.125rem);
  line-height: 1.65;
}

/* ── Focus States ────────────────────────────────────── */
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}

/* ── Data Reveal Animation ───────────────────────────── */
[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.6s cubic-bezier(0.25, 0.1, 0.25, 1),
    transform 0.6s cubic-bezier(0.25, 0.1, 0.25, 1);
}

[data-reveal].is-revealed {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
  }
  [data-reveal],
  [data-reveal].is-revealed {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .site-nav:before,
  .site-nav:after,
  .site-brand:before,
  .site-navlink.is-active,
  .site-navlink[aria-current="location"],
  .site-navlink:before {
    transition: none !important;
    animation: none !important;
  }
}

/* ── Hero Section ────────────────────────────────────── */
.hero-bg-photo {
  position: absolute;
  top: 0;
  right: 0;
  width: min(45%, 32rem);
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
  mask-image: linear-gradient(to left, rgba(0,0,0,0.18) 0%, rgba(0,0,0,0.06) 40%, transparent 80%);
  -webkit-mask-image: linear-gradient(to left, rgba(0,0,0,0.18) 0%, rgba(0,0,0,0.06) 40%, transparent 80%);
}

.hero-bg-photo::before,
.hero-bg-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-bg-photo::before {
  z-index: 1;
  background: linear-gradient(90deg, rgba(255,255,255,0.96) 0%, rgba(255,255,255,0.7) 20%, rgba(255,255,255,0.15) 50%, transparent 75%);
}

.hero-bg-photo::after {
  z-index: 2;
  background: radial-gradient(circle at 20% 20%, rgba(0,113,227,0.06), transparent 40%);
  mix-blend-mode: multiply;
  opacity: 0.5;
}

.hero-bg-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 52% 18%;
  filter: grayscale(0.05) contrast(1.02) brightness(1);
}

@media (max-width: 767px) {
  .hero-bg-photo {
    display: none;
  }
}

.figma-lab-hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.figma-lab-left {
  padding: clamp(2rem, 6vw, 5rem) 0;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-panel-image {
  border: none;
  border-radius: 0;
  background: none;
  box-shadow: none;
}

/* ── Section panels: full-bleed background, centered content ── */
.circuit-board,
.graphic-sprints-panel,
.contact-minitel {
  /* Full-bleed via grid — spans full column */
  grid-column: full !important;
  border-radius: 0 !important;
  padding: clamp(3rem, 6vw, 5rem) clamp(1rem, 4vw, 2rem) !important;
  box-shadow: none;
  border: none !important;
  border-top: 0.5px solid rgba(0, 0, 0, 0.06) !important;
  border-bottom: 0.5px solid rgba(0, 0, 0, 0.06) !important;
  background: var(--bg-secondary);
  box-sizing: border-box;
  overflow: hidden;
  /* Center inner content */
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Inner content max-width */
.circuit-board > *,
.graphic-sprints-panel > *,
.contact-minitel > * {
  width: 100%;
  max-width: 1200px;
  box-sizing: border-box;
}

.circuit-board:nth-of-type(even) {
  background: var(--surface);
}

/* Kill all Tailwind overrides on panels */
.circuit-board.rounded-2xl,
.circuit-board.rounded-xl { border-radius: 0 !important; }
.circuit-board.p-5,
.circuit-board.p-6 { padding: clamp(3rem, 6vw, 5rem) clamp(1rem, 4vw, 2rem) !important; }
.circuit-board.mt-4,
.circuit-board.mt-5 { margin-top: 0 !important; }

.hero-panel-head {
  margin-bottom: 0.75rem;
}

.hero-eyebrow {
  margin: 0 0 0.75rem;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.figma-lab-title {
  margin: 0;
  color: var(--text);
  font-size: clamp(2.5rem, 5.5vw, 4.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  max-width: none;
}

.hero-title-word {
  display: inline;
}

.hero-title-word + .hero-title-word {
  margin-left: 0;
}

.hero-lockup {
  display: none;
}

.hero-slogan {
  margin: 1rem 0 0;
  color: var(--text-dim);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.hero-slogan-line {
  display: block;
}

.hero-slogan-char {
  display: inline;
}

.hero-slogan-char.is-space {
  display: inline;
}

.hero-slogan::after {
  display: none;
}

.figma-lab-copy {
  max-width: 54ch;
  margin: 1.25rem 0 0;
  color: var(--text-muted);
  font-size: clamp(1rem, 0.95rem + 0.2vw, 1.125rem);
  line-height: 1.7;
}

.hero-copy-reveal {
  opacity: 1;
}

.figma-lab-cta-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.75rem;
}

.figma-lab-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.5rem 1.5rem;
  border: none;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: -0.01em;
  transition: transform var(--transition-fast), filter var(--transition-fast), box-shadow var(--transition-fast);
  cursor: pointer;
}

.figma-lab-pill--primary {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 113, 227, 0.2);
}

.figma-lab-pill--primary:hover,
.figma-lab-pill--primary:focus-visible {
  filter: brightness(1.08);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 113, 227, 0.3);
}

.figma-lab-pill--secondary {
  background: var(--bg-secondary);
  color: var(--text);
  border: 1px solid var(--line);
}

.figma-lab-pill--secondary:hover,
.figma-lab-pill--secondary:focus-visible {
  background: rgba(0, 0, 0, 0.06);
  transform: translateY(-1px);
}

.figma-lab-pill--ghost {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}

.figma-lab-pill:hover,
.figma-lab-pill:focus-visible {
  transform: translateY(-1px);
}

/* ── About Section ───────────────────────────────────── */
.about-panel .circuit-title-row {
  margin-bottom: 1.5rem;
}

.about-panel h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem) !important;
  letter-spacing: -0.025em;
}

.about-intro {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2.5rem;
  align-items: start;
  margin-top: 0;
}

.about-portrait {
  width: 11rem;
  height: 11rem;
  border: none;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: var(--shadow-lg);
}

.about-intro-text {
  max-width: 72ch;
}

.about-intro-text .section-lead {
  font-size: clamp(1.05rem, 1rem + 0.25vw, 1.2rem);
  line-height: 1.7;
  max-width: none;
  color: var(--text);
  font-weight: 500;
}

.about-intro-text .studio-muted {
  font-size: 1rem;
  line-height: 1.7;
}

/* Chips grid — clean, no wrapper border */
.about-panel .rounded-xl,
.circuit-board .rounded-xl {
  border: none !important;
  padding: 0 !important;
  margin-top: 1.5rem !important;
  background: none;
  border-radius: 0 !important;
}

.about-panel .studio-chip {
  padding: 0.6rem 1rem;
  font-size: 0.9rem;
  border-radius: 0.75rem;
  line-height: 1.5;
}

@media (max-width: 767px) {
  .about-intro {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    justify-items: center;
    text-align: center;
  }
  .about-portrait {
    width: 8rem;
    height: 8rem;
  }
  .about-intro-text {
    text-align: left;
  }
}

/* ── Cases Section ───────────────────────────────────── */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.case-card {
  padding: 1.5rem;
  border: 0.5px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--card-radius);
  background: var(--surface);
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.case-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.case-tag {
  display: inline-block;
  margin: 0 0 0.75rem;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.case-tag--cyan {
  background: rgba(0, 113, 227, 0.08);
  color: #0066cc;
}

.case-tag--vio {
  background: rgba(175, 82, 222, 0.08);
  color: #8944ab;
}

.case-tag--amber {
  background: rgba(255, 159, 10, 0.08);
  color: #c77d00;
}

.case-title {
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

.case-context,
.case-intervention,
.case-result {
  margin: 0 0 0.5rem;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.case-link {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
}

@media (max-width: 768px) {
  .cases-grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .cases-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .cases-grid .case-card:last-child {
    grid-column: 1 / -1;
  }
}

/* ── Graphic Sprints ─────────────────────────────────── */
.graphic-sprints-panel {
  padding: clamp(1.5rem, 3vw, 2.5rem);
}

.graphic-sprints-panel--routing {
  /* inherits panel styles */
}

.graphic-sprints-head {
  max-width: 72ch;
}

.graphic-sprints-kicker {
  margin: 0;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.graphic-sprints-title {
  margin: 0.25rem 0 0;
  color: var(--text);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.graphic-sprints-copy {
  margin: 0.75rem 0 0;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.6;
}

.graphic-sprints-grid {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.graphic-sprint-card {
  padding: 1.25rem;
  border: 0.5px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--card-radius);
  background: var(--bg-secondary);
  position: relative;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.graphic-sprint-card::before {
  display: none;
}

.graphic-sprint-card:hover,
.graphic-sprint-card:focus-within {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.graphic-sprint-card-head {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  align-items: baseline;
}

.graphic-sprint-status {
  margin: 0;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
  border: none;
}

.graphic-sprint-status--trace {
  color: var(--accent);
  background: var(--accent-soft);
}

.graphic-sprint-status--bench {
  color: #c77d00;
  background: rgba(255, 159, 10, 0.08);
}

.graphic-sprint-status--run {
  color: #1a9d4a;
  background: rgba(48, 209, 88, 0.08);
}

/* Keep old status names for backward compat */
.graphic-sprint-status--en-cours {
  color: #1a9d4a;
  background: rgba(48, 209, 88, 0.08);
}

.graphic-sprint-status--planifie {
  color: #c77d00;
  background: rgba(255, 159, 10, 0.08);
}

.graphic-sprint-status--valide {
  color: var(--accent);
  background: var(--accent-soft);
}

.graphic-sprint-window {
  margin: 0;
  color: var(--text-dim);
  font-size: 0.75rem;
  font-weight: 500;
}

.graphic-sprint-title {
  margin: 0.5rem 0 0;
  color: var(--text);
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.graphic-sprint-objective {
  margin: 0.5rem 0 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.graphic-sprint-progress {
  margin-top: 0.75rem;
  height: 6px;
  border: none;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

.graphic-sprint-progress-fill {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-green) 100%);
  transition: width 0.8s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.graphic-sprint-card.is-live .graphic-sprint-progress-fill {
  width: var(--sprint-progress-target, 0%);
}

.graphic-sprint-progress-label {
  margin: 0.35rem 0 0;
  color: var(--text-dim);
  font-size: 0.75rem;
  font-weight: 500;
}

.graphic-sprint-deliverables {
  margin: 0.75rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.35rem;
}

.graphic-sprint-deliverables li {
  padding: 0.4rem 0.75rem;
  border-radius: 0.625rem;
  background: var(--surface);
  color: var(--text-muted);
  font-size: 0.8rem;
  line-height: 1.4;
  border: 0.5px solid rgba(0, 0, 0, 0.04);
}

.graphic-sprints-foot {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 0.5px solid rgba(0, 0, 0, 0.06);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  justify-content: space-between;
}

.graphic-sprints-foot-copy {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.graphic-sprints-cta {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  padding: 0.35rem 1.25rem;
  text-decoration: none;
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 600;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}

.graphic-sprints-cta:hover,
.graphic-sprints-cta:focus-visible {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
  background: var(--bg-secondary);
}

@media (max-width: 1024px) {
  .graphic-sprints-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 767px) {
  .graphic-sprints-grid {
    grid-template-columns: 1fr;
  }
  .graphic-sprints-cta {
    justify-content: center;
    width: 100%;
  }
}

/* ── FAQ Accordion ───────────────────────────────────── */
.faq-list {
  display: grid;
  gap: 0;
}

.faq-item {
  border-bottom: 0.5px solid rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.faq-item:first-child {
  border-top: 0.5px solid rgba(0, 0, 0, 0.08);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0.25rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text);
  list-style: none;
  user-select: none;
  transition: color var(--transition-fast);
  letter-spacing: -0.01em;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::marker {
  content: "";
}

.faq-question:hover,
.faq-question:focus-visible {
  color: var(--accent);
}

.faq-chevron {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  position: relative;
  transition: transform 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.faq-chevron::before,
.faq-chevron::after {
  content: "";
  position: absolute;
  background: currentColor;
  border-radius: 1px;
}

.faq-chevron::before {
  width: 100%;
  height: 2px;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
}

.faq-chevron::after {
  width: 2px;
  height: 100%;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

details[open] > .faq-question .faq-chevron::after {
  transform: translateX(-50%) scaleY(0);
  opacity: 0;
}

.faq-answer {
  padding: 0 0.25rem 1.25rem;
  line-height: 1.7;
  color: var(--text-muted);
}

.faq-answer p {
  margin: 0;
}

/* ── Contact Form (Apple-clean) ──────────────────────── */
.contact-minitel {
  border: 0.5px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--card-radius);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  width: 100%;
}

.contact-minitel-header {
  display: none;
}

.contact-minitel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ff5f57;
  flex-shrink: 0;
}

.contact-minitel-dot--amber {
  background: #febc2e;
}

.contact-minitel-dot--green {
  background: #28c840;
}

.contact-minitel-title-bar {
  flex: 1;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-muted);
}

.contact-minitel-screen {
  padding: 0;
  background: transparent;
  max-width: 680px;
}

.contact-minitel-h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
  text-shadow: none;
}

.contact-minitel-line {
  margin: 0.25rem 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.contact-minitel-line--dim {
  color: var(--text-dim);
}

.contact-minitel-label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0;
}

.contact-minitel-textarea-wrap {
  margin: 1rem 0;
}

.contact-minitel-textarea,
input.contact-minitel-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 0.75rem;
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  line-height: 1.6;
  resize: vertical;
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

input.contact-minitel-textarea::placeholder {
  color: var(--text-dim);
}

.contact-minitel-textarea:focus,
input.contact-minitel-textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.12);
}

.contact-minitel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.25rem 0;
}

.contact-minitel-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.65rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-secondary);
  color: var(--text);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.contact-minitel-btn:hover,
.contact-minitel-btn:focus-visible {
  background: rgba(0, 0, 0, 0.06);
  transform: translateY(-1px);
}

.contact-minitel-btn--primary {
  border: none;
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 113, 227, 0.2);
}

.contact-minitel-btn--primary:hover,
.contact-minitel-btn--primary:focus-visible {
  filter: brightness(1.08);
  background: var(--accent);
  box-shadow: 0 6px 20px rgba(0, 113, 227, 0.3);
}

.contact-minitel-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.contact-minitel-footer {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 0.5px solid rgba(0, 0, 0, 0.06);
}

.contact-minitel-link {
  color: var(--accent);
  text-decoration: none;
}

.contact-minitel-link:hover {
  text-decoration: underline;
}

.contact-minitel-tabs {
  display: flex;
  gap: 0;
  margin: 1rem 0 0.25rem;
  border-bottom: 1px solid var(--line);
}

.contact-minitel-tab {
  flex: 1;
  padding: 0.6rem 0.75rem;
  border: none;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--text-dim);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  border-radius: 0;
}

.contact-minitel-tab:hover {
  color: var(--text);
}

.contact-minitel-tab--active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.contact-minitel-form {
  margin-top: 1rem;
}

.contact-minitel-field {
  margin-bottom: 1rem;
}

.contact-minitel-consent {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin-top: 0.25rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.5;
}

.contact-minitel-consent input {
  inline-size: 1.1rem;
  block-size: 1.1rem;
  margin-top: 0.1rem;
  accent-color: var(--accent);
  flex: 0 0 auto;
}

.contact-minitel-consent-text {
  flex: 1 1 auto;
}

.contact-minitel-input,
.contact-minitel-select {
  width: 100%;
  padding: 0.65rem 1rem;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 0.75rem;
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  line-height: 1.6;
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  box-sizing: border-box;
}

.contact-minitel-input::placeholder {
  color: var(--text-dim);
}

.contact-minitel-input:focus,
.contact-minitel-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.12);
}

.contact-minitel-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236e6e73' d='M2 4l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

.contact-minitel-select option {
  background: var(--surface);
  color: var(--text);
}

@media (max-width: 767px) {
  .contact-minitel-screen {
    padding: 1.25rem;
  }
  .contact-minitel-h2 {
    font-size: 1.35rem;
  }
  .contact-minitel-actions {
    flex-direction: column;
  }
  .contact-minitel-btn {
    width: 100%;
    justify-content: center;
  }
  .contact-minitel-tab {
    font-size: 0.75rem;
    padding: 0.5rem 0.4rem;
  }
}

/* ── Footer ──────────────────────────────────────────── */
footer {
  position: relative;
  border-top: 0.5px solid rgba(0, 0, 0, 0.06);
  background: var(--bg-secondary);
  padding: clamp(2rem, 5vw, 4rem) 0;
}

footer .site-shell {
  max-width: 1440px;
}

footer:before {
  display: none;
}

.footer-grid {
  align-items: start;
  gap: 1rem;
  display: grid;
}

.footer-title {
  letter-spacing: -0.01em;
  color: var(--text);
  font-weight: 700;
}

.footer-copy {
  max-width: 48ch;
  color: var(--text-muted);
}

.footer-links {
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.5rem;
  display: flex;
}

.footer-link {
  border: 0.5px solid rgba(0, 0, 0, 0.08);
  border-radius: 999px;
  align-items: center;
  min-height: 2.25rem;
  display: inline-flex;
  background: var(--surface);
  color: var(--text-muted);
  padding: 0 0.85rem;
  font-size: 0.8rem;
  font-weight: 500;
  text-decoration: none;
  transition: color var(--transition-fast), background var(--transition-fast), transform var(--transition-fast);
}

.footer-link:hover,
.footer-link:focus-visible {
  color: var(--accent);
  background: var(--accent-soft);
  transform: translateY(-1px);
}

.footer-col {
  min-width: 0;
}

.footer-column-title {
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin: 0;
  font-size: 0.7rem;
  font-weight: 600;
}

.footer-protocol-list {
  gap: 0.35rem;
  margin: 0.5rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
}

/* studio-structure is defined in the Layout section above */

.structure-grid {
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(0.75rem, 2vw, 1.25rem);
  display: grid;
}

.structure-cell {
  min-width: 0;
  width: 100%;
}

/* Sections that should always span full width */
.structure-cell--about,
.structure-cell--cases,
.structure-cell--sprints,
.structure-cell--faq,
.structure-cell--contact,
.structure-cell--hero {
  grid-column: 1 / -1;
}

.structure-grid--hero,
.structure-grid--systems,
.structure-grid--production {
  align-items: stretch;
}

.structure-grid--conversion {
  align-items: start;
}

.structure-grid--sprints {
  margin-top: 0.5rem;
}

.structure-grid + .structure-grid {
  margin-top: 5rem;
}

@media (min-width: 768px) {
  .structure-grid--hero {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr);
  }
  .structure-grid--systems {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .structure-cell--about {
    grid-column: 1/-1;
  }
  .structure-grid--production {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .structure-cell--notes {
    grid-column: 1/-1;
  }
  .structure-grid--conversion {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .footer-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto;
  }
  .footer-links {
    justify-content: flex-end;
  }
  .structure-grid + .structure-grid {
    margin-top: 7rem;
  }
}

@media (min-width: 1140px) {
  .structure-grid {
    gap: 1.25rem;
  }
  .structure-grid--hero {
    grid-template-columns: minmax(0, 1.55fr) minmax(0, 0.75fr);
  }
  .structure-grid--systems {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr) minmax(0, 0.86fr);
  }
  .structure-cell--about {
    grid-column: auto;
  }
  .structure-grid--production {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr) minmax(0, 1fr);
  }
  .structure-cell--notes {
    grid-column: auto;
  }
}

/* ── Code ────────────────────────────────────────────── */
code {
  background: var(--bg-secondary);
  font-family: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  border: 0.5px solid rgba(0, 0, 0, 0.06);
  border-radius: 0.375rem;
  padding: 0.1rem 0.35rem;
  font-size: 0.85em;
}

/* ── Photo & Video Strips ────────────────────────────── */
.photo-strip {
  width: 100%;
  overflow: hidden;
  margin-top: 3rem;
  margin-bottom: 1rem;
}

.photo-strip-track {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 0.5rem 4vw;
}

.photo-strip-track::-webkit-scrollbar {
  display: none;
}

.photo-strip-img {
  flex: 0 0 auto;
  width: 280px;
  height: 180px;
  object-fit: cover;
  border-radius: var(--card-radius);
  border: 0.5px solid rgba(0, 0, 0, 0.06);
  scroll-snap-align: start;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.photo-strip-img:hover {
  transform: translateY(-3px) scale(1.01);
  box-shadow: var(--shadow-lg);
}

.video-strip {
  margin-top: 1.5rem;
  overflow: hidden;
}

.video-strip-track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0.5rem 0;
}

.video-strip-track::-webkit-scrollbar {
  display: none;
}

.video-strip-clip {
  flex: 0 0 auto;
  width: 320px;
  height: 180px;
  object-fit: cover;
  border-radius: var(--card-radius);
  scroll-snap-align: start;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  cursor: pointer;
}

.video-strip-clip:hover {
  transform: translateY(-3px) scale(1.01);
  box-shadow: var(--shadow-lg);
}

@media (max-width: 767px) {
  .photo-strip-img {
    width: 220px;
    height: 150px;
  }
  .video-strip-clip {
    width: 260px;
    height: 146px;
  }
}

/* ── Misc / Compat ───────────────────────────────────── */
.site-shell-title {
  max-width: 17ch;
}

.project-stage {
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin: 0 0 0.4rem;
  font-size: 0.7rem;
  font-weight: 600;
}

.projects-timeline-item {
  grid-template-columns: 4.5rem 1fr;
  gap: 0.4rem;
  padding: 0.2rem 0 0.2rem 0.6rem;
  display: grid;
  position: relative;
}

.projects-timeline-item:before {
  content: "";
  border: none;
  border-radius: 999px;
  width: 8px;
  height: 8px;
  position: absolute;
  top: 1rem;
  left: -4px;
  background: var(--accent);
}

.identity-lab-grid,
.studio-icon,
.studio-icon--pad,
.studio-icon--hub,
.studio-icon--connector,
.studio-icon--cable,
.studio-icon:before,
.studio-icon:after,
.studio-icon--pad:before,
.studio-icon--pad:after,
.studio-icon--hub:before,
.studio-icon--hub:after,
.studio-icon--connector:before,
.studio-icon--connector:after,
.studio-icon--cable:before,
.studio-icon--cable:after {
  /* Keep basic shapes, remove elaborate PCB styling */
}

.dynamic-card {
  will-change: transform;
}

/* ── Touch Targets ───────────────────────────────────── */
.figma-lab-nav-link,
.site-navlink,
.footer-link {
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
}

/* ── Responsive Breakpoints ──────────────────────────── */
@media (min-width: 768px) {
  .identity-lab-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .projects-timeline-item {
    grid-template-columns: 5.2rem 1fr;
  }
}

@media (max-width: 767px) {
  .projects-timeline-item {
    grid-template-columns: 1fr;
    padding-left: 0.2rem;
  }
  .footer-link {
    min-height: 2.25rem;
    font-size: 0.78rem;
  }
  .footer-links {
    justify-content: flex-start;
  }
  .section-lead {
    font-size: 0.95rem;
  }
}

@media (max-width: 390px) {
  .site-shell {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
  .site-nav .site-shell {
    row-gap: 0.5rem;
  }
  .site-nav nav ul {
    flex-wrap: wrap;
    justify-content: center;
  }
  .site-shell-title {
    max-width: 12ch;
  }
  .lab-pill {
    display: none;
  }
  .studio-structure {
    gap: 1.25rem;
  }
  .structure-grid {
    gap: 0.75rem;
  }
  .figma-lab-title {
    font-size: clamp(2rem, 8vw, 2.5rem);
  }
  .case-card,
  .graphic-sprint-card {
    padding: 1rem;
  }
}

@media (max-width: 1024px) {
  .site-navlink {
    padding-inline: 0.6rem;
    font-size: 0.85rem;
  }
}

@media (max-width: 767px) {
  .site-nav .site-shell {
    gap: 0.5rem;
  }
  .site-nav nav ul {
    gap: 0.35rem;
  }
  .site-navlink {
    min-height: 2rem;
    font-size: 0.8rem;
  }
}

/* ── Keyframes (minimal, Apple-like) ─────────────────── */
@keyframes heroWordRise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroFadeIn {
  to {
    opacity: 1;
  }
}

@keyframes navProgressFlow {
  0% { background-position: 0%; }
  to { background-position: 220%; }
}

@keyframes navLinkPulse {
  0%, to { box-shadow: none; }
  50% { box-shadow: none; }
}

@keyframes navScanVertical {
  0%, to { opacity: 0; }
}

@keyframes brandSpark {
  0%, to { box-shadow: none; }
}

@keyframes signalTravel {
  0%, to { opacity: 0; }
}

@keyframes heroLineSweep {
  to { transform: translateX(125%); }
}

/* ── Site Header (Apple nav) ─────────────────────────── */
.site-header-shell {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.65rem 0;
  min-height: 3.25rem;
}

.site-header-brand {
  display: inline-flex;
  flex-direction: column;
  gap: 0.1rem;
  text-decoration: none;
  color: var(--text);
}

.site-header-brand-title {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.site-header-brand-kicker {
  font-size: 0.7rem;
  color: var(--text-dim);
  font-weight: 500;
}

.site-header-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
}

.site-header-quick-link {
  white-space: nowrap;
}

.site-header-menu {
  position: relative;
}

.site-header-menu summary {
  list-style: none;
}

.site-header-menu summary::-webkit-details-marker {
  display: none;
}

.site-header-menu-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  cursor: pointer;
  background: var(--bg-secondary);
  border: 0.5px solid rgba(0, 0, 0, 0.06);
  transition: background var(--transition-fast);
}

.site-header-menu-toggle:hover {
  background: rgba(0, 0, 0, 0.06);
}

.site-header-menu-label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
}

.site-header-menu-icon {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 18px;
}

.site-header-menu-icon span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: transform var(--transition-fast);
}

.site-header-primary {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  min-width: 220px;
  padding: 0.5rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border: 0.5px solid rgba(0, 0, 0, 0.08);
  box-shadow: var(--shadow-xl);
  z-index: 50;
}

.site-header-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.site-header-item {
  display: block;
}

.site-header-item--desktop-only {
  display: none;
}

@media (min-width: 768px) {
  .site-header-item--desktop-only {
    display: block;
  }
}

/* ── Figma Lab Nav (v12 compat) ──────────────────────── */
.figma-lab-nav-row {
  min-height: 3.5rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.5rem;
  padding: 0.65rem 0;
}

.figma-lab-nav-title {
  display: inline-flex;
  flex-direction: column;
  gap: 0.1rem;
  color: var(--text);
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.figma-lab-nav-kicker {
  color: var(--text-dim);
  font-size: 0.7rem;
  font-weight: 500;
}

.figma-lab-nav-list {
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
}

.figma-lab-nav-link {
  min-height: 2.5rem;
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.85rem;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: color var(--transition-fast), background var(--transition-fast);
}

.figma-lab-nav-link:hover,
.figma-lab-nav-link:focus-visible {
  color: var(--text);
  background: rgba(0, 0, 0, 0.04);
  text-shadow: none;
  border-bottom-color: transparent;
}

.figma-lab-nav-link.is-active,
.figma-lab-nav-link[aria-current="location"] {
  color: var(--text);
  background: rgba(0, 0, 0, 0.06);
  font-weight: 600;
  text-shadow: none;
  border-bottom-color: transparent;
}

.figma-lab-nav-link.is-pressed {
  transform: scale(0.97);
}

/* Figma lab misc */
.figma-lab-notes {
  margin-top: 1rem;
  padding: 1rem 1.25rem;
  border: 0.5px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--card-radius);
  background: var(--bg-secondary);
}

.figma-lab-notes-title {
  margin: 0;
  font-weight: 700;
  font-size: 1.05rem;
}

.figma-lab-notes-list {
  margin: 0.35rem 0 0;
  padding-left: 0;
  list-style: none;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.figma-lab-notes-list li + li {
  margin-top: 0.2rem;
}

.figma-lab-right {
  display: grid;
  gap: 1rem;
  padding: 1rem;
}

.figma-lab-bottom-map {
  margin-top: 1.5rem;
}

.figma-lab-bottom-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.figma-lab-map-card {
  min-height: 8rem;
  align-items: flex-start;
  justify-content: flex-start;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.25rem;
  border: 0.5px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--card-radius);
  background: var(--surface);
  box-shadow: var(--shadow-md);
  text-decoration: none;
  display: inline-flex;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.figma-lab-map-card:hover,
.figma-lab-map-card:focus-visible,
.figma-lab-map-card.is-active,
.figma-lab-map-card[aria-current="location"] {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  filter: none;
}

.figma-lab-map-card.is-pressed {
  transform: scale(0.98);
}

.figma-lab-map-card--cream {
  background: #fffbf5;
  color: var(--text);
}

.figma-lab-map-card--blue {
  background: #f0f7ff;
  color: var(--text);
}

.figma-lab-map-card--green {
  background: #f0faf3;
  color: var(--text);
}

.figma-lab-map-step,
.figma-lab-map-kicker {
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.figma-lab-map-title {
  color: var(--text);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.15;
}

.figma-lab-map-detail,
.figma-lab-map-copy {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.figma-lab-map-intro {
  display: grid;
  gap: 0.25rem;
  margin-bottom: 1rem;
}

.figma-lab-cta-help {
  margin-top: 0.5rem;
  color: var(--text-dim);
  font-size: 0.85rem;
}

/* ── Hero extras ─────────────────────────────────────── */
.hero-proof-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 1.25rem;
}

.hero-proof-card {
  padding: 1rem;
  border: 0.5px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--card-radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.hero-proof-label {
  margin: 0;
  color: var(--text-dim);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero-proof-value {
  margin: 0.35rem 0 0;
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.hero-proof-detail {
  margin: 0.3rem 0 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.hero-outcomes {
  margin-top: 1.25rem;
  padding: 1.25rem;
  border: 0.5px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--card-radius);
  background: var(--bg-secondary);
}

.hero-outcomes-title {
  font-size: 1.15rem;
  font-weight: 700;
}

.hero-outcomes-list {
  margin: 0.5rem 0 0;
  padding-left: 1rem;
  list-style: disc;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.hero-inline-link {
  color: var(--accent);
  font-weight: 600;
}

.hero-side-panel {
  border: 0.5px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--card-radius);
  background: var(--surface);
  padding: 1.25rem;
  box-shadow: var(--shadow-md);
}

/* Contact signal grid */
.contact-signal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.contact-signal-copy {
  margin: 0.3rem 0 0;
  line-height: 1.55;
  color: var(--text-muted);
}

/* ── Responsive (v12 compat) ─────────────────────────── */
@media (max-width: 1024px) {
  .figma-lab-hero-grid,
  .figma-lab-bottom-grid,
  .hero-proof-grid,
  .contact-signal-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .figma-lab-nav-row {
    grid-template-columns: 1fr;
    justify-items: start;
  }
}

@media (max-width: 767px) {
  .figma-lab-hero-grid,
  .figma-lab-bottom-grid,
  .hero-proof-grid,
  .contact-signal-grid {
    grid-template-columns: 1fr;
  }
  .figma-lab-nav-list,
  .figma-lab-cta-row {
    width: 100%;
  }
  .figma-lab-nav-link,
  .figma-lab-pill,
  .graphic-sprints-cta {
    width: 100%;
    justify-content: center;
  }
  .figma-lab-nav-title {
    font-size: 1rem;
  }
  .figma-lab-map-card {
    min-height: auto;
  }
  .figma-lab-right {
    padding: 0.75rem;
  }
}

/* ── Flow narrative (compat) ─────────────────────────── */
.flow-narrative-card {
  border: 0.5px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--card-radius);
  background: var(--surface);
  box-shadow: var(--shadow-md);
  padding: 1.25rem;
}

.flow-narrative-card::before {
  display: none;
}

.flow-narrative-kicker {
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.flow-narrative-title {
  color: var(--text);
  font-weight: 700;
}

.flow-narrative-copy {
  color: var(--text-muted);
}

/* Project case card compat */
.project-case-card {
  border: 0.5px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--card-radius);
  background: var(--surface);
  box-shadow: var(--shadow-md);
}

.project-story-block + .project-story-block {
  border-top: 0.5px solid rgba(0, 0, 0, 0.06);
}

.project-story-label {
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.project-story-copy {
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── Site footer (v12 compat) ────────────────────────── */
.site-footer {
  background: var(--bg-secondary);
  border-top: 0.5px solid rgba(0, 0, 0, 0.06);
}

.footer-endnote {
  border-top: 0.5px solid rgba(0, 0, 0, 0.06);
}

/* ── Override all data-da-variant and data-theme selectors ── */
/* Force Apple design regardless of variant/theme attributes */
:root[data-da-variant],
:root[data-theme],
:root[data-da-variant][data-theme] {
  --card-radius: 1.25rem;
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-soft: #f5f5f7;
  --surface-alt: #fafafa;
  --pcb-deep: #ffffff;
  --pcb-core: #ffffff;
  --text: #1d1d1f;
  --text-muted: #6e6e73;
  --text-dim: #86868b;
  --signal: #e8453c;
  --electric: #0071e3;
  --accent: #0071e3;
  --trace-cyan: #0071e3;
  --trace-cyan-soft: rgba(0, 113, 227, 0.12);
  --trace-magenta: #e8453c;
  --trace-magenta-soft: rgba(232, 69, 60, 0.1);
  --trace-green: #30d158;
  --trace-green-soft: rgba(48, 209, 88, 0.1);
  --trace-amber: #ff9f0a;
  --trace-amber-soft: rgba(255, 159, 10, 0.1);
  --line: rgba(0, 0, 0, 0.06);
  --line-soft: rgba(0, 0, 0, 0.04);
  --line-edge: rgba(0, 0, 0, 0.08);
  --line-rail: rgba(0, 113, 227, 0.06);
}

/* Force clean body on all variants */
:root[data-da-variant] body,
:root[data-theme] body {
  color: var(--text) !important;
  background: var(--bg) !important;
  font-family: Manrope, -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Helvetica Neue, sans-serif !important;
}

:root[data-da-variant] body::before,
:root[data-da-variant] body::after,
:root[data-theme] body::before,
:root[data-theme] body::after {
  display: none !important;
}

/* Force clean headings */
:root[data-da-variant] h1,
:root[data-da-variant] h2,
:root[data-da-variant] h3 {
  font-family: Manrope, -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Helvetica Neue, sans-serif !important;
  color: var(--text) !important;
}
