/* ==========================================================================
   Marbella Studio — Design System
   01 Tokens · 02 Base · 03 Type · 04 Grid · 05 Motion states
   06 Chrome (header, menu, cursor, transition, loader) · 07 Components
   08 Pages · 09 Responsive · 10 Reduced motion
   ========================================================================== */

/* 01 — TOKENS ------------------------------------------------------------ */
:root {
  /* Colour — drawn from limestone, olive leaf, terracotta and night */
  --bone: #f3eee6;        /* page */
  --linen: #e9e2d6;       /* raised surface */
  --sand: #d8cdbb;        /* strong hairline, placeholders */
  --stone: #8a8377;       /* muted text */
  --olive: #5d5f48;       /* accent — quiet */
  --clay: #a26a4c;        /* accent — warm, used sparingly */
  --ink: #1b1a17;         /* text, dark sections */
  --ink-2: #26241f;       /* dark raised */
  --ink-3: #3a372f;       /* dark hairline */

  --fg: var(--ink);
  --bg: var(--bone);
  --muted: var(--stone);
  --line: rgba(27, 26, 23, .14);

  /* Type */
  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;

  --fs-display: clamp(3.6rem, 12.5vw, 13.5rem);
  --fs-h1: clamp(3rem, 7.6vw, 8rem);
  --fs-h2: clamp(2.3rem, 4.8vw, 5rem);
  --fs-h3: clamp(1.55rem, 2.3vw, 2.4rem);
  --fs-h4: clamp(1.2rem, 1.5vw, 1.5rem);
  --fs-lead: clamp(1.2rem, 1.65vw, 1.7rem);
  --fs-body: clamp(1rem, .96rem + .15vw, 1.0625rem);
  --fs-small: .875rem;
  --fs-label: .6875rem;

  --lh-tight: .92;
  --lh-head: 1.04;
  --lh-body: 1.65;
  --track-label: .22em;

  /* Grid */
  --cols: 12;
  --margin: clamp(20px, 4.2vw, 72px);
  --gutter: clamp(14px, 1.8vw, 32px);
  --maxw: 1920px;

  /* Space (8pt base, fluid at the top) */
  --s-1: 4px; --s-2: 8px; --s-3: 16px; --s-4: 24px; --s-5: 32px;
  --s-6: 48px; --s-7: 64px; --s-8: clamp(72px, 8vw, 120px);
  --s-9: clamp(96px, 12vw, 200px); --s-10: clamp(120px, 16vw, 280px);

  /* Motion */
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.76, 0, .24, 1);
  --ease-soft: cubic-bezier(.33, 1, .68, 1);
  --d-1: .35s; --d-2: .7s; --d-3: 1.1s; --d-4: 1.6s;

  --radius: 0px;
  --header-h: 84px;
}

/* 02 — BASE -------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font-family: var(--sans); font-size: var(--fs-body); line-height: var(--lh-body);
  font-weight: 400; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility; overflow-x: clip;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
::selection { background: var(--ink); color: var(--bone); }
.dark ::selection { background: var(--bone); color: var(--ink); }
:focus-visible { outline: 1px solid currentColor; outline-offset: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 999; background: var(--ink); color: var(--bone); padding: 10px 16px; }
.skip:focus { top: 16px; }

.dark { --fg: var(--bone); --bg: var(--ink); --muted: #9b9486; --line: rgba(243, 238, 230, .16); background: var(--bg); color: var(--fg); }
.linen { --bg: var(--linen); background: var(--bg); }

/* 03 — TYPE -------------------------------------------------------------- */
.display, .h1, .h2, .h3, .h4, .serif { font-family: var(--serif); font-weight: 300; letter-spacing: -.02em; font-optical-sizing: auto; }
.display { font-size: var(--fs-display); line-height: .86; letter-spacing: -.045em; }
.h1 { font-size: var(--fs-h1); line-height: var(--lh-tight); letter-spacing: -.035em; }
.h2 { font-size: var(--fs-h2); line-height: 1; letter-spacing: -.03em; }
.h3 { font-size: var(--fs-h3); line-height: 1.08; }
.h4 { font-size: var(--fs-h4); line-height: 1.2; letter-spacing: -.01em; font-weight: 400; }
.display em, .h1 em, .h2 em, .h3 em, .serif em { font-style: italic; font-weight: 300; }
.lead { font-family: var(--serif); font-size: var(--fs-lead); line-height: 1.38; font-weight: 300; letter-spacing: -.01em; }
.body { max-width: 62ch; }
.body p { margin: 0 0 1.15em; }
.body p:last-child { margin-bottom: 0; }
.small { font-size: var(--fs-small); line-height: 1.55; }
.muted { color: var(--muted); }
.label {
  font-family: var(--sans); font-size: var(--fs-label); font-weight: 500;
  letter-spacing: var(--track-label); text-transform: uppercase; line-height: 1.4;
}
.num { font-family: var(--serif); font-style: italic; font-weight: 300; font-feature-settings: "lnum"; }
h1, h2, h3, h4, p { margin: 0; }

/* Links & buttons */
.link {
  position: relative; display: inline-flex; align-items: center; gap: 14px;
  font-size: var(--fs-label); letter-spacing: var(--track-label); text-transform: uppercase; font-weight: 500;
  padding-block: 6px;
}
/* Text links: no underline at rest; a hairline draws in from the left on hover */
.link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform var(--d-2) var(--ease-out);
}
.link:hover::after, .link:focus-visible::after { transform: scaleX(1); transform-origin: left; }
.link .arrow { transition: transform var(--d-2) var(--ease-out); }
.link:hover .arrow { transform: translateX(6px); }
.arrow { width: 22px; height: 10px; flex: none; }

/* Buttons: square, text only. Primary = filled ink; Secondary = outline.
   Hover: a fill wipes left → right and the label rolls. */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  height: 56px; padding: 0 34px; border: 1px solid currentColor; border-radius: 0; overflow: hidden;
  font-size: var(--fs-label); letter-spacing: var(--track-label); text-transform: uppercase; font-weight: 500;
  isolation: isolate; cursor: pointer;
  transition: color var(--d-2) var(--ease-out), border-color var(--d-2) var(--ease-out);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--fg);
  transform: scaleX(0); transform-origin: right; transition: transform var(--d-2) var(--ease-in-out);
}
.btn:hover::before, .btn:focus-visible::before { transform: scaleX(1); transform-origin: left; }
.btn--primary { background: transparent; color: var(--fg); border-color: var(--fg); }
.btn--primary::before { background: var(--fg); }
.btn--primary:hover, .btn--primary:focus-visible { color: var(--bg); }
.btn--secondary { background: transparent; color: var(--fg); border-color: var(--line); }
.btn--secondary::before { background: var(--clay); } .btn--secondary:hover, .btn--secondary:focus-visible { color: var(--bone); border-color: var(--clay); }

/* Hover roll text (used in nav + buttons) */
.roll { display: inline-block; overflow: hidden; vertical-align: top; height: 1.4em; line-height: 1.4em; }
.roll > span { display: block; transition: transform var(--d-2) var(--ease-out); }
.roll > span::after { content: attr(data-t); display: block; }
a:hover .roll > span, button:hover .roll > span { transform: translateY(-50%); }

/* 04 — GRID -------------------------------------------------------------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--margin); }
.grid {
  display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
  column-gap: var(--gutter); width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--margin);
}
.section { padding-block: var(--s-9); position: relative; }
.section--tight { padding-block: var(--s-8); }
.rule { height: 1px; background: var(--line); border: 0; margin: 0; }
.rule[data-draw] { transform-origin: left; }

/* Grid overlay — press "G" */
.grid-overlay { position: fixed; inset: 0; z-index: 9000; pointer-events: none; display: none; }
.grid-overlay.on { display: grid; }
.grid-overlay span { background: rgba(162, 106, 76, .08); border-inline: 1px solid rgba(162, 106, 76, .25); height: 100%; }

/* 05 — MOTION STATES (only when JS motion is active) -------------------- */
.js-motion [data-reveal] { opacity: 0; }
.js-motion [data-split]:not(.is-split), .js-motion [data-hero-split]:not(.is-split) { visibility: hidden; }
.js-motion [data-hero-fade] { opacity: 0; }
.js-motion .is-split { visibility: visible; }
.line-mask { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.line-inner { display: block; will-change: transform; }
.word { display: inline-block; }
.char { display: inline-block; will-change: transform; }

.media { position: relative; overflow: hidden; background: var(--sand); }
.dark .media { background: var(--ink-2); }
.media img, .media video { width: 100%; height: 100%; object-fit: cover; }
.media--parallax img { height: 118%; margin-top: -9%; will-change: transform; }
/* Image reveal — "curtain open": the frame parts from the centre like drapes, the photo settles and warms into colour */
.js-motion [data-media-reveal] { clip-path: inset(0 50% 0 50%); }
.js-motion [data-media-reveal] img { transform: scale(1.18); filter: saturate(.35); }

/* 06 — CHROME ------------------------------------------------------------ */

/* Header */
.header {
  position: fixed; inset: 0 0 auto; z-index: 500; height: var(--header-h);
  display: flex; align-items: center; color: var(--ink);
  transition: transform var(--d-2) var(--ease-out), color var(--d-1) linear;
}
.header__inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; width: 100%; padding-inline: var(--margin); max-width: var(--maxw); margin-inline: auto; position: relative; }
.header::before {
  content: ""; position: absolute; inset: 0; background: rgba(243, 238, 230, .82);
  backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2);
  opacity: 0; transition: opacity var(--d-2) var(--ease-out); border-bottom: 1px solid var(--line);
}
.header.is-solid::before { opacity: 1; }
.header.is-hidden { transform: translateY(-100%); }
.header.on-image:not(.is-solid) { color: var(--bone); }
.header.on-dark:not(.is-solid) { color: var(--bone); }
.header.over-dark { color: var(--bone); }
.header.over-dark::before { background: rgba(27, 26, 23, .78); border-color: var(--ink-3); }
.header nav ul { display: flex; gap: clamp(20px, 2.4vw, 40px); list-style: none; margin: 0; padding: 0; }
.header nav a { font-size: var(--fs-label); letter-spacing: var(--track-label); text-transform: uppercase; font-weight: 500; position: relative; padding-block: 6px; opacity: .6; transition: opacity var(--d-1) linear; }
.header nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform var(--d-2) var(--ease-out); }
.header nav a:hover, .header nav a[aria-current="page"] { opacity: 1; }
.header nav a:hover::after, .header nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.header__right { display: flex; justify-content: flex-end; align-items: center; gap: 28px; }
/* Header CTA — compact primary button that follows the header colour */
.header__cta.btn { height: 40px; padding: 0 20px; color: inherit; border-color: currentColor; }
.header__cta.btn::before { background: var(--ink); }
.header__cta.btn:hover, .header__cta.btn:focus-visible { color: var(--bone); border-color: var(--ink); }
.header.on-image:not(.is-solid) .header__cta.btn::before, .header.on-dark:not(.is-solid) .header__cta.btn::before, .header.over-dark .header__cta.btn::before { background: var(--bone); }
.header.on-image:not(.is-solid) .header__cta.btn:hover, .header.on-dark:not(.is-solid) .header__cta.btn:hover, .header.over-dark .header__cta.btn:hover { color: var(--ink); border-color: var(--bone); }

.wordmark { display: inline-flex; flex-direction: column; align-items: center; line-height: 1; justify-self: start; }
.wordmark__name { font-family: var(--serif); font-weight: 400; font-size: 30px; letter-spacing: -.03em; }
.wordmark__sub { display: flex; align-items: center; gap: 7px; font-size: 7.5px; letter-spacing: .5em; text-transform: uppercase; font-weight: 500; margin-top: 5px; padding-left: .5em; }
.wordmark__sub::before, .wordmark__sub::after { content: ""; width: 12px; height: 1px; background: currentColor; }

.menu-btn { display: none; align-items: center; gap: 12px; font-size: var(--fs-label); letter-spacing: var(--track-label); text-transform: uppercase; font-weight: 500; }
.menu-btn__icon { width: 26px; height: 8px; position: relative; }
.menu-btn__icon::before, .menu-btn__icon::after { content: ""; position: absolute; left: 0; right: 0; height: 1px; background: currentColor; transition: transform var(--d-2) var(--ease-out); }
.menu-btn__icon::before { top: 0; } .menu-btn__icon::after { bottom: 0; }
.menu-open .menu-btn__icon::before { transform: translateY(3.5px) rotate(20deg); }
.menu-open .menu-btn__icon::after { transform: translateY(-3.5px) rotate(-20deg); }
.menu-open .header { color: var(--bone); }
.menu-open .header::before { opacity: 0; }

/* Fullscreen menu */
.menu { position: fixed; inset: 0; z-index: 400; visibility: hidden; color: var(--bone); }
.menu__bg { position: absolute; inset: 0; background: var(--ink); clip-path: inset(0 0 100% 0); }
.menu__inner { position: relative; height: 100%; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); padding: calc(var(--header-h) + 4vh) var(--margin) 40px; max-width: var(--maxw); margin-inline: auto; }
.menu__list { grid-column: 1 / 8; list-style: none; margin: 0; padding: 0; align-self: center; counter-reset: m; }
.menu__list li { overflow: hidden; }
.menu__list a { display: flex; align-items: baseline; gap: 20px; font-family: var(--serif); font-weight: 300; font-size: clamp(2.6rem, 6.4vw, 6.4rem); line-height: 1.02; letter-spacing: -.035em; transition: color var(--d-1) linear, transform var(--d-2) var(--ease-out); }
.menu__list a .num { font-size: 14px; letter-spacing: 0; opacity: .5; width: 28px; }
.menu__list:hover a { color: #6f6a60; }
.menu__list a:hover { color: var(--bone); transform: translateX(14px); }
.menu__list a em { font-style: italic; }
.menu__media { grid-column: 9 / 13; align-self: center; aspect-ratio: 4 / 5; position: relative; overflow: hidden; background: var(--ink-2); }
.menu__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.08); transition: opacity var(--d-2) var(--ease-out), transform 1.4s var(--ease-out); }
.menu__media img.on { opacity: 1; transform: scale(1); }
.menu__foot { grid-column: 1 / -1; align-self: end; display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; border-top: 1px solid var(--ink-3); padding-top: 22px; color: #a39c8f; }
.menu__foot a:hover { color: var(--bone); }
.menu__foot .socials { display: flex; gap: 22px; }

/* Cursor */
.cursor { position: fixed; left: 0; top: 0; z-index: 9500; pointer-events: none; display: none; }
.has-cursor .cursor { display: block; }
.cursor__dot { position: absolute; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: var(--clay); transition: transform var(--d-1) var(--ease-out), opacity var(--d-1); }
.cursor__ring {
  position: absolute; width: 96px; height: 96px; margin: -48px 0 0 -48px; border-radius: 50%;
  background: var(--bone); color: var(--ink); display: grid; place-items: center; transform: scale(0);
  font-size: 10px; letter-spacing: .2em; text-transform: uppercase; font-weight: 500;
  transition: transform var(--d-2) var(--ease-out);
}
.cursor.is-label .cursor__ring { transform: scale(1); }
.cursor.is-label .cursor__dot { transform: scale(0); }
.cursor.is-link .cursor__dot { transform: scale(3.2); opacity: .35; }

/* Page transition curtain */
.curtain { position: fixed; inset: 0; z-index: 8000; pointer-events: none; visibility: hidden; }
.curtain__panel { position: absolute; inset: 0; background: var(--ink); color: var(--bone); display: grid; place-items: center; transform: scaleY(0); transform-origin: 50% 100%; }
.curtain__label span { transform: translateY(110%); }
.is-entering .curtain { visibility: visible; }
.is-entering .curtain__panel { transform: scaleY(1); }
.is-entering .curtain__label span { transform: none; }
.curtain__panel--b { background: var(--olive); }
.curtain__label { font-family: var(--serif); font-weight: 300; font-style: italic; font-size: clamp(2.4rem, 6vw, 6rem); letter-spacing: -.03em; overflow: hidden; }
.curtain__label span { display: block; }
.is-transitioning .curtain { visibility: visible; pointer-events: all; }

/* Loader */
.loader { position: fixed; inset: 0; z-index: 8500; background: var(--ink); color: var(--bone); display: none; }
.show-loader .loader { display: block; }
.loader__inner { position: absolute; inset: 0; display: grid; place-items: center; }
.loader__word { font-family: var(--serif); font-weight: 300; font-size: clamp(4rem, 14vw, 13rem); letter-spacing: -.05em; line-height: 1.1; display: flex; overflow: hidden; padding: 0 .05em; }
.loader__word span { display: inline-block; transform: translateY(130%); }
.loader__sub { position: absolute; left: 50%; top: calc(50% + clamp(3rem, 8vw, 7.5rem)); transform: translateX(-50%); display: flex; align-items: center; gap: 14px; opacity: 0; }
.loader__sub::before, .loader__sub::after { content: ""; width: 40px; height: 1px; background: currentColor; }
.loader__count { position: absolute; right: var(--margin); bottom: 30px; font-family: var(--serif); font-style: italic; font-weight: 300; font-size: clamp(3rem, 7vw, 6rem); line-height: 1; }
.loader__meta { position: absolute; left: var(--margin); bottom: 36px; color: #8f897e; }
.loader__bar { position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: var(--clay); transform-origin: left; transform: scaleX(0); }

/* 07 — COMPONENTS -------------------------------------------------------- */

/* Hero — image */
.hero { position: relative; height: 100svh; min-height: 640px; color: var(--bone); overflow: hidden; background: var(--ink); }
.hero__media { position: absolute; inset: 0; }
.hero__media img, .hero__media video { width: 100%; height: 100%; object-fit: cover; }
.hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 19, 16, .5) 0%, rgba(20, 19, 16, .12) 30%, rgba(20, 19, 16, .3) 58%, rgba(20, 19, 16, .72) 100%); }
.hero__content { position: absolute; inset: auto 0 0; padding-bottom: clamp(28px, 4vw, 56px); }
.hero__title { grid-column: 1 / -1; }
.hero__title .display { display: block; }
.hero__title .display + .display { padding-left: 18vw; }
.hero__meta { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-top: clamp(24px, 3vw, 48px); padding-top: 22px; border-top: 1px solid rgba(243, 238, 230, .3); }
.hero__meta p { max-width: 38ch; }
.scroll-cue { display: inline-flex; align-items: center; gap: 14px; }
.scroll-cue__line { width: 1px; height: 46px; background: rgba(243, 238, 230, .3); position: relative; overflow: hidden; }
.scroll-cue__line::after { content: ""; position: absolute; left: 0; top: 0; width: 1px; height: 100%; background: var(--bone); animation: cue 2.4s var(--ease-in-out) infinite; }
@keyframes cue { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }

/* Page head — text heroes */
.pagehead { padding-top: calc(var(--header-h) + clamp(60px, 11vw, 190px)); padding-bottom: var(--s-8); }
.pagehead__eyebrow { grid-column: 1 / -1; margin-bottom: clamp(24px, 3vw, 44px); display: flex; justify-content: space-between; gap: 20px; }
.pagehead__title { grid-column: 1 / 11; }
.pagehead__intro { grid-column: 8 / 12; margin-top: clamp(32px, 4vw, 64px); }
.pagehead__intro .lead { color: var(--muted); }

/* Statement — words light up on scroll */
.statement { grid-column: 2 / 12; font-family: var(--serif); font-weight: 300; font-size: clamp(1.9rem, 3.9vw, 4.1rem); line-height: 1.12; letter-spacing: -.025em; }
.statement .word { opacity: .16; }
.no-motion .statement .word, .statement:not(.is-split) .word { opacity: 1; }
.statement em { font-style: italic; }

/* Section head */
.shead { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; align-items: end; margin-bottom: clamp(40px, 5vw, 88px); }
.shead__title { grid-column: 1 / 10; }
.shead__aside { grid-column: 11 / 13; justify-self: end; }
.shead--split .shead__title { grid-column: 1 / 7; }
.shead--split .shead__aside { grid-column: 8 / 13; justify-self: stretch; color: var(--muted); }

/* Horizontal project rail (home) */
.rail { position: relative; overflow: hidden; }
.rail__track { display: flex; gap: var(--gutter); padding-inline: var(--margin); width: max-content; will-change: transform; }
.rail__pin { padding-block: 20px; }
.rail__card { width: clamp(280px, 30vw, 520px); flex: none; }
.rail__card:nth-child(2) { margin-top: clamp(24px, 4.5vw, 72px); }
.rail__card:nth-child(3) { margin-top: clamp(12px, 2vw, 32px); }
.rail__end { width: clamp(260px, 26vw, 420px); flex: none; display: flex; flex-direction: column; justify-content: center; gap: 28px; padding-left: 4vw; }
.rail__progress { margin: 48px var(--margin) 0; height: 1px; background: var(--line); position: relative; }
.rail__progress span { position: absolute; inset: 0; background: var(--fg); transform-origin: left; transform: scaleX(0); }

/* Project card */
.pcard { display: block; position: relative; }
.pcard__media { aspect-ratio: 4 / 5; }
.pcard__media img { transition: transform 1.4s var(--ease-out), filter 1s; }
.pcard:hover .pcard__media img { transform: scale(1.05); }
.pcard__meta { display: grid; grid-template-columns: 1fr; gap: 8px; padding-top: 18px; }
.pcard__num { font-size: 15px; color: var(--muted); }
.pcard__title { font-family: var(--serif); font-weight: 300; font-size: clamp(1.4rem, 1.9vw, 2rem); letter-spacing: -.02em; line-height: 1.1; }
.pcard__cat { color: var(--muted); }
.pcard__desc { color: var(--muted); max-width: 44ch; margin-top: 10px; }

/* Before / After */
.ba { position: relative; overflow: hidden; aspect-ratio: 3 / 2; user-select: none; touch-action: pan-y; background: var(--sand); --pos: 50%; cursor: ew-resize; }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ba__after { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--pos)); }
.ba__handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 1px; background: var(--bone); transform: translateX(-.5px); }
.ba__knob { position: absolute; top: 50%; left: 50%; width: 72px; height: 72px; margin: -36px 0 0 -36px; border-radius: 50%; border: 1px solid var(--bone); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); background: rgba(27, 26, 23, .18); color: var(--bone); display: grid; place-items: center; font-size: 18px; transition: transform var(--d-2) var(--ease-out); }
.ba:hover .ba__knob, .ba.is-drag .ba__knob { transform: scale(1.12); }
.ba__tag { position: absolute; bottom: 20px; color: var(--bone); padding: 8px 14px; background: rgba(27, 26, 23, .32); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-radius: 99px; pointer-events: none; }
.ba__tag--b { left: 20px; } .ba__tag--a { right: 20px; }
.ba input[type=range] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }

/* Service rows with hover image */

/* Commission cards */
.ccards { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gutter); }
.ccard { display: block; }
.ccard__media { aspect-ratio: 3 / 4; }
.ccard__media img { transition: transform 1.4s var(--ease-out); }
.ccard:hover .ccard__media img { transform: scale(1.06); }
.ccard__body { display: flex; justify-content: space-between; align-items: end; gap: 16px; padding-top: 18px; }
.ccard__title { font-family: var(--serif); font-weight: 300; font-size: clamp(1.4rem, 1.8vw, 1.9rem); letter-spacing: -.02em; line-height: 1.1; }

/* Process */
.process { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; }
.process__sticky { grid-column: 1 / 5; }
.process__sticky-inner { position: sticky; top: calc(var(--header-h) + 40px); }
.process__steps { grid-column: 6 / 13; list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.step { position: relative; display: grid; grid-template-columns: 1fr clamp(112px, 10vw, 156px); gap: var(--gutter); align-items: center; padding: clamp(26px, 3vw, 44px); border: 1px solid var(--line); transition: background var(--d-2) var(--ease-out), border-color var(--d-2) var(--ease-out); }
.step:hover, .step.is-drawn { background: var(--linen); border-color: transparent; }
.step__art { width: 100%; aspect-ratio: 1; color: var(--fg); overflow: visible; }
.step__art > * { fill: none; stroke: currentColor; stroke-width: 1; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 1 2; stroke-dashoffset: 1.06; transition: stroke-dashoffset .9s var(--ease-in-out); transition-delay: calc(var(--i, 0) * 85ms); }
.step:not(:hover):not(.is-drawn) .step__art > * { transition-duration: .45s; transition-delay: 0s; }
.step:hover .step__art > *, .step.is-drawn .step__art > * { stroke-dashoffset: 0; }
.step__art .accent { stroke: var(--clay); }
.step__title { font-family: var(--serif); font-weight: 300; font-size: var(--fs-h3); letter-spacing: -.02em; line-height: 1.05; margin-bottom: 10px; }

/* Split feature (image + text) */
.feature { align-items: center; row-gap: 48px; }
.feature__media { grid-column: 1 / 7; }
.feature__media .media { aspect-ratio: 4 / 5; }
.feature__text { grid-column: 8 / 12; }
.feature--rev .feature__media { grid-column: 7 / 13; order: 2; }
.feature--rev .feature__text { grid-column: 2 / 6; order: 1; }
.feature__text .h2 { margin-block: 24px 32px; }
.feature__text .body { color: var(--muted); }
.feature__text .actions { margin-top: 36px; display: flex; gap: 28px; flex-wrap: wrap; }

/* Studio band (team photo) */
.band { position: relative; overflow: hidden; }
.band .media { aspect-ratio: 2200 / 1072; }
.band__names { display: flex; justify-content: space-around; padding-block: 22px; border-bottom: 1px solid var(--line); }

/* Awards marquee */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding-block: clamp(28px, 3vw, 44px); }
.marquee__track { display: flex; gap: clamp(48px, 6vw, 110px); width: max-content; align-items: center; animation: marquee 48s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item { display: flex; align-items: center; gap: clamp(48px, 6vw, 110px); white-space: nowrap; }
.marquee__item .serif { font-size: clamp(1.6rem, 2.6vw, 2.8rem); font-weight: 300; }
.marquee__item .serif em { font-style: italic; }
.marquee__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--clay); flex: none; }
@keyframes marquee { to { transform: translateX(-50%); } }

.awards-strip { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(6, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.awards-strip a, .awards-strip div { aspect-ratio: 1; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: grid; place-items: center; padding: 18%; position: relative; }
.awards-strip img { max-height: 100%; width: auto; object-fit: contain; filter: grayscale(1) contrast(1.05); mix-blend-mode: multiply; opacity: .8; transition: filter var(--d-2), opacity var(--d-2), transform var(--d-2) var(--ease-out); }
.awards-strip a:hover img { filter: none; opacity: 1; transform: scale(1.06); }
.awards-strip .small { position: absolute; left: 14px; bottom: 12px; color: var(--muted); font-size: 11px; }

/* Long-form text (SEO copy) */
.longform { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; row-gap: 36px; }
.longform__head { grid-column: 1 / 6; }
.longform__body { grid-column: 7 / 12; color: var(--muted); }
.longform__body p { margin-bottom: 1.2em; }
.longform__body a { color: var(--fg); border-bottom: 1px solid transparent; transition: border-color var(--d-1); }
.longform__body a:hover { border-color: var(--fg); }

/* Link index list */
.lindex { grid-column: 1 / -1; list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.lindex a { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-block: 22px; border-bottom: 1px solid var(--line); font-family: var(--serif); font-weight: 300; font-size: clamp(1.3rem, 2vw, 2rem); letter-spacing: -.02em; transition: padding var(--d-2) var(--ease-out), color var(--d-1); }
.lindex a:hover { padding-left: 18px; }
.lindex a .arrow { opacity: .5; transition: transform var(--d-2) var(--ease-out), opacity var(--d-1); }
.lindex a:hover .arrow { opacity: 1; transform: translateX(-8px); }

/* FAQ */
.faq { grid-column: 6 / 13; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 24px; padding-block: 28px; font-family: var(--serif); font-weight: 300; font-size: clamp(1.25rem, 1.7vw, 1.75rem); letter-spacing: -.015em; line-height: 1.2; }
.faq summary::-webkit-details-marker { display: none; }
.faq__icon { width: 14px; height: 14px; position: relative; flex: none; margin-top: .4em; }
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; left: 0; top: 50%; width: 100%; height: 1px; background: currentColor; transition: transform var(--d-2) var(--ease-out); }
.faq__icon::after { transform: rotate(90deg); }
.faq details[open] .faq__icon::after { transform: rotate(0); }
.faq__a { overflow: hidden; }
.faq__a p { padding-bottom: 28px; color: var(--muted); max-width: 60ch; }

/* Feature list (included) */
/* Cell rows — no boxed grid: cells are separated by space, each carries its own hairline that fades to 0% at its end */
.flist, .facts, .contact-cards { grid-column: 1 / -1; display: grid; column-gap: calc(var(--gutter) * 2); row-gap: 0; }
.flist { grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); }
.facts, .contact-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.flist > div, .facts > div, .contact-cards > div, .brief > div { position: relative; padding: 30px 0 46px; }
.flist > div::before, .facts > div::before, .contact-cards > div::before, .brief > div::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px;
  background: linear-gradient(90deg, var(--line) 0%, var(--line) 45%, transparent 100%); }
.flist .h4 { margin-bottom: 12px; font-family: var(--serif); font-weight: 300; font-size: clamp(1.3rem, 1.6vw, 1.6rem); }
.flist p { color: var(--muted); font-size: var(--fs-small); }

/* CTA + form */
.cta { padding-block: var(--s-9) var(--s-8); }
.cta__title { grid-column: 1 / 8; }
.cta__intro { grid-column: 1 / 6; margin-top: 32px; color: var(--muted); }
.cta__contact { grid-column: 1 / 6; margin-top: 48px; display: grid; gap: 10px; }
.cta__contact a { font-family: var(--serif); font-weight: 300; font-size: clamp(1.4rem, 2vw, 2rem); letter-spacing: -.02em; width: fit-content; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size var(--d-2) var(--ease-out); }
.cta__contact a:hover { background-size: 100% 1px; }
.form { grid-column: 8 / 13; grid-row: 1 / span 3; display: grid; grid-template-columns: 1fr 1fr; gap: 8px var(--gutter); align-self: start; }
.field { position: relative; grid-column: span 2; }
.field--half { grid-column: span 1; }
.field input, .field select, .field textarea {
  width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--line); border-radius: 0;
  color: inherit; font: inherit; font-size: 1.05rem; padding: 30px 0 12px; outline: none; appearance: none; -webkit-appearance: none;
  transition: border-color var(--d-1);
}
.field textarea { min-height: 120px; resize: vertical; }
.field select { cursor: pointer; }
.field label { position: absolute; left: 0; top: 30px; color: var(--muted); pointer-events: none; transform-origin: left top; transition: transform var(--d-2) var(--ease-out), color var(--d-1); }
.field input:focus ~ label, .field input:not(:placeholder-shown) ~ label,
.field textarea:focus ~ label, .field textarea:not(:placeholder-shown) ~ label,
.field select ~ label { transform: translateY(-22px) scale(.72); letter-spacing: .08em; text-transform: uppercase; }
.field::after { content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%; background: var(--fg); transform: scaleX(0); transform-origin: left; transition: transform var(--d-2) var(--ease-out); }
.field:focus-within::after { transform: scaleX(1); }
.field--select::before { content: ""; position: absolute; right: 4px; top: 38px; width: 7px; height: 7px; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: rotate(45deg); pointer-events: none; }
.dark .field select option { color: var(--ink); }
.form__foot { grid-column: span 2; display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 28px; flex-wrap: wrap; }
.form__ok { grid-column: span 2; display: none; padding: 26px 0; font-family: var(--serif); font-size: var(--fs-h3); font-weight: 300; font-style: italic; }
.form.is-sent .field, .form.is-sent .form__foot { display: none; }
.form.is-sent .form__ok { display: block; }

/* Footer */
.footer { padding-top: var(--s-8); overflow: hidden; }
.footer__top { row-gap: 48px; padding-bottom: var(--s-8); }
.footer__col { grid-column: span 3; }
.footer__col:first-child { grid-column: 1 / 5; }
.footer__col h3 { margin-bottom: 22px; color: var(--muted); }
.footer__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer__col a { position: relative; transition: color var(--d-1); }
.footer__col a:hover { color: var(--clay); }
.footer__time { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: clamp(2rem, 3vw, 3rem); line-height: 1; margin-top: 12px; font-feature-settings: "tnum"; }
.footer__mark { font-family: var(--serif); font-weight: 300; font-size: 23.6vw; line-height: .78; letter-spacing: -.06em; text-align: center; white-space: nowrap; margin: 0 -.02em; padding-bottom: 2.4vw; user-select: none; }
.footer__mark .char { will-change: transform; }
.footer__bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-block: 22px; border-top: 1px solid var(--line); color: var(--muted); }
.footer__bottom nav { display: flex; gap: 22px; flex-wrap: wrap; }
.footer__bottom a:hover { color: var(--fg); }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 7000; background: rgba(20, 19, 16, .96); color: var(--bone); display: grid; grid-template-rows: auto 1fr auto; opacity: 0; visibility: hidden; transition: opacity var(--d-2) var(--ease-out), visibility var(--d-2); }
.lightbox.on { opacity: 1; visibility: visible; }
.lightbox__top, .lightbox__bot { display: flex; justify-content: space-between; align-items: center; padding: 22px var(--margin); }
.lightbox__stage { position: relative; display: grid; place-items: center; padding: 0 var(--margin); min-height: 0; }
.lightbox__stage img { max-height: 100%; max-width: 100%; width: auto; object-fit: contain; transition: opacity .5s var(--ease-out), transform .9s var(--ease-out); }
.lightbox__stage img.out { opacity: 0; transform: scale(.97); }
.lightbox button { font-size: var(--fs-label); letter-spacing: var(--track-label); text-transform: uppercase; font-weight: 500; padding: 10px 0; }
.lightbox__nav { display: flex; gap: 34px; }

/* Filters */
.filters { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: clamp(40px, 5vw, 72px); padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.filters__list { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { height: 40px; padding: 0 18px; border: 1px solid var(--line); border-radius: 99px; font-size: 12px; letter-spacing: .06em; transition: background var(--d-1), color var(--d-1), border-color var(--d-1); }
.chip:hover { border-color: var(--fg); }
.chip[aria-pressed="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.chip sup { font-size: 9px; margin-left: 4px; opacity: .6; }

/* 08 — PAGES ------------------------------------------------------------- */

/* Projects index — editorial grid */
.pgrid { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: clamp(64px, 8vw, 140px); }
.pgrid .pcard { grid-column: span 6; transition: opacity .5s var(--ease-out); }
.pgrid .pcard.is-hidden { display: none; }
.pgrid .pcard:nth-child(6n+1) { grid-column: 1 / 8; }
.pgrid .pcard:nth-child(6n+1) .pcard__media { aspect-ratio: 4 / 3; }
.pgrid .pcard:nth-child(6n+2) { grid-column: 9 / 13; margin-top: 22vw; }
.pgrid .pcard:nth-child(6n+3) { grid-column: 2 / 6; }
.pgrid .pcard:nth-child(6n+4) { grid-column: 7 / 13; margin-top: 10vw; }
.pgrid .pcard:nth-child(6n+4) .pcard__media { aspect-ratio: 5 / 4; }
.pgrid .pcard:nth-child(6n+5) { grid-column: 1 / 6; }
.pgrid .pcard:nth-child(6n+6) { grid-column: 7 / 12; margin-top: 16vw; }
.pgrid.is-filtered .pcard { grid-column: span 6 !important; margin-top: 0 !important; }
.pgrid.is-filtered .pcard .pcard__media { aspect-ratio: 4 / 3; }

/* Masonry portfolio */
.masonry { grid-column: 1 / -1; columns: 4; column-gap: var(--gutter); }
.masonry button { display: block; width: 100%; margin-bottom: var(--gutter); break-inside: avoid; position: relative; overflow: hidden; background: var(--sand); }
.masonry img { width: 100%; transition: transform 1.2s var(--ease-out), opacity .6s; }
.masonry button:hover img { transform: scale(1.04); }
.masonry .is-extra { display: none; }
.masonry.is-all .is-extra { display: block; }

/* Project detail */
.phero { position: relative; height: 100svh; min-height: 640px; overflow: hidden; color: var(--bone); background: var(--ink); }
.phero .hero__media::after { background: linear-gradient(180deg, rgba(20, 19, 16, .45) 0%, rgba(20, 19, 16, 0) 30%, rgba(20, 19, 16, .1) 55%, rgba(20, 19, 16, .7) 100%); }
.phero__content { position: absolute; left: 0; right: 0; bottom: 0; padding-bottom: clamp(32px, 4vw, 60px); }
.phero__title { grid-column: 1 / 11; }
.phero__sub { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 24px; margin-top: 30px; padding-top: 20px; border-top: 1px solid rgba(243, 238, 230, .3); }
.facts dt { color: var(--muted); margin-bottom: 14px; }
.facts dd { margin: 0; font-family: var(--serif); font-weight: 300; font-size: clamp(1.15rem, 1.5vw, 1.5rem); line-height: 1.3; letter-spacing: -.01em; }
.brief { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: calc(var(--gutter) * 2); }
.brief .h4 { font-family: var(--serif); font-weight: 300; font-style: italic; font-size: clamp(1.5rem, 2vw, 2rem); margin-bottom: 18px; }
.brief p { color: var(--muted); }
.story { row-gap: 40px; align-items: start; }
.story__media { grid-column: 1 / 8; }
.story__text { grid-column: 9 / 13; position: sticky; top: calc(var(--header-h) + 40px); }
.story--rev .story__media { grid-column: 6 / 13; order: 2; }
.story--rev .story__text { grid-column: 1 / 5; order: 1; }
.story__text .h3 { margin-block: 18px 22px; }
.story__text .body { color: var(--muted); }
.story__pair { display: grid; grid-template-columns: 1.4fr 1fr; gap: var(--gutter); align-items: end; }
.story__pair .media:first-child { aspect-ratio: 4 / 5; }
.story__pair .media:last-child { aspect-ratio: 3 / 4; }
.fullbleed .media { aspect-ratio: 16 / 8; }
.hgallery { overflow: hidden; }
.hgallery__track { display: flex; gap: var(--gutter); padding-inline: var(--margin); width: max-content; }
.hgallery__item { height: clamp(320px, 62vh, 720px); flex: none; }
.hgallery__item .media { height: 100%; }
.hgallery__item img { height: 100%; width: auto; }
.next { position: relative; display: block; height: 90svh; min-height: 560px; overflow: hidden; color: var(--bone); background: var(--ink); }
.next .media { position: absolute; inset: 0; background: var(--ink); }
.next .media img { opacity: .7; transition: transform 1.6s var(--ease-out), opacity 1s; }
.next:hover .media img { transform: scale(1.04); opacity: .85; }
.next__content { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; gap: 24px; padding: var(--margin); }
.video { position: relative; aspect-ratio: 9 / 16; max-height: 88vh; margin-inline: auto; overflow: hidden; background: var(--ink-2); }
.video video { width: 100%; height: 100%; object-fit: cover; }
.video__btn { position: absolute; right: 18px; bottom: 18px; color: var(--bone); padding: 10px 16px; border: 1px solid rgba(243, 238, 230, .5); border-radius: 99px; background: rgba(27, 26, 23, .3); backdrop-filter: blur(6px); }

/* Before-after page */
.bapage__item { row-gap: 32px; align-items: end; }
.bapage__item + .bapage__item { margin-top: var(--s-9); }
.bapage__slider { grid-column: 1 / 9; }
.bapage__text { grid-column: 10 / 13; }
.bapage__item:nth-child(even) .bapage__slider { grid-column: 5 / 13; order: 2; }
.bapage__item:nth-child(even) .bapage__text { grid-column: 1 / 4; order: 1; }
.bapage__text .h3 { margin-block: 16px 18px; }
.bapage__text p { color: var(--muted); }

/* Awards page rows */
.arows { grid-column: 1 / -1; border-top: 1px solid var(--line); }
.arow { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); padding-block: clamp(36px, 4.5vw, 72px); border-bottom: 1px solid var(--line); align-items: center; }
.arow__num { grid-column: 1 / 2; font-size: 15px; color: var(--muted); align-self: start; }
.arow__badge { grid-column: 1 / 5; aspect-ratio: 4 / 3; display: grid; place-items: center; background: var(--linen); padding: 12%; }
.arow__badge img { max-height: 100%; width: auto; object-fit: contain; mix-blend-mode: multiply; }
.arow__body { grid-column: 6 / 12; }
.arow__body .h2 { font-size: clamp(2rem, 3.6vw, 3.8rem); margin-block: 14px 18px; }
.arow__body p { color: var(--muted); max-width: 52ch; }
.arow__body .actions { margin-top: 24px; display: flex; gap: 26px; flex-wrap: wrap; }

/* Journal */
.jfeat { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; align-items: end; row-gap: 32px; }
.jfeat .media { grid-column: 1 / 8; aspect-ratio: 4 / 3; }
.jfeat__body { grid-column: 9 / 13; }
.jfeat__body .h2 { margin-block: 18px 20px; }
.jgrid { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(48px, 5vw, 80px) var(--gutter); }
.jcard .media { aspect-ratio: 4 / 3; margin-bottom: 22px; }
.jcard .media img { transition: transform 1.4s var(--ease-out); }
.jcard:hover .media img { transform: scale(1.05); }
.jcard .h4 { font-family: var(--serif); font-weight: 300; font-size: clamp(1.35rem, 1.8vw, 1.85rem); letter-spacing: -.02em; line-height: 1.12; margin-block: 12px 12px; }
.jcard p { color: var(--muted); font-size: var(--fs-small); }
.archive { grid-column: 1 / -1; columns: 3; column-gap: var(--gutter); list-style: none; padding: 0; margin: 0; }
.archive li { break-inside: avoid; padding-block: 12px; border-top: 1px solid var(--line); font-size: var(--fs-small); color: var(--muted); }

/* Article */
.article { grid-column: 4 / 10; }
.article h2 { font-family: var(--serif); font-weight: 300; font-size: clamp(1.7rem, 2.6vw, 2.6rem); letter-spacing: -.02em; line-height: 1.1; margin: 1.8em 0 .7em; }
.article h3 { font-family: var(--serif); font-weight: 400; font-size: 1.35rem; margin: 1.6em 0 .5em; }
.article p { margin: 0 0 1.2em; color: #4a463e; font-size: 1.08rem; line-height: 1.75; }
.article p:first-child { font-family: var(--serif); font-size: var(--fs-lead); line-height: 1.4; color: var(--fg); font-weight: 300; }
.article ul { margin: 0 0 1.4em; padding-left: 1.1em; color: #4a463e; }

/* Contact */
.contact-hero { row-gap: 56px; padding-bottom: var(--s-8); }
.contact-hero .pagehead__title { grid-column: 1 / 9; }
.contact-cards .label { color: var(--muted); display: block; margin-bottom: 16px; }
.contact-cards a, .contact-cards p { font-family: var(--serif); font-weight: 300; font-size: clamp(1.15rem, 1.5vw, 1.45rem); line-height: 1.35; }
.contact-cards a:hover { color: var(--clay); }

/* Design system page */
.swatches { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(8, 1fr); gap: var(--gutter); }
.swatch__chip { aspect-ratio: 3 / 4; border: 1px solid var(--line); margin-bottom: 14px; }
.swatch code, .tokens code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 12px; color: var(--muted); }
.tscale { grid-column: 1 / -1; border-top: 1px solid var(--line); }
.tscale > div { display: grid; grid-template-columns: 220px 1fr; gap: var(--gutter); align-items: baseline; padding-block: 26px; border-bottom: 1px solid var(--line); overflow: hidden; }
.tscale .meta { color: var(--muted); font-size: 12px; line-height: 1.6; }
.gridviz { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gutter); height: 180px; }
.gridviz span { background: rgba(162, 106, 76, .1); border: 1px solid rgba(162, 106, 76, .35); display: grid; place-items: end center; padding-bottom: 8px; font-size: 11px; color: var(--clay); }
.motion-demos { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gutter); }
.motion-demo { border: 1px solid var(--line); padding: 22px; min-height: 220px; display: flex; flex-direction: column; justify-content: space-between; gap: 20px; }
.motion-demo__track { height: 2px; background: var(--line); position: relative; }
.motion-demo__ball { position: absolute; left: 0; top: -5px; width: 12px; height: 12px; border-radius: 50%; background: var(--clay); }
.motion-demo:hover .motion-demo__ball { left: calc(100% - 12px); }
.tokens { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gutter); }
.tokens > div { border-top: 1px solid var(--line); padding-top: 20px; }
.tokens ul { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 8px; font-size: var(--fs-small); }
.tokens li { display: flex; justify-content: space-between; gap: 12px; }

/* Utility */
.mt-s { margin-top: var(--s-5); } .mt-m { margin-top: var(--s-7); } .mt-l { margin-top: var(--s-8); }
.span-all { grid-column: 1 / -1; }
.center { text-align: center; }

/* 09 — RESPONSIVE -------------------------------------------------------- */
@media (max-width: 1100px) {
  .header nav { display: none; }
  .header__inner { grid-template-columns: 1fr auto; }
  .header__cta { display: none; }
  .menu-btn { display: inline-flex; }
  .awards-strip { grid-template-columns: repeat(3, 1fr); }
  .flist { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .masonry { columns: 3; }
  .swatches { grid-template-columns: repeat(4, 1fr); }
  .motion-demos { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 800px) {
  :root { --cols: 4; --header-h: 70px; }
  .grid > *, .shead > *, .process > *, .longform > *, .jfeat > * { grid-column: 1 / -1 !important; }
  .shead { grid-template-columns: 1fr; gap: 18px; }
  .shead__aside { justify-self: start !important; }
  .hero__title .display + .display { padding-left: 0; }
  .hero__meta { flex-direction: column; align-items: flex-start; }
  .rail__track { flex-direction: column; width: auto; }
  .rail__card { width: 100%; margin-top: 0 !important; }
  .rail__end { width: 100%; padding: 20px 0 0; }
  .rail__progress { display: none; }
  .pgrid > .pcard { grid-column: 1 / -1 !important; margin-top: 0 !important; }
  .pgrid { row-gap: 56px; }
  .pcard__meta { grid-template-columns: 1fr; gap: 8px; }
  .pcard__cat { text-align: left; }
  .ccards, .brief, .jgrid { grid-template-columns: 1fr; }
  .process__sticky-inner { position: static; margin-bottom: 24px; }
  .step { grid-template-columns: 1fr; }
  .feature__media, .feature__text, .story__media, .story__text, .bapage__slider, .bapage__text { order: 0 !important; }
  .story__text { position: static; }
  .facts, .contact-cards { grid-template-columns: 1fr 1fr; column-gap: var(--gutter); }
  .flist { grid-template-columns: 1fr; }
  .step { grid-template-columns: 1fr 84px; padding: 24px; }
  .faq { grid-column: 1 / -1; }
  .form { grid-row: auto; margin-top: 56px; grid-template-columns: 1fr; }
  .field, .field--half, .form__foot, .form__ok { grid-column: 1 / -1; }
  .awards-strip { grid-template-columns: repeat(2, 1fr); }
  .arow { grid-template-columns: 1fr; row-gap: 22px; }
  .arow > * { grid-column: 1 / -1 !important; }
  .arow__badge { max-width: 320px; }
  .masonry { columns: 2; }
  .archive { columns: 1; }
  .menu__media { display: none; }
  .menu__list { grid-column: 1 / -1; }
  .menu__foot { flex-direction: column; }
  .footer__col, .footer__col:first-child { grid-column: 1 / -1; }
  .fullbleed .media { aspect-ratio: 4 / 5; }
  .hgallery__item { height: 52vh; }
  .story__pair { grid-template-columns: 1fr; }
  .tscale > div { grid-template-columns: 1fr; }
  .swatches { grid-template-columns: repeat(2, 1fr); }
  .gridviz { grid-template-columns: repeat(4, 1fr); }
  .gridviz span:nth-child(n+5) { display: none; }
  .motion-demos, .tokens { grid-template-columns: 1fr; }
  .ba__knob { width: 54px; height: 54px; margin: -27px 0 0 -27px; }
  .phero__sub { flex-direction: column; }
}

/* 10 — REDUCED MOTION ---------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .marquee__track { animation: none; }
}
.pagehead__eyebrow > :last-child { margin-left: auto; }

.statement-actions { grid-column: 1 / -1; display: flex; gap: 32px; flex-wrap: wrap; align-items: center; justify-content: center; }

/* Services — index + stage */
.svc { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; align-items: start; }
.svc__list { grid-column: 1 / 7; list-style: none; margin: 0; padding: 0; }
.svc__item { position: relative; padding: clamp(26px, 3vw, 42px) 0; }
.svc__item::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: linear-gradient(90deg, var(--line) 0%, var(--line) 45%, transparent 100%); }
.svc__link { display: block; }
.svc__title { display: inline-block; font-family: var(--serif); font-weight: 300; font-size: clamp(2.2rem, 4.4vw, 4.6rem); line-height: 1; letter-spacing: -.035em; opacity: .26; transition: opacity var(--d-2) var(--ease-out); }
.svc__item.is-active .svc__title, .svc__link:hover .svc__title, .svc__link:focus-visible .svc__title { opacity: 1; }
.svc__more { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--d-3) var(--ease-in-out); }
.svc__more > div { overflow: hidden; min-height: 0; }
.svc__item.is-active .svc__more { grid-template-rows: 1fr; }
.svc__desc { color: var(--muted); max-width: 44ch; padding-top: 20px; margin-bottom: 18px; opacity: 0; transform: translateY(8px); transition: opacity var(--d-2) var(--ease-out), transform var(--d-2) var(--ease-out); }
.svc__item.is-active .svc__desc { opacity: 1; transform: none; transition-delay: .25s; }
.svc__more .link { opacity: 0; transition: opacity var(--d-2) var(--ease-out); }
.svc__item.is-active .svc__more .link { opacity: 1; transition-delay: .35s; }
.svc__media { display: none; }
.svc__stage { grid-column: 8 / 13; position: sticky; top: calc(var(--header-h) + 32px); }
.svc__frame { position: relative; width: 100%; height: min(68svh, 720px); overflow: hidden; background: var(--sand); }
.svc__frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; }
.svc__frame img.is-on { opacity: 1; }
.no-motion .svc__frame img { transition: opacity var(--d-2) linear; }
.svc__caption { position: relative; height: 2.6em; margin-top: 16px; }
.svc__caption p { position: absolute; inset: 0; display: flex; justify-content: space-between; align-items: baseline; gap: 16px; opacity: 0; transform: translateY(6px); transition: opacity var(--d-2) var(--ease-out), transform var(--d-2) var(--ease-out); }
.svc__caption p.is-on { opacity: 1; transform: none; }
.svc__caption .label { color: var(--muted); }
.svc__caption .serif { font-size: 1.25rem; font-weight: 300; }
@media (max-width: 800px) {
  .svc__stage { display: none; }
  .svc__title { opacity: 1; }
  .svc__more { grid-template-rows: 1fr; }
  .svc__desc, .svc__more .link { opacity: 1; transform: none; }
  .svc__media { display: block; aspect-ratio: 4 / 3; margin-top: 22px; }
}
