/* ═══════════════════════════════════════════
   HOME PAGE · founder-first revamp
   Loaded after style.css, home page only
   ═══════════════════════════════════════════ */

:root {
  --accent: #e2582a;
  --ease: cubic-bezier(.2, .7, .3, 1);
}

/* ── HERO ── */
.home-hero {
  position: relative;
  padding: 0;
  min-height: 92vh;
  display: flex;
  align-items: stretch;
  overflow: hidden;
  isolation: isolate;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}
.home-hero .wrap {
  position: relative;
  z-index: 3;
  width: 100%;
  display: flex;
  align-items: center;
  min-height: inherit;
  padding-top: 80px;
  padding-bottom: 96px;
  pointer-events: none;            /* let drags reach the 3D stage */
}
.home-hero .wrap a { pointer-events: auto; }

.hero-ghost {
  position: absolute;
  left: 50%;
  bottom: -5vw;
  transform: translateX(-50%);
  font-family: var(--sans);
  font-weight: 800;
  font-size: 30vw;
  line-height: 0.82;
  letter-spacing: -0.07em;
  color: rgba(26, 24, 21, 0.05);
  z-index: 0;
  user-select: none;
  pointer-events: none;
  white-space: nowrap;
}

.hero-text {
  display: flex;
  flex-direction: column;
  width: 52%;
  max-width: 580px;
}
.home-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 28px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.home-name {
  font-family: var(--sans);
  font-size: clamp(52px, 8.2vw, 116px);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 0.92;
  color: var(--ink);
  margin-bottom: 28px;
}
.home-name .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.06em;
}
.home-name .line > span {
  display: block;
  transform: translateY(125%);
  animation: line-up 0.9s var(--ease) forwards;
}
.home-name .line:nth-child(2) > span { animation-delay: 0.09s; }
.home-name .line:nth-child(3) > span { animation-delay: 0.18s; }
.home-name .dot { color: var(--accent); }
@keyframes line-up { to { transform: translateY(0); } }

.home-tagline {
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.55;
  color: var(--ink-2);
  margin-bottom: 36px;
  max-width: 470px;
}
.home-tagline a {
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  transition: color 0.2s, border-color 0.2s;
}
.home-tagline a:hover { color: var(--accent); border-color: var(--accent); }

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
}
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 26px;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  border-radius: 2px;
  transition: transform 0.35s var(--ease), background 0.25s;
}
.hero-cta .arrow { transition: transform 0.35s var(--ease); }
.hero-cta:hover { background: var(--accent); transform: translateY(-2px); }
.hero-cta:hover .arrow { transform: translateX(4px); }
.hero-cta-secondary {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-2);
  border-bottom: 1px solid var(--rule);
  padding-bottom: 4px;
  transition: color 0.2s, border-color 0.2s;
}
.hero-cta-secondary:hover { color: var(--ink); border-color: var(--ink); }

.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 52px;
  padding-top: 26px;
  border-top: 1px solid var(--rule);
  max-width: 470px;
  flex-wrap: wrap;
}
.hero-stat-num {
  font-family: var(--sans);
  font-weight: 800;
  font-size: clamp(28px, 3.2vw, 40px);
  letter-spacing: -0.04em;
  line-height: 0.9;
  color: var(--ink);
  margin-bottom: 6px;
}
.hero-stat-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.5;
}

/* 3D stage */
.hero-3d {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 58%;
  z-index: 2;
  cursor: grab;
  touch-action: pan-y;
  opacity: 0;
  transition: opacity 1.2s ease-out 0.2s;
}
.hero-3d.is-ready { opacity: 1; }
.hero-3d.is-off { display: none; }
.hero-3d:active { cursor: grabbing; }
.hero-3d canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.hero-3d::after {                   /* soft contact shadow under the form */
  content: "";
  position: absolute;
  left: 50%;
  bottom: 11%;
  width: 46%;
  height: 7%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(26, 24, 21, 0.22) 0%, rgba(26, 24, 21, 0) 70%);
  filter: blur(6px);
  pointer-events: none;
}
.hero-3d-hint {
  position: absolute;
  right: 32px;
  bottom: 64px;
  z-index: 3;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  pointer-events: none;
}
.hero-3d-hint::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 1px;
  margin-right: 10px;
  background: var(--ink-2);
  opacity: 0.5;
  vertical-align: middle;
}

.hero-bottom-strip {
  position: absolute;
  bottom: 24px;
  left: 32px;
  right: 32px;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 12px;
  border-top: 1px solid var(--rule);
  pointer-events: none;
}

/* ── DISCIPLINE TICKER ── */
.ticker {
  overflow: hidden;
  background: var(--ink);
  color: var(--cream);
  padding: 18px 0;
}
.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker 36s linear infinite;
}
.ticker-track span {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  gap: 44px;
}
.ticker-track span::after {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
@keyframes ticker { to { transform: translateX(-50%); } }

/* ── SHARED SECTION SHELL ── */
.home-section {
  padding: 104px 0;
  border-bottom: 1px solid var(--rule);
}
.home-section .section-head { margin-bottom: 56px; }
.home-lede {
  font-size: clamp(17px, 1.7vw, 20px);
  color: var(--ink-2);
  max-width: 560px;
  margin: -28px 0 56px;
}

/* ── SKILLS ── */
.skill {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 40px;
  align-items: center;
  padding: 44px 0;
  border-top: 1px solid var(--rule);
}
.skill:last-child { border-bottom: 1px solid var(--rule); }
.skill-num {
  align-self: start;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--accent);
  padding-top: 10px;
}
.skill-title {
  font-family: var(--sans);
  font-size: clamp(32px, 4.4vw, 56px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--ink);
  margin-bottom: 16px;
}
.skill-desc {
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 420px;
  margin-bottom: 20px;
}
.skill-tags { display: flex; flex-wrap: wrap; gap: 6px; }

.skill-media {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 12px;
  height: 320px;
}
.skill-media figure {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  background: var(--paper-2);
}
.skill-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}
.skill:hover .skill-media img { transform: scale(1.05); }

/* Web: a browser frame drawn in CSS */
.skill-browser {
  height: 320px;
  border-radius: 6px;
  background: var(--ink);
  color: var(--cream);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.skill-browser-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(247, 244, 238, 0.12);
}
.skill-browser-bar i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(247, 244, 238, 0.25);
}
.skill-browser-bar i:first-child { background: var(--accent); }
.skill-browser-bar b {
  margin-left: 12px;
  font-family: var(--mono);
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: rgba(247, 244, 238, 0.55);
}
.skill-browser-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
}
.skill-browser-big {
  font-family: var(--sans);
  font-weight: 800;
  font-size: clamp(34px, 4.6vw, 60px);
  letter-spacing: -0.04em;
  line-height: 0.95;
}
.skill-browser-big em { font-style: normal; color: var(--accent); }
.skill-browser-note {
  margin-top: 16px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(247, 244, 238, 0.6);
}

/* Management: fact panel */
.skill-facts {
  height: 320px;
  display: grid;
  grid-template-rows: repeat(3, 1fr);
  border: 1px solid var(--rule);
  border-radius: 4px;
  overflow: hidden;
}
.skill-fact {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 28px;
  transition: background 0.25s;
}
.skill-fact + .skill-fact { border-top: 1px solid var(--rule); }
.skill-fact:hover { background: var(--paper-2); }
.skill-fact b {
  font-family: var(--mono);
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--muted);
  width: 28px;
}
.skill-fact span {
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(17px, 1.9vw, 22px);
  letter-spacing: -0.02em;
  color: var(--ink);
}

/* ── VENTURES (dark) ── */
.ventures {
  background: var(--ink);
  color: var(--cream);
  padding: 112px 0;
}
.ventures .section-title { color: var(--cream); }
.ventures .section-rule { background: rgba(247, 244, 238, 0.16); }
.ventures .section-num { color: var(--accent); }
.ventures .home-lede { color: rgba(247, 244, 238, 0.72); }
.venture-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: rgba(247, 244, 238, 0.16);
  border: 1px solid rgba(247, 244, 238, 0.16);
}
.venture {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 420px;
  padding: 44px;
  background: var(--ink);
  transition: background 0.4s;
}
a.venture:hover { background: #24211c; }
.venture-role {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(247, 244, 238, 0.6);
}
.venture-role em { font-style: normal; color: var(--accent); }
.venture-name {
  margin-top: auto;
  font-family: var(--sans);
  font-size: clamp(40px, 5.4vw, 72px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.95;
  padding-top: 72px;
}
.venture-desc {
  margin-top: 18px;
  font-size: 16px;
  line-height: 1.6;
  color: rgba(247, 244, 238, 0.78);
  max-width: 400px;
}
.venture-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 22px;
}
.venture-tags .tag {
  color: rgba(247, 244, 238, 0.8);
  border-color: rgba(247, 244, 238, 0.22);
}
.venture-link {
  margin-top: 28px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cream);
  display: inline-flex;
  gap: 8px;
}
.venture-link .arrow { transition: transform 0.35s var(--ease); }
a.venture:hover .venture-link .arrow { transform: translate(3px, -3px); }
.venture-link.is-muted { color: rgba(247, 244, 238, 0.5); }

/* ── PATH (timeline) ── */
.path-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 48px 28px;
}
.path-step {
  position: relative;
  padding-top: 24px;
  border-top: 1px solid var(--ink);
}
.path-step::before {
  content: "";
  position: absolute;
  top: -5px;
  left: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--ink);
}
.path-when {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}
.path-title {
  font-family: var(--sans);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: 8px;
}
.path-note {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-2);
}
.path-step.is-now { border-top-color: var(--accent); }
.path-step.is-now::before {
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(226, 88, 42, 0.18);
}
.path-step.is-now .path-when { color: var(--accent); }

/* ── SELECTED WORK ── */
.work-wall { border-bottom: 1px solid var(--rule); overflow: hidden; }
.work-wall img { width: 100%; height: auto; display: block; }

.home-work-link {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
  border-bottom: 1px solid var(--rule);
  padding-bottom: 4px;
  transition: color 0.2s, border-color 0.2s;
}
.home-work-link:hover { color: var(--ink); border-color: var(--ink); }

.home-work-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.home-work-grid > :first-child { grid-column: 1 / -1; }
.home-project {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 340px;
  padding: 36px;
  background: #0d0c0a;
  border-radius: 4px;
  transition: transform 0.5s var(--ease);
}
.home-project:first-child { min-height: 500px; padding: 56px; }
.home-project:hover { transform: translateY(-4px); }
.card-cover-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
  z-index: 0;
  transition: opacity 0.5s ease-out, transform 0.9s var(--ease);
  pointer-events: none;
}
.home-project::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(13, 12, 10, 0.15) 0%, rgba(13, 12, 10, 0.55) 50%, rgba(13, 12, 10, 0.92) 100%);
  pointer-events: none;
}
.home-project > *:not(.card-cover-img) { position: relative; z-index: 2; }
.home-project:hover .card-cover-img { opacity: 0.78; transform: scale(1.04); }
.hp-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(247, 244, 238, 0.7);
  margin-bottom: 14px;
}
.hp-title {
  font-family: var(--sans);
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.08;
  color: var(--cream);
  margin-bottom: 12px;
}
.home-project:first-child .hp-title { font-size: clamp(32px, 4.4vw, 56px); }
.hp-desc {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(247, 244, 238, 0.85);
  max-width: 560px;
  margin-bottom: 22px;
}
.hp-arrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cream);
  transition: transform 0.3s var(--ease);
}
.home-project:hover .hp-arrow { transform: translateX(4px); }

/* ── STATEMENT HEADLINE (longer two-line hero) ── */
.home-name.is-statement {
  font-size: clamp(38px, 4.9vw, 66px);
  letter-spacing: -0.045em;
  line-height: 1;
}
.home-hero .hero-text:has(.is-statement) { width: 58%; max-width: 660px; }

/* ── INTRODUCTION ── */
.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.intro-statement {
  font-family: var(--sans);
  font-size: clamp(28px, 3.6vw, 46px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.06;
  color: var(--ink);
}
.intro-body p {
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-2);
  max-width: 520px;
}
.intro-body p + p { margin-top: 1.1em; }
.intro-body a {
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  transition: color 0.2s, border-color 0.2s;
}
.intro-body a:hover { color: var(--accent); border-color: var(--accent); }

/* ── APPROACH (three steps, reuses .path-step) ── */
.path-grid.is-three { grid-template-columns: repeat(3, 1fr); }
.path-grid.is-three .path-title { font-size: clamp(24px, 2.6vw, 32px); margin-bottom: 12px; }
.path-grid.is-three .path-note { font-size: 16px; max-width: 300px; }

/* ── SUB HEADINGS inside Background ── */
.home-sub {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 88px 0 36px;
}
.ventures .venture-name { font-size: clamp(34px, 4.4vw, 58px); }

/* ── RESPONSIVE ── */
@media (max-width: 880px) {
  .home-hero { min-height: auto; flex-direction: column; }
  .home-hero .wrap {
    min-height: 0;
    padding-top: 48px;
    padding-bottom: 8px;
  }
  .hero-text { width: 100%; max-width: 100%; }
  .home-name { font-size: clamp(48px, 15vw, 84px); }
  .hero-stats { gap: 28px; max-width: 100%; margin-top: 40px; }
  .home-hero .wrap { order: 1; }
  .hero-3d {
    order: 2;
    position: relative;
    width: 100%;
    height: 380px;
  }
  .topnav-links { gap: 14px; }
  .home-name.is-statement { font-size: clamp(30px, 8.6vw, 56px); }
  .home-hero .hero-text:has(.is-statement) { width: 100%; max-width: 100%; }
  .intro-grid { grid-template-columns: 1fr; gap: 24px; }
  .path-grid.is-three { grid-template-columns: 1fr; }
  .home-sub { margin: 56px 0 28px; }
  .topnav-links a[href="#approach"],
  .topnav-links a[href="#background"] { display: none; }
  .hero-3d-hint, .hero-bottom-strip { display: none; }
  .hero-ghost { font-size: 56vw; bottom: 4%; }

  .home-section { padding: 64px 0; }
  .home-section .section-head { margin-bottom: 36px; }
  .home-lede { margin: -12px 0 36px; }

  .skill {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 36px 0;
  }
  .skill-num { padding-top: 0; }
  .skill-media, .skill-browser, .skill-facts { height: 240px; }

  .ventures { padding: 72px 0; }
  .venture-grid { grid-template-columns: 1fr; }
  .venture { min-height: 0; padding: 32px 24px; }
  .venture-name { padding-top: 56px; }

  .path-grid { grid-template-columns: 1fr 1fr; gap: 36px 20px; }

  .home-work-grid { grid-template-columns: 1fr; }
  .home-project, .home-project:first-child { min-height: 300px; padding: 28px; }
}

@media (max-width: 460px) {
  .path-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .home-name .line > span { animation: none; transform: none; }
  .ticker-track { animation: none; }
}

/* ── PREVIOUS WORK REEL (gallery.js) ── */
.reel { padding: 28px 0 40px; background: var(--paper); }
.reel-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.reel-filters { display: flex; gap: 8px; flex-wrap: wrap; }
.reel-chip {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 9px 16px;
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.reel-chip:hover { border-color: var(--ink); color: var(--ink); }
.reel-chip.is-active { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.reel-chip:focus-visible, .reel-tile:focus-visible, .reel-lightbox button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.reel-meta {
  display: flex;
  gap: 18px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.reel-count { color: var(--accent); }

.reel-viewport {
  overflow: hidden;
  display: grid;
  gap: 12px;
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
  min-height: 372px;
}
.reel.is-dragging .reel-viewport { cursor: grabbing; }
.reel-row { display: flex; gap: 12px; width: max-content; will-change: transform; }
.reel-tile {
  position: relative;
  flex: none;
  width: 360px;
  aspect-ratio: 2 / 1;
  padding: 0;
  border: 0;
  border-radius: 4px;
  overflow: hidden;
  background: var(--paper-2);
  cursor: inherit;
}
.reel-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  transition: transform 0.7s var(--ease);
}
.reel-cap {
  position: absolute;
  left: 10px;
  bottom: 10px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--paper);
  background: rgba(26, 24, 21, 0.82);
  padding: 6px 9px;
  border-radius: 2px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
@media (hover: hover) {
  .reel:not(.is-dragging) .reel-tile:hover img { transform: scale(1.05); }
  .reel:not(.is-dragging) .reel-tile:hover .reel-cap { opacity: 1; transform: none; }
}
.reel-tile:focus-visible .reel-cap { opacity: 1; transform: none; }

.reel-lightbox {
  border: 0;
  padding: 0;
  margin: auto;
  background: transparent;
  width: min(1100px, 92vw);
  max-width: none;
  max-height: none;
  overflow: visible;
  color: var(--paper);
}
.reel-lightbox::backdrop { background: rgba(26, 24, 21, 0.9); }
.reel-lightbox[open] { animation: reel-in 0.35s var(--ease); }
@keyframes reel-in { from { opacity: 0; transform: translateY(14px) scale(0.98); } }
.reel-lightbox img { width: 100%; height: auto; display: block; border-radius: 4px; background: #000; }
.reel-lightbox button {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--paper);
  background: transparent;
  border: 1px solid rgba(247, 244, 238, 0.3);
  border-radius: 999px;
  padding: 10px 16px;
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}
.reel-lightbox button:hover { background: var(--paper); color: var(--ink); }
.reel-lightbox-close { display: block; margin: 0 0 14px auto; }
.reel-lightbox-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 16px;
  text-align: center;
}
.reel-lightbox-title { font-family: var(--sans); font-weight: 700; font-size: 20px; letter-spacing: -0.02em; }
.reel-lightbox-type {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.65;
  margin-top: 4px;
}

@media (max-width: 880px) {
  .reel { padding: 20px 0 28px; }
  .reel-viewport { gap: 8px; min-height: 248px; }
  .reel-row { gap: 8px; }
  .reel-tile { width: 240px; }
  .reel-hint { display: none; }
  .reel-cap { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .reel-lightbox[open] { animation: none; }
  .reel-tile img, .reel-cap { transition: none; }
}
.reel-lightbox img { max-height: 68vh; object-fit: contain; }

/* ── CONTACT: silent blurred loop behind the footer (home only) ── */
#contact { position: relative; overflow: hidden; isolation: isolate; }
#contact .footer-bg {
  position: absolute;
  inset: -6%;
  width: 112%;
  height: 112%;
  object-fit: cover;
  object-position: 50% 30%;
  opacity: 0.75;
  filter: blur(1.5px);
  z-index: -2;
  pointer-events: none;
}
#contact::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(26, 24, 21, 0.8) 0%, rgba(26, 24, 21, 0.35) 60%, rgba(26, 24, 21, 0.5) 100%);
  pointer-events: none;
}
