/* ============================================================
   Dan Nemirovsky Portfolio — styles.css
   ============================================================ */

/* --- Brand Tokens --- */
:root {
  --pitch-black:    #0A0A0A;
  --warm-white:     #F5F3EE;
  --blaze-orange:   #FF5E1A;
  --orange-dark:    #CC4C16;
  --orange-light:   #FF8050;
  --orange-tint:    rgba(255,94,26,0.12);
  --surface-dark:   #1E1E1E;
  --surface-darker: #141414;
  --graphite:       #6B6B6B;
  --gray-light:     #C8C6C0;
  --gray-mid:       #383838;
  --border-dark:    rgba(245,243,238,0.08);

  --font-display: 'Bebas Neue', sans-serif;
  --font-body:    'DM Sans', sans-serif;

  --nav-h:   80px;
  --max-w:   1280px;
  --pad-x:   clamp(24px, 5vw, 80px);
  --sec-pad: clamp(80px, 10vw, 140px);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }

body {
  font-family: var(--font-body);
  background: var(--pitch-black);
  color: var(--warm-white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--pad-x);
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease);
  border-bottom: 0.5px solid transparent;
}

.nav.scrolled {
  background: rgba(10,10,10,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--border-dark);
}

.nav__logo-link {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.nav__logo-mark {
  height: 30px;
  width: auto;
  flex-shrink: 0;
}

.nav__logo-divider {
  width: 0.5px;
  height: 28px;
  background: var(--border-dark);
  flex-shrink: 0;
}

.nav__logo-wordmark {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav__logo-name {
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: 0.08em;
  color: var(--warm-white);
  line-height: 1;
}

.nav__logo-sub {
  font-family: var(--font-body);
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blaze-orange);
  line-height: 1;
}

.nav__links {
  display: flex;
  list-style: none;
  gap: 48px;
}
.nav__links a {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--graphite);
  transition: color 0.2s var(--ease);
  position: relative;
  padding-bottom: 2px;
}
.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 0.5px;
  background: var(--blaze-orange);
  transition: width 0.3s var(--ease);
}
.nav__links a:hover,
.nav__links a.active { color: var(--warm-white); }
.nav__links a:hover::after,
.nav__links a.active::after { width: 100%; }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}
.nav__toggle span {
  display: block;
  width: 26px; height: 1.5px;
  background: var(--warm-white);
  transition: all 0.3s var(--ease);
}
.nav__toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
.nav__toggle.open span:nth-child(2) { opacity: 0; }
.nav__toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  height: auto;
  min-height: 640px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: calc(var(--nav-h) + 56px) var(--pad-x) 120px;
  overflow: hidden;
  background: var(--pitch-black);
}

.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.2;
  pointer-events: none;
}

.hero__grid {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(245,243,238,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245,243,238,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero__scanline {
  position: absolute;
  left: 0; right: 0;
  top: -2px;
  height: 2px;
  z-index: 2;
  pointer-events: none;
  opacity: 0.9;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255,94,26,0.08) 15%,
    rgba(255,94,26,0.35) 50%,
    rgba(255,94,26,0.08) 85%,
    transparent 100%
  );
  animation: scanSweep 10s linear 2.8s infinite;
}

.hero__scanline::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  top: 8px;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255,94,26,0.04) 30%,
    rgba(255,94,26,0.12) 50%,
    rgba(255,94,26,0.04) 70%,
    transparent 100%
  );
}

@keyframes scanSweep {
  0%   { top: -2px; opacity: 0; }
  3%   { opacity: 1; }
  97%  { opacity: 1; }
  100% { top: 100vh; opacity: 0; }
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(10,10,10,0.85) 0%, rgba(10,10,10,0.40) 20%, transparent 40%),
    linear-gradient(110deg, rgba(10,10,10,0.88) 0%, rgba(10,10,10,0.60) 40%, rgba(10,10,10,0.10) 100%);
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 760px;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--blaze-orange);
  margin-bottom: 20px;
  opacity: 0;
  animation: heroFade 0.6s var(--ease) 0.1s forwards;
}

.headline { margin: 0; }

.line-wrap {
  display: block;
  line-height: 0.95;
}

.line {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(46px, 6.5vw, 104px);
  letter-spacing: 0.02em;
  color: var(--warm-white);
  opacity: 0;
  animation: heroFade 0.7s var(--ease) forwards;
}

.line-wrap:nth-child(1) .line { animation-delay: 0.15s; }
.line-wrap:nth-child(2) .line { animation-delay: 0.30s; }
.line-wrap:nth-child(3) .line { animation-delay: 0.45s; }

.line-accent em {
  font-style: normal;
  color: var(--blaze-orange);
}

.rule {
  display: block;
  width: 0;
  height: 2px;
  background: var(--blaze-orange);
  margin-top: 20px;
  animation: growRule 0.65s var(--ease) 0.6s forwards;
}

.sub {
  font-family: var(--font-body);
  font-size: clamp(13px, 1vw, 16px);
  font-weight: 400;
  color: rgba(245,243,238,0.72);
  max-width: 480px;
  line-height: 1.75;
  margin-top: 24px;
  opacity: 0;
  animation: heroFade 0.6s var(--ease) 0.75s forwards;
}

.cta-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 32px;
  flex-wrap: wrap;
  opacity: 0;
  animation: heroFade 0.6s var(--ease) 0.9s forwards;
}

.hero__scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  opacity: 0;
  animation: heroFade 0.6s var(--ease) 1.1s forwards;
}

.hero__scroll-label {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 4px;
  padding-left: 4px;
  text-transform: uppercase;
  color: var(--graphite);
}

.hero__scroll-chevron {
  width: 24px; height: 14px;
  color: var(--blaze-orange);
  animation: chevronBounce 2s var(--ease) 1.2s infinite;
}

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

@keyframes chevronBounce {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50%       { transform: translateY(5px); opacity: 0.6; }
}

@keyframes growRule {
  to { width: clamp(160px, 25vw, 380px); }
}

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   ANIMATIONS — SCROLL REVEAL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  cursor: pointer;
  border-radius: 1px;
  transition: transform 0.15s var(--ease), box-shadow 0.3s var(--ease), background 0.2s;
}

.btn--primary {
  background: var(--blaze-orange);
  color: var(--pitch-black);
  padding: 18px 44px;
}
.btn--primary:hover {
  background: var(--orange-light);
  transform: translateY(-1px);
}

.btn--large {
  background: var(--blaze-orange);
  color: var(--pitch-black);
  font-size: 14px;
  padding: 24px 64px;
  letter-spacing: 3px;
}
.btn--large:hover {
  background: var(--orange-light);
  transform: translateY(-2px);
  box-shadow: 0 24px 72px rgba(255,94,26,0.35);
}

.btn--outline {
  background: transparent;
  color: var(--warm-white);
  padding: 16px 40px;
  border: 0.5px solid var(--gray-mid);
}
.btn--outline:hover {
  border-color: var(--blaze-orange);
  color: var(--blaze-orange);
}

.btn__arrow {
  width: 18px; height: 18px;
  transition: transform 0.2s var(--ease);
}
.btn:hover .btn__arrow { transform: translateX(4px); }

/* ============================================================
   SECTION LABELS & TITLES
   ============================================================ */
.section-label {
  display: block;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--blaze-orange);
  margin-bottom: 28px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 68px);
  line-height: 1.0;
  letter-spacing: 0.02em;
  color: var(--warm-white);
}

/* ============================================================
   STAT COUNTER
   ============================================================ */
.stat-counter {
  border-top: 0.5px solid var(--gray-mid);
  border-bottom: 0.5px solid var(--gray-mid);
  padding: 64px var(--pad-x);
  background: var(--surface-darker);
}

.stat-counter__inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.stat-eyebrow {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--graphite);
  text-align: center;
  margin: 0 0 2.5rem;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 0.5px solid var(--gray-mid);
}

.stat-cell {
  padding: 2rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  border-right: 0.5px solid var(--gray-mid);
}
.stat-cell:last-child { border-right: none; }

.stat-number-wrap {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  gap: 2px;
}

.counter,
#coffee-counter {
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 500;
  color: var(--warm-white);
  line-height: 1;
  letter-spacing: 0.02em;
}

.stat-suffix {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 500;
  color: var(--blaze-orange);
  line-height: 1;
}

.stat-label {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 400;
  color: var(--graphite);
  text-align: center;
  line-height: 1.4;
  margin: 0;
}

/* ============================================================
   VALUE PROP
   ============================================================ */
.value-prop {
  padding: var(--sec-pad) var(--pad-x);
  max-width: var(--max-w);
  margin: 0 auto;
}

.value-prop__headline {
  font-family: var(--font-display);
  font-size: clamp(28px, 4.2vw, 62px);
  line-height: 1.0;
  letter-spacing: 0.02em;
  color: var(--warm-white);
  max-width: 900px;
}
.value-prop__headline em {
  font-style: normal;
  color: var(--blaze-orange);
}

/* ============================================================
   EMPLOYER TICKER / MARQUEE
   ============================================================ */
.marquee-section {
  border-top: 0.5px solid var(--gray-mid);
  border-bottom: 0.5px solid var(--gray-mid);
  padding: 36px 0;
  overflow: hidden;
  background: var(--pitch-black);
}

.marquee-label {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--graphite);
  text-align: center;
  margin-bottom: 28px;
}

.marquee-track-wrapper {
  overflow: hidden;
  position: relative;
}

.marquee-track-wrapper::before,
.marquee-track-wrapper::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}
.marquee-track-wrapper::before {
  left: 0;
  background: linear-gradient(to right, var(--pitch-black), transparent);
}
.marquee-track-wrapper::after {
  right: 0;
  background: linear-gradient(to left, var(--pitch-black), transparent);
}

.marquee-track {
  display: flex;
  gap: 0;
  width: max-content;
  animation: marquee 32s linear infinite;
}

.marquee-item {
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 0 20px;
  white-space: nowrap;
}

.marquee-item__name {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.5vw, 32px);
  letter-spacing: 0.08em;
  color: rgba(245,243,238,0.25);
  transition: color 0.2s;
}

.marquee-item__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.marquee-item__logo {
  height: 56px;
  width: auto;
  max-width: 240px;
  object-fit: contain;
  filter: grayscale(1) brightness(10);
  opacity: 0.65;
  transition: filter 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  user-select: none;
  flex-shrink: 0;
}

.marquee-item:hover .marquee-item__logo {
  filter: grayscale(0) brightness(1);
  opacity: 1;
}

.marquee-track-wrapper:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-item {
  cursor: default;
}

.marquee-item__dot {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--blaze-orange);
  opacity: 0.4;
  flex-shrink: 0;
  align-self: center;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============================================================
   SERVICES / EXPERTISE GRID
   ============================================================ */
.services {
  padding: var(--sec-pad) var(--pad-x);
  max-width: var(--max-w);
  margin: 0 auto;
}

.services__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 56px;
  flex-wrap: wrap;
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--gray-mid);
  gap: 1px;
  border: 1px solid var(--gray-mid);
}

.service-card {
  background: var(--pitch-black);
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: background 0.3s var(--ease);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 0.5px;
  background: var(--blaze-orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.service-card:hover { background: var(--surface-dark); }
.service-card:hover::before { transform: scaleX(1); }

.service-card__num {
  font-family: var(--font-display);
  font-size: 40px;
  color: var(--blaze-orange);
  opacity: 0.25;
  line-height: 1;
}

.service-card__name {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 0.04em;
  color: var(--warm-white);
  line-height: 1.15;
}

.service-card__desc {
  font-size: 13px;
  font-weight: 400;
  color: var(--graphite);
  line-height: 1.65;
}

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section {
  position: relative;
  overflow: hidden;
  padding: clamp(100px, 14vw, 180px) var(--pad-x);
  text-align: center;
  background: var(--surface-darker);
  border-top: 0.5px solid var(--gray-mid);
}

#cta-topo-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  animation: topoShift 28s ease-in-out infinite reverse;
}

.cta-section__fade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(
    ellipse 80% 100% at 50% 50%,
    rgba(20,20,20,0.35) 0%,
    rgba(20,20,20,0.72) 60%,
    rgba(20,20,20,0.95) 100%
  );
}

.cta-section__eyebrow,
.cta-section__title,
.cta-section > .btn {
  position: relative;
  z-index: 2;
}

.cta-section__eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--blaze-orange);
  margin-bottom: 28px;
}

.cta-section__title {
  font-family: var(--font-display);
  font-size: clamp(56px, 9vw, 130px);
  letter-spacing: 0.02em;
  color: var(--warm-white);
  line-height: 1.0;
  margin-bottom: 48px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  padding: 52px var(--pad-x);
  border-top: 0.5px solid var(--gray-mid);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer__logo-mark {
  height: 35px;
  width: auto;
  opacity: 0.7;
  transition: opacity 0.2s var(--ease);
}
.footer__logo-mark:hover { opacity: 1; }

.footer__copy {
  font-size: 12px;
  color: var(--graphite);
  letter-spacing: 0.3px;
}

.footer__links {
  display: flex;
  gap: 28px;
  list-style: none;
}
.footer__links a {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--graphite);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
.footer__links a:hover { color: var(--blaze-orange); }

/* ============================================================
   PAGE HERO (interior pages)
   ============================================================ */
.page-topo-header {
  position: relative;
  overflow: visible;
  background: var(--pitch-black);
}

#page-topo-svg {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 900px;
  z-index: 0;
  animation: topoShift 22s ease-in-out infinite;
}

.page-topo-header__fade {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 900px;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(10,10,10,0.10) 0%,
    rgba(10,10,10,0.20) 50%,
    rgba(10,10,10,0.80) 75%,
    rgba(10,10,10,1.00) 100%
  );
}

.page-topo-header .page-hero {
  position: relative;
  z-index: 2;
  padding-bottom: 10px;
}

.page-topo-header ~ main {
  position: relative;
  z-index: 2;
}

.page-hero {
  padding: calc(var(--nav-h) + 80px) var(--pad-x) 80px;
  max-width: var(--max-w);
  margin: 0 auto;
}

.page-hero__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--graphite);
  text-decoration: none;
  transition: color 0.2s cubic-bezier(0.16,1,0.3,1);
}

.page-hero__back:hover { color: var(--warm-white); }

.page-hero__back svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  transition: transform 0.2s cubic-bezier(0.16,1,0.3,1);
}

.page-hero__back:hover svg { transform: translateX(-3px); }

.page-hero__label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--blaze-orange);
  margin-bottom: 24px;
}

.page-hero__title {
  font-family: var(--font-display);
  font-size: clamp(64px, 10vw, 140px);
  line-height: 0.9;
  letter-spacing: 0.02em;
  color: var(--warm-white);
  margin-bottom: 28px;
}

.page-hero__sub {
  font-size: clamp(15px, 1.5vw, 18px);
  font-weight: 300;
  color: rgba(245,243,238,0.5);
  max-width: 520px;
  line-height: 1.75;
}

/* ============================================================
   PORTFOLIO PAGE — Password Gate
   ============================================================ */
.password-gate {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--pad-x);
  text-align: center;
  background: var(--pitch-black);
  position: relative;
}

.password-gate__mark {
  height: 48px;
  width: auto;
  opacity: 0.4;
  margin-bottom: 48px;
}

.password-gate__label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--blaze-orange);
  margin-bottom: 16px;
}

.password-gate__title {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 80px);
  letter-spacing: 0.02em;
  color: var(--warm-white);
  line-height: 1.0;
  margin-bottom: 12px;
}

.password-gate__sub {
  font-size: 14px;
  font-weight: 300;
  color: var(--graphite);
  margin-bottom: 48px;
}

.password-gate__form {
  display: flex;
  gap: 0;
  max-width: 400px;
  width: 100%;
}

.password-gate__input {
  flex: 1;
  background: var(--surface-dark);
  border: 0.5px solid var(--gray-mid);
  border-right: none;
  color: var(--warm-white);
  font-family: var(--font-body);
  font-size: 14px;
  padding: 16px 20px;
  outline: none;
  border-radius: 1px 0 0 1px;
  transition: border-color 0.2s;
}
.password-gate__input:focus { border-color: var(--blaze-orange); }
.password-gate__input::placeholder { color: var(--graphite); }

.password-gate__submit {
  background: var(--blaze-orange);
  color: var(--pitch-black);
  border: none;
  padding: 16px 28px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 0 1px 1px 0;
  transition: background 0.2s;
}
.password-gate__submit:hover { background: var(--orange-light); }

.password-gate__error {
  margin-top: 16px;
  font-size: 12px;
  color: var(--blaze-orange);
  min-height: 18px;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60%  { transform: translateX(-6px); }
  40%, 80%  { transform: translateX(6px); }
}
.shake { animation: shake 0.4s var(--ease); }

/* ============================================================
   PORTFOLIO GRID
   ============================================================ */
.portfolio-section {
  padding: var(--sec-pad) var(--pad-x);
  max-width: var(--max-w);
  margin: 0 auto;
}

.portfolio-section + .portfolio-section {
  padding-top: 0;
}

.portfolio-section__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 0.5px solid var(--gray-mid);
  flex-wrap: wrap;
}

.portfolio-section__title {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 56px);
  letter-spacing: 0.02em;
  color: var(--warm-white);
  line-height: 1.0;
}

.portfolio-section__sub {
  font-size: 14px;
  font-weight: 300;
  color: var(--graphite);
  max-width: 440px;
  line-height: 1.65;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.portfolio-card {
  position: relative;
  overflow: hidden;
  border-radius: 2px;
  border: 0.5px solid var(--gray-mid);
  background: var(--surface-dark);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 280px;
  transition: border-color 0.3s var(--ease);
}
.portfolio-card:hover { border-color: var(--blaze-orange); }
.portfolio-card--locked { cursor: default; }

.portfolio-card__bg {
  position: absolute;
  inset: 0;
  transition: transform 0.7s var(--ease);
}
.portfolio-card:hover .portfolio-card__bg { transform: scale(1.04); }

.portfolio-card__content {
  position: relative;
  z-index: 2;
  padding: 24px 28px 20px;
  background: linear-gradient(to top, rgba(10,10,10,0.96) 0%, rgba(10,10,10,0.85) 40%, transparent 100%);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.portfolio-card__cat {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--blaze-orange);
}

.portfolio-card__name {
  font-family: var(--font-display);
  font-size: 24px;
  letter-spacing: 0.04em;
  color: var(--warm-white);
  line-height: 1.1;
}

.portfolio-card__detail {
  font-size: 12px;
  font-weight: 400;
  color: rgba(245,243,238,0.55);
  line-height: 1.6;
}

.portfolio-card__coming {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(10,10,10,0.85);
  border: 0.5px solid var(--gray-mid);
  border-radius: 2px;
  padding: 6px 12px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--graphite);
  z-index: 3;
}

/* ============================================================
   PORTFOLIO HERO CARDS
   ============================================================ */
.portfolio-hero-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.portfolio-hero-card {
  position: relative;
  overflow: hidden;
  border-radius: 2px;
  border: 0.5px solid var(--gray-mid);
  background: var(--surface-dark);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 380px;
  transition: border-color 0.3s var(--ease);
}

.portfolio-hero-card:hover { border-color: var(--blaze-orange); }
.portfolio-hero-card:hover .portfolio-card__bg { transform: scale(1.04); }

.portfolio-hero-card__content {
  position: relative;
  z-index: 2;
  padding: 36px 44px 32px;
  background: linear-gradient(to top, rgba(10,10,10,0.97) 0%, rgba(10,10,10,0.80) 50%, transparent 100%);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.portfolio-hero-card__name {
  font-family: var(--font-display);
  font-size: clamp(40px, 5.5vw, 72px);
  letter-spacing: 0.02em;
  color: var(--warm-white);
  line-height: 1.0;
}

.portfolio-hero-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--blaze-orange);
  margin-top: 10px;
  transition: gap 0.3s var(--ease);
}

.portfolio-hero-card:hover .portfolio-hero-card__cta { gap: 16px; }

/* ============================================================
   PORTFOLIO DIVIDER
   ============================================================ */
.portfolio-divider {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 40px var(--pad-x);
  max-width: var(--max-w);
  margin: 0 auto;
}

.portfolio-divider::before,
.portfolio-divider::after {
  content: '';
  flex: 1;
  height: 0.5px;
  background: var(--blaze-orange);
}

.portfolio-divider__label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--blaze-orange);
  white-space: nowrap;
}

/* ============================================================
   PORTFOLIO SECONDARY GRID (2-column split)
   ============================================================ */
.portfolio-secondary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.portfolio-secondary-card {
  position: relative;
  overflow: hidden;
  border-radius: 2px;
  border: 0.5px solid var(--gray-mid);
  background: var(--surface-dark);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 300px;
  transition: border-color 0.3s var(--ease);
}

.portfolio-secondary-card:hover { border-color: var(--blaze-orange); }
.portfolio-secondary-card:hover .portfolio-card__bg { transform: scale(1.04); }

.portfolio-secondary-card__content {
  position: relative;
  z-index: 2;
  padding: 24px 28px 20px;
  background: linear-gradient(to top, rgba(10,10,10,0.96) 0%, rgba(10,10,10,0.85) 40%, transparent 100%);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.portfolio-secondary-card__name {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 44px);
  letter-spacing: 0.03em;
  color: var(--warm-white);
  line-height: 1.1;
}

/* ============================================================
   CV PAGE
   ============================================================ */
.cv-body {
  padding: 40px var(--pad-x) var(--sec-pad);
  max-width: var(--max-w);
  margin: 0 auto;
}

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

/* Sidebar */
.cv-sidebar {
  position: sticky;
  top: calc(var(--nav-h) + 40px);
}

.cv-sidebar__contact {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 48px;
}

.cv-sidebar__item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cv-sidebar__item-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--blaze-orange);
}

.cv-sidebar__item-value {
  font-size: 13px;
  font-weight: 400;
  color: rgba(245,243,238,0.7);
  text-decoration: none;
  transition: color 0.2s;
  line-height: 1.5;
}
.cv-sidebar__item-value:hover { color: var(--blaze-orange); }

.cv-sidebar__skills {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.cv-sidebar__skill-group-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--blaze-orange);
  margin-bottom: 12px;
  display: block;
}

.cv-sidebar__skill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cv-tag {
  font-size: 11px;
  font-weight: 500;
  padding: 5px 10px;
  background: var(--surface-dark);
  border: 0.5px solid var(--gray-mid);
  border-radius: 1px;
  color: rgba(245,243,238,0.65);
  white-space: nowrap;
}

/* Main column */
.cv-main {
  display: flex;
  flex-direction: column;
  gap: 64px;
}


.cv-section__heading {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--blaze-orange);
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 0.5px solid var(--gray-mid);
}

.cv-summary {
  font-size: 16px;
  font-weight: 300;
  line-height: 1.8;
  color: rgba(245,243,238,0.75);
  max-width: 680px;
}

/* Experience entries */
.cv-role {
  margin-bottom: 48px;
  padding-bottom: 48px;
  border-bottom: 0.5px solid var(--gray-mid);
}
.cv-role:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.cv-role__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.cv-role__title {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.5vw, 30px);
  letter-spacing: 0.04em;
  color: var(--warm-white);
  line-height: 1.1;
}

.cv-role__company {
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: 0.08em;
  color: var(--blaze-orange);
}

.cv-role__dates {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--graphite);
  white-space: nowrap;
  padding-top: 4px;
}

.cv-role__summary {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.75;
  color: rgba(245,243,238,0.6);
  margin-bottom: 20px;
  max-width: 620px;
}

.cv-role__highlights {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
}

.cv-role__highlight {
  font-size: 13px;
  font-weight: 400;
  color: rgba(245,243,238,0.55);
  line-height: 1.65;
  padding-left: 16px;
  position: relative;
}
.cv-role__highlight::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--blaze-orange);
  opacity: 0.6;
}

.cv-role__achievements {
  margin-top: 20px;
  padding: 20px 24px;
  background: var(--surface-dark);
  border: 0.5px solid var(--gray-mid);
  border-left: 2px solid var(--blaze-orange);
  border-radius: 0 2px 2px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cv-achievement {
  font-size: 12px;
  font-weight: 500;
  color: rgba(245,243,238,0.75);
  background: var(--surface-darker);
  border: 0.5px solid var(--gray-mid);
  padding: 5px 12px;
  border-radius: 1px;
  white-space: nowrap;
}

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.about-body {
  padding: var(--sec-pad) var(--pad-x);
  max-width: var(--max-w);
  margin: 0 auto;
}

.about-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 80px;
  align-items: start;
  margin-bottom: var(--sec-pad);
}

.about-bio {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.about-bio p {
  font-size: clamp(15px, 1.4vw, 17px);
  font-weight: 300;
  line-height: 1.85;
  color: rgba(245,243,238,0.72);
}

.about-bio p em {
  font-style: normal;
  color: var(--warm-white);
  font-weight: 400;
}

.about-headshot {
  position: sticky;
  top: calc(var(--nav-h) + 40px);
}

.about-photo-wrap {
  position: relative;
}

.about-photo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4/5;
  object-fit: cover;
  object-position: top center;
  border: 0.5px solid var(--gray-mid);
}

.about-photo-accent {
  position: absolute;
  bottom: -12px;
  right: -12px;
  width: 64px;
  height: 64px;
  background: var(--blaze-orange);
  z-index: -1;
}

.about-headshot__placeholder {
  width: 100%;
  aspect-ratio: 3/4;
  background: var(--surface-dark);
  border: 0.5px solid var(--gray-mid);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--graphite);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.about-tools {
  border-top: 0.5px solid var(--gray-mid);
  padding-top: var(--sec-pad);
}

.about-tools__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5px;
  background: var(--gray-mid);
  border: 0.5px solid var(--gray-mid);
  margin-top: 40px;
}

.about-tool-col {
  background: var(--pitch-black);
  padding: 44px 36px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.about-tool-col__title {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 0.04em;
  color: var(--warm-white);
}

.about-tool-col__items {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.about-tool-item {
  font-size: 13px;
  font-weight: 400;
  color: var(--graphite);
  line-height: 1.5;
  padding-left: 14px;
  position: relative;
}
.about-tool-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 5px;
  height: 0.5px;
  background: var(--blaze-orange);
}

/* ============================================================
   ABOUT HOBBIES
   ============================================================ */
.about-hobbies {
  border-top: 0.5px solid var(--gray-mid);
  padding-top: var(--sec-pad);
}

.about-hobbies > .section-label {
  display: block;
  margin-bottom: 48px;
}

.hobby-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 0.5px solid var(--gray-mid);
}

.hobby-card {
  padding: 40px 32px;
  border-right: 0.5px solid var(--gray-mid);
  border-bottom: 0.5px solid var(--gray-mid);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: background 0.3s var(--ease);
}

.hobby-card:hover {
  background: var(--surface-dark);
}

.hobby-card:nth-child(3n) {
  border-right: none;
}

.hobby-card:nth-child(4),
.hobby-card:nth-child(5),
.hobby-card:nth-child(6) {
  border-bottom: none;
}

.hobby-card__icon {
  font-size: 28px;
  line-height: 1;
}

.hobby-card__title {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 0.04em;
  color: var(--warm-white);
  line-height: 1.1;
  margin: 0;
}

.hobby-card__body {
  font-size: 14px;
  font-weight: 400;
  color: var(--graphite);
  line-height: 1.7;
  margin: 0;
}

/* ============================================================
   ABOUT GALLERY
   ============================================================ */
.about-gallery {
  padding: var(--sec-pad) var(--pad-x);
  max-width: var(--max-w);
  margin: 0 auto;
}

.about-gallery__masonry {
  columns: 3;
  column-gap: 12px;
}

.about-gallery__item {
  break-inside: avoid;
  margin-bottom: 12px;
}

.about-gallery__item img {
  width: 100%;
  display: block;
  border-radius: 2px;
  border: 0.5px solid var(--gray-mid);
  transition: opacity 0.3s var(--ease), border-color 0.3s var(--ease);
}

.about-gallery__item img:hover {
  border-color: var(--blaze-orange);
  opacity: 0.9;
}

@media (max-width: 768px) {
  .about-gallery__masonry { columns: 2; }
}

@media (max-width: 480px) {
  .about-gallery__masonry { columns: 1; }
}

/* ============================================================
   CASE STUDY PAGES
   ============================================================ */

/* Meta bar */
.cs-meta {
  position: relative;
  z-index: 2;
  border-top: 0.5px solid var(--gray-mid);
  border-bottom: 0.5px solid var(--gray-mid);
  background: var(--surface-darker);
}

.cs-meta__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 40px var(--pad-x);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.cs-meta__item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 32px;
  border-right: 0.5px solid var(--gray-mid);
}
.cs-meta__item:first-child { padding-left: 0; }
.cs-meta__item:last-child { border-right: none; }

.cs-meta__label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--blaze-orange);
}

.cs-meta__value {
  font-size: 14px;
  font-weight: 400;
  color: rgba(245,243,238,0.7);
  line-height: 1.5;
}

.cs-meta__value--orange {
  color: var(--blaze-orange);
  font-weight: 500;
}

/* Case study body */
.cs-body {
  padding: clamp(40px, 5vw, 70px) var(--pad-x) var(--sec-pad);
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 100px;
}

/* Orange section break divider */
.cs-section-break {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 40px var(--pad-x);
  display: flex;
  align-items: center;
  gap: 16px;
}
.cs-section-break__label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--blaze-orange);
  flex-shrink: 0;
}
.cs-section-break::before,
.cs-section-break::after {
  content: '';
  flex: 1;
  height: 0.5px;
  background: var(--blaze-orange);
}

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

.cs-section__label-col {
  position: sticky;
  top: calc(var(--nav-h) + 40px);
}

.cs-section__eyebrow {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--blaze-orange);
  margin-bottom: 16px;
  display: block;
}

.cs-section__title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 44px);
  letter-spacing: 0.02em;
  color: var(--warm-white);
  line-height: 1.1;
}

.cs-section__content {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.cs-section__body {
  font-size: clamp(15px, 1.3vw, 17px);
  font-weight: 300;
  color: rgba(245,243,238,0.65);
  line-height: 1.85;
}

.cs-section__body + .cs-section__body {
  padding-top: 4px;
}

/* Image placeholders */
.cs-img-placeholder {
  width: 100%;
  background: var(--surface-dark);
  border: 0.5px solid var(--gray-mid);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.cs-img-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(245,243,238,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245,243,238,0.02) 1px, transparent 1px);
  background-size: 40px 40px;
}

.cs-img-placeholder__label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--graphite);
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 16px;
}

.cs-img-placeholder--wide   { aspect-ratio: 16/9; }
.cs-img-placeholder--cinema { aspect-ratio: 21/9; }
.cs-img-placeholder--square { aspect-ratio: 1/1; }
.cs-img-placeholder--tall   { aspect-ratio: 4/5; }

.cs-img-grid {
  display: grid;
  gap: 12px;
}
.cs-img-grid--2col { grid-template-columns: 1fr 1fr; }
.cs-img-grid--3col { grid-template-columns: 1fr 1fr 1fr; }

.cs-video-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.cs-video-embed {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--surface-dark);
  border-radius: 4px;
  overflow: hidden;
}
.cs-video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Actual images when added */
.cs-img {
  width: 100%;
  display: block;
  border-radius: 2px;
  border: 0.5px solid var(--gray-mid);
  object-fit: cover;
}

.cs-proto-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 12px 24px;
  background: transparent;
  border: 0.5px solid var(--blaze-orange);
  border-radius: 2px;
  color: var(--blaze-orange);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.2s cubic-bezier(0.16, 1, 0.3, 1), color 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.cs-proto-cta svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}
.cs-proto-cta:hover {
  background: var(--blaze-orange);
  color: var(--pitch-black);
}

.cs-photo {
  width: 100%;
  display: block;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 2px;
  border: 0.5px solid var(--gray-mid);
  cursor: pointer;
  transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.cs-photo:hover { opacity: 0.85; }

/* Outcomes strip */
.cs-outcomes {
  background: var(--surface-darker);
  border-top: 0.5px solid var(--gray-mid);
  border-bottom: 0.5px solid var(--gray-mid);
  padding: 72px var(--pad-x);
}

.cs-outcomes__inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.cs-outcomes__label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--blaze-orange);
  margin-bottom: 48px;
  text-align: center;
  display: block;
}

.cs-outcomes__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5px;
  background: var(--gray-mid);
  border: 0.5px solid var(--gray-mid);
}

.cs-outcome {
  background: var(--pitch-black);
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  text-align: center;
}

.cs-outcome__number {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 72px);
  color: var(--warm-white);
  line-height: 1;
  letter-spacing: 0.02em;
}
.cs-outcome__number em {
  font-style: normal;
  color: var(--blaze-orange);
}

.cs-outcome__label {
  font-size: 12px;
  font-weight: 400;
  color: var(--graphite);
  line-height: 1.5;
}

/* Callout / pull quote */
.cs-callout {
  padding: 40px 48px;
  background: var(--surface-dark);
  border: 0.5px solid var(--gray-mid);
  border-left: 2px solid var(--blaze-orange);
  border-radius: 0 2px 2px 0;
}

.cs-callout__text {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.5vw, 34px);
  letter-spacing: 0.02em;
  color: var(--warm-white);
  line-height: 1.15;
  margin-bottom: 12px;
}

.cs-callout__attr {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--graphite);
}

/* Tags */
.cs-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cs-tag {
  font-size: 11px;
  font-weight: 500;
  padding: 5px 12px;
  background: var(--surface-dark);
  border: 0.5px solid var(--gray-mid);
  border-radius: 1px;
  color: rgba(245,243,238,0.55);
  white-space: nowrap;
}

/* Sub-project block */
.cs-subproject {
  padding: 44px 48px;
  background: var(--surface-dark);
  border: 0.5px solid var(--gray-mid);
  border-radius: 2px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cs-subproject__cat {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--blaze-orange);
}

.cs-subproject__title {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.5vw, 34px);
  letter-spacing: 0.04em;
  color: var(--warm-white);
  line-height: 1.1;
}

.cs-subproject__desc {
  font-size: 14px;
  font-weight: 300;
  color: rgba(245,243,238,0.55);
  line-height: 1.75;
}

/* Case study prev/next nav */
.cs-subnav {
  padding: 72px var(--pad-x);
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 0.5px solid var(--gray-mid);
}

.cs-subnav__back,
.cs-subnav__next {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
.cs-subnav__back { flex-direction: row; }
.cs-subnav__next { flex-direction: row-reverse; }

.cs-subnav__label-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cs-subnav__dir {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--graphite);
}

.cs-subnav__name {
  font-family: var(--font-display);
  font-size: clamp(20px, 2vw, 30px);
  letter-spacing: 0.04em;
  color: var(--warm-white);
  line-height: 1.0;
  transition: color 0.2s var(--ease);
}

.cs-subnav__arrow {
  font-size: 24px;
  color: var(--blaze-orange);
  transition: transform 0.2s var(--ease);
  line-height: 1;
}
.cs-subnav__back:hover .cs-subnav__arrow { transform: translateX(-4px); }
.cs-subnav__next:hover .cs-subnav__arrow { transform: translateX(4px); }
.cs-subnav__back:hover .cs-subnav__name,
.cs-subnav__next:hover .cs-subnav__name { color: var(--blaze-orange); }

/* Highlight list */
.cs-highlights {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cs-highlight {
  font-size: 14px;
  font-weight: 400;
  color: rgba(245,243,238,0.6);
  line-height: 1.65;
  padding-left: 20px;
  position: relative;
}
.cs-highlight::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--blaze-orange);
  opacity: 0.7;
}

/* Awards badge strip */
.cs-awards {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cs-award {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--surface-dark);
  border: 0.5px solid var(--gray-mid);
  border-radius: 1px;
}

.cs-award__icon {
  color: var(--blaze-orange);
  font-size: 14px;
  line-height: 1;
}

.cs-award__text {
  font-size: 11px;
  font-weight: 500;
  color: rgba(245,243,238,0.65);
  letter-spacing: 0.5px;
}

/* Responsive */
@media (max-width: 1024px) {
  .cs-meta__inner { grid-template-columns: repeat(2, 1fr); gap: 0; }
  .cs-meta__item { padding: 28px 24px; }
  .cs-meta__item:nth-child(2) { border-right: none; }
  .cs-meta__item:nth-child(3),
  .cs-meta__item:nth-child(4) { border-top: 0.5px solid var(--gray-mid); }
  .cs-meta__item:last-child:nth-child(4) { border-right: none; }
  .cs-meta__item:nth-child(3) { border-right: 0.5px solid var(--gray-mid); padding-left: 0; }
  .cs-section { grid-template-columns: 1fr; gap: 32px; }
  .cs-section__label-col { position: static; }
  .cs-outcomes__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .cs-meta__inner { padding: 0; }
  .cs-meta__item:first-child,
  .cs-meta__item:nth-child(3) { padding-left: 24px; }
  .cs-body { gap: 64px; padding: 64px var(--pad-x); }
  .cs-callout { padding: 28px 24px; }
  .cs-img-grid--3col { grid-template-columns: 1fr; }
  .cs-img-grid--2col { grid-template-columns: 1fr; }
  .cs-video-grid { grid-template-columns: 1fr; }
  .cs-subnav { flex-wrap: wrap; justify-content: space-between; gap: 24px; }
  .cs-subnav__back, .cs-subnav__next { flex: 1 1 220px; }
  .cs-subnav__next { justify-content: flex-end; }
  .cs-subproject { padding: 28px 24px; }
}

@media (max-width: 480px) {
  .cs-meta__inner { grid-template-columns: 1fr; }
  .cs-meta__item { border-right: none !important; padding: 24px var(--pad-x); border-top: 0.5px solid var(--gray-mid) !important; }
  .cs-meta__item:first-child { border-top: none !important; padding-left: var(--pad-x); }
  .cs-outcomes__grid { grid-template-columns: 1fr 1fr; }
  .cs-subnav { flex-direction: column; align-items: center; gap: 28px; }
  .cs-subnav__back, .cs-subnav__next { flex: none; width: 100%; justify-content: center; }
  .cs-subnav__next { flex-direction: row; }
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  padding: var(--sec-pad) var(--pad-x);
  max-width: var(--max-w);
  margin: 0 auto;
  align-items: start;
}

.contact-info__title {
  font-family: var(--font-display);
  font-size: clamp(36px, 4vw, 56px);
  letter-spacing: 0.02em;
  color: var(--warm-white);
  line-height: 1.1;
  margin-bottom: 20px;
}

.contact-info__desc {
  font-size: 15px;
  font-weight: 300;
  color: rgba(245,243,238,0.55);
  line-height: 1.8;
  margin-bottom: 48px;
  max-width: 400px;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.contact-link {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 20px 0;
  border-bottom: 0.5px solid var(--gray-mid);
  text-decoration: none;
  transition: border-color 0.3s var(--ease);
}
.contact-link:first-child { border-top: 0.5px solid var(--gray-mid); }
.contact-link:hover { border-bottom-color: var(--blaze-orange); }

.contact-link__label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--blaze-orange);
}

.contact-link__value {
  font-size: 15px;
  font-weight: 400;
  color: var(--warm-white);
}

.contact-cta {
  background: var(--surface-dark);
  border: 0.5px solid var(--gray-mid);
  border-radius: 2px;
  padding: 56px 48px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.contact-cta__eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--blaze-orange);
}

.contact-cta__title {
  font-family: var(--font-display);
  font-size: clamp(44px, 5vw, 72px);
  letter-spacing: 0.02em;
  color: var(--warm-white);
  line-height: 1.0;
}

.contact-cta__desc {
  font-size: 14px;
  font-weight: 300;
  color: var(--graphite);
  line-height: 1.75;
}

/* Contact Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--blaze-orange);
}

.form-input,
.form-textarea {
  background: var(--surface-darker);
  border: 0.5px solid var(--gray-mid);
  border-radius: 1px;
  color: var(--warm-white);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 300;
  padding: 14px 18px;
  outline: none;
  transition: border-color 0.2s var(--ease);
  width: 100%;
}
.form-input:focus,
.form-textarea:focus { border-color: var(--blaze-orange); }
.form-input::placeholder,
.form-textarea::placeholder { color: var(--graphite); }

.form-textarea {
  resize: vertical;
  min-height: 140px;
  line-height: 1.6;
}

/* Contact success state */
.contact-success {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding: 40px 0;
  animation: fadeUp 0.5s var(--ease) both;
}
.contact-success[hidden] { display: none; }

.contact-success__title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 400;
  color: var(--warm-white);
  letter-spacing: 0.02em;
  margin: 0;
}

.contact-success__body {
  font-size: 16px;
  font-weight: 300;
  color: var(--graphite);
  line-height: 1.6;
  margin: 0;
}

/* ============================================================
   GALLERY MODAL
   ============================================================ */
.gallery-modal {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(10,10,10,0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.gallery-modal[hidden] { display: none; }

.gallery-modal__content {
  position: relative;
  max-width: min(1080px, calc(100vw - 48px));
  max-height: calc(100vh - 48px);
  width: 100%;
  display: flex;
  flex-direction: column;
}

.gallery-modal__close,
.gallery-modal__prev,
.gallery-modal__next {
  position: fixed;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--surface-dark);
  border: 0.5px solid var(--gray-mid);
  border-radius: 2px;
  color: var(--warm-white);
  cursor: pointer;
  transition: border-color 0.2s cubic-bezier(0.16,1,0.3,1), color 0.2s cubic-bezier(0.16,1,0.3,1);
}
.gallery-modal__close svg,
.gallery-modal__prev svg,
.gallery-modal__next svg { width: 14px; height: 14px; pointer-events: none; }
.gallery-modal__close:hover,
.gallery-modal__prev:hover,
.gallery-modal__next:hover {
  border-color: var(--blaze-orange);
  color: var(--blaze-orange);
}
.gallery-modal__close { top: 24px; right: 24px; }
.gallery-modal__prev  { left: 24px; top: 50%; transform: translateY(-50%); }
.gallery-modal__next  { right: 24px; top: 50%; transform: translateY(-50%); }
.gallery-modal__prev[hidden],
.gallery-modal__next[hidden] { display: none; }

.gallery-modal__content {
  animation: lb-in 0.25s cubic-bezier(0.16,1,0.3,1);
}
@keyframes lb-in {
  from { opacity: 0; transform: scale(0.97); }
  to   { opacity: 1; transform: scale(1); }
}

/* Case study lightbox trigger */
.cs-award-row {
  display: flex;
  align-items: flex-start;
  gap: 24px;
}
.cs-award-row__img {
  flex: 0 0 25%;
  width: 25%;
}
.cs-award-row .cs-highlights {
  flex: 1;
}

.cs-lb-btn {
  display: block;
  width: 100%;
  padding: 0;
  background: none;
  border: none;
  cursor: zoom-in;
}
.cs-lb-btn .cs-img {
  transition: opacity 0.2s cubic-bezier(0.16,1,0.3,1);
}
.cs-lb-btn:hover .cs-img { opacity: 0.82; }

.gallery-modal__frame {
  border: 0.5px solid var(--gray-mid);
  border-radius: 2px;
  overflow: hidden;
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-modal__img {
  max-width: 100%;
  max-height: calc(100vh - 96px);
  width: auto;
  height: auto;
  display: block;
  object-fit: contain;
}

.gallery-modal__caption {
  margin-top: 12px;
  font-size: 12px;
  color: var(--graphite);
  text-align: center;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .cv-layout { grid-template-columns: 1fr; gap: 48px; }
  .cv-sidebar { position: static; }
  .about-layout { grid-template-columns: 1fr; gap: 48px; }
  .about-headshot { order: -1; max-width: 280px; margin: 0 auto; position: static; }
  .contact-body { grid-template-columns: 1fr; gap: 56px; }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
}

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

  /* backdrop-filter creates a containing block for position:fixed children,
     clipping the fullscreen menu overlay to the nav height — disable on mobile */
  .nav,
  .nav.scrolled,
  .nav.menu-open {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .nav.menu-open {
    background: #0A0A0A;
    border-bottom-color: var(--border-dark);
  }

  .nav__links {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(10,10,10,0.98);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 44px;
    z-index: 999;
  }
  .nav__links.open { display: flex; }
  .nav__links a { font-size: 14px; letter-spacing: 4px; }
  .nav__toggle { display: flex; }

  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .about-tools__grid { grid-template-columns: 1fr; }
  .hobby-grid { grid-template-columns: 1fr; }
  .hobby-card { border-right: none; border-bottom: 0.5px solid var(--gray-mid); }
  .hobby-card:last-child { border-bottom: none; }
  .hobby-card:nth-child(3n) { border-right: none; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .portfolio-secondary-grid { grid-template-columns: 1fr; }
  .portfolio-hero-card__content { padding: 24px 20px 20px; }
  .portfolio-divider { padding: 40px var(--pad-x); }
  .form-row { grid-template-columns: 1fr; }
  .contact-cta { padding: 40px 28px; }
  .footer { flex-direction: column; text-align: center; }
  .footer__links { flex-wrap: wrap; justify-content: center; }
}

@media (max-width: 639px) {
  .stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat-cell:nth-child(2) { border-right: none; }
  .stat-cell:nth-child(1),
  .stat-cell:nth-child(2) { border-bottom: 0.5px solid var(--gray-mid); }
  .services__grid { grid-template-columns: 1fr; }
}
