/* ── VERSION 2 — DARK WARM CINEMATIC ───────────────────────── */

:root {
  /* Red accent — exact brand colour */
  --crimson:      #4E0707;
  --crimson-mid:  #6b0e0e;
  --crimson-light:#7a1010;  /* used for em/italic accents — stays in dark red family */
  --crimson-glow: rgba(78,7,7,0.35);

  /* Dark warm backgrounds — graduated warmth */
  --bg-base:      #130e0e;   /* hero / deepest */
  --bg-section:   #1c1512;   /* primary sections */
  --bg-card:      #251b17;   /* cards / panels */
  --bg-subtle:    #2e2219;   /* hover states, borders */
  --bg-red:       #4E0707;   /* hero red sections */
  --bg-red-dark:  #3a0505;   /* darker red variant */

  /* Text */
  --text-primary: #f5f0eb;   /* near-white, very slight warmth */
  --text-muted:   #7a6a5a;   /* warm mid-gray */
  --text-faint:   #3d2e22;   /* very subtle */
  --white:        #ffffff;

  /* Legacy aliases used elsewhere in stylesheet */
  --beige:        #1c1512;
  --beige-dark:   #251b17;
  --beige-mid:    rgba(245,240,235,0.12);  /* borders on dark */
  --charcoal:     #130e0e;
  --warm-gray:    #8a7060;
  --off-white:    #e8ddd4;
  --accent-warm:  #c9845a;
  --accent-rust:  #a05535;

  /* Tiffany tokens remapped to readable warm-rust accent (fits video) */
  --tiffany:      #d98b6a;   /* readable accent text on dark/red */
  --tiffany-mid:  #c0654a;   /* lines, dots */
  --tiffany-deep: #4E0707;   /* button/element backgrounds only */

  --font-display: 'Bebas Neue', 'Arial Narrow', sans-serif;
  --font-body:    'Inter', 'DM Sans', sans-serif;
  --font-mono:    'DM Mono', monospace;

  --ease-smooth: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-gentle: cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { font-size: 16px; scroll-behavior: smooth; }

body {
  background: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── SELECTION ─────────────────────────────── */
::selection { background: var(--crimson); color: var(--white); }

/* ── CUSTOM SCROLLBAR ─────────────────────── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg-base); }
::-webkit-scrollbar-thumb { background: var(--crimson-mid); border-radius: 2px; }

/* ── CURSOR ─────────────────────────────────── */
.cursor-dot {
  width: 8px; height: 8px;
  background: var(--crimson);
  border-radius: 50%;
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.1s, width 0.25s, height 0.25s, background 0.25s;
}
.cursor-ring {
  width: 32px; height: 32px;
  border: 1.5px solid var(--crimson);
  border-radius: 50%;
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 9998;
  transform: translate(-50%, -50%);
  transition: transform 0.25s var(--ease-gentle), width 0.3s, height 0.3s, border-color 0.3s;
}
body:hover .cursor-dot { opacity: 1; }
a:hover ~ .cursor-dot, button:hover ~ .cursor-dot { width: 12px; height: 12px; }

/* ── VERSION SWITCHER BUTTON ─────────────── */
.version-switcher {
  position: fixed;
  top: 20px; left: 20px;
  z-index: 1000;
  display: flex; align-items: center; gap: 8px;
  background: var(--charcoal);
  color: var(--beige);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 10px 16px;
  border-radius: 2px;
  transition: background 0.2s, color 0.2s;
}
.version-switcher:hover { background: var(--tiffany-deep); color: var(--white); }
.version-switcher .badge {
  background: var(--tiffany);
  color: var(--charcoal);
  padding: 2px 6px;
  border-radius: 2px;
  font-size: 9px;
  font-weight: 700;
}

/* ── NAV ────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 5vw;
  height: 72px;
  background: rgba(19, 14, 14, 0.5);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(78,7,7,0.25);
  transition: background 0.3s;
}
.nav.scrolled { background: rgba(19, 14, 14, 0.95); box-shadow: 0 1px 32px rgba(0,0,0,0.6); }
.nav-logo {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 400;
  color: var(--white);
  text-decoration: none;
  letter-spacing: 0.08em;
}
.nav-links {
  display: flex; align-items: center; gap: 40px;
  list-style: none;
}
.nav-links a {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  position: relative;
  transition: color 0.2s;
}
.nav-links a::after {
  content: '';
  position: absolute; bottom: -3px; left: 0;
  width: 0; height: 1px;
  background: var(--crimson);
  transition: width 0.3s var(--ease-smooth);
}
.nav-links a:hover, .nav-links a.active { color: var(--white); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-cta {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.3);
  padding: 10px 22px;
  transition: background 0.25s, border-color 0.25s;
}
.nav-cta:hover { background: var(--crimson); border-color: var(--crimson); }

/* ── HERO (non-home pages) ───────────────────── */
.hero {
  min-height: 70svh;
  padding: 160px 5vw 80px;
  display: flex; flex-direction: column; justify-content: flex-end;
  position: relative; overflow: hidden;
  background: var(--bg-base);
}
.hero-bg-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.14;
  filter: grayscale(60%);
  transform-origin: center;
  will-change: transform;
}
.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--tiffany);
  margin-bottom: 24px;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(72px, 11vw, 180px);
  line-height: 0.88;
  letter-spacing: -0.03em;
  font-weight: 700;
  color: var(--text-primary);
  max-width: 14ch;
}
.hero-title em { font-style: italic; color: var(--tiffany); }
.hero-sub-row {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-top: 60px; gap: 40px;
}
.hero-desc {
  font-size: 17px; line-height: 1.7;
  color: var(--warm-gray); max-width: 420px;
}
.hero-cta-group { display: flex; gap: 16px; align-items: center; flex-shrink: 0; }
.hero-scroll-hint {
  position: absolute; bottom: 36px; left: 5vw;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--warm-gray);
}
.hero-scroll-line {
  width: 1px; height: 48px;
  background: linear-gradient(to bottom, var(--tiffany-mid), transparent);
  animation: scrollLine 1.8s ease-in-out infinite;
}
@keyframes scrollLine {
  0%, 100% { transform: scaleY(1); opacity: 1; }
  50%       { transform: scaleY(0.4); opacity: 0.4; }
}

/* ── SCROLL-SCRUB VIDEO HERO ─── */

.hero--intro {
  height: 100svh;
  padding: 0;
  position: relative;
  overflow: hidden;
  background: #000;
}

/* Video fills full viewport */
.hero-video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0;
}

.hero-scrub-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-end-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}

/* Buffering indicator (shown only while frames are still downloading) */
.hero-buffering {
  position: absolute;
  bottom: 28px; right: 28px;
  z-index: 4;
  display: flex; align-items: center; gap: 10px;
  padding: 9px 16px;
  background: rgba(19,14,14,0.6);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  opacity: 0; transform: translateY(8px);
  transition: opacity 0.3s, transform 0.3s;
  pointer-events: none;
}
.hero-buffering.is-visible { opacity: 1; transform: none; }
.hero-buffering-spinner {
  width: 13px; height: 13px;
  border: 2px solid rgba(255,255,255,0.25);
  border-top-color: var(--tiffany);
  border-radius: 50%;
  animation: heroSpin 0.7s linear infinite;
}
@keyframes heroSpin { to { transform: rotate(360deg); } }

/* Cinematic gradient: dark bottom-left, fades right */
.hero-video-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right,  rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0.0) 80%),
    linear-gradient(to top,    rgba(0,0,0,0.5)  0%, rgba(0,0,0,0.0) 50%);
  pointer-events: none;
}

/* Left overlay: headings + bottom bar */
.hero-left {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 100px 5vw 56px 6vw;
  max-width: 55%;
}

/* Headings stack */
.intro-stage {
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: center;
}

.intro-h-outline,
.intro-h-solid {
  font-family: var(--font-display);
  font-size: clamp(64px, 9.5vw, 160px);
  line-height: 0.92;
  letter-spacing: 0.04em;
  font-weight: 400;
  font-style: normal;
  text-transform: uppercase;
  margin: 0;
  white-space: nowrap;
}

.intro-h-outline {
  -webkit-text-stroke: 1.5px rgba(255,255,255,0.7);
  color: transparent;
  opacity: 0;
  transform: translateX(-40px);
}

.intro-h-solid {
  color: var(--white);
  opacity: 0;
  transform: translateX(-40px);
}

/* Bottom bar — sits at bottom of hero-left, flush left */
.intro-bottom {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  margin-top: 48px;
  opacity: 0;
  transform: translateY(20px);
}
.intro-cta-group { display: flex; gap: 10px; align-items: center; }

/* Buttons */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body);
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--crimson);
  text-decoration: none;
  padding: 14px 28px;
  border: 1px solid var(--crimson);
  transition: background 0.25s, transform 0.2s var(--ease-smooth), border-color 0.25s;
}
.btn-primary:hover { background: var(--crimson-deep); border-color: var(--crimson-deep); transform: translateY(-2px); }
.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body);
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.25);
  padding: 13px 28px;
  background: transparent;
  transition: border-color 0.25s, background 0.25s, color 0.25s;
}
.btn-outline:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.6); color: #fff; }

/* Thin progress bar at the very bottom of the viewport */
.hero-video-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 3;
  background: rgba(255,255,255,0.15);
}
.hero-video-progress-bar {
  height: 100%;
  width: 0%;
  background: var(--tiffany);
  transition: width 0.05s linear;
}

/* Mobile */
@media (max-width: 768px) {
  .hero-left { max-width: 100%; padding: 100px 6vw 48px; }
  .intro-h-outline,
  .intro-h-solid { font-size: clamp(40px, 12vw, 80px); }
}

/* ── SECTION COMMON ────────────────────────── */
.section {
  padding: 120px 5vw;
}
.section-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(245,240,235,0.55);
  margin-bottom: 20px;
  display: flex; align-items: center; gap: 12px;
}
.section-label::before {
  content: '';
  display: block;
  width: 32px; height: 1px;
  background: rgba(245,240,235,0.4);
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 5.5vw, 88px);
  line-height: 0.94;
  letter-spacing: -0.025em;
  font-weight: 700;
  color: var(--text-primary);
}
.section-title em { font-style: italic; color: transparent; -webkit-text-stroke: 1.2px rgba(245,240,235,0.55); }

/* ── ABOUT STRIP ────────────────────────────── */
.about-strip {
  background: var(--bg-red);
  color: var(--text-primary);
  padding: 80px 5vw;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.about-strip-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 72px);
  line-height: 1;
  letter-spacing: -0.02em;
  font-weight: 700;
}
.about-strip-title em { font-style: italic; color: rgba(255,255,255,0.5); }
.about-strip-body {
  font-size: 17px; line-height: 1.75; color: rgba(245,240,235,0.65);
}
.stat-row { display: flex; gap: 48px; margin-top: 40px; }
.stat { display: flex; flex-direction: column; gap: 6px; }
.stat-num {
  font-family: var(--font-display);
  font-size: 48px; line-height: 1;
  letter-spacing: -0.03em;
  font-weight: 700;
  color: var(--white);
}
.stat-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(245,240,235,0.5); }

/* ── MARQUEE ─────────────────────────────────── */
.marquee-section {
  overflow: hidden; padding: 32px 0;
  border-top: 1px solid var(--bg-subtle);
  border-bottom: 1px solid var(--bg-subtle);
  background: var(--bg-red);
}
.marquee-track {
  display: flex; gap: 0;
  white-space: nowrap;
  animation: marqueeScroll 28s linear infinite;
}
.marquee-item {
  display: inline-flex; align-items: center; gap: 24px;
  padding: 0 40px;
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 52px);
  font-style: italic;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--white);
  flex-shrink: 0;
}
.marquee-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.5); flex-shrink: 0; }
@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── PORTRAIT GRID ───────────────────────────── */
.portrait-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.portrait-card {
  position: relative; overflow: hidden;
  background: var(--bg-card);
  cursor: pointer;
}
.portrait-card img {
  width: 100%; height: 560px;
  object-fit: cover; object-position: center;
  filter: grayscale(15%);
  transition: transform 0.8s var(--ease-smooth), filter 0.5s;
  will-change: transform;
}
.portrait-card:hover img { transform: scale(1.04); filter: grayscale(0%); }
.portrait-card-info {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 32px;
  background: linear-gradient(to top, rgba(26,26,26,0.85) 0%, transparent 100%);
  color: var(--white);
  z-index: 3;
}
.portrait-card-name {
  font-family: var(--font-display);
  font-size: 36px; line-height: 1; letter-spacing: -0.01em;
  font-weight: 700; font-style: italic;
}
.portrait-card-role {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--tiffany); margin-top: 8px;
}
.portrait-card-tag {
  position: absolute; top: 24px; right: 24px;
  background: var(--bg-subtle);
  color: var(--text-primary);
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 8px 14px;
}

/* ── CURVED LOOP SECTION ─────────────────────── */
.curved-loop-section {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 100px 0;
  position: relative;
}
.curved-loop-section::before,
.curved-loop-section::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 15%;
  pointer-events: none;
  z-index: 2;
}
.curved-loop-section::before {
  left: 0;
  background: linear-gradient(to right, var(--bg-base) 0%, transparent 100%);
}
.curved-loop-section::after {
  right: 0;
  background: linear-gradient(to left, var(--bg-base) 0%, transparent 100%);
}
.curved-loop-container {
  width: 120%;
  max-width: 2000px;
  cursor: grab;
  margin-left: -10%;
}
.curved-loop-container:active {
  cursor: grabbing;
}
.curved-loop-svg {
  width: 100%;
  height: auto;
  overflow: visible;
  font-size: clamp(56px, 10vw, 120px);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.curved-loop-svg text {
  fill: var(--text-primary);
}

/* ── PORTFOLIO GRID ──────────────────────────── */
.portfolio-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  margin-top: 60px;
}
.portfolio-item {
  position: relative; overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--bg-card);
  cursor: pointer;
}
.portfolio-item.tall { aspect-ratio: 3/4; }
.portfolio-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(20%);
  transition: transform 0.9s var(--ease-smooth), filter 0.5s;
  will-change: transform;
}
.portfolio-item:hover img { transform: scale(1.06); filter: grayscale(0%); }
.portfolio-overlay {
  position: absolute; inset: 0;
  background: rgba(26,26,26,0);
  display: flex; flex-direction: column;
  justify-content: flex-end; padding: 32px;
  transition: background 0.4s;
}
.portfolio-item:hover .portfolio-overlay { background: rgba(26,26,26,0.55); }
.portfolio-meta {
  opacity: 0; transform: translateY(16px);
  transition: opacity 0.35s var(--ease-smooth), transform 0.35s var(--ease-smooth);
  color: var(--white);
}
.portfolio-item:hover .portfolio-meta { opacity: 1; transform: translateY(0); }
.portfolio-category {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--tiffany); margin-bottom: 8px;
}
.portfolio-name {
  font-family: var(--font-display); font-size: 28px;
  line-height: 1.1; letter-spacing: -0.01em;
  font-weight: 700; font-style: italic;
}

/* ── SERVICES LIST ───────────────────────────── */
.services-list { margin-top: 60px; }
.service-row {
  display: flex; align-items: center;
  justify-content: space-between;
  padding: 36px 0;
  border-top: 1px solid var(--beige-mid);
  gap: 24px;
  cursor: pointer;
  transition: padding 0.3s var(--ease-smooth);
  position: relative;
  overflow: hidden;
}
.service-row::before {
  content: '';
  position: absolute; top: 0; left: -100%; width: 100%; height: 1px;
  background: var(--crimson);
  transition: left 0.5s var(--ease-smooth);
}
.service-row:hover::before { left: 0; }
.service-row:last-child { border-bottom: 1px solid var(--beige-mid); }
.service-num {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--tiffany); letter-spacing: 0.08em;
  flex-shrink: 0; width: 36px;
}
.service-name {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 52px);
  line-height: 1; letter-spacing: -0.02em;
  font-weight: 700; flex: 1;
  transition: color 0.25s, transform 0.3s var(--ease-smooth);
}
.service-row:hover .service-name { color: var(--tiffany); transform: translateX(8px); }
.service-arrow {
  width: 40px; height: 40px;
  border: 1px solid var(--bg-subtle);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); flex-shrink: 0;
  transition: background 0.25s, border-color 0.25s, color 0.25s, transform 0.35s var(--ease-smooth);
}
.service-row:hover .service-arrow {
  background: var(--crimson); border-color: var(--crimson);
  color: var(--white); transform: rotate(45deg);
}
.service-tags {
  display: flex; gap: 8px; flex-wrap: wrap; max-width: 260px;
  flex-shrink: 0;
}
.service-tag {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-muted); border: 1px solid var(--bg-subtle);
  padding: 6px 12px;
}

/* ── CONTACT ─────────────────────────────────── */
.contact-layout {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: start;
}
.contact-form { margin-top: 40px; }
.form-group { margin-bottom: 32px; }
.form-label {
  display: block; font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 10px;
}
.form-input, .form-textarea {
  width: 100%; background: transparent;
  border: none; border-bottom: 1px solid var(--bg-subtle);
  padding: 12px 0; font-family: var(--font-body);
  font-size: 16px; color: var(--text-primary);
  outline: none; transition: border-color 0.25s;
  resize: none;
}
.form-input:focus, .form-textarea:focus { border-color: var(--crimson-light); }
.form-input::placeholder, .form-textarea::placeholder { color: var(--text-faint); }
.form-textarea { min-height: 120px; }
.contact-info { display: flex; flex-direction: column; gap: 40px; padding-top: 40px; }
.contact-info-item { display: flex; flex-direction: column; gap: 8px; }
.contact-info-label {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--tiffany);
}
.contact-info-value {
  font-family: var(--font-display); font-size: 28px;
  line-height: 1.2; font-weight: 700;
  color: var(--text-primary); text-decoration: none;
  transition: color 0.2s;
}
.contact-info-value:hover { color: var(--tiffany); }
.contact-portrait {
  margin-top: 48px;
  position: relative;
}
.contact-portrait img {
  width: 100%; height: 320px;
  object-fit: cover; filter: grayscale(20%);
}
.contact-portrait-caption {
  position: absolute; bottom: -16px; right: -16px;
  background: var(--crimson); color: var(--white);
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 12px 20px;
}

/* ── FOOTER ─────────────────────────────────── */
.footer {
  background: var(--bg-red-dark); color: var(--text-primary);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 80px 5vw 40px;
}
.footer-top {
  display: flex; justify-content: space-between; align-items: flex-start;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-logo {
  font-family: var(--font-display);
  font-size: 48px; line-height: 1; letter-spacing: -0.02em;
  font-weight: 700; font-style: italic;
  color: var(--white);
}
.footer-logo span { color: rgba(255,255,255,0.4); }
.footer-links { display: flex; gap: 32px; }
.footer-links a {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(245,240,232,0.5); text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--tiffany); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 32px;
}
.footer-copy {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.06em; color: rgba(245,240,232,0.35);
}
.footer-socials { display: flex; gap: 24px; }
.footer-socials a {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: rgba(245,240,232,0.4); text-decoration: none;
  transition: color 0.2s;
}
.footer-socials a:hover { color: var(--tiffany); }

/* ── PHOTO FLOAT ─────────────────────────────── */
.photo-float {
  position: relative; display: grid;
  grid-template-columns: 1fr 1fr; gap: 16px;
}
.photo-float-img {
  position: relative; overflow: hidden;
}
.photo-float-img img {
  width: 100%; height: 280px;
  object-fit: cover;
  filter: grayscale(15%);
  transition: transform 0.7s var(--ease-smooth);
}
.photo-float-img:hover img { transform: scale(1.05); }
.photo-float-img:first-child { margin-top: 48px; }

/* ── TIFFANY DIVIDER ─────────────────────────── */
.tiffany-divider {
  width: 48px; height: 2px;
  background: var(--crimson);
  margin: 24px 0;
}

/* ── PROCESS STEPS ───────────────────────────── */
.process-steps { display: flex; flex-direction: column; gap: 0; margin-top: 48px; }
.process-step {
  display: grid; grid-template-columns: 80px 1fr;
  gap: 32px; align-items: start;
  padding: 32px 0;
  border-top: 1px solid var(--beige-mid);
}
.process-step:last-child { border-bottom: 1px solid var(--beige-mid); }
.process-step-num {
  font-family: var(--font-display);
  font-size: 64px; line-height: 1; letter-spacing: -0.04em;
  font-weight: 700; color: var(--bg-subtle);
  transition: color 0.3s;
}
.process-step:hover .process-step-num { color: var(--tiffany); }
.process-step-content h3 {
  font-family: var(--font-display); font-size: 28px;
  line-height: 1.1; letter-spacing: -0.01em; font-weight: 700;
  color: var(--text-primary); margin-bottom: 10px;
}
.process-step-content p { font-size: 15px; line-height: 1.7; color: var(--text-muted); }

/* ── PROCESS TIMELINE (services page) ───────────── */
.process-timeline-section { background: var(--bg-section); }
.process-timeline {
  position: relative;
  margin-top: 64px;
  padding-left: 80px;
}
.process-timeline-track {
  position: absolute;
  left: 24px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--beige-mid);
}
.process-timeline-line {
  position: absolute;
  top: 0; left: 0;
  width: 2px;
  height: 0%;
  background: var(--crimson);
  transform-origin: top center;
}
.process-timeline-items {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.process-tl-item {
  position: relative;
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 32px;
  align-items: start;
  padding: 40px 0;
  border-bottom: 1px solid var(--beige-mid);
}
.process-tl-item:first-child { border-top: 1px solid var(--beige-mid); }
.process-tl-dot {
  position: absolute;
  left: -68px;
  top: 48px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--beige);
  border: 2px solid var(--beige-mid);
  transition: border-color 0.3s, background 0.3s;
  z-index: 1;
}
.process-tl-item.is-visible .process-tl-dot {
  border-color: var(--crimson);
  background: var(--crimson);
}
.process-tl-num {
  font-family: var(--font-display);
  font-size: 64px; line-height: 1; letter-spacing: -0.04em;
  font-weight: 700; color: var(--bg-subtle);
  transition: color 0.3s;
  padding-top: 4px;
}
.process-tl-item:hover .process-tl-num,
.process-tl-item.is-visible .process-tl-num { color: var(--tiffany); }
.process-tl-content h3 {
  font-family: var(--font-display); font-size: 28px;
  line-height: 1.1; letter-spacing: -0.01em; font-weight: 700;
  color: var(--text-primary); margin-bottom: 10px;
  padding-top: 8px;
}
.process-tl-content p { font-size: 15px; line-height: 1.7; color: var(--text-muted); }
@media(max-width:768px) {
  .process-timeline { padding-left: 48px; }
  .process-timeline-track { left: 16px; }
  .process-tl-dot { left: -40px; }
  .process-tl-item { grid-template-columns: 48px 1fr; gap: 16px; }
  .process-tl-num { font-size: 40px; }
}

/* ── PROCESS CENTER LINE (services page) ─────────── */
.process-center-section {
  position: relative;
  background: var(--bg-section);
  padding-bottom: 120px;
}

/* Center line container - full height of section */
.process-center-line {
  position: absolute;
  left: 50%;
  top: 200px;
  bottom: 100px;
  width: 2px;
  transform: translateX(-50%);
  background: none;
  overflow: hidden;
  z-index: 1;
}

/* The animated progress line - grows with scroll via scaleY */
.process-line-progress {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--crimson);
  box-shadow: 0 0 20px rgba(78, 7, 7, 0.4), 0 0 40px rgba(78, 7, 7, 0.2);
  transform: scaleY(0);
  transform-origin: top center;
  will-change: transform;
}

/* Cards wrapper */
.process-cards-wrapper {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 80px auto 0;
  padding: 0 5vw;
  perspective: 1200px;
  overflow: hidden;
}

/* Cards visible by default, GSAP will animate from hidden state */

/* Individual process card — no images, each side of center line */
.process-card {
  display: flex;
  align-items: flex-start;
  margin-bottom: 100px;
  will-change: opacity, transform;
}

.process-card:last-child {
  margin-bottom: 0;
}

/* Left card: image LEFT of line, content RIGHT of line */
.process-card-left {
  justify-content: space-between;
}
.process-card-left .process-card-image {
  width: 44%;
  padding-right: 48px;
}
.process-card-left .process-card-content {
  width: 44%;
  padding-left: 48px;
  padding-right: 0;
}

/* Right card: content LEFT of line, image RIGHT of line */
.process-card-right {
  justify-content: space-between;
}
.process-card-right .process-card-image {
  width: 44%;
  padding-left: 48px;
}
.process-card-right .process-card-content {
  width: 44%;
  padding-right: 48px;
  padding-left: 0;
  text-align: right;
}
.process-card-right .process-card-content p {
  margin-left: auto;
}

/* Card image */
.process-card-image {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  flex-shrink: 0;
}
.process-card-image img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  filter: grayscale(20%);
  display: block;
  will-change: transform;
}

/* Card content */
.process-card-content {
  padding: 24px 0;
}
.process-card-num {
  font-family: var(--font-display);
  font-size: clamp(64px, 8vw, 120px);
  line-height: 1;
  letter-spacing: -0.04em;
  font-weight: 700;
  color: var(--beige-mid);
  margin-bottom: 16px;
  font-style: italic;
}
.process-card-content h3 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 20px;
  font-style: italic;
}
.process-card-content p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--warm-gray);
  max-width: 400px;
}

/* Mobile layout */
@media(max-width: 900px) {
  .process-center-line {
    left: 16px;
    top: 140px;
    bottom: 80px;
    transform: none;
  }
  .process-cards-wrapper { padding: 0 5vw 0 36px; }
  .process-card {
    flex-direction: column !important;
    gap: 24px;
    margin-bottom: 56px;
    margin-left: 0;
  }
  .process-card-left .process-card-image,
  .process-card-right .process-card-image,
  .process-card-left .process-card-content,
  .process-card-right .process-card-content {
    width: 100% !important;
    padding: 0 !important;
    text-align: left !important;
  }
  .process-card-right .process-card-content p { margin-left: 0 !important; }
  .process-card-image img {
    height: 220px;
  }
  .process-card-num {
    font-size: 56px;
  }
  .process-card-content h3 {
    font-size: 28px;
  }
}

/* ── SCROLL REVEAL STATES ─────────────────────── */
/* Hidden states apply ONLY after JS adds .reveal (progressive enhancement):
   if JS fails to load, all content stays visible. */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  will-change: opacity, transform;
}
.reveal.reveal-fade  { transform: none; }
.reveal.reveal-left  { transform: translateX(-40px); }
.reveal.reveal-right { transform: translateX(40px); }
/* Transition only enabled after first paint to avoid a fade-out flash */
body.reveals-ready .reveal {
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.is-visible   { opacity: 1; transform: none; }

/* ── DIAGONAL MARQUEE (bazil.fr style) ─────────────────────── */
.diagonal-marquee-section {
  position: relative;
  overflow: hidden;
  padding: 100px 0;
  background: var(--bg-section);
}
.diagonal-marquee-row {
  display: flex;
  white-space: nowrap;
  width: max-content;
  gap: 0;
}
.diagonal-marquee-row--top {
  transform: rotate(-6deg) translateX(-5%);
  margin-bottom: 16px;
  animation: diagMarquee1 18s linear infinite;
}
.diagonal-marquee-row--bottom {
  transform: rotate(-6deg) translateX(-15%);
  animation: diagMarquee2 22s linear infinite reverse;
}
@keyframes diagMarquee1 {
  from { transform: rotate(-6deg) translateX(0%); }
  to   { transform: rotate(-6deg) translateX(-50%); }
}
@keyframes diagMarquee2 {
  from { transform: rotate(-6deg) translateX(-10%); }
  to   { transform: rotate(-6deg) translateX(-60%); }
}
.diag-item {
  display: inline-flex; align-items: center; gap: 32px;
  padding: 0 32px;
  font-family: var(--font-display);
  font-size: clamp(52px, 7vw, 110px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  flex-shrink: 0;
}
.diag-item--outline {
  -webkit-text-stroke: 1.5px var(--bg-subtle);
  color: transparent;
}
.diag-item--tiffany { color: var(--tiffany); }
.diag-item em { font-style: italic; }
.diag-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--crimson); flex-shrink: 0; }
.diag-dot--outline { background: transparent; border: 2px solid var(--text-muted); }

/* ── CODE SNIPPET ELEMENT ──────────────────────────────────── */
.code-hero-block {
  position: relative;
  max-width: 580px;
  user-select: none;
}
.code-window {
  background: #1c1b1b;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(26,26,26,0.22), 0 8px 24px rgba(26,26,26,0.12);
  position: relative; z-index: 2;
}
.code-window-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 14px 20px;
  background: #252424;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.code-dot { width: 12px; height: 12px; border-radius: 50%; }
.code-dot-red    { background: #ff5f57; }
.code-dot-yellow { background: #febc2e; }
.code-dot-green  { background: #28c840; }
.code-body {
  padding: 28px 32px 32px;
  font-family: var(--font-mono);
  font-size: 13.5px;
  line-height: 1.9;
  color: #cdd3de;
}
.code-kw   { color: #c792ea; }
.code-fn   { color: #82aaff; }
.code-str  { color: #c3e88d; }
.code-num  { color: #f78c6c; }
.code-var  { color: #ffcb6b; }
.code-muted{ color: #546e7a; }
.code-prop { color: #89ddff; }
.code-tag {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 10px 16px; z-index: 4;
  box-shadow: 4px 4px 0 rgba(0,0,0,0.15);
}
.code-tag--nextjs  { background: #b5f542; color: #1a1a1a; top: -18px; right: -20px; }
.code-tag--ts      { background: var(--bg-card); color: var(--text-primary); border: 1px solid var(--beige-mid); bottom: 80px; right: -28px; }
.code-tag--rust    { background: #ffd4c2; color: #7a2c00; bottom: -14px; left: -6px; }
.code-shadow-box {
  position: absolute; inset: 12px -12px -12px 12px;
  background: var(--tiffany);
  border-radius: 10px; z-index: 1;
}

/* ── BENTO GRID (floating portfolio cards) ─────────────────── */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
  margin-top: 72px;
}
.bento-card {
  position: relative; overflow: hidden;
  background: var(--bg-card);
  cursor: pointer;
  transition: box-shadow 0.4s;
  will-change: transform;
  transform-style: preserve-3d;
}
.bento-card--large  { grid-column: span 7; aspect-ratio: 16/10; }
.bento-card--medium { grid-column: span 5; aspect-ratio: 4/3; }
.bento-card--wide   { grid-column: span 8; aspect-ratio: 21/9; }
.bento-card--small  { grid-column: span 4; aspect-ratio: 1/1; }
.bento-card img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.9s var(--ease-smooth), filter 0.5s;
  filter: grayscale(15%) contrast(1.02);
  will-change: transform;
}
.bento-card:hover img { transform: scale(1.07); filter: grayscale(0%); }
.bento-card:hover { box-shadow: 0 24px 64px rgba(26,26,26,0.18); }
.bento-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(160deg, transparent 40%, rgba(26,26,26,0.75) 100%);
  opacity: 0; transition: opacity 0.4s;
  display: flex; flex-direction: column; justify-content: flex-end; padding: 32px;
  color: var(--white);
}
.bento-card:hover .bento-overlay { opacity: 1; }
.bento-label {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--tiffany); margin-bottom: 8px;
  transform: translateY(12px); transition: transform 0.4s var(--ease-smooth);
}
.bento-title {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.2vw, 34px);
  line-height: 1.1; letter-spacing: -0.02em;
  font-weight: 700; font-style: italic;
  transform: translateY(12px); transition: transform 0.4s var(--ease-smooth) 0.04s;
}
.bento-card:hover .bento-label,
.bento-card:hover .bento-title { transform: translateY(0); }
.bento-index {
  position: absolute; top: 20px; left: 20px;
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--white); background: rgba(26,26,26,0.5);
  backdrop-filter: blur(6px); padding: 6px 12px; z-index: 2;
}
.bento-card--featured::after {
  content: 'Featured';
  position: absolute; top: 20px; right: 20px;
  background: var(--crimson); color: var(--white);
  font-family: var(--font-mono); font-size: 9px;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 6px 12px; z-index: 2;
}

/* ── HORIZONTAL SCROLL STRIP ────────────────────────────────── */
.h-scroll-section {
  overflow: hidden; padding: 80px 0 80px 5vw;
  background: var(--bg-red);
}
.h-scroll-track { display: flex; gap: 24px; width: max-content; }
.h-scroll-card {
  width: 340px; flex-shrink: 0;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 40px 32px; position: relative;
  transition: background 0.3s, border-color 0.3s, transform 0.4s var(--ease-smooth);
  cursor: pointer;
}
.h-scroll-card:hover {
  background: rgba(129,212,200,0.08);
  border-color: var(--tiffany-mid);
  transform: translateY(-6px);
}
.h-scroll-num {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.1em; color: var(--tiffany-mid); margin-bottom: 24px;
}
.h-scroll-title {
  font-family: var(--font-display); font-size: 26px;
  font-weight: 700; font-style: italic;
  color: var(--white); line-height: 1.15;
  letter-spacing: -0.01em; margin-bottom: 14px;
}
.h-scroll-body { font-size: 14px; line-height: 1.7; color: rgba(245,240,232,0.55); }
.h-scroll-arrow {
  position: absolute; bottom: 28px; right: 28px;
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center;
  color: rgba(245,240,232,0.4);
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.h-scroll-card:hover .h-scroll-arrow { background: var(--tiffany-deep); border-color: var(--tiffany-deep); color: var(--white); }

/* ── NOISE GRAIN OVERLAY (lightweight, no blend mode) ───────── */
.noise-overlay {
  position: fixed; inset: 0; z-index: 9997;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.4'/%3E%3C/svg%3E");
  opacity: 0.05;
  will-change: auto;
}

/* ── PILL TAGS ──────────────────────────────────────────────── */
.pill-tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 7px 14px; border: 1px solid var(--beige-mid);
  color: var(--warm-gray); background: var(--off-white);
  border-radius: 999px;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.pill-tag:hover { border-color: var(--tiffany); color: var(--tiffany); background: var(--bg-card); }
.pill-tag-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--crimson); }

/* ── ROCKET BUILD (scroll-driven 3D) ──────────── */
.rocket-build {
  position: relative;
  height: 460vh;
  background: var(--bg-base);
}
.rocket-stage {
  position: sticky; top: 0;
  height: 100vh;
  overflow: hidden;
  background: var(--bg-base);
}
/* Red highlight that fades in as the motor floats up (opacity driven by JS) */
.rocket-glow {
  position: absolute; inset: 0;
  z-index: 0;
  opacity: 0;
  background:
    radial-gradient(ellipse 70% 55% at 50% 60%, rgba(120,12,12,0.7) 0%, rgba(78,7,7,0.35) 40%, transparent 72%);
  will-change: opacity;
}
.rocket-canvas {
  position: absolute; inset: 0;
  z-index: 1;
  width: 100% !important; height: 100% !important;
  display: block;
}
.rocket-heading {
  position: absolute; top: 104px; left: 5vw;
  z-index: 2; max-width: 36ch; pointer-events: none;
}
.rocket-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 5.5vw, 84px);
  line-height: 0.9; letter-spacing: -0.02em; font-weight: 700;
  color: var(--text-primary); margin-top: 10px;
}
.rocket-title em {
  font-style: italic;
  color: transparent;
  -webkit-text-stroke: 1.2px rgba(245,240,235,0.5);
}
.rocket-panel {
  position: absolute; right: 5vw; top: 50%;
  transform: translateY(-50%);
  width: min(380px, 40vw);
  min-height: 300px; z-index: 2;
}
.rocket-step {
  position: absolute; top: 0; left: 0; right: 0;
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.55s var(--ease-smooth), transform 0.55s var(--ease-smooth);
  pointer-events: none;
}
.rocket-step.is-active { opacity: 1; transform: none; pointer-events: auto; }
.rocket-step-index {
  font-family: var(--font-mono); font-size: 12px;
  letter-spacing: 0.16em; color: var(--tiffany);
}
.rocket-step-title {
  font-family: var(--font-display);
  font-size: clamp(30px, 3.4vw, 50px);
  line-height: 1; letter-spacing: -0.01em; font-weight: 700;
  color: var(--text-primary); margin: 16px 0 18px;
}
.rocket-step-desc {
  font-size: 16px; line-height: 1.7;
  color: var(--text-muted); max-width: 38ch;
}
.rocket-step-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.rocket-step-tags span {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-primary);
  border: 1px solid rgba(245,240,235,0.2);
  padding: 7px 13px; border-radius: 999px;
}
.rocket-rail {
  position: absolute; left: 5vw; bottom: 88px;
  display: flex; gap: 10px; z-index: 2;
}
.rocket-rail-dot {
  width: 34px; height: 3px;
  background: rgba(245,240,235,0.18);
  transition: background 0.35s var(--ease-smooth);
}
.rocket-rail-dot.is-active { background: var(--crimson); }
.rocket-loading, .rocket-scrollhint {
  position: absolute; left: 50%; transform: translateX(-50%);
  font-family: var(--font-mono); font-size: 12px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(245,240,235,0.6); z-index: 2;
}
.rocket-loading { top: 50%; }
.rocket-scrollhint { bottom: 40px; opacity: 0.6; transition: opacity 0.4s; }

@media (max-width: 900px) {
  .rocket-build { height: 420vh; }
  .rocket-heading { top: 88px; left: 6vw; right: 6vw; max-width: none; }
  .rocket-title { font-size: clamp(34px, 9vw, 56px); }
  .rocket-panel {
    right: 6vw; left: 6vw; top: auto; bottom: 120px;
    transform: none; width: auto; min-height: 240px;
    background: rgba(19,14,14,0.55);
    backdrop-filter: blur(8px);
    padding: 24px; border: 1px solid rgba(78,7,7,0.4);
  }
  .rocket-rail { bottom: 80px; left: 6vw; }
}

/* ── PROFILE SLIDE STACK ─────────────────────────────────────────
   Classic "sticky card stack" pattern.
   Each panel is sticky at top:0 and the next one scrolls over it.
   The outer wrapper is tall enough to give each transition
   ~100vh of scroll travel.                                        */

.profile-stack {
  position: relative;
}

/* Every panel (Sava, Sonya, Together) shares this base */
.profile-pin,
.profile-slide {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  background: var(--bg-base);
  overflow: hidden;          /* keeps decorative offsets in-bounds */
}

/* Stacking order: each successive card sits above the previous */
.profile-pin   { z-index: 1; }
#profileSonya  { z-index: 2; box-shadow: 0 -32px 64px rgba(0,0,0,0.55); }
#profileTogether { z-index: 3; box-shadow: 0 -32px 64px rgba(0,0,0,0.55); }

/* Each panel gets ~100vh of scroll space.
   3 panels × 100vh = 300vh total. */
.profile-stack {
  height: 300vh;
}

/* Inner padding matches .section */
.profile-inner {
  width: 100%;
  padding: 0 5vw;
}

/* Mobile: normal flow, no sticky tricks */
@media (max-width: 900px) {
  .profile-stack   { height: auto; }
  .profile-pin,
  .profile-slide   { position: relative; height: auto;
                     padding: 80px 0; box-shadow: none; }
  .profile-inner   { padding: 0 6vw; }
}

/* ── RESPONSIVE ──────────────────────────────── */
@media (max-width: 900px) {
  .about-strip { grid-template-columns: 1fr; gap: 40px; }
  .portrait-grid { grid-template-columns: 1fr; }
  .portrait-card img { height: 440px; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; gap: 48px; }
  .footer-top { flex-direction: column; gap: 32px; }
  .hero-portrait { display: none; }
  .hero-title { font-size: clamp(56px, 13vw, 120px); }
  .hero-sub-row { flex-direction: column; align-items: flex-start; }
  .hero--split { grid-template-columns: 1fr; gap: 40px; }
  .bento-card--large  { grid-column: span 12; }
  .bento-card--medium { grid-column: span 12; }
  .bento-card--wide   { grid-column: span 12; }
  .bento-card--small  { grid-column: span 12; }
  .code-hero-block { display: none; }
  .diagonal-marquee-section { padding: 60px 0; }
  .diag-item { font-size: clamp(40px, 10vw, 70px); }
  .h-scroll-card { width: 280px; }
}

/* ── MOBILE ENHANCEMENTS ───────────────────────────────────────── */

/* Hide custom cursor on touch devices */
@media (pointer: coarse) {
  .cursor-dot,
  .cursor-ring { display: none !important; }
}

/* Hide version switcher on small screens so it never covers the nav */
@media (max-width: 900px) {
  .version-switcher { display: none; }
}

/* Hamburger toggle */
.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--white);
  cursor: pointer;
  padding: 8px;
  width: 44px;
  height: 44px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  z-index: 102;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 900px) {
  body.nav-open { overflow: hidden; }

  .nav { padding: 0 4vw; }

  .nav-toggle { display: flex; }

  .nav-links {
    position: fixed;
    inset: 72px 0 0 0;
    background: rgba(19, 14, 14, 0.98);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 12vh;
    gap: 8px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px);
    transition: opacity 0.3s ease, transform 0.3s ease;
  }
  .nav-open .nav-links {
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }
  .nav-links li { width: 100%; text-align: center; }
  .nav-links a {
    display: inline-block;
    font-size: clamp(22px, 6vw, 32px);
    padding: 14px 0;
    min-height: 48px;
    line-height: 1.2;
  }

  .nav-cta {
    position: fixed;
    bottom: 5vh;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    pointer-events: none;
    z-index: 103;
    transition: opacity 0.3s ease;
    font-size: 13px;
    padding: 14px 32px;
  }
  .nav-open .nav-cta {
    opacity: 1;
    pointer-events: auto;
  }

  /* General spacing & typography */
  .section { padding: 80px 5vw; }
  .hero { min-height: 60svh; padding: 120px 5vw 64px; }
  .hero-title { font-size: clamp(44px, 11vw, 96px) !important; }
  .intro-bottom { flex-wrap: wrap; }
  .hero-scroll-hint { display: none; }

  /* Heroes: show only the picture/background on mobile */
  .hero .hero-eyebrow,
  .hero .hero-title,
  .hero .hero-sub-row,
  .hero .hero-desc,
  .hero .hero-cta-group,
  .hero .hero-scroll-hint,
  .hero .hero-portrait,
  .hero .code-hero-block,
  .intro-stage,
  .intro-bottom,
  .contact-availability,
  .contact-hero-title,
  .contact-hero-subtitle,
  .contact-hero-scroll,
  .hero-video-progress { display: none; }

  .hero-video-wrap { opacity: 1 !important; }
  .hero-scrub-video { display: none !important; }
  .hero-end-frame { display: block; }

  .hero,
  .hero--intro { min-height: 55svh !important; padding: 0 !important; }
  .contact-page-hero { min-height: 50svh !important; padding: 0 !important; }

  /* Inline grids that should stack */
  .origin-grid,
  .profile-grid,
  .photo-float,
  .usp-strip,
  .photo-strip,
  .pricing-breakdown { grid-template-columns: 1fr !important; }

  .usp-strip > div { border-right: none !important; border-bottom: 1px solid rgba(245,240,232,0.1); }
  .usp-strip > div:last-child { border-bottom: none; }

  .photo-strip img { height: 240px; }

  .profile-grid { gap: 32px !important; }
  .profile-grid img { height: 360px !important; }

  .stat-row { flex-wrap: wrap; gap: 32px; }
  .stat-num { font-size: 40px; }

  /* Services list */
  .service-row { flex-wrap: wrap; gap: 16px; padding: 28px 0; }
  .service-name { flex: 1 1 100%; font-size: clamp(24px, 7vw, 34px); }
  .service-tags { max-width: none; width: 100%; }
  .service-arrow { width: 44px; height: 44px; }

  /* Process cards */
  .process-cards-wrapper { padding: 0 5vw 0 36px; }
  .process-center-line { left: 16px; top: 140px; bottom: 80px; transform: none; }
  .process-card {
    flex-direction: column !important;
    gap: 24px;
    margin-bottom: 56px;
    margin-left: 0;
  }
  .process-card-left .process-card-image,
  .process-card-right .process-card-image,
  .process-card-left .process-card-content,
  .process-card-right .process-card-content {
    width: 100% !important;
    padding: 0 !important;
    text-align: left !important;
  }
  .process-card-right .process-card-content p { margin-left: 0 !important; }
  .process-card-image img { height: 220px !important; }
  .process-card-num { font-size: 56px; }
  .process-card-content h3 { font-size: 28px; }

  /* Portfolio case metrics */
  .case-result { flex-wrap: wrap; gap: 24px; padding-top: 24px; }
  .case-metric { flex: 1 1 45%; min-width: 120px; }

  /* Pricing breakdown boxes */
  .pricing-breakdown > div { width: 100% !important; flex: 1 1 100% !important; }

  /* Contact */
  .contact-page-hero { padding: 120px 6vw 80px; }
  .contact-hero-title { font-size: clamp(40px, 11vw, 84px); }
  .contact-portrait-caption { right: 0; bottom: -16px; }

  /* Footer */
  .footer-bottom { flex-direction: column; gap: 24px; align-items: flex-start; }
  .footer-socials { flex-wrap: wrap; gap: 16px 24px; }
  .footer-links { flex-wrap: wrap; gap: 16px 24px; }
  .footer-links a { padding: 6px 0; min-height: 44px; display: inline-flex; align-items: center; }
}

@media (max-width: 480px) {
  .nav-logo span { font-size: 20px; }
  .btn-primary,
  .btn-outline { padding: 14px 22px; font-size: 12px; }
  .hero-title { font-size: clamp(38px, 12vw, 72px) !important; }
  .case-title { font-size: clamp(30px, 9vw, 48px); }
}

/* Disable custom cursor and hover transforms on touch devices */
@media (pointer: coarse) {
  html, body, *, *::before, *::after { cursor: auto !important; }
  *:hover { transform: none !important; }
  .cursor-dot, .cursor-ring { display: none !important; }
}

/* ── HOMEPAGE PRICING TEASER ────────────────────────────────────── */
.pricing-teaser {
  position: relative;
  background: linear-gradient(165deg, var(--crimson) 0%, var(--bg-red-dark) 100%);
  color: var(--white);
  text-align: center;
  overflow: hidden;
}

.pricing-teaser-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 640px;
  height: 640px;
  background: radial-gradient(circle, rgba(255,158,99,0.18), transparent 70%);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

/* ── PRICING ESTIMATOR ─────────────────────────────────────────── */
.estimator-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 48px;
  margin-top: 64px;
  align-items: start;
}

.estimator-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.estimator-card {
  position: relative;
  background: linear-gradient(160deg, rgba(245,240,232,0.035), rgba(245,240,232,0.01));
  border: 1px solid rgba(245,240,232,0.09);
  border-radius: 10px;
  padding: 32px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  transition: border-color 0.3s ease;
}

.estimator-card:hover { border-color: rgba(245,240,232,0.16); }

.estimator-card-header {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(245,240,232,0.08);
}

.estimator-card-num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--tiffany);
  flex-shrink: 0;
}

.estimator-card-title {
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.estimator-card-body {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.estimator-field {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.estimator-field + .estimator-field {
  border-top: 1px solid rgba(245,240,232,0.08);
  padding-top: 20px;
}

.estimator-option {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid rgba(245,240,232,0.08);
  border-radius: 6px;
  cursor: pointer;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.estimator-option:hover {
  border-color: rgba(245,240,232,0.22);
  background: rgba(245,240,232,0.03);
}

.estimator-option:has(input:checked) {
  border-color: var(--tiffany);
  background: rgba(78,7,7,0.22);
}

.estimator-option input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.estimator-check {
  width: 20px;
  height: 20px;
  border: 1px solid rgba(245,240,232,0.35);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
  transition: border-color 0.2s, background 0.2s;
}

.estimator-option input[type="radio"] + .estimator-check { border-radius: 50%; }

.estimator-check::after {
  content: '';
  width: 10px;
  height: 10px;
  background: var(--tiffany);
  border-radius: 2px;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.2s, transform 0.2s;
}

.estimator-option input[type="radio"] + .estimator-check::after { border-radius: 50%; }

.estimator-option input:checked ~ .estimator-check {
  border-color: var(--tiffany);
  background: rgba(78,7,7,0.35);
}

.estimator-option input:checked ~ .estimator-check::after {
  opacity: 1;
  transform: scale(1);
}

.estimator-option input:focus-visible ~ .estimator-check { outline: 2px solid var(--tiffany); outline-offset: 2px; }

.estimator-option-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.estimator-label-text {
  font-size: 15px;
  line-height: 1.45;
  color: var(--text-primary);
}

.estimator-price {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--tiffany);
}

.estimator-summary {
  position: sticky;
  top: 100px;
}

.estimator-summary-inner {
  position: relative;
  background: linear-gradient(165deg, rgba(78,7,7,0.5), rgba(37,27,23,0.9));
  border: 1px solid rgba(245,240,232,0.1);
  border-radius: 12px;
  padding: 32px;
  overflow: hidden;
  box-shadow: 0 24px 60px -20px rgba(0,0,0,0.55);
}

.estimator-summary-inner::before {
  content: '';
  position: absolute;
  top: -60%; right: -30%;
  width: 260px; height: 260px;
  background: radial-gradient(circle, rgba(255,158,99,0.22), transparent 70%);
  pointer-events: none;
}

.estimator-summary-top { position: relative; }

.estimator-summary-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(245,240,232,0.55);
  margin: 0 0 10px;
}

.estimator-total {
  font-family: var(--font-display);
  font-size: clamp(42px, 4vw, 58px);
  line-height: 1;
  letter-spacing: -0.03em;
  font-weight: 700;
  color: var(--white);
}

.estimator-summary-note {
  font-size: 13.5px;
  line-height: 1.6;
  color: rgba(245,240,232,0.5);
  margin: 14px 0 26px;
}

.estimator-breakdown {
  position: relative;
  border-top: 1px solid rgba(245,240,232,0.12);
  border-bottom: 1px solid rgba(245,240,232,0.12);
  padding: 18px 0;
  margin-bottom: 28px;
  max-height: 260px;
  overflow-y: auto;
}

.estimator-breakdown-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  font-size: 13.5px;
  padding: 9px 0;
}

.estimator-breakdown-row span:first-child { color: rgba(245,240,232,0.85); line-height: 1.4; }
.estimator-breakdown-row span:last-child {
  font-family: var(--font-mono);
  color: var(--tiffany);
  flex-shrink: 0;
  margin-top: 1px;
}

.estimator-breakdown-base {
  font-weight: 500;
  border-bottom: 1px solid rgba(245,240,232,0.1);
  padding-bottom: 13px;
  margin-bottom: 9px;
}

.estimator-breakdown-base span:last-child { color: rgba(245,240,232,0.85); }

.estimator-no-addons {
  font-size: 13.5px;
  color: rgba(245,240,232,0.4);
  font-style: italic;
  margin: 0;
  padding: 8px 0;
}

.estimator-recurring {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  background: rgba(255,158,99,0.1);
  border: 1px solid rgba(255,158,99,0.25);
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 20px;
  font-size: 13px;
}

.estimator-recurring-label {
  color: rgba(245,240,232,0.7);
}

.estimator-recurring-value {
  font-family: var(--font-mono);
  color: var(--accent-warm);
  font-weight: 600;
}

.estimator-price-monthly {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(255,158,99,0.75);
  margin-top: 2px;
}

.estimator-actions {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.estimator-actions .btn-primary,
.estimator-actions .btn-outline {
  width: 100%;
  justify-content: center;
  text-align: center;
}

.estimator-actions .btn-outline {
  border-color: rgba(245,240,232,0.25);
  color: rgba(245,240,232,0.75);
}

.estimator-actions .btn-outline:hover {
  border-color: rgba(245,240,232,0.5);
  color: var(--white);
}

@media (max-width: 1100px) {
  .estimator-grid { grid-template-columns: 1fr; }
  .estimator-cards { grid-template-columns: 1fr; }
  .estimator-summary {
    position: static;
    order: -1;
  }
  .estimator-summary-inner {
    padding: 22px;
  }
}

@media (max-width: 900px) {
  .estimator-card { padding: 20px; }
  .estimator-card-header { font-size: 22px; }
}

/* ── ACCESSIBILITY HELPERS ─────────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -48px;
  left: 0;
  background: var(--crimson);
  color: var(--white);
  padding: 12px 18px;
  z-index: 100000;
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 0;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
