/* ==========================================================
   Wessel Werlemann — Bold Swiss redesign
   ========================================================== */

:root {
  /* type */
  --f-display: 'Space Grotesk', ui-sans-serif, system-ui, sans-serif;
  --f-body: 'Inter', ui-sans-serif, system-ui, sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  /* light theme */
  --bg: #f6f5f0;
  --bg-2: #ecebe3;
  --fg: #0d0d0b;
  --fg-2: #1a1a17;
  --muted: #6b6b63;
  --line: #12120f;
  --line-soft: rgba(13,13,11,.12);
  --card: #fffef9;
  --accent: #0d0d0b;
  --accent-ink: #f6f5f0;
  --warn: #c63a1e;

  /* layout */
  --pad: clamp(24px, 4vw, 72px);
  --maxw: 1440px;
  --rule: 1px;
}

body[data-theme="dark"] {
  --bg: #000000;
  --bg-2: #000000;
  --fg: #ffffff;
  --fg-2: #f5f5f5;
  --muted: #9a9a93;
  --line: rgba(255,255,255,.85);
  --line-soft: rgba(255,255,255,.14);
  --card: #000000;
  --accent: #ffffff;
  --accent-ink: #000000;
  --warn: #ff6a4a;
}
body[data-theme="dark"] .bg-dots { opacity: 0; }
body[data-theme="dark"] .bg-noise { opacity: 0; }
body[data-theme="dark"] .case-art, body[data-theme="dark"] .portrait-ph { background: var(--bg-2); }

body[data-accent="red"]    { --warn: #e03a1e; }
body[data-accent="cobalt"] { --warn: #2b5bff; }
body[data-accent="acid"]   { --warn: #b9ff1a; }

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; overflow-x: hidden; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--f-body);
  font-feature-settings: "ss01","cv11";
  -webkit-font-smoothing: antialiased;
  transition: background .4s ease, color .4s ease;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
em { font-style: italic; font-family: var(--f-display); font-weight: 500; }

/* ---------- background layers ---------- */
.bg-layer { position: fixed; inset: 0; pointer-events: none; z-index: 0; }
.bg-dots {
  background-image: radial-gradient(var(--line-soft) 1px, transparent 1px);
  background-size: 22px 22px;
  background-position: 0 0;
  opacity: .9;
  mask-image: radial-gradient(ellipse at 50% 30%, #000 0%, #000 60%, transparent 100%);
}
.bg-noise {
  opacity: .05;
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.7'/></svg>");
  mix-blend-mode: multiply;
}
body[data-theme="dark"] .bg-noise { mix-blend-mode: screen; opacity:.06; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  border-bottom: var(--rule) solid var(--line);
  background: color-mix(in oklab, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
}
.nav-inner {
  max-width: var(--maxw); margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 14px var(--pad);
}
.brand { display:flex; align-items:center; gap: 12px; }
.brand-mark {
  width: 40px; height: 40px; min-width: 40px;
  border: var(--rule) solid var(--line);
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--card);
  overflow: hidden;
  flex-shrink: 0;
}
.brand-mark img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  display: block;
  border-radius: 50%;
}
body[data-theme="dark"] .brand-mark img { filter: invert(1); }
.brand-text { display:flex; flex-direction:column; line-height:1; }
.brand-name { font-family: var(--f-display); font-weight: 600; font-size: 15px; letter-spacing: -.01em; }
.brand-sub { font-family: var(--f-mono); font-size: 10px; letter-spacing:.12em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }

.nav-links {
  display: flex; gap: 8px; justify-content: center;
  font-family: var(--f-mono); font-size: 12px; letter-spacing: .02em;
}
.nav-links a {
  display:inline-flex; align-items:center; gap: 6px;
  padding: 8px 12px; border-radius: 999px;
  transition: background .2s ease, color .2s ease;
}
.nav-links a:hover { background: var(--fg); color: var(--bg); }
.nav-links .num { opacity: .5; font-size: 10px; }

.nav-actions { display:flex; align-items:center; justify-content:flex-end; gap: 10px; }
.theme-toggle {
  width: 40px; height: 40px;
  border: var(--rule) solid var(--line);
  background: var(--card);
  color: var(--fg);
  border-radius: 999px; cursor: pointer;
  display:grid; place-items:center;
  transition: transform .3s ease;
}
.theme-toggle:hover { transform: rotate(-15deg); }
.theme-toggle .i-sun { display: block; }
.theme-toggle .i-moon { display: none; }
body[data-theme="dark"] .theme-toggle .i-sun { display: none; }
body[data-theme="dark"] .theme-toggle .i-moon { display: block; }

/* ---------- buttons ---------- */
.btn {
  display:inline-flex; align-items:center; gap: 10px;
  padding: 10px 16px;
  border: var(--rule) solid var(--line);
  font-family: var(--f-mono); font-size: 12px; letter-spacing: .04em;
  text-transform: uppercase; border-radius: 999px;
  background: transparent; color: var(--fg);
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, color .2s ease;
}
.btn-primary { background: var(--fg); color: var(--bg); }
.btn-primary:hover { transform: translateY(-2px); }
.btn-ghost:hover { background: var(--fg); color: var(--bg); }
.btn-lg { padding: 16px 22px; font-size: 13px; }

/* ---------- section base ---------- */
.section {
  position: relative; z-index: 1;
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(72px, 10vw, 140px) var(--pad);
  border-bottom: var(--rule) solid var(--line);
}
.section:last-of-type { border-bottom: 0; }

.section-head { display: grid; gap: 18px; margin-bottom: 64px; max-width: 880px; position: relative; }
.section-head::before {
  content: attr(data-ghost);
  position: absolute;
  top: -40px; right: -12px;
  font-family: var(--f-display); font-weight: 600;
  font-size: clamp(140px, 22vw, 360px);
  line-height: .8; letter-spacing: -.06em;
  color: color-mix(in oklab, var(--fg) 6%, transparent);
  pointer-events: none; z-index: 0;
  white-space: nowrap;
}
.section-head > * { position: relative; z-index: 1; }
.section-head.split {
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: end;
  max-width: none;
}
.eyebrow {
  display:inline-flex; align-items:center; gap: 10px;
  font-family: var(--f-mono); font-size: 11px;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted);
}
.eyebrow::before {
  content: ""; display:inline-block; width: 28px; height: 1px; background: currentColor;
}
.eyebrow .num { color: var(--fg); }
.section-title {
  font-family: var(--f-display); font-weight: 500;
  font-size: clamp(44px, 7vw, 104px);
  line-height: .95; letter-spacing: -.035em;
  margin: 0;
  text-wrap: balance;
}
.section-sub {
  font-size: clamp(15px, 1.2vw, 18px);
  line-height: 1.5; color: var(--muted); max-width: 56ch; margin: 0;
}
.section-sub.right { justify-self: end; text-align: left; }
.num { font-family: var(--f-mono); }

/* ================== HERO ================== */
.hero {
  position: relative; z-index: 1;
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(28px, 4vw, 48px) var(--pad) clamp(40px, 6vw, 72px);
  border-bottom: var(--rule) solid var(--line);
  min-height: calc(100vh - 70px);
  display: flex; flex-direction: column;
}

.hero-meta-top {
  display:flex; justify-content: space-between; align-items: center;
  padding: 8px 0 20px;
  border-bottom: var(--rule) solid var(--line-soft);
}
.meta-block { display:flex; gap: 20px; }
.meta-block.right { justify-content: flex-end; }
.label {
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted);
  display:inline-flex; align-items:center; gap: 8px;
}
.label.status { color: var(--warn); }
.label.status .dot {
  width: 7px; height: 7px; border-radius: 999px; background: var(--warn);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--warn) 30%, transparent);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%,100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(.85); opacity: .6; }
}

.hero-body { flex: 1; display:flex; flex-direction: column; justify-content: space-between; padding-top: clamp(24px, 4vw, 56px); gap: clamp(32px, 5vw, 64px); }

.hero-row-top {
  display: grid; grid-template-columns: auto 1fr auto; gap: clamp(24px, 4vw, 56px);
  align-items: start;
}
.hero-kicker { display:grid; gap: 16px; }
.kicker-row { display:flex; gap: 8px; }
.tag {
  font-family: var(--f-mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase;
  padding: 6px 10px; border: var(--rule) solid var(--line); border-radius: 999px;
}
.hero-name {
  font-family: var(--f-display); font-weight: 500;
  font-size: clamp(22px, 1.8vw, 26px); line-height: 1; letter-spacing: -.02em;
  margin: 0;
}
.hero-rule { height: 1px; background: var(--line); align-self: center; }
.hero-intro {
  max-width: 34ch;
}
.hero-intro p {
  margin: 0; font-size: clamp(14px, 1vw, 15px); line-height: 1.55;
}
.hero-intro .muted { color: var(--muted); margin-top: 8px; }

.hero-title {
  font-family: var(--f-display); font-weight: 500;
  font-size: clamp(56px, 10vw, 168px);
  line-height: .88; letter-spacing: -.055em;
  margin: 0;
  display: block;
  text-transform: uppercase;
}
.hero-title .line { display:block; overflow: hidden; }
.hero-title .line .word { display:inline-block; }
@media (prefers-reduced-motion: no-preference) {
  .hero-title .line .word { transform: translateY(120%); opacity: 0; transition: transform 1s cubic-bezier(.2,.8,.2,1), opacity .9s ease; }
  .hero-title.ready .line .word { transform: translateY(0); opacity: 1; }
}
.hero-title .line.tail {
  font-size: clamp(36px, 6vw, 96px);
  letter-spacing: -.04em;
  color: var(--muted);
  display:flex; gap: .25em; align-items:baseline; flex-wrap: wrap;
}
.hero-title .line.tail .year { color: var(--fg); font-family: var(--f-mono); font-weight: 700; }
.hero-title.ready .line[data-idx="1"] .word:nth-child(1) { transition-delay: .05s; }
.hero-title.ready .line[data-idx="1"] .word:nth-child(2) { transition-delay: .15s; }
.hero-title.ready .line[data-idx="2"] .word:nth-child(1) { transition-delay: .30s; }
.hero-title.ready .line[data-idx="2"] .word:nth-child(2) { transition-delay: .40s; }
.hero-title.ready .line.tail { transition-delay: .55s; }

.hero-footer {
  display: grid; grid-template-columns: auto 1fr; gap: clamp(24px, 5vw, 72px); align-items: end;
  border-top: var(--rule) solid var(--line-soft); padding-top: 28px;
}
.hero-ctas { display:flex; gap: 12px; flex-wrap: wrap; }
.hero-facts {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px;
  border-left: var(--rule) solid var(--line-soft);
}
.hero-facts li {
  padding: 4px 0 4px 18px;
  border-right: var(--rule) solid var(--line-soft);
  display: flex; flex-direction: column; gap: 4px;
}
.hero-facts li:last-child { border-right: 0; }
.hero-facts b {
  font-family: var(--f-display); font-weight: 600; font-size: clamp(22px, 2vw, 30px); letter-spacing: -.02em;
}
.hero-facts span {
  font-family: var(--f-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
}

.scroll-cue {
  position: absolute; right: var(--pad); bottom: 20px;
  display: flex; align-items: center; gap: 12px;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
}
.scroll-line { width: 80px; height: 1px; background: currentColor; position: relative; overflow: hidden; }
.scroll-line::after {
  content: ""; position: absolute; inset: 0; background: var(--fg);
  transform: translateX(-100%);
  animation: slide 2.2s ease-in-out infinite;
}
@keyframes slide { 0% { transform: translateX(-100%);} 50%{transform: translateX(0);} 100%{transform: translateX(100%);} }

/* ================== WORKED ================== */
.marquee {
  margin: 0 calc(var(--pad) * -1) 48px;
  border-top: var(--rule) solid var(--line);
  border-bottom: var(--rule) solid var(--line);
  overflow: hidden;
  padding: 18px 0;
  display: flex;
}
.marquee-track {
  display: flex; gap: 48px;
  white-space: nowrap;
  animation: scroll-x 38s linear infinite;
  font-family: var(--f-display); font-weight: 500; font-size: clamp(28px, 3vw, 44px);
  letter-spacing: -.02em;
}
.marquee-track span { display:inline-flex; align-items:center; gap: 48px; }
.marquee-track .sep { opacity: .3; }
@keyframes scroll-x { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.logo-grid {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: 1fr 1fr;
  column-gap: 0;
  border-top: var(--rule) solid var(--line);
}
.logo-grid li {
  border-bottom: var(--rule) solid var(--line);
  position: relative;
  transition: background .2s ease;
}
.logo-grid li:nth-child(odd)  { border-right: var(--rule) solid var(--line); }
.logo-grid li:hover { background: var(--card); }
.logo-grid .tag-pos {
  position: absolute; top: 22px; left: clamp(16px, 2vw, 28px);
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.logo-grid .lg-inner {
  display: grid;
  grid-template-columns: 62px 1fr auto;
  align-items: center;
  gap: clamp(16px, 2vw, 28px);
  padding: clamp(22px, 2.4vw, 32px) clamp(24px, 3vw, 40px) clamp(22px, 2.4vw, 32px) clamp(54px, 5vw, 72px);
  min-height: 96px;
}
.logo-grid .lg-mark {
  width: 56px; height: 56px; border-radius: 999px; border: var(--rule) solid var(--line);
  display: grid; place-items: center;
  background: var(--card);
  overflow: hidden; flex-shrink: 0;
}
.logo-grid .lg-mark img { width: 100%; height: 100%; object-fit: cover; display: block; }
.logo-grid .lg-mark span {
  font-family: var(--f-display); font-weight: 700; font-size: 20px; letter-spacing: -.01em;
}
.logo-grid .lg-body { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.logo-grid .lg-name {
  font-family: var(--f-display); font-weight: 600;
  font-size: clamp(18px, 1.6vw, 22px);
  letter-spacing: -.02em; line-height: 1.1;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.logo-grid .lg-role {
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted);
}
.logo-grid .lg-meta {
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted); text-align: right;
  white-space: nowrap;
}
.logo-grid li::after {
  content: "";
  position: absolute; right: clamp(20px, 2.4vw, 32px); top: 50%; transform: translateY(-50%);
  width: 26px; height: 26px; border: var(--rule) solid transparent; border-radius: 999px;
  background:
    linear-gradient(45deg, transparent 45%, currentColor 45% 55%, transparent 55%),
    linear-gradient(-45deg, transparent 45%, currentColor 45% 55%, transparent 55%);
  color: var(--muted);
  opacity: 0;
  transition: opacity .2s ease, transform .3s cubic-bezier(.2,.8,.2,1);
}
.logo-grid li:hover::after { opacity: 0; }

@media (max-width: 900px) {
  .logo-grid { grid-template-columns: 1fr; }
  .logo-grid li:nth-child(odd) { border-right: 0; }
  .logo-grid .lg-inner { grid-template-columns: 48px 1fr auto; padding-left: clamp(44px, 8vw, 60px); }
  .logo-grid .lg-mark { width: 44px; height: 44px; }
}

.worked-foot {
  margin-top: 48px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
  border-top: var(--rule) solid var(--line);
}
.worked-foot .cell {
  padding: 24px 0 0;
  display: flex; flex-direction: column; gap: 8px;
  padding-right: 24px;
  border-right: var(--rule) solid var(--line-soft);
}
.worked-foot .cell:last-child { border-right: 0; padding-right: 0; padding-left: 0;}
.worked-foot .cell:not(:first-child) { padding-left: 24px; }
.worked-foot .k { font-family: var(--f-mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.worked-foot .v { font-family: var(--f-display); font-weight: 500; font-size: 18px; letter-spacing: -.01em; }

/* ================== RESULTS ================== */
.stats-grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 0;
  border-top: var(--rule) solid var(--line);
  border-left: var(--rule) solid var(--line);
}
.stat {
  padding: clamp(28px, 3vw, 48px);
  border-right: var(--rule) solid var(--line);
  border-bottom: var(--rule) solid var(--line);
  display: flex; flex-direction: column; gap: 18px;
  min-height: 260px;
  background: var(--card);
  position: relative;
  transition: background .2s ease;
}
.stat:hover { background: var(--bg-2); }
.stat.big { grid-row: span 1; }
.stat-label { font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); display:flex; gap: 8px;}
.stat-label .num { color: var(--fg); }
.stat-num {
  font-family: var(--f-display); font-weight: 600;
  font-size: clamp(54px, 7vw, 108px);
  line-height: .85; letter-spacing: -.04em;
  margin-top: auto;
}
.stat-foot { font-size: 12px; color: var(--muted); font-family: var(--f-mono); }

/* ================== CASES ================== */
.case-list {
  display: grid; gap: 0;
  border-top: var(--rule) solid var(--line);
}
.case {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  padding: clamp(48px, 6vw, 80px) 0;
  border-bottom: var(--rule) solid var(--line);
  position: relative;
  align-items: center;
  min-width: 0;
}
/* alt case: swap art/text columns without rtl tricks */
.case.alt { grid-template-columns: 1fr 1fr; }
.case header {
  display:flex; justify-content: space-between;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
  grid-column: 1 / -1;
  padding-bottom: 16px;
  border-bottom: var(--rule) solid var(--line-soft);
  margin-bottom: 12px;
}
.case .case-num { font-family: var(--f-display); font-weight: 600; color: var(--fg); font-size: 14px; letter-spacing: -.01em; }
.case h3 {
  font-family: var(--f-display); font-weight: 500;
  font-size: clamp(28px, 3.4vw, 52px);
  line-height: 1; letter-spacing: -.03em;
  margin: 0 0 20px;
  text-wrap: balance;
}
/* Normal case: text in col 1 (left), art in col 2 (right) */
.case h3    { grid-column: 1; }
.case p     { color: var(--muted); font-size: 15px; line-height: 1.55; max-width: 44ch; margin: 0 0 28px; grid-column: 1; }
.case-kpis  { grid-column: 1; }
/* Alt case: text in col 2 (right), art in col 1 (left) */
.case.alt h3    { grid-column: 2; }
.case.alt p     { grid-column: 2; }
.case.alt .case-kpis { grid-column: 2; }
.case-kpis { display: grid; grid-template-columns: repeat(3, auto); gap: 28px; width: max-content; }
.case-kpis b { display:block; font-family: var(--f-display); font-weight: 600; font-size: clamp(24px, 2vw, 32px); letter-spacing: -.02em; }
.case-kpis span { font-family: var(--f-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.case-art {
  aspect-ratio: 16 / 11;
  border: var(--rule) solid var(--line);
  background: var(--card);
  position: relative; overflow: hidden;
  transition: transform .6s cubic-bezier(.2,.8,.2,1);
}
.case-art:hover { transform: translateY(-6px); }
.case-art svg { width: 100%; height: 100%; display: block; color: var(--fg); }

/* image variant — drop the procedural scenes for real renders */
.case-art.is-img {
  background: #000 !important;
  aspect-ratio: 1 / 1;
  max-width: 460px;
  width: 100%;
  margin-left: auto;
  margin-right: 0;
  /* Sit in column 2, span rows 2-4 (row 1 = full-width header) */
  grid-column: 2;
  grid-row: 2 / span 3;
  align-self: start;
}
.case.alt .case-art.is-img { grid-column: 1; margin-left: 0; margin-right: auto; }
.case-art.is-img > img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: contain; object-position: center;
  display: block;
}
/* fully stand-alone — no border, no card chrome */
.case-art.is-img.bare {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  perspective: none;
}

/* ================== CASE ART (shared) ================== */
.case-art {
  position: relative;
  overflow: hidden;
  perspective: 1100px;
}
.case-art svg.systems-links { width: 100%; height: 100%; }
.case-meta-overlay {
  position: absolute;
  left: 24px; right: 24px; bottom: 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 3;
  pointer-events: none;
}
.cm-mono {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: .22em;
  opacity: .85;
}
.cm-title {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -.01em;
}

/* ---------- Case A : Crypto / candlestick ---------- */
.case-art.art-a {
  background:
    radial-gradient(ellipse at 70% 30%, color-mix(in oklab, var(--fg) 5%, transparent), transparent 60%),
    var(--card);
}
.crypto-3d {
  position: absolute; inset: 0;
  display: grid;
  place-items: center;
  color: var(--fg);
}
.crypto-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(to top, transparent 0%, #000 25%, #000 75%, transparent 100%);
  opacity: .55;
}
.crypto-scene {
  position: relative;
  width: 280px; height: 170px;
  transform-style: preserve-3d;
  transform: rotateX(54deg) rotateZ(-22deg);
  animation: cryptoFloat 11s ease-in-out infinite;
}
@keyframes cryptoFloat {
  0%, 100% { transform: rotateX(54deg) rotateZ(-22deg) translateZ(0); }
  50%      { transform: rotateX(50deg) rotateZ(-18deg) translateZ(8px); }
}
.candle {
  position: absolute;
  bottom: 20px;
  width: 14px;
  transform-style: preserve-3d;
}
.candle .wick {
  position: absolute;
  left: 50%; transform: translateX(-50%);
  width: 1.5px;
  background: var(--fg);
  opacity: .55;
}
.candle .body {
  position: absolute;
  left: 0; right: 0;
  background: var(--fg);
  border-radius: 1px;
  box-shadow: 0 6px 16px -8px color-mix(in oklab, var(--fg) 40%, transparent);
}
.candle.down .body { background: color-mix(in oklab, var(--fg) 35%, var(--bg)); }
.candle.down .wick { opacity: .35; }
/* up candles: body sits at bottom, wick extends above */
.candle.k1 { left:  10px; }
.candle.k1 .wick { bottom: 20px; height: 70px; }
.candle.k1 .body { bottom: 30px; height: 40px; }
.candle.k2 { left:  48px; }
.candle.k2 .wick { bottom: 30px; height: 50px; }
.candle.k2 .body { bottom: 40px; height: 28px; }
.candle.k3 { left:  86px; }
.candle.k3 .wick { bottom: 20px; height: 90px; }
.candle.k3 .body { bottom: 35px; height: 60px; }
.candle.k4 { left: 124px; }
.candle.k4 .wick { bottom: 25px; height: 110px; }
.candle.k4 .body { bottom: 40px; height: 75px; }
.candle.k5 { left: 162px; }
.candle.k5 .wick { bottom: 50px; height: 70px; }
.candle.k5 .body { bottom: 60px; height: 45px; }
.candle.k6 { left: 200px; }
.candle.k6 .wick { bottom: 30px; height: 130px; }
.candle.k6 .body { bottom: 50px; height: 95px; }
.candle.k7 { left: 238px; }
.candle.k7 .wick { bottom: 20px; height: 160px; }
.candle.k7 .body { bottom: 40px; height: 120px; }

.candle { animation: candleBob 4.5s ease-in-out infinite; }
.candle.k1 { animation-delay:    0s; }
.candle.k2 { animation-delay: -.4s; }
.candle.k3 { animation-delay: -.8s; }
.candle.k4 { animation-delay: -1.2s; }
.candle.k5 { animation-delay: -1.6s; }
.candle.k6 { animation-delay: -2.0s; }
.candle.k7 { animation-delay: -2.4s; }
@keyframes candleBob {
  0%, 100% { transform: translateZ(0); }
  50%      { transform: translateZ(8px); }
}

.token {
  position: absolute;
  font-family: var(--f-mono);
  font-size: 24px;
  color: var(--fg);
  opacity: .9;
  text-shadow: 0 4px 12px color-mix(in oklab, var(--fg) 30%, transparent);
  animation: tokenFloat 6s ease-in-out infinite;
}
.token.t1 { left: 20px;  top: -10px; transform: translateZ(70px); animation-delay: 0s; }
.token.t2 { left: 130px; top: -25px; transform: translateZ(110px); font-size: 28px; animation-delay: -2s; }
.token.t3 { left: 230px; top: -5px;  transform: translateZ(80px); font-size: 20px; opacity: .7; animation-delay: -4s; }
@keyframes tokenFloat {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 -6px; }
}

@media (prefers-reduced-motion: reduce) {
  .crypto-scene, .candle, .token { animation: none !important; }
}

/* ---------- Case B : Agency / floating screens ---------- */
.case-art.art-b {
  background:
    radial-gradient(ellipse at 30% 30%, color-mix(in oklab, var(--fg) 6%, transparent), transparent 60%),
    var(--card);
}
.agency-3d {
  position: absolute; inset: 0;
  display: grid;
  place-items: center;
  color: var(--fg);
}
.agency-grid {
  position: absolute; inset: 0;
  background-image: radial-gradient(var(--line-soft) 1.4px, transparent 1.4px);
  background-size: 22px 22px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
  opacity: .9;
}
.agency-scene {
  position: relative;
  width: 280px; height: 170px;
  transform-style: preserve-3d;
  transform: rotateY(-22deg) rotateX(8deg);
  animation: agencyFloat 10s ease-in-out infinite;
}
@keyframes agencyFloat {
  0%, 100% { transform: rotateY(-22deg) rotateX(8deg) translateZ(0); }
  50%      { transform: rotateY(-18deg) rotateX(6deg) translateZ(8px); }
}
.screen {
  position: absolute;
  width: 150px; height: 110px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow:
    0 14px 32px -14px color-mix(in oklab, var(--fg) 28%, transparent),
    0 0 0 1px color-mix(in oklab, var(--fg) 4%, transparent);
  transform-style: preserve-3d;
}
.screen.s1 { left:   0px; top: 30px; transform: translateZ(0px) rotateY(6deg);   opacity: .55; animation: screenBob 7s ease-in-out infinite; }
.screen.s2 { left:  70px; top: 15px; transform: translateZ(40px) rotateY(0deg);  opacity: .85; animation: screenBob 7s ease-in-out infinite -2.3s; }
.screen.s3 { left: 140px; top:  0px; transform: translateZ(80px) rotateY(-6deg);              animation: screenBob 7s ease-in-out infinite -4.6s; background: var(--fg); color: var(--bg); border-color: var(--fg); }
@keyframes screenBob {
  0%, 100% { translate: 0 0 0; }
  50%      { translate: 0 -4px 6px; }
}
.sc-head {
  display: flex; gap: 4px;
  margin-bottom: 4px;
}
.sc-head span {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: .35;
}
.screen.s3 .sc-head span { opacity: .55; }
.sc-row {
  height: 5px;
  background: currentColor;
  border-radius: 2px;
  opacity: .3;
}
.screen.s3 .sc-row { opacity: .55; }
.sc-row.r1 { width: 80%; }
.sc-row.r2 { width: 60%; }
.sc-row.r3 { width: 70%; }
.sc-block {
  height: 36px;
  background: currentColor;
  opacity: .15;
  border-radius: 4px;
}
.screen.s3 .sc-block { opacity: .35; }
.sc-cols {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 4px;
  margin: 2px 0;
}
.sc-cols > div {
  height: 24px;
  background: currentColor;
  opacity: .18;
  border-radius: 3px;
}
.screen.s3 .sc-cols > div { opacity: .4; }
.sc-tag-pill {
  position: absolute;
  bottom: -8px; left: 14px;
  padding: 3px 8px;
  font-family: var(--f-mono);
  font-size: 8px;
  letter-spacing: .2em;
  background: var(--fg);
  color: var(--bg);
  border-radius: 3px;
  transform: translateZ(2px);
}
.screen.s3 .sc-tag-pill { background: var(--bg); color: var(--fg); }

@media (prefers-reduced-motion: reduce) {
  .agency-scene, .screen { animation: none !important; }
}

/* ---------- Case C : Systems / node graph ---------- */
.case-art.art-c {
  background:
    radial-gradient(ellipse at 50% 40%, color-mix(in oklab, var(--fg) 6%, transparent), transparent 60%),
    var(--bg-2);
}
.systems-3d {
  position: absolute; inset: 0;
  display: grid;
  place-items: center;
  color: var(--fg);
}
.systems-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
  opacity: .55;
}
.systems-scene {
  position: relative;
  width: 280px; height: 200px;
  transform-style: preserve-3d;
  transform: rotateX(46deg) rotateZ(-12deg);
  animation: systemsFloat 12s ease-in-out infinite;
}
@keyframes systemsFloat {
  0%, 100% { transform: rotateX(46deg) rotateZ(-12deg) translateZ(0); }
  50%      { transform: rotateX(42deg) rotateZ(-8deg) translateZ(6px); }
}
.systems-links {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  overflow: visible;
  pointer-events: none;
}
.systems-links line {
  stroke: var(--fg);
  stroke-width: 1;
  opacity: .4;
  stroke-dasharray: 3 3;
  animation: linkFlow 4s linear infinite;
}
@keyframes linkFlow {
  to { stroke-dashoffset: -24; }
}
.sys-node {
  position: absolute;
  width: 12px; height: 12px;
  margin: -6px 0 0 -6px;
  background: var(--fg);
  border-radius: 50%;
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--bg-2) 70%, transparent);
  transform-style: preserve-3d;
  animation: nodePulse 3s ease-in-out infinite;
}
/* coords match the SVG viewBox 240x180 — translate uses the scene's px size */
.sys-node.n1 { left:  46.66%; top: 22.22%; animation-delay: 0s; }
.sys-node.n2 { left:  50%;    top: 50%;    width: 22px; height: 22px; margin: -11px 0 0 -11px; animation-delay: -.5s; }
.sys-node.n3 { left:  83.33%; top: 27.77%; animation-delay: -1s; }
.sys-node.n4 { left:  25%;    top: 77.77%; animation-delay: -1.5s; }
.sys-node.n5 { left:  75%;    top: 77.77%; animation-delay: -2s; }
.sys-node.core {
  background: var(--fg);
  box-shadow:
    0 0 0 6px color-mix(in oklab, var(--fg) 12%, transparent),
    0 0 0 14px color-mix(in oklab, var(--fg) 5%, transparent);
}
@keyframes nodePulse {
  0%, 100% { transform: scale(1) translateZ(0); }
  50%      { transform: scale(1.15) translateZ(10px); }
}
.sys-pulse {
  position: absolute;
  left: 50%; top: 50%;
  width: 22px; height: 22px;
  margin: -11px 0 0 -11px;
  border: 1.5px solid var(--fg);
  border-radius: 50%;
  opacity: 0;
  animation: pulseOut 2.6s ease-out infinite;
}
@keyframes pulseOut {
  0%   { transform: scale(1); opacity: .6; }
  100% { transform: scale(4.5); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .systems-scene, .sys-node, .sys-pulse, .systems-links line { animation: none !important; }
}


/* ================== EXPERTISE ================== */
.expertise-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 0;
  border-top: var(--rule) solid var(--line);
  border-left: var(--rule) solid var(--line);
}
.exp-card {
  grid-column: span 2;
  padding: clamp(28px, 3vw, 44px);
  border-right: var(--rule) solid var(--line);
  border-bottom: var(--rule) solid var(--line);
  background: var(--card);
  display: flex; flex-direction: column; gap: 18px;
  min-height: 360px;
  position: relative;
  cursor: pointer;
  transition: background .3s ease;
}
.exp-card:nth-child(4) { grid-column: span 3; }
.exp-card:nth-child(5) { grid-column: span 3; }
.exp-card:hover { background: var(--bg-2); }
.exp-card.wide { grid-column: span 6; }
.exp-card.tall { grid-column: span 6; min-height: 420px; }
.exp-card.fullbleed { grid-column: span 12; min-height: 200px; flex-direction: row; align-items: center; justify-content: space-between; gap: 40px;}
.exp-card .num-tag { font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); display:flex; gap: 10px;}
.exp-card h3 { font-family: var(--f-display); font-weight: 500; font-size: clamp(26px, 2.6vw, 42px); letter-spacing: -.03em; line-height: 1; margin: 0; }
.exp-card .exp-lede { font-family: var(--f-display); font-weight: 400; font-style: italic; color: var(--fg); font-size: 17px; margin: 0; }
.exp-card .exp-body { color: var(--muted); font-size: 14px; line-height: 1.55; margin: 0; max-height: 0; opacity: 0; overflow: hidden; transition: max-height .5s ease, opacity .4s ease, margin .4s ease;}
.exp-card:hover .exp-body, .exp-card.open .exp-body { max-height: 200px; opacity: 1; margin-top: 4px;}
.exp-card .exp-list {
  display:flex; flex-wrap: wrap; gap: 6px;
  margin-top: auto;
}
.exp-card .exp-list span {
  font-family: var(--f-mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase;
  border: var(--rule) solid var(--line-soft); padding: 4px 8px; border-radius: 999px; color: var(--muted);
}
.exp-card .exp-arrow {
  position: absolute; top: clamp(24px, 3vw, 32px); right: clamp(24px, 3vw, 32px);
  width: 34px; height: 34px; border: var(--rule) solid var(--line-soft); border-radius: 999px;
  display:grid; place-items:center;
  transition: transform .4s cubic-bezier(.2,.8,.2,1), background .3s ease, color .3s ease;
}
.exp-card:hover .exp-arrow { transform: rotate(-45deg); background: var(--fg); color: var(--bg); border-color: var(--fg); }

.exp-card.fullbleed h3 { font-size: clamp(28px, 3vw, 44px); }
.exp-card.fullbleed .exp-right { text-align: right; display:flex; flex-direction: column; gap: 8px; }

/* ================== TESTIMONIALS ================== */
.testi-head {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
  margin-bottom: clamp(40px, 5vw, 64px);
}
.testi-head .section-head { margin-bottom: 0; }
.testi-video {
  position: relative;
  aspect-ratio: 4 / 5;
  max-height: 480px;
  background: #000;
  overflow: hidden;
}
.testi-video video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: contain;
  display: block;
}

.testi-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 0;
  border-top: var(--rule) solid var(--line);
  border-left: var(--rule) solid var(--line);
}
.testi {
  padding: clamp(28px, 3vw, 44px);
  border-right: var(--rule) solid var(--line);
  border-bottom: var(--rule) solid var(--line);
  margin: 0;
  display: flex; flex-direction: column; justify-content: space-between; gap: 28px;
  min-height: 280px;
  grid-column: span 1;
  background: var(--card);
}
.testi.wide { grid-column: span 2; background: var(--card); color: var(--fg); border-color: var(--line); }
.testi.wide .muted, .testi.wide figcaption span { color: var(--muted); }
.testi blockquote { margin: 0; font-family: var(--f-display); font-weight: 400; font-size: clamp(18px, 1.5vw, 24px); line-height: 1.3; letter-spacing: -.015em; text-wrap: pretty; }
.testi.wide blockquote { font-size: clamp(22px, 2vw, 30px); max-width: 60ch; }
.testi figcaption { display:flex; align-items:center; gap: 12px; }
.testi figcaption b { font-family: var(--f-display); font-weight: 500; font-size: 14px; display:block; }
.testi figcaption span { font-family: var(--f-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); display:block; margin-top: 2px; }
.testi.wide .avatar { background: var(--bg-2); border-color: var(--line); color: var(--fg); }
.avatar {
  width: 42px; height: 42px; border-radius: 999px;
  background: var(--bg-2);
  border: var(--rule) solid var(--line);
  display:grid; place-items:center;
  font-family: var(--f-display); font-weight: 600; font-size: 13px; letter-spacing: .02em;
  color: var(--fg);
  transition: background .35s ease, border-color .35s ease, color .35s ease;
}
.avatar::before { content: attr(data-initials); }

/* ================== ABOUT ================== */
.about-grid {
  display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 5vw, 80px);
}
.about-portrait { position: relative; }
.portrait-ph {
  aspect-ratio: 4 / 5;
  border: var(--rule) solid var(--line);
  background:
    repeating-linear-gradient(135deg, transparent 0 16px, var(--line-soft) 16px 17px),
    var(--card);
  display:grid; place-items:end center;
  padding: 24px;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; color: var(--muted);
  position: relative;
  overflow: hidden;
}
.portrait-ph.is-img {
  background: #000 !important;
  padding: 0;
  aspect-ratio: 1 / 1;
  border: 0;
  max-width: 460px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}
.portrait-ph.is-img > img,
.portrait-ph.is-img > video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: contain; object-position: center;
  display: block;
}
.portrait-tag {
  position: absolute; top: 16px; right: -12px;
  background: var(--fg); color: var(--bg); padding: 8px 14px;
  transform: rotate(2deg);
}
.portrait-tag .label { color: var(--bg); }
/* ghost numeral for about section (mirrors .section-head::before) */
.about-copy {
  position: relative;
}
.about-copy::before {
  content: attr(data-ghost);
  position: absolute;
  top: -40px; right: -12px;
  font-family: var(--f-display); font-weight: 600;
  font-size: clamp(140px, 22vw, 360px);
  line-height: .8; letter-spacing: -.06em;
  color: color-mix(in oklab, var(--fg) 6%, transparent);
  pointer-events: none; z-index: 0;
  white-space: nowrap;
}
.about-copy > * { position: relative; z-index: 1; }
.about-copy .eyebrow { display: flex; margin-bottom: 28px; }
.about-copy .section-title { margin-top: 0; margin-bottom: 36px; }
.about-copy p { font-size: 16px; line-height: 1.6; max-width: 56ch; margin: 0 0 14px; }
.about-copy p.muted { color: var(--muted); }
.about-dl {
  margin: 36px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 0;
  border-top: var(--rule) solid var(--line);
  border-left: var(--rule) solid var(--line);
}
.about-dl > div {
  padding: 16px 20px;
  border-right: var(--rule) solid var(--line);
  border-bottom: var(--rule) solid var(--line);
  display: flex; flex-direction: column; gap: 4px;
}
.about-dl dt { font-family: var(--f-mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.about-dl dd { font-family: var(--f-display); font-weight: 500; font-size: 17px; margin: 0; letter-spacing: -.01em; }

/* ================== SERVICES ================== */
.pkg-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  border-top: var(--rule) solid var(--line);
  border-left: var(--rule) solid var(--line);
}
.pkg {
  padding: clamp(24px, 2.5vw, 36px);
  border-right: var(--rule) solid var(--line);
  border-bottom: var(--rule) solid var(--line);
  background: var(--card);
  display:flex; flex-direction: column; gap: 16px;
  min-height: 440px;
  position: relative;
  transition: background .3s ease;
}
.pkg:hover { background: var(--bg-2); }
.pkg.featured { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.pkg.featured .pkg-flag {
  position: absolute; top: -12px; right: 16px;
  background: var(--warn); color: var(--bg);
  font-family: var(--f-mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
  padding: 5px 10px;
}
.pkg header { display:flex; justify-content: space-between; font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.pkg.featured header { color: color-mix(in oklab, var(--bg) 60%, transparent);}
.pkg.featured header .num { color: var(--bg); }
.pkg h3 { font-family: var(--f-display); font-weight: 500; font-size: clamp(24px, 2vw, 32px); letter-spacing: -.02em; margin: 4px 0 0;}
.pkg p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--muted); }
.pkg.featured p { color: color-mix(in oklab, var(--bg) 72%, transparent); }
.pkg ul { list-style: none; padding: 0; margin: 8px 0 0; display:flex; flex-direction: column; gap: 8px; }
.pkg li { font-size: 13px; display:flex; align-items:center; gap: 10px; }
.pkg li::before { content: ""; width: 10px; height: 1px; background: currentColor; display:inline-block; }
.pkg footer { margin-top: auto; font-family: var(--f-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding-top: 16px; border-top: var(--rule) solid var(--line-soft); }
.pkg footer b { font-family: var(--f-display); font-weight: 600; font-size: 20px; letter-spacing: -.01em; color: var(--fg); text-transform: none; }
.pkg.featured footer { color: color-mix(in oklab, var(--bg) 60%, transparent); border-color: color-mix(in oklab, var(--bg) 20%, transparent);}
.pkg.featured footer b { color: var(--bg); }

/* ================== CONTACT ================== */
.section.contact { padding-bottom: 0; }
.contact-inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px);
}
.contact-lede p { font-size: clamp(16px, 1.2vw, 18px); line-height: 1.55; color: var(--muted); max-width: 46ch;}
.status-pill {
  display:inline-flex; align-items:center; gap: 10px;
  padding: 8px 14px; border: var(--rule) solid var(--warn); border-radius: 999px;
  color: var(--warn);
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  margin-top: 24px;
}
.status-pill .dot {
  width: 7px; height: 7px; border-radius: 999px; background: var(--warn);
  animation: pulse 2s infinite;
}

.contact-bottom {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: stretch;
}

.contact-video {
  position: relative;
  width: 100%;
  min-height: clamp(420px, 45vw, 600px);
  background: #000;
  overflow: hidden;
  align-self: stretch;
}
.contact-video video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: contain;
  display: block;
}

.contact-channels {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  border-top: var(--rule) solid var(--line);
  border-left: var(--rule) solid var(--line);
  align-self: start;
}
.channel {
  padding: clamp(22px, 2.5vw, 32px);
  border-right: var(--rule) solid var(--line);
  border-bottom: var(--rule) solid var(--line);
  background: var(--card);
  display:flex; flex-direction: column; gap: 10px;
  min-height: 170px;
  position: relative;
  transition: background .3s ease, color .3s ease;
}
.channel:hover { background: var(--fg); color: var(--bg); }
.channel .ch-num { font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; color: var(--muted); }
.channel:hover .ch-num { color: color-mix(in oklab, var(--bg) 60%, transparent);}
.channel .ch-label { font-family: var(--f-display); font-weight: 500; font-size: clamp(22px, 2vw, 30px); letter-spacing: -.02em;}
.channel .ch-val { font-family: var(--f-mono); font-size: 13px; letter-spacing: .02em; color: var(--muted); word-break: break-word;}
.channel:hover .ch-val { color: color-mix(in oklab, var(--bg) 78%, transparent);}
.channel .ch-cta {
  margin-top: auto; display:inline-flex; align-items:center; gap: 6px;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
}

/* ================== FOOTER ================== */
.site-foot {
  border-top: var(--rule) solid var(--line);
  padding: clamp(48px, 6vw, 72px) var(--pad) 28px;
  position: relative;
  overflow: hidden;
  max-width: var(--maxw);
  margin: 0 auto;
}
.site-foot > * { position: relative; z-index: 2; }
.foot-figure {
  position: absolute;
  z-index: 1;
  pointer-events: none;
  right: clamp(-40px, -2vw, 0px);
  top: clamp(-180px, -14vw, -120px);
  width: clamp(360px, 42vw, 620px);
  aspect-ratio: 1 / 1;
}
.foot-figure img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  display: block;
  filter: grayscale(1) contrast(1.05);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 55%, rgba(0,0,0,.55) 80%, rgba(0,0,0,0) 100%);
          mask-image: linear-gradient(180deg, #000 0%, #000 55%, rgba(0,0,0,.55) 80%, rgba(0,0,0,0) 100%);
}
@media (max-width: 720px) {
  .foot-figure {
    right: -10%;
    top: -90px;
    width: 70vw;
  }
}
.foot-top { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(32px, 5vw, 80px); padding-bottom: 48px;}
.foot-big {
  font-family: var(--f-display); font-weight: 600;
  font-size: clamp(80px, 14vw, 220px); line-height: .85; letter-spacing: -.05em;
  display:block;
}
.foot-sub { font-family: var(--f-mono); font-size: 12px; letter-spacing: .08em; color: var(--muted); margin-top: 12px; display:inline-block;}
.foot-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; align-self: end;}
.foot-cols .k { font-family: var(--f-mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); display:block; margin-bottom: 14px;}
.foot-cols a, .foot-cols span { display:block; font-size: 14px; margin-bottom: 8px; transition: opacity .2s ease; }
.foot-cols a:hover { opacity: .55; }
.foot-cols .muted { color: var(--muted); }
.foot-bot {
  display:flex; align-items:center; gap: 12px;
  padding-top: 20px; border-top: var(--rule) solid var(--line-soft);
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; color: var(--muted);
}
.foot-bot .grow { flex: 1; }
.dotsep { opacity: .5; }

/* Tweaks panel removed */

/* ================== REVEAL ================== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ================== VARIATION B (editorial) ================== */
body[data-variation="B"] {
  --f-display: 'Space Grotesk', serif;
}
body[data-variation="B"] .section { padding: clamp(96px, 14vw, 180px) var(--pad); }
body[data-variation="B"] .section-head { max-width: 1100px; }
body[data-variation="B"] .section-title { font-weight: 400; letter-spacing: -.04em; }
body[data-variation="B"] .section-title em {
  font-family: Georgia, 'Times New Roman', serif; font-style: italic; font-weight: 400;
}
body[data-variation="B"] .hero-title {
  font-weight: 400; letter-spacing: -.06em;
  font-size: clamp(52px, 9vw, 150px);
}
body[data-variation="B"] .hero-title .line.tail { font-style: italic; font-family: Georgia, serif; }
body[data-variation="B"] .hero-title .line.tail .year { font-style: normal; font-family: var(--f-mono); }
body[data-variation="B"] .logo-grid { grid-template-columns: repeat(4, 1fr); }
body[data-variation="B"] .logo-grid li { aspect-ratio: 3 / 2; }
body[data-variation="B"] .stats-grid { grid-template-columns: repeat(2, 1fr); }
body[data-variation="B"] .stat { min-height: 300px; }
body[data-variation="B"] .testi-grid { grid-template-columns: repeat(2, 1fr); }
body[data-variation="B"] .testi, body[data-variation="B"] .testi.wide { grid-column: span 1; }
body[data-variation="B"] .case h3 em { font-family: Georgia, serif; font-style: italic; }
body[data-variation="B"] .pkg-grid { grid-template-columns: repeat(2, 1fr); }
body[data-variation="B"] .section-title em,
body[data-variation="B"] em {
  font-family: Georgia, 'Times New Roman', serif; font-style: italic;
}

/* ================== RESPONSIVE ================== */
@media (max-width: 1100px) {
  .nav-links { display: none; }
  .nav-inner { grid-template-columns: 1fr auto; }
  .hero-row-top { grid-template-columns: 1fr; }
  .hero-rule { display: none; }
  .hero-footer { grid-template-columns: 1fr; }
  .hero-facts { grid-template-columns: repeat(2, 1fr); }
  .logo-grid { grid-template-columns: repeat(3, 1fr); }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .testi-head { grid-template-columns: 1fr; }
  .testi-video { aspect-ratio: 4 / 5; max-width: 100%; }
  .case, .case.alt { grid-template-columns: minmax(0, 1fr); }
  /* Reset all explicit column placements for single-column mobile */
  .case h3, .case p, .case-kpis,
  .case.alt h3, .case.alt p, .case.alt .case-kpis { grid-column: 1; }
  .case-kpis { width: 100%; }
  .case-art.is-img, .case.alt .case-art.is-img {
    grid-column: 1;
    grid-row: auto;
    max-width: 100%;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    aspect-ratio: 4 / 3;
  }
  .exp-card, .exp-card.wide, .exp-card.tall, .exp-card.fullbleed { grid-column: span 12; min-height: 220px; flex-direction: column; align-items: flex-start; }
  .testi, .testi.wide { grid-column: span 6; }
  .about-grid { grid-template-columns: 1fr; }
  .pkg-grid { grid-template-columns: 1fr 1fr; }
  .contact-inner { grid-template-columns: 1fr; }
  .contact-bottom { grid-template-columns: 1fr; }
  .contact-channels { grid-template-columns: 1fr 1fr; }
  .contact-video { min-height: 0; aspect-ratio: 4 / 5; }
  .foot-top { grid-template-columns: 1fr; }
  .foot-cols { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .section-head.split { grid-template-columns: 1fr; }
  .hero-facts { grid-template-columns: 1fr 1fr; }
  .logo-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: 1fr; }
  .testi, .testi.wide { grid-column: span 6; }
  .testi-grid { grid-template-columns: 1fr; }
  .pkg-grid { grid-template-columns: 1fr; }
  .contact-channels { grid-template-columns: 1fr; }
  .about-dl { grid-template-columns: 1fr; }
  .foot-cols { grid-template-columns: 1fr 1fr; }
  .case-kpis { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .worked-foot { grid-template-columns: 1fr; }
  .worked-foot .cell { padding: 20px 0 !important; border-right: 0 !important; border-bottom: var(--rule) solid var(--line-soft); }
  .tweaks { width: calc(100vw - 32px); }
}

/* ================== WF TILE MOSAIC (new Worked For) ================== */
.wf-grid {
  list-style: none; padding: 0; margin: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: var(--rule) solid var(--line);
  border-left: var(--rule) solid var(--line);
}
.wf-card {
  position: relative;
  border-right: var(--rule) solid var(--line);
  border-bottom: var(--rule) solid var(--line);
  padding: clamp(22px, 2.4vw, 32px);
  min-height: 220px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 12px;
  transition: background .3s cubic-bezier(.2,.8,.2,1);
  overflow: hidden;
  background: var(--bg);
}
.wf-card:hover { background: var(--card); }
.wf-idx {
  position: absolute; top: 14px; right: 16px;
  font-family: var(--f-mono); font-size: 10px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--muted);
}
.wf-logo {
  width: 72px; height: 72px; border-radius: 999px;
  border: var(--rule) solid var(--line);
  overflow: hidden; background: var(--card);
  display: grid; place-items: center;
  transition: transform .5s cubic-bezier(.2,.8,.2,1);
}
.wf-card:hover .wf-logo { transform: translateY(-4px) rotate(-3deg); }
.wf-logo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wf-logo span {
  font-family: var(--f-display); font-weight: 700;
  font-size: 26px; letter-spacing: -.02em;
}
.wf-name {
  font-family: var(--f-display); font-weight: 600;
  font-size: clamp(20px, 1.8vw, 26px);
  letter-spacing: -.02em; line-height: 1.05;
  align-self: end;
}
.wf-role {
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted);
  line-height: 1.4;
}
.wf-year {
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--fg);
  padding-top: 12px;
  border-top: var(--rule) solid var(--line-soft);
  display: flex; justify-content: space-between;
}
.wf-year::after { content: "↗"; opacity: 0; transform: translateX(-6px); transition: opacity .3s, transform .3s cubic-bezier(.2,.8,.2,1); }
.wf-card:hover .wf-year::after { opacity: 1; transform: translateX(0); }

@media (max-width: 1100px) {
  .wf-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 800px) {
  .wf-grid { grid-template-columns: repeat(2, 1fr); }
  .wf-card { min-height: 180px; padding: 20px; }
  .wf-logo { width: 56px; height: 56px; }
}
@media (max-width: 480px) {
  .wf-grid { grid-template-columns: 1fr; }
}

/* ================== HERO STAGE (video) ================== */
.hero-stage {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: end;
  margin-top: clamp(24px, 5vw, 64px);
}
.hero-stage .hero-title { margin: 0; }

.hero-video {
  position: relative;
  aspect-ratio: 1 / 1;
  width: 100%;
  max-width: 560px;
  justify-self: end;
  background: #000;
  overflow: hidden;
  border: 1px solid var(--line-soft);
}
.hero-video-el {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  display: block;
  background: #000;
}
.hero-video-frame {
  position: absolute; inset: 0;
  pointer-events: none;
}
.hv-corner {
  position: absolute;
  width: 18px; height: 18px;
  border: 1px solid var(--fg);
}
.hv-corner.tl { top: 12px; left: 12px; border-right: 0; border-bottom: 0; }
.hv-corner.tr { top: 12px; right: 12px; border-left: 0; border-bottom: 0; }
.hv-corner.bl { bottom: 12px; left: 12px; border-right: 0; border-top: 0; }
.hv-corner.br { bottom: 12px; right: 12px; border-left: 0; border-top: 0; }
.hv-tag {
  position: absolute;
  bottom: 14px; left: 50%; transform: translateX(-50%);
  font-family: var(--f-mono);
  font-size: 10px; letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--fg);
  opacity: .9;
}

@media (max-width: 900px) {
  .hero-stage { grid-template-columns: 1fr; }
  .hero-video { justify-self: stretch; max-width: 100%; aspect-ratio: 4 / 5; }
}

/* ================== SCROLL UX LAYER ================== */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0;
  height: 2px; z-index: 2000;
  background: color-mix(in oklab, var(--fg) 8%, transparent);
  pointer-events: none;
}
.scroll-progress span {
  display: block; width: 100%; height: 100%;
  background: var(--fg);
  transform-origin: left;
  transform: scaleX(0);
  transition: transform .06s linear;
}

.section-badge {
  position: fixed;
  right: clamp(16px, 3vw, 32px);
  bottom: clamp(16px, 3vw, 32px);
  z-index: 1500;
  font-family: var(--f-mono);
  font-size: 10px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted);
  background: var(--bg);
  border: var(--rule) solid var(--line);
  padding: 10px 14px;
  display: flex; align-items: center; gap: 10px;
  opacity: 0; transform: translateY(8px);
  transition: opacity .4s ease, transform .4s cubic-bezier(.2,.8,.2,1);
  pointer-events: none;
  backdrop-filter: blur(8px);
}
.section-badge.has-section { opacity: 1; transform: translateY(0); }
.section-badge::before {
  content: ""; display: block;
  width: 6px; height: 6px; border-radius: 999px;
  background: var(--fg);
  animation: sbPulse 2.4s ease-in-out infinite;
}
@keyframes sbPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .45; transform: scale(1.35); }
}

/* Active nav link underline */
.nav-links a { position: relative; transition: color .25s ease, transform .3s cubic-bezier(.2,.8,.2,1); }
.nav-links a::after {
  content: ""; position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 1px; background: var(--fg);
  transform: scaleX(0); transform-origin: left;
  transition: transform .4s cubic-bezier(.2,.8,.2,1);
}
.nav-links a.is-active::after,
.nav-links a:hover::after { transform: scaleX(1); }
.nav-links a.is-active .num { color: var(--fg); }

/* Magnet target helper */
.btn-primary, .wf-card, .exp-card {
  will-change: transform;
}
.btn-primary {
  transform: translate(var(--mx, 0), var(--my, 0));
  transition: transform .35s cubic-bezier(.2,.8,.2,1), background .2s ease;
}

/* Softer reveal with longer stagger window */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s cubic-bezier(.2,.8,.2,1), transform .9s cubic-bezier(.2,.8,.2,1);
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* Nav hover lift */
.nav-links a:hover { transform: translateY(-1px); }

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .scroll-progress span { transition: none; }
  .section-badge { transition: opacity .2s ease; }
  .section-badge::before { animation: none; }
}

/* Logo grid — black & white, colour on hover */
.wf-card .wf-logo img {
  filter: grayscale(1) contrast(1.1) brightness(1.05);
  transition: filter .35s ease;
}
.wf-card:hover .wf-logo img {
  filter: grayscale(0) contrast(1) brightness(1);
}

/* Case art video */
.case-art.is-img.bare video {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  border-radius: inherit;
}

/* ------------------------------------------------------------------
   Contact form
   ------------------------------------------------------------------ */
.contact-form { width:100%; margin-bottom:3rem; display:flex; flex-direction:column; gap:1rem; }
.cf-row { display:grid; grid-template-columns:1fr 1fr; gap:1rem; }
@media (max-width:600px) { .cf-row { grid-template-columns:1fr; } }
.cf-field { display:flex; flex-direction:column; gap:.35rem; }
.cf-full { grid-column:1/-1; }
.cf-field label { font-family:var(--f-mono); font-size:.72rem; letter-spacing:.06em; text-transform:uppercase; color:var(--muted); }
.cf-field label span { color:var(--warn); }
.cf-field input, .cf-field select, .cf-field textarea {
  background:var(--card); color:var(--fg);
  border:1px solid var(--line-soft); border-radius:2px;
  font-family:var(--f-body); font-size:.9rem;
  padding:.7rem .9rem; outline:none;
  transition:border-color .2s ease, box-shadow .2s ease;
  appearance:none; -webkit-appearance:none;
}
.cf-field textarea { resize:vertical; min-height:110px; }
.cf-field select {
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239a9a93' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat:no-repeat; background-position:right .8rem center;
  padding-right:2.2rem; cursor:pointer;
}
.cf-field input:focus, .cf-field select:focus, .cf-field textarea:focus {
  border-color:var(--fg); box-shadow:0 0 0 2px var(--line-soft);
}
.cf-field input.error, .cf-field textarea.error { border-color:var(--warn); }
.cf-footer { display:flex; align-items:center; gap:1.5rem; flex-wrap:wrap; }
.cf-submit[disabled] { opacity:.6; pointer-events:none; }
.cf-status { font-family:var(--f-mono); font-size:.78rem; margin:0; transition:opacity .3s ease; }
.cf-status.ok   { color:#4caf50; }
.cf-status.fail { color:var(--warn); }

/* ------------------------------------------------------------------
   Page content (page.php)
   ------------------------------------------------------------------ */
.page-body { max-width:720px; font-size:1.05rem; line-height:1.75; }
.page-body h2 { font-family:var(--f-display); font-size:clamp(1.4rem,3vw,2rem); margin:2.5rem 0 .75rem; }
.page-body h3 { font-family:var(--f-display); font-size:1.2rem; margin:2rem 0 .5rem; }
.page-body p  { margin:0 0 1.25rem; }
.page-body ul, .page-body ol { padding-left:1.4rem; margin:0 0 1.25rem; }
.page-body li { margin-bottom:.4rem; }
.page-body a  { border-bottom:1px solid var(--line-soft); transition:border-color .2s; }
.page-body a:hover { border-color:var(--fg); }
.page-body blockquote { border-left:2px solid var(--fg); margin:1.5rem 0; padding:.5rem 0 .5rem 1.5rem; color:var(--muted); font-style:italic; }
