/* ══════════════════════════════════════════════════════════
   ZL Portfolio v5 — Style
   Z Design System · Gold primary · Fira Sans
   ══════════════════════════════════════════════════════════ */

/* ── TOKENS ────────────────────────────────────────────────── */
:root {
  /* Brand gold (Z DS) */
  --gold-5:  #FFFDE8;
  --gold-50: #F5B800;
  --gold-60: #D49D00;
  --gold-70: #A87A00;
  --gold-50-a20: rgba(245,184,0,0.20);

  /* Photon grey */
  --grey-10: #f9f9fa;
  --grey-20: #ededf0;
  --grey-30: #d7d7db;
  --grey-40: #b1b1b3;
  --grey-50: #737373;
  --grey-60: #4a4a4f;
  --grey-70: #38383d;
  --grey-80: #2a2a2e;
  --grey-90: #0c0c0d;

  /* Semantic surfaces */
  --bg:       #fafafa;
  --bg-alt:   #f2f2f4;
  --bg-dark:  #0c0c0d;
  --bg-dark2: #131316;

  /* Text */
  --ink:      #0c0c0d;
  --ink-mid:  #4a4a4f;
  --ink-faint:#737373;
  --ink-light:#b1b1b3;

  /* UI */
  --border:     rgba(12,12,13,.09);
  --border-mid: rgba(12,12,13,.15);
  --border-dark: rgba(255,255,255,.08);

  /* Typography */
  --sans: "Fira Sans", "Helvetica Neue", Arial, sans-serif;
  --mono: "Fira Mono", "Courier New", monospace;

  /* Layout */
  --max:   979px;
  --pad-x: clamp(24px, 5vw, 80px);

  /* Motion */
  --ease:        cubic-bezier(.4,0,.2,1);
  --ease-out:    cubic-bezier(0,0,.2,1);
  --ease-spring: cubic-bezier(.07,.95,0,1);

  /* Shadows */
  --shadow-sm: 0 1px 4px rgba(12,12,13,.10);
  --shadow-md: 0 4px 16px rgba(12,12,13,.12);
  --shadow-lg: 0 8px 32px rgba(12,12,13,.16);
  --shadow-brand: 0 4px 24px rgba(245,184,0,.28);

  /* Semantic — error */
  --error:    #C4433D;
  --error-bg: rgba(196,67,61,.08);
}

/* ── EMAIL ME BUTTON — copy interaction ────────────────────── */
.email-me-btn {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  position: relative;
  overflow: visible;
  transition: transform .25s var(--ease-spring),
              background .25s var(--ease);
}
.email-me-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 14px; height: 14px;
  position: relative;
  flex-shrink: 0;
}
.email-me-icon svg {
  position: absolute; inset: 0; margin:auto;
  transition: opacity .25s var(--ease),
              transform .35s var(--ease-spring);
}
.email-me-icon .ic-check {
  opacity: 0; transform: scale(.4) rotate(-20deg);
}
.email-me-btn.is-copied .ic-copy {
  opacity: 0; transform: scale(.4) translateY(-6px);
}
.email-me-btn.is-copied .ic-check {
  opacity: 1; transform: scale(1) rotate(0);
}
.email-me-btn.is-copied {
  animation: emailPop .55s var(--ease-spring);
}
.email-me-btn.is-copied::after {
  content: '';
  position: absolute; inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at 50% 50%,
    rgba(245,184,0,.45) 0%, rgba(245,184,0,0) 60%);
  animation: emailBurst .6s ease-out forwards;
  pointer-events: none;
}
@keyframes emailPop {
  0%   { transform: scale(1); }
  30%  { transform: scale(1.06); }
  55%  { transform: scale(.97); }
  100% { transform: scale(1); }
}
@keyframes emailBurst {
  0%   { opacity: 1; transform: scale(.6); }
  100% { opacity: 0; transform: scale(2.4); }
}
.email-confetti {
  position: absolute; top: 50%; left: 50%;
  width: var(--sz, 8px); height: var(--sz, 8px);
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  z-index: 100;
}
.email-me-btn.is-copied {
  overflow: visible;
}
.email-me-btn.is-copied .email-confetti {
  animation: confettiFly .8s var(--ease-spring) forwards;
}
@keyframes confettiFly {
  0%   { opacity: 1; transform: translate(-50%,-50%) scale(1.2); }
  60%  { opacity: 1; }
  100% { opacity: 0; transform: translate(calc(-50% + var(--cx,0px)), calc(-50% + var(--cy,0px))) scale(.5); }
}

/* ── RESET ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin:0; padding:0; }
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  padding-top:56px;
}
img { display: block; width: 100%; height: auto; object-fit: cover; }
a { color: inherit; text-decoration: none; }

/* ── NAV ───────────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: 56px;
  background: rgba(250,250,250,.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: border-color .2s var(--ease);
}
.nav-inner {
  width: 100%; max-width: var(--max); margin:0 auto;
  height: 100%;
  display: flex; align-items: center; justify-content: space-between;
  box-sizing: border-box;
}
.nav-logo {
  font-size: 12px; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink);
  transition: color .2s;
  display: flex; align-items: center; gap: 8px;
}
.nav-logo-circle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: transparent;
  flex-shrink: 0;
  overflow: hidden;
  transition: opacity .2s;
}
[data-theme="dark"] .nav-logo-img {
  filter: invert(1) hue-rotate(180deg);
}
.nav-logo-img {
  width: 18px; height: 18px;
  object-fit: contain;
  display: block;
}
.nav-logo:hover { color: var(--gold-70); }
.nav-links {
  display: flex; align-items: center; gap: 32px; list-style: none;
}
.nav-links > li > a {
  font-size: 13px; font-weight: 400;
  color: var(--ink-mid);
  transition: color .15s;
}
.nav-links > li > a:hover { color: var(--ink); }

/* Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown > button {
  background: none; border: none; cursor: pointer;
  font-family: var(--sans); font-size: 13px; font-weight: 400;
  color: var(--ink-mid);
  display: flex; align-items: center; gap: 8px;
  padding:0; transition: color .15s;
}
.nav-dropdown > button:hover { color: var(--ink); }
.nav-dropdown > button::after {
  content: '';
  width: 0; height: 0;
  border-left: 3px solid transparent;
  border-right: 3px solid transparent;
  border-top: 4px solid currentColor;
  opacity: .5;
  transition: transform .2s var(--ease), opacity .2s;
}
.nav-dropdown.open > button { color: var(--ink); }
.nav-dropdown.open > button::after { transform: rotate(180deg); opacity: 1; }

.dropdown-menu {
  display: none;
  position: absolute; top: calc(100% + 14px); left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border: 1px solid var(--border-mid);
  border-radius: 8px;
  padding:8px;
  min-width: 290px;
  max-width: 90vw;
  box-shadow: var(--shadow-lg);
}
.nav-dropdown.open .dropdown-menu { display: block; animation: menu-in .18s var(--ease-out); }
@keyframes menu-in {
  from { opacity: 0; transform: translateX(-50%) translateY(-6px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}
.dropdown-menu a {
  display: flex; flex-direction: column; gap: 4px;
  padding:8px 16px;
  font-size: 16px; font-weight: 500; color: var(--ink);
  border-radius: 5px;
  transition: background .1s, color .1s;
}
.dropdown-menu a:hover { background: var(--grey-10); color: var(--ink); }
.dropdown-menu a span { font-size: 15px; color: var(--ink-mid); }

.nav-cta {
  font-size: 12px; font-weight: 600;
  letter-spacing: .04em;
  background: var(--ink); color: var(--bg) !important;
  border-radius: 999px;
  padding:8px 24px;
  transition: background .2s, transform .15s;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--grey-70); transform: translateY(-1px); }

/* ── HAMBURGER ─────────────────────────────────────────────── */
.nav-hamburger {
  display: none;
  flex-direction: column; justify-content: center; align-items: center;
  gap: 4px;
  width: 36px; height: 36px;
  background: none; border: none; cursor: pointer;
  padding:8px;
  border-radius: 6px;
  transition: background .15s;
  flex-shrink: 0;
  z-index: 101;
}
.nav-hamburger:hover { background: var(--grey-20); }
[data-theme="dark"] .nav-hamburger:hover { background: rgba(255,255,255,.08); }
.nav-hamburger-bar {
  width: 20px; height: 1.5px;
  background: var(--ink);
  border-radius: 2px;
  transform-origin: center;
  transition: transform .3s var(--ease-spring), opacity .2s, width .3s var(--ease);
}
.nav-hamburger.is-open .nav-hamburger-bar:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger.is-open .nav-hamburger-bar:nth-child(2) { opacity: 0; width: 0; }
.nav-hamburger.is-open .nav-hamburger-bar:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ── MOBILE MENU PANEL ─────────────────────────────────────── */
.nav-mobile {
  display: none;
  position: fixed;
  top: 56px; left: 0; right: 0;
  z-index: 99;
  background: rgba(250,250,250,.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-mid);
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: transform .3s var(--ease-spring), opacity .25s var(--ease);
  max-height: calc(100vh - 56px);
  overflow-y: auto;
}
[data-theme="dark"] .nav-mobile {
  background: rgba(15,15,18,.97);
  border-bottom-color: rgba(255,255,255,.07);
}
.nav-mobile.is-open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: all;
}
.nav-mobile-inner {
  padding:16px var(--pad-x) 32px;
  max-width: var(--max);
  margin:0 auto;
  display: flex; flex-direction: column; gap: 4px;
}
.nav-mobile-label {
  font-size: 10px; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--gold-60);
  padding:16px 16px 8px;
}
.nav-mobile-link {
  display: flex; flex-direction: column; gap: 4px;
  padding:16px;
  border-radius: 8px;
  font-size: 15px; font-weight: 500;
  color: var(--ink);
  transition: background .12s, color .12s;
  min-height: 48px; justify-content: center;
}
.nav-mobile-link span {
  font-size: 11px; font-weight: 400;
  color: var(--ink-faint);
}
.nav-mobile-link:hover { background: var(--grey-10); }
[data-theme="dark"] .nav-mobile-link:hover { background: rgba(255,255,255,.05); }
.nav-mobile-divider {
  height: 1px; background: var(--border);
  margin:8px 0;
}
.nav-mobile-actions {
  display: flex; align-items: center; justify-content: space-between;
  padding:16px;
  gap: 12px;
}
.nav-mobile-email {
  flex: 1;
  text-align: center;
  justify-content: center;
}

/* ── RESPONSIVE — hide/show ────────────────────────────────── */
@media (max-width: 1024px) {
  .nav-inner { padding:0 var(--pad-x); }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .nav-mobile { display: block; }
  .dropdown-menu {
    min-width: 280px;
    max-width: 90vw;
  }
  .dropdown-menu a {
    font-size: 16px;
  }
  .dropdown-menu a span {
    font-size: 15px;
  }
}

/* ── HERO (dark) ───────────────────────────────────────────── */
.hero {
  --hero-bg-color: #0F0F0F;
  background-color: var(--hero-bg-color);
  background-image: url('images/IndexHero01.png');
  background-position: right center;
  background-size: auto;
  background-repeat: no-repeat;
  background-attachment: scroll;
  position: relative;
  overflow: hidden;
  min-height: 70vh;
  display: flex;
  align-items: center;
  padding:0;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: none;
  pointer-events: none;
  z-index: 1;
}
.hero-inner {
  width: 100%;
  max-width: var(--max);
  margin:0 auto;
  padding:0 var(--pad-x);
  position: relative;
  box-sizing: border-box;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  min-height: 70vh;
}
.hero-photo {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  height: 100%;
  min-height: 70vh;
}
.hero-photo-img {
  height: 100%;
  max-height: 70vh;
  width: auto;
  object-fit: contain;
  object-position: bottom;
  display: block;
}
.hero-text {
  max-width: 580px;
}
.hero-photo {
  display: none;
}
.hero-eyebrow {
  display: flex; align-items: center; gap: 12px;
  font-size: 15px; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--gold-50);
  margin-bottom:32px;
}
.hero-eyebrow::before {
  content: '';
  width: 32px; height: 1px; background: var(--gold-50); flex-shrink: 0;
}
.hero-headline {
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.03em;
  color: #fff;
  margin-bottom:24px;
}
.hero-headline em {
  font-style: normal;
  color: var(--gold-50);
}
.hero-sub {
  font-size: 16px;
  color: var(--grey-40);
  line-height: 1.6;
  margin-bottom:32px;
  max-width: 520px;
  text-wrap: pretty;
}
.hero-actions {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}

.hero-slash { display: none; }
.hero-photo-frame { display: none; }
.hero-photo-badge { display: none; }

@media (max-width: 900px) {
  .hero-headline { font-size: clamp(36px, 5.5vw, 56px); }
}
@media (max-width: 600px) {
  .hero-headline { font-size: clamp(28px, 5vw, 40px); }
  .hero-inner { padding:64px var(--pad-x) !important; min-height: 80vh; }
}

.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 16px; font-weight: 600; letter-spacing: .02em;
  background: var(--gold-50); color: #000;
  border-radius: 8px; padding:0 24px; height: 46px; box-sizing: border-box;
  white-space: nowrap;
  position: relative; overflow: hidden; isolation: isolate;
  transition: box-shadow .3s var(--ease), transform .3s var(--ease);
}
.btn-primary::after {
  content: '';
  position: absolute; top: -20%; left: -30%; width: 24%; height: 140%;
  background: linear-gradient(115deg, transparent, rgba(255,255,255,.65), transparent);
  transform: skewX(-18deg) translateX(0);
  transition: transform .7s cubic-bezier(.2,.7,.2,1);
  pointer-events: none;
}
.btn-primary:hover {
  box-shadow: var(--shadow-brand);
}
.btn-primary:hover::after { transform: skewX(-18deg) translateX(560%); }
.btn-secondary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 16px; font-weight: 600; letter-spacing: .02em;
  background: var(--grey-20); color: var(--ink);
  border-radius: 8px; padding:0 24px; height: 46px; box-sizing: border-box;
  white-space: nowrap;
  border: 1px solid var(--gold-50);
  position: relative; overflow: hidden; isolation: isolate;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease), transform .3s var(--ease);
}
.btn-secondary::after {
  content: '';
  position: absolute; top: -20%; left: -30%; width: 24%; height: 140%;
  background: linear-gradient(115deg, transparent, rgba(245,184,0,.5), transparent);
  transform: skewX(-18deg) translateX(0);
  transition: transform .7s cubic-bezier(.2,.7,.2,1);
  pointer-events: none;
}
.btn-secondary:hover {
  border-color: var(--gold-60);
  box-shadow: 0 6px 20px rgba(245,184,0,.2);
}
.btn-secondary:hover::after { transform: skewX(-18deg) translateX(560%); }
[data-theme="dark"] .btn-secondary { background: rgba(255,255,255,.08); color: var(--ink); }
[data-theme="dark"] .btn-secondary:hover { background: rgba(255,255,255,.08); }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 16px; font-weight: 400;
  color: var(--grey-40);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 999px; padding:8px 24px;
  transition: color .2s, border-color .2s;
}
.btn-ghost:hover { color: #fff; border-color: rgba(255,255,255,.35); }

/* Hero photo */
.hero-photo {
  position: relative;
}
.hero-photo-frame {
  border-radius: 6px; overflow: hidden;
  border: 1px solid rgba(245,184,0,.25);
  box-shadow: 0 0 0 6px rgba(245,184,0,.06);
  aspect-ratio: 4/5;
  background: var(--bg-dark2);
  display: flex; align-items: center; justify-content: center;
}
.hero-photo-frame img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo-ph {
  font-size: 64px; font-weight: 700;
  letter-spacing: -.04em;
  color: rgba(245,184,0,.18);
  user-select: none;
}
.hero-photo-badge {
  position: absolute; bottom: -16px; left: -16px;
  background: var(--gold-50); color: #000;
  font-size: 11px; font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase;
  padding:8px 16px; border-radius: 4px;
  box-shadow: var(--shadow-md);
}

/* ── TRUST STRIP ───────────────────────────────────────────── */
.trust {
  border-bottom: 1px solid var(--border);
  background: #fff;
  overflow: hidden;
}
.trust-inner {
  width: 100%;
  max-width: var(--max);
  margin:0 auto;
  padding:24px var(--pad-x);
  display: flex; align-items: center; gap: 0; flex-wrap: wrap;
  box-sizing: border-box;
}
.trust-label {
  font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-faint); margin-right:32px; white-space: nowrap; flex-shrink: 0;
}
.trust-items {
  display: flex; flex-wrap: wrap; align-items: center; gap: 32px;
}
.trust-item {
  font-size: 13px; font-weight: 500;
  color: var(--ink-light); letter-spacing: .01em;
  transition: color .2s;
}
.trust-item:hover { color: var(--ink-mid); }
.trust-dot { color: var(--grey-30); }

/* ── VALUE PROPS ───────────────────────────────────────────── */
.props {
  background: var(--bg);
  padding:80px var(--pad-x);
}
.props-inner {
  width: 100%;
  max-width: var(--max);
  margin:0 auto;
  box-sizing: border-box;
}
.props-grid {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 0;
  border: 1px solid var(--border-mid);
  border-radius: 8px; overflow: hidden;
}
.prop {
  padding:40px 32px;
  background: #fff;
  border-right: 1px solid var(--border);
  transition: background .2s;
  position: relative;
}
.prop:last-child { border-right: none; }
.prop::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 2px; background: var(--gold-50);
  transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--ease-spring);
}
.prop:hover { background: var(--grey-10); }
.prop:hover::before { transform: scaleX(1); }
.prop-num {
  font-size: 15px; font-weight: 400; letter-spacing: .12em;
  text-transform: uppercase; color: var(--gold-60);
  margin-bottom:16px; display: block;
}
.prop-title {
  font-size: 18px; font-weight: 600;
  color: var(--ink); margin-bottom:16px; line-height: 1.3;
}
.prop-body { font-size: 16px; color: var(--ink-mid); line-height: 1.6; text-wrap: pretty; }

/* ── STATS (dark band) ─────────────────────────────────────── */
.stats {
  background: var(--bg-dark);
  padding:72px var(--pad-x);
}
.stats-inner {
  width: 100%;
  max-width: var(--max);
  margin:0 auto;
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 0;
  box-sizing: border-box;
}
.stat {
  padding:0 40px;
  border-right: 1px solid var(--border-dark);
  text-align: center;
}
.stat:first-child { padding-left:0; text-align: left; }
.stat:last-child { padding-right:0; border-right: none; text-align: right; }
.stat-value {
  font-size: clamp(48px,6vw,80px);
  font-weight: 700;
  letter-spacing: -.04em;
  color: var(--gold-50);
  line-height: 1; margin-bottom:8px;
  display: flex; align-items: baseline; gap: 4px;
}
.stat:first-child .stat-value { justify-content: flex-start; }
.stat:last-child .stat-value  { justify-content: flex-end; }
.stat-value sup { font-size: .45em; font-weight: 500; margin-left:8px; }
.stat-label { font-size: 13px; color: var(--grey-40); letter-spacing: .01em; }

/* ── CURRENT ROLE ──────────────────────────────────────────── */
.current-role {
  background: var(--bg);
  padding:80px var(--pad-x);
}
.current-role-inner {
  width: 100%;
  max-width: var(--max);
  margin:0 auto;
  box-sizing: border-box;
}
.cr-card {
  background: #fff;
  border: 1px solid var(--border-mid);
  border-radius: 8px;
  padding:40px 40px;
  display: grid; grid-template-columns: 220px 1px 1fr;
  gap: 40px; align-items: start;
}
.cr-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 10px; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: var(--gold-70);
  margin-bottom:16px;
}
.cr-badge::before {
  content: '';
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold-50); flex-shrink: 0;
  box-shadow: 0 0 0 3px var(--gold-50-a20);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%,100% { box-shadow: 0 0 0 3px var(--gold-50-a20); }
  50%      { box-shadow: 0 0 0 6px transparent; }
}
.cr-company { font-size: 20px; font-weight: 600; color: var(--ink); margin-bottom:8px; }
.cr-role { font-size: 13px; color: var(--ink-faint); }
.cr-divider { background: var(--border-mid); align-self: stretch; }
.cr-desc { font-size: 15px; color: var(--ink-mid); line-height: 1.78; text-wrap: pretty; }

/* ── WORK SECTION ──────────────────────────────────────────── */
.work {
  background: var(--bg);
  padding:0 var(--pad-x) 96px;
}
.work-inner {
  width: 100%;
  max-width: var(--max);
  margin:0 auto;
  box-sizing: border-box;
  display: flex; flex-direction: column; gap: 32px;
}
.section-eyebrow {
  font-size: 12px; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-faint);
  padding:8px 0 16px;
  display: block; border-top: 1px solid var(--border-mid);
}

.work-card {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 64px; align-items: center;
  padding:64px 0;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.work-card--card { border-bottom: none; }
.work-card.flip { direction: rtl; }
.work-card.flip > * { direction: ltr; }
.work-card--card {
  background: #fff;
  border: 1px solid var(--border-mid);
  border-radius: 8px;
  padding:40px 0 40px 40px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .3s var(--ease);
  overflow: hidden;
  align-items: stretch;
}
.work-card--card:hover { box-shadow: var(--shadow-md); }
.work-card--card .wc-image {
  align-self: stretch;
  height: calc(100% + 80px);
  margin:-40px 0 -40px 0;
  border-radius: 0 7px 7px 0;
}
.work-card--card .wc-image img { height: 100%; }
.work-card--card.flip { padding:40px 64px 40px 0; gap: 40px; }
.work-card--card.flip .wc-image { border-radius: 7px 0 0 7px; }
.work-card--card.flip .wc-image { margin:-40px 0; }
[data-theme="dark"] .work-card--card { background: #18181d; }



.wc-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 15px; font-weight: 400; letter-spacing: .12em;
  text-transform: uppercase; color: var(--gold-70);
  margin-bottom:16px;
}
.wc-tag::before {
  content: '';
  width: 20px; height: 1px; background: var(--gold-50); flex-shrink: 0;
}
.wc-title {
  font-size: clamp(22px, 2.6vw, 32px);
  font-weight: 600; color: var(--ink);
  line-height: 1.18; letter-spacing: -.02em;
  margin-bottom:16px;
}
.wc-desc {
  font-size: 16px; color: var(--ink-mid);
  line-height: 1.75; margin-bottom:24px; text-wrap: pretty;
}
.wc-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom:32px; }
.chip {
  font-size: 12px; letter-spacing: .02em;
  color: var(--ink-mid); background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 999px; padding: 8px 8px;
  height: 26px; display: inline-flex; align-items: center; justify-content: center;
}

.wc-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 15px; font-weight: 600;
  color: var(--ink);
  position: relative;
}
.wc-link::after {
  content: '→';
  transition: transform .2s var(--ease-spring);
}
.wc-link::before {
  content: '';
  position: absolute; bottom: -2px; left: 0;
  width: 0; height: 1.5px;
  background: var(--gold-50);
  transition: width .25s var(--ease-out);
}
.wc-link:hover::before { width: 100%; }
.wc-link:hover::after  { transform: translateX(4px); }

.wc-image {
  border-radius: 6px; overflow: hidden;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  position: relative;
  transition: box-shadow .3s var(--ease);
}
.wc-image:hover { box-shadow: var(--shadow-lg); }
.wc-image img { aspect-ratio: 4/3; width: 100%; transition: transform .4s var(--ease); }
.wc-image:hover img { transform: scale(1.03); }
.wc-ph {
  aspect-ratio: 4/3;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-light); font-size: 12px; letter-spacing: .05em;
}
.wc-ph-lined {
  position: relative; overflow: hidden;
}

/* ── WORK CARD METRICS ─────────────────────────────────────── */
.wc-metrics {
  display: flex;
  background: var(--bg-alt);
  border-radius: 8px;
  padding:8px;
  margin-bottom:24px;
}
.wc-metric-item {
  flex: 1;
  display: flex; flex-direction: column; justify-content: center; gap: 4px;
  padding:16px 16px;
  border-right: 1px solid var(--border);
  transition: background .2s var(--ease);
  border-radius: 6px;
}
.wc-metric-item:last-child { border-right: none; }
.wc-metric-item:hover { background: var(--grey-20); }
[data-theme="dark"] .wc-metric-item:hover { background: rgba(255,255,255,.05); }
.wc-metric-val {
  font-size: 18px;
  font-weight: 700; color: var(--ink);
  letter-spacing: -.02em; line-height: 1.15;
  font-variant-numeric: tabular-nums;
}
.wc-metric-val sup { font-size: .5em; font-weight: 500; margin-left:8px; }
.wc-metric-sm { font-size: 14px !important; line-height: 1.25; }
.wc-metric-lbl {
  font-size: 10px; font-weight: 500;
  letter-spacing: .07em; text-transform: uppercase;
  color: var(--ink-faint);
}
[data-theme="dark"] .wc-metrics { background: rgba(255,255,255,.05); }
[data-theme="dark"] .wc-metric-item { border-color: rgba(255,255,255,.08); }
[data-theme="dark"] .wc-metric-item:hover { background: rgba(255,255,255,.06); }

/* ── FOOTER ────────────────────────────────────────────────── */
.footer {
  background: var(--bg-dark);
  padding:56px var(--pad-x) 40px;
}
.footer-inner {
  width: 100%;
  max-width: var(--max);
  margin:0 auto;
  box-sizing: border-box;
}
.footer-top {
  display: flex; justify-content: space-between; align-items: flex-start;
  padding-bottom:48px; margin-bottom:32px;
  border-bottom: 1px solid var(--border-dark);
}
.footer-name {
  font-size: 12px; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: #E6E4DC; margin-bottom:8px;
}
.footer-title { font-size: 15px; color: var(--gold-50); }
.footer-links { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.footer-links a { font-size: 15px; color: var(--grey-40); transition: color .2s; }
.footer-links a:hover { color: #E6E4DC; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
}
.footer-copy { font-size: 15px; color: var(--grey-40); }
.footer-tagline {
  font-size: 15px; font-weight: 500; letter-spacing: .1em;
  text-transform: uppercase; color: var(--gold-70);
  animation: tagline-flash 7s ease-in-out infinite;
}
@keyframes tagline-flash {
  0%, 80%, 100% {
    color: var(--gold-70);
    text-shadow: none;
  }
  87% {
    color: var(--gold-50);
    text-shadow: 0 0 18px rgba(245, 184, 0, 0.35);
  }
  94% {
    color: var(--gold-70);
    text-shadow: none;
  }
}

/* ══════════════════════════════════════════════════════════
   CASE STUDY
   ══════════════════════════════════════════════════════════ */

/* Progress bar */
.cs-progress {
  position: fixed; top: 56px; left: 0; right: 0; z-index: 99;
  height: 2px; background: transparent;
}
.cs-progress-bar {
  height: 100%; width: 0;
  background: var(--gold-50);
  transition: width .1s linear;
}

/* Hero */
.cs-hero {
  background: var(--bg-dark);
  background-image: radial-gradient(rgba(245,184,0,.045) 1px, transparent 1px);
  background-size: 28px 28px;
  padding:96px var(--pad-x) 88px;
}
.cs-hero-inner {
  width: 100%;
  max-width: var(--max);
  margin:0 auto;
  box-sizing: border-box;
}
.cs-eyebrow {
  display: flex; align-items: center; gap: 12px;
  font-size: 13px; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--gold-50); margin-bottom:32px;
}
.cs-eyebrow::before {
  content: '';
  width: 28px; height: 1px; background: var(--gold-50); flex-shrink: 0;
}
.cs-title {
  font-size: clamp(36px, 5.5vw, 72px);
  font-weight: 700; letter-spacing: -.03em;
  color: #fff; line-height: 1.04;
  max-width: 820px; margin-bottom:24px;
}
.cs-intro {
  font-size: 16px; color: var(--grey-40);
  line-height: 1.72; max-width: 600px;
  margin-bottom:40px; text-wrap: pretty;
}
.cs-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom:64px; }
.cs-chip-dark {
  font-size: 13px; letter-spacing: .02em;
  color: var(--grey-40);
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px; padding: 8px 8px;
  height: 30px; display: inline-flex; align-items: center; justify-content: center;
}
.cs-hero-img {
  width: 100%; border-radius: 6px; overflow: hidden;
  background: var(--bg-dark2);
  border: 1px solid rgba(255,255,255,.08);
}
.cs-hero-img img { aspect-ratio: 16/7; width: 100%; }
.cs-hero-ph {
  aspect-ratio: 16/7;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.12); font-size: 13px; letter-spacing: .08em;
  text-transform: uppercase; font-weight: 500;
}

/* Meta strip */
.cs-meta {
  background: #fff; border-bottom: 1px solid var(--border);
}
.cs-meta-strip {
  width: 100%;
  max-width: var(--max);
  margin:0 auto;
  display: grid; grid-template-columns: repeat(4,1fr);
  box-sizing: border-box;
}
.cs-meta-item {
  padding:24px 24px 24px 24px;
  border-right: 1px solid var(--border);
}
.cs-meta-item:first-child { padding-left:var(--pad-x); }
.cs-meta-item:last-child { border-right: none; padding-right:var(--pad-x); }
.cs-meta-label {
  font-size: 15px; font-weight: 400; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-faint); margin-bottom:8px;
}
.cs-meta-value { font-size: 15px; font-weight: 400; color: var(--ink); }

/* Metrics */
.cs-metrics {
  background: var(--bg);
  padding:64px var(--pad-x);
}
.cs-metrics-inner {
  width: 100%;
  max-width: calc(var(--max) - 2 * var(--pad-x));
  margin:0 auto;
  box-sizing: border-box;
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 1px; background: var(--border-mid);
  border: 1px solid var(--border-mid); border-radius: 8px; overflow: hidden;
  box-sizing: border-box;
}
.metric {
  background: #fff; padding:32px 32px;
  position: relative; overflow: hidden;
}
.metric::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 2px; background: var(--gold-50);
}
.metric-label {
  font-size: 15px; font-weight: 400; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-faint); margin-bottom:16px;
}
.metric-value {
  font-size: 48px; font-weight: 700; letter-spacing: -.03em;
  color: var(--ink); line-height: 1; margin-bottom:8px;
}
.metric-value-sm { font-size: 28px; font-weight: 600; }
.metric-value sup { font-size: .45em; font-weight: 500; }
.metric-desc { font-size: 13px; color: var(--ink-mid); line-height: 1.6; text-wrap: pretty; }

/* Body */
.cs-body {
  width: 100%;
  max-width: var(--max);
  margin:0 auto;
  padding:0 var(--pad-x) 96px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}



.cs-sec-label {
  display: flex; align-items: center; gap: 16px;
  font-size: 12px; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-faint);
  margin-bottom:16px;
  padding-top:64px;
  border-top: 1px solid var(--border);
}
.cs-sec-label::after {
  content: '';
  flex: 1; height: 1px; background: var(--border);
}
.cs-sec-label:first-child { border-top: none; padding-top:0; }

.cs-h2 {
  font-size: clamp(22px,2.8vw,30px); font-weight: 600;
  color: var(--ink); line-height: 1.24;
  letter-spacing: -.02em; margin-bottom:24px;
  width: 100%; min-width: 0;
}
.cs-p {
  font-size: 16px; color: var(--ink-mid);
  line-height: 1.85; margin-bottom:24px; text-wrap: pretty;
  width: 100%; min-width: 0;
}
.cs-p:last-child { margin-bottom:0; }

.cs-glow {
  color: var(--gold-60); font-weight: 600;
  text-shadow: 0 0 12px var(--gold-50-a20), 0 0 24px rgba(245,184,0,.25);
  animation: glow-pulse 2.4s ease-in-out infinite;
}
@keyframes glow-pulse {
  0%, 100% { text-shadow: 0 0 8px var(--gold-50-a20), 0 0 16px rgba(245,184,0,.2); }
  50% { text-shadow: 0 0 16px rgba(245,184,0,.5), 0 0 32px rgba(245,184,0,.35); }
}
[data-theme="dark"] .cs-glow { color: var(--gold-50); }

/* Pull quote */
.cs-callout {
  margin:48px 0; padding:32px 40px;
  background: var(--gold-5);
  border-left: 3px solid var(--gold-50);
  border-radius: 0 6px 6px 0;
  position: relative;
}
.cs-callout::before {
  content: '\201C';
  position: absolute; top: -8px; left: 28px;
  font-size: 80px; font-weight: 700; line-height: 1;
  color: var(--gold-50); opacity: .35;
  font-family: Georgia, serif;
}
.cs-callout p {
  font-size: 18px; font-weight: 600;
  color: var(--ink); line-height: 1.5;
  letter-spacing: -.01em;
}

/* 2-col text */
.cs-text-2col {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 40px; margin:24px 0 32px;
}
.cs-text-2col-label {
  font-size: 10px; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: var(--gold-70);
  margin-bottom:16px; display: block;
}

/* Images */
.cs-img {
  width: 100%; border-radius: 6px; overflow: hidden;
  background: var(--bg-alt); border: 1px solid var(--border);
  margin:32px 0;
}
.cs-img img { width: 100%; }
.cs-img-ph {
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-light); font-size: 12px; letter-spacing: .06em;
  text-transform: uppercase; font-weight: 500;
}
.cs-img-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin:32px 0; }

/* Feature cards */
.cs-feature-grid {
  display: grid; grid-template-columns: repeat(2,1fr);
  gap: 1px; background: var(--border-mid);
  border: 1px solid var(--border-mid); border-radius: 8px; overflow: hidden;
  margin:32px 0;
}
.cs-feature-grid--3 { grid-template-columns: repeat(3,1fr); }
@media (max-width: 900px) { .cs-feature-grid--3 { grid-template-columns: 1fr; } }
.cs-feature-card {
  background: #fff; padding:32px 24px;
  transition: background .2s;
  position: relative;
}
.cs-feature-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 2px; background: var(--gold-50);
}
.cs-feature-card:hover { background: var(--grey-10); }
.cs-feature-num {
  font-size: 11px; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: var(--gold-60);
  margin-bottom:16px; display: block;
}
.cs-feature-title {
  font-size: 15px; font-weight: 600; color: var(--ink); margin-bottom:8px;
}
.cs-feature-desc { font-size: 16px; font-weight: 400; color: var(--ink-mid); line-height: 1.6; text-wrap: pretty; }
.cs-feature-card .cs-feature-h3 {
  font-size: 16px; font-weight: 600;
  color: var(--ink); line-height: 25px;
  letter-spacing: -.01em;
  margin-bottom:16px;
}

/* Full-width image */
.cs-full-img {
  width: 100%; background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin:56px 0; overflow: hidden;
}
.cs-full-img img { aspect-ratio: 16/6; width: 100%; }
.cs-full-ph {
  aspect-ratio: 16/6;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-light); font-size: 13px; letter-spacing: .08em; text-transform: uppercase;
}

/* Prev / Next */
.cs-next {
  border-top: 1px solid var(--border-mid);
  width: 100%;
  max-width: var(--max);
  margin:0 auto;
  padding:48px var(--pad-x);
  display: flex; align-items: center; justify-content: space-between;
  box-sizing: border-box;
}
.cs-next-label {
  font-size: 10px; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-faint); margin-bottom:8px;
}
.cs-next-link {
  font-size: 22px; font-weight: 600; letter-spacing: -.02em;
  color: var(--ink); display: flex; align-items: center; gap: 12px;
  transition: color .2s;
}
.cs-next-link:hover { color: var(--gold-70); }
.cs-next-link::after {
  content: '→'; font-size: 18px;
  transition: transform .2s var(--ease-spring);
}
.cs-next-link:hover::after { transform: translateX(5px); }
.cs-next > div:first-child .cs-next-link::after { content: none; }
.cs-next-link:hover .cs-prev-arrow { transform: translateX(-5px); }

/* ══════════════════════════════════════════════════════════
   DARK THEME OVERRIDES
   ══════════════════════════════════════════════════════════ */
[data-theme="dark"] {
  --bg:         #0f0f12;
  --bg-alt:     #18181d;
  --bg-dark:    #070709;
  --bg-dark2:   #0f0f12;
  --ink:        #e8e8ec;
  --ink-mid:    #9090a0;
  --ink-faint:  #5a5a6a;
  --ink-light:  #3a3a48;
  --border:     rgba(255,255,255,.07);
  --border-mid: rgba(255,255,255,.11);
  --border-dark:rgba(255,255,255,.06);
  --shadow-sm:  0 1px 4px rgba(0,0,0,.30);
  --shadow-md:  0 4px 16px rgba(0,0,0,.40);
  --shadow-lg:  0 8px 32px rgba(0,0,0,.50);
  --error:      #E5615A;
  --error-bg:   rgba(229,97,90,.12);
}

/* Nav */
[data-theme="dark"] .nav {
  background: rgba(15,15,18,.92);
  border-bottom-color: rgba(255,255,255,.07);
}
/* Trust strip */
[data-theme="dark"] .trust { background: #0f0f12; border-bottom-color: rgba(255,255,255,.07); }
[data-theme="dark"] .trust-item { color: var(--ink-mid); }
[data-theme="dark"] .trust-item:hover { color: var(--ink); }
[data-theme="dark"] .trust-dot { color: var(--ink-faint); }
/* Props */
[data-theme="dark"] .props { background: var(--bg); }
[data-theme="dark"] .prop  { background: #18181d; border-right-color: rgba(255,255,255,.07); }
[data-theme="dark"] .prop:hover { background: #1f1f26; }
/* Current role card */
[data-theme="dark"] .cr-card { background: #18181d; border-color: rgba(255,255,255,.1); }
/* Work section */
[data-theme="dark"] .work   { background: var(--bg); }
[data-theme="dark"] .wc-image { background: #18181d; border-color: rgba(255,255,255,.08); }
[data-theme="dark"] .chip   { background: #1e1e26; border-color: rgba(255,255,255,.09); color: #9090a0; }
/* Dropdown */
[data-theme="dark"] .dropdown-menu {
  background: #1a1a22;
  border-color: rgba(255,255,255,.12);
}
[data-theme="dark"] .dropdown-menu a:hover { background: #22222c; }
/* Footer stays dark — no change needed */
[data-theme="dark"] .cs-meta { background: #0f0f12; border-bottom-color: rgba(255,255,255,.07); }
[data-theme="dark"] .cs-meta-item { background: #18181d; border-right-color: rgba(255,255,255,.07); }
[data-theme="dark"] .cs-metrics-inner { background: rgba(255,255,255,.06); }
[data-theme="dark"] .metric { background: #18181d; }
[data-theme="dark"] .cs-callout { background: rgba(245,184,0,.07); border-left-color: var(--gold-50); }
[data-theme="dark"] .cs-callout p { color: var(--grey-30); }
[data-theme="dark"] .cs-feature-grid { background: rgba(255,255,255,.06); }
[data-theme="dark"] .cs-feature-card { background: #18181d; }
[data-theme="dark"] .cs-feature-card:hover { background: #1f1f28; }
[data-theme="dark"] .cs-img { background: #18181d; border-color: rgba(255,255,255,.08); }
[data-theme="dark"] .cs-body { background: var(--bg); }
[data-theme="dark"] .cs-next { border-top-color: rgba(255,255,255,.07); }

/* ── THEME TRANSITION OVERLAY ──────────────────────────────── */
#theme-overlay {
  position: fixed; inset: 0; z-index: 9998;
  pointer-events: none;
  clip-path: circle(0% at var(--ox, 50%) var(--oy, 50%));
  will-change: clip-path;
}
#theme-overlay.expanding {
  transition: clip-path .55s cubic-bezier(.4,0,.2,1);
  clip-path: circle(var(--maxr, 150%) at var(--ox, 50%) var(--oy, 50%));
}
#theme-overlay.fading {
  transition: opacity .2s ease;
  opacity: 0;
}

/* ── THEME TOGGLE ──────────────────────────────────────────── */
.theme-toggle {
  display: flex; align-items: center; gap: 8px;
  flex-shrink: 0;
}
.theme-toggle-icon {
  width: 16px; height: 16px;
  color: var(--ink-faint);
  flex-shrink: 0;
  transition: color .25s;
}
.theme-toggle-icon.active { color: var(--gold-50); }

.theme-switch {
  position: relative; width: 34px; height: 19px; flex-shrink: 0;
  cursor: pointer;
}
.theme-switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.theme-switch-track {
  position: absolute; inset: 0;
  background: var(--grey-30);
  border-radius: 999px;
  transition: background .3s var(--ease);
}
[data-theme="dark"] .theme-switch-track { background: var(--gold-50); }
.theme-switch-thumb {
  position: absolute;
  top: 3px; left: 3px;
  width: 13px; height: 13px;
  background: #fff;
  border-radius: 50%;
  transition: transform .3s var(--ease-spring), background .3s;
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
[data-theme="dark"] .theme-switch-thumb { transform: translateX(15px); background: #fff; }

/* ── GLOBAL COLOR TRANSITIONS ──────────────────────────────── */
body,
.nav, .trust, .trust-item,
.prop, .props, .props-grid,
.stats, .stat, .stat-value, .stat-label,
.current-role, .cr-card, .cr-badge, .cr-company, .cr-role, .cr-desc,
.work, .work-card, .wc-image, .wc-title, .wc-desc, .chip,
.section-eyebrow,
.dropdown-menu, .dropdown-menu a,
.footer,
.cs-hero, .cs-meta, .cs-metrics, .metric, .cs-body,
.cs-p, .cs-h2, .cs-callout, .cs-feature-card, .cs-img, .cs-next {
  transition:
    background-color .45s var(--ease),
    color .45s var(--ease),
    border-color .45s var(--ease);
}

/* ── SCROLL ANIMATIONS ─────────────────────────────────────── */
.fade-up {
  opacity: 0; transform: translateY(20px);
  transition: opacity .6s var(--ease-out), transform .6s var(--ease-out);
}
.fade-up.visible { opacity: 1; transform: none; }

/* Stream (word fade) */
[data-stream] { overflow: visible; }
.sw {
  display: inline;
  opacity: 0; filter: blur(4px);
  transition: opacity .4s var(--ease-out), filter .4s var(--ease-out);
}
[data-stream].stream-visible .sw { opacity: 1; filter: blur(0); }
@media (prefers-reduced-motion: reduce) {
  .sw { opacity: 1 !important; filter: none !important; transition: none !important; }
  .hero-headline em::after { animation: none; transform: scaleX(1); }
  .btn-secondary, .btn-secondary::after, .btn-secondary:hover { transition: none !important; transform: none !important; }
  .btn-primary, .btn-primary::after, .btn-primary:hover { transition: none !important; transform: none !important; }
  .cr-badge::before { animation: none; }
  .fade-up { opacity: 1 !important; transform: none !important; transition: none !important; }
  .cs-glow { animation: none !important; }
  .footer-tagline { animation: none !important; }
  .cs-punch::after { transition: none !important; transform: scaleX(1) !important; }
}

/* ── RESPONSIVE ────────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; padding-left:var(--pad-x) !important; }
  .hero-photo { display: none; }
  .props-grid { grid-template-columns: 1fr; }
  .prop { border-right: none; border-bottom: 1px solid var(--border); }
  .prop:last-child { border-bottom: none; }
  .stats-inner { grid-template-columns: 1fr; gap: 32px; }
  .stat { padding:0 !important; text-align: left !important; border-right: none; border-bottom: 1px solid var(--border-dark); padding-bottom:32px !important; }
  .stat:last-child { border-bottom: none; }
  .stat-value { justify-content: flex-start !important; }
  .cr-card { grid-template-columns: 1fr; gap: 24px; padding:32px 24px; }
  .cr-divider { height: 1px; width: auto; }
  .work-card, .work-card.flip { grid-template-columns: 1fr; gap: 32px; direction: ltr; }
  .work-card.flip > * { direction: ltr; }
  .work-card--card { padding:24px 24px 0 24px; }
  .work-card--card.flip { padding:24px 24px 0 24px; }
  .work-card--card .wc-image { margin:24px -24px -8px -24px; height: auto; border-radius: 0 0 7px 7px; }
  .work-card--card.flip .wc-image { margin:24px -24px -8px -24px; border-radius: 0 0 7px 7px; }
  .work-card::before { display: none; }
  .cs-meta-strip { grid-template-columns: 1fr 1fr; }
  .cs-meta-item { padding:24px 16px; }
  .cs-meta-item:first-child, .cs-meta-item:nth-child(3) { padding-left:var(--pad-x); }
  .cs-meta-item:nth-child(2), .cs-meta-item:last-child { padding-right:var(--pad-x); }
  .cs-metrics-inner { grid-template-columns: 1fr; }
  .cs-text-2col { grid-template-columns: 1fr; gap: 24px; }
  .cs-feature-grid { grid-template-columns: 1fr; }
  .cs-next { flex-direction: column; gap: 24px; align-items: flex-start; }
  .cs-next > div:last-child { text-align: left !important; }
  .cs-next-link { font-size: 19px; }
  .footer-top { flex-direction: column; gap: 24px; }
  .footer-links { align-items: flex-start; }
}

/* ── PASSWORD GATE ─────────────────────────────────────────── */
.gate-screen {
  min-height: 74vh; display: flex; align-items: center; justify-content: center;
  padding:64px var(--pad-x);
  opacity: 0; transform: translateY(16px);
  transition: opacity .5s var(--ease-out), transform .5s var(--ease-out);
}
.gate-screen.visible { opacity: 1; transform: none; }
.gate-card {
  max-width: 440px; width: 100%;
  background: var(--bg); border: 1px solid var(--border-mid); border-radius: 8px;
  padding:40px;
}
[data-theme="dark"] .gate-card { background: #16161a; }
.gate-eyebrow {
  font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--gold-70); margin-bottom:16px; display: flex; align-items: center; gap: 8px;
}
.gate-eyebrow::before { content: ''; width: 20px; height: 1px; background: var(--gold-50); flex-shrink: 0; }
.gate-title { font-size: clamp(20px,2.4vw,26px); font-weight: 600; color: var(--ink); line-height: 1.3; letter-spacing: -.02em; margin-bottom:8px; }
.gate-sub { font-size: 15px; color: var(--ink-mid); line-height: 1.6; margin-bottom:32px; }
.gate-form { display: flex; flex-direction: column; gap: 8px; }
.gate-label { font-size: 13px; font-weight: 500; color: var(--ink-mid); }
.gate-input-row { display: flex; gap: 8px; }
.gate-input {
  flex: 1; height: 44px; padding:0 16px; font-size: 16px; font-family: var(--sans);
  color: var(--ink); background: var(--bg-alt); border: 1px solid var(--border-mid); border-radius: 6px;
  transition: border-color .15s, box-shadow .15s;
}
.gate-input:focus { outline: none; border-color: var(--gold-50); box-shadow: 0 0 0 3px var(--gold-50-a20); }
.gate-submit {
  height: 44px; padding:0 24px; border: none; border-radius: 999px; cursor: pointer;
  font-size: 15px; font-weight: 600; letter-spacing: .01em;
  background: var(--gold-50); color: #000;
  transition: background .2s, transform .15s;
  flex-shrink: 0;
}
.gate-submit:hover { background: var(--gold-60); transform: translateY(-1px); }
.gate-error {
  margin-top:16px; font-size: 13px; color: var(--error); min-height: 18px;
  display: flex; align-items: center; gap: 8px;
}
.gate-card.shake { animation: gate-shake .4s var(--ease); }
@keyframes gate-shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(5px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(3px); }
}
@media (prefers-reduced-motion: reduce) {
  .gate-screen { transition: none !important; }
  .gate-card.shake { animation: none !important; }
}

/* Use case coverage matrix */
.cs-matrix { margin:32px 0; overflow-x: auto; border: 1px solid var(--border-mid); border-radius: 8px; }
.cs-matrix-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 560px; }
.cs-matrix-table th, .cs-matrix-table td {
  padding:16px 16px; text-align: center; border: 1px solid var(--border);
}
.cs-matrix-table th { font-weight: 600; letter-spacing: .02em; color: var(--ink-light); background: var(--grey-10); font-size: 13px; }
.cs-matrix-table thead th:first-child { border-top-left-radius: 8px; }
.cs-matrix-table thead th:last-child { border-top-right-radius: 8px; }
.cs-matrix-table tbody tr:last-child td:first-child { border-bottom-left-radius: 8px; }
.cs-matrix-table tbody tr:last-child td:last-child { border-bottom-right-radius: 8px; }
.cs-matrix-table td:first-child, .cs-matrix-table th:first-child { text-align: left; font-weight: 500; color: var(--ink); background: transparent; }
.cs-matrix-table td { color: var(--gold-60); font-weight: 600; }
.cs-matrix-table td:empty { color: var(--border-mid); }
.cs-matrix-table td:empty::before { content: '—'; color: var(--grey-20); font-weight: 400; }
.cs-matrix-emph { background: var(--gold-5) !important; position: relative; }
th.cs-matrix-emph { color: var(--gold-70) !important; }
[data-theme="dark"] .cs-matrix-table th { background: rgba(255,255,255,.05); }
[data-theme="dark"] .cs-matrix-emph { background: rgba(245,184,0,.1) !important; }
@media (max-width: 600px) { .cs-matrix-table { font-size: 13px; } .cs-matrix-table th, .cs-matrix-table td { padding:8px 8px; } }
