/* ============================================================
   vdmri — portfolio
   palette: oxblood / off-black / off-white
   ============================================================ */

:root {
  --ox: #4a0d12;
  --ox-deep: #2a070a;
  --ox-glow: #6a1018;
  --ink: #0a0808;
  --bone: #f2ece4;
  --bone-dim: #cfc8be;
  --grit: rgba(242, 236, 228, 0.08);

  --display: "Helvetica Neue", "Inter", "Arial Black", system-ui, sans-serif;
  --mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, monospace;
  --body: "Helvetica Neue", "Inter", system-ui, sans-serif;

  --bg: var(--ink);
  --fg: var(--bone);
  --accent: var(--ox);
  --accent-hot: var(--ox-glow);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-long: cubic-bezier(0.16, 1, 0.3, 1);

  --maxw: 1440px;
  --pad: clamp(20px, 4vw, 64px);
}

[data-mode="light"] {
  --bg: #f4ede2;
  --fg: #120605;
  --bone: #120605;
  --bone-dim: #54473e;
  --ink: #f4ede2;
  --grit: rgba(18, 6, 5, 0.06);
}

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

html, body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body {
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: -0.005em;
  transition: background 800ms var(--ease-long), color 800ms var(--ease-long);
}

::selection { background: var(--ox); color: var(--bone); }

img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }

/* ---------- continuous background ---------- */
.page {
  position: relative;
  min-height: 100vh;
  background: var(--bg);
  overflow: hidden;
}

.page::before {
  /* very subtle warm vignette - keeps section edges from feeling flat */
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(74,13,18,0.18), transparent 60%),
    radial-gradient(120% 80% at 50% 100%, rgba(74,13,18,0.10), transparent 60%);
  z-index: 0;
  mix-blend-mode: screen;
  opacity: 0.9;
  transition: opacity 800ms var(--ease-long);
}

[data-mode="light"] .page::before {
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(74,13,18,0.10), transparent 60%),
    radial-gradient(120% 80% at 50% 100%, rgba(74,13,18,0.06), transparent 60%);
  mix-blend-mode: multiply;
}

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 60;
  display: flex; justify-content: space-between; align-items: center;
  padding: 22px var(--pad);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  mix-blend-mode: difference;
  color: var(--bone);
  pointer-events: none;
}
.nav > * { pointer-events: auto; }

.nav .logo {
  font-family: var(--display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.04em;
  text-transform: lowercase;
}
.nav .logo .dot { color: var(--ox-glow); }

.nav ul {
  display: flex; gap: 28px; list-style: none;
}
.nav .right { display: flex; gap: 22px; align-items: center; }
.nav .idx { opacity: 0.55; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  padding: 140px var(--pad) 80px;
  display: flex; flex-direction: column; justify-content: space-between;
  z-index: 2;
}

.hero .meta {
  display: flex; justify-content: space-between;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bone-dim);
}

.hero .headline-wrap {
  margin-top: 6vh;
  position: relative;
}

.hero h1 {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(64px, 13vw, 220px);
  line-height: 0.86;
  letter-spacing: -0.05em;
  text-transform: lowercase;
}

.hero h1 .row { display: block; position: relative; }
.hero h1 .indent { display: inline-block; width: 0.5em; }
.hero h1 em {
  font-style: italic;
  font-family: "Times New Roman", "Didot", serif;
  font-weight: 400;
  letter-spacing: -0.01em;
}
.hero h1 .red { color: var(--ox-glow); }

.hero .sub {
  margin-top: 56px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  align-items: end;
}

.hero .sub p {
  max-width: 30ch;
  font-size: 15px;
  line-height: 1.5;
  color: var(--bone);
  text-wrap: pretty;
}

.hero .sub .col-end {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bone-dim);
  text-align: right;
}

/* the marquee scroll cue */
.scroll-cue {
  margin-top: 60px;
  display: flex; align-items: center; gap: 20px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bone-dim);
}
.scroll-cue .line {
  flex: 1; height: 1px; background: currentColor; opacity: 0.4;
}
.scroll-cue .arrow {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid currentColor;
  display: grid; place-items: center;
  font-size: 14px;
  animation: nudge 2.4s var(--ease) infinite;
}
@keyframes nudge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* ---------- about ---------- */
.about {
  position: relative;
  padding: 18vh var(--pad) 14vh;
  z-index: 2;
}

.about .grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(40px, 8vw, 120px);
  align-items: start;
}

.about .label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bone-dim);
  display: flex; align-items: center; gap: 12px;
}
.about .label::before {
  content: ""; width: 28px; height: 1px; background: currentColor;
}

.about .body {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(28px, 3.4vw, 48px);
  line-height: 1.15;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.about .body em {
  font-family: "Times New Roman", "Didot", serif;
  font-style: italic;
  color: var(--ox-glow);
  font-weight: 400;
}

.about .stats {
  margin-top: 72px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  border-top: 1px solid color-mix(in oklab, var(--fg) 18%, transparent);
  padding-top: 28px;
}
.about .stats .stat {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.05em;
}
.about .stats .stat .k { color: var(--bone-dim); text-transform: uppercase; font-size: 10px; letter-spacing: 0.18em; margin-bottom: 6px; }
.about .stats .stat .v { font-family: var(--display); font-size: 26px; font-weight: 600; letter-spacing: -0.02em; }

/* ---------- services ---------- */
.services {
  position: relative;
  padding: 12vh var(--pad) 14vh;
  z-index: 2;
}
.services .lead {
  display: flex; justify-content: space-between; align-items: end;
  margin-bottom: 60px;
}
.services h2 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(40px, 6vw, 96px);
  letter-spacing: -0.04em;
  text-transform: lowercase;
  line-height: 0.95;
}
.services h2 em {
  font-family: "Times New Roman", serif;
  font-style: italic;
  font-weight: 400;
}
.services .lead .right {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bone-dim);
  text-align: right;
  max-width: 22ch;
}

.svc-list { border-top: 1px solid color-mix(in oklab, var(--fg) 18%, transparent); }
.svc-row {
  display: grid;
  grid-template-columns: 60px 1.4fr 2fr 1fr;
  gap: 32px;
  padding: 28px 0;
  border-bottom: 1px solid color-mix(in oklab, var(--fg) 18%, transparent);
  align-items: center;
  transition: padding 500ms var(--ease), background 500ms var(--ease);
}
.svc-row:hover { padding-left: 16px; }
.svc-row .num {
  font-family: var(--mono); font-size: 11px;
  color: var(--bone-dim); letter-spacing: 0.05em;
}
.svc-row .name {
  font-family: var(--display);
  font-size: clamp(24px, 2.4vw, 36px);
  font-weight: 600;
  letter-spacing: -0.025em;
  text-transform: lowercase;
}
.svc-row .name em { font-family: "Times New Roman", serif; font-style: italic; font-weight: 400; }
.svc-row .desc {
  font-size: 14px;
  color: var(--bone-dim);
  max-width: 48ch;
}
.svc-row .arrow {
  justify-self: end;
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid color-mix(in oklab, var(--fg) 30%, transparent);
  display: grid; place-items: center; font-size: 14px;
  transition: all 400ms var(--ease);
}
.svc-row:hover .arrow {
  background: var(--ox); border-color: var(--ox); color: var(--bone);
  transform: rotate(-45deg);
}

/* ---------- editorial seam ---------- */
.seam {
  position: relative;
  z-index: 3;
  /* the only chapter break on the page */
}

.seam-line {
  height: 80px;
  background:
    linear-gradient(to bottom, var(--bg) 0%, var(--bg) 30%, transparent 100%);
  position: relative;
  z-index: 4;
}

.editorial {
  position: relative;
  background: #f4ead5;
  color: #1a0d09;
  padding: 14vh var(--pad) 16vh;
  z-index: 3;
  --fg: #1a0d09;
  --bone: #1a0d09;
  --bone-dim: #6a5444;
}
.editorial::before {
  /* paper grain */
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.92' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.1  0 0 0 0 0.05  0 0 0 0 0.03  0 0 0 0.55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: 0.35;
  mix-blend-mode: multiply;
}
.editorial::after {
  /* warm paper light */
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  background:
    radial-gradient(60% 40% at 20% 0%, rgba(255,200,100,0.18), transparent 60%),
    radial-gradient(60% 50% at 100% 100%, rgba(170,40,30,0.10), transparent 60%);
}

.editorial > * { position: relative; z-index: 1; }

.editorial .ed-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: end;
  margin-bottom: 80px;
}
.editorial .ed-head .label {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em;
  text-transform: uppercase; color: #7a5a44;
}
.editorial .ed-head h2 {
  font-family: "Times New Roman", "Didot", serif;
  font-weight: 400;
  font-size: clamp(48px, 8vw, 140px);
  line-height: 0.92;
  letter-spacing: -0.04em;
  margin-top: 24px;
}
.editorial .ed-head h2 em { font-style: italic; color: #4a0d12; }
.editorial .ed-head .blurb {
  font-size: 15px; line-height: 1.55; max-width: 36ch;
  color: #3a2a20;
}

/* editorial cards */
.ed-list { display: flex; flex-direction: column; gap: 18vh; }
.ed-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.ed-item:nth-child(even) { direction: rtl; }
.ed-item:nth-child(even) > * { direction: ltr; }

.ed-item .image {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #1a0d09;
  /* striped placeholder */
  background-image:
    repeating-linear-gradient(45deg, #2a1812 0 12px, #1a0d09 12px 24px);
}
.ed-item .image::after {
  content: attr(data-label);
  position: absolute; left: 16px; bottom: 16px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.18em;
  color: rgba(244,234,213,0.7); text-transform: uppercase;
}

.ed-item.alt-1 .image { background-image: repeating-linear-gradient(0deg, #4a0d12 0 8px, #2a070a 8px 16px); }
.ed-item.alt-2 .image { background-image: repeating-linear-gradient(90deg, #2a1812 0 14px, #3a221a 14px 28px); }
.ed-item.alt-3 .image { background-image: radial-gradient(circle at 30% 30%, #6a1018, #1a0d09 70%); }
.ed-item.alt-4 .image { background-image: linear-gradient(135deg, #2a070a, #6a3a20); }

.ed-item .copy { padding: 0 8px; }
.ed-item .num {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em;
  color: #7a5a44; margin-bottom: 18px; text-transform: uppercase;
}
.ed-item h3 {
  font-family: "Times New Roman", "Didot", serif;
  font-weight: 400;
  font-size: clamp(36px, 4.6vw, 76px);
  line-height: 0.96;
  letter-spacing: -0.02em;
  margin-bottom: 22px;
}
.ed-item h3 em { font-style: italic; color: #4a0d12; }

.ed-item .desc {
  font-size: 15px; line-height: 1.55; max-width: 38ch;
  color: #3a2a20;
}

.ed-item .meta {
  margin-top: 28px;
  display: flex; gap: 28px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em;
  color: #6a5444; text-transform: uppercase;
}
.ed-item .meta span b {
  display: block; color: #1a0d09; font-weight: 600; margin-top: 4px; letter-spacing: 0.05em;
}

/* exit the editorial back to dark — soft fade, not a hard line */
.ed-exit {
  height: 18vh;
  background: linear-gradient(to bottom, #f4ead5 0%, var(--ink) 100%);
  position: relative;
  z-index: 3;
}

/* ---------- testimonials ---------- */
.testimonials {
  position: relative;
  padding: 14vh var(--pad) 14vh;
  z-index: 2;
}
.testimonials .grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px;
}
.tcard {
  border: 1px solid color-mix(in oklab, var(--fg) 18%, transparent);
  padding: 32px 28px;
  display: flex; flex-direction: column; gap: 24px;
  min-height: 320px;
  position: relative;
  transition: all 400ms var(--ease);
}
.tcard:hover { border-color: var(--ox-glow); }
.tcard .quote {
  font-family: var(--display);
  font-size: 20px;
  line-height: 1.35;
  letter-spacing: -0.015em;
  flex: 1;
  text-wrap: pretty;
}
.tcard .quote em { font-family: "Times New Roman", serif; font-style: italic; color: var(--ox-glow); }
.tcard .who {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--bone-dim);
}
.tcard .who b { display: block; color: var(--bone); font-weight: 600; margin-bottom: 4px; letter-spacing: 0.04em; }

/* ============================================================
   THE BREAK SEQUENCE — scroll-pinned cinematic stage
   ============================================================ */

/* The track is a tall scroll spacer that drives the scrub. */
.break-track {
  position: relative;
  height: 380vh; /* total scrub distance */
  background: var(--ink); /* matches surrounding so no seam */
  z-index: 5;
}

/* The frame is fixed (pinned) while inside the track, parked at top/bottom otherwise. */
.break-frame {
  position: absolute; /* JS flips to fixed inside the pin */
  top: 0; left: 0; right: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  z-index: 6;
  background: var(--ink);
  transition: background 300ms ease;
}

/* Whiteout state — frame bg goes white so any DOM peeking through matches */
body.br-white .break-frame { background: #ffffff; }
body.br-rebuild .break-frame { background: #f4ead5; }

/* The shader canvas fills the frame — it's the destruction layer */
#break-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  display: block;
  z-index: 1;
}

/* The break headline floats above the canvas during destruction; vanishes during white/rebuild */
.break-headline {
  position: absolute;
  inset: 0;
  display: flex; align-items: center;
  padding: 8vh var(--pad);
  z-index: 2;
  pointer-events: none;
  mix-blend-mode: difference;
  color: var(--bone);
}
.break-headline h2 {
  font-family: "Times New Roman", "Didot", serif;
  font-weight: 400;
  font-size: clamp(40px, 7.5vw, 120px);
  line-height: 0.92;
  letter-spacing: -0.03em;
  text-wrap: balance;
  max-width: 18ch;
}
.break-headline h2 em { font-style: italic; color: var(--ox-glow); }
.break-headline h2 .corrupt-target {
  /* the JS-driven zalgo string sits inline beside the static layout */
  display: inline;
  font-family: var(--mono);
  font-size: 0.5em;
  letter-spacing: 0;
  opacity: 0.7;
  margin-left: 0.4em;
  vertical-align: 0.6em;
}
.break-headline h2 .pre {
  display: block;
  font-family: var(--mono); font-size: 14px;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--bone-dim);
  margin-bottom: 28px;
}

/* The shattered word: each letter is positionable */
.break-word { display: inline-block; }
.break-word .letter {
  display: inline-block;
  transition: opacity 80ms linear;
  will-change: transform, opacity;
  color: var(--ox-glow);
  font-style: italic;
}

/* fade headline as we head toward white */
body.br-white .break-headline { opacity: 0; transition: opacity 300ms ease; }
body.br-rebuild .break-headline { opacity: 0; }

/* The pre-pin lead-in line (visible BEFORE pin engages, at the very top of the section) */
.break-lead {
  position: absolute;
  top: 8vh; left: 0; right: 0;
  text-align: center;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.3em;
  color: var(--bone-dim); text-transform: uppercase;
  z-index: 2; pointer-events: none;
}
body.br-destroying .break-lead { opacity: 0; transition: opacity 300ms ease; }
body.br-white .break-lead, body.br-rebuild .break-lead { opacity: 0; }

/* The "keep scrolling" hint shown during the white hold */
.break-hint {
  position: absolute;
  left: 50%; bottom: 12vh; transform: translateX(-50%);
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(15,10,10,0.4);
  z-index: 4;
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease;
  display: flex; align-items: center; gap: 14px;
}
.break-hint::before, .break-hint::after {
  content: ""; width: 24px; height: 1px; background: currentColor;
}

/* ============================================================
   REBUILD LAYER — lives inside the same pinned frame
   ============================================================ */
#rebuild-layer {
  position: absolute;
  inset: 0;
  padding: 8vh var(--pad) 6vh;
  z-index: 3;
  opacity: 0;
  pointer-events: none;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  grid-template-rows: auto 1fr auto;
  grid-template-areas:
    "kicker kicker"
    "title  meta"
    "cta    more";
  gap: 32px 60px;
  color: #0f0a0a;
}
body.br-rebuild #rebuild-layer { pointer-events: auto; }

#rebuild-layer .rb {
  /* drives in via --rb (0..1) set by JS per element */
  --rb: 0;
  opacity: var(--rb);
  transform: translateY(calc((1 - var(--rb)) * 24px));
  transition: opacity 80ms linear;
}

#rebuild-layer .rb-kicker {
  grid-area: kicker;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.25em;
  text-transform: uppercase; color: #6a3a30;
  display: flex; align-items: center; gap: 14px;
}
#rebuild-layer .rb-kicker::before {
  content: ""; width: 36px; height: 1px; background: #ff4d3d;
  transform: scaleX(var(--rb)); transform-origin: left;
}

#rebuild-layer h2 {
  grid-area: title;
  font-family: "Times New Roman", "Didot", serif;
  font-weight: 400; font-style: italic;
  font-size: clamp(48px, 9vw, 160px);
  line-height: 0.9; letter-spacing: -0.03em;
  align-self: center;
}
#rebuild-layer h2 .pop {
  display: inline-block;
  color: #ff4d3d;
  text-shadow: 4px 4px 0 #3a5fcd;
  font-style: normal;
  font-family: "Helvetica Neue", sans-serif;
  font-weight: 900;
  letter-spacing: -0.03em;
}
#rebuild-layer h2 .scribble {
  display: inline-block;
  background-image: linear-gradient(transparent 60%, #ffd23d 60% 92%, transparent 92%);
  padding: 0 0.08em;
}

#rebuild-layer .rb-meta {
  grid-area: meta;
  align-self: center;
  font-size: 15px; line-height: 1.55;
  max-width: 30ch;
  color: #2a1810;
}
#rebuild-layer .rb-meta .stamp {
  margin-top: 18px;
  display: inline-block;
  border: 2px solid #ff4d3d;
  color: #ff4d3d;
  padding: 6px 12px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.2em;
  text-transform: uppercase; transform: rotate(-2deg);
}

#rebuild-layer .rb-cta {
  grid-area: cta;
  display: flex; align-items: center;
}

#rebuild-layer .rb-more {
  grid-area: more;
  align-self: end;
  font-family: var(--mono); font-size: 12px; line-height: 1.7;
  color: #2a1810;
}
#rebuild-layer .rb-more a { text-decoration: underline; text-underline-offset: 4px; }

/* riso shapes that pop in with rebuild */
#rebuild-layer .riso-shape {
  position: absolute;
  pointer-events: none;
  mix-blend-mode: multiply;
  --rb: 0;
  opacity: var(--rb);
  transform: scale(calc(0.6 + var(--rb) * 0.4)) rotate(calc((1 - var(--rb)) * -20deg));
}
#rebuild-layer .riso-shape.s1 { top: 14%; right: 8%;  width: 120px; height: 120px; background: #3a5fcd; border-radius: 50%; }
#rebuild-layer .riso-shape.s2 { bottom: 22%; left: 6%; width: 80px; height: 80px; background: #ffd23d; }
#rebuild-layer .riso-shape.s3 { top: 50%; right: 38%; width: 56px; height: 56px; border: 3px solid #ff4d3d; border-radius: 50%; background: transparent; }

/* ============================================================
   The rebuild-world FOOTER (continues seamlessly after pin release)
   The rebuild composition above + this footer share visual world.
   ============================================================ */
.rebuild-floor {
  background: #f4ead5;
  position: relative;
  z-index: 4;
  padding: 14vh var(--pad) 8vh;
  color: #0f0a0a;
}
.rebuild-floor::before {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.1  0 0 0 0 0.05  0 0 0 0 0.03  0 0 0 0.6 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: 0.4; mix-blend-mode: multiply;
}
.rebuild-floor > * { position: relative; }

.rebuild-floor .marquee {
  font-family: "Times New Roman", serif;
  font-style: italic;
  font-size: clamp(40px, 6vw, 84px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  max-width: 22ch;
  margin-bottom: 60px;
}
.rebuild-floor .marquee em { color: #ff4d3d; font-style: normal; font-family: "Helvetica Neue", sans-serif; font-weight: 800; }

.btn-magnetic {
  position: relative;
  display: inline-flex; align-items: center; gap: 18px;
  padding: 26px 36px;
  background: #ff4d3d;
  color: #fff;
  font-family: "Helvetica Neue", sans-serif;
  font-weight: 800;
  font-size: clamp(28px, 4vw, 56px);
  letter-spacing: -0.03em;
  text-transform: lowercase;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 300ms var(--ease), background 300ms var(--ease);
  box-shadow: 6px 6px 0 #3a5fcd, 12px 12px 0 #0f0a0a;
}
.btn-magnetic:hover { background: #ff6b5d; }
.btn-magnetic .arrow {
  width: 1.2em; height: 1.2em; border-radius: 50%;
  background: #fff; color: #ff4d3d; display: grid; place-items: center;
  font-size: 0.5em;
}

.contact-block .more {
  font-family: var(--mono); font-size: 12px; line-height: 1.7;
  color: #2a1810;
}
.contact-block .more a { text-decoration: underline; text-underline-offset: 4px; }

/* footer (lives in rebuild world) */
.footer {
  background: #0f0a0a;
  color: #f4ead5;
  padding: 60px var(--pad) 40px;
  position: relative;
  z-index: 3;
}
.footer .wm {
  font-family: "Helvetica Neue", sans-serif;
  font-weight: 900;
  font-size: clamp(80px, 18vw, 280px);
  letter-spacing: -0.05em;
  line-height: 0.85;
  color: #f4ead5;
  text-transform: lowercase;
  margin-bottom: 60px;
}
.footer .wm .dot { color: #ff4d3d; }

.footer .grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px;
  border-top: 1px solid rgba(244,234,213,0.2);
  padding-top: 32px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em;
  text-transform: uppercase;
}
.footer .grid h4 { color: rgba(244,234,213,0.5); margin-bottom: 14px; font-weight: 400; }
.footer .grid ul { list-style: none; }
.footer .grid li { margin-bottom: 10px; }
.footer .grid a:hover { color: #ff4d3d; }

.footer .colophon {
  margin-top: 40px;
  display: flex; justify-content: space-between;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.18em;
  color: rgba(244,234,213,0.4); text-transform: uppercase;
}

/* ---------- spotify module ---------- */
.spotify {
  position: fixed;
  bottom: 24px; left: 24px;
  z-index: 70;
  background: rgba(10,8,8,0.7);
  border: 1px solid rgba(242,236,228,0.15);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  color: var(--bone);
  border-radius: 12px;
  padding: 10px;
  display: flex; align-items: center; gap: 12px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.04em;
  width: 240px;
  cursor: default;
  transition: all 500ms var(--ease);
  overflow: hidden;
}
.spotify:hover { width: 320px; }

.spotify .art {
  width: 40px; height: 40px; border-radius: 6px; flex-shrink: 0;
  background: linear-gradient(135deg, #4a0d12, #6a1018, #2a070a);
  position: relative;
  overflow: hidden;
}
.spotify .art::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,0.25), transparent 50%),
    repeating-radial-gradient(circle at 50% 50%, rgba(0,0,0,0.2) 0 2px, transparent 2px 4px);
}

.spotify .info { flex: 1; min-width: 0; line-height: 1.3; }
.spotify .info .track {
  color: var(--bone);
  font-family: var(--display); font-weight: 600;
  font-size: 13px; letter-spacing: -0.01em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.spotify .info .artist {
  color: var(--bone-dim);
  font-size: 10px; letter-spacing: 0.05em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin-top: 2px;
}

.spotify .eq {
  display: flex; align-items: end; gap: 2px; height: 14px; flex-shrink: 0;
}
.spotify .eq i {
  display: block; width: 2px; background: var(--ox-glow); border-radius: 1px;
  animation: eq 800ms var(--ease) infinite;
}
.spotify .eq i:nth-child(1) { height: 60%; animation-delay: 0ms; }
.spotify .eq i:nth-child(2) { height: 100%; animation-delay: 120ms; }
.spotify .eq i:nth-child(3) { height: 40%; animation-delay: 240ms; }
.spotify .eq i:nth-child(4) { height: 80%; animation-delay: 360ms; }
@keyframes eq {
  0%, 100% { transform: scaleY(0.4); }
  50% { transform: scaleY(1); }
}

.spotify .extra {
  width: 0; opacity: 0;
  transition: all 500ms var(--ease) 100ms;
  overflow: hidden; white-space: nowrap;
  font-size: 10px; color: var(--bone-dim);
}
.spotify:hover .extra { width: auto; opacity: 1; padding-left: 4px; border-left: 1px solid rgba(242,236,228,0.15); margin-left: 4px; }
.spotify .extra .album { color: var(--bone); margin-bottom: 4px; }
.spotify .extra .progress {
  width: 80px; height: 2px; background: rgba(242,236,228,0.15); border-radius: 1px;
  margin-top: 6px;
}
.spotify .extra .progress .bar {
  height: 100%; background: var(--ox-glow); border-radius: 1px;
  width: 42%;
  animation: progress 240s linear infinite;
}
@keyframes progress { from { width: 0; } to { width: 100%; } }

/* ---------- right-click outline ---------- */
.rc-outline {
  position: fixed;
  pointer-events: none;
  border: 1px dashed var(--ox-glow);
  background: rgba(106, 16, 24, 0.06);
  z-index: 90;
  transition: all 120ms var(--ease);
  opacity: 0;
}
.rc-outline.show { opacity: 1; }
.rc-outline .tag {
  position: absolute;
  top: -22px; left: -1px;
  background: var(--ox-glow);
  color: var(--bone);
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em;
  padding: 3px 8px; text-transform: uppercase;
  white-space: nowrap;
}

/* ---------- right-click menu ---------- */
.rc-menu {
  position: fixed;
  z-index: 100;
  width: 220px;
  background: var(--ox-deep);
  color: var(--bone);
  border: 1px solid color-mix(in oklab, var(--ox-glow) 50%, transparent);
  backdrop-filter: blur(24px);
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em;
  padding: 6px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
  opacity: 0;
  transform: scale(0.95) translateY(-4px);
  transition: opacity 200ms var(--ease), transform 200ms var(--ease);
  pointer-events: none;
  border-radius: 4px;
}
.rc-menu.show { opacity: 1; transform: scale(1) translateY(0); pointer-events: auto; }

.rc-menu .item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 12px;
  text-transform: lowercase;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 120ms ease;
  border-radius: 2px;
  position: relative;
}
.rc-menu .item:hover { background: var(--ox); }
.rc-menu .item .k { font-size: 9px; opacity: 0.5; letter-spacing: 0.1em; }
.rc-menu .item .now {
  font-size: 9px; opacity: 0.6;
  max-width: 100px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.rc-menu .sep {
  height: 1px;
  background: color-mix(in oklab, var(--bone) 12%, transparent);
  margin: 4px 8px;
}

.rc-menu .vibe {
  background: var(--ox);
  margin-top: 4px;
  font-family: "Times New Roman", "Didot", serif;
  font-style: italic;
  font-size: 14px;
  letter-spacing: -0.01em;
  text-transform: lowercase;
  padding: 12px;
  font-weight: 400;
  color: var(--bone);
}
.rc-menu .vibe:hover { background: var(--ox-glow); }
.rc-menu .vibe .var-name {
  font-family: var(--mono);
  font-size: 9px; letter-spacing: 0.18em; opacity: 0.6;
  text-transform: uppercase; font-style: normal;
}

.rc-menu .header {
  padding: 8px 12px 4px;
  font-size: 9px; letter-spacing: 0.18em;
  color: color-mix(in oklab, var(--bone) 50%, transparent);
  text-transform: uppercase;
  display: flex; justify-content: space-between;
}

/* ============================================================
   REMIX VARIANT STYLES
   When an element group has data-variant="X", it adopts that look.
   Each group type × variant combo is authored.
   ============================================================ */

/* universal: keep transition smooth */
[data-group] {
  transition: all 500ms var(--ease);
}

/* ---- HEADLINE GROUPS ---- */
/* default = the original style; variants override */

.hero h1[data-variant="brutalist"] {
  font-family: "Courier New", monospace;
  font-weight: 700;
  font-size: clamp(56px, 11vw, 180px);
  letter-spacing: 0;
  text-transform: uppercase;
  line-height: 0.92;
  color: #fff;
}
.hero h1[data-variant="brutalist"] em { font-family: "Courier New", monospace; font-style: normal; }
.hero h1[data-variant="brutalist"] .red { color: #fff; background: #000; padding: 0 0.1em; }
.hero h1[data-variant="brutalist"] .row { border-bottom: 6px solid #fff; padding-bottom: 4px; margin-bottom: 6px; }

.hero h1[data-variant="editorial"] {
  font-family: "Times New Roman", "Didot", serif;
  font-weight: 400;
  font-style: italic;
  font-size: clamp(60px, 12vw, 200px);
  letter-spacing: -0.03em;
  line-height: 0.9;
  text-align: left;
}
.hero h1[data-variant="editorial"] em { font-style: normal; font-family: inherit; }
.hero h1[data-variant="editorial"] .red { color: var(--ox); }
.hero h1[data-variant="editorial"] .row { display: block; }
.hero h1[data-variant="editorial"] .row:nth-child(2) { padding-left: 4em; }
.hero h1[data-variant="editorial"] .row:nth-child(3) { padding-left: 1em; }

.hero h1[data-variant="swiss"] {
  font-family: "Helvetica Neue", "Helvetica", "Arial", sans-serif;
  font-weight: 700;
  font-size: clamp(52px, 10vw, 160px);
  letter-spacing: -0.04em;
  text-transform: lowercase;
  line-height: 0.95;
}
.hero h1[data-variant="swiss"] em { font-family: inherit; font-style: normal; font-weight: 400; }
.hero h1[data-variant="swiss"] .red { color: #d40028; }
.hero h1[data-variant="swiss"] .row { display: block; }

.hero h1[data-variant="riso"] {
  font-family: "Times New Roman", serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(60px, 12vw, 200px);
  letter-spacing: -0.02em;
  line-height: 0.9;
  color: #ff4d3d;
  text-shadow: 6px 6px 0 #3a5fcd;
}
.hero h1[data-variant="riso"] em { color: #3a5fcd; text-shadow: -6px -6px 0 #ff4d3d; }
.hero h1[data-variant="riso"] .red { color: #ffd23d; text-shadow: 4px 4px 0 #0f0a0a; }

/* ABOUT body variants */
.about .body[data-variant="brutalist"] {
  font-family: "Courier New", monospace;
  font-size: clamp(20px, 2.4vw, 32px);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.3;
  border: 3px solid currentColor;
  padding: 24px;
  background: var(--bg);
}
.about .body[data-variant="brutalist"] em { font-family: inherit; font-style: normal; color: inherit; background: var(--ox); padding: 0 0.2em; }

.about .body[data-variant="editorial"] {
  font-family: "Times New Roman", serif;
  font-style: italic;
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.about .body[data-variant="swiss"] {
  font-family: "Helvetica Neue", sans-serif;
  font-weight: 500;
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.45;
  letter-spacing: -0.015em;
  max-width: 56ch;
  text-transform: none;
}
.about .body[data-variant="swiss"] em { font-family: inherit; font-style: normal; color: #d40028; font-weight: 600; }

.about .body[data-variant="riso"] {
  font-family: "Times New Roman", serif;
  font-style: italic;
  font-size: clamp(28px, 3.4vw, 48px);
  line-height: 1.15;
  background-image: linear-gradient(transparent 65%, #ffd23d 65% 92%, transparent 92%);
  padding: 0 0.1em;
  display: inline;
  color: #0f0a0a;
}
.about .body[data-variant="riso"] em { color: #ff4d3d; background: none; }

/* BUTTON groups (services rows, contact) */
.svc-row[data-variant="brutalist"] {
  border: 3px solid currentColor;
  padding: 20px 16px;
  margin-bottom: 8px;
  background: transparent;
}
.svc-row[data-variant="brutalist"] .name { font-family: "Courier New", monospace; text-transform: uppercase; }
.svc-row[data-variant="brutalist"] .arrow { border-radius: 0; border-width: 2px; }
.svc-row[data-variant="brutalist"]:hover .arrow { background: #000; border-color: #000; color: #fff; }

.svc-row[data-variant="editorial"] .name { font-family: "Times New Roman", serif; font-style: italic; font-weight: 400; }
.svc-row[data-variant="editorial"] .arrow { border-radius: 50%; border-style: dashed; }

.svc-row[data-variant="swiss"] {
  grid-template-columns: 60px 1fr 1fr 60px;
  border-bottom-color: #d40028;
}
.svc-row[data-variant="swiss"] .name { font-family: "Helvetica Neue", sans-serif; font-weight: 700; text-transform: uppercase; letter-spacing: -0.01em; }
.svc-row[data-variant="swiss"] .arrow { background: #d40028; border-color: #d40028; color: #fff; }

.svc-row[data-variant="riso"] {
  background: #ffd23d;
  color: #0f0a0a;
  border: 2px solid #0f0a0a;
  padding: 20px 16px;
  margin-bottom: 12px;
  box-shadow: 6px 6px 0 #ff4d3d;
}
.svc-row[data-variant="riso"] .num,
.svc-row[data-variant="riso"] .desc { color: #2a1810; }
.svc-row[data-variant="riso"] .name { font-family: "Times New Roman", serif; font-style: italic; }
.svc-row[data-variant="riso"] .arrow { background: #3a5fcd; color: #fff; border-color: #3a5fcd; }

/* CARD groups (testimonials, editorial items) */
.tcard[data-variant="brutalist"] {
  border-width: 4px;
  border-style: solid;
  border-color: currentColor;
  background: transparent;
  box-shadow: 8px 8px 0 currentColor;
}
.tcard[data-variant="brutalist"] .quote { font-family: "Courier New", monospace; text-transform: uppercase; font-size: 16px; }
.tcard[data-variant="brutalist"] .quote em { font-family: inherit; font-style: normal; background: var(--ox); padding: 0 4px; }

.tcard[data-variant="editorial"] {
  border: none;
  padding: 0 16px;
  border-left: 1px solid currentColor;
}
.tcard[data-variant="editorial"] .quote {
  font-family: "Times New Roman", serif;
  font-style: italic;
  font-size: 24px;
  line-height: 1.3;
}

.tcard[data-variant="swiss"] {
  border: none;
  border-top: 4px solid #d40028;
  padding-top: 20px;
}
.tcard[data-variant="swiss"] .quote {
  font-family: "Helvetica Neue", sans-serif;
  font-weight: 500;
  font-size: 17px;
  line-height: 1.4;
  letter-spacing: -0.01em;
}
.tcard[data-variant="swiss"] .quote em { color: #d40028; font-style: normal; font-weight: 700; }

.tcard[data-variant="riso"] {
  background: #ff4d3d;
  color: #fffbe6;
  border: 2px solid #0f0a0a;
  box-shadow: 6px 6px 0 #3a5fcd;
}
.tcard[data-variant="riso"] .quote { font-family: "Times New Roman", serif; font-style: italic; }
.tcard[data-variant="riso"] .quote em { color: #ffd23d; }
.tcard[data-variant="riso"] .who { color: rgba(255,251,230,0.7); }
.tcard[data-variant="riso"] .who b { color: #ffd23d; }

/* SECTION BACKGROUND groups */
section[data-variant="brutalist"] {
  background: #fff !important;
  color: #000 !important;
  --fg: #000;
  --bone: #000;
  --bone-dim: #555;
  border-top: 8px solid #000;
  border-bottom: 8px solid #000;
}
section[data-variant="editorial"] {
  background: #f4ead5 !important;
  color: #1a0d09 !important;
  --fg: #1a0d09;
  --bone: #1a0d09;
  --bone-dim: #6a5444;
}
section[data-variant="swiss"] {
  background: #fff !important;
  color: #000 !important;
  --fg: #000;
  --bone: #000;
  --bone-dim: #666;
}
section[data-variant="riso"] {
  background: #ffd23d !important;
  color: #0f0a0a !important;
  --fg: #0f0a0a;
  --bone: #0f0a0a;
  --bone-dim: #4a3010;
}

/* EDITORIAL ITEM card variants */
.ed-item[data-variant="brutalist"] h3 { font-family: "Courier New", monospace; text-transform: uppercase; }
.ed-item[data-variant="brutalist"] .image { border: 4px solid #000; box-shadow: 12px 12px 0 #000; }

.ed-item[data-variant="swiss"] h3 { font-family: "Helvetica Neue", sans-serif; font-weight: 700; font-style: normal; letter-spacing: -0.02em; }
.ed-item[data-variant="swiss"] .num { color: #d40028; }

.ed-item[data-variant="riso"] {
  background: #ff4d3d; color: #fffbe6;
  padding: 32px;
  box-shadow: 8px 8px 0 #3a5fcd;
  border: 2px solid #0f0a0a;
}
.ed-item[data-variant="riso"] h3 { color: #fffbe6; }
.ed-item[data-variant="riso"] h3 em { color: #ffd23d; }

/* ============================================================
   responsive
   ============================================================ */
@media (max-width: 900px) {
  .nav ul { display: none; }
  .hero .sub { grid-template-columns: 1fr; }
  .hero .sub .col-end { text-align: left; }
  .about .grid, .ed-item, .ed-head, .new-hero, .contact-block,
  .testimonials .grid, .footer .grid {
    grid-template-columns: 1fr !important;
    gap: 32px;
  }
  .ed-item:nth-child(even) { direction: ltr; }
  .about .stats { grid-template-columns: repeat(2, 1fr); }
  .svc-row { grid-template-columns: 40px 1fr 60px; }
  .svc-row .desc { display: none; }
  .spotify { left: 12px; bottom: 12px; width: 200px; }
}
