/* ===================================================================
   apostroph Z — Cinematic
   Tischlerei Hamburg · Martin Schwabe & Julia Münster
   Dark, motion-driven, exploding geometry.
   =================================================================== */

/* ---------------- Tokens ---------------- */
:root {
  /* Cinematic anthracite scale */
  --black:        #0C0D0D;
  --ink:          #121313;
  --anthra:       #1A1B1B;
  --anthra-2:     #202121;
  --anthra-soft:  #2B2C2C;
  --line:         rgba(255,255,255,.09);
  --line-strong:  rgba(255,255,255,.16);

  /* Handwerksgold + neon ember (the glowing Z) */
  --gold:         #E0A225;
  --gold-light:   #F0C870;
  --gold-deep:    #B8841A;
  --ember:        #FF6A28;
  --ember-soft:   #FF8A4C;

  /* Neutrals */
  --paper:        #FAFAF8;
  --paper-dim:    #D9D8D4;
  --muted:        #9B9D9D;
  --muted-2:      #6E7070;

  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans:  'Inter', system-ui, -apple-system, sans-serif;

  --ease:      cubic-bezier(.22,1,.36,1);
  --ease-out:  cubic-bezier(.16,1,.3,1);

  --bar: clamp(28px, 5vh, 60px); /* letterbox bar height */
  --z-nav: 80;
  --z-lb: 200;
  --z-pre: 300;
}

/* ---------------- Reset ---------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; }
body {
  font-family: var(--sans);
  font-weight: 300;
  background: var(--black);
  color: var(--paper);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.06; letter-spacing: -.01em; }
::selection { background: var(--gold); color: var(--black); }

.wrap { width: min(1280px, 90vw); margin-inline: auto; }
.eyebrow {
  font-family: var(--sans); font-weight: 600; font-size: .72rem;
  letter-spacing: .26em; text-transform: uppercase; color: var(--gold);
}
.serif-em { font-style: italic; font-weight: 600; color: var(--gold-light); }

/* Scrollbar */
::-webkit-scrollbar { width: 9px; }
::-webkit-scrollbar-track { background: var(--black); }
::-webkit-scrollbar-thumb { background: var(--anthra-soft); border-radius: 0; }
::-webkit-scrollbar-thumb:hover { background: var(--gold-deep); }

/* ---------------- Preloader ---------------- */
.pre {
  position: fixed; inset: 0; z-index: var(--z-pre);
  background: var(--black);
  display: grid; place-items: center;
  transition: opacity .8s var(--ease), visibility .8s;
}
.pre.done { opacity: 0; visibility: hidden; pointer-events: none; }
.pre__inner { text-align: center; width: min(420px, 70vw); }
.pre__z {
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(4rem, 14vw, 9rem); line-height: 1;
  color: var(--ember);
  text-shadow: 0 0 18px rgba(255,106,40,.65), 0 0 60px rgba(255,106,40,.4);
  opacity: 0; transform: translateY(.2em);
  animation: preZ 1s var(--ease) .1s forwards;
}
.pre__bar {
  height: 1px; width: 100%; margin: 1.6rem 0 .9rem;
  background: var(--line-strong); position: relative; overflow: hidden;
}
.pre__bar i {
  position: absolute; inset: 0; transform-origin: left;
  background: linear-gradient(90deg, var(--ember), var(--gold));
  transform: scaleX(0);
  animation: preFill 1.4s var(--ease-out) .2s forwards;
}
.pre__pct {
  font-family: var(--sans); font-size: .7rem; letter-spacing: .26em;
  text-transform: uppercase; color: var(--muted);
}
@keyframes preZ { to { opacity: 1; transform: none; } }
@keyframes preFill { to { transform: scaleX(1); } }

/* ---------------- Letterbox (cinematic frame) ---------------- */
.cine-bar {
  position: fixed; left: 0; right: 0; height: var(--bar);
  background: var(--black); z-index: 70; pointer-events: none;
  transform: scaleY(0); transition: transform 1s var(--ease) .2s;
}
.cine-bar--top { top: 0; transform-origin: top; }
.cine-bar--bot { bottom: 0; transform-origin: bottom; }
body.ready .cine-bar { transform: scaleY(1); }
.cine-bar::after {
  content: ''; position: absolute; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
}
.cine-bar--top::after { bottom: 0; }
.cine-bar--bot::after { top: 0; }

/* ---------------- Navigation ---------------- */
.nav {
  position: fixed; top: var(--bar); left: 0; right: 0; z-index: var(--z-nav);
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem clamp(1.1rem, 5vw, 3rem);
  transition: background .5s var(--ease), padding .5s var(--ease), backdrop-filter .5s;
}
.nav.solid {
  background: rgba(12,13,13,.72);
  backdrop-filter: blur(14px) saturate(1.1);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  padding-top: .8rem; padding-bottom: .8rem;
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: baseline; gap: .55rem; }
.brand__z {
  font-family: var(--serif); font-weight: 700; font-size: 1.7rem; line-height: 1;
  color: var(--ember);
  text-shadow: 0 0 10px rgba(255,106,40,.55), 0 0 26px rgba(255,106,40,.3);
}
.brand__txt { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name { font-family: var(--serif); font-weight: 600; font-size: 1.05rem; letter-spacing: .02em; }
.brand__sub { font-family: var(--sans); font-weight: 500; font-size: .56rem; letter-spacing: .28em; text-transform: uppercase; color: var(--muted); }

.nav__links { display: flex; align-items: center; gap: 2rem; }
.nav__link {
  font-family: var(--sans); font-weight: 500; font-size: .76rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--paper-dim); position: relative; padding: .3rem 0;
  transition: color .3s;
}
.nav__link::after {
  content: ''; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%;
  background: var(--gold); transform: scaleX(0); transform-origin: right;
  transition: transform .4s var(--ease);
}
.nav__link:hover { color: var(--paper); }
.nav__link:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__cta {
  border: 1px solid var(--line-strong); padding: .6rem 1.3rem; color: var(--paper);
  font-family: var(--sans); font-weight: 600; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase;
  transition: background .35s var(--ease), color .35s, border-color .35s;
}
.nav__cta:hover { background: var(--gold); border-color: var(--gold); color: var(--black); }
.nav__burger { display: none; width: 30px; height: 18px; position: relative; }
.nav__burger span { position: absolute; left: 0; height: 1.5px; width: 100%; background: var(--paper); transition: transform .4s var(--ease), opacity .3s; }
.nav__burger span:nth-child(1){ top: 0; }
.nav__burger span:nth-child(2){ top: 50%; transform: translateY(-50%); }
.nav__burger span:nth-child(3){ bottom: 0; }
body.menu-open .nav__burger span:nth-child(1){ top: 50%; transform: translateY(-50%) rotate(45deg); }
body.menu-open .nav__burger span:nth-child(2){ opacity: 0; }
body.menu-open .nav__burger span:nth-child(3){ bottom: 50%; transform: translateY(50%) rotate(-45deg); }

/* Mobile menu overlay */
.menu {
  position: fixed; inset: 0; z-index: 75; background: var(--ink);
  display: flex; flex-direction: column; justify-content: center; gap: 1rem;
  padding: 0 8vw; opacity: 0; visibility: hidden; transition: opacity .5s var(--ease), visibility .5s;
}
body.menu-open .menu { opacity: 1; visibility: visible; }
.menu a {
  font-family: var(--serif); font-weight: 600; font-size: clamp(2rem, 9vw, 3.4rem);
  color: var(--paper); border-bottom: 1px solid var(--line); padding: .4rem 0;
}
.menu a .idx { font-family: var(--sans); font-size: .8rem; color: var(--gold); letter-spacing: .2em; margin-right: 1rem; vertical-align: super; }

/* ---------------- HERO ---------------- */
.hero {
  position: relative; min-height: 100svh; width: 100%;
  display: grid; place-items: center; overflow: hidden;
  background: radial-gradient(120% 90% at 50% 35%, #1a1614 0%, var(--black) 60%);
}
.hero__bg {
  position: absolute; inset: 0;
  background: radial-gradient(120% 95% at 62% 42%, #1a130d 0%, #0c0d0d 60%);
}
/* The glowing-Z photo — scaled/defocused by JS on scroll (zoom-out + focus-pull) */
.hero__photo {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: url('../img/hero-z.webp') center/cover no-repeat;
  transform: scale(1.4); transform-origin: 60% 46%;
  will-change: transform, filter;
}
.hero__veil {
  position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: linear-gradient(180deg, rgba(12,13,13,.5) 0%, rgba(12,13,13,0) 24%, rgba(12,13,13,0) 60%, rgba(12,13,13,.82) 100%);
}

/* 3D exploding cube scene */
.scene {
  position: absolute; inset: 0; z-index: 2;
  perspective: 1400px; perspective-origin: 50% 45%;
  pointer-events: none;
}
.scene__rig {
  position: absolute; top: 50%; left: 50%;
  width: 0; height: 0; transform-style: preserve-3d;
  will-change: transform;
}
.cube {
  position: absolute; transform-style: preserve-3d; will-change: transform;
  --s: 120px;
}
.cube__face {
  position: absolute; width: var(--s); height: var(--s);
  left: calc(var(--s) / -2); top: calc(var(--s) / -2);
  border: 1px solid rgba(255,255,255,.08);
  background-size: cover; background-position: center;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.2);
  backface-visibility: hidden;
}
.cube__face--ft { transform: translateZ(calc(var(--s)/2)); }
.cube__face--bk { transform: rotateY(180deg) translateZ(calc(var(--s)/2)); }
.cube__face--rt { transform: rotateY(90deg)  translateZ(calc(var(--s)/2)); }
.cube__face--lf { transform: rotateY(-90deg) translateZ(calc(var(--s)/2)); }
.cube__face--tp { transform: rotateX(90deg)  translateZ(calc(var(--s)/2)); }
.cube__face--bm { transform: rotateX(-90deg) translateZ(calc(var(--s)/2)); }
.cube--gold .cube__face { background: linear-gradient(135deg, var(--gold-light), var(--gold-deep)); border-color: rgba(0,0,0,.25); }
.cube--ink  .cube__face { background: linear-gradient(135deg, var(--anthra-soft), var(--anthra)); }
.cube--ember .cube__face {
  background: linear-gradient(135deg, var(--ember-soft), var(--gold-deep));
  box-shadow: inset 0 0 30px rgba(255,106,40,.45);
}

/* Hero content */
.hero__content {
  position: relative; z-index: 4; text-align: center;
  padding: 0 1.2rem; max-width: 1100px;
}
/* Headline starts hidden — it is revealed by scroll as the photo shatters away */
.hero__title { opacity: 0; text-shadow: 0 2px 30px rgba(0,0,0,.55); }
.hero__sub { text-shadow: 0 1px 18px rgba(0,0,0,.5); }
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: .8rem; margin-bottom: 1.6rem;
  opacity: 0; /* JS reveal */
}
.hero__eyebrow .ln { width: 42px; height: 1px; background: var(--gold); opacity: .7; }
.hero__title {
  font-size: clamp(2.8rem, 9.2vw, 8.5rem); font-weight: 600; line-height: .94;
  letter-spacing: -.02em; color: var(--paper);
}
.hero__title .line { display: block; overflow: hidden; }
.hero__title .line > span { display: inline-block; will-change: transform; }
.hero__title em { font-style: italic; font-weight: 600; color: var(--gold-light); }
.hero__sub {
  margin: 1.7rem auto 0; max-width: 560px; color: var(--paper-dim);
  font-size: clamp(.98rem, 1.6vw, 1.18rem); font-weight: 300; line-height: 1.6;
  opacity: 0;
}
.hero__cta-row { margin-top: 2.4rem; display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; opacity: 0; }

.btn {
  display: inline-flex; align-items: center; gap: .65rem;
  font-family: var(--sans); font-weight: 600; font-size: .8rem;
  letter-spacing: .14em; text-transform: uppercase; padding: 1rem 2rem;
  transition: transform .4s var(--ease), background .4s var(--ease), color .4s, box-shadow .4s, border-color .4s;
}
.btn svg { width: 17px; height: 17px; transition: transform .4s var(--ease); }
.btn--gold { background: var(--gold); color: var(--black); }
.btn--gold:hover { background: var(--gold-light); transform: translateY(-3px); box-shadow: 0 14px 40px rgba(224,162,37,.4); }
.btn--gold:hover svg { transform: translateX(4px); }
.btn--ghost { border: 1px solid var(--line-strong); color: var(--paper); }
.btn--ghost:hover { background: rgba(255,255,255,.06); border-color: var(--paper); transform: translateY(-3px); }
.btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* Scroll cue */
.hero__scroll {
  position: absolute; left: 50%; bottom: calc(var(--bar) + 1.3rem); transform: translateX(-50%);
  z-index: 4; display: flex; flex-direction: column; align-items: center; gap: .6rem; opacity: 0;
}
.hero__scroll .lbl { font-family: var(--sans); font-size: .6rem; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); }
.hero__scroll .track { width: 1px; height: 46px; background: var(--line-strong); position: relative; overflow: hidden; }
.hero__scroll .track i { position: absolute; top: 0; left: 0; width: 100%; height: 40%; background: linear-gradient(to bottom, transparent, var(--gold)); animation: scrollRun 1.9s var(--ease) infinite; }
@keyframes scrollRun { 0%{ transform: translateY(-100%);} 60%,100%{ transform: translateY(250%);} }

/* ---------------- Manifesto ---------------- */
.manifesto { padding: clamp(8rem, 18vh, 16rem) 0; position: relative; }
.manifesto__inner { width: min(1100px, 90vw); margin-inline: auto; }
.manifesto__lead {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(1.9rem, 5.2vw, 4.4rem); line-height: 1.12; letter-spacing: -.01em;
  color: var(--paper);
}
.manifesto__lead .w { display: inline-block; opacity: .14; transition: opacity .5s var(--ease); }
.manifesto__lead .w.lit { opacity: 1; }
.manifesto__lead em { color: var(--gold-light); }
.manifesto__meta {
  margin-top: 3rem; display: flex; gap: 3.5rem; flex-wrap: wrap;
  border-top: 1px solid var(--line); padding-top: 2rem;
}
.manifesto__stat .n { font-family: var(--serif); font-weight: 600; font-size: clamp(2.2rem,4vw,3rem); color: var(--gold); line-height: 1; }
.manifesto__stat .l { font-family: var(--sans); font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-top: .5rem; }

/* ---------------- GALLERY (heart) ---------------- */
.gallery { position: relative; background: var(--black); }
.gallery__head {
  position: relative; z-index: 3; width: min(1280px, 90vw); margin: 0 auto;
  padding: clamp(4rem, 9vh, 7rem) 0 2rem;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; flex-wrap: wrap;
}
.gallery__head h2 { font-size: clamp(2.4rem, 6vw, 4.4rem); }
.gallery__head p { color: var(--muted); max-width: 360px; font-size: .95rem; }

/* Filter tabs */
.filters {
  width: min(1280px, 90vw); margin: 0 auto 1.8rem;
  display: flex; flex-wrap: wrap; gap: .6rem;
}
.filter {
  font-family: var(--sans); font-weight: 600; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--paper-dim); border: 1px solid var(--line); padding: .6rem 1.3rem;
  transition: color .3s, border-color .3s, background .3s;
}
.filter:hover { color: var(--paper); border-color: var(--line-strong); }
.filter.is-active { background: var(--gold); border-color: var(--gold); color: var(--black); }
.filter:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* Horizontal slider */
.slider { position: relative; width: 100%; }
.slider__track {
  display: flex; gap: clamp(1rem, 2vw, 1.6rem);
  overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding: 0 max(calc((100vw - min(1280px, 90vw)) / 2), 5vw) 1.5rem;
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.slider__track::-webkit-scrollbar { display: none; }
.slider__track.is-grabbing { scroll-snap-type: none; scroll-behavior: auto; cursor: grabbing; }
.scene-card {
  position: relative; overflow: hidden; cursor: pointer;
  flex: 0 0 auto; width: min(620px, 82vw); aspect-ratio: 16 / 11; background: var(--ink);
  scroll-snap-align: center;
}
.scene-card.is-hidden { display: none; }
.scene-card__media { position: absolute; inset: 0; overflow: hidden; }
.scene-card__img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; filter: brightness(.66) saturate(1.02);
  transition: transform .8s var(--ease), filter .5s var(--ease);
}
.scene-card:hover .scene-card__img { transform: scale(1.06); filter: brightness(.74) saturate(1.05); }
.scene-card__grad {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(12,13,13,.15) 0%, rgba(12,13,13,.1) 38%, rgba(12,13,13,.92) 100%);
}
.scene-card__inner {
  position: absolute; inset: auto 0 0 0; z-index: 2;
  padding: clamp(1.4rem, 3vw, 2.4rem);
}
.scene-card__idx {
  font-family: var(--serif); font-weight: 600; font-size: clamp(2rem, 4vw, 3rem);
  line-height: .8; color: transparent; -webkit-text-stroke: 1px rgba(224,162,37,.55);
  margin-bottom: .6rem; letter-spacing: -.02em;
}
.scene-card__cat { color: var(--gold); margin-bottom: .5rem; font-size: .68rem; }
.scene-card__title {
  font-size: clamp(1.5rem, 2.6vw, 2.3rem); line-height: 1.02; color: var(--paper);
}
.scene-card__desc {
  margin-top: .7rem; max-width: 48ch; color: var(--paper-dim);
  font-size: clamp(.88rem, 1.1vw, .96rem); font-weight: 300; line-height: 1.55;
  max-height: 0; opacity: 0; overflow: hidden;
  transition: max-height .5s var(--ease), opacity .4s var(--ease), margin-top .5s var(--ease);
}
.scene-card:hover .scene-card__desc, .scene-card:focus-within .scene-card__desc { max-height: 8rem; opacity: 1; }
.scene-card__open {
  margin-top: 1.2rem; display: inline-flex; align-items: center; gap: .7rem;
  font-family: var(--sans); font-weight: 600; font-size: .74rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--paper); transition: gap .35s var(--ease), color .35s;
}
.scene-card__open .ring {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--line-strong); transition: background .35s, border-color .35s, transform .35s var(--ease);
}
.scene-card__open .ring svg { width: 15px; height: 15px; transition: transform .35s var(--ease); }
.scene-card:hover .scene-card__open { gap: 1rem; color: var(--gold-light); }
.scene-card:hover .scene-card__open .ring { background: var(--gold); border-color: var(--gold); }
.scene-card:hover .scene-card__open .ring svg { color: var(--black); stroke: var(--black); }
.scene-card__count {
  position: absolute; top: 1.1rem; right: 1.1rem; z-index: 2;
  background: rgba(12,13,13,.6); backdrop-filter: blur(6px);
  padding: .4rem .7rem;
  font-family: var(--sans); font-size: .66rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--paper-dim); display: flex; align-items: center; gap: .45rem;
}
.scene-card__count svg { width: 14px; height: 14px; color: var(--gold); }

/* Slider arrows */
.slider__arrow {
  position: absolute; top: calc(50% - .75rem); transform: translateY(-50%); z-index: 4;
  width: 54px; height: 54px; display: grid; place-items: center;
  background: rgba(12,13,13,.72); backdrop-filter: blur(8px); border: 1px solid var(--line-strong);
  color: var(--paper); transition: background .3s, color .3s, border-color .3s, opacity .3s;
}
.slider__arrow:hover { background: var(--gold); border-color: var(--gold); color: var(--black); }
.slider__arrow svg { width: 24px; height: 24px; }
.slider__arrow--prev { left: clamp(.5rem, 3vw, 2.5rem); }
.slider__arrow--next { right: clamp(.5rem, 3vw, 2.5rem); }
.slider__arrow:disabled { opacity: 0; pointer-events: none; }
.slider__arrow:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.slider__empty {
  width: min(1280px, 90vw); margin: 2rem auto; text-align: center;
  font-family: var(--serif); font-size: 1.4rem; color: var(--muted);
}

/* ---------------- LIGHTBOX ---------------- */
.lb {
  position: fixed; inset: 0; z-index: var(--z-lb);
  background: rgba(8,9,9,.92); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  display: grid; grid-template-rows: auto 1fr auto; gap: 1rem;
  padding: clamp(1rem, 4vh, 2.4rem) clamp(1rem, 5vw, 3rem);
  opacity: 0; visibility: hidden; transition: opacity .5s var(--ease), visibility .5s;
}
.lb.open { opacity: 1; visibility: visible; }
.lb__top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.lb__meta .cat { color: var(--gold); font-family: var(--sans); font-weight: 600; font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; }
.lb__meta .title { font-family: var(--serif); font-weight: 600; font-size: clamp(1.4rem, 3vw, 2.2rem); line-height: 1.1; }
.lb__close {
  width: 48px; height: 48px; border: 1px solid var(--line-strong); display: grid; place-items: center;
  color: var(--paper); transition: background .3s, transform .3s var(--ease), border-color .3s;
}
.lb__close:hover { background: var(--gold); color: var(--black); border-color: var(--gold); transform: rotate(90deg); }
.lb__close svg { width: 20px; height: 20px; }
.lb__stage { position: relative; display: grid; place-items: center; min-height: 0; }
.lb__img {
  max-width: 100%; max-height: 100%; object-fit: contain;
  opacity: 0; transform: scale(.985); transition: opacity .45s var(--ease), transform .45s var(--ease);
}
.lb__img.in { opacity: 1; transform: none; }
.lb__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 54px; height: 54px; border: 1px solid var(--line-strong); display: grid; place-items: center;
  color: var(--paper); background: rgba(12,13,13,.4); transition: background .3s, color .3s, border-color .3s;
}
.lb__nav:hover { background: var(--gold); color: var(--black); border-color: var(--gold); }
.lb__nav svg { width: 22px; height: 22px; }
.lb__nav--prev { left: 0; }
.lb__nav--next { right: 0; }
.lb__bottom { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.lb__dots { display: flex; gap: .5rem; flex-wrap: wrap; }
.lb__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--anthra-soft); transition: background .3s, transform .3s; }
.lb__dot.active { background: var(--gold); transform: scale(1.25); }
.lb__counter { font-family: var(--sans); font-size: .76rem; letter-spacing: .18em; color: var(--muted); }
.lb__counter b { color: var(--paper); font-weight: 600; }

/* ---------------- SERVICES ---------------- */
.services { padding: clamp(6rem, 14vh, 11rem) 0; position: relative; border-top: 1px solid var(--line); }
.services__head { width: min(1280px, 90vw); margin: 0 auto 3.5rem; max-width: 760px; }
.services__head h2 { font-size: clamp(2.2rem, 5.5vw, 4rem); margin-top: 1.1rem; }
.services__grid {
  width: min(1280px, 90vw); margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line);
}
.scard {
  background: var(--black); padding: 2.4rem 1.8rem 2.6rem;
  position: relative; overflow: hidden; transition: background .5s var(--ease);
}
.scard::before {
  content: ''; position: absolute; left: 0; top: 0; height: 2px; width: 100%;
  background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease);
}
.scard:hover { background: var(--ink); }
.scard:hover::before { transform: scaleX(1); }
.scard__ico { width: 40px; height: 40px; color: var(--gold); margin-bottom: 1.6rem; }
.scard__ico svg { width: 100%; height: 100%; }
.scard__n { font-family: var(--sans); font-size: .7rem; letter-spacing: .2em; color: var(--muted-2); margin-bottom: .7rem; }
.scard h3 { font-size: 1.5rem; margin-bottom: .7rem; }
.scard p { color: var(--muted); font-size: .92rem; font-weight: 300; line-height: 1.6; }

/* ---------------- ABOUT ---------------- */
.about { position: relative; padding: clamp(5rem, 12vh, 9rem) 0; overflow: hidden; }
.about__grid {
  width: min(1280px, 90vw); margin: 0 auto;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 6vw, 6rem); align-items: center;
}
.about__media { position: relative; aspect-ratio: 4/5; overflow: hidden; }
.about__media img { position: absolute; inset: -8% 0; width: 100%; height: 116%; object-fit: cover; will-change: transform; filter: saturate(1.04) brightness(.95); }
.about__media-frame { position: absolute; inset: 14px; border: 1px solid rgba(255,255,255,.22); pointer-events: none; z-index: 2; }
.about__tag {
  position: absolute; left: 0; bottom: 0; z-index: 3; background: var(--gold); color: var(--black);
  font-family: var(--sans); font-weight: 600; font-size: .68rem; letter-spacing: .18em; text-transform: uppercase;
  padding: .7rem 1.2rem;
}
.about h2 { font-size: clamp(2.2rem, 5.5vw, 4.2rem); margin: 1.1rem 0 1.6rem; }
.about p { color: var(--paper-dim); font-weight: 300; max-width: 52ch; margin-bottom: 1.1rem; }
.about__team { display: flex; align-items: center; gap: 1.8rem; margin-top: 2.2rem; border-top: 1px solid var(--line); padding-top: 1.8rem; }
.about__member .nm { font-family: var(--serif); font-weight: 600; font-size: 1.3rem; }
.about__member .rl { font-family: var(--sans); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-top: .2rem; }
.about__divider { width: 1px; height: 42px; background: var(--line-strong); }

/* ---------------- CONTACT ---------------- */
.contact { position: relative; padding: clamp(6rem, 14vh, 11rem) 0; border-top: 1px solid var(--line); background: radial-gradient(90% 80% at 50% 120%, #181311, var(--black) 70%); }
.contact__grid { width: min(1280px, 90vw); margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 6rem); }
.contact__lead h2 { font-size: clamp(2.4rem, 6vw, 4.6rem); margin: 1.2rem 0 1.4rem; }
.contact__lead p { color: var(--paper-dim); max-width: 42ch; margin-bottom: 2.4rem; }
.contact__details { display: flex; flex-direction: column; gap: 1.3rem; }
.contact__item .k { font-family: var(--sans); font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-bottom: .35rem; }
.contact__item a, .contact__item .v { font-family: var(--serif); font-size: 1.35rem; color: var(--paper); transition: color .3s; }
.contact__item a:hover { color: var(--gold-light); }

.form { display: grid; gap: 1.6rem; align-content: start; }
.field { position: relative; }
.field label { display: block; font-family: var(--sans); font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin-bottom: .6rem; }
.field input, .field textarea {
  width: 100%; background: transparent; border: none; border-bottom: 1px solid var(--line-strong);
  color: var(--paper); font-family: var(--sans); font-weight: 300; font-size: 1rem; padding: .6rem 0;
  transition: border-color .3s;
}
.field textarea { resize: vertical; min-height: 90px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--gold); }
.field input::placeholder, .field textarea::placeholder { color: var(--muted-2); }
.form__submit { justify-self: start; }

/* ---------------- FOOTER ---------------- */
.footer { border-top: 1px solid var(--line); padding: 3.5rem 0 calc(var(--bar) + 2rem); }
.footer__grid { width: min(1280px, 90vw); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.footer__brand { display: flex; align-items: baseline; gap: .55rem; }
.footer__links { display: flex; gap: 1.6rem; flex-wrap: wrap; }
.footer__links a { font-family: var(--sans); font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); transition: color .3s; }
.footer__links a:hover { color: var(--gold); }
.footer__copy { width: min(1280px, 90vw); margin: 2.5rem auto 0; padding-top: 1.6rem; border-top: 1px solid var(--line); font-family: var(--sans); font-size: .72rem; color: var(--muted-2); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

/* ---------------- Reveal utility ---------------- */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
.reveal.d4 { transition-delay: .32s; }

/* ---------------- Responsive ---------------- */
@media (max-width: 1024px) {
  .services__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .nav__links { display: none; }
  .nav__burger { display: block; }
  /* dial the cube scene back so it frames rather than covers the text */
  .scene { transform: scale(.62); opacity: .58; }
  .about__grid { grid-template-columns: 1fr; }
  .about__media { aspect-ratio: 4/3; max-height: 60vh; }
  .contact__grid { grid-template-columns: 1fr; }
  .slider__arrow { display: none; }
}
@media (max-width: 560px) {
  .services__grid { grid-template-columns: 1fr; }
  .manifesto__meta { gap: 2rem; }
  .hero__cta-row { flex-direction: column; align-items: center; }
  .btn { width: 100%; max-width: 320px; justify-content: center; }
}

/* ---------------- Reduced motion ---------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .manifesto__lead .w { opacity: 1; }
  .hero__eyebrow, .hero__title, .hero__sub, .hero__cta-row, .hero__scroll { opacity: 1 !important; }
  .hero__scroll .track i { animation: none; }
}
