/* ============================================
   BRILLION STUDIO — STYLES
   Inspired by CodeAspen's minimal operator aesthetic
   ============================================ */

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

:root {
  /* ── Dark mode (default) ── */
  --bg:          #0b0b0b;
  --bg-surface:  #111111;
  --bg-card:     #161616;
  --border:      #232323;
  --border-dim:  #1a1a1a;
  /* Hero section background — intentionally lifted off the page bg
     so the top of every page has a distinct "frame" feel. Dark mode:
     a notable light gray (not pitch black). Light mode: pure white
     (vs the page's cream off-white). Applied to .hero, .svc-hero,
     .pricing-hero, .contact-hero, .sa-hero. */
  --bg-hero:     #1c1c1c;

  --text:        #ede9e0;
  --text-muted:  #6b6b5e;
  --text-dim:    #3a3a30;
  /* Pure white emphasis — used on hero H1s across all top-level
     pages so the hero pops harder than the cream off-white that
     everything else uses. Pillars, case-study titles, and process
     steps intentionally stay on --text. */
  --text-emphasis: #ffffff;

  --accent:      #ff2e00;
  --accent-dim:  rgba(255, 46, 0, 0.12);
  --accent-glow: rgba(255, 46, 0, 0.06);

  --logo-blend:  screen;
  --nav-blur-bg: rgba(11, 11, 11, 0.95);
  --spotlight-overlay: rgba(11, 11, 11, 0.75);
  --bg-card-hover: #1a1a1a;

  --mono: 'Space Mono', monospace;
  --sans: 'Inter', system-ui, sans-serif;

  --radius: 4px;
  --radius-lg: 8px;
  --max-w: 1160px;
  --nav-h: 68px;

  --transition-theme: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;

  /* Spacing scale */
  --space-xs:  8px;
  --space-sm:  12px;
  --space-md:  16px;
  --space-lg:  24px;
  --space-xl:  32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 80px;
  --space-5xl: 120px;

  /* Motion tokens (easing + duration) — mirrored from .fnl-vsl for site-wide coherence */
  --ease-standard: ease;
  --ease-smooth:   cubic-bezier(0.4, 0, 0.2, 1);
  --ease-bounce:   cubic-bezier(0.16, 1, 0.3, 1);

  --duration-fast:   0.15s;
  --duration-base:   0.2s;
  --duration-slow:   0.3s;
  --duration-slower: 0.4s;
}

/* Wide-desktop container tiers */
@media (min-width: 1280px) {
  :root { --max-w: 1240px; }
}
@media (min-width: 1600px) {
  :root { --max-w: 1320px; }
}

/* ── Light mode ── */
[data-theme="light"] {
  --bg:          #f8f6f2;
  --bg-surface:  #ffffff;
  --bg-card:     #f2efe9;
  --border:      #e0dbd2;
  --border-dim:  #ece8e1;
  /* Light-mode counterpart to the dark mode --bg-hero. Pure white
     vs the page's cream off-white. */
  --bg-hero:     #ffffff;

  --text:        #1a1814;
  --text-muted:  #6b6560;
  --text-dim:    #b0aa9f;
  /* Pure black emphasis (light-mode counterpart to dark mode's
     --text-emphasis: white). Used on hero H1s only. */
  --text-emphasis: #000000;

  --accent:      #ff2e00;
  --accent-dim:  rgba(255, 46, 0, 0.10);
  --accent-glow: rgba(255, 46, 0, 0.04);

  --logo-blend:  multiply;
  --nav-blur-bg: rgba(248, 246, 242, 0.95);
  --spotlight-overlay: rgba(248, 246, 242, 0.82);
  --bg-card-hover: #e8e4dc;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  /* `overflow-x: clip` prevents horizontal scroll like `hidden` but
     without creating a scroll container — so position: sticky on
     descendants (e.g. services deepdive track) continues to work.
     Was `hidden` — that silently killed sticky positioning. */
  overflow-x: clip;
  transition: var(--transition-theme);
}

/* ============ UTILITIES ============ */

/* Typography orphan guard (owner rule 2026-06-10): headings balance their
   lines, paragraphs avoid single-word widows. Progressive enhancement;
   browsers without support simply ignore it. */
h1, h2, h3, h4 { text-wrap: balance; }
p, .section-sub, .hero-sub { text-wrap: pretty; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
}

.section-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 20px;
}

.section-label.center { text-align: center; }

.section-header {
  max-width: 640px;
  margin-bottom: 64px;
}

.section-header h2 {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section-sub {
  color: var(--text-muted);
  font-size: 17px;
  line-height: 1.7;
}

/* ============ BUTTONS ============ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  /* apple.com button geometry: full-pill radius + their CTA padding
     rhythm. Brand orange unchanged (lives on .btn-primary). */
  padding: 12px 22px;
  border-radius: 980px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: background var(--duration-base) var(--ease-smooth),
              color var(--duration-base) var(--ease-smooth),
              border-color var(--duration-base) var(--ease-smooth),
              transform var(--duration-base) var(--ease-bounce),
              box-shadow var(--duration-base) var(--ease-smooth);
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
}

.btn-primary:hover {
  background: #e82900;
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 6px 20px -4px var(--accent-dim);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-large {
  padding: 16px 31px;
  font-size: 15px;
}

/* ============ NAV ============ */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  /* Sits above .site-drawer (z-index 1100) so the logo, theme/mail icons,
     CTA, and hamburger remain clickable while the drawer is open. */
  z-index: 1200;
  height: var(--nav-h);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, background 0.25s ease,
              transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

/* Auto-hide (owner call 2026-06-11): slides away while scrolling down,
   returns on any upward scroll (script.js drives the class).
   --nav-offset feeds every sticky sub-bar (blog toolbar, work filters,
   homepage work tabs) so they ride up to the viewport top in sync
   while the nav is hidden. */
:root { --nav-offset: var(--nav-h); }
html.nav-hidden { --nav-offset: 0px; }
.nav.nav--hidden { transform: translateY(-100%); }
html.menu-open .nav { transform: none; }

.nav.scrolled {
  background: var(--nav-blur-bg);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--border);
}
/* When the drawer is open, nav must be opaque so body doesn't bleed through */
html.menu-open .nav {
  background: var(--bg);
  border-bottom-color: var(--border);
}

/* Scroll lock when drawer is open — no position tricks, no rescroll on close */
html.menu-open,
html.menu-open body {
  overflow: hidden;
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-mark {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.logo-mark img {
  width: 32px;
  height: 32px;
  object-fit: cover;
  border-radius: 3px;
  mix-blend-mode: var(--logo-blend);
}

.logo-text {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
}

.nav-links {
  display: flex;
  gap: 4px;
  list-style: none;
  padding: 0;
  margin: 0;
  margin-left: 16px; /* sits next to the logo on the left */
  margin-right: auto; /* pushes icons + CTA to the far right */
  align-items: center;
}

/* Mobile-only nav items (hidden on desktop) */
.nav-links__cta-item,
.nav-links__contact-item,
.nav-links__header-item {
  display: none;
}

.nav-links a {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 999px;
  opacity: 0.72;
  transition: opacity 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.nav-links a:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.06);
}
[data-theme="light"] .nav-links a:hover {
  background: rgba(26, 24, 20, 0.04);
}
.nav-links a.nav-active {
  opacity: 1;
  color: var(--accent);
}

/* Below desktop: hide inline links + show hamburger — the shared .site-drawer takes over.
   Bumped to 1100px so tablets (iPad Pro landscape, Surface, 11"–13" laptops in split view)
   get the mobile drawer instead of a cramped desktop nav.
   !important on .nav-toggle display because a later base rule (.nav-toggle { display: none })
   in the cascade would otherwise win. */
@media (max-width: 1100px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex !important; }
  .nav-cta { display: none; }
}

/* Dynamic "More" overflow menu */
/* Prevent first-paint flash: hide menu text until overflow logic has measured once.
   The JS adds .nav--overflow-ready after the first applyOverflow() pass. */
.nav:not(.nav--overflow-ready) .nav-links > li > a,
.nav:not(.nav--overflow-ready) .nav-links__more-btn {
  opacity: 0;
}
.nav.nav--overflow-ready .nav-links > li > a,
.nav.nav--overflow-ready .nav-links__more-btn {
  transition: opacity 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.nav-links__more-item {
  position: relative;
  list-style: none;
}
.nav-links__more-item.is-empty { display: none; }
.nav-links__more-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  background: transparent;
  border: 0;
  padding: 10px 14px;
  border-radius: 999px;
  opacity: 0.72;
  cursor: pointer;
  transition: opacity 0.25s ease, background 0.25s ease, color 0.25s ease;
}
.nav-links__more-btn:hover,
.nav-links__more-item.is-open .nav-links__more-btn {
  opacity: 1;
  background: rgba(255, 255, 255, 0.06);
}
[data-theme="light"] .nav-links__more-btn:hover,
[data-theme="light"] .nav-links__more-item.is-open .nav-links__more-btn {
  background: rgba(26, 24, 20, 0.04);
}
.nav-links__more-btn svg {
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.nav-links__more-item.is-open .nav-links__more-btn svg {
  transform: rotate(180deg);
}

.nav-links__more-tray {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 200px;
  padding: 6px;
  border-radius: 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
  list-style: none;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  opacity: 0;
  transform: translateY(-6px) scale(0.98);
  transform-origin: top right;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 50;
}
[data-theme="light"] .nav-links__more-tray {
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.08);
}
.nav-links__more-item.is-open .nav-links__more-tray {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.nav-links__more-tray > li { list-style: none; }
.nav-links__more-tray a {
  display: block;
  padding: 10px 14px;
  border-radius: 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
  opacity: 0.78;
  transition: opacity 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.nav-links__more-tray a:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.06);
}
[data-theme="light"] .nav-links__more-tray a:hover {
  background: rgba(26, 24, 20, 0.04);
}
.nav-links__more-tray a.nav-active {
  opacity: 1;
  color: var(--accent);
}

.nav-cta { flex-shrink: 0; }

/* Two-line hamburger that rotates into an X when open */
.nav-toggle {
  display: none;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  margin-left: auto;
  position: relative;
  color: var(--text);
  opacity: 0.75;
  transition: opacity 0.2s ease, background 0.2s ease, color 0.2s ease;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
}
.nav-toggle:hover {
  opacity: 1;
  color: var(--accent);
  background: rgba(255, 255, 255, 0.08);
}
[data-theme="light"] .nav-toggle:hover {
  background: rgba(26, 24, 20, 0.06);
}

.nav-toggle span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 1.5px;
  background: currentColor;
  border-radius: 2px;
  transform-origin: center;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.nav-toggle span:nth-child(1) { transform: translate(-50%, calc(-50% - 3px)); }
.nav-toggle span:nth-child(2) { transform: translate(-50%, calc(-50% + 3px)); }
/* X when menu is open */
.nav-toggle.is-open span:nth-child(1) { transform: translate(-50%, -50%) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { transform: translate(-50%, -50%) rotate(-45deg); }

/* ── Theme Toggle ── */
.nav-toggles {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: transparent;
  border: 0;
  color: var(--text);
  cursor: pointer;
  opacity: 0.75;
  transition: opacity 0.2s ease, color 0.2s ease, background 0.2s ease;
  flex-shrink: 0;
}

.theme-toggle:hover {
  opacity: 1;
  color: var(--accent);
  background: rgba(255, 255, 255, 0.08);
}
[data-theme="light"] .theme-toggle:hover {
  background: rgba(26, 24, 20, 0.06);
}

.theme-icon { display: flex; align-items: center; }

/* Show moon in dark mode, sun in light mode */
.theme-icon--dark  { display: flex; }
.theme-icon--light { display: none; }

[data-theme="light"] .theme-icon--dark  { display: none; }
[data-theme="light"] .theme-icon--light { display: flex; }

/* ── Nav Mail Button ── */
.nav-mail {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: transparent;
  border: 0;
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
  opacity: 0.75;
  transition: opacity 0.2s ease, color 0.2s ease, background 0.2s ease;
  flex-shrink: 0;
  margin-left: 0;
}

.nav-mail:hover {
  opacity: 1;
  color: var(--accent);
  background: rgba(255, 255, 255, 0.08);
}
[data-theme="light"] .nav-mail:hover {
  background: rgba(26, 24, 20, 0.06);
}

/* ============ HERO ============ */


.hero {
  padding: calc(var(--nav-h) + 100px) 0 100px;
  position: relative;
  overflow: hidden;
  background: var(--bg-hero);
  /* Min height keeps short H1s from looking cramped on the new white/
     light-gray hero background. Flex centers content vertically so a
     2-line OR 3-line H1 both sit in the same visual zone — the section
     grows when content exceeds the min-height, but the LAYOUT stays
     anchored. */
  min-height: min(820px, 92vh);
  display: flex;
  align-items: center;
}

.hero-vanta {
  position: absolute;
  inset: 0;
  z-index: 0;
  /* Mask the vanta animation so it fades cleanly from the text side
     to the visual side, regardless of section height. */
  -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.3) 30%, rgba(0,0,0,0.8) 70%, black 100%);
  mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.3) 30%, rgba(0,0,0,0.8) 70%, black 100%);
}

.hero > .container {
  position: relative;
  z-index: 1;
  width: 100%;
}

/* Subtle warm-tint scrim behind the headline — now sized in percentages
   so it scales naturally whether the H1 is 1, 2, or 3 lines. Previously
   the scrim was a fixed 800×500 box that only looked right with 2-line
   H1s and clipped awkwardly at 3 lines. */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 60% 70% at 35% 45%,
    rgba(201, 166, 96, 0.07) 0%,
    transparent 65%
  );
  pointer-events: none;
  z-index: 0;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero-h1 {
  font-size: clamp(44px, 7vw, 80px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.035em;
  margin-bottom: 28px;
  max-width: 820px;
  /* Pure white (dark mode) / pure black (light mode) — pops harder
     than the cream off-white --text used everywhere else. Pillars
     stay on --text. */
  color: var(--text-emphasis);
}

.hero-sub {
  font-size: 18px;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 560px;
  margin-bottom: 40px;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  margin-bottom: 72px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 28px 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
  max-width: fit-content;
  flex-wrap: wrap;
  gap: 0;
}

.stat {
  display: flex;
  flex-direction: column;
  padding: 0 32px;
}

.stat:first-child { padding-left: 0; }
.stat:last-child { padding-right: 0; }

.stat-number {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 12px;
  color: var(--text-muted);
  font-family: var(--mono);
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* ============ REELS — "Recent Work" horizontal scroll ============
   Inline iPhone-styled vertical video tiles in a horizontal scroll-snap
   row. Native scroll handles the gesture; arrows + dots provide a
   keyboard/mouse fallback. CSS owns layout; reels.js handles nav state
   and hover-to-unmute. No taps, no key listeners on the tiles, no embed
   mounts — clicking a tile opens Instagram in a new tab.
*/

.reels {
  padding: var(--space-4xl) 0 var(--space-3xl);
  background: var(--bg);
  overflow: hidden;
  isolation: isolate;
}

.reels__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

/* Header link — replaces the static "[ Recent Work ]" label. Reuses
   .section-label typography (mono, accent, tracking) but adds a
   border-bottom hover lift like the footer links elsewhere on the site. */
.reels__handle {
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition:
    border-color var(--duration-base) var(--ease-smooth),
    color var(--duration-base) var(--ease-smooth);
}
.reels__handle:hover {
  border-bottom-color: var(--accent);
}
.reels__handle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.reels__nav {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.reels__arrow {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  background: var(--bg-surface);
  color: var(--text);
  border-radius: 50%;
  cursor: pointer;
  transition:
    background var(--duration-base) var(--ease-smooth),
    border-color var(--duration-base) var(--ease-smooth),
    color var(--duration-base) var(--ease-smooth),
    opacity var(--duration-base) var(--ease-smooth);
}
.reels__arrow:hover:not(.is-disabled) {
  background: var(--bg-card);
  border-color: var(--text-muted);
}
.reels__arrow:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.reels__arrow.is-disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.reels__arrow svg { display: block; }

/* ── Scroll viewport ─────────────────────────────────────────── */
.reels__viewport {
  /* Break out of the centered container so the row spans full width.
     Padding-inline gives the leftmost tile breathing room from the
     viewport edge; scroll-padding-inline mirrors that so snap points
     align to the visible inset (without it, the first tile snaps under
     the padding and appears clipped at the edge). */
  width: 100vw;
  margin-left: calc(50% - 50vw);
  padding: 12px max(32px, calc((100vw - var(--max-w)) / 2 + 32px));
  scroll-padding-inline-start: max(32px, calc((100vw - var(--max-w)) / 2 + 32px));
  scroll-padding-inline-end:   max(32px, calc((100vw - var(--max-w)) / 2 + 32px));
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  /* Lock touch gesture to horizontal pan so a swipe never gets captured
     as a vertical page scroll mid-row. */
  touch-action: pan-x;
}
.reels__viewport::-webkit-scrollbar { display: none; }

/* Desktop click-and-drag pan affordance — grab/grabbing cursors on fine
   pointers only. Touch devices don't see the cursor change; they get
   native pan-x from the rule above. */
@media (pointer: fine) {
  .reels__viewport { cursor: grab; }
  .reels__viewport.is-dragging { cursor: grabbing; scroll-snap-type: none; }
  .reels__viewport.is-dragging .reels__tile { pointer-events: none; }
}

.reels__track {
  display: flex;
  gap: 18px;
  width: max-content;
}

/* ── Tile (role="button" div, June 2026 — no longer an <a>) ─────
   Clicking toggles audio (handled in phone-tile.js); the tile no longer
   navigates to Instagram. user-select / -webkit-user-drag are killed so
   the row can be panned without the tile "sticking" to the cursor. */
.reels__tile {
  --reel-w: 280px;
  flex: 0 0 auto;
  width: var(--reel-w);
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  scroll-snap-align: start;
  outline: none;
  transition: transform var(--duration-base) var(--ease-smooth);
  /* Drag-ghost / text-selection suppression. The native browser drag
     handlers on <a>/<img>/<video> would otherwise capture the mouse and
     prevent the row from being panned. */
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
}
.reels__tile:hover {
  transform: translateY(-3px);
}
.reels__tile:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 6px;
  border-radius: 36px;
}

/* ── Inline iPhone-styled phone shell ──────────────────────── */
/* Anatomically tuned to iPhone 15/16 Pro proportions:
   - Body aspect: 9 / 19.5  (real device is ~76.7×159.9mm = 0.480 ≈ 9:18.77)
   - Display corner radius: ~13% of body width (≈ 55pt on a 393pt screen)
   - Bezel: ~2% of body width (modern iPhones have very thin bezels)
   - Dynamic Island: 32% wide × 9.5% tall, offset ~3% from top
     (real island is 122.3×37.6pt on a 393pt-wide screen) */
.reels__phone {
  --bezel: calc(var(--reel-w, 280px) * 0.02);
  position: relative;
  aspect-ratio: 9 / 19.5;
  width: 100%;
  border-radius: calc(var(--reel-w, 280px) * 0.13);
  overflow: hidden;
  background: #0a0a0a;
  /* Titanium-edge feel against the dark page bg. */
  border: 1.5px solid #1c1c1c;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.05) inset,   /* inner highlight */
    0 0 0 1px rgba(0, 0, 0, 0.6),                 /* outer separation */
    0 18px 50px -24px rgba(0, 0, 0, 0.55);        /* lift */
  transition:
    border-color var(--duration-base) var(--ease-smooth),
    box-shadow var(--duration-base) var(--ease-smooth);
}
.reels__tile:hover .reels__phone,
.reels__tile:focus-visible .reels__phone {
  border-color: #2a2a2a;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06) inset,
    0 0 0 1px rgba(0, 0, 0, 0.7),
    0 24px 70px -20px rgba(0, 0, 0, 0.7);
}

/* Dynamic Island — pill notch centered at top, in front of the screen.
   Sized as a % of body width so it stays anatomically correct at every
   tile width (desktop / tablet / mobile). */
.reels__island {
  position: absolute;
  /* Anatomical baseline (~2.9% of body width) plus an 8px nudge down so the
     pill sits where real iPhone islands appear on the device's display. */
  top: calc(var(--reel-w, 280px) * 0.029 + 8px);
  left: 50%;
  transform: translateX(-50%);
  width: 32%;
  height: calc(var(--reel-w, 280px) * 0.095);
  background: #000;
  border-radius: 999px;
  z-index: 3;
  pointer-events: none;
  box-shadow: 0 0 0 0.5px rgba(255, 255, 255, 0.04);
}

.reels__screen {
  position: absolute;
  inset: var(--bezel);
  /* Inner screen radius = outer radius - bezel for a clean concentric curve */
  border-radius: calc((var(--reel-w, 280px) * 0.13) - var(--bezel));
  overflow: hidden;
  background: #000;
}

.reels__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #050505;
  /* Click target lives on the parent .reels__tile — the video itself is
     visual-only. This also stops Safari/iOS from intercepting the click
     with its native video controls overlay. */
  pointer-events: none;
  -webkit-user-drag: none;
}
img.reels__video,
.reels__video--poster {
  pointer-events: none;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
}
.reels__video--fallback {
  background:
    radial-gradient(ellipse at 30% 20%, var(--accent-dim) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 80%, rgba(255, 255, 255, 0.04) 0%, transparent 50%),
    linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
}

/* ── Footer (brand label + stats) ───────────────────────────── */
.reels__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 4px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}
.reels__brand {
  color: var(--text);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.reels__stats {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.reels__stat {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--text-muted);
}
.reels__stat svg { color: var(--text-dim); flex-shrink: 0; }
.reels__stats:empty { display: none; }

/* ── Page indicator dots ────────────────────────────────────── */
.reels__pages {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: var(--space-xl);
}
.reels__pages:empty { display: none; }
.reels__dot {
  width: 24px;
  height: 4px;
  border: 0;
  padding: 0;
  border-radius: 2px;
  background: var(--border);
  cursor: pointer;
  transition:
    background var(--duration-base) var(--ease-smooth),
    width var(--duration-base) var(--ease-smooth);
}
.reels__dot:hover { background: var(--text-muted); }
.reels__dot.is-active {
  background: var(--accent);
  width: 36px;
}
.reels__dot:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

/* ── Cursor-follow tooltip ─────────────────────────────────────
   Mounted once by phone-tile.js into <body>. Position is driven
   from JS via translate3d on .style.transform; this block only
   handles visual styling + show/hide transition. Skipped on coarse
   (touch) pointers where the cursor isn't a meaningful anchor. */
.reels__cue {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 10000;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(10, 10, 10, 0.92);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: #fff;
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0;
  transition: opacity var(--duration-base) var(--ease-smooth);
  box-shadow: 0 8px 24px -8px rgba(0, 0, 0, 0.6),
              0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}
.reels__cue.is-visible { opacity: 1; }
@media (pointer: coarse) {
  .reels__cue { display: none !important; }
}

/* ── Tablet ─────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .reels__tile { --reel-w: 240px; }
  .reels__head { align-items: center; }
}

/* ── Mobile ─────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .reels__tile { --reel-w: 220px; }
  .reels__nav { display: none; }
  .reels__pages { margin-top: var(--space-lg); }
}

/* ── Reduced motion ─────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .reels__viewport { scroll-behavior: auto; }
  .reels__tile { transition: none; }
  .reels__phone { transition: none; }
}

/* ============ PILLARS ============ */

/* ── DELIVERY LAYER DIAGRAM (pillars replacement, 2026-06-10) ──
   You -> [ Brillion + QA gate ] -> Your Customer. Each piece carries a
   draw-in transition gated on .is-played, applied once by script.js when
   the diagram scrolls into view. Mobile rotates the flow vertical. */

.dlayer {
  padding: var(--space-4xl) 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.dlayer__label {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.dlayer__sub {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 56px;
  max-width: 56ch;
}

.dlayer__diagram {
  display: flex;
  align-items: center;
  gap: 0;
}

.dlayer__node {
  flex: 0 0 180px;
  padding: 22px 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  text-align: center;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s var(--ease-smooth), transform 0.5s var(--ease-smooth);
}

.dlayer__node-title {
  display: block;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 8px;
}

.dlayer__node-desc {
  display: block;
  font-size: 12px;
  line-height: 1.45;
  color: var(--text-muted);
}

.dlayer__line {
  flex: 1 1 auto;
  height: 0;
  border-top: 1.5px dashed var(--text-dim);
  margin: 0 14px;
  position: relative;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.45s var(--ease-smooth);
}

.dlayer__line--out {
  border-top: 2px solid var(--accent);
}

.dlayer__arrow {
  position: absolute;
  right: -2px;
  top: -6.5px;
  width: 0;
  height: 0;
  border-top: 5.5px solid transparent;
  border-bottom: 5.5px solid transparent;
  border-left: 9px solid var(--accent);
  opacity: 0;
  transition: opacity 0.2s var(--ease-smooth);
}

.dlayer__layer {
  flex: 0 1 560px;
  display: flex;
  align-items: stretch;
  gap: 14px;
  padding: 28px 14px 28px 32px;
  background: var(--bg-surface);
  border: 1.5px solid var(--accent);
  border-radius: 12px;
  opacity: 0;
  transform: scale(0.97);
  transition: opacity 0.5s var(--ease-smooth), transform 0.5s var(--ease-smooth);
}

.dlayer__layer-body { flex: 1; min-width: 0; }

.dlayer__brand {
  display: block;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-emphasis);
  margin-bottom: 4px;
}

.dlayer__layer-desc {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.dlayer__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.dlayer__chip {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  padding: 7px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.35s var(--ease-smooth), transform 0.35s var(--ease-smooth), border-color 0.35s var(--ease-smooth);
}

.dlayer__gate {
  flex: 0 0 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1.5px solid var(--accent);
  border-radius: 8px;
}

.dlayer__gate-label {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.5;
  color: var(--accent);
}

.dlayer__gate-check {
  font-size: 16px;
  font-weight: 600;
  color: var(--accent);
}

.dlayer__caption {
  margin-top: 32px;
  text-align: center;
  font-size: 14px;
  color: var(--text-muted);
  opacity: 0;
  transition: opacity 0.5s var(--ease-smooth);
}

/* ── Played-in sequence: ~1.6s, fires once ── */
.dlayer__diagram.is-played .dlayer__node { opacity: 1; transform: none; }
.dlayer__diagram.is-played .dlayer__line { transform: scaleX(1); }
.dlayer__diagram.is-played .dlayer__line--in { transition-delay: 0.15s; }
.dlayer__diagram.is-played .dlayer__layer { opacity: 1; transform: none; transition-delay: 0.4s; }
.dlayer__diagram.is-played .dlayer__chip { opacity: 1; transform: none; }
.dlayer__diagram.is-played .dlayer__chip:nth-child(1) { transition-delay: 0.65s; }
.dlayer__diagram.is-played .dlayer__chip:nth-child(2) { transition-delay: 0.73s; }
.dlayer__diagram.is-played .dlayer__chip:nth-child(3) { transition-delay: 0.81s; }
.dlayer__diagram.is-played .dlayer__chip:nth-child(4) { transition-delay: 0.89s; }
.dlayer__diagram.is-played .dlayer__gate { animation: dlayerGatePulse 0.6s var(--ease-smooth) 1s 1; }
.dlayer__diagram.is-played .dlayer__line--out { transition-delay: 1.15s; }
.dlayer__diagram.is-played .dlayer__arrow { opacity: 1; transition-delay: 1.5s; }
.dlayer__diagram.is-played ~ .dlayer__caption { opacity: 1; transition-delay: 1.55s; }

@keyframes dlayerGatePulse {
  0%   { box-shadow: 0 0 0 0 var(--accent-glow, rgba(255, 46, 0, 0.35)); }
  50%  { box-shadow: 0 0 0 10px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

@media (prefers-reduced-motion: reduce) {
  .dlayer__node, .dlayer__layer, .dlayer__chip, .dlayer__caption { opacity: 1; transform: none; }
  .dlayer__line { transform: scaleX(1); }
  .dlayer__arrow { opacity: 1; }
  .dlayer__diagram.is-played .dlayer__gate { animation: none; }
}

/* ============ SERVICES — THE LEDGER ============
   Four expanding slats (Figma Concept A, approved 2026-06-10).
   Hover/click a slat → it grows via flex; collapsed slats show a
   rotated mono label. Mobile collapses to a vertical accordion. */

.services {
  padding: var(--space-5xl) 0;
}

.ledger__row {
  display: flex;
  gap: 10px;
  min-height: 620px;
}

.ledger__slat {
  position: relative;
  flex: 1;
  min-width: 0;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: flex 0.45s var(--ease-bounce), border-color 0.3s var(--ease-smooth);
}

.ledger__slat.is-active {
  flex: 3.2;
  border-color: var(--accent);
  cursor: default;
}

.ledger__num {
  position: absolute;
  top: 28px;
  left: 28px;
  font-size: 88px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--text);
  opacity: 0.07;
  transition: color 0.3s var(--ease-smooth), opacity 0.3s var(--ease-smooth);
  pointer-events: none;
}

.ledger__slat.is-active .ledger__num {
  color: var(--accent);
  opacity: 0.18;
}

.ledger__vert {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  writing-mode: vertical-rl;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  white-space: nowrap;
  transition: opacity 0.2s var(--ease-smooth);
  pointer-events: none;
}

.ledger__slat.is-active .ledger__vert { opacity: 0; }

.ledger__content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 40px;
  /* Hard-fixed width: the box must NOT track the animating slat width,
     or text visibly re-wraps mid-transition. Slat overflow clips it. */
  width: 480px;
  opacity: 0;
  transform: translateY(12px);
  /* Collapsing: text snaps away instantly so it never rides the shrink */
  transition: opacity 0.12s var(--ease-smooth), transform 0.12s var(--ease-smooth);
  pointer-events: none;
}

.ledger__slat.is-active .ledger__content {
  opacity: 1;
  transform: none;
  pointer-events: auto;
  /* Expanding: soft entrance once the slat has mostly opened */
  transition: opacity 0.3s var(--ease-smooth) 0.18s, transform 0.3s var(--ease-smooth) 0.18s;
}

.ledger__eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 16px;
}

.ledger__content h3 {
  font-size: 28px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.ledger__tag {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.ledger__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
}

.ledger__list li {
  font-size: 13px;
  color: var(--text-muted);
  padding-left: 18px;
  position: relative;
}

.ledger__list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--text-dim);
  font-family: var(--mono);
}

.ledger__link {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--accent);
  text-decoration: none;
}

.ledger__link:hover { text-decoration: underline; }

@media (max-width: 1280px) {
  .ledger__content { width: 420px; }
}

/* ============ CASE STUDIES ============ */

.work {
  padding: var(--space-5xl) 0;
  border-top: 1px solid var(--border);
}

.cases-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.case-card {
  background: var(--bg-card);
  padding: var(--space-2xl);
  transition: background var(--duration-base) var(--ease-smooth);
}

.case-card:hover { background: var(--bg-card-hover); }

.case-featured {
  grid-row: span 2;
  display: flex;
  flex-direction: column;
}

.case-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.case-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.case-year {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text-dim);
}

.case-name {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.case-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 28px;
}

.case-metrics {
  display: flex;
  gap: 32px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.case-metric {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 100px;
}

.case-client-logo {
  margin-bottom: 16px;
}

.case-client-logo-img {
  height: 22px;
  width: auto;
  filter: invert(1) hue-rotate(180deg);
  opacity: 0.9;
}

[data-theme="light"] .case-client-logo-img {
  filter: none;
  opacity: 0.9;
}

.metric-val {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--accent);
  line-height: 1;
}

.metric-lbl {
  font-size: 11px;
  color: var(--text-muted);
  font-family: var(--mono);
}

.case-quote {
  border-left: 2px solid var(--accent);
  padding-left: 20px;
  margin-top: auto;
  font-style: italic;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
}

.case-quote cite {
  display: block;
  margin-top: 10px;
  font-style: normal;
  font-size: 12px;
  color: var(--text-dim);
  font-family: var(--mono);
}

/* ============ HOMEPAGE WORK SECTION ============ */

/* Tabs */
.hp-work__tabs {
  display: flex;
  gap: 8px;
  padding: 16px 0;
  margin-bottom: 16px;
  position: sticky;
  top: var(--nav-offset, var(--nav-h));
  transition: top 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 10;
  background: var(--nav-blur-bg);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-dim);
  transition: var(--transition-theme),
              border-color var(--duration-base) var(--ease-smooth);
}

.hp-work__tab {
  flex-shrink: 0;
  padding: 8px 16px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--duration-base) var(--ease-smooth);
}

.hp-work__tab:hover {
  border-color: var(--text-muted);
  color: var(--text);
}

.hp-work__tab.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* Panels */
.hp-work__panel--hidden {
  display: none;
}

/* Opts the homepage work panels and their descendants out of CSS scroll-
   anchoring. Without this, swapping panels (Featured ↔ Commercial etc)
   causes the browser to auto-shift scrollY to keep visible content stable,
   which races our smooth-scroll target mid-animation and lands the user
   past the intended lock point. Both the panel AND its children must be
   excluded — overflow-anchor doesn't inherit. Scoped to the .hp-work
   namespace, so the /work page (.wrk-* classes) is unaffected. */
.hp-work__panel,
.hp-work__panel * {
  overflow-anchor: none;
}

/* Featured card (large) */
.hp-work__featured {
  /* Stacked layout (owner call 2026-06-11): the image takes the full
     card width up top, the metrics/details banner swings out below it.
     The card itself respects the normal container. */
  display: grid;
  grid-template-columns: 1fr;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  transition: border-color var(--duration-slow) var(--ease-smooth);
  margin-bottom: 24px;
}

.hp-work__featured:hover {
  border-color: var(--accent);
}

.hp-work__featured-img {
  position: relative;
  min-height: clamp(380px, 52vh, 560px);
  overflow: hidden;
  background: var(--bg-surface);
}

.hp-work__featured-img > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 2.5%;
  position: absolute;
  inset: 0;
}

.hp-work__featured-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--accent);
  color: #fff;
  padding: 6px 12px;
  border-radius: var(--radius);
  z-index: 2;
}

/* ============ REUSABLE CLIENT LOGO PILL ============
   Single source of truth for all logo badges across the site.
   Use with:
     <div class="client-logo-pill client-logo-pill--featured">
       <img src="..." class="client-logo-pill__img" />
     </div>
   Variants:
     --featured  : larger offset for hero/featured cards
     --card      : tighter offset for project grid cards
     .logo-brand : opt out of filter, preserve brand colors, swaps SVG per theme
*/
.client-logo-pill {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 16px;
  background: rgba(0, 0, 0, 0.6);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-sizing: border-box;
}
.client-logo-pill__img {
  height: 24px;
  width: auto;
  display: block;
  filter: invert(1) hue-rotate(180deg);
}
.client-logo-pill--featured {
  bottom: 16px;
  left: 16px;
}
.client-logo-pill--card {
  bottom: 12px;
  left: 12px;
}
[data-theme="light"] .client-logo-pill {
  background: rgba(255, 255, 255, 0.85);
  border-color: var(--border);
}
[data-theme="light"] .client-logo-pill__img {
  filter: none;
}
/* Brand-color opt-out (preserves native colors in both modes, uses paired SVGs) */
.client-logo-pill.logo-brand .client-logo-pill__img {
  filter: none !important;
}
.client-logo-pill.logo-brand {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}
[data-theme="light"] .client-logo-pill.logo-brand {
  box-shadow: none;
}

/* Legacy aliases (old classes still in HTML map to new styles) */
.hp-work__featured-logo,
.hp-work__card-logo,
.wrk-featured__client-logo,
.wrk-project-card__client-logo {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 16px;
  background: rgba(0, 0, 0, 0.6);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-sizing: border-box;
}

/* Legacy img selectors inherit from .client-logo-pill__img */
.hp-work__featured-logo img,
.hp-work__card-logo img,
.wrk-featured__logo-svg,
.wrk-project-card__client-logo-svg {
  height: 24px;
  width: auto;
  display: block;
  filter: invert(1) hue-rotate(180deg);
  position: static;
}

[data-theme="light"] .hp-work__featured-logo,
[data-theme="light"] .hp-work__card-logo,
[data-theme="light"] .wrk-featured__client-logo,
[data-theme="light"] .wrk-project-card__client-logo {
  background: rgba(255, 255, 255, 0.85);
  border-color: var(--border);
}
[data-theme="light"] .hp-work__featured-logo img,
[data-theme="light"] .hp-work__card-logo img,
[data-theme="light"] .wrk-featured__logo-svg,
[data-theme="light"] .wrk-project-card__client-logo-svg {
  filter: none;
}

/* Position offsets for legacy wrappers (match pill variants) */
.hp-work__featured-logo,
.wrk-featured__client-logo {
  bottom: 16px;
  left: 16px;
}
.hp-work__card-logo,
.wrk-project-card__client-logo {
  bottom: 12px;
  left: 12px;
}

.hp-work__featured-info {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) auto;
  align-items: center;
  gap: 8px 48px;
  padding: 28px 36px;
  border-top: 1px solid var(--border);
  /* Full white (surface token), not the off-white card tone: matches the
     homepage's other cards (ledger slats, diagram, switchboard). The work
     page intentionally keeps the inverse treatment. */
  background: var(--bg-surface);
}

.hp-work__featured-info h3 { margin-bottom: 2px; }

.hp-work__featured-info > p {
  grid-column: 1;
  margin: 4px 0 0;
}

.hp-work__featured-info h3 {
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}

.hp-work__featured-cat {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 6px;
  font-family: var(--mono);
  letter-spacing: 0.04em;
}

.hp-work__featured-info p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-muted);
  margin-top: 16px;
}

.hp-work__featured-metrics {
  grid-column: 2;
  grid-row: 1 / span 3;
  display: flex;
  gap: 28px;
  margin-top: 0;
  padding-top: 0;
}

.hp-work__fm {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hp-work__fm-val {
  font-size: 24px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.hp-work__fm-lbl {
  font-size: 10px;
  color: var(--text-muted);
  font-family: var(--mono);
  letter-spacing: 0.04em;
}

.hp-work__featured-link {
  display: inline-block;
  margin-top: 24px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
}

/* Project cards grid */
.hp-work__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.hp-work__grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.hp-work__card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.hp-work__card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}

.hp-work__card-img {
  width: 100%;
  height: 310px;
  overflow: hidden;
  background: var(--bg-surface);
  position: relative;
}

/* Brand-color logos (e.g. Moose Energy's yellow) — show native colors in both modes.
   Uses two img children; CSS swaps which is visible per theme. */
.logo-brand .logo-brand__dark { display: block; }
.logo-brand .logo-brand__light { display: none; }
[data-theme="light"] .logo-brand .logo-brand__dark { display: none; }
[data-theme="light"] .logo-brand .logo-brand__light { display: block; }
.logo-brand img { filter: none !important; }
.hp-work__card-logo.logo-brand,
.wrk-project-card__client-logo.logo-brand,
.wrk-featured__client-logo.logo-brand,
.hp-work__featured-logo.logo-brand {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}
[data-theme="light"] .hp-work__card-logo.logo-brand,
[data-theme="light"] .wrk-project-card__client-logo.logo-brand,
[data-theme="light"] .wrk-featured__client-logo.logo-brand,
[data-theme="light"] .hp-work__featured-logo.logo-brand {
  box-shadow: none;
}

.hp-work__card-img > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 2.5%;
  transition: transform 0.4s ease;
}

.hp-work__card:hover .hp-work__card-img > img {
  transform: scale(1.03);
}

.hp-work__card-info {
  padding: 20px;
  /* Same full-white surface as the featured card's banner (owner call
     2026-06-11): homepage cards read white-on-cream, not card-tone. */
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
}

.hp-work__card-info h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.02em;
  margin: 0;
  line-height: 1.3;
}

.hp-work__card-info span {
  font-size: 12px;
  color: var(--text-muted);
  font-family: var(--mono);
  letter-spacing: 0.04em;
  display: block;
  margin-top: 4px;
}

.hp-work__card-arrow {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 18px;
  color: var(--accent);
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.hp-work__card:hover .hp-work__card-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* Footer link */
.hp-work__footer {
  border-top: 1px solid var(--border);
  margin-top: 40px;
  padding-top: 24px;
  text-align: center;
}

.hp-work__footer-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  transition: opacity 0.2s;
}

.hp-work__footer-link:hover {
  opacity: 0.7;
}

/* Responsive */
@media (max-width: 1024px) {
  .hp-work__grid--3 {
    grid-template-columns: 1fr 1fr;
  }
  .hp-work__featured-metrics {
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .hp-work__featured {
    grid-template-columns: 1fr;
  }
  .hp-work__featured-img {
    min-height: 280px;
  }
  .hp-work__featured-info {
    padding: 20px;
    gap: 12px 24px;
  }
  /* Match project card images to featured height on mobile */
  .hp-work__card-img {
    height: 260px;
  }
  .hp-work__featured-info {
    padding: 28px;
  }
  .hp-work__featured-metrics {
    flex-wrap: wrap;
    gap: 16px;
  }
  .hp-work__grid,
  .hp-work__grid--3 {
    grid-template-columns: 1fr;
  }
  .hp-work__tabs {
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .hp-work__tabs::-webkit-scrollbar { display: none; }
}

/* ============ TESTIMONIALS ============ */

.testimonials {
  padding: var(--space-5xl) 0;
  border-top: 1px solid var(--border);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 48px;
}

.testimonial-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  transition: border-color var(--duration-base) var(--ease-smooth),
              transform var(--duration-base) var(--ease-smooth);
}

.testimonial-card:hover {
  border-color: var(--text-muted);
  transform: translateY(-2px);
}

.testimonial-text {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 32px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.testimonial-project-link {
  display: inline-block;
  margin-top: 20px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: border-color var(--duration-base) var(--ease-smooth),
              color var(--duration-base) var(--ease-smooth);
}
.testimonial-project-link:hover {
  border-bottom-color: var(--accent);
  color: var(--accent);
}

.author-avatar {
  width: 40px;
  height: 40px;
  background: var(--accent-dim);
  border: 1px solid var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
  flex-shrink: 0;
}
.author-avatar-img {
  object-fit: cover;
  object-position: center;
  border: 1px solid var(--border);
}

.author-name {
  font-size: 14px;
  font-weight: 600;
}

.author-title {
  font-size: 12px;
  color: var(--text-muted);
  font-family: var(--mono);
}

/* ============ PROCESS ============ */

.process {
  padding: var(--space-5xl) 0;
  border-top: 1px solid var(--border);
}

.process-grid {
  display: flex;
  align-items: stretch;
  gap: 0;
}

.process-step {
  flex: 1 1 0;
  min-width: 0;
  padding: 40px 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
  transition: border-color var(--duration-base) var(--ease-smooth),
              background var(--duration-base) var(--ease-smooth);
  display: flex;
  flex-direction: column;
}

.process-step:hover {
  border-color: var(--accent);
  background: var(--bg-card);
}

.step-number {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.process-step h3 {
  font-size: clamp(16px, 1.2vw, 18px);
  font-weight: 600;
  margin: 0 0 10px;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.process-step p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.65;
}

.process-connector {
  color: var(--text-dim);
  font-size: 20px;
  padding: 0 16px;
  flex-shrink: 0;
  font-family: var(--mono);
  display: flex;
  align-items: center;
}

/* ============ ABOUT ============ */

.about {
  padding: var(--space-5xl) 0;
  border-top: 1px solid var(--border);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 80px;
  align-items: start;
}

.about-content .section-label { margin-bottom: 20px; }

.about-content h2 {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.about-content p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 16px;
}

.principles {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.principle {
  display: flex;
  gap: 14px;
  font-size: 14px;
  color: var(--text-muted);
  align-items: flex-start;
}

.principle-mark {
  color: var(--accent);
  font-family: var(--mono);
  flex-shrink: 0;
  margin-top: 1px;
}

.team-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 16px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 16px;
}

@media (max-width: 768px) {
  .team-card { padding: 20px; gap: 14px 12px; }
  .team-member { gap: 10px; }
  .team-member .member-name { font-size: 13px; }
  .team-member .member-role { font-size: 11px; }
  .member-avatar, .member-avatar-img { width: 32px; height: 32px; }
}

.team-member {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.team-member > div {
  min-width: 0;
}

.team-member .member-name,
.team-member .member-role {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.member-avatar {
  width: 36px;
  height: 36px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.member-avatar-img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top;
  flex-shrink: 0;
  border: 1px solid var(--border);
}

.member-name {
  font-size: 14px;
  font-weight: 500;
}

.member-role {
  font-size: 12px;
  color: var(--text-muted);
  font-family: var(--mono);
}

.availability-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.avail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}

.avail-dot {
  width: 7px;
  height: 7px;
  background: #4ade80;
  border-radius: 50%;
  margin-right: 10px;
  display: inline-block;
  box-shadow: 0 0 8px rgba(74, 222, 128, 0.5);
  animation: pulse 2s ease infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.avail-row:first-child {
  font-weight: 500;
  color: var(--text);
  font-size: 13px;
}

.avail-label {
  color: var(--text-muted);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.05em;
}

.avail-val {
  font-size: 12px;
  color: var(--text);
}

/* ============ CONTACT CTA ============ */

.contact-cta {
  padding: var(--space-5xl) 0;
  border-top: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.cta-vanta {
  position: absolute;
  inset: 0;
  z-index: 0;
  -webkit-mask-image: radial-gradient(ellipse at center, transparent 0%, transparent 15%, rgba(0,0,0,0.3) 35%, rgba(0,0,0,0.7) 55%, black 80%);
  mask-image: radial-gradient(ellipse at center, transparent 0%, transparent 15%, rgba(0,0,0,0.3) 35%, rgba(0,0,0,0.7) 55%, black 80%);
}

.contact-cta > .container {
  position: relative;
  z-index: 1;
}

.cta-block {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.cta-block h2 {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.cta-block p {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 36px;
}

.cta-footnote {
  margin-top: 20px !important;
  font-size: 13px !important;
  color: var(--text-dim) !important;
  font-family: var(--mono);
  letter-spacing: 0.02em;
}

/* ============ FOOTER ============ */

.footer {
  border-top: 1px solid var(--border);
  padding: 64px 0 32px;
  background: var(--bg);
}

.footer-grid {
  display: grid;
  /* 5 columns now (footer-brand + Services + Company + Service Areas + Connect).
     Brand still takes 2fr; the four link columns share equal weight. Gap is
     tighter at 5 columns to keep the row from running off on smaller desktops. */
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 56px;
}
/* At narrower desktop widths, drop to a 3-column grid: brand spans full width,
   then the four link columns wrap into 2×2 below. Prevents Service Areas /
   Connect from getting squished. */
@media (max-width: 1100px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
  .footer-brand { grid-column: 1 / -1; }
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.footer-tagline {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.footer-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 280px;
}

.footer-col-title {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-bottom: 18px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col ul a {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 4px;
  transition: color var(--duration-fast) var(--ease-smooth),
              text-decoration-color var(--duration-base) var(--ease-smooth),
              text-underline-offset var(--duration-base) var(--ease-smooth);
}

.footer-col ul a:hover {
  color: var(--text);
  text-decoration-color: var(--accent);
  text-underline-offset: 3px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  border-top: 1px solid var(--border-dim);
  font-size: 12px;
  color: var(--text-dim);
  flex-wrap: wrap;
  gap: 12px;
}

.footer-legal {
  display: flex;
  gap: 24px;
}

.footer-legal a {
  color: var(--text-dim);
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 4px;
  transition: color var(--duration-fast) var(--ease-smooth),
              text-decoration-color var(--duration-base) var(--ease-smooth);
  font-size: 12px;
}

.footer-legal a:hover {
  color: var(--text-muted);
  text-decoration-color: var(--text-dim);
}

/* ============ RESPONSIVE ============ */

/* ============ HERO EMAIL CTA ============ */

.hero-email-cta {
  margin: 40px 0 0;
}

.email-input-wrap {
  display: flex;
  align-items: stretch;
  max-width: 680px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s;
  position: relative;
  z-index: 2;
}

.email-input-wrap:focus-within {
  border-color: var(--text);
}

.email-input-wrap::before {
  content: '';
  position: fixed;
  inset: 0;
  background: var(--spotlight-overlay);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  z-index: 1;
  transition: opacity 0.25s ease;
}

.email-input-wrap.is-focused::before {
  opacity: 1;
  pointer-events: none;
}

.email-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  padding: 16px 20px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.18em;
  color: var(--text);
  position: relative;
  z-index: 2;
}

.email-input::placeholder {
  color: var(--text-dim);
  letter-spacing: 0.18em;
}

.email-submit {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 16px 24px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
  display: flex;
  align-items: center;
  transition: background 0.15s;
  position: relative;
  z-index: 2;
}

.email-input-wrap:focus-within .email-submit {
  background: #e82900;
}

.email-micro {
  margin-top: 10px;
  font-size: 12px;
  color: var(--text-muted);
  font-family: var(--mono);
  letter-spacing: 0.03em;
}

.hero-cta {
  margin-top: 40px;
  position: relative;
  z-index: 2;
}
.hero-cta__micro {
  margin-top: 12px;
  font-size: 12px;
  color: var(--text-muted);
  font-family: var(--mono);
  letter-spacing: 0.03em;
}

/* ============ PROBLEM SECTION ============ */

.problem {
  padding: 120px 0;
  border-top: 1px solid var(--border);
}

.problem-h2 {
  font-size: clamp(36px, 4.5vw, 56px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 64px;
  max-width: 700px;
}

.problem-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.problem-monologue {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.problem-monologue p {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.7;
  padding-left: 16px;
  border-left: 1px solid var(--border-dim);
}

.problem-turn {
  color: var(--text) !important;
  font-weight: 500;
  border-left-color: var(--accent) !important;
  margin-top: 8px;
}

.problem-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-top: 8px;
}

.problem-item {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.5;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.01em;
}

.problem-item--accent {
  color: var(--accent);
}

/* ============ PROOF GRID ============ */

.proof-grid-section {
  padding: 120px 0;
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.proof-h2 {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 56px;
}

.proof-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.proof-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
}

.proof-stat {
  font-size: clamp(40px, 5vw, 56px);
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  letter-spacing: -0.03em;
  font-family: var(--mono);
}

/* ================================================================
   SITE DRAWER — reusable navigation panel
   Full-screen on mobile, 30rem right-side panel on desktop.
   Shared by every page (main nav hamburger + showcase hamburger).
   ================================================================ */
.site-drawer {
  position: fixed;
  inset: var(--nav-h) 0 0 0;
  z-index: 1100;
  background: var(--bg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  overflow: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease,
              transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}
.site-drawer.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.site-drawer__links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
}
.site-drawer__links > li {
  position: relative;
  border-bottom: 1px solid var(--border-dim);
  transform: translateY(20px);
  opacity: 0;
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.site-drawer.is-open .site-drawer__links > li { opacity: 1; transform: none; }
.site-drawer.is-open .site-drawer__links > li:nth-child(1) { transition-delay: 0.04s; }
.site-drawer.is-open .site-drawer__links > li:nth-child(2) { transition-delay: 0.10s; }
.site-drawer.is-open .site-drawer__links > li:nth-child(3) { transition-delay: 0.16s; }
.site-drawer.is-open .site-drawer__links > li:nth-child(4) { transition-delay: 0.20s; }
.site-drawer.is-open .site-drawer__links > li:nth-child(5) { transition-delay: 0.24s; }
.site-drawer.is-open .site-drawer__links > li:nth-child(6) { transition-delay: 0.32s; }
.site-drawer.is-open .site-drawer__links > li:nth-child(7) { transition-delay: 0.40s; }
.site-drawer__links > li > a {
  display: block;
  padding: 22px 0;
  font-family: var(--sans);
  font-size: clamp(26px, 4vw, 34px);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s ease, padding-left 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.site-drawer__links > li > a:hover { color: var(--accent); padding-left: 10px; }
.site-drawer__links > li > a.is-active { color: var(--accent); }

.site-drawer__cta-item { border-bottom: 0 !important; margin-top: 28px; }
.site-drawer__cta {
  display: inline-flex !important;
  align-items: center;
  padding: 16px 28px !important;
  background: var(--accent) !important;
  color: #fff !important;
  font-size: 15px !important;
  border-radius: 999px;
  text-decoration: none;
  letter-spacing: 0 !important;
  font-weight: 500 !important;
  transition: background 0.2s ease !important;
}
.site-drawer__cta:hover { background: #e84a00 !important; padding-left: 28px !important; }
.site-drawer__contact-item { border-bottom: 0 !important; margin-top: 18px; }
.site-drawer__contact-item > a {
  font-family: var(--mono) !important;
  font-size: 13px !important;
  font-weight: 400 !important;
  letter-spacing: 0.05em;
  color: var(--text-muted) !important;
  padding: 10px 0 !important;
}

/* Desktop: slide in from the right as a 30rem panel with dim backdrop */
@media (min-width: 1025px) {
  .site-drawer {
    inset: var(--nav-h) 0 0 auto;
    width: 30rem;
    max-width: 100vw;
    border-left: 1px solid var(--border-dim);
    box-shadow: -24px 0 60px rgba(0, 0, 0, 0.35);
    transform: translateX(100%);
  }
  [data-theme="light"] .site-drawer {
    box-shadow: -24px 0 60px rgba(0, 0, 0, 0.08);
  }
  .site-drawer.is-open { transform: translateX(0); }

  .site-drawer::before {
    content: '';
    position: fixed;
    inset: var(--nav-h) 30rem 0 0;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
  }
  .site-drawer.is-open::before { opacity: 1; pointer-events: auto; }
}

.proof-unit {
  font-size: 11px;
  font-family: var(--mono);
  letter-spacing: 0.14em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-top: 8px;
}

.proof-divider {
  height: 1px;
  background: var(--border);
  margin: 24px 0;
}

.proof-body {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ============ DISQUALIFIERS ============ */

.disqualifiers {
  padding: 120px 0;
  border-top: 1px solid var(--border);
}

.disq-h2 {
  font-size: clamp(36px, 4.5vw, 56px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 56px;
  max-width: 640px;
}

.disq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 860px;
  margin-bottom: 56px;
}

.disq-item {
  font-size: 16px;
  color: var(--text-muted);
  padding: 18px 0;
  border-bottom: 1px solid var(--border-dim);
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.01em;
  transition: color 0.15s, padding-left 0.15s;
}

.disq-item:hover {
  color: var(--text);
  padding-left: 8px;
}

.disq-turn {
  display: flex;
  align-items: baseline;
  gap: 20px;
  padding-top: 8px;
}

.disq-still {
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}

.disq-then {
  font-size: 18px;
  color: var(--text-muted);
  line-height: 1.5;
}

@media (max-width: 1024px) {
  /* Ledger collapses to a vertical accordion */
  .ledger__row {
    flex-direction: column;
    min-height: 0;
  }
  .ledger__slat {
    flex: none;
    min-height: 76px;
    transition: border-color 0.3s var(--ease-smooth);
  }
  .ledger__slat.is-active { flex: none; }
  .ledger__num {
    font-size: 32px;
    top: 24px;
    left: 24px;
    opacity: 0.35;
  }
  .ledger__vert {
    writing-mode: horizontal-tb;
    transform: none;
    left: 76px;
    top: 32px;
    bottom: auto;
  }
  .ledger__slat.is-active .ledger__vert { opacity: 0; }
  .ledger__vertnum { display: none; }
  .ledger__content {
    position: static;
    width: 100%;
    padding: 0 24px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.45s var(--ease-bounce), padding 0.45s var(--ease-bounce), opacity 0.3s var(--ease-smooth) 0.1s, transform 0.3s var(--ease-smooth) 0.1s;
  }
  .ledger__slat.is-active .ledger__content {
    max-height: 600px;
    padding: 76px 24px 28px;
  }
  .cases-grid { grid-template-columns: 1fr; }
  .case-featured { grid-row: auto; }
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .process-grid { flex-wrap: wrap; gap: 16px; }
  .process-connector { display: none; }
  .process-step { flex: 1 1 40%; }
  /* Delivery layer diagram rotates vertical on tablet/mobile */
  .dlayer__diagram { flex-direction: column; }
  .dlayer__node { flex: 0 0 auto; width: 100%; max-width: 360px; }
  .dlayer__line {
    flex: 0 0 48px;
    width: 0;
    height: 48px;
    border-top: none;
    border-left: 1.5px dashed var(--text-dim);
    margin: 0;
    transform: scaleY(0);
    transform-origin: top center;
  }
  .dlayer__line--out { border-left: 2px solid var(--accent); }
  .dlayer__diagram.is-played .dlayer__line { transform: scaleY(1); }
  .dlayer__arrow {
    right: -5.5px;
    top: auto;
    bottom: -2px;
    border-left: 5.5px solid transparent;
    border-right: 5.5px solid transparent;
    border-top: 9px solid var(--accent);
    border-bottom: none;
  }
  .dlayer__layer { flex: 0 0 auto; width: 100%; max-width: 420px; flex-direction: column; padding: 24px; }
  .dlayer__gate { flex: 0 0 auto; flex-direction: row; padding: 10px 14px; gap: 10px; margin-top: 16px; }
  .dlayer__gate-label br { display: none; }
}

@media (max-width: 768px) {
  :root { --nav-h: 60px; }

  .container { padding: 0 20px; }

  .nav-inner {
    padding: 0 20px;
    gap: 12px;
  }

  .nav-cta { display: none; }
  .nav-toggle {
    display: flex;
    margin-left: 0;
  }

  .nav-toggles {
    margin-left: auto;
    gap: 6px;
  }

  /* Keep nav above the drawer when not open */
  .nav {
    z-index: 1000;
  }

  .hero { padding: calc(var(--nav-h) + 140px) 0 60px; }

  .hero-vanta {
    width: 100%;
    top: -20%;
    left: 0;
    right: 0;
    bottom: 0;
    height: 120%;
    -webkit-mask-image: linear-gradient(to bottom, black 0%, black 30%, rgba(0,0,0,0.3) 55%, transparent 75%);
    mask-image: linear-gradient(to bottom, black 0%, black 30%, rgba(0,0,0,0.3) 55%, transparent 75%);
  }

  .cta-vanta {
    -webkit-mask-image: radial-gradient(ellipse at center, transparent 0%, transparent 35%, rgba(0,0,0,0.3) 55%, rgba(0,0,0,0.7) 75%, black 95%);
    mask-image: radial-gradient(ellipse at center, transparent 0%, transparent 35%, rgba(0,0,0,0.3) 55%, rgba(0,0,0,0.7) 75%, black 95%);
  }

  .hero-stats {
    flex-direction: column;
    padding: 24px;
    gap: 20px;
  }
  .stat { padding: 0; }
  .stat-divider { width: 100%; height: 1px; }

  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { text-align: center; justify-content: center; }

  .testimonials-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }

  .section-header { margin-bottom: 40px; }
  .services, .work, .process, .about, .contact-cta, .testimonials { padding: 80px 0; }

  .about-team { order: -1; }
  .problem-grid { grid-template-columns: 1fr; gap: 40px; }
  .proof-cards { grid-template-columns: 1fr; }
  .disq-turn { flex-direction: column; gap: 8px; }
  .hero-email-cta { margin: 32px 0 0; }
  .email-input-wrap { flex-direction: column; border-radius: var(--radius-lg); }
  .email-input { border-right: none; border-bottom: 1px solid var(--border); border-radius: var(--radius-lg) var(--radius-lg) 0 0; text-align: center; }
  .email-submit { border-radius: 0 0 var(--radius-lg) var(--radius-lg); text-align: center; justify-content: center; }
}

/* ─────────────────────────────────────────────────────────────
   Shared FAQ accordion (Phase-2 AEO/SEO work, 2026-06-09)

   Originally lived in pricing.css for the pricing page's FAQ
   section. Promoted to styles.css so it can be reused on
   /services and /contact (and any future page that needs an
   answer-engine-targeted Q&A block).

   Pages compose a section like:
     <section class="<page>-faq faq-section">
       <div class="container">
         <div class="section-header">…</div>
         <div class="faq-list">
           <details class="faq-item">
             <summary class="faq-item__q">Question</summary>
             <p class="faq-item__a">Answer</p>
           </details>
         </div>
       </div>
     </section>
   The page MUST also include a matching <script type="application/
   ld+json"> FAQPage block in <head>, mirroring the visible Q&As so
   Google and LLM crawlers can extract the structured pairs.
───────────────────────────────────────────────────────────────── */
.faq-section {
  padding: 100px 0;
  border-top: 1px solid var(--border);
}
.faq-list {
  max-width: 720px;
}
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-item__q {
  padding: 20px 0;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.faq-item__q::-webkit-details-marker {
  display: none;
}
.faq-item__q::after {
  content: '+';
  font-family: var(--mono);
  font-size: 18px;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.faq-item[open] .faq-item__q::after {
  content: '−';
  color: var(--accent);
}
.faq-item__a {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  padding: 0 0 20px;
}
@media (max-width: 768px) {
  .faq-section { padding: 64px 0; }
}

/* ─────────────────────────────────────────────────────────────
   Services nav dropdown — glassmorphic (2026-06)
   CSS-only: opens on :hover / :focus-within (keyboard tabbing
   through the items opens it; top-level "Services" stays a real
   link). Hidden in the ≤1100px drawer where the flat link remains.
───────────────────────────────────────────────────────────────── */
.nav-item--dropdown { position: relative; }
.nav-item--dropdown > a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.nav-item--dropdown .nav-caret {
  transition: transform var(--duration-base) var(--ease-smooth);
  opacity: 0.6;
}
.nav-item--dropdown:hover .nav-caret,
.nav-item--dropdown:focus-within .nav-caret,
.nav-item--dropdown.is-open .nav-caret { transform: rotate(180deg); opacity: 1; }

.nav-dropdown {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  min-width: 360px;
  padding: 8px;
  border-radius: var(--radius-lg);
  /* Solid surface (glassmorphic pass was cut — owner call 2026-06).
     Stacked layout: 16:9 capsule banner on top (the service thumbnails
     are 16:9 landscape), service items below. */
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  box-shadow:
    0 18px 50px -16px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.03) inset;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.18s var(--ease-smooth),
    transform 0.18s var(--ease-smooth),
    visibility 0.18s;
  z-index: 1000;
}
/* Invisible bridge across the 14px gap so the hover doesn't drop
   while the cursor travels from the link to the panel. */
.nav-dropdown::before {
  content: '';
  position: absolute;
  top: -14px; left: 0; right: 0; height: 14px;
}
.nav-item--dropdown:hover .nav-dropdown,
.nav-item--dropdown:focus-within .nav-dropdown,
.nav-item--dropdown.is-open .nav-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown__media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
}
.nav-dropdown__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity var(--duration-base) var(--ease-smooth);
}
.nav-dropdown__list { flex: 1; min-width: 0; }
.nav-dropdown__item {
  display: block;
  padding: 10px 12px;
  border-radius: var(--radius);
  text-decoration: none;
  transition: background var(--duration-fast) var(--ease-smooth);
}
.nav-dropdown__item:hover { background: var(--accent-dim); }
.nav-dropdown__title {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
}
.nav-dropdown__item:hover .nav-dropdown__title { color: var(--accent); }
.nav-dropdown__desc {
  /* 2026-06: owner trialing a titles-only menu — descs hidden, markup kept.
     To restore: swap display back to block. */
  display: none;
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
  line-height: 1.45;
}
/* Footer CTA uses the sitewide control-pill standard (same UI as the
   blog Newest/Oldest toggles — owner call 2026-06-10: this is the house
   style for buttons/toggles/controls going forward). */
.nav-dropdown__footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 6px;
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: transparent;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  transition: background var(--duration-base) var(--ease-smooth),
              color var(--duration-base) var(--ease-smooth),
              box-shadow var(--duration-base) var(--ease-smooth);
}
.nav-dropdown__footer:hover {
  background: var(--bg-card);
  color: var(--text);
  box-shadow: 0 0 0 1px var(--border);
}

@media (max-width: 1100px) {
  .nav-dropdown,
  .nav-item--dropdown .nav-caret { display: none; }
}
