/* ============================================================
   MONTELEONE — design system
   Palette: warm near-black / bone paper / sage / mist blue
   Type: Archivo (variable, expanded display) + Fraunces italic
   ============================================================ */

:root {
  --ink: #0d0e0b;
  --ink-2: #131510;
  --ink-3: #1b1e16;
  --paper: #eae4d6;
  --paper-60: rgba(234, 228, 214, 0.62);
  --paper-38: rgba(234, 228, 214, 0.38);
  --sage: #a9b78f;
  --sage-deep: #4a5540;
  --mist: #9aaebb;
  --line: rgba(234, 228, 214, 0.14);
  --line-soft: rgba(234, 228, 214, 0.08);

  --font-d: "Archivo", "Helvetica Neue", sans-serif;
  --font-s: "Fraunces", Georgia, serif;
  --font-m: "Space Mono", ui-monospace, monospace;

  --pad: clamp(20px, 4vw, 64px);
  --nav-h: 76px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
}

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

html { scroll-behavior: smooth; }
html.has-js { scroll-behavior: auto; }

body {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-d);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

.skip-link {
  position: fixed; top: -60px; left: var(--pad); z-index: 300;
  background: var(--paper); color: var(--ink);
  padding: 10px 18px; border-radius: 999px; font-size: 13px; font-weight: 600;
  transition: top 0.25s var(--ease);
}
.skip-link:focus { top: 14px; }

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

/* ---------- grain + vignette ---------- */
.grain {
  position: fixed; inset: -100px; z-index: 120; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 300 300' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.05;
  animation: grain 0.9s steps(4) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-32px, 18px); }
  50% { transform: translate(20px, -28px); }
  75% { transform: translate(-14px, -12px); }
  100% { transform: translate(26px, 22px); }
}

/* ---------- preloader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 250;
  background: var(--ink);
  display: flex; align-items: center; justify-content: center;
  transition: clip-path 0.9s var(--ease-io);
  clip-path: inset(0 0 0 0);
}
.loader.is-done { clip-path: inset(0 0 100% 0); }
.loader__word {
  display: flex; overflow: hidden;
  font-family: var(--font-d);
  font-variation-settings: "wdth" 122;
  font-weight: 800; text-transform: uppercase;
  font-size: clamp(28px, 6vw, 72px);
  letter-spacing: -0.01em;
}
.loader__word span {
  display: inline-block;
  transform: translateY(110%);
  animation: loader-up 0.7s var(--ease) forwards;
}
@keyframes loader-up { to { transform: translateY(0); } }
.loader__count {
  position: absolute; bottom: 28px; right: var(--pad);
  font-family: var(--font-m); font-size: 12px; color: var(--paper-60);
}
html.is-loading { overflow: hidden; }

/* ---------- page transition curtain ---------- */
.curtain {
  position: fixed; inset: 0; z-index: 240; pointer-events: none;
  background: var(--ink-2);
  transform: scaleY(0); transform-origin: top;
}
.curtain.is-in { animation: curtain-in 0.5s var(--ease-io) forwards; }
.curtain.is-out { transform: scaleY(1); transform-origin: bottom; animation: curtain-out 0.6s var(--ease-io) 0.05s forwards; }
@keyframes curtain-in { to { transform: scaleY(1); } }
@keyframes curtain-out { to { transform: scaleY(0); } }

/* ---------- cursor ---------- */
.cursor { display: none; }
@media (pointer: fine) {
  .cursor {
    display: flex; align-items: center; justify-content: center;
    position: fixed; top: 0; left: 0; z-index: 210; pointer-events: none;
    width: 12px; height: 12px; border-radius: 999px;
    background: var(--paper);
    transform: translate(-50%, -50%);
    transition: width 0.3s var(--ease), height 0.3s var(--ease), background 0.3s var(--ease), opacity 0.3s;
    mix-blend-mode: difference;
  }
  .cursor__label {
    font-family: var(--font-m); font-size: 11px; letter-spacing: 0.08em;
    color: var(--ink); opacity: 0; transition: opacity 0.2s; white-space: nowrap;
  }
  .cursor.is-big { width: 84px; height: 84px; mix-blend-mode: normal; background: var(--sage); }
  .cursor.is-big .cursor__label { opacity: 1; }
  .cursor.is-hidden { opacity: 0; }
}

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  height: var(--nav-h); padding: 0 var(--pad);
  transition: transform 0.5s var(--ease), background 0.4s;
}
.nav.is-solid { background: color-mix(in srgb, var(--ink) 82%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.nav.is-hidden { transform: translateY(-100%); }
.nav__brand {
  font-family: var(--font-d); font-variation-settings: "wdth" 122;
  font-weight: 800; text-transform: uppercase; font-size: 17px; letter-spacing: 0.02em;
  display: flex; align-items: baseline; gap: 10px;
}
.nav__brand em { font-family: var(--font-s); font-style: italic; font-weight: 400; text-transform: none; font-size: 13px; color: var(--paper-60); letter-spacing: 0; }
.nav__links { display: flex; gap: 34px; list-style: none; }
.nav__links a {
  font-size: 13px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--paper-60); transition: color 0.3s; position: relative; padding: 6px 0;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%;
  background: var(--sage); transform: scaleX(0); transform-origin: right;
  transition: transform 0.4s var(--ease);
}
.nav__links a:hover, .nav__links a[aria-current="page"] { color: var(--paper); }
.nav__links a:hover::after, .nav__links a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav__cta { display: inline-flex; }
.nav__burger {
  display: none; flex-direction: column; gap: 5px; padding: 10px; z-index: 231;
}
.nav__burger span { display: block; width: 26px; height: 2px; background: var(--paper); transition: transform 0.4s var(--ease), opacity 0.3s; }

/* menu overlay (mobile) */
.menu {
  position: fixed; inset: 0; z-index: 230; background: var(--ink-2);
  display: flex; flex-direction: column; justify-content: center; padding: 0 var(--pad);
  clip-path: inset(0 0 100% 0); transition: clip-path 0.6s var(--ease-io);
  visibility: hidden;
}
html.menu-open .menu { clip-path: inset(0 0 0 0); visibility: visible; }
html.menu-open { overflow: hidden; }
html.menu-open .nav__burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
html.menu-open .nav__burger span:nth-child(2) { opacity: 0; }
html.menu-open .nav__burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.menu__links { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.menu__links a {
  font-family: var(--font-d); font-variation-settings: "wdth" 118; font-weight: 800;
  text-transform: uppercase; font-size: clamp(40px, 10vw, 84px); line-height: 1.04;
  display: inline-block; transform: translateY(40px); opacity: 0;
  transition: transform 0.6s var(--ease), opacity 0.6s, color 0.3s;
}
.menu__links a:hover { color: var(--sage); }
html.menu-open .menu__links a { transform: translateY(0); opacity: 1; }
html.menu-open .menu__links li:nth-child(2) a { transition-delay: 0.06s; }
html.menu-open .menu__links li:nth-child(3) a { transition-delay: 0.12s; }
html.menu-open .menu__links li:nth-child(4) a { transition-delay: 0.18s; }
html.menu-open .menu__links li:nth-child(5) a { transition-delay: 0.24s; }
.menu__meta { margin-top: 42px; font-family: var(--font-m); font-size: 12px; color: var(--paper-60); display: flex; flex-direction: column; gap: 6px; opacity: 0; transition: opacity 0.5s 0.3s; }
html.menu-open .menu__meta { opacity: 1; }

@media (max-width: 900px) {
  .nav__links, .nav .nav__cta { display: none !important; }
  .nav__burger { display: flex; }
  .nav__brand em { display: none; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 30px; border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em;
  position: relative; overflow: hidden; isolation: isolate;
  transition: color 0.4s var(--ease), border-color 0.4s;
  white-space: nowrap;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--paper); border-radius: 999px;
  transform: translateY(101%); transition: transform 0.45s var(--ease);
}
.btn:hover { color: var(--ink); border-color: var(--paper); }
.btn:hover::before { transform: translateY(0); }
.btn--solid { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn--solid::before { background: var(--sage); }
.btn--solid:hover { border-color: var(--sage); }
.btn--sm { padding: 11px 22px; font-size: 12px; }
.btn .arr { transition: transform 0.35s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }

/* ---------- inner-page hero (clears the fixed nav) ---------- */
.page-hero { padding-top: calc(var(--nav-h) + clamp(48px, 8vw, 120px)); padding-bottom: clamp(44px, 6vw, 80px); }

/* arrow glyph — hover translate in any link context */
.arr { display: inline-block; transition: transform 0.35s var(--ease); }
a:hover > .arr, a:hover .case-meta__v .arr, .case-meta__v a:hover .arr { transform: translateX(4px); }

/* ---------- typography helpers ---------- */
.display {
  font-family: var(--font-d);
  font-variation-settings: "wdth" 122;
  font-weight: 800;
  text-transform: uppercase;
  line-height: 0.94;
  letter-spacing: -0.01em;
}
.display em, .serif-note {
  font-family: var(--font-s); font-style: italic; font-weight: 350;
  text-transform: none; letter-spacing: 0;
}
.display em { font-size: 0.82em; color: var(--sage); }
.h-xl { font-size: clamp(46px, 9.5vw, 150px); }
.h-lg { font-size: clamp(38px, 6.5vw, 96px); }
.h-md { font-size: clamp(28px, 4.2vw, 60px); }
.h-sm { font-size: clamp(21px, 2.6vw, 34px); }

.eyebrow {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--font-m); font-size: 12px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--sage);
  margin-bottom: clamp(22px, 3vw, 40px);
}
.eyebrow::after { content: ""; height: 1px; flex: 0 0 56px; background: var(--line); }
.eyebrow--center { justify-content: center; }
.eyebrow--center::before { content: ""; height: 1px; flex: 0 0 56px; background: var(--line); }

.lede { font-size: clamp(17px, 1.6vw, 21px); line-height: 1.65; color: var(--paper-60); max-width: 620px; }
.lede strong { color: var(--paper); font-weight: 500; }

.prose { max-width: 640px; color: var(--paper-60); display: flex; flex-direction: column; gap: 1.2em; font-size: 16.5px; line-height: 1.75; }
.prose strong { color: var(--paper); font-weight: 500; }
.prose .drop { font-family: var(--font-s); font-style: italic; font-size: 1.35em; line-height: 1.5; color: var(--paper); }

/* ---------- layout ---------- */
.section { padding: clamp(80px, 11vw, 170px) var(--pad); position: relative; }
.section--tight { padding-top: clamp(50px, 7vw, 100px); padding-bottom: clamp(50px, 7vw, 100px); }
.section--flush { padding-left: 0; padding-right: 0; }
.container { max-width: 1520px; margin: 0 auto; }
.rule-top { border-top: 1px solid var(--line); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 90px); align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

/* ---------- media frames ---------- */
.frame { position: relative; overflow: hidden; background: var(--ink-3); }
.frame img { width: 100%; height: 100%; object-fit: cover; }
.frame--r43 { aspect-ratio: 4 / 3; }
.frame--r45 { aspect-ratio: 4 / 5; }
.frame--r169 { aspect-ratio: 16 / 9; }
.frame--r32 { aspect-ratio: 3 / 2; }
/* film grade overlay unifies stock into the brand palette */
.frame::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(160deg, rgba(74, 85, 64, 0.16), rgba(13, 14, 11, 0) 45%),
    linear-gradient(20deg, rgba(13, 14, 11, 0.42), rgba(13, 14, 11, 0) 55%);
  mix-blend-mode: multiply;
}
.frame > img { transition: transform 1.1s var(--ease); }
a:hover .frame > img, .frame.is-hover > img { transform: scale(1.045); }

/* reveal mask for images */
.mask { clip-path: inset(0 0 100% 0); transition: clip-path 1.1s var(--ease-io); }
.mask.is-in { clip-path: inset(0 0 0% 0); }
html:not(.has-js) .mask { clip-path: none; }

/* ---------- generic reveals ---------- */
[data-reveal] { opacity: 0; transform: translateY(34px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: var(--d, 0s); }
[data-reveal].is-in { opacity: 1; transform: none; }
html:not(.has-js) [data-reveal] { opacity: 1; transform: none; }

/* split-text word masks */
[data-split] .w { display: inline-block; overflow: hidden; vertical-align: top; margin-bottom: -0.12em; padding-bottom: 0.12em; }
[data-split] .wi { display: inline-block; transform: translateY(115%); transition: transform 0.85s var(--ease); }
[data-split].is-in .wi { transform: translateY(0); }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; padding: 0 var(--pad) clamp(30px, 4vw, 56px); overflow: hidden; }
.hero__media { position: absolute; inset: 0; z-index: -1; }
.hero__media img, .hero__media video { width: 100%; height: 118%; object-fit: cover; filter: sepia(0.32) saturate(0.72) contrast(1.04); }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(to top, var(--ink) 4%, rgba(13, 14, 11, 0.55) 34%, rgba(13, 14, 11, 0.25) 62%, rgba(13, 14, 11, 0.55) 100%);
}
/* fitted so the longest row (MONTELEONE) never overflows any viewport */
.hero__title { font-size: clamp(34px, calc((100vw - 260px) / 9.2), 170px); }
.hero__title .row { display: block; }
.hero__title .row--indent { padding-left: clamp(24px, 6vw, 130px); }
@media (max-width: 900px) {
  .hero__title { font-size: calc((100vw - 62px) / 9.4); }
  .hero__title .row--indent { padding-left: 16px; }
}
.hero__sub {
  display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: flex-end; justify-content: space-between;
  margin-top: clamp(24px, 3vw, 44px); border-top: 1px solid var(--line); padding-top: clamp(20px, 2.6vw, 34px);
}
.hero__role { font-family: var(--font-m); font-size: clamp(12px, 1.1vw, 14px); letter-spacing: 0.14em; text-transform: uppercase; color: var(--paper-60); line-height: 2; }
.hero__role b { color: var(--sage); font-weight: 400; }
.hero__value { font-family: var(--font-s); font-style: italic; font-weight: 350; font-size: clamp(18px, 1.9vw, 26px); color: var(--paper); max-width: 480px; line-height: 1.45; }
.hero__ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__scroll {
  position: absolute; right: var(--pad); bottom: clamp(30px, 4vw, 56px);
  font-family: var(--font-m); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--paper-38);
  writing-mode: vertical-rl; display: flex; align-items: center; gap: 12px;
}
.hero__scroll::after { content: ""; width: 1px; height: 54px; background: var(--line); animation: drip 2.2s var(--ease-io) infinite; }
@keyframes drip { 0% { transform: scaleY(0); transform-origin: top; } 45% { transform: scaleY(1); transform-origin: top; } 55% { transform: scaleY(1); transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
@media (max-width: 900px) { .hero__scroll { display: none; } }

/* ---------- marquee ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding: clamp(14px, 1.6vw, 22px) 0; position: relative; }
.marquee__track { display: flex; gap: 0; width: max-content; will-change: transform; }
.marquee__item {
  display: flex; align-items: center; gap: clamp(22px, 3vw, 44px); padding-right: clamp(22px, 3vw, 44px);
  font-family: var(--font-d); font-variation-settings: "wdth" 118; font-weight: 700;
  text-transform: uppercase; font-size: clamp(16px, 2vw, 26px); letter-spacing: 0.03em;
  color: var(--paper-60); white-space: nowrap;
}
.marquee__item .dot { width: 7px; height: 7px; border-radius: 99px; background: var(--sage); flex: none; }
.marquee--big .marquee__item { font-size: clamp(40px, 7vw, 110px); color: var(--paper); font-variation-settings: "wdth" 122; font-weight: 800; }
.marquee--ghost .marquee__item { -webkit-text-stroke: 1px var(--paper-38); color: transparent; }

/* ---------- preview notice (remove at launch — see main.js PREVIEW_NOTICE) ---------- */
.preview-note {
  position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%);
  z-index: 150; display: flex; align-items: center; gap: 10px;
  padding: 9px 18px; border-radius: 999px;
  background: color-mix(in srgb, var(--ink-2) 88%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  font-family: var(--font-m); font-size: 11px; letter-spacing: 0.06em;
  color: var(--paper-60); text-transform: uppercase;
  transition: opacity 0.4s var(--ease);
}
.preview-note b { color: var(--sage); font-weight: 400; }
.preview-note.is-dim { opacity: 0; pointer-events: none; }
@media (max-width: 700px) { .preview-note { font-size: 10px; padding: 8px 14px; } }

/* ---------- album cover treatments ---------- */
/* specificity must beat `.frame img { width:100%; height:100% }` — otherwise
   the chip inflates to fill the whole photo frame */
.frame img.cover-chip, img.cover-chip {
  position: absolute; left: 14px; bottom: 14px; z-index: 2;
  width: clamp(64px, 22%, 96px); height: auto; aspect-ratio: 1;
  border: 1px solid rgba(234, 228, 214, 0.28);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
  object-fit: cover;
  transition: transform 0.45s var(--ease);
}
a:hover img.cover-chip { transform: translateY(-4px) rotate(-1.5deg); }
.track__cover { width: 52px; aspect-ratio: 1; object-fit: cover; border: 1px solid var(--line-soft); align-self: center; }
.case-cover { width: 92px; aspect-ratio: 1; object-fit: cover; border: 1px solid var(--line); margin-bottom: 12px; display: block; }
.marquee--covers { border-block: 1px solid var(--line); padding: clamp(18px, 2.2vw, 30px) 0; }
.marquee--covers .marquee__item { gap: clamp(14px, 1.8vw, 26px); padding-right: clamp(14px, 1.8vw, 26px); }
.marquee--covers img {
  width: clamp(84px, 9vw, 128px); aspect-ratio: 1; object-fit: cover;
  border: 1px solid var(--line-soft); filter: saturate(0.9);
}

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); }
.stats__cell { padding: clamp(26px, 3vw, 48px) clamp(18px, 2.4vw, 40px); border-left: 1px solid var(--line); }
.stats__cell:first-child { border-left: 0; }
.stats__num { font-family: var(--font-d); font-variation-settings: "wdth" 120; font-weight: 800; font-size: clamp(38px, 5.6vw, 84px); line-height: 1; }
.stats__num sup { font-size: 0.45em; color: var(--sage); font-weight: 700; }
.stats__label { margin-top: 10px; font-family: var(--font-m); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--paper-60); }
@media (max-width: 760px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stats__cell:nth-child(3) { border-left: 0; }
  .stats__cell { border-top: 1px solid var(--line); }
  .stats__cell:nth-child(-n+2) { border-top: 0; }
}

/* ---------- horizontal work rail ---------- */
.rail-zone { position: relative; }
.rail-pin { position: sticky; top: 0; height: 100svh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.rail-head { padding: 0 var(--pad); margin-bottom: clamp(24px, 3vw, 44px); display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.rail { display: flex; gap: clamp(18px, 2.4vw, 36px); padding: 0 var(--pad); width: max-content; will-change: transform; }
.rail-card { width: clamp(250px, 30vw, 430px); flex: none; }
.rail-card__frame { position: relative; }
.rail-card__idx { position: absolute; top: 14px; left: 16px; z-index: 2; font-family: var(--font-m); font-size: 11px; letter-spacing: 0.14em; color: var(--paper); opacity: 0.8; }
.rail-card__meta { padding-top: 16px; display: flex; flex-direction: column; gap: 5px; }
.rail-card__title { font-family: var(--font-d); font-variation-settings: "wdth" 116; font-weight: 700; text-transform: uppercase; font-size: clamp(17px, 1.6vw, 23px); line-height: 1.1; }
.rail-card__artist { font-family: var(--font-s); font-style: italic; color: var(--sage); font-size: 15.5px; }
.rail-card__role { font-family: var(--font-m); font-size: 11.5px; letter-spacing: 0.06em; color: var(--paper-38); text-transform: uppercase; }
.rail-progress { margin: clamp(22px, 3vw, 40px) var(--pad) 0; height: 1px; background: var(--line); position: relative; max-width: 100%; }
.rail-progress__bar { position: absolute; inset: 0; background: var(--sage); transform: scaleX(0); transform-origin: left; }
/* mobile: plain swipe scroller */
@media (max-width: 900px), (pointer: coarse) {
  .rail-zone { height: auto !important; }
  .rail-pin { position: static; height: auto; }
  .rail { width: auto; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 10px; -webkit-overflow-scrolling: touch; }
  .rail::-webkit-scrollbar { display: none; }
  .rail-card { scroll-snap-align: start; width: min(76vw, 360px); }
  .rail-progress { display: none; }
}

/* ---------- capability rows (What I Do) ---------- */
.caps { border-top: 1px solid var(--line); }
.cap {
  display: grid; grid-template-columns: 90px 1fr auto; align-items: baseline; gap: clamp(14px, 3vw, 50px);
  padding: clamp(22px, 3vw, 40px) 0; border-bottom: 1px solid var(--line);
  position: relative; transition: padding-left 0.5s var(--ease);
}
.cap:hover { padding-left: clamp(10px, 1.4vw, 24px); }
.cap__idx { font-family: var(--font-m); font-size: 12px; color: var(--paper-38); letter-spacing: 0.14em; }
.cap__name { font-family: var(--font-d); font-variation-settings: "wdth" 120; font-weight: 800; text-transform: uppercase; font-size: clamp(26px, 4.6vw, 64px); line-height: 1; transition: color 0.35s; }
.cap--lead .cap__name { font-size: clamp(32px, 5.8vw, 82px); }
.cap:hover .cap__name { color: var(--sage); }
.cap__tag { font-family: var(--font-m); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--paper-38); text-align: right; max-width: 300px; }
.cap__preview {
  position: fixed; z-index: 90; width: 300px; aspect-ratio: 4/3; pointer-events: none;
  overflow: hidden; opacity: 0; transform: scale(0.9) rotate(-2deg); transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}
.cap__preview img { width: 100%; height: 100%; object-fit: cover; }
.cap__preview.is-on { opacity: 1; transform: scale(1) rotate(0deg); }
@media (pointer: coarse) { .cap__preview { display: none; } }
@media (max-width: 700px) { .cap { grid-template-columns: 48px 1fr; } .cap__tag { display: none; } }

/* ---------- story cards ---------- */
.stories { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.4vw, 36px); }
@media (max-width: 900px) { .stories { grid-template-columns: 1fr; } }
.story { display: flex; flex-direction: column; gap: 18px; position: relative; }
.story__hook { font-family: var(--font-s); font-style: italic; font-weight: 350; font-size: clamp(21px, 2vw, 27px); line-height: 1.35; }
.story__meta { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; border-top: 1px solid var(--line); padding-top: 14px; }
.story__who { font-family: var(--font-d); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; font-size: 14px; }
.story__cta { font-family: var(--font-m); font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--sage); display: inline-flex; gap: 8px; align-items: center; }
.story__cta .arr { transition: transform 0.35s var(--ease); }
.story:hover .story__cta .arr { transform: translateX(4px); }

/* ---------- big statement ---------- */
.statement { text-align: center; max-width: 1150px; margin: 0 auto; }
.statement__text { font-family: var(--font-s); font-style: italic; font-weight: 340; font-size: clamp(26px, 4vw, 54px); line-height: 1.35; }
.statement__text .hl { color: var(--sage); }
.statement__attr { margin-top: 30px; font-family: var(--font-m); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--paper-38); }

/* ---------- pillars ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.pillar { background: var(--ink); padding: clamp(26px, 3.4vw, 52px); display: flex; flex-direction: column; gap: 16px; transition: background 0.4s; }
.pillar:hover { background: var(--ink-2); }
.pillar__k { font-family: var(--font-m); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--sage); }
.pillar__t { font-family: var(--font-d); font-variation-settings: "wdth" 116; font-weight: 700; text-transform: uppercase; font-size: clamp(19px, 1.8vw, 26px); line-height: 1.15; }
.pillar__d { color: var(--paper-60); font-size: 15.5px; line-height: 1.7; }
@media (max-width: 900px) { .pillars { grid-template-columns: 1fr; } }

/* ---------- beyond music mosaic ---------- */
.mosaic { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(14px, 1.8vw, 28px); align-items: start; }
.mosaic__a { grid-column: 1 / 8; }
.mosaic__b { grid-column: 8 / 13; margin-top: clamp(40px, 6vw, 110px); }
.mosaic__c { grid-column: 2 / 7; margin-top: clamp(-30px, -2vw, -10px); }
.mosaic__d { grid-column: 7 / 12; margin-top: clamp(20px, 3vw, 60px); }
.mosaic figcaption { padding-top: 12px; font-family: var(--font-m); font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--paper-38); display: flex; justify-content: space-between; gap: 10px; }
.mosaic figcaption b { color: var(--paper-60); font-weight: 400; }
@media (max-width: 760px) {
  .mosaic__a, .mosaic__b, .mosaic__c, .mosaic__d { grid-column: 1 / 13; margin-top: 0; }
}

/* ---------- names strip (clients) ---------- */
.names { display: flex; flex-wrap: wrap; gap: 14px 0; justify-content: center; }
.names span {
  font-family: var(--font-d); font-variation-settings: "wdth" 116; font-weight: 700; text-transform: uppercase;
  font-size: clamp(15px, 1.7vw, 22px); letter-spacing: 0.06em; color: var(--paper-38);
  padding: 6px clamp(16px, 2.4vw, 34px); position: relative; transition: color 0.35s;
}
.names span:not(:last-child)::after { content: ""; position: absolute; right: 0; top: 50%; transform: translateY(-50%); width: 5px; height: 5px; border-radius: 99px; background: var(--sage-deep); }
.names span:hover { color: var(--paper); }

/* ---------- CTA band ---------- */
.band { position: relative; overflow: hidden; }
.band__media { position: absolute; inset: 0; }
.band__media img { width: 100%; height: 115%; object-fit: cover; opacity: 0.34; filter: saturate(0.7); }
.band__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, var(--ink), rgba(13,14,11,0.35) 40%, var(--ink)); }
.band__inner { position: relative; text-align: center; padding: clamp(90px, 13vw, 200px) var(--pad); }
.band__actions { margin-top: clamp(28px, 4vw, 48px); display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------- contact rows ---------- */
.contact-rows { border-top: 1px solid var(--line); }
.contact-row {
  display: grid; grid-template-columns: 70px 1fr auto; align-items: center; gap: clamp(14px, 3vw, 44px);
  padding: clamp(20px, 2.6vw, 34px) 0; border-bottom: 1px solid var(--line);
  transition: padding-left 0.45s var(--ease);
}
.contact-row:hover { padding-left: 16px; }
.contact-row__idx { font-family: var(--font-m); font-size: 12px; color: var(--paper-38); }
.contact-row__name { font-family: var(--font-d); font-variation-settings: "wdth" 118; font-weight: 800; text-transform: uppercase; font-size: clamp(24px, 3.6vw, 52px); line-height: 1; transition: color 0.3s; }
.contact-row:hover .contact-row__name { color: var(--sage); }
.contact-row__note { font-family: var(--font-m); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--paper-38); text-align: right; }
@media (max-width: 700px) { .contact-row { grid-template-columns: 44px 1fr; } .contact-row__note { display: none; } }

/* ---------- forms ---------- */
.form { display: flex; flex-direction: column; gap: 26px; max-width: 640px; }
.form__field { display: flex; flex-direction: column; gap: 8px; }
.form__field label { font-family: var(--font-m); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--paper-60); }
.form__field input, .form__field textarea {
  background: transparent; border: 0; border-bottom: 1px solid var(--line);
  color: var(--paper); font: inherit; font-size: 17px; padding: 10px 0;
  transition: border-color 0.3s;
}
.form__field input:focus, .form__field textarea:focus { outline: none; border-color: var(--sage); }
.form__field textarea { resize: vertical; min-height: 90px; }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 30px; z-index: 260; transform: translate(-50%, 140%);
  background: var(--paper); color: var(--ink);
  font-size: 14px; font-weight: 500; padding: 14px 24px; border-radius: 999px;
  transition: transform 0.5s var(--ease); max-width: min(90vw, 520px); text-align: center;
}
.toast.is-on { transform: translate(-50%, 0); }

/* ---------- case study ---------- */
.case-hero { min-height: 88svh; display: flex; flex-direction: column; justify-content: flex-end; position: relative; padding: calc(var(--nav-h) + 40px) var(--pad) clamp(30px, 4vw, 56px); overflow: hidden; }
.case-hero__media { position: absolute; inset: 0; z-index: -1; }
.case-hero__media img { width: 100%; height: 115%; object-fit: cover; }
.case-hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, var(--ink) 2%, rgba(13,14,11,0.5) 40%, rgba(13,14,11,0.4) 100%); }
.case-hero__kicker { font-family: var(--font-m); font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--sage); margin-bottom: 18px; }
.case-hero__line { margin-top: 22px; font-family: var(--font-s); font-style: italic; font-weight: 350; font-size: clamp(18px, 2vw, 26px); color: var(--paper-60); max-width: 560px; line-height: 1.5; }
.case-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border-block: 1px solid var(--line); }
.case-meta__cell { background: var(--ink); padding: clamp(20px, 2.6vw, 36px) clamp(16px, 2vw, 30px); }
.case-meta__k { font-family: var(--font-m); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--paper-38); margin-bottom: 10px; }
.case-meta__v { font-size: 15.5px; color: var(--paper-60); line-height: 1.6; }
@media (max-width: 760px) { .case-meta { grid-template-columns: 1fr; } }
.case-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(14px, 1.8vw, 28px); }
.case-gallery .wide { grid-column: 1 / -1; }
@media (max-width: 700px) { .case-gallery { grid-template-columns: 1fr; } }
.next-case { display: block; text-align: center; padding: clamp(80px, 11vw, 160px) var(--pad); position: relative; overflow: hidden; }
.next-case__label { font-family: var(--font-m); font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--paper-38); margin-bottom: 20px; }
.next-case:hover .display { color: var(--sage); }
.next-case .display { transition: color 0.4s; }

/* ---------- track list (work page) ---------- */
.tracks { border-top: 1px solid var(--line); }
.track { display: grid; grid-template-columns: 44px 52px 1.2fr 1fr auto; gap: clamp(12px, 2vw, 32px); align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line-soft); transition: background 0.3s, padding-left 0.4s var(--ease); }
.track:hover { background: var(--ink-2); padding-left: 12px; }
.track__idx { font-family: var(--font-m); font-size: 12px; color: var(--paper-38); }
.track__title { font-weight: 600; font-size: clamp(16px, 1.6vw, 20px); text-transform: uppercase; letter-spacing: 0.03em; }
.track__artist { font-family: var(--font-s); font-style: italic; color: var(--sage); font-size: 15.5px; }
.track__role { font-family: var(--font-m); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--paper-38); text-align: right; }
@media (max-width: 700px) { .track { grid-template-columns: 44px 1fr; } .track__artist { grid-column: 2; } .track__role { display: none; } .track__cover { grid-row: 1 / 3; grid-column: 1; width: 44px; } .track__idx { display: none; } }

/* ---------- filters ---------- */
.filters { display: flex; gap: 10px; flex-wrap: wrap; }
.filters button {
  padding: 10px 20px; border-radius: 999px; border: 1px solid var(--line);
  font-family: var(--font-m); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--paper-60);
  transition: all 0.3s var(--ease);
}
.filters button:hover { border-color: var(--paper-60); color: var(--paper); }
.filters button[aria-pressed="true"] { background: var(--paper); color: var(--ink); border-color: var(--paper); }
[data-cat] { transition: opacity 0.45s var(--ease), transform 0.45s var(--ease); }
[data-cat].is-off { opacity: 0.14; pointer-events: none; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); padding: clamp(56px, 7vw, 100px) var(--pad) 34px; position: relative; overflow: hidden; }
.footer__giant {
  font-family: var(--font-d); font-variation-settings: "wdth" 122; font-weight: 800; text-transform: uppercase;
  font-size: clamp(44px, 11.4vw, 196px); line-height: 0.9; letter-spacing: -0.01em;
  -webkit-text-stroke: 1px var(--paper-38); color: transparent;
  transition: color 0.6s var(--ease); user-select: none; text-align: center; display: block;
}
.footer__giant:hover { color: var(--paper); }
.footer__grid { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; margin-top: clamp(40px, 5vw, 70px); }
.footer__col { display: flex; flex-direction: column; gap: 10px; }
.footer__k { font-family: var(--font-m); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--paper-38); margin-bottom: 6px; }
.footer__col a { color: var(--paper-60); font-size: 14px; transition: color 0.3s; width: fit-content; }
.footer__col a:hover { color: var(--sage); }
.footer__bottom { margin-top: clamp(46px, 6vw, 80px); padding-top: 22px; border-top: 1px solid var(--line-soft); display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-family: var(--font-m); font-size: 11.5px; color: var(--paper-38); }

/* ---------- utilities ---------- */
.tc { text-align: center; }
.mt-1 { margin-top: clamp(18px, 2.4vw, 34px); }
.mt-2 { margin-top: clamp(34px, 4.6vw, 64px); }
.mt-3 { margin-top: clamp(56px, 7vw, 110px); }
.maxw { max-width: 820px; margin-inline: auto; }
.sage { color: var(--sage); }
.dim { color: var(--paper-60); }
.mono-note { font-family: var(--font-m); font-size: 12px; letter-spacing: 0.08em; color: var(--paper-38); }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
  [data-reveal], [data-split] .wi { opacity: 1 !important; transform: none !important; }
  .mask { clip-path: none !important; }
  .grain { display: none; }
}
