/* ==========================================================================
   Hive & Craft — styles
   Palette and type drawn from the Hive & Craft credentials decks.
   ========================================================================== */

:root {
  --ink: #212121;
  --ink-deep: #1a1a19;
  --ink-raised: #282826;
  --paper: #f9f3eb;
  --cream: #faeedc;
  --sand: #cfc7a6;
  --olive: #7a8236;
  --olive-deep: #5f6629;
  --gold: #c9a85f;
  --gold-soft: #d9bf86;
  --olive-bright: #a9b25e;
  --crest-leaf: #7d8a3a;
  --crest-bee: #c9a85f;

  --on-dark: #f4ead8;
  --on-dark-muted: rgba(244, 234, 216, 0.66);
  --on-dark-faint: rgba(244, 234, 216, 0.4);
  --line-dark: rgba(244, 234, 216, 0.14);

  --on-light: #212121;
  --on-light-muted: rgba(33, 33, 33, 0.68);
  --line-light: rgba(33, 33, 33, 0.14);

  --serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Jost", "Futura", "Century Gothic", "Avenir Next", system-ui, sans-serif;
  --caps: "Cinzel", "Trajan Pro", "Newsreader", serif;

  --gutter: clamp(20px, 4.2vw, 64px);
  --max: 1440px;
  --section: clamp(104px, 13vw, 200px);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

/* ---------- Reset ---------- */
*, *::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, h1, h2, h3, p, ul, ol, figure, fieldset { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
fieldset { border: 0; min-width: 0; }

body {
  background: var(--ink);
  color: var(--on-dark);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
::selection { background: var(--gold); color: var(--ink); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 2px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip {
  position: fixed; top: 12px; left: 12px; z-index: 1000;
  padding: 10px 16px; background: var(--gold); color: var(--ink);
  transform: translateY(-160%); transition: transform .3s var(--ease-out);
}
.skip:focus { transform: none; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

em { font-style: italic; }

/* ---------- Shared type ---------- */
.eyebrow,
.section-label {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.section-label {
  display: flex; align-items: center; gap: 14px;
  color: var(--olive);
  margin-bottom: clamp(36px, 5vw, 72px);
}
.section-label span { font-family: var(--serif); font-style: italic; font-size: 15px; letter-spacing: 0; text-transform: none; }
.section-label::after { content: ""; flex: 0 0 48px; height: 1px; background: currentColor; opacity: .5; }
.section-label--dark { color: var(--gold); }

.display {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.6rem, 6vw, 6.2rem);
  line-height: 1;
  letter-spacing: -0.025em;
  color: var(--on-dark);
}
.display em { color: var(--gold); }
.display--ink { color: var(--on-light); }
.display--ink em { color: var(--olive); }

.lede { font-size: clamp(1.15rem, 1.5vw, 1.35rem); line-height: 1.55; }

/* split-text helpers */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0.08em 0.06em 0.14em; margin: -0.08em -0.06em -0.14em; }
.wi { display: inline-block; will-change: transform; }

/* ---------- Buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 12px;
  height: 46px; padding: 0 22px; border-radius: 999px; overflow: hidden;
  font-size: 13px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase;
  isolation: isolate; white-space: nowrap;
  transition: color .5s var(--ease-out), border-color .5s var(--ease-out);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  transform: translateY(101%); transition: transform .6s var(--ease-out);
}
.btn:hover::before, .btn:focus-visible::before { transform: none; }
.btn--line { border: 1px solid currentColor; }
.btn--line::before { background: var(--gold); }
.btn--line:hover { color: var(--ink); border-color: var(--gold); }
.btn--solid { background: var(--gold); color: var(--ink); height: 56px; padding: 0 28px; }
.btn--solid::before { background: var(--cream); }
.btn--solid i { font-style: normal; font-size: 18px; transition: transform .5s var(--ease-out); }
.btn--solid:hover i { transform: translateX(4px); }

/* ---------- Loader ---------- */
.loader { display: none; }
.js .loader {
  position: fixed; inset: 0; z-index: 900;
  display: grid; place-items: center;
  background: var(--ink-deep); color: var(--on-dark);
  animation: loader-failsafe .01s 6s forwards;
}
.loader__inner { display: grid; justify-items: center; gap: 22px; }
.loader__crest { position: relative; width: 96px; aspect-ratio: 984 / 1000; }
.loader__crest svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.loader__crest-base { --crest-leaf: rgba(244, 234, 216, .1); --crest-bee: rgba(244, 234, 216, .1); }
.loader__crest-fill { clip-path: inset(100% 0 0 0); }
.loader__word { font-family: var(--caps); font-weight: 700; font-size: clamp(20px, 2.4vw, 28px); letter-spacing: 0.22em; text-transform: uppercase; color: var(--olive-bright); padding-left: .22em; line-height: 1; margin-top: 6px; }
.loader__tag { margin-top: -10px; font-size: 13px; color: var(--gold); text-align: center; }
.loader__count {
  position: absolute; right: var(--gutter); bottom: calc(var(--gutter) * .8);
  font-family: var(--serif); font-weight: 300; font-size: clamp(3rem, 8vw, 7rem); line-height: 1;
  color: var(--on-dark-faint); font-variant-numeric: tabular-nums;
}
@keyframes loader-failsafe { to { visibility: hidden; opacity: 0; } }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 500;
  display: flex; align-items: center; gap: 40px;
  height: 84px; padding-inline: var(--gutter);
  color: var(--on-dark);
  transition: transform .6s var(--ease-out), color .5s var(--ease-out), height .5s var(--ease-out);
}
.header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--ink); border-bottom: 1px solid var(--line-dark);
  opacity: 0; transition: opacity .5s var(--ease-out), background-color .5s var(--ease-out), border-color .5s;
}
.header.is-scrolled { height: 68px; }
.header.is-scrolled::before { opacity: .94; }
.header.is-hidden { transform: translateY(-100%); }
.header.is-light { color: var(--on-light); }
.header.is-light::before { background: var(--paper); border-color: var(--line-light); }
.header.is-olive::before { background: var(--olive-deep); }

.brand { display: flex; align-items: center; gap: 14px; margin-right: auto; }
.brand__crest { width: 34px; height: 35px; }
.brand__word { font-family: var(--caps); font-weight: 700; font-size: 15px; letter-spacing: 0.22em; text-transform: uppercase; padding-top: 2px; color: var(--olive-bright); transition: color .5s; }
.header.is-light .brand__word { color: var(--olive); }
.menu-open .brand__word { color: var(--olive-bright); }

.nav { display: flex; gap: 36px; }
.nav a {
  position: relative; font-size: 13px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase;
  padding-block: 6px;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease-out);
}
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); transform-origin: left; }
.header.is-light .btn--line:hover { color: var(--cream); }
.header.is-light .btn--line::before { background: var(--ink); }
.header.is-light .btn--line:hover { border-color: var(--ink); }

.menu-toggle { display: none; position: relative; width: 44px; height: 44px; margin-right: -10px; }
.menu-toggle span {
  position: absolute; left: 11px; right: 11px; height: 1.5px; background: currentColor;
  transition: transform .5s var(--ease-out), top .5s var(--ease-out);
}
.menu-toggle span:first-child { top: 18px; }
.menu-toggle span:last-child { top: 25px; }
.menu-open .menu-toggle span:first-child { top: 21.5px; transform: rotate(45deg); }
.menu-open .menu-toggle span:last-child { top: 21.5px; transform: rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 400;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 120px var(--gutter) 36px;
  background: var(--ink-deep); color: var(--on-dark);
  clip-path: inset(0 0 100% 0); visibility: hidden;
  transition: clip-path .8s var(--ease-in-out), visibility 0s .8s;
}
.menu-open .menu { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .8s var(--ease-in-out); }
.menu-open .header { color: var(--on-dark); }
.menu-open .header::before { opacity: 0; }
.menu__nav { display: grid; }
.menu__nav a {
  display: flex; align-items: baseline; gap: 18px;
  font-family: var(--serif); font-weight: 300; font-size: clamp(2.6rem, 11vw, 4.5rem); line-height: 1.12;
  border-bottom: 1px solid var(--line-dark); padding-block: 8px;
  opacity: 0; transform: translateY(24px);
  transition: opacity .6s var(--ease-out), transform .8s var(--ease-out), color .3s;
}
.menu-open .menu__nav a { opacity: 1; transform: none; }
.menu-open .menu__nav a:nth-child(1) { transition-delay: .25s; }
.menu-open .menu__nav a:nth-child(2) { transition-delay: .3s; }
.menu-open .menu__nav a:nth-child(3) { transition-delay: .35s; }
.menu-open .menu__nav a:nth-child(4) { transition-delay: .4s; }
.menu-open .menu__nav a:nth-child(5) { transition-delay: .45s; }
.menu__nav a:hover { color: var(--gold); }
.menu__idx { font-family: var(--sans); font-size: 12px; letter-spacing: .14em; color: var(--gold); }
.menu__foot { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark-faint); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: flex-end;
  background: var(--ink); overflow: hidden; isolation: isolate;
}
.hero__media { position: absolute; inset: 0; z-index: -2; background: var(--gold); }
.hero__media picture, .hero__media img { width: 100%; height: 100%; }
.hero__media img { object-fit: cover; object-position: 50% 30%; filter: grayscale(1) contrast(1.1) brightness(1.15); mix-blend-mode: multiply; transform-origin: 50% 40%; }
.hero__media::after { content: ""; position: absolute; inset: 0; background: var(--ink); opacity: .52; }
.hero__net { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; }

.hero__inner { position: relative; padding-top: 140px; padding-bottom: clamp(28px, 4vw, 48px); }
.hero__eyebrow { color: var(--gold); margin-bottom: clamp(20px, 2.6vw, 36px); display: flex; align-items: center; gap: 14px; }
.hero__eyebrow::before { content: ""; width: 32px; height: 1px; background: currentColor; }
.hero__title {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(3.1rem, 8.2vw, 9.6rem);
  line-height: .96; letter-spacing: -0.03em;
  max-width: 12.5ch;
  color: var(--on-dark);
}
.hero__title em { color: var(--gold); font-weight: 300; }
.hero__foot {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap;
  margin-top: clamp(48px, 7vw, 104px); padding-top: 22px; border-top: 1px solid var(--line-dark);
}
.hero__disciplines { display: flex; gap: clamp(20px, 4vw, 64px); flex-wrap: wrap; }
.hero__disciplines li { font-size: 13px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--on-dark-muted); display: flex; gap: 10px; }
.hero__disciplines span { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: 0; color: var(--gold); text-transform: none; }
.hero__scroll { display: flex; align-items: center; gap: 14px; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--on-dark-muted); transition: color .3s; }
.hero__scroll:hover { color: var(--on-dark); }
.hero__scroll-line { position: relative; width: 1px; height: 44px; background: var(--line-dark); overflow: hidden; }
.hero__scroll-line::after { content: ""; position: absolute; inset: 0; background: var(--gold); animation: scroll-line 2.4s var(--ease-in-out) infinite; }
@keyframes scroll-line { 0% { transform: translateY(-100%); } 55%, 100% { transform: translateY(100%); } }

/* ---------- Studio ---------- */
.studio { background: var(--paper); color: var(--on-light); padding-block: var(--section); position: relative; overflow: hidden; }
.studio__statement {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(2.1rem, 4.7vw, 5rem); line-height: 1.1; letter-spacing: -0.02em;
  max-width: 23ch;
}
.studio__statement em { color: var(--olive); }
.studio__grid {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px;
  margin-top: clamp(72px, 10vw, 160px);
}
.studio__crest { grid-column: 1 / span 4; align-self: start; }
.studio__crest svg { width: min(100%, 300px); aspect-ratio: 984 / 1000; height: auto; }
.studio__body { grid-column: 6 / span 7; }
.studio__body .lede { color: var(--on-light-muted); max-width: 36ch; margin-bottom: clamp(40px, 5vw, 64px); }
.pillars { border-bottom: 1px solid var(--line-light); }
.pillar {
  position: relative; display: grid; grid-template-columns: 64px 1fr auto; align-items: center;
  padding: clamp(18px, 2vw, 26px) 0; border-top: 1px solid var(--line-light);
  isolation: isolate;
}
.pillar::before {
  content: ""; position: absolute; inset: 0 calc(var(--gutter) * -0.5); z-index: -1;
  background: var(--ink); transform: scaleY(0); transform-origin: bottom;
  transition: transform .6s var(--ease-out);
}
.pillar__num { font-family: var(--serif); font-style: italic; color: var(--olive); font-size: 17px; transition: color .4s; }
.pillar__name { font-family: var(--serif); font-weight: 300; font-size: clamp(1.45rem, 2.4vw, 2.2rem); line-height: 1.15; letter-spacing: -0.01em; transition: color .4s, transform .6s var(--ease-out); }
.pillar__link {
  width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid var(--line-light); font-size: 18px; transition: background .4s, color .4s, border-color .4s, transform .6s var(--ease-out);
}
.pillar__link::after { content: ""; position: absolute; inset: 0; }
@media (hover: hover) {
  .pillar:hover::before { transform: scaleY(1); }
  .pillar:hover .pillar__name { color: var(--cream); transform: translateX(10px); }
  .pillar:hover .pillar__num { color: var(--gold); }
  .pillar:hover .pillar__link { background: var(--gold); border-color: var(--gold); color: var(--ink); transform: rotate(-45deg); }
}
.studio__sign { margin-top: 36px; font-family: var(--serif); font-style: italic; font-size: 1.3rem; color: var(--olive); }

/* ---------- Marquee ---------- */
.marquee { background: var(--olive); color: var(--cream); overflow: hidden; padding-block: clamp(22px, 3vw, 40px); border-block: 1px solid rgba(250, 238, 220, .16); }
.marquee__track { display: flex; width: max-content; will-change: transform; }
.marquee__group { display: flex; align-items: center; flex-shrink: 0; }
.marquee__group span {
  font-family: var(--serif); font-style: italic; font-weight: 300;
  font-size: clamp(3rem, 8vw, 8.4rem); line-height: 1.05; letter-spacing: -0.02em;
  padding-inline: clamp(20px, 2.6vw, 44px);
}
.marquee__group svg { width: clamp(30px, 4vw, 60px); aspect-ratio: 984 / 1000; height: auto; flex-shrink: 0; --crest-leaf: var(--cream); --crest-bee: var(--gold-soft); }

/* ---------- Services ---------- */
.services { background: var(--ink); padding-top: var(--section); padding-bottom: clamp(72px, 8vw, 120px); overflow: hidden; }
.services__intro { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; margin-bottom: clamp(56px, 7vw, 104px); }
.services__intro .section-label { grid-column: 1 / -1; }
.services__intro .display { grid-column: 1 / span 8; max-width: 14ch; }
.services__lede { grid-column: 9 / span 4; align-self: end; color: var(--on-dark-muted); font-size: 1.08rem; }

.hscroll { position: relative; }
.hscroll__track {
  display: flex; flex-direction: column; gap: 20px;
  padding-inline: var(--gutter); max-width: var(--max); margin-inline: auto;
}
.svc {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-rows: 1fr auto;
  column-gap: clamp(32px, 5vw, 88px); row-gap: 40px;
  padding: clamp(28px, 4vw, 60px);
  background: var(--ink-raised); border: 1px solid var(--line-dark);
  overflow: hidden;
}
.svc::after {
  content: ""; position: absolute; top: 0; left: 0; height: 2px; width: 100%;
  background: var(--gold); transform: scaleX(var(--p, 0)); transform-origin: left;
  transition: transform 1s var(--ease-out);
}
.svc__head { display: flex; flex-direction: column; }
.svc__num { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: clamp(4rem, 8vw, 8rem); line-height: .9; color: var(--gold); margin-bottom: auto; padding-bottom: 32px; }
.svc__title { font-family: var(--serif); font-weight: 300; font-size: clamp(2rem, 3.3vw, 3.3rem); line-height: 1.04; letter-spacing: -0.02em; max-width: 12ch; }
.svc__tag { margin-top: 18px; font-family: var(--serif); font-style: italic; font-size: clamp(1.1rem, 1.4vw, 1.3rem); color: var(--sand); max-width: 26ch; }
.svc__list { align-self: start; }
.svc__list li {
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.25fr); gap: 20px;
  padding-block: 16px; border-top: 1px solid var(--line-dark);
  font-size: 15px; line-height: 1.55; color: var(--on-dark-muted);
}
.svc__list li:last-child { border-bottom: 1px solid var(--line-dark); }
.svc__list strong { font-weight: 500; color: var(--on-dark); }
.svc__outcome {
  grid-column: 1 / -1; display: flex; gap: 20px; align-items: baseline; flex-wrap: wrap;
  font-family: var(--serif); font-size: clamp(1.15rem, 1.5vw, 1.4rem); font-weight: 300; color: var(--on-dark);
}
.svc__outcome span {
  font-family: var(--sans); font-size: 11px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase;
  color: var(--ink); background: var(--gold); padding: 6px 12px; border-radius: 999px; transform: translateY(-2px);
}
.hscroll__progress { display: none; }

/* pinned, horizontal layout (enabled by JS on wide screens) */
.hs-on .hscroll {
  height: 100vh; display: flex; flex-direction: column; justify-content: center;
  padding-top: 76px; padding-bottom: 12px; /* clear the fixed header */
}
.hs-on .hscroll__track { flex-direction: row; align-items: stretch; gap: 28px; max-width: none; margin: 0; width: max-content; padding-right: var(--gutter); will-change: transform; }
/* Cards size to their content; type scales with viewport height so the tallest card always fits */
.hs-on .svc {
  width: min(80vw, 1180px); flex-shrink: 0;
  padding: clamp(22px, 3.6vh, 52px) clamp(28px, 3.4vw, 56px);
  row-gap: clamp(16px, 3vh, 36px);
}
.hs-on .svc__num { font-size: clamp(3rem, 9vh, 7rem); padding-bottom: clamp(12px, 2.4vh, 28px); }
.hs-on .svc__title { font-size: clamp(1.7rem, 4.4vh, 3.1rem); }
.hs-on .svc__tag { margin-top: clamp(8px, 1.6vh, 18px); font-size: clamp(1rem, 2vh, 1.25rem); }
.hs-on .svc__list li { padding-block: clamp(7px, 1.35vh, 14px); font-size: clamp(13px, 1.75vh, 15px); line-height: 1.5; }
.hs-on .svc__outcome { font-size: clamp(1rem, 2.1vh, 1.35rem); }
.hs-on .hscroll__progress {
  display: flex; align-items: center; gap: 24px;
  padding-inline: var(--gutter); margin-top: clamp(14px, 2.6vh, 28px);
  font-size: 12px; letter-spacing: .16em; color: var(--on-dark-faint);
}
.hscroll__count b { font-weight: 500; color: var(--on-dark); }
.hscroll__bar { position: relative; flex: 0 0 min(320px, 30vw); height: 1px; background: var(--line-dark); }
.hscroll__bar i { position: absolute; inset: 0; background: var(--gold); transform: scaleX(0); transform-origin: left; }

/* ---------- Values ---------- */
.values { background: var(--paper); color: var(--on-light); padding-block: var(--section); }
.values__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: start; }
.values__media { grid-column: 1 / span 5; position: sticky; top: 110px; }
.values__img { aspect-ratio: 4 / 5; overflow: hidden; background: var(--sand); }
.values__img picture, .values__img img { width: 100%; height: 100%; }
.values__img img { object-fit: cover; object-position: 62% 50%; transform: scale(1.15); }
.values__media figcaption { margin-top: 16px; font-size: 13px; color: var(--on-light-muted); display: flex; gap: 12px; align-items: center; }
.values__media figcaption::before { content: ""; width: 24px; height: 1px; background: var(--olive); }
.values__content { grid-column: 7 / span 6; padding-top: clamp(0px, 3vw, 48px); }
.values__content .display { margin-bottom: clamp(48px, 6vw, 88px); }
.values__list { border-bottom: 1px solid var(--line-light); }
.value { display: grid; grid-template-columns: 72px 1fr; gap: 12px; padding-block: clamp(28px, 3.2vw, 44px); border-top: 1px solid var(--line-light); }
.value__num { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: 2rem; line-height: 1; color: var(--olive); }
.value h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.55rem, 2.3vw, 2.1rem); line-height: 1.12; letter-spacing: -0.01em; margin-bottom: 12px; }
.value p { color: var(--on-light-muted); max-width: 44ch; }

/* ---------- Why ---------- */
.why { background: var(--ink); padding-block: var(--section); position: relative; overflow: hidden; }
.why__title { font-family: var(--serif); font-weight: 300; font-size: clamp(3.2rem, 10.5vw, 11.5rem); line-height: .94; letter-spacing: -0.035em; display: grid; }
.why__line { display: block; }
.why__line:nth-child(2) { padding-left: clamp(0px, 12vw, 220px); color: var(--gold); }
.why__line:nth-child(3) { padding-left: clamp(0px, 24vw, 440px); }
.reasons { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: clamp(80px, 11vw, 168px); border-top: 1px solid var(--line-dark); }
.reason { position: relative; padding: 32px clamp(16px, 2vw, 32px) 8px; border-left: 1px solid var(--line-dark); }
.reason:first-child { border-left: 0; padding-left: 0; }
.reason::before { content: ""; position: absolute; top: -1px; left: 0; right: 0; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .8s var(--ease-out); }
@media (hover: hover) { .reason:hover::before { transform: scaleX(1); } }
.reason__num { display: block; font-family: var(--serif); font-style: italic; color: var(--gold); margin-bottom: 48px; }
.reason h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.4rem, 1.8vw, 1.7rem); line-height: 1.15; margin-bottom: 14px; max-width: 14ch; }
.reason p { font-size: 15px; color: var(--on-dark-muted); }

/* ---------- Clients ---------- */
.clients { background: var(--cream); color: var(--on-light); padding-block: var(--section); }
.clients__head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; margin-bottom: clamp(48px, 6vw, 88px); }
.clients__head .section-label { grid-column: 1 / -1; }
.clients__head .display { grid-column: 1 / span 9; }
.logos { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid var(--line-light); border-left: 1px solid var(--line-light); }
.logo { position: relative; background: var(--cream); border-right: 1px solid var(--line-light); border-bottom: 1px solid var(--line-light); aspect-ratio: 100 / 62; display: grid; place-items: center; transition: background .5s var(--ease-out); }
.logo__mark {
  display: block; width: var(--w); aspect-ratio: var(--ar); background: var(--ink); opacity: .74;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-position: center; mask-position: center;
  -webkit-mask-size: contain; mask-size: contain;
  transition: background .5s var(--ease-out), opacity .5s var(--ease-out), transform .7s var(--ease-out);
}
@media (hover: hover) {
  .logo:hover { background: var(--paper); }
  .logo:hover .logo__mark { background: var(--olive); opacity: 1; transform: scale(1.06); }
}

/* ---------- Contact ---------- */
.contact { position: relative; background: var(--ink); padding-block: var(--section); overflow: hidden; isolation: isolate; }
.contact__media { position: absolute; inset: 0; z-index: -1; background: var(--gold); }
.contact__media picture, .contact__media img { width: 100%; height: 100%; }
.contact__media img { object-fit: cover; filter: grayscale(1) contrast(1.1) brightness(1.1); mix-blend-mode: multiply; transform: scale(1.12); }
.contact__media::after { content: ""; position: absolute; inset: 0; background: var(--ink); opacity: .78; }
.contact__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: end; }
.contact__intro { grid-column: 1 / span 6; }
.contact__title { font-family: var(--serif); font-weight: 300; font-size: clamp(3.2rem, 8vw, 8.4rem); line-height: .95; letter-spacing: -0.03em; }
.contact__title em { color: var(--gold); }
.contact__lede { margin-top: 32px; color: var(--on-dark-muted); max-width: 34ch; font-size: 1.12rem; }

.contact__panel {
  grid-column: 8 / span 5; display: grid; justify-items: start; gap: 22px;
  padding: clamp(28px, 3.4vw, 52px); background: rgba(26, 26, 25, .82); border: 1px solid var(--line-dark);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.contact__label { font-size: 12px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
.contact__phone {
  font-family: var(--serif); font-weight: 300; font-size: clamp(2rem, 3.6vw, 3.4rem); line-height: 1.05; letter-spacing: -0.01em;
  white-space: nowrap; border-bottom: 1px solid var(--line-dark); padding-bottom: 10px;
  transition: color .3s, border-color .3s;
}
.contact__phone:hover { color: var(--gold); border-color: var(--gold); }
.contact__note { color: var(--on-dark-muted); max-width: 40ch; }

/* ---------- Footer ---------- */
.footer { background: var(--ink-deep); color: var(--on-dark); padding-top: clamp(72px, 9vw, 128px); overflow: hidden; }
.footer__top { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: 32px; padding-bottom: clamp(64px, 8vw, 120px); }
.footer__col h3 { font-size: 12px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin-bottom: 20px; }
.footer__col li + li { margin-top: 8px; }
.footer__col a { color: var(--on-dark-muted); transition: color .3s; }
.footer__col a:hover { color: var(--on-dark); }
.footer__top-btn {
  width: 56px; height: 56px; border-radius: 50%; border: 1px solid var(--line-dark); font-size: 20px;
  transition: background .4s, color .4s, border-color .4s;
}
.footer__top-btn:hover { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.footer__mark { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 40px); border-top: 1px solid var(--line-dark); padding-top: clamp(32px, 4vw, 56px); }
.footer__crest { width: clamp(52px, 9vw, 150px); aspect-ratio: 984 / 1000; height: auto; flex-shrink: 0; }
.footer__word { font-family: var(--serif); font-weight: 300; font-size: clamp(3.4rem, 13.4vw, 14.5rem); line-height: .9; letter-spacing: -0.04em; white-space: nowrap; }
.footer__word em { color: var(--gold); }
.footer__base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: clamp(28px, 3vw, 40px); margin-top: clamp(28px, 4vw, 56px); border-top: 1px solid var(--line-dark); font-size: 13px; color: var(--on-dark-faint); }

/* ---------- Cursor & grain ---------- */
.cursor { display: none; }
.has-cursor .cursor { display: block; position: fixed; top: 0; left: 0; z-index: 800; pointer-events: none; mix-blend-mode: difference; }
.cursor__dot, .cursor__ring { position: absolute; top: 0; left: 0; border-radius: 50%; will-change: transform; }
.cursor__dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: #fff; }
.cursor__ring { width: 40px; height: 40px; margin: -20px 0 0 -20px; border: 1px solid rgba(255, 255, 255, .7); transition: width .4s var(--ease-out), height .4s var(--ease-out), margin .4s var(--ease-out), background-color .4s, opacity .3s; }
.cursor.is-hover .cursor__ring { width: 72px; height: 72px; margin: -36px 0 0 -36px; background: rgba(255, 255, 255, .9); border-color: transparent; }
.cursor.is-hidden .cursor__ring, .cursor.is-hidden .cursor__dot { opacity: 0; }

.grain {
  position: fixed; inset: -50%; z-index: 700; pointer-events: none; opacity: .06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Animation initial states (only when JS animation is active) ---------- */
.anim [data-reveal] { opacity: 0; transform: translateY(32px); }
.anim [data-hero-fade] { opacity: 0; transform: translateY(16px); }
.anim [data-clip] { clip-path: inset(100% 0 0 0); }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .nav { gap: 26px; }
  .reasons { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .reason:nth-child(3) { border-left: 0; padding-left: 0; }
  .reason:nth-child(n+3) { border-top: 1px solid var(--line-dark); }
  .contact__panel { grid-column: 7 / span 6; }
}

@media (max-width: 960px) {
  body { font-size: 16px; }
  .nav, .header__cta { display: none; }
  .menu-toggle { display: block; }
  .header { height: 72px; }
  .header.is-scrolled { height: 64px; }

  .studio__grid { margin-top: 64px; }
  .studio__crest { grid-column: 1 / -1; margin-bottom: 40px; }
  .studio__crest svg { width: 120px; }
  .studio__body { grid-column: 1 / -1; }

  .services__intro .display, .services__lede { grid-column: 1 / -1; }
  .services__lede { margin-top: 28px; max-width: 46ch; }

  .svc { grid-template-columns: 1fr; grid-template-rows: auto; }
  .svc__num { font-size: 3.4rem; padding-bottom: 20px; }
  .svc__list li { grid-template-columns: 1fr; gap: 4px; }

  .values__media { grid-column: 1 / -1; position: relative; top: 0; order: 2; margin-top: 64px; }
  .values__img { aspect-ratio: 4 / 3; }
  .values__content { grid-column: 1 / -1; padding-top: 0; }

  .clients__head .display { grid-column: 1 / -1; }
  .logos { grid-template-columns: repeat(3, minmax(0, 1fr)); }

  .contact__intro, .contact__panel { grid-column: 1 / -1; }
  .contact__panel { margin-top: 56px; }

  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__top-btn { grid-column: 2; justify-self: end; grid-row: 1; }
}

@media (max-width: 600px) {
  .brand__word { font-size: 12px; letter-spacing: .26em; }
  .brand__crest { width: 26px; height: 27px; }
  .hero__title { font-size: clamp(2.7rem, 12.4vw, 3.6rem); }
  .hero__disciplines { flex-direction: column; gap: 8px; }
  .hero__scroll { display: none; }
  .pillar { grid-template-columns: 44px 1fr auto; }
  .pillar__link { width: 38px; height: 38px; }
  .reasons { grid-template-columns: 1fr; }
  .reason, .reason:nth-child(3) { border-left: 0; padding-left: 0; padding-right: 0; }
  .reason + .reason { border-top: 1px solid var(--line-dark); }
  .reason__num { margin-bottom: 20px; }
  .value { grid-template-columns: 52px 1fr; }
  .logos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__top { grid-template-columns: 1fr; }
  .footer__top-btn { grid-column: 1; grid-row: auto; justify-self: start; }
  .footer__base { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .js .loader { display: none; }
}
