/* ---------------------------------------------------------------
   Giorgos Lagas — continuous-scroll build (v2)

   Motion architecture: pinning is done with position:sticky, and JS
   only writes a --p (0 -> 1) progress variable onto each tracked
   section. Everything below animates off var(--p), so the browser
   does the interpolation and the scroll loop stays cheap.
   --------------------------------------------------------------- */

:root {
  --accent: #ef8b4b;
  --accent-glow: rgba(239, 139, 75, 0.5);
  --ink: #f4efe6;
  --ink-bright: #f7f2ea;
  --ink-dim: #b3aa9c;
  --ink-faint: #8b8378;
  --bg: #070605;
  --panel: #100d0b;
  --hairline: rgba(244, 239, 230, 0.08);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --gutter: clamp(24px, 6vw, 88px);
  --maxw: 1240px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
* { -webkit-tap-highlight-color: transparent; }

/* No scroll-behavior:smooth — it fights the inertial scroll loop.
   Anchor navigation is handled in js/desktop.js instead. */
html::-webkit-scrollbar { display: none; }
html { -ms-overflow-style: none; scrollbar-width: none; }

body {
  background: var(--bg);
  overflow-x: hidden;
  overscroll-behavior-y: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}

::selection { background: rgba(239, 139, 75, 0.30); color: #fff; }

.mono, .rule-num, .rule-label { font-family: 'Space Mono', monospace; }
.accent { color: var(--accent); }
em.accent, .hero-lede em {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-weight: 400;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.root {
  position: relative;
  width: 100%;
  background: linear-gradient(180deg, #0d0b09 0%, #090706 46%, var(--bg) 100%);
  color: var(--ink);
  font-family: 'Space Grotesk', sans-serif;
}

/* --- animations ------------------------------------------------ */

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.2; }
}
@keyframes float {
  0%, 100% { transform: translateY(0); opacity: 0.85; }
  50%      { transform: translateY(8px); opacity: 0.35; }
}

/* --- skip link ------------------------------------------------- */

.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 100;
  padding: 12px 18px;
  background: var(--accent);
  color: #0b0908;
  border-radius: 8px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 14px;
  transition: top 0.2s ease;
}
.skip-link:focus-visible { top: 16px; }

/* --- nav -------------------------------------------------------- */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px var(--gutter);
  background: rgba(9, 7, 6, 0.5);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(244, 239, 230, 0.06);
  animation: fadeUp 0.9s var(--ease) both;
}

.nav-brand { display: flex; align-items: center; gap: 12px; }

.nav-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 14px var(--accent-glow);
}

.nav-name {
  font-family: 'Space Mono', monospace;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #e8e1d5;
}

.nav-right { display: flex; align-items: center; gap: clamp(8px, 2vw, 32px); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #a89f92;
}
.nav-links a { padding: 8px 2px; transition: color 0.25s ease; }
.nav-links a:hover { color: var(--ink); }

/* --- buttons ---------------------------------------------------- */

.btn-primary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  box-sizing: border-box;
  border-radius: 100px;
  font-size: 15px;
  padding: 16px 28px;
}

.btn-primary {
  background: var(--accent);
  color: #0b0908;
  font-weight: 600;
}
.btn-primary:hover { box-shadow: 0 16px 44px var(--accent-glow); }

.btn-ghost {
  border: 1px solid rgba(244, 239, 230, 0.2);
  background: rgba(244, 239, 230, 0.02);
  color: var(--ink);
  font-weight: 500;
  transition: border-color 0.25s ease, background 0.25s ease;
}
.btn-ghost:hover {
  border-color: rgba(244, 239, 230, 0.5);
  background: rgba(244, 239, 230, 0.06);
}

.btn-sm {
  padding: 11px 20px;
  gap: 9px;
  font-size: 13px;
  border-color: rgba(244, 239, 230, 0.18);
  background: rgba(244, 239, 230, 0.03);
}
.btn-sm:hover {
  border-color: rgba(244, 239, 230, 0.45);
  background: rgba(244, 239, 230, 0.07);
}

.pulse-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: blink 1.8s ease-in-out infinite;
  flex: none;
}

/* --- split text ------------------------------------------------- */

/* Units are inline-block so they can be transformed individually.
   JS sets --i (index) on each unit and --n (count) on the container. */
[data-split] .u {
  display: inline-block;
  will-change: transform, opacity;
}

/* Reveal-on-enter variant: staggered off the unit index.

   Every "hidden" state below is gated behind a class that JS adds only
   once the relevant system is genuinely live (.reveal-init from the
   observer, .split-ready on the title, .scroll-ready from the first
   completed scroll tick). Without JS, or if a loop dies, nothing is
   hidden and the page simply renders static and readable. */
[data-split][data-reveal].reveal-init .u {
  opacity: 0;
  transform: translateY(0.65em);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
  transition-delay: calc(var(--i) * 26ms);
}
[data-split][data-reveal].reveal-init.reveal-in .u {
  opacity: 1;
  transform: none;
}

/* Scrubbed variant: words light up in sequence as --p advances.
   opacity is clamped to 0..1 by the browser, so the sweep needs no
   per-unit JS — just a moving threshold. */
.scroll-ready [data-scrub] .u {
  opacity: calc(0.1 + (var(--p, 0) * (var(--n, 1) + 9) - var(--i)) / 2.6);
}

/* The hero title masks its own lines, so units rise out of the mask. */
.hero-title.split-ready .u {
  transform: translateY(105%);
  transition: transform 1s var(--ease);
  transition-delay: calc(var(--i) * 34ms + 120ms);
}
.hero-title.split-ready.split-in .u { transform: none; }

/* --- hero ------------------------------------------------------- */

.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 640px;
  overflow: hidden;
  background: radial-gradient(150% 130% at 50% 2%, #1c1611 0%, #0d0b09 48%, var(--bg) 100%);
}

#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.hero-vignette,
.hero-scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero-vignette {
  background: radial-gradient(120% 92% at 50% 100%, rgba(7, 6, 5, 0) 38%, var(--bg) 92%);
}
.hero-scrim {
  background: linear-gradient(180deg, rgba(7, 6, 5, 0.5) 0%, rgba(7, 6, 5, 0) 26%, rgba(7, 6, 5, 0) 64%, rgba(7, 6, 5, 0.72) 100%);
}

.hero-inner {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 var(--gutter);
  pointer-events: none;
}

.hero-content {
  max-width: 1200px;
  pointer-events: auto;
}
/* Scroll-driven exit: the copy drifts up and dims as the hero leaves. */
.scroll-ready .hero-content {
  transform: translateY(calc(var(--p, 0) * -14vh));
  opacity: calc(1 - var(--p, 0) * 1.35);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
  padding: 8px 16px;
  border: 1px solid rgba(244, 239, 230, 0.14);
  border-radius: 100px;
  background: rgba(244, 239, 230, 0.03);
  backdrop-filter: blur(6px);
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #e8e1d5;
  animation: fadeUp 0.9s var(--ease) 0.08s both;
}

.hero-title {
  font-size: clamp(54px, 10.5vw, 176px);
  line-height: 0.86;
  font-weight: 600;
  letter-spacing: -0.04em;
  text-wrap: balance;
  color: var(--ink-bright);
}
.hero-title .line { display: block; overflow: hidden; padding-bottom: 0.04em; }
.hero-title .line-in { display: block; }

.hero-lede {
  margin-top: 32px;
  max-width: 588px;
  font-size: clamp(17px, 1.5vw, 22px);
  line-height: 1.55;
  color: var(--ink-dim);
  text-wrap: pretty;
}
.hero-lede em { font-size: 1.14em; color: var(--ink); }

.hero-actions {
  margin-top: 46px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  animation: fadeUp 1s var(--ease) 0.54s both;
}

.availability {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding-left: 6px;
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #9a9186;
}

.scroll-cue {
  position: absolute;
  left: 0;
  right: 0;
  margin: 0 auto;
  width: fit-content;
  bottom: 28px;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ink-faint);
  transition: color 0.25s ease;
  animation: fadeUp 1s var(--ease) 0.95s both;
}
.scroll-ready .scroll-cue { opacity: calc(1 - var(--p, 0) * 2.4); }
.scroll-cue:hover { color: var(--ink); }

.scroll-line {
  display: block;
  width: 1px;
  height: 42px;
  background: linear-gradient(180deg, rgba(244, 239, 230, 0.45), rgba(244, 239, 230, 0));
  animation: float 2.4s ease-in-out infinite;
}

/* --- hero stage: interactive 3D stack ---------------------------- */

.hero-stage {
  display: none;
  position: absolute;
  top: 0;
  bottom: 0;
  right: calc(var(--gutter) + 24px);
  width: clamp(360px, 32vw, 520px);
  align-items: center;
  pointer-events: auto;
  touch-action: none;
}

.stage-inner {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  animation: fadeUp 1.1s var(--ease) 0.68s both;
}

.stage-inner canvas {
  display: block;
  width: 100%;
  height: 100%;
  cursor: grab;
}
.hero-stage.dragging .stage-inner canvas { cursor: grabbing; }

.stage-hint {
  position: absolute;
  left: 4%;
  bottom: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ink-faint);
  pointer-events: none;
  transition: opacity 0.35s ease;
}
.stage-hint::before {
  content: '';
  width: 20px;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), rgba(239, 139, 75, 0));
}
.hero-stage.dragging .stage-hint { opacity: 0.2; }

@media (min-width: 1180px) {
  .hero-stage { display: flex; }
}

/* --- marquee band ------------------------------------------------ */

.marquee-band {
  position: relative;
  z-index: 3;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  background: rgba(16, 13, 11, 0.55);
  padding: clamp(18px, 2.4vw, 30px) 0;
  overflow: hidden;
}

.marquee { overflow: hidden; }

.marquee-track {
  display: flex;
  width: max-content;
  will-change: transform;
  /* --skew is driven by scroll velocity in JS */
  transform: translate3d(var(--x, 0px), 0, 0) skewX(var(--skew, 0deg));
}

.marquee-set {
  display: flex;
  align-items: center;
  gap: clamp(24px, 3vw, 48px);
  padding-right: clamp(24px, 3vw, 48px);
  font-size: clamp(22px, 3.4vw, 52px);
  font-weight: 500;
  letter-spacing: -0.02em;
  white-space: nowrap;
  color: var(--ink-bright);
}
.marquee-dot {
  color: var(--accent);
  font-size: 0.32em;
  transform: translateY(-0.25em);
}

/* --- shared beat / pin scaffolding ------------------------------- */

/* A beat is a tall wrapper; its stage sticks for the whole ride. JS
   writes --p onto the wrapper and it inherits down into the stage. */
.beat {
  position: relative;
  z-index: 2;
}

.beat-stage {
  position: sticky;
  top: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(28px, 4vw, 52px);
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(96px, 12vh, 150px) var(--gutter) clamp(60px, 8vh, 96px);
}

.beat-statement { height: 240vh; }
.beat-services  { height: 400vh; }
.beat-work      { height: 320vh; }

.rule {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.rule-num { color: var(--accent); }
.rule-label { color: var(--ink-faint); }
.rule-line { flex: 1; height: 1px; background: rgba(244, 239, 230, 0.12); }

/* --- 03 · statement ---------------------------------------------- */

.statement-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}

.statement-title {
  font-size: clamp(32px, 4.6vw, 62px);
  line-height: 1.04;
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--ink-bright);
  text-wrap: balance;
}

.statement-body { display: flex; flex-direction: column; gap: 30px; }

.prose {
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.7;
  color: var(--ink);
  text-wrap: pretty;
}

.prose-greek {
  font-style: italic;
  font-size: clamp(14px, 1.2vw, 16px);
  opacity: 0.75;
}

.meta-line {
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
}
.scroll-ready .meta-line { opacity: calc(var(--p, 0) * 3 - 1.6); }

/* --- 04 · services sequence -------------------------------------- */

.services-seq {
  display: grid;
  grid-template-columns: minmax(160px, 0.5fr) 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}

.services-index {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-family: 'Space Mono', monospace;
  color: var(--accent);
}
.services-index-num {
  font-size: clamp(56px, 8vw, 116px);
  line-height: 0.9;
  font-weight: 700;
  letter-spacing: -0.04em;
}
.services-index-total {
  font-size: 13px;
  letter-spacing: 0.16em;
  color: var(--ink-faint);
}

.services-list { list-style: none; display: flex; flex-direction: column; }

.svc {
  display: flex;
  align-items: baseline;
  gap: clamp(14px, 2vw, 28px);
  padding: clamp(8px, 1.1vh, 16px) 0;
  border-bottom: 1px solid rgba(244, 239, 230, 0.07);
  color: var(--ink-faint);
  opacity: 0.34;
  transform: translateX(0);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease), color 0.5s var(--ease);
}
.svc.is-active {
  opacity: 1;
  color: var(--ink-bright);
  transform: translateX(clamp(8px, 1.4vw, 22px));
}

.svc-num {
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--ink-faint);
  flex: none;
}
.svc.is-active .svc-num { color: var(--accent); }

.svc-name {
  font-size: clamp(24px, 3.6vw, 54px);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.services-rail {
  height: 2px;
  background: rgba(244, 239, 230, 0.08);
  border-radius: 2px;
  overflow: hidden;
}
.services-rail-fill {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--accent);
  box-shadow: 0 0 18px var(--accent-glow);
  transform-origin: 0 50%;
}
.scroll-ready .services-rail-fill { transform: scaleX(var(--p, 0)); }

/* --- 05 · work (pinned horizontal gallery) ----------------------- */

.work-stage { gap: clamp(24px, 3vw, 40px); }

.work-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px 24px;
  align-items: end;
}
.work-head .rule { grid-column: 1 / -1; margin-bottom: clamp(14px, 2vw, 26px); }

.work-title {
  font-size: clamp(34px, 5vw, 68px);
  line-height: 1;
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--ink-bright);
}

.work-note {
  max-width: 340px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-faint);
  text-wrap: pretty;
  text-align: right;
}

.work-viewport { overflow: hidden; }

.work-track {
  display: flex;
  gap: clamp(20px, 2.4vw, 36px);
  width: max-content;
  will-change: transform;
}
/* --shift is measured in JS: trackWidth - viewportWidth */
.scroll-ready .work-track {
  transform: translate3d(calc(var(--p, 0) * var(--shift, 0px) * -1), 0, 0);
}

.work-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: clamp(280px, 34vw, 460px);
  flex: none;
  perspective: 800px;
  transform-style: preserve-3d;
  transition: transform 0.35s var(--ease);
}
.work-card.tilt-active {
  transform: translateY(-4px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.08s linear;
}
.work-card:hover { transform: translateY(-4px); }

.work-thumb {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--hairline);
  background: var(--panel);
  transition: border-color 0.35s ease;
}
.work-card:hover .work-thumb { border-color: rgba(239, 139, 75, 0.4); }

.work-thumb::after {
  content: attr(data-placeholder);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #6c645b;
  background: repeating-linear-gradient(45deg, #100d0b 0 12px, #14100d 12px 24px);
  pointer-events: none;
}
.work-thumb img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* Counter-drift so the image parallaxes inside its frame. */
.scroll-ready .work-thumb img {
  transform: scale(1.12) translate3d(calc(var(--p, 0) * 26px - 13px), 0, 0);
}

.work-index {
  position: absolute;
  z-index: 2;
  top: 16px;
  left: 16px;
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: #cfc7ba;
  background: rgba(9, 7, 6, 0.6);
  backdrop-filter: blur(6px);
  padding: 6px 11px;
  border-radius: 100px;
  border: 1px solid rgba(244, 239, 230, 0.12);
}

.work-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}
.work-meta h3 {
  font-size: 21px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.work-url {
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: #9a9186;
  margin-top: 7px;
}
.work-arrow {
  font-family: 'Space Mono', monospace;
  font-size: 18px;
  color: var(--accent);
  transition: transform 0.3s var(--ease);
}
.work-card:hover .work-arrow { transform: translate(3px, -3px); }

.work-more {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 12px;
  padding: clamp(24px, 3vw, 36px);
  border: 1px dashed rgba(244, 239, 230, 0.18);
  border-radius: 18px;
  background: rgba(244, 239, 230, 0.015);
  width: clamp(280px, 34vw, 460px);
  flex: none;
  align-self: stretch;
}
.work-more-tag {
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}
.work-more h3 {
  font-size: clamp(24px, 2.4vw, 30px);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.work-more p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-dim);
  text-wrap: pretty;
}

/* --- 06 · location strip ----------------------------------------- */

.strip {
  position: relative;
  z-index: 2;
  overflow: hidden;
  padding: clamp(60px, 10vh, 130px) 0;
  display: flex;
  flex-direction: column;
  gap: clamp(10px, 1.6vw, 22px);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}

.strip-row {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.4vw, 40px);
  width: max-content;
  white-space: nowrap;
  font-size: clamp(30px, 6vw, 88px);
  font-weight: 600;
  letter-spacing: -0.035em;
  will-change: transform;
}

.strip-row-a { color: var(--ink-bright); }
.strip-row-b {
  color: transparent;
  -webkit-text-stroke: 1px rgba(244, 239, 230, 0.30);
}

/* Counter-sliding rows, driven by the section's own scroll progress. */
.scroll-ready .strip-row-a {
  transform: translate3d(calc(-18vw + var(--p, 0) * 22vw), 0, 0);
}
.scroll-ready .strip-row-b {
  transform: translate3d(calc(-30vw - var(--p, 0) * 22vw), 0, 0);
}

.strip-sep { color: var(--accent); font-size: 0.28em; transform: translateY(-0.4em); }

/* --- 07 · contact ------------------------------------------------- */

.section {
  position: relative;
  z-index: 2;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(80px, 14vh, 170px) var(--gutter) clamp(48px, 6vh, 90px);
}

.contact .rule { margin-bottom: clamp(40px, 5vw, 60px); }

.contact-title {
  font-size: clamp(42px, 8vw, 124px);
  line-height: 0.94;
  font-weight: 600;
  letter-spacing: -0.04em;
  color: var(--ink-bright);
  text-wrap: balance;
  max-width: 1000px;
}

.contact-grid {
  margin-top: clamp(44px, 6vw, 72px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(28px, 4vw, 56px);
  align-items: end;
}

.contact-direct { display: flex; flex-direction: column; gap: 24px; }

.contact-email {
  font-size: clamp(21px, 2.5vw, 32px);
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.015em;
  width: fit-content;
  transition: color 0.25s ease;
}
.contact-email:hover { color: var(--accent); }

.contact-tel {
  font-family: 'Space Mono', monospace;
  font-size: clamp(15px, 1.6vw, 18px);
  color: var(--ink-dim);
  width: fit-content;
  transition: color 0.25s ease;
}
.contact-tel:hover { color: var(--ink); }

.socials { display: flex; gap: 12px; flex-wrap: wrap; }
.socials a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 20px;
  min-height: 44px;
  box-sizing: border-box;
  border-radius: 100px;
  border: 1px solid rgba(244, 239, 230, 0.16);
  background: rgba(244, 239, 230, 0.02);
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-dim);
  transition: border-color 0.25s ease, color 0.25s ease;
}
.socials a:hover { border-color: var(--accent); color: #fff; }

/* --- footer ----------------------------------------------------- */

.footer {
  position: relative;
  z-index: 2;
  border-top: 1px solid rgba(244, 239, 230, 0.07);
  margin-top: 20px;
}
.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 32px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
}
.footer-inner a { color: #a89f92; transition: color 0.25s ease; }
.footer-inner a:hover { color: var(--ink); }

/* --- reveal ----------------------------------------------------- */

.reveal-init {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  will-change: opacity, transform;
}
.reveal-in { opacity: 1; transform: none; }

/* A split container animates its units, not itself. */
[data-split].reveal-init { opacity: 1; transform: none; }

/* --- cursor follower -------------------------------------------- */

.cursor-follower {
  position: fixed;
  z-index: 9999;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  mix-blend-mode: difference;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(1);
  transition: transform 0.35s var(--ease), background 0.35s ease;
  will-change: transform, left, top;
}
.cursor-hover {
  transform: translate(-50%, -50%) scale(2.2);
  background: #fff;
}

/* --- scroll progress -------------------------------------------- */

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 70;
  height: 2px;
  background: var(--accent);
  box-shadow: 0 0 16px var(--accent-glow), 0 0 40px var(--accent-glow);
  will-change: width;
}

/* --- magnetic buttons ------------------------------------------- */

.btn-primary, .btn-ghost {
  transform: translate(var(--mx, 0), var(--my, 0));
  transition: transform 0.4s var(--ease), border-color 0.25s ease, background 0.25s ease, box-shadow 0.28s ease;
}
.btn-primary.magnetic-active,
.btn-ghost.magnetic-active { transition: transform 0.08s linear; }

/* --- floating particles ----------------------------------------- */

.particles {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.particle {
  position: absolute;
  border-radius: 50%;
  background: var(--accent);
  animation: particleFloat 8s ease-in-out infinite;
  will-change: transform, opacity;
}
@keyframes particleFloat {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0; }
  20% { opacity: 0.6; }
  50% { transform: translateY(-80px) scale(1.4); opacity: 0.8; }
  80% { opacity: 0.4; }
}

/* --- section counter -------------------------------------------- */

.section-counter {
  position: fixed;
  right: calc(var(--gutter) - 8px);
  top: 50%;
  transform: translateY(-50%);
  z-index: 80;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  pointer-events: none;
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--ink-faint);
}
.section-counter .current { color: var(--accent); font-size: 15px; font-weight: 600; }
.section-counter .sep { font-size: 11px; color: rgba(244, 239, 230, 0.2); }

/* --- section nav arrows (snap) ---------------------------------- */

.section-nav {
  position: fixed;
  right: calc(var(--gutter) - 8px);
  bottom: 32px;
  z-index: 75;
  display: flex;
  gap: 2px;
  pointer-events: none;
}
.snap-arrow {
  pointer-events: auto;
  appearance: none;
  border: 1px solid rgba(244, 239, 230, 0.14);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  background: rgba(9, 7, 6, 0.55);
  backdrop-filter: blur(8px);
  color: var(--ink-dim);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: color 0.25s ease, border-color 0.25s ease, opacity 0.25s ease;
  font-family: 'Space Mono', monospace;
}
.snap-arrow:not(:disabled):hover {
  color: var(--accent);
  border-color: var(--accent);
}
.snap-arrow:disabled {
  opacity: 0.2;
  cursor: default;
  pointer-events: none;
}

/* --- responsive -------------------------------------------------- */

@media (max-width: 1024px) {
  .statement-grid { grid-template-columns: 1fr; gap: 32px; }
  .services-seq { grid-template-columns: 1fr; gap: 24px; }
  .work-head { grid-template-columns: 1fr; }
  .work-note { text-align: left; }
}

@media (max-width: 820px) {
  .desktop-only { display: none !important; }
  .section-counter { display: none; }
  .section-nav { display: none; }

  .hero-title { font-size: clamp(40px, 14vw, 64px); }
  .hero-lede { font-size: 16px; margin-top: 20px; }
  .hero-actions { margin-top: 28px; gap: 10px; }
  /* svh, not dvh: the hero's height feeds every beat offset below it, so
     it has to stay put when the URL bar hides. dvh reflows the whole page
     mid-scroll and makes the progress values jump. */
  .hero { height: 100svh; min-height: 100svh; }

  /* Pinning stays on, the beats are just shorter — otherwise the
     animations cost a marathon of thumb-scrolling. */
  .beat-statement { height: 190vh; }
  .beat-services  { height: 300vh; }
  .beat-work      { height: 240vh; }

  .beat-stage {
    min-height: 100vh;
    min-height: 100svh;
    padding: clamp(84px, 13vh, 124px) var(--gutter) clamp(40px, 6vh, 72px);
    gap: clamp(18px, 4vw, 34px);
  }

  /* Type comes down so each pinned stage still fits one screen. */
  .statement-title { font-size: clamp(26px, 7vw, 38px); }
  .prose { font-size: 15px; line-height: 1.62; }
  .services-index-num { font-size: clamp(42px, 13vw, 70px); }
  .svc-name { font-size: clamp(21px, 6.4vw, 34px); }
  .svc { padding: clamp(6px, 0.9vh, 12px) 0; }
  .work-title { font-size: clamp(28px, 8vw, 44px); }

  /* The horizontal gallery is driven by vertical scroll, so it works
     fine on a phone — the cards just need to be thumb-sized. */
  .work-card, .work-more { width: 78vw; }

  .contact-title { font-size: clamp(32px, 10vw, 52px); }
  .contact-grid { grid-template-columns: 1fr; }

  .nav { padding: 12px var(--gutter); }
}

/* --- reduced motion ---------------------------------------------- */

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

  /* Everything resolves to its finished state; sticky layout stays,
     because layout is not motion. */
  [data-scrub] .u,
  .meta-line,
  .scroll-cue { opacity: 1 !important; }

  [data-split] .u,
  .hero-title .u { opacity: 1 !important; transform: none !important; }

  .hero-content { transform: none !important; opacity: 1 !important; }
  .work-thumb img { transform: scale(1.02) !important; }
  .strip-row-a, .strip-row-b { transform: none !important; }
  .marquee-track { transform: none !important; }
  .particles { display: none; }
}
