/* ============================================================
   sections.css — hero, shelf, chapters, catalog, process,
   about, lab, footer
   ============================================================ */

/* ═══════════ HERO ═══════════ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-top: calc(var(--header-h) + 42px);
  overflow: hidden;
  isolation: isolate;
  background: var(--black);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent 0 44%, rgba(255,255,255,0.12) 49%, transparent 54%),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.035) 0 1px, transparent 1px 12.5vw);
  mix-blend-mode: screen;
  opacity: 0.18;
  transform: translateX(-18%);
  animation: heroSignalSweep 9s var(--ease-smooth) infinite;
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto var(--page-gutter) 72px var(--page-gutter);
  z-index: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.42), transparent);
  opacity: 0.48;
  pointer-events: none;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  will-change: transform, filter;
  transform: translateZ(0);
}
.hero__media video,
.hero__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% center;
  /* energy asset shows in near-monochrome; scroll wakes it up */
  filter: grayscale(0.12) contrast(1.08);
  transform: scale(1.035);
  will-change: transform;
}
/* energy glow that grows as the user scrolls the hero */
.hero__glow {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.1;
  mix-blend-mode: screen;
  background:
    radial-gradient(circle at 50% 52%, rgba(255,255,255,0.22), transparent 30%),
    linear-gradient(to bottom, rgba(0,0,0,0.12), rgba(0,0,0,0.86) 92%);
}
.hero__media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(105deg, rgba(255,255,255,0) 24%, rgba(255,255,255,0.12) 47%, rgba(255,255,255,0) 66%),
    linear-gradient(180deg, rgba(255,255,255,0.12), transparent 16%);
  mix-blend-mode: overlay;
  opacity: 0.34;
  transform: translateX(-24%);
  animation: heroLightPass 7.4s var(--ease-smooth) infinite;
}
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(90deg, var(--black) 3%, rgba(5,5,5,0.83) 31%, rgba(5,5,5,0.08) 61%, rgba(5,5,5,0.62) 100%),
    linear-gradient(180deg, rgba(5,5,5,0.78), transparent 28%, transparent 62%, var(--black) 97%);
}
@keyframes heroSignalSweep {
  0%, 14% { transform: translateX(-24%); opacity: 0; }
  34% { opacity: 0.2; }
  62%, 100% { transform: translateX(24%); opacity: 0; }
}
@keyframes heroLightPass {
  0%, 24% { transform: translateX(-32%); opacity: 0; }
  45% { opacity: 0.34; }
  70%, 100% { transform: translateX(32%); opacity: 0; }
}

/* ═══════════ Section background videos (decorative) ═══════════ */
.has-section-bg { position: relative; isolation: isolate; }
.section-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  opacity: var(--bg-op, 0.2);
}
.section-bg__video {
  position: absolute;
  inset: -6%;
  width: 112%;
  height: 112%;
  object-fit: cover;
  transform: translateZ(0);
  backface-visibility: hidden;
  will-change: transform;
}
.section-bg__scrim {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(130% 86% at 50% 50%, transparent 46%, rgba(5,5,5,0.32) 100%),
    linear-gradient(180deg, rgba(5,5,5,0.22), rgba(5,5,5,0) 44%, rgba(5,5,5,0.28));
}

.hero__grid {
  position: relative;
  z-index: 1;
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(340px, 0.82fr);
  gap: clamp(32px, 5vw, 90px);
  align-items: center;
  align-content: center;
  padding-bottom: clamp(24px, 3.5vh, 48px);
}

.hero__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(48px, 7.8vw, 118px);
  line-height: 0.94;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  margin-bottom: clamp(26px, 3.6vw, 48px);
  text-shadow: 0 18px 58px rgba(0, 0, 0, 0.36);
}
.hero__name .line-mask:last-child { margin-left: clamp(28px, 8vw, 150px); }

.hero__intro {
  display: flex;
  flex-direction: column;
  gap: clamp(22px, 3vw, 34px);
  max-width: 46ch;
}
.hero__positioning {
  font-size: clamp(16px, 1.85vw, 21px);
  line-height: 1.55;
  color: var(--silver);
  text-wrap: balance;
}
.hero__positioning em { color: var(--white); }
.hero__actions { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }

/* project preview rail — real covers in the first viewport */
.hero__rail {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-self: end;
  position: relative;
}
.hero__rail::before {
  content: "";
  position: absolute;
  left: -26px;
  top: 28px;
  bottom: 10px;
  width: 1px;
  background: linear-gradient(transparent, rgba(255,255,255,0.42), transparent);
  opacity: 0.42;
}
.hero__rail-label {
  margin-bottom: 4px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.hero__rail-label::before {
  content: "";
  width: 44px;
  height: 1px;
  background: rgba(255,255,255,0.38);
}
.rail-card {
  position: relative;
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 10px 12px 10px 10px;
  border: 1px solid rgba(255,255,255,0.115);
  border-radius: 16px;
  background: rgba(8, 8, 8, 0.58);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.045);
  backdrop-filter: blur(14px) saturate(1.12);
  text-align: left;
  width: 100%;
  overflow: hidden;
  transition:
    border-color var(--duration-fast) ease,
    background var(--duration-fast) ease,
    transform var(--duration-medium) var(--ease-out-expo),
    box-shadow var(--duration-medium) ease;
}
.rail-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 0 35%, rgba(255,255,255,0.09), transparent 66%);
  opacity: 0;
  transform: translateX(-48%);
  transition: opacity 260ms ease, transform 760ms var(--ease-out-expo);
  pointer-events: none;
}
.rail-card:hover, .rail-card:focus-visible {
  border-color: var(--line);
  background: rgba(16, 16, 16, 0.82);
  transform: translateX(-10px) scale(1.045);
  box-shadow: 0 24px 72px rgba(0,0,0,0.38), inset 0 1px 0 rgba(255,255,255,0.08);
}
.rail-card:hover::after, .rail-card:focus-visible::after {
  opacity: 1;
  transform: translateX(48%);
}
.rail-card__media {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--line-soft);
  background: var(--surface);
}
.rail-card__media img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: top center;
  transition: opacity 360ms ease, transform 600ms var(--ease-out-expo);
}
.rail-card:hover .rail-card__media img,
.rail-card:hover .rail-card__media video,
.rail-card:focus-visible .rail-card__media img,
.rail-card:focus-visible .rail-card__media video { transform: scale(1.14); }
.rail-card__meta { min-width: 0; }
.rail-card__name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 16px;
  letter-spacing: -0.01em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.rail-card__type {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray);
  margin-top: 4px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.rail-card__index {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--gray-dark);
  padding-right: 6px;
}

.hero__foot {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--line-soft);
  padding-block: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.hero__scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.hero__scroll-cue i {
  width: 44px; height: 1px;
  background: var(--gray-dark);
  position: relative;
  overflow: hidden;
}
.hero__scroll-cue i::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 14px;
  background: var(--white);
  animation: scrollCue 2.4s var(--ease-smooth) infinite;
}
@keyframes scrollCue { from { transform: translateX(-14px); } to { transform: translateX(44px); } }

/* Comando 3 correction: editorial hero with live project preview */
.hero {
  min-height: 100svh;
  justify-content: stretch;
  padding-top: calc(var(--header-h) + 18px);
}
.hero::before {
  background:
    linear-gradient(90deg, transparent 0 52%, rgba(255,255,255,0.14) 55%, transparent 60%),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.028) 0 1px, transparent 1px 11.111vw);
  opacity: 0.15;
}
.hero::after { display: none; }
.hero__media video,
.hero__media img {
  object-position: 50% center;
  /* energy asset (Asset 5) shows near-monochrome; JS drift + scroll wake it up */
  filter: grayscale(0.12) contrast(1.08);
  transform: scale(1.06);
}
.hero__media::after {
  background:
    linear-gradient(90deg, rgba(5,5,5,0.9) 0%, rgba(5,5,5,0.54) 31%, rgba(5,5,5,0.02) 58%, rgba(5,5,5,0.52) 100%),
    linear-gradient(180deg, rgba(5,5,5,0.78), transparent 28%, transparent 66%, var(--black) 99%);
}
@keyframes heroVideoDrift {
  0% { transform: scale(1.08) translate3d(-1.2%, 0, 0); filter: grayscale(1) contrast(1.12) brightness(0.82); }
  48% { transform: scale(1.13) translate3d(1.1%, -0.8%, 0); filter: grayscale(1) contrast(1.2) brightness(0.94); }
  100% { transform: scale(1.1) translate3d(0.8%, 1.1%, 0); filter: grayscale(1) contrast(1.16) brightness(0.88); }
}
.hero__microbar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 34px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gray);
}
.hero__microbar i {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--silver);
  opacity: 0.65;
}
.hero__microbar strong {
  margin-left: auto;
  color: var(--silver);
  font-weight: 500;
}
.hero__grid {
  grid-template-columns: minmax(0, 0.98fr) minmax(330px, 0.55fr);
  gap: clamp(28px, 4vw, 72px);
  align-items: end;
  padding-bottom: clamp(28px, 6vh, 76px);
}
.hero__left {
  position: relative;
  min-width: 0;
}
.hero__name {
  max-width: 11.5ch;
  font-weight: 700;
  font-size: clamp(64px, 10.4vw, 178px);
  line-height: 0.88;
  letter-spacing: -0.068em;
  margin-bottom: clamp(18px, 2.6vw, 34px);
  overflow: visible;
}
.hero__name .line-mask {
  overflow: hidden;
  padding-block: 0.055em;
  margin-block: -0.055em;
}
.hero__name .line-mask:last-child { margin-left: clamp(26px, 6.2vw, 112px); }
.hero__intro {
  max-width: 44ch;
  gap: clamp(18px, 2.4vw, 28px);
}
.hero__foot { display: none; }

/* ═══════════ SHELF — featured editorial ═══════════ */
.shelf__feature {
  display: grid;
  grid-template-columns: 58fr 42fr;
  gap: 0;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--black-soft);
  min-height: clamp(520px, 72vh, 820px);
}
.shelf__feature-media {
  position: relative;
  min-height: 320px;
}
.shelf__feature-media .media-frame {
  position: absolute;
  inset: 0;
  border: 0;
  border-radius: 0;
}
.shelf__feature-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
  padding: clamp(28px, 3.6vw, 64px);
  border-left: 1px solid var(--line-soft);
}
.shelf__feature-name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(30px, 3.4vw, 52px);
  letter-spacing: -0.03em;
  line-height: 1;
}
.shelf__feature-caps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.shelf__feature-caps span {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray);
  border: 1px solid var(--line-soft);
  border-radius: 100px;
  padding: 6px 12px;
}
.shelf__feature-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }

.shelf__row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 20px;
}
.shelf-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
  text-align: left;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--black-soft);
  transition: border-color var(--duration-fast) ease, transform var(--duration-medium) var(--ease-out-expo);
  width: 100%;
}
.shelf-card:hover { border-color: var(--line); transform: translateY(-6px); }
.shelf-card .media-frame {
  border: 0;
  border-radius: 0;
  border-bottom: 1px solid var(--line-soft);
  aspect-ratio: 16 / 10;
}
.shelf-card__body {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 20px 22px 22px;
}
.shelf-card__name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 20px;
  letter-spacing: -0.02em;
}
.shelf-card__type {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray);
  text-align: right;
  flex-shrink: 0;
}

/* ═══════════ CHAPTERS ═══════════ */
/* cinematic selected-work gallery */
.shelf-cinema {
  --gallery-sheen: -70%;
  position: relative;
  min-height: 218svh;
  margin-top: clamp(42px, 6vw, 86px);
}
.shelf-cinema::before {
  content: "";
  position: absolute;
  inset: 8svh calc(var(--page-gutter) * -0.4) auto;
  height: 78svh;
  pointer-events: none;
  background:
    radial-gradient(circle at 22% 48%, rgba(255,255,255,0.13), transparent 34%),
    radial-gradient(circle at 78% 30%, rgba(255,255,255,0.08), transparent 30%),
    linear-gradient(90deg, transparent, rgba(255,255,255,0.06), transparent);
  opacity: 0.42;
  filter: blur(14px);
}
.shelf-cinema__sticky {
  position: sticky;
  top: clamp(84px, 10vh, 118px);
  min-height: calc(100svh - 130px);
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(360px, 0.78fr);
  gap: clamp(26px, 4.5vw, 76px);
  align-items: center;
}
.shelf-cinema__stage {
  position: relative;
  min-width: 0;
  min-height: clamp(520px, 66vh, 760px);
  perspective: 1500px;
  isolation: isolate;
}
.shelf-cinema__stage::before,
.shelf-cinema__stage::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: 5;
}
.shelf-cinema__stage::before {
  inset: 8% -5% -6% 12%;
  background: radial-gradient(ellipse at center, rgba(255,255,255,0.14), transparent 58%);
  filter: blur(34px);
  opacity: 0.34;
}
.shelf-cinema__stage::after {
  inset: 0;
  background: linear-gradient(105deg, transparent 0 36%, rgba(255,255,255,0.18) 48%, transparent 61%);
  transform: translateX(var(--gallery-sheen));
  opacity: 0.22;
  mix-blend-mode: screen;
}
.shelf-cinema__media {
  position: absolute;
  inset: 0;
  width: 100%;
  text-align: left;
  opacity: 0;
  visibility: hidden;
  transform-origin: center;
  pointer-events: none;
  transition: opacity 260ms ease, visibility 260ms ease;
}
.shelf-cinema__media.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 2;
}
.shelf-cinema__bezel {
  position: absolute;
  inset: 0;
  display: block;
  overflow: hidden;
  border-radius: clamp(20px, 2.4vw, 34px);
  border: 1px solid rgba(255,255,255,0.15);
  background:
    linear-gradient(145deg, rgba(255,255,255,0.08), rgba(255,255,255,0.015)),
    var(--black-soft);
  box-shadow:
    0 34px 120px rgba(0,0,0,0.5),
    inset 0 1px 0 rgba(255,255,255,0.1);
  transform-style: preserve-3d;
}
.shelf-cinema__chrome {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 3;
  height: 44px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 18px;
  border-bottom: 1px solid rgba(255,255,255,0.09);
  background: rgba(5,5,5,0.72);
  backdrop-filter: blur(12px);
}
.shelf-cinema__chrome i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.42);
}
.shelf-cinema__chrome b {
  margin-left: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gray);
}
.shelf-cinema__screen-stack {
  position: absolute;
  inset: 44px 0 0;
  display: block;
  transform-style: preserve-3d;
}
.shelf-cinema__screen {
  position: absolute;
  display: block;
  object-fit: cover;
  object-position: top center;
  background: var(--surface);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 18px 60px rgba(0,0,0,0.32);
  transition: transform 900ms var(--ease-out-expo), filter 500ms ease;
}
.shelf-cinema__screen--1 {
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 0;
}
.shelf-cinema__screen--2 {
  right: 3%;
  bottom: 8%;
  width: 43%;
  height: 34%;
  border-radius: 14px;
  transform: translate3d(0, 0, 110px) rotateZ(-1.5deg);
}
.shelf-cinema__screen--3 {
  left: 5%;
  top: 10%;
  width: 36%;
  height: 27%;
  border-radius: 12px;
  transform: translate3d(0, 0, 160px) rotateZ(1.2deg);
}
.shelf-cinema__glare {
  position: absolute;
  inset: 0;
  z-index: 4;
  background:
    linear-gradient(110deg, rgba(255,255,255,0.16), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,0.08), transparent 28%);
  opacity: 0.42;
  mix-blend-mode: screen;
  pointer-events: none;
}
.shelf-cinema__media:hover .shelf-cinema__screen--1,
.shelf-cinema__media:focus-visible .shelf-cinema__screen--1 {
  transform: scale(1.035);
  filter: contrast(1.03);
}
.shelf-cinema__media:hover .shelf-cinema__screen--2,
.shelf-cinema__media:focus-visible .shelf-cinema__screen--2 {
  transform: translate3d(-3%, -5%, 130px) rotateZ(-2.2deg);
}
.shelf-cinema__media:hover .shelf-cinema__screen--3,
.shelf-cinema__media:focus-visible .shelf-cinema__screen--3 {
  transform: translate3d(3%, 5%, 175px) rotateZ(1.8deg);
}
.shelf-cinema__meta-strip {
  position: absolute;
  z-index: 6;
  left: 18px;
  right: 18px;
  bottom: 18px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.14);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
}
.shelf-cinema__panel {
  position: relative;
  min-width: 0;
  align-self: stretch;
  display: grid;
  grid-template-rows: minmax(250px, 1fr) auto auto;
  gap: 24px;
}
.shelf-cinema__copy-wrap {
  position: relative;
  min-height: 300px;
}
.shelf-cinema__copy {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.shelf-cinema__copy.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.shelf-cinema__kicker {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gray);
}
.shelf-cinema__name {
  font-family: var(--font-display);
  font-size: clamp(44px, 5vw, 82px);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 0.92;
}
.shelf-cinema__desc {
  max-width: 42ch;
  color: var(--silver);
  font-size: clamp(15px, 1.35vw, 18px);
  line-height: 1.65;
}
.shelf-cinema__caps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.shelf-cinema__caps span {
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  padding: 7px 11px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray);
}
.shelf-cinema__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.shelf-cinema__controls {
  display: grid;
  gap: 10px;
}
.shelf-cinema__control {
  position: relative;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 82px;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 76px;
  padding: 10px 10px 10px 14px;
  text-align: left;
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  background: rgba(255,255,255,0.025);
  overflow: hidden;
  transition:
    background var(--duration-fast) ease,
    border-color var(--duration-fast) ease,
    transform var(--duration-medium) var(--ease-out-expo);
}
.shelf-cinema__control::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255,255,255,0.1), transparent 56%);
  opacity: 0;
  transition: opacity var(--duration-fast) ease;
}
.shelf-cinema__control:hover,
.shelf-cinema__control:focus-visible,
.shelf-cinema__control.is-active {
  background: rgba(255,255,255,0.065);
  border-color: rgba(255,255,255,0.2);
  transform: translateX(-6px);
}
.shelf-cinema__control.is-active::before { opacity: 1; }
.shelf-cinema__control-index {
  position: relative;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--gray);
}
.shelf-cinema__control-main {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}
.shelf-cinema__control-name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--white);
}
.shelf-cinema__control-type {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--gray);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.shelf-cinema__control-thumb {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border-radius: 10px;
  border: 1px solid var(--line-soft);
}
.shelf-cinema__control-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  filter: saturate(0.92);
  transition: transform 600ms var(--ease-out-expo);
}
.shelf-cinema__control:hover .shelf-cinema__control-thumb img,
.shelf-cinema__control.is-active .shelf-cinema__control-thumb img {
  transform: scale(1.08);
}
.shelf-cinema__progress {
  height: 1px;
  background: var(--line-soft);
  overflow: hidden;
}
.shelf-cinema__progress i {
  display: block;
  height: 100%;
  width: 100%;
  transform-origin: left;
  transform: scaleX(0.25);
  background: var(--white);
  transition: transform 520ms var(--ease-out-expo);
}

.chapter {
  position: relative;
  overflow: clip;
}
.chapter::before {
  content: "";
  position: absolute;
  inset: 8% 0 auto;
  height: 64%;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 28%, rgba(255,255,255,0.105), transparent 32%),
    radial-gradient(circle at 82% 70%, rgba(255,255,255,0.075), transparent 34%),
    linear-gradient(180deg, transparent, rgba(255,255,255,0.035), transparent);
  opacity: 0.7;
  filter: blur(20px);
}
.chapter:nth-of-type(even)::before {
  background:
    radial-gradient(circle at 76% 26%, rgba(255,255,255,0.11), transparent 31%),
    radial-gradient(circle at 22% 76%, rgba(255,255,255,0.07), transparent 34%),
    linear-gradient(180deg, transparent, rgba(255,255,255,0.032), transparent);
}
.chapter__pin {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-block: clamp(48px, 7vh, 90px);
  overflow: hidden;
  isolation: isolate;
}
.chapter__layout {
  position: relative;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: clamp(28px, 4.5vw, 80px);
  align-items: center;
  z-index: 1;
}
.chapter__copy {
  position: relative;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
  z-index: 2;
}
.chapter__index {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  color: var(--gray);
}
.chapter__name {
  font-family: var(--font-display);
  font-weight: 550;
  font-size: clamp(38px, 4.6vw, 74px);
  letter-spacing: -0.035em;
  line-height: 0.98;
}
.chapter__context { font-size: 15.5px; line-height: 1.7; color: var(--silver); max-width: 44ch; }
.chapter__ps { display: flex; flex-direction: column; gap: 12px; margin-top: 6px; }
.chapter__ps div {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 14px;
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--gray);
  padding-top: 12px;
  border-top: 1px solid var(--line-soft);
}
.chapter__ps dt {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--silver);
  padding-top: 3px;
}
.chapter__caps { display: flex; flex-wrap: wrap; gap: 8px; }
.chapter__caps span {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray);
  border: 1px solid var(--line-soft);
  border-radius: 100px;
  padding: 6px 12px;
}
.chapter__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 10px; }

.chapter__stage {
  position: relative;
  min-width: 0;
  perspective: 1500px;
  transform-style: preserve-3d;
}
.chapter__stage::before {
  content: "";
  position: absolute;
  inset: -9% -7% -12%;
  pointer-events: none;
  background:
    radial-gradient(ellipse at center, rgba(255,255,255,0.17), transparent 58%),
    linear-gradient(120deg, rgba(255,255,255,0.08), transparent 42%);
  opacity: 0.28;
  filter: blur(34px);
}
.chapter__stage-inner {
  position: relative;
  min-width: 0;
  transform-style: preserve-3d;
  will-change: transform;
}
.chapter__mark {
  position: absolute;
  right: -0.07em;
  top: -0.32em;
  z-index: -1;
  font-family: var(--font-display);
  font-size: clamp(120px, 18vw, 300px);
  font-weight: 620;
  line-height: 1;
  letter-spacing: -0.08em;
  color: rgba(255,255,255,0.035);
  pointer-events: none;
}
.chapter__stage-labels {
  position: absolute;
  z-index: 4;
  left: 18px;
  right: 18px;
  bottom: 16px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.15);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.68);
  mix-blend-mode: difference;
}
.chapter__main {
  position: relative;
  border-radius: clamp(18px, 2vw, 28px);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.14);
  aspect-ratio: 16 / 10;
  background:
    linear-gradient(145deg, rgba(255,255,255,0.08), rgba(255,255,255,0.012)),
    var(--surface);
  box-shadow:
    0 40px 120px rgba(0,0,0,0.42),
    inset 0 1px 0 rgba(255,255,255,0.12);
  will-change: transform, clip-path;
}
.chapter__main::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(110deg, rgba(255,255,255,0.18), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,0.08), transparent 24%, transparent 72%, rgba(0,0,0,0.2));
  opacity: 0.42;
  mix-blend-mode: screen;
}
.chapter__main img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.chapter__screen {
  position: absolute;
  border-radius: clamp(14px, 1.4vw, 20px);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 30px 90px -26px rgba(0, 0, 0, 0.86);
  background: var(--surface);
  will-change: transform;
}
.chapter__screen img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }

/* 01 — TradeFlow: structured corporate; admin panel slides over the form */
.chapter--tradeflow .chapter__screen--a {
  width: 58%;
  aspect-ratio: 16 / 10;
  right: -6%;
  bottom: -10%;
  transform: translateZ(150px) rotateZ(-1.4deg);
}

/* 02 — Mainstage: full-bleed pulse; copy over media on desktop */
.chapter--mainstage .chapter__layout { grid-template-columns: minmax(320px, 0.75fr) minmax(0, 1.25fr); }
.chapter--mainstage .chapter__stage { order: 2; }
.chapter--mainstage .chapter__copy { order: 1; }
.chapter--mainstage .chapter__screen--a {
  width: 44%;
  aspect-ratio: 4 / 5;
  left: -8%;
  bottom: -12%;
  transform: translateZ(145px) rotateZ(2.2deg);
}
.chapter--mainstage .chapter__screen--a img { object-position: top left; }
.chapter--mainstage .chapter__screen--b {
  width: 42%;
  aspect-ratio: 16 / 10;
  right: -5%;
  top: -7%;
  transform: translateZ(110px) rotateZ(-1.8deg);
}

/* 03 — TecksArt: cinematic editorial, centered */
.chapter--tecksart .chapter__layout {
  grid-template-columns: 1fr;
  gap: clamp(24px, 3.4vw, 46px);
}
.chapter--tecksart .chapter__main { aspect-ratio: 21 / 10; }
.chapter--tecksart .chapter__copy {
  flex-direction: row;
  align-items: flex-end;
  justify-content: space-between;
  gap: clamp(20px, 4vw, 60px);
  flex-wrap: wrap;
}
.chapter--tecksart .chapter__copy-main { display: flex; flex-direction: column; gap: 16px; max-width: 52ch; }
.chapter--tecksart .chapter__screen--a {
  width: 30%;
  aspect-ratio: 16 / 10;
  right: 4%;
  bottom: -8%;
  transform: translateZ(150px) rotateZ(-1.4deg);
}

/* 04 — Vant: modular product grid, no pin */
.chapter--vant { padding-block: calc(var(--section-space) * 0.4); }
.chapter--vant .chapter__pin { min-height: 0; }
.chapter--vant .chapter__stage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.chapter--vant .chapter__mark { right: 0; top: -0.42em; }
.chapter--vant .chapter__stage-labels { display: none; }
.chapter--vant .chapter__cell {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--line-soft);
  background: var(--surface);
  aspect-ratio: 16 / 11;
  box-shadow: 0 22px 72px -42px rgba(0,0,0,0.82);
  transition: transform var(--duration-medium) var(--ease-out-expo), border-color var(--duration-fast) ease, opacity var(--duration-medium) ease;
}
.chapter--vant .chapter__cell:hover { transform: translateY(-6px); border-color: var(--line); }
.chapter--vant .chapter__cell img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.chapter--vant .chapter__cell--wide { grid-column: span 2; aspect-ratio: 21 / 10; }

/* ═══════════ CATALOG (complete index) ═══════════ */
.catalog__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: clamp(30px, 4vw, 54px);
}
.catalog__filter {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gray);
  border: 1px solid var(--line-soft);
  border-radius: 100px;
  padding: 11px 20px;
  min-height: 42px;
  transition: color var(--duration-fast) ease, border-color var(--duration-fast) ease, background var(--duration-fast) ease;
}
.catalog__filter:hover { color: var(--white); border-color: var(--line); }
.catalog__filter[aria-pressed="true"] {
  color: var(--black);
  background: var(--white);
  border-color: var(--white);
}

.catalog__grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 20px;
}
.catalog-item {
  position: relative;
  grid-column: span 2;
  text-align: left;
  width: 100%;
  transition: opacity var(--duration-medium) ease, transform var(--duration-medium) var(--ease-out-expo);
}
.catalog-item--wide { grid-column: span 3; }
.catalog-item--tall { grid-column: span 3; }
.catalog-item.is-filtered { display: none; }
.catalog-item .media-frame { aspect-ratio: 16 / 10; }
.catalog-item--tall .media-frame { aspect-ratio: 16 / 12; }
.catalog-item__meta {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding-top: 16px;
}
.catalog-item__index { font-family: var(--font-mono); font-size: 10px; color: var(--gray-dark); }
.catalog-item__name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 19px;
  letter-spacing: -0.02em;
  transition: transform var(--duration-medium) var(--ease-out-expo);
}
.catalog-item:hover .catalog-item__name { transform: translateX(6px); }
.catalog-item__type {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray);
  text-align: right;
}

/* ═══════════ PROCESS ═══════════ */
.process__layout {
  display: grid;
  grid-template-columns: minmax(200px, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(30px, 5vw, 100px);
  align-items: start;
}
.process__rail {
  position: sticky;
  top: calc(var(--header-h) + 40px);
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.process__current {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(90px, 12vw, 190px);
  line-height: 0.85;
  letter-spacing: -0.04em;
  color: var(--white);
}
.process__track {
  width: 1px;
  height: 130px;
  background: var(--line-soft);
  position: relative;
  overflow: hidden;
  margin-left: 6px;
}
.process__track i {
  position: absolute;
  inset: 0;
  background: var(--white);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.6s var(--ease-out-quart);
}
.process__steps { display: flex; flex-direction: column; }
.process-step {
  padding-block: clamp(30px, 4vw, 52px);
  border-top: 1px solid var(--line-soft);
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 20px;
  opacity: 0.38;
  transition: opacity 0.5s ease;
}
.process-step.is-active { opacity: 1; }
.process-step__n { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.2em; color: var(--silver); padding-top: 8px; }
.process-step__t {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(24px, 2.6vw, 38px);
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.process-step__d { font-size: 15px; line-height: 1.7; color: var(--silver); max-width: 46ch; }

/* ═══════════ ABOUT ═══════════ */
.about__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
  gap: clamp(30px, 5vw, 110px);
  align-items: start;
}
.about__prose { display: flex; flex-direction: column; gap: 20px; margin-top: 26px; }
.about__prose p { font-size: clamp(16px, 1.6vw, 19px); line-height: 1.75; color: var(--silver); max-width: 56ch; }
.about__prose p:first-child {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(22px, 2.6vw, 34px);
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--white);
}
.about__caps { display: flex; flex-direction: column; margin-top: 26px; }
.about__cap {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  padding-block: 20px;
  border-top: 1px solid var(--line-soft);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(17px, 1.8vw, 22px);
  letter-spacing: -0.01em;
}
.about__cap:last-child { border-bottom: 1px solid var(--line-soft); }
.about__cap span:last-child { font-family: var(--font-mono); font-size: 10px; color: var(--gray-dark); }

/* ═══════════ LAB ═══════════ */
.lab { overflow: hidden; }
.lab__reel-wrap {
  position: relative;
  margin-top: clamp(30px, 4vw, 60px);
}

/* ── videos as a 3D cylinder ── */
.lab-cylinder {
  --cyl-h: 260px;
  position: relative;
  height: clamp(300px, 42vw, 470px);
  perspective: 1200px;
  perspective-origin: 50% 50%;
  touch-action: pan-y;
  user-select: none;
  cursor: grab;
  outline: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
}
.lab-cylinder.is-dragging { cursor: grabbing; }
.lab-cylinder__stage {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  will-change: transform;
}
.lab-item {
  position: absolute;
  top: 50%;
  left: 50%;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--line-soft);
  background: var(--surface);
  box-shadow: 0 24px 70px rgba(0,0,0,0.42);
  backface-visibility: hidden;
  transform-origin: center center;
  will-change: transform, opacity;
  cursor: pointer;
  transition: border-color 200ms ease, box-shadow 320ms var(--ease-out-expo), transform 460ms var(--ease-out-expo);
}
.lab-item.is-hovered {
  border-color: rgba(255,255,255,0.5);
  box-shadow: 0 44px 120px rgba(0,0,0,0.64), 0 0 0 1px rgba(255,255,255,0.09);
}
.lab-item video {
  width: 100%; height: 100%;
  object-fit: cover;
  pointer-events: none;
  display: block;
}

/* reduced-motion fallback: flat scroll strip */
.lab-cylinder.is-static {
  height: auto;
  perspective: none;
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scrollbar-width: none;
}
.lab-cylinder.is-static::-webkit-scrollbar { display: none; }
.lab-cylinder.is-static .lab-cylinder__stage { position: static; display: contents; }
.lab-cylinder.is-static .lab-item {
  position: relative;
  top: auto; left: auto;
  transform: none !important;
  width: min(360px, 80vw) !important;
  flex: 0 0 auto;
  opacity: 1 !important;
}
.lab-item__cap {
  position: absolute;
  left: 14px; right: 14px; bottom: 14px;
  padding: 8px 10px;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 999px;
  background: rgba(5, 5, 5, 0.62);
  backdrop-filter: blur(12px) saturate(1.15);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.lab-item__name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.lab-item__tag { flex-shrink: 0; font-family: var(--font-mono); font-size: 8px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--silver); }
.lab__hint {
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.lab-scrub {
  --lab-progress: 0;
  width: min(780px, calc(100vw - (var(--page-gutter) * 2)));
  margin: clamp(18px, 2.4vw, 34px) auto 0;
  position: relative;
}
.lab-scrub__track {
  width: 100%;
  min-height: 44px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 0;
  border: 0;
  color: var(--white);
  background: transparent;
  cursor: default;
}
.lab-scrub__rail {
  position: relative;
  height: 18px;
  display: block;
}
.lab-scrub__rail::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 2px;
  transform: translateY(-50%);
  background: linear-gradient(90deg, rgba(255,255,255,0.08), rgba(255,255,255,0.26), rgba(255,255,255,0.08));
}
.lab-scrub__rail i {
  position: absolute;
  left: 0;
  top: 50%;
  width: 100%;
  height: 2px;
  transform: translateY(-50%) scaleX(var(--lab-progress));
  transform-origin: left;
  background: linear-gradient(90deg, #ffffff, #9d9d96);
  box-shadow: 0 0 24px rgba(255,255,255,0.28);
  transition: transform 180ms var(--ease-out-quart);
}
.lab-scrub__rail b {
  position: absolute;
  right: 0;
  top: 50%;
  width: 18px;
  height: 18px;
  border: 1px solid rgba(255,255,255,0.72);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, var(--black) 0 28%, transparent 30%),
    conic-gradient(from 0deg, #fff 0 20%, rgba(255,255,255,0.18) 20% 55%, #fff 55% 72%, rgba(255,255,255,0.18) 72% 100%);
  transform: translate(50%, -50%) rotate(calc(var(--lab-progress) * 1turn));
  box-shadow: 0 0 0 6px rgba(255,255,255,0.035), 0 10px 28px rgba(0,0,0,0.42);
  transition: transform 220ms var(--ease-out-expo), box-shadow 220ms ease;
}
.lab-scrub__readout {
  min-width: 68px;
  display: inline-flex;
  justify-content: flex-end;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--silver);
}
.lab-scrub__readout em {
  font-style: normal;
  color: var(--white);
}
.lab-scrub.is-complete .lab-scrub__rail b {
  animation: labKnobComplete 520ms var(--ease-out-expo);
}
@keyframes labKnobComplete {
  0% { box-shadow: 0 0 0 0 rgba(255,255,255,0.28), 0 10px 28px rgba(0,0,0,0.42); }
  100% { box-shadow: 0 0 0 22px rgba(255,255,255,0), 0 10px 28px rgba(0,0,0,0.42); }
}

/* ═══════════ COMMAND 2 — direct fullscreen work reel ═══════════ */
.scene-block {
  --scene-wipe: 0;
  position: relative;
}
.scene-block::after {
  content: "";
  position: absolute;
  inset: auto var(--page-gutter) 0;
  height: 1px;
  transform-origin: left;
  transform: scaleX(var(--scene-wipe));
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.42), transparent);
  opacity: 0.42;
  pointer-events: none;
}
.scene-block::before {
  content: var(--scene-index);
  position: absolute;
  right: var(--page-gutter);
  top: clamp(18px, 3vw, 44px);
  z-index: 1;
  font-family: var(--font-mono);
  font-size: clamp(46px, 7vw, 118px);
  letter-spacing: -0.08em;
  color: rgba(255,255,255,0.035);
  pointer-events: none;
}
.work-section {
  padding-top: clamp(76px, 10vw, 150px);
  padding-bottom: clamp(70px, 9vw, 130px);
  overflow: visible;
}
.work-head {
  margin-bottom: clamp(26px, 4vw, 54px);
  max-width: 980px;
}

/* ═══════════ Projects — expanding scroll-driven panels ═══════════ */
.work-scroll { position: relative; width: 100%; }
.work-sticky {
  position: sticky;
  top: 0;
  min-height: 100svh;
  display: flex;
  align-items: center;
}
.work-scroll.is-flat { height: auto !important; }
.work-scroll.is-flat .work-sticky {
  position: static;
  min-height: 0;
  display: block;
}
.work-panels {
  position: relative;
  width: 100%;
  padding-inline: var(--page-gutter);
}
.work-panels__hud {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gray);
}
.work-panels__strip {
  display: flex;
  gap: 10px;
  width: 100%;
  height: clamp(460px, 74vh, 780px);
}
.work-panel {
  position: relative;
  flex: 1 1 0%;
  min-width: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--line-soft);
  background: var(--surface);
  cursor: pointer;
  isolation: isolate;
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
  transition:
    flex-grow 700ms var(--ease-out-expo),
    border-color 400ms ease,
    box-shadow 520ms var(--ease-out-expo);
}
.work-panel.is-active {
  flex: 7 1 0%;
  border-color: rgba(255,255,255,0.24);
  box-shadow: 0 40px 120px rgba(0,0,0,0.55), inset 0 1px 0 rgba(255,255,255,0.14);
}
.work-panel:not(.is-active):hover {
  border-color: rgba(255,255,255,0.2);
}
.work-panel:not(.is-active):hover .work-panel__cover {
  filter: grayscale(0.15) brightness(0.82);
}
.work-panel__media { position: absolute; inset: 0; z-index: 0; }
.work-panel__cover,
.work-panel__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.work-panel__cover {
  filter: grayscale(0.32) brightness(0.68);
  transform: scale(1.06);
  transition: filter 600ms ease, transform 900ms var(--ease-out-expo);
}
.work-panel.is-active .work-panel__cover { filter: none; transform: scale(1.02); }
.work-panel__video { opacity: 0; transition: opacity 520ms ease; }
.work-panel.is-active.is-video-ready .work-panel__video { opacity: 1; }
.work-panel__shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(5,5,5,0.12) 0%, rgba(5,5,5,0) 28%, rgba(5,5,5,0.34) 60%, rgba(5,5,5,0.92) 100%);
}
/* spine (inactive) */
.work-panel__spine {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  padding-bottom: 26px;
  transition: opacity 400ms ease;
}
.work-panel.is-active .work-panel__spine { opacity: 0; pointer-events: none; }
.work-panel__icon {
  width: 46px;
  height: 46px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.22);
  background: rgba(10,10,10,0.55);
  backdrop-filter: blur(8px);
  color: var(--white);
}
.work-panel__icon svg { width: 22px; height: 22px; }
.work-panel__spine-name {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--silver);
  white-space: nowrap;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.7);
}
/* label (active) */
.work-panel__label {
  position: absolute;
  z-index: 3;
  left: clamp(22px, 3vw, 48px);
  right: clamp(22px, 3vw, 48px);
  bottom: clamp(22px, 3vw, 44px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 500ms ease 120ms, transform 600ms var(--ease-out-expo) 120ms;
  pointer-events: none;
}
.work-panel.is-active .work-panel__label { opacity: 1; transform: none; }
.work-panel__kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--silver);
}
.work-panel__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(30px, 4vw, 66px);
  letter-spacing: -0.03em;
  line-height: 0.98;
}
.work-panel__desc {
  max-width: 54ch;
  color: var(--silver);
  font-size: clamp(14px, 1.25vw, 18px);
  line-height: 1.5;
}
.work-panel__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white);
}
.work-panel__cta svg { width: 13px; height: 13px; transition: transform 260ms var(--ease-out-expo); }
.work-panel:hover .work-panel__cta svg { transform: translate(3px, -3px); }
.work-panel:focus-visible { outline: 2px solid rgba(255,255,255,0.55); outline-offset: 3px; }
.work-panels__progress {
  margin-top: 18px;
  height: 2px;
  background: var(--line-soft);
  border-radius: 2px;
  overflow: hidden;
}
.work-panels__progress i {
  display: block;
  height: 100%;
  width: 100%;
  transform-origin: left;
  transform: scaleX(0);
  background: var(--white);
  transition: transform 320ms var(--ease-out-quart);
}

/* touch / reduced-motion: horizontal swipe strip */
.work-panels.is-strip .work-panels__strip {
  height: clamp(420px, 70vh, 580px);
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  margin-inline: calc(var(--page-gutter) * -1);
  padding-inline: var(--page-gutter);
}
.work-panels.is-strip .work-panels__strip::-webkit-scrollbar { display: none; }
.work-panels.is-strip .work-panel {
  flex: 0 0 min(78vw, 480px);
  scroll-snap-align: center;
}
/* neighbours stay dimmed with just their spine showing — the contrast against
   the bright active card is what tells you there's more to swipe to */
.work-swipe-hint {
  display: none;
  align-items: center;
  gap: 10px;
  margin: 14px auto 0;
  width: max-content;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--silver);
}
.work-swipe-hint svg { width: 15px; height: 15px; animation: swipeNudge 1.6s ease-in-out infinite; }
@keyframes swipeNudge {
  0%, 100% { transform: translateX(0); opacity: 0.55; }
  50% { transform: translateX(5px); opacity: 1; }
}
.work-panels.is-strip .work-swipe-hint { display: inline-flex; }
.work-reel {
  position: relative;
  width: 100%;
  isolation: isolate;
}
.work-reel::before {
  content: "";
  position: absolute;
  inset: 8% 0 auto;
  height: 54svh;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
  opacity: 0.42;
  filter: blur(26px);
  pointer-events: none;
}
.work-reel__hud {
  width: min(var(--content-max), 100%);
  margin: 0 auto 16px;
  padding-inline: var(--page-gutter);
  display: flex;
  justify-content: space-between;
  gap: 18px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gray);
}
.work-reel__viewport {
  position: relative;
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--page-gutter);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  cursor: grab;
  perspective: 1500px;
  padding-block: 32px;
}
.work-reel__viewport::-webkit-scrollbar { display: none; }
.work-reel__viewport:active,
.work-reel__viewport.is-dragging { cursor: grabbing; }
.work-reel__track {
  display: flex;
  gap: clamp(18px, 2.3vw, 36px);
  width: max-content;
  padding-inline: var(--page-gutter);
  padding-bottom: 10px;
}
.work-card {
  --card-rot: 0deg;
  --card-y: 0px;
  --card-scale: 0.965;
  --media-x: 0%;
  position: relative;
  scroll-snap-align: center;
  width: min(88vw, 1420px);
  min-height: clamp(520px, 58svh, 660px);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.52fr);
  gap: clamp(22px, 3vw, 58px);
  align-items: center;
  padding: clamp(16px, 2vw, 28px);
  border: 1px solid var(--line-soft);
  background: linear-gradient(135deg, rgba(255,255,255,0.075), rgba(255,255,255,0.01) 36%), rgba(9,9,9,0.86);
  box-shadow: 0 34px 120px rgba(0,0,0,0.44);
  opacity: 0.58;
  transform: translateY(var(--card-y)) rotateY(var(--card-rot)) scale(var(--card-scale));
  transform-style: preserve-3d;
  will-change: transform, opacity;
  transition: opacity 210ms ease, transform 300ms var(--ease-out-expo), border-color 210ms ease, box-shadow 280ms ease;
}
.work-card.is-active {
  opacity: 1;
  --card-scale: 1;
  border-color: rgba(255,255,255,0.22);
  box-shadow: 0 42px 140px rgba(0,0,0,0.58);
}
.work-card.is-arriving .work-card__media {
  animation: projectSnapIn 720ms var(--ease-out-expo) both;
}
.work-card.is-arriving .work-card__name {
  animation: projectNameIn 640ms var(--ease-out-expo) both;
}
.work-card__media {
  --glow-x: 50%;
  --glow-y: 50%;
  position: relative;
  align-self: stretch;
  display: block;
  min-height: 100%;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.14);
  background: var(--black);
  text-align: left;
  transform-origin: center center;
  transition: transform 260ms var(--ease-out-expo), border-color 180ms ease, box-shadow 240ms ease;
}
.work-card__media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 5;
  background: radial-gradient(circle at var(--glow-x) var(--glow-y), rgba(255,255,255,0.2), transparent 26%), linear-gradient(110deg, rgba(255,255,255,0.14), transparent 32%);
  opacity: 0;
  mix-blend-mode: screen;
  transition: opacity var(--duration-fast) ease;
  pointer-events: none;
}
.work-card__media:hover::before,
.work-card__media:focus-visible::before { opacity: 1; }
.work-card__poster,
.work-card__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: top center;
}
.work-card__poster {
  opacity: 1;
  transform: translateX(var(--media-x)) scale(1.01);
  transition: opacity 280ms ease, transform 360ms var(--ease-out-expo), filter 260ms ease;
}
.work-card__video {
  z-index: 1;
  opacity: 0.92;
  filter: saturate(0.96) contrast(1.05);
  transform: translateX(var(--media-x)) scale(1.015);
  transition: opacity 220ms ease, transform 360ms var(--ease-out-expo), filter 260ms ease;
}
.work-card.is-active .work-card__video { opacity: 1; }
.work-card.has-video.is-video-ready .work-card__poster { opacity: 0; }
.rail-card__media.is-video-ready > img { opacity: 0; }
.rail-card__media > img { transition: opacity 360ms ease, transform 620ms var(--ease-out-expo); }
.work-card.is-static .work-card__poster {
  animation: staticPreviewDrift 8.5s var(--ease-smooth) infinite alternate;
}
.work-card__media:hover .work-card__poster,
.work-card__media:focus-visible .work-card__poster,
.work-card__media:hover .work-card__video,
.work-card__media:focus-visible .work-card__video {
  transform: translateX(var(--media-x)) scale(1.135);
  filter: saturate(1.1) contrast(1.12);
}
.work-card__chrome {
  position: absolute;
  z-index: 4;
  left: 0;
  right: 0;
  top: 0;
  height: 38px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 14px;
  border-bottom: 1px solid rgba(255,255,255,0.11);
  background: rgba(5,5,5,0.55);
  backdrop-filter: blur(10px);
  opacity: 0;
  transform: translateY(-100%);
  transition: opacity 360ms ease, transform 520ms var(--ease-out-expo);
}
.work-card__media:hover .work-card__chrome,
.work-card__media:focus-visible .work-card__chrome,
.work-card.is-active .work-card__chrome {
  opacity: 1;
  transform: none;
}
.work-card__chrome i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.42);
}
.work-card__chrome b {
  margin-left: 6px;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.62);
}
.work-card__scan {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(180deg, transparent 0 48%, rgba(255,255,255,0.13) 50%, transparent 52%), linear-gradient(180deg, transparent 55%, rgba(0,0,0,0.7));
  background-size: 100% 180%, 100% 100%;
  animation: workScan 4.8s linear infinite;
  pointer-events: none;
}
.work-card__play {
  position: absolute;
  z-index: 6;
  right: 18px;
  bottom: 18px;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,0.36);
  background: rgba(5,5,5,0.48);
  backdrop-filter: blur(10px);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--white);
  transition: transform 280ms var(--ease-out-expo), background 220ms ease, border-color 220ms ease;
}
.work-card__media:hover .work-card__play,
.work-card__media:focus-visible .work-card__play {
  transform: scale(1.08);
  border-color: rgba(255,255,255,0.64);
  background: rgba(5,5,5,0.68);
}
.work-card__copy {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-block: clamp(10px, 2vw, 28px);
  transition: transform 420ms var(--ease-out-expo), opacity 280ms ease;
}
.work-card:hover .work-card__copy,
.work-card:focus-within .work-card__copy { transform: translateX(10px); }
.work-card__kicker {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gray);
}
.work-card__name {
  font-family: var(--font-display);
  font-size: clamp(48px, 6vw, 112px);
  font-weight: 600;
  line-height: 0.88;
  letter-spacing: -0.065em;
}
.work-card__desc {
  max-width: 42ch;
  color: var(--silver);
  font-size: clamp(15px, 1.25vw, 18px);
  line-height: 1.65;
}
.work-card__caps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.work-card__caps span {
  border: 1px solid var(--line-soft);
  padding: 7px 11px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray);
}
.work-reel__progress {
  width: min(calc(100% - var(--page-gutter) * 2), var(--content-max));
  margin: 16px auto 0;
  height: 1px;
  background: var(--line-soft);
}
.work-reel__progress i {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--white);
  transition: transform 220ms linear;
}
@keyframes workScan {
  from { background-position: 0 -80%, 0 0; }
  to { background-position: 0 180%, 0 0; }
}
@keyframes projectSnapIn {
  0% { transform: translateZ(-40px) scale(0.965); filter: blur(8px) saturate(0.75); }
  58% { transform: translateZ(74px) scale(1.045); filter: blur(0) saturate(1.08); }
  100% { transform: translateZ(0) scale(1); filter: blur(0) saturate(1); }
}
@keyframes projectNameIn {
  0% { transform: translateY(18px); opacity: 0; filter: blur(8px); }
  100% { transform: translateY(0); opacity: 1; filter: blur(0); }
}
@keyframes staticPreviewDrift {
  from { transform: translateX(var(--media-x)) translateY(0) scale(1.015); }
  to { transform: translateX(var(--media-x)) translateY(-3.2%) scale(1.065); }
}

@media (hover: hover) and (pointer: fine) {
  .work-card:hover,
  .work-card:focus-within {
    opacity: 1;
    z-index: 6;
    border-color: rgba(255,255,255,0.32);
    box-shadow: 0 56px 170px rgba(0,0,0,0.68);
  }
  .work-card:hover .work-card__media,
  .work-card:focus-within .work-card__media {
    transform: translateZ(112px) scale(1.08);
    border-color: rgba(255,255,255,0.32);
    box-shadow: 0 34px 110px rgba(0,0,0,0.44);
  }
}

/* ═══════════ FOOTER ═══════════ */
.site-footer {
  position: relative;
  margin-top: calc(var(--section-space) * 0.4);
  border-top: 1px solid var(--line-soft);
  overflow: hidden;
  isolation: isolate;
}
/* full-bleed cinematic loop behind the whole final section */
.footer__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.footer__bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.62) contrast(1.06) saturate(0.94);
  transform: scale(1.04);
}
.footer__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(130% 90% at 50% -10%, rgba(5,5,5,0) 0%, rgba(5,5,5,0.32) 66%, rgba(5,5,5,0.66) 100%),
    linear-gradient(180deg, rgba(5,5,5,0.6), rgba(5,5,5,0.38) 44%, rgba(5,5,5,0.8));
}
.footer__panels,
.footer__wordmark,
.footer__legal { position: relative; z-index: 1; }
.footer__panels {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  min-height: clamp(440px, 62vh, 640px);
}
.footer__left {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
  padding: clamp(28px, 4vw, 64px) var(--page-gutter);
  border-right: 1px solid var(--line-soft);
  isolation: isolate;
  overflow: hidden;
}
.footer__video {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.footer__video video {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(1) brightness(0.55) contrast(1.05);
}
.footer__video::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5,5,5,0.55), rgba(5,5,5,0.25) 45%, rgba(5,5,5,0.8));
}
.footer__left-mark { width: 44px; height: 44px; color: var(--white); }
.footer__left-mark svg { width: 100%; height: 100%; }
.footer__left-bottom { display: flex; flex-direction: column; gap: 22px; }
.footer__statement {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(18px, 1.9vw, 24px);
  line-height: 1.35;
  letter-spacing: -0.01em;
  max-width: 24ch;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.55);
}
.footer__socials { display: flex; gap: 10px; flex-wrap: wrap; }
.footer__social {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  background: rgba(5, 5, 5, 0.35);
  backdrop-filter: blur(6px);
  transition: border-color var(--duration-fast) ease, background var(--duration-fast) ease;
}
.footer__social:hover, .footer__social:focus-visible { border-color: var(--white); background: rgba(5,5,5,0.6); }
.footer__social svg { width: 14px; height: 14px; }

.footer__right {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(20px, 2.6vw, 32px);
  padding: clamp(30px, 4.5vw, 72px) var(--page-gutter);
}
.footer__heading {
  order: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(40px, 5vw, 80px);
  letter-spacing: -0.04em;
  line-height: 0.98;
  max-width: 15ch;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.5);
}
.footer__right .footer__cta { order: 1; }
.footer__email { order: 2; }
.footer__links { order: 3; }
.footer__email {
  font-family: var(--font-mono);
  font-size: clamp(14px, 1.6vw, 18px);
  letter-spacing: 0.06em;
  color: var(--silver);
  align-self: flex-start;
  border-bottom: 1px solid var(--line);
  padding-bottom: 6px;
  transition: color var(--duration-fast) ease, border-color var(--duration-fast) ease;
  overflow-wrap: anywhere;
}
.footer__email:hover, .footer__email:focus-visible { color: var(--white); border-color: var(--white); }
.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
}
.footer__link {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gray);
  padding-block: 6px;
  transition: color var(--duration-fast) ease;
}
.footer__link:hover, .footer__link:focus-visible { color: var(--white); }
.footer__cta {
  align-self: flex-start;
  transform: scale(1.06);
  transform-origin: left center;
  box-shadow: 0 22px 60px -18px rgba(255, 255, 255, 0.3);
  border-radius: 100px;
}
.footer__cta:hover { box-shadow: 0 26px 70px -16px rgba(255, 255, 255, 0.42); }

.footer__wordmark {
  padding: clamp(28px, 4vw, 60px) clamp(12px, 1.4vw, 30px) clamp(16px, 2.4vw, 32px);
  border-top: 1px solid var(--line-soft);
  text-align: center;
}
.footer__wordmark svg {
  width: 100%;
  height: auto;
  display: block;
  margin-inline: auto;
  filter: drop-shadow(0 4px 44px rgba(0, 0, 0, 0.55));
}
.footer__wordmark text {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.015em;
  fill: var(--white);
}
.footer__legal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 16px var(--page-gutter) calc(18px + env(safe-area-inset-bottom));
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray-dark);
}

/* short viewports (notebook, laptop fullscreen) — shrink the giant wordmark so
   the whole contact section (heading + CTA + email) fits without being cut */
@media (min-width: 861px) and (max-height: 880px) {
  .site-footer { margin-top: 0; }
  .footer__panels { min-height: min(52vh, 400px); }
  .footer__right { gap: clamp(14px, 2vh, 26px); padding-block: clamp(20px, 3.6vh, 52px); }
  .footer__heading { font-size: clamp(30px, 4.4vh, 58px); }
  /* keep the wordmark full-width (edge to edge) — just trim its vertical padding */
  .footer__wordmark { padding-block: clamp(10px, 1.6vh, 24px) clamp(8px, 1.2vh, 16px); }
}
