/* ============================================
   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;

  --text:        #ede9e0;
  --text-muted:  #6b6b5e;
  --text-dim:    #3a3a30;

  --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;

  --text:        #1a1814;
  --text-muted:  #6b6560;
  --text-dim:    #b0aa9f;

  --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 ============ */

.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;
  padding: 12px 24px;
  border-radius: var(--radius);
  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 32px;
  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.2s, background 0.2s;
}

.nav.scrolled {
  background: var(--nav-blur-bg);
  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;
}

.hero-vanta {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 60%;
  z-index: 0;
  -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;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 500px;
  background: radial-gradient(ellipse at center, rgba(201, 166, 96, 0.07) 0%, transparent 70%);
  pointer-events: none;
}

.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;
}

.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;
}
.reels__viewport::-webkit-scrollbar { display: none; }

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

/* ── Tile (anchor) ──────────────────────────────────────────── */
.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);
}
.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;
}
.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;
}

/* ── 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 ============ */

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

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.pillar {
  padding: var(--space-2xl);
  border-right: 1px solid var(--border);
  transition: background var(--duration-base) var(--ease-smooth);
}

.pillar:last-child { border-right: none; }

.pillar:hover { background: var(--bg-surface); }

.pillar-icon {
  font-size: 20px;
  color: var(--accent);
  margin-bottom: 16px;
}

.pillar h3 {
  font-size: clamp(16px, 1.2vw, 18px);
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.pillar p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ============ SERVICES ============ */

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

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.service-card {
  background: var(--bg-card);
  padding: var(--space-2xl);
  transition: background var(--duration-base) var(--ease-smooth);
  display: flex;
  flex-direction: column;
}

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

.service-number {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 24px;
}

.service-title {
  font-size: 22px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

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

.service-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 32px;
  flex: 1;
}

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

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

.service-tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--accent);
  padding: 8px 12px;
  border: 1px solid var(--accent-dim);
  border-radius: var(--radius);
  background: var(--accent-glow);
  display: inline-block;
  margin-top: auto;
}

/* ============ 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-h);
  z-index: 10;
  background: var(--nav-blur-bg);
  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 {
  display: grid;
  grid-template-columns: 1fr 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: 400px;
  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);
  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);
  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 {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.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 {
  display: flex;
  gap: 28px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.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;
}

.hp-work__card-info h4 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.02em;
}

.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: 260px;
  }
  /* 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 h4 {
  font-size: clamp(16px, 1.2vw, 18px);
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.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;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}

.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);
  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) {
  .services-grid { grid-template-columns: 1fr; }

  /* Accordion behavior for service cards on tablet/mobile */
  .service-card {
    padding: 0;
    cursor: pointer;
    position: relative;
  }
  .service-card::after {
    content: '+';
    position: absolute;
    top: 28px;
    right: 32px;
    font-size: 24px;
    font-weight: 300;
    color: var(--accent);
    line-height: 1;
    transition: transform 0.3s ease;
  }
  .service-card.is-open::after {
    transform: rotate(45deg);
  }
  .service-number {
    padding: 28px 64px 0 32px;
    margin-bottom: 12px;
  }
  .service-title {
    padding: 0 64px 28px 32px;
    margin-bottom: 0;
  }
  .service-desc,
  .service-list {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    margin-bottom: 0;
    padding: 0 32px;
    transition: max-height 0.4s ease, opacity 0.3s ease, padding 0.3s ease, margin-bottom 0.3s ease;
  }
  .service-tag {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    margin: 0 32px;
    padding: 0;
    border: 0;
    transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease, margin 0.3s ease;
  }
  .service-card.is-open .service-desc {
    max-height: 200px;
    opacity: 1;
    margin-bottom: 20px;
  }
  .service-card.is-open .service-list {
    max-height: 400px;
    opacity: 1;
    margin-bottom: 24px;
  }
  .service-card.is-open .service-tag {
    max-height: 60px;
    opacity: 1;
    padding: 8px 12px;
    border: 1px solid var(--accent-dim);
    margin-bottom: 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%; }
  /* Hide pillars section on tablet/mobile - redundant with services below */
  .pillars { 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; }
}
