/* ─────────────────────────────────────────────────────────────
   STUDIO BLOCS — Editorial archviz studio
   Type: Fraunces (display heavy), Cormorant Garamond (spaced light),
         Inter (body), JetBrains Mono (caption)
   ───────────────────────────────────────────────────────────── */

:root {
  --bone: #F4F1EC;
  --paper: #EAE5DC;
  --ink: #0A0A0A;
  --ink-2: #1a1a1a;
  --stone: #8A8276;
  --stone-2: #5d564b;
  --line: rgba(10,10,10,0.12);
  --line-strong: rgba(10,10,10,0.32);
  --accent: oklch(0.62 0.13 50);
  --accent-soft: oklch(0.62 0.13 50 / 0.12);

  --f-display: "Fraunces", "Bodoni Moda", "Times New Roman", serif;
  --f-light: "Cormorant Garamond", "Cormorant", "Times New Roman", serif;
  --f-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --gutter: clamp(20px, 4vw, 64px);
  --col-max: 1880px;
}

/* MODES */
body[data-mode="cinematic"] {
  --bone: #0F0E0C;
  --paper: #1a1815;
  --ink: #F4F1EC;
  --ink-2: #d8d2c5;
  --stone: #8A8276;
  --stone-2: #a59c8c;
  --line: rgba(244,241,236,0.14);
  --line-strong: rgba(244,241,236,0.4);
}
body[data-mode="gallery"] {
  --bone: #FAF8F4;
  --paper: #F0EBE0;
}

/* DARK MODE (nav toggle) — overrides mode palette */
:root[data-theme="dark"] {
  --bone: #0c0c0e;
  --paper: #161619;
  --ink: #F4F1EC;
  --ink-2: #d8d2c5;
  --stone: #8f8779;
  --stone-2: #a59c8c;
  --line: rgba(244,241,236,0.14);
  --line-strong: rgba(244,241,236,0.42);
}

/* ACCENT is set inline on body via --accent */

* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  background: var(--bone);
  color: var(--ink);
  font-family: var(--f-body);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background 600ms ease, color 600ms ease;
}
body { cursor: none; }
@media (hover: none) { body { cursor: auto; } #cursor { display: none !important; } }

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

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

/* Layout container */
.wrap {
  width: 100%;
  max-width: var(--col-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Mono / inscription utilities */
.mono {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--stone-2);
}
.inscription {
  font-family: var(--f-light);
  font-weight: 300;
  letter-spacing: 0.4em;
  text-transform: uppercase;
}
.display {
  font-family: var(--f-display);
  font-weight: 900;
  font-variation-settings: "opsz" 144, "SOFT" 0;
  letter-spacing: -0.025em;
  line-height: 0.88;
}

/* GRAIN */
#grain {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 1000;
  opacity: 0.06;
  mix-blend-mode: multiply;
  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.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.6 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  background-size: 200px 200px;
  transition: opacity 600ms ease;
}
body[data-grain="off"] #grain { opacity: 0; }
body[data-mode="cinematic"] #grain { mix-blend-mode: screen; opacity: 0.07; }

/* CURSOR */
#cursor {
  position: fixed; top: 0; left: 0;
  width: 16px; height: 22px;
  background: transparent no-repeat top left / contain;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 16'%3E%3Cpath d='M1 1 L1 15 M1 1 L12 10' fill='none' stroke='%23ffffff' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  border: 0;
  pointer-events: none;
  z-index: 9999;
  transform: translate3d(-50%, -50%, 0);
  transition: width 200ms cubic-bezier(.2,.7,.2,1),
              height 200ms cubic-bezier(.2,.7,.2,1),
              opacity 220ms ease;
  mix-blend-mode: difference;
}
#cursor.expand {
  width: 20px; height: 27px;
}
.cursor-label { display: none; }
body[data-cursor="off"] #cursor { display: none; }
body[data-cursor="off"] { cursor: auto; }

/* ─── NAV ──────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px max(var(--gutter), calc((100% - var(--col-max)) / 2 + var(--gutter)));
  display: flex; align-items: center; justify-content: space-between;
  color: var(--ink);
  background: var(--bone);
  transition: background 600ms ease;
}
:root[data-theme="dark"] .nav { background: transparent; }
.nav-logo {
  display: flex; flex-direction: column; align-items: flex-start;
  line-height: 1;
  mix-blend-mode: difference;
  color: #f5f2ed;
}
.nav-logo .s {
  font-family: var(--f-light);
  font-weight: 300;
  font-size: 9px;
  letter-spacing: 0.6em;
  padding-left: 0.6em;
}
.nav-logo .b {
  font-family: var(--f-display);
  font-weight: 900;
  font-variation-settings: "opsz" 144;
  font-size: 22px;
  letter-spacing: -0.02em;
  margin-top: 1px;
}
.nav-links {
  display: flex; gap: 28px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  mix-blend-mode: difference;
  color: #f5f2ed;
}
.nav-links a { position: relative; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px;
  height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: left;
  transition: transform .35s cubic-bezier(.2,.7,.2,1);
}
.nav-links a:hover::after { transform: scaleX(1); }
.nav-cta {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 10px 14px;
  color: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 999px;
  display: inline-flex; align-items: center; gap: 8px;
  white-space: nowrap;
  transition: background 220ms ease, color 220ms ease, border-color 220ms ease;
}
.nav-cta:hover { background: var(--ink); color: var(--bone); border-color: var(--ink); }
.nav-cta .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

.nav-right { display: flex; align-items: center; gap: clamp(12px, 1.6vw, 22px); }
.nav-logo-img { height: 32px; width: auto; display: block; }
.theme-toggle {
  appearance: none; background: transparent; border: 0;
  cursor: none; padding: 0;
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--f-mono); font-size: 11px;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink);
}
.theme-toggle-track {
  width: 36px; height: 18px; border-radius: 999px;
  border: 1px solid currentColor; position: relative;
  display: inline-block; flex: 0 0 auto;
}
.theme-toggle-thumb {
  position: absolute; top: 50%; left: 3px;
  transform: translateY(-50%);
  width: 10px; height: 10px; border-radius: 50%;
  background: currentColor;
  transition: left .32s cubic-bezier(.2,.7,.2,1);
}
:root[data-theme="dark"] .theme-toggle-thumb { left: 21px; }
.theme-toggle-label { width: 3.2em; text-align: left; }
@media (max-width: 720px) {
  .theme-toggle-label { display: none; }
}

@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-burger { display: flex; }
}

/* Hamburger */
.nav-burger {
  display: none;
  width: 34px; height: 34px; padding: 0;
  flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  background: transparent; border: 0; cursor: none;
  color: var(--ink);
}
.nav-burger span {
  display: block; width: 22px; height: 1.5px; background: currentColor;
  transition: transform .3s cubic-bezier(.2,.7,.2,1), opacity .3s ease;
}
.nav-burger.open span:nth-child(1) { transform: translateY(3.75px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { transform: translateY(-3.75px) rotate(-45deg); }

/* Mobile overlay menu */
.nav-mobile {
  position: fixed; inset: 0; z-index: 90;
  background: var(--bone);
  display: flex; flex-direction: column; justify-content: center;
  gap: 28px; padding: 0 var(--gutter);
  opacity: 0; pointer-events: none;
  transform: translateY(-10px);
  transition: opacity .35s ease, transform .35s ease, background .6s ease;
}
.nav-mobile.open { opacity: 1; pointer-events: auto; transform: none; }
.nav-mobile-links { display: flex; flex-direction: column; gap: 6px; }
.nav-mobile-links a {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(40px, 13vw, 68px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.nav-mobile-cta {
  align-self: flex-start;
  font-family: var(--f-mono); font-size: 12px;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 14px 22px; margin-top: 12px;
  border: 1px solid var(--ink); border-radius: 999px;
  display: inline-flex; align-items: center; gap: 9px;
  color: var(--ink);
}
.nav-mobile-cta .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* ─── HERO ─────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  padding-top: 110px;
  padding-bottom: 60px;
  display: flex; flex-direction: column;
  justify-content: space-between;
}

/* Background showreel layer */
.hero-video {
  position: absolute; inset: 0;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}
.hero-video video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero-yt { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.hero-yt iframe {
  position: absolute; top: 50%; left: 50%;
  width: 100vw; height: 56.25vw;
  min-width: 177.78vh; min-height: 100vh;
  transform: translate(-50%, -50%);
  border: 0; pointer-events: none;
}
.hero-video-scrim { position: absolute; inset: 0; transition: background .6s ease; }
.hero.has-video .hero-video-scrim {
  background:
    radial-gradient(120% 90% at 50% 40%, transparent 30%, rgba(10,10,10,0.5) 100%),
    linear-gradient(180deg, rgba(10,10,10,0.45) 0%, rgba(10,10,10,0.2) 35%, rgba(10,10,10,0.6) 100%);
}
.hero-backdrop-ctl {
  position: absolute;
  top: 60px; bottom: auto;
  left: 50%; transform: translateX(-50%);
  z-index: 20;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--stone);
  pointer-events: auto;
  display: flex; flex-direction: row; align-items: center;
  flex-wrap: wrap; justify-content: center; gap: 8px 16px;
  white-space: nowrap;
}
.hint-line { opacity: 0.7; }
.hint-field { display: inline-flex; align-items: stretch; gap: 0; max-width: 340px; }
.hint-field input {
  flex: 1; min-width: 0;
  background: color-mix(in srgb, var(--ink) 6%, transparent);
  color: var(--ink);
  border: 1px solid var(--line-strong); border-radius: 999px;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.06em;
  text-transform: none; padding: 7px 14px; outline: none;
}
.hint-field input::placeholder { color: var(--stone); text-transform: none; letter-spacing: 0.04em; }
.hint-field button {
  appearance: none; cursor: none;
  background: transparent; color: var(--ink);
  border: 1px solid var(--line-strong); border-radius: 999px;
  font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.14em;
  text-transform: uppercase; padding: 6px 16px; margin-left: 12px;
  transition: background .2s ease, color .2s ease;
}
.hint-field button:hover { background: var(--ink); color: var(--bone); }
.hero-video-clear {
  position: absolute;
  top: 60px; bottom: auto;
  left: 50%; transform: translateX(-50%);
  z-index: 20;
  appearance: none; cursor: none; pointer-events: auto;
  background: rgba(244,241,236,0.1);
  color: rgba(244,241,236,0.92);
  border: 1px solid rgba(244,241,236,0.4); border-radius: 999px;
  font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.14em;
  text-transform: uppercase; padding: 8px 16px;
  backdrop-filter: blur(6px);
  transition: background .2s ease, color .2s ease;
}
.hero-video-clear:hover { background: rgba(244,241,236,0.92); color: #0a0a0a; }
.hero .wrap { position: relative; z-index: 1; }

/* When a video is set, flip hero type to light for legibility */
.hero.has-video .hero-mark .studio,
.hero.has-video .hero-mark .blocs,
.hero.has-video .hero-tagline { color: #F4F1EC; }
.hero.has-video .mono,
.hero.has-video .scroll-cue { color: rgba(244,241,236,0.78); }
.hero.has-video .scroll-cue .line { background: rgba(244,241,236,0.78); }
.hero-top {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 24px;
  margin-bottom: 40px;
}
.hero-meta { display: flex; flex-direction: column; gap: 4px; text-align: right; }

.hero-mark {
  flex: 1;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  margin: clamp(20px, 6vh, 80px) 0;
  position: relative;
}
.hero-mark .studio {
  font-family: var(--f-light);
  font-weight: 300;
  font-size: clamp(18px, 2vw, 26px);
  letter-spacing: 0.7em;
  padding-left: 0.7em;
  color: var(--ink);
}
.hero-mark .blocs {
  font-family: var(--f-display);
  font-weight: 900;
  font-variation-settings: "opsz" 144, "SOFT" 0;
  font-size: clamp(96px, 22vw, 360px);
  letter-spacing: -0.04em;
  line-height: 0.85;
  margin-top: 0.05em;
  position: relative;
}
.hero-mark .blocs .char {
  display: inline-block;
  opacity: 1;
  transform: none;
  animation: blocsRise .9s cubic-bezier(.2,.7,.2,1) both;
}
@keyframes blocsRise {
  from { transform: translateY(120%); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-mark .blocs .char { animation: none; opacity: 1; transform: none; }
}

.hero-tag {
  position: absolute;
  bottom: 6%;
  left: 0;
  font-family: var(--f-light);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(16px, 1.6vw, 22px);
  color: var(--stone-2);
  max-width: 280px;
  line-height: 1.3;
}

.hero-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: end;
  gap: 24px;
}
.hero-bottom .col {
  display: flex; flex-direction: column; gap: 6px;
}
.hero-bottom .col.r { text-align: right; align-items: flex-end; }
.hero-bottom .col.c { text-align: center; align-items: center; }
.hero-tagline {
  font-family: var(--f-display);
  font-weight: 400;
  font-style: italic;
  font-variation-settings: "opsz" 36;
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.35;
  max-width: 30ch;
  color: var(--ink);
}
.scroll-cue {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--stone-2);
}
.scroll-cue .line {
  width: 28px; height: 1px; background: currentColor;
  animation: scrollLine 2.4s ease-in-out infinite;
  transform-origin: left;
}
@keyframes scrollLine {
  0%, 100% { transform: scaleX(1); }
  50% { transform: scaleX(0.3); }
}

@media (max-width: 600px) {
  /* keep the four-corner composition: left labels left, right labels right */
  .hero-top { grid-template-columns: 1fr auto; gap: 14px; margin-bottom: 28px; }
  .hero-top .mono { text-align: left; }
  .hero-meta { text-align: right; align-items: flex-end; }
  .hero-bottom { grid-template-columns: 1fr auto; align-items: end; gap: 18px; }
  .hero-bottom .col { text-align: left; align-items: flex-start; }
  .hero-bottom .col.c { display: none; }
  .hero-bottom .col.r { text-align: right; align-items: flex-end; }

  /* section headers: give the title full width so it wraps naturally */
  .section-head { flex-direction: column; align-items: flex-start; gap: 12px; margin-bottom: 40px; }
  .section-title { text-align: left; margin: 0; max-width: none; }
  .section-eyebrow { text-align: left; }

  /* email fits the screen */
  .contact-email { font-size: clamp(22px, 7vw, 40px); }
}

/* ─── SECTION SCAFFOLD ────────────────────────────────── */
.section {
  position: relative;
  padding: clamp(80px, 12vh, 160px) 0;
  border-top: 1px solid var(--line);
}
.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: clamp(40px, 6vh, 80px);
  gap: 24px;
}
.section-num {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--stone-2);
}
.section-title {
  font-family: var(--f-display);
  font-weight: 400;
  font-style: italic;
  font-variation-settings: "opsz" 36;
  font-size: clamp(28px, 3.2vw, 44px);
  letter-spacing: -0.02em;
  line-height: 1.05;
  flex: 1; min-width: 0;
  text-align: center;
  max-width: 24ch;
  margin: 0 auto;
  text-wrap: balance;
}
.section-eyebrow {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--stone-2);
  text-align: right;
}

/* ─── WORK INDEX (hover preview) ──────────────────────── */
.index-wrap { position: relative; }
.index-list { display: flex; flex-direction: column; }
.index-row {
  position: relative;
  display: grid;
  grid-template-columns: 80px 1fr auto auto;
  align-items: center;
  gap: 32px;
  padding: clamp(20px, 2.4vw, 30px) 0;
  border-top: 1px solid var(--line);
  cursor: none;
  overflow: hidden;
  transition: padding .4s ease;
}
.index-row:last-child { border-bottom: 1px solid var(--line); }
.index-row .ix-num {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--stone-2);
}
.index-row .ix-name {
  font-family: var(--f-display);
  font-weight: 400;
  font-style: italic;
  font-variation-settings: "opsz" 144;
  font-size: clamp(28px, 4.2vw, 64px);
  letter-spacing: -0.025em;
  line-height: 1;
  transition: transform .6s cubic-bezier(.2,.7,.2,1), color .4s ease, font-style .3s;
}
.index-row .ix-meta {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--stone-2);
  text-align: right;
  white-space: nowrap;
}
.index-row .ix-year {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--stone-2);
  white-space: nowrap;
}
.index-row:hover .ix-name {
  transform: translateX(20px);
  font-style: normal;
  font-weight: 900;
  letter-spacing: -0.035em;
}
.index-row:hover { padding-left: 8px; }

.index-preview {
  position: fixed;
  pointer-events: none;
  width: 360px;
  height: 460px;
  z-index: 50;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.96);
  transition: opacity .3s ease, transform .5s cubic-bezier(.2,.7,.2,1);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
}
.index-preview.active { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.index-preview .placeholder { width: 100%; height: 100%; }

/* ─── MEDIA WALL (CMS grid) ───────────────────────────── */
.media-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(20px, 2.4vw, 40px) clamp(16px, 1.6vw, 28px);
  grid-auto-flow: row dense;
  align-items: start;
}
.media-item {
  position: relative;
  margin: 0;
  min-width: 0;
}
.media-frame {
  position: relative;
  width: 100%;
  overflow: hidden;
}
.gal-cap {
  display: flex; justify-content: space-between;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--stone-2);
  margin-top: 12px;
  gap: 16px;
}
.gal-cap .num { color: var(--ink); }

/* Size presets — span + aspect ratio */
.media-item.size-s  { grid-column: span 4; }
.media-item.size-s  .media-frame  { aspect-ratio: 4 / 5; }
.media-item.size-sq { grid-column: span 4; }
.media-item.size-sq .media-frame  { aspect-ratio: 1 / 1; }
.media-item.size-m  { grid-column: span 6; }
.media-item.size-m  .media-frame  { aspect-ratio: 4 / 3; }
.media-item.size-l  { grid-column: span 6; }
.media-item.size-l  .media-frame  { aspect-ratio: 3 / 4; }
.media-item.size-w  { grid-column: span 12; }
.media-item.size-w  .media-frame  { aspect-ratio: 21 / 9; }

@media (max-width: 800px) {
  .media-item { grid-column: 1 / -1 !important; }
  .media-item.size-s .media-frame,
  .media-item.size-sq .media-frame { aspect-ratio: 4 / 3; }
}

/* Manage chrome */
.manage-btn {
  appearance: none;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 9px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  cursor: none;
  white-space: nowrap;
  transition: background .2s ease, color .2s ease;
}
.manage-btn:hover, .manage-btn.active { background: var(--ink); color: var(--bone); }

.media-grid.managing .media-item { outline: 1px dashed var(--line-strong); outline-offset: 6px; }

.tile-shield {
  position: absolute; inset: 0;
  z-index: 5;
  cursor: grab;
  background: color-mix(in srgb, var(--bone) 18%, transparent);
  display: flex; flex-direction: column; justify-content: space-between;
}
.tile-shield:active { cursor: grabbing; }
.tile-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px;
  gap: 8px;
}
.tile-bar .grip {
  font-size: 16px; line-height: 1;
  color: var(--bone);
  background: rgba(10,10,10,0.7);
  width: 30px; height: 30px;
  display: grid; place-items: center;
  border-radius: 7px;
  cursor: grab;
}
.tile-reorder { display: flex; align-items: center; gap: 6px; }
.tile-reorder .mv {
  appearance: none; border: 0; cursor: none;
  font-family: var(--f-mono); font-size: 14px; line-height: 1;
  color: var(--bone); background: rgba(10,10,10,0.7);
  width: 30px; height: 30px; border-radius: 7px;
  display: grid; place-items: center;
  backdrop-filter: blur(6px);
  transition: background .2s ease, opacity .2s ease;
}
.tile-reorder .mv:hover { background: rgba(10,10,10,0.92); }
.tile-reorder .mv:disabled { opacity: 0.3; }
.tile-actions { display: flex; gap: 6px; }
.tile-actions button {
  appearance: none; border: 0; cursor: none;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 7px 9px;
  border-radius: 7px;
  background: rgba(10,10,10,0.7);
  color: var(--bone);
  backdrop-filter: blur(6px);
}
.tile-actions button:hover { background: rgba(10,10,10,0.92); }
.tile-actions button.del:hover { background: var(--accent); }
.tile-cap-input {
  margin: 10px;
  border: 0; outline: 0;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  padding: 8px 10px;
  border-radius: 7px;
  background: rgba(255,255,255,0.9);
  color: #0a0a0a;
  cursor: text;
}

.media-toolbar {
  display: flex; align-items: center; gap: 12px;
  flex-wrap: wrap;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.media-toolbar .mt-label {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--stone-2);
}
.media-toolbar button {
  appearance: none; cursor: none;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 9px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  transition: background .2s ease, color .2s ease;
}
.media-toolbar button:hover { background: var(--ink); color: var(--bone); }
.media-toolbar .mt-hint {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--stone);
  margin-left: auto;
}

/* ─── PLACEHOLDER (striped) ───────────────────────────── */
.placeholder {
  position: relative;
  background:
    repeating-linear-gradient(135deg,
      rgba(10,10,10,0.06) 0,
      rgba(10,10,10,0.06) 1px,
      transparent 1px,
      transparent 14px),
    linear-gradient(180deg, var(--paper), color-mix(in srgb, var(--paper) 84%, var(--stone)));
  display: grid;
  place-items: center;
  color: var(--stone-2);
  overflow: hidden;
}
body[data-mode="cinematic"] .placeholder {
  background:
    repeating-linear-gradient(135deg,
      rgba(244,241,236,0.06) 0,
      rgba(244,241,236,0.06) 1px,
      transparent 1px,
      transparent 14px),
    linear-gradient(180deg, #1f1c18, #15130f);
}
.placeholder .label {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-align: center;
  padding: 14px 18px;
  background: var(--bone);
  border: 1px solid var(--line);
  color: var(--stone-2);
}

image-slot {
  display: block; width: 100%; height: 100%;
}

/* ─── VIDEO TILE ──────────────────────────────────────── */
.vid-ph { position: relative; }
.vid-ph video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  cursor: none;
}
.vid-empty {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 16px;
}
.vid-empty .play-btn {
  width: 64px; height: 64px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: grid; place-items: center;
  color: var(--ink);
  background: var(--bone);
  transition: transform .4s cubic-bezier(.2,.7,.2,1), background .3s, color .3s;
}
.vid-ph:hover .vid-empty .play-btn {
  transform: scale(1.08);
  background: var(--ink); color: var(--bone);
}
.vid-empty .play-btn svg { margin-left: 3px; }
.vid-empty .vid-hint {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--stone-2);
}
.vid-chrome {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bone);
  background: linear-gradient(to top, rgba(0,0,0,0.55), transparent);
  pointer-events: none;
}
.vid-chrome .vid-label { display: inline-flex; align-items: center; gap: 8px; }
.vid-chrome .rec {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  animation: recBlink 1.6s ease-in-out infinite;
}
@keyframes recBlink { 0%,100% { opacity: 1; } 50% { opacity: 0.25; } }
.vid-chrome .vid-tc { font-variant-numeric: tabular-nums; }
/* empty-state chrome reads on light bg */
.vid-ph .vid-empty ~ .vid-chrome { color: var(--stone-2); background: none; }
.vid-ph .vid-empty ~ .vid-chrome .vid-label { color: var(--stone-2); }

/* YouTube backdrop on a tile (cover-fit via JS) */
.mw-yt { position: absolute; inset: 0; overflow: hidden; background: #000; }
.mw-yt iframe {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  border: 0; pointer-events: none;
}
.mw-yt-clear {
  position: absolute; top: 12px; right: 12px; z-index: 3;
  width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(10,10,10,0.55); color: #fff;
  border: 1px solid rgba(255,255,255,0.4);
  font-size: 12px; cursor: none; pointer-events: auto;
  opacity: 0; transition: opacity .2s ease;
}
.vid-ph:hover .mw-yt-clear { opacity: 1; }

/* "or paste a YouTube link" field in the empty video tile */
.vid-link {
  display: flex; align-items: stretch; gap: 8px;
  width: min(82%, 320px); margin-top: 4px;
}
.vid-link input {
  flex: 1; min-width: 0;
  background: color-mix(in srgb, var(--ink) 6%, transparent);
  color: var(--ink);
  border: 1px solid var(--line-strong); border-radius: 999px;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.04em;
  padding: 7px 13px; outline: none;
}
.vid-link input::placeholder { color: var(--stone); }
.vid-link button {
  appearance: none; cursor: none; white-space: nowrap;
  background: var(--ink); color: var(--bone);
  border: 0; border-radius: 999px;
  font-family: var(--f-mono); font-size: 10px;
  letter-spacing: 0.14em; text-transform: uppercase; padding: 7px 14px;
}

/* ─── MANIFESTO ──────────────────────────────────────── */
.manifesto {
  padding: clamp(120px, 18vh, 220px) 0;
  border-top: 1px solid var(--line);
}
.manifesto-inner {
  display: flex; flex-direction: column;
  gap: clamp(8px, 1vh, 16px);
  font-family: var(--f-display);
  font-weight: 400;
  font-variation-settings: "opsz" 144;
  font-size: clamp(36px, 5.6vw, 88px);
  letter-spacing: -0.03em;
  line-height: 1;
}
.manifesto-line {
  opacity: 0.15;
  transition: opacity .8s ease, transform .8s ease;
  transform: translateY(20px);
}
.manifesto-line.in { opacity: 1; transform: translateY(0); }
.manifesto-line .em {
  font-style: italic;
  font-weight: 400;
  font-variation-settings: "opsz" 36;
}
.manifesto-line .heavy {
  font-weight: 900;
  font-variation-settings: "opsz" 144, "SOFT" 0;
}
.manifesto-line .accent { color: var(--accent); }
.manifesto-foot {
  margin-top: clamp(60px, 8vh, 100px);
  display: flex; justify-content: space-between;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--stone-2);
}

/* ─── CAPABILITIES ───────────────────────────────────── */
.caps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.cap {
  padding: clamp(40px, 5vh, 70px) clamp(20px, 2.4vw, 36px) clamp(40px, 5vh, 70px) 0;
  border-right: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 22px;
}
.cap:last-child { border-right: 0; padding-right: 0; }
.cap-num {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--stone-2);
}
.cap-name {
  font-family: var(--f-display);
  font-weight: 400;
  font-style: italic;
  font-variation-settings: "opsz" 144;
  font-size: clamp(26px, 2.4vw, 38px);
  letter-spacing: -0.025em;
  line-height: 1;
}
.cap-desc {
  font-family: var(--f-body);
  font-size: 14px;
  line-height: 1.55;
  color: var(--stone-2);
  margin-top: auto;
  max-width: 30ch;
}
.cap-list {
  display: flex; flex-direction: column; gap: 4px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
}
.cap-list .item { display: flex; gap: 8px; align-items: center; }
.cap-list .item::before { content: "·"; color: var(--accent); }

@media (max-width: 900px) {
  .caps { grid-template-columns: 1fr 1fr; }
  .cap { border-right: 0; border-bottom: 1px solid var(--line); padding-right: 20px; }
  .cap:nth-child(odd) { border-right: 1px solid var(--line); }
  .cap:nth-last-child(-n+2) { border-bottom: 0; }
}

/* ─── RECOGNITION ────────────────────────────────────── */
.rec-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 100px);
}
.rec-col h4 {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--stone-2);
  margin: 0 0 28px;
  font-weight: 500;
}
.rec-clients, .rec-awards {
  display: flex; flex-direction: column;
}
.rec-clients .row, .rec-awards .row {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  gap: 24px;
}
.rec-clients .row:last-child, .rec-awards .row:last-child { border-bottom: 1px solid var(--line); }
.rec-clients .name, .rec-awards .name {
  font-family: var(--f-display);
  font-weight: 400;
  font-style: italic;
  font-variation-settings: "opsz" 36;
  font-size: clamp(20px, 1.6vw, 26px);
  letter-spacing: -0.01em;
}
.rec-clients .where, .rec-awards .where {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--stone-2);
  text-align: right;
  white-space: nowrap;
}

@media (max-width: 800px) { .rec-grid { grid-template-columns: 1fr; } }

/* Recognition — statement column */
.rec-statement { padding-top: 18px; max-width: 40ch; }
.rec-lead {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(26px, 2.8vw, 36px);
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin: 0 0 20px;
  color: var(--ink);
  text-wrap: balance;
}
.rec-statement p {
  font-family: var(--f-body);
  font-size: 15px;
  line-height: 1.65;
  color: var(--stone-2);
  margin: 0;
  max-width: 36ch;
}
.rec-foot {
  margin-top: 26px;
  color: var(--ink);
  display: inline-flex; align-items: center; gap: 10px;
}
.rec-foot::before {
  content: ""; width: 22px; height: 1px; background: currentColor;
}

/* ─── MARQUEE (clients ribbon) ───────────────────────── */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 22px 0;
  margin-top: clamp(60px, 8vh, 100px);
}
.marquee-track {
  display: flex; gap: 56px;
  white-space: nowrap;
  animation: marquee 60s linear infinite;
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 400;
  font-variation-settings: "opsz" 36;
  font-size: clamp(20px, 2.2vw, 32px);
  letter-spacing: -0.01em;
}
.marquee-track .dot {
  font-style: normal;
  color: var(--accent);
  font-weight: 900;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ─── CONTACT ────────────────────────────────────────── */
.contact {
  position: relative;
  padding: clamp(80px, 12vh, 160px) 0 clamp(60px, 8vh, 100px);
  border-top: 1px solid var(--line);
}
.contact-eyebrow {
  font-family: var(--f-light);
  font-weight: 300;
  letter-spacing: 0.6em;
  text-transform: uppercase;
  font-size: 11px;
  padding-left: 0.6em;
  color: var(--stone-2);
  margin-bottom: 24px;
}
.contact-email {
  font-family: var(--f-display);
  font-weight: 900;
  font-variation-settings: "opsz" 144;
  font-size: clamp(40px, 9vw, 160px);
  letter-spacing: -0.04em;
  line-height: 0.9;
  display: inline-block;
  position: relative;
}
.contact-email .at {
  font-style: italic;
  font-weight: 400;
  font-variation-settings: "opsz" 36;
  color: var(--accent);
}
.contact-email::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0.06em; height: 2px;
  background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform .6s cubic-bezier(.2,.7,.2,1);
}
.contact-email:hover::after { transform: scaleX(1); }

.contact-grid {
  margin-top: clamp(60px, 8vh, 100px);
  display: grid;
  grid-template-columns: 1.4fr 2fr 1fr;
  gap: clamp(24px, 3vw, 60px);
  align-items: start;
  border-top: 1px solid var(--line);
  padding-top: clamp(40px, 5vh, 60px);
}
.contact-grid h5 {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--stone-2);
  margin: 0 0 20px;
  font-weight: 500;
}
.contact-grid p, .contact-grid li, .contact-grid a {
  font-family: var(--f-body);
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink);
  margin: 0;
}
.contact-grid ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 4px; }
.contact-grid .addr-eyebrow {
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 400;
  font-variation-settings: "opsz" 36;
  font-size: 22px;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.newsletter {
  display: flex; gap: 0;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 8px;
  align-items: baseline;
}
.newsletter input {
  flex: 1; min-width: 0;
  border: 0; outline: 0; background: transparent;
  font: inherit;
  font-family: var(--f-body);
  font-size: 14px;
  color: var(--ink);
  padding: 8px 0;
}
.newsletter input::placeholder { color: var(--stone); }
.newsletter button {
  appearance: none; border: 0; background: transparent;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink);
  cursor: none;
  padding: 8px 0;
}

/* Contact form */
.contact-form { display: flex; flex-direction: column; gap: 18px; }
.cf-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2vw, 28px); }
.contact-form .field { border-bottom: 1px solid var(--line-strong); }
.contact-form input,
.contact-form textarea {
  width: 100%; box-sizing: border-box;
  border: 0; outline: 0; background: transparent;
  font-family: var(--f-body);
  font-size: 15px; line-height: 1.5;
  color: var(--ink);
  padding: 8px 0; resize: none;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: var(--stone); }
.cf-send {
  align-self: flex-start;
  appearance: none; border: 0; background: transparent;
  font-family: var(--f-mono);
  font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--ink); cursor: none; padding: 6px 0; margin-top: 4px;
  position: relative;
}
.cf-send::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform .5s cubic-bezier(.2,.7,.2,1);
}
.cf-send:hover::after { transform: scaleX(1); }
.contact-sent { display: flex; gap: 14px; align-items: flex-start; padding-top: 4px; }
.contact-sent-mark {
  font-family: var(--f-mono); font-size: 13px;
  width: 26px; height: 26px; flex: 0 0 26px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line-strong); border-radius: 50%; color: var(--accent);
}
.contact-sent p { max-width: 34ch; }

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr 1fr; }
  .contact-form-col { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .contact-grid { grid-template-columns: 1fr; }
}

/* ─── FOOTER ─────────────────────────────────────────── */
.footer {
  padding: 30px var(--gutter) 24px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--stone-2);
  border-top: 1px solid var(--line);
}
.footer .c { text-align: center; }
.footer .r { text-align: right; }
.footer .clock { font-variant-numeric: tabular-nums; color: var(--ink); }

/* ─── CASE STUDY OVERLAY ─────────────────────────────── */
.cs-backdrop {
  position: fixed; inset: 0;
  z-index: 500;
  background: var(--bone);
  overflow-y: auto;
  opacity: 0; pointer-events: none;
  transition: opacity .5s ease;
}
.cs-backdrop.open { opacity: 1; pointer-events: auto; }
.cs-close {
  position: fixed; top: 18px; right: var(--gutter);
  z-index: 510;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  background: var(--ink); color: var(--bone);
  border: 0;
  padding: 10px 16px;
  border-radius: 999px;
  cursor: none;
  display: inline-flex; align-items: center; gap: 8px;
}
.cs-hero {
  position: relative;
  height: 100vh;
  margin-bottom: clamp(60px, 8vh, 100px);
}
.cs-hero .placeholder { width: 100%; height: 100%; }
.cs-hero-meta {
  position: absolute;
  bottom: 40px; left: var(--gutter); right: var(--gutter);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 24px;
  color: var(--bone);
  mix-blend-mode: difference;
}
.cs-title {
  font-family: var(--f-display);
  font-weight: 900;
  font-variation-settings: "opsz" 144;
  font-size: clamp(48px, 8vw, 140px);
  letter-spacing: -0.04em;
  line-height: 0.9;
  margin: 0;
}
.cs-title .it {
  font-weight: 400; font-style: italic;
  font-variation-settings: "opsz" 36;
}
.cs-meta-block {
  display: flex; flex-direction: column; gap: 4px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: right;
}
.cs-section {
  padding: 0 var(--gutter);
  max-width: var(--col-max);
  margin: 0 auto clamp(60px, 8vh, 100px);
}
.cs-intro {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: clamp(40px, 6vw, 100px);
  margin-bottom: clamp(80px, 12vh, 140px);
}
.cs-intro h3 {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--stone-2);
  margin: 0 0 18px;
  font-weight: 500;
}
.cs-intro p {
  font-family: var(--f-display);
  font-weight: 400;
  font-variation-settings: "opsz" 36;
  font-size: clamp(20px, 1.8vw, 28px);
  line-height: 1.35;
  letter-spacing: -0.005em;
  margin: 0 0 20px;
}
.cs-intro .small p {
  font-family: var(--f-body);
  font-size: 14px;
  line-height: 1.65;
  letter-spacing: 0;
  color: var(--stone-2);
}
.cs-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(16px, 2vw, 28px);
}
.cs-grid .ph {
  aspect-ratio: 4/3;
}
.cs-grid .ph.tall { aspect-ratio: 3/4; }
.cs-grid .ph.wide { aspect-ratio: 16/9; }
.cs-grid .span-6 { grid-column: span 6; }
.cs-grid .span-12 { grid-column: 1 / -1; }
.cs-grid .span-7 { grid-column: span 7; }
.cs-grid .span-5 { grid-column: span 5; }

@media (max-width: 800px) {
  .cs-intro { grid-template-columns: 1fr; }
  .cs-grid .span-6, .cs-grid .span-7, .cs-grid .span-5 { grid-column: 1 / -1; }
}

/* ─── Reveal animations ──────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1.1s cubic-bezier(.2,.7,.2,1), transform 1.1s cubic-bezier(.2,.7,.2,1);
}
.reveal.in { opacity: 1; transform: translateY(0); }

.clip-reveal { clip-path: inset(0 100% 0 0); transition: clip-path 1.4s cubic-bezier(.6,.05,.1,1); }
.clip-reveal.in { clip-path: inset(0 0 0 0); }
