/* ANM Construction — two fonts only: Fraunces (headlines) + Golos Text (everything else) */
:root {
  --bg: #f1f0ec;
  --panel: #e7e4de;
  --stone: #c8c0b4;
  --ink: #2e2c27;
  --ink-2: #57544c;
  --ink-stone: #4a473f;
  --mute: #bdbab2;
  --line: rgba(46, 44, 39, 0.24);
  --brass: #c9a36b;
  --brass-2: #d4b27f;
  --white: #fbfaf8;
  --serif: "Fraunces", "Times New Roman", serif;
  --sans: "Golos Text", ui-sans-serif, system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
  --g: clamp(16px, 3.4vw, 48px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
body.locked { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.on-dark :focus-visible, .hero :focus-visible, .phero :focus-visible, .pp :focus-visible { outline-color: var(--white); }
.skip { position: absolute; left: 16px; top: -80px; z-index: 100; background: var(--ink); color: var(--white); padding: 12px 18px; }
.skip:focus { top: 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; padding-left: var(--g); padding-right: var(--g); }
.sec { padding: clamp(96px, 13vw, 200px) 0; }
.sec--s { padding: clamp(64px, 8vw, 120px) 0; }
.sec--stone { background: var(--stone); }
.sec--panel { background: var(--panel); }
.sec--ink { background: var(--ink); color: var(--white); }
.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* Type */
.serif { font-family: var(--serif); font-weight: 300; font-variation-settings: "opsz" 144; }
.xl { font: 300 clamp(60px, 11.2vw, 184px)/0.9 var(--serif); font-variation-settings: "opsz" 144; letter-spacing: -0.028em; word-spacing: 0.04em; margin: 0; }
.h1 { font: 300 clamp(52px, 8.6vw, 148px)/0.94 var(--serif); font-variation-settings: "opsz" 144; letter-spacing: -0.026em; word-spacing: 0.04em; margin: 0; }
.h2 { font: 300 clamp(44px, 6.6vw, 112px)/0.98 var(--serif); font-variation-settings: "opsz" 144; letter-spacing: -0.022em; word-spacing: 0.03em; margin: 0; }
.h3 { font: 300 clamp(34px, 3.8vw, 60px)/1.02 var(--serif); font-variation-settings: "opsz" 144; letter-spacing: -0.02em; margin: 0; }
.h4 { font: 400 clamp(24px, 2.2vw, 32px)/1.15 var(--sans); letter-spacing: -0.015em; margin: 0; }
.lead { font: 400 clamp(19px, 1.55vw, 23px)/1.45 var(--sans); letter-spacing: -0.01em; margin: 0; max-width: 34ch; }
.p { margin: 0; color: var(--ink-2); max-width: 54ch; }
.p + .p { margin-top: 1.1em; }
.sec--stone .p { color: var(--ink-stone); }
.label { font: 500 12px/1.2 var(--sans); letter-spacing: 0.1em; text-transform: uppercase; }
.num { font: 500 14px/1 var(--sans); letter-spacing: 0.02em; color: var(--ink-2); }
.sec--stone .num { color: var(--ink-stone); }
.small { font-size: 14px; color: var(--ink-2); }

/* Statement that fills word by word on scroll (Structure) */
.fill { font: 500 clamp(28px, 3.5vw, 54px)/1.14 var(--sans); letter-spacing: -0.025em; margin: 0; max-width: 26ch; }
.fill .w { color: var(--mute); transition: color 0.35s linear; }
.fill .w.on { color: var(--ink); }

/* Buttons — Mejuma pill + detached circle */
.btn { display: inline-flex; align-items: center; gap: 3px; font: 400 16px/1 var(--sans); }
.btn__t, .btn__i {
  display: inline-flex; align-items: center; justify-content: center; height: 52px; border-radius: 999px;
  background: var(--brass); color: var(--ink); transition: background-color 0.4s var(--ease), transform 0.5s var(--ease);
}
.btn__t { padding: 0 24px; }
.btn__i { width: 52px; }
.btn__i svg { width: 18px; height: 18px; transition: transform 0.5s var(--ease); }
.btn:hover .btn__t, .btn:hover .btn__i { background: var(--brass-2); }
.btn:hover .btn__i svg { transform: translateX(3px); }
.btn:active .btn__t, .btn:active .btn__i { transform: scale(0.97); }
.btn--ink .btn__t, .btn--ink .btn__i { background: var(--ink); color: var(--white); }
.btn--ink:hover .btn__t, .btn--ink:hover .btn__i { background: #45423a; }
.btn--line .btn__t, .btn--line .btn__i { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.btn--line:hover .btn__t, .btn--line:hover .btn__i { background: var(--ink); color: var(--white); }
.btn--white .btn__t, .btn--white .btn__i { background: var(--white); color: var(--ink); }
.btn--white:hover .btn__t, .btn--white:hover .btn__i { background: #fff; }

/* Structure-style square tag / filter */
/* Pills: quiet sentence-case chips; the hairline is the text colour at 40% so they sit back from the buttons */
.tag {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px;
  font: 400 14px/1 var(--sans); letter-spacing: 0;
  border: 1px solid color-mix(in srgb, currentColor 40%, transparent); border-radius: 999px; transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
}
.tag:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }
.tag[aria-pressed="true"] { background: var(--ink); color: var(--white); border-color: var(--ink); }
.on-dark .tag:hover { background: var(--white); color: var(--ink); border-color: var(--white); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }

.arrow-link { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; font: 400 16px/1 var(--sans); }
.arrow-link .dot { width: 40px; height: 40px; border-radius: 50%; background: var(--brass); color: var(--ink); display: grid; place-items: center; transition: transform 0.5s var(--ease); }
.arrow-link .dot svg { width: 16px; height: 16px; }
.arrow-link:hover .dot { transform: translateX(4px); }

/* Nav — one quiet bar: white over the hero photo, page-coloured and dark everywhere else */
.nav {
  position: fixed; z-index: 60; top: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px var(--g); color: var(--ink); background: var(--bg); box-shadow: 0 1px 0 var(--line);
  transition: transform 0.6s var(--ease), background-color 0.5s var(--ease), box-shadow 0.5s var(--ease), color 0.5s var(--ease);
}
.nav--over { background: transparent; box-shadow: 0 1px 0 rgba(251, 250, 248, 0.22); color: var(--white); }
.nav--hide { transform: translateY(-100%); }
.nav__logo { display: flex; align-items: center; height: 48px; }
.nav__mark { display: block; height: 32px; width: auto; fill: currentColor; }
.tabs { display: none; gap: 4px; list-style: none; margin: 0; padding: 0; }
.tabs a { position: relative; display: inline-flex; align-items: center; height: 44px; padding: 0 14px; font: 400 15px/1 var(--sans); opacity: 0.78; transition: opacity 0.3s var(--ease); }
.tabs a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 9px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform 0.5s var(--ease); }
.tabs a:hover, .tabs a[aria-current="page"] { opacity: 1; }
.tabs a:hover::after, .tabs a[aria-current="page"]::after { transform: scaleX(1); }
.nav__right { display: flex; gap: 3px; align-items: center; }
.nav__cta { display: none; }
.nav .btn__t, .nav .btn__i { height: 48px; background: var(--ink); color: var(--white); }
.nav .btn__i { width: 48px; }
.nav .btn:hover .btn__t, .nav .btn:hover .btn__i { background: #45423a; }
.nav--over .btn__t, .nav--over .btn__i { background: var(--white); color: var(--ink); }
.nav--over .btn:hover .btn__t, .nav--over .btn:hover .btn__i { background: #fff; }
.menu-btn { display: inline-flex; gap: 3px; }
.menu-btn span { display: inline-flex; align-items: center; justify-content: center; height: 48px; border-radius: 999px; background: var(--ink); color: var(--white); font: 400 15px/1 var(--sans); transition: background-color 0.3s var(--ease), color 0.3s var(--ease); }
.nav--over .menu-btn span { background: var(--white); color: var(--ink); }
.menu-btn span:first-child { padding: 0 20px; }
.menu-btn span:last-child { width: 48px; }
.menu-btn svg { width: 18px; height: 18px; }
.menu-open .nav { background: var(--bg); color: var(--ink); box-shadow: 0 1px 0 var(--line); transform: none; }
.menu-open .menu-btn span { background: var(--ink); color: var(--white); }

.menu {
  position: fixed; inset: 0; z-index: 55; background: var(--bg); display: flex; flex-direction: column; justify-content: space-between;
  padding: 108px var(--g) 28px; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
  clip-path: inset(0 0 100% 0); visibility: hidden; transition: clip-path 0.8s var(--ease-io), visibility 0s linear 0.8s;
}
.menu-open .menu { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path 0.8s var(--ease-io); }
.menu ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.menu li { border-bottom: 1px solid var(--line); overflow: hidden; }
.menu li a { display: flex; align-items: baseline; gap: 14px; padding: 14px 0 16px; font: 400 clamp(28px, 7.4vw, 44px)/1 var(--sans); letter-spacing: -0.02em; transform: translateY(105%); transition: transform 0.9s var(--ease); }
.menu li a .num { font-size: 12px; transform: translateY(-1.2em); }
.menu-open .menu li a { transform: none; }
.menu-open .menu li:nth-child(2) a { transition-delay: 0.05s; } .menu-open .menu li:nth-child(3) a { transition-delay: 0.1s; }
.menu-open .menu li:nth-child(4) a { transition-delay: 0.15s; } .menu-open .menu li:nth-child(5) a { transition-delay: 0.2s; }
.menu-open .menu li:nth-child(6) a { transition-delay: 0.25s; } .menu-open .menu li:nth-child(7) a { transition-delay: 0.3s; }
.menu-open .menu li:nth-child(8) a { transition-delay: 0.35s; }
.menu__foot { display: grid; gap: 4px; margin-top: 32px; }
.menu__foot a { font: 400 20px/1.3 var(--sans); display: inline-block; min-height: 44px; }

/* Home hero — looping video, giant ANM across the width (Mejuma), latest work along the bottom (Structure) */
.hero { position: relative; color: var(--white); background: #1c1b18; overflow: hidden; }
.hero__media { position: absolute; inset: 0; }
.hero__video { width: 100%; height: 115%; object-fit: cover; will-change: transform; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 19, 16, 0.5), rgba(20, 19, 16, 0.28) 30%, rgba(20, 19, 16, 0.4) 62%, rgba(20, 19, 16, 0.78)); }
.hero__in { position: relative; z-index: 2; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; gap: clamp(24px, 3vw, 44px); padding-top: 110px; padding-bottom: clamp(32px, 4vw, 56px); }
.hero__mark { margin: 0; }
/* License number, small and right-aligned above the wordmark */
.hero__lic { display: block; width: min(100%, (100svh - 360px) * 6.145); margin: 0 auto 0.9em; font: 500 clamp(11px, 1.1vw, 15px)/1 var(--sans); letter-spacing: 0.32em; text-transform: uppercase; text-align: right; opacity: 0; animation: fade 1.2s var(--ease) 0.5s forwards; }
/* Frosted-glass wordmark: the video shows through each letter, blurred, under a soft white tint and a hairline edge */
.glass { position: relative; display: block; width: min(100%, (100svh - 360px) * 6.145); aspect-ratio: 676 / 110; margin: 0 auto; overflow: hidden; }
.glass__l {
  position: absolute; top: 0; bottom: 0;
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0.16) 55%, rgba(255, 255, 255, 0.26));
  -webkit-backdrop-filter: blur(18px) saturate(1.5) brightness(1.12); backdrop-filter: blur(18px) saturate(1.5) brightness(1.12);
  -webkit-mask: var(--m) center / 100% 100% no-repeat; mask: var(--m) center / 100% 100% no-repeat;
  transform: translateY(112%); animation: rise 1.5s var(--ease) forwards;
}
.glass__l--a { left: 0; width: 24.112%; --m: url(../img/mask-a.svg); }
.glass__l--n { left: 36.686%; width: 22.041%; --m: url(../img/mask-n.svg); animation-delay: 0.1s; }
.glass__l--m { left: 73.669%; width: 26.331%; --m: url(../img/mask-m.svg); animation-delay: 0.2s; }
.glass__edge { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke: rgba(255, 255, 255, 0.7); stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.glass__edge path { vector-effect: non-scaling-stroke; transform-box: fill-box; transform: translateY(112%); animation: rise 1.5s var(--ease) forwards; }
.glass__edge path:nth-child(2) { animation-delay: 0.1s; }
.glass__edge path:nth-child(3) { animation-delay: 0.2s; }
@media (prefers-reduced-transparency: reduce) { .glass__l { background: rgba(251, 250, 248, 0.92); } }
@keyframes rise { to { transform: none; } }
.hero__foot { display: grid; gap: 28px; align-items: end; opacity: 0; animation: fade 1.2s var(--ease) 0.7s forwards; }
@keyframes fade { to { opacity: 1; } }
.hero__tag { margin: 0; font: 300 clamp(30px, 3.4vw, 52px)/1.04 var(--serif); font-variation-settings: "opsz" 144; letter-spacing: -0.022em; word-spacing: 0.03em; max-width: 18ch; }
.hero__foot .lead { color: rgba(251, 250, 248, 0.9); max-width: 46ch; }
.hero__work { position: relative; z-index: 2; display: grid; gap: 32px; padding-top: 24px; padding-bottom: clamp(40px, 5vw, 72px); }
.hero__work::before { content: ""; position: absolute; top: 0; left: var(--g); right: var(--g); height: 1px; background: rgba(251, 250, 248, 0.32); }
.hero__cats, .hero__latest { display: grid; gap: 16px; align-content: start; }
.hero__work .label { color: rgba(251, 250, 248, 0.86); }
.hero__work .tag:hover { background: var(--white); color: var(--ink); }
.minis-wrap { position: relative; min-width: 0; }
.minis { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(232px, 74%); -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 80px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 80px), transparent); gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--g); margin: 0 calc(var(--g) * -1); padding: 0 var(--g); scrollbar-width: none; }
.minis::-webkit-scrollbar { display: none; }
.minis-wrap.is-end .minis { -webkit-mask-image: none; mask-image: none; }
.minis__next { position: absolute; z-index: 3; top: 50%; right: calc(12px - var(--g)); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--white); color: var(--ink); box-shadow: 0 8px 24px -10px rgba(20, 19, 16, 0.5); transform: translateY(-50%); transition: opacity 0.4s var(--ease), transform 0.4s var(--ease); }
.minis__next svg { width: 18px; height: 18px; }
.minis__next:active { transform: translateY(-50%) scale(0.94); }
.minis-wrap.is-end .minis__next { opacity: 0; pointer-events: none; }
.mini { scroll-snap-align: start; display: grid; grid-template-columns: 44% 1fr; gap: 16px; padding: 6px; background: var(--white); color: var(--ink); text-align: left; transition: transform 0.6s var(--ease); }
.mini:hover { transform: translateY(-4px); }
.mini__img { aspect-ratio: 5 / 4; overflow: hidden; background: var(--panel); }
.mini__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.mini:hover .mini__img img { transform: scale(1.06); }
.mini__txt { display: flex; flex-direction: column; justify-content: space-between; padding: 6px 6px 4px 0; }
.mini__txt .label { color: var(--ink-2); font-size: 11px; }
.mini__t { font: 500 17px/1.2 var(--sans); letter-spacing: -0.01em; }

/* Full-bleed image with large type (Structure) */
.feat { position: relative; color: var(--white); background: #1c1b18; overflow: hidden; }
.feat__bg { position: absolute; inset: 0; }
.feat__bg img { width: 100%; height: 120%; object-fit: cover; will-change: transform; }
.feat__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20, 19, 16, 0.2), rgba(20, 19, 16, 0) 40%, rgba(20, 19, 16, 0.45) 75%), linear-gradient(180deg, rgba(20, 19, 16, 0.6), rgba(20, 19, 16, 0.4) 55%, rgba(20, 19, 16, 0.55)); }
.feat__in { position: relative; z-index: 2; min-height: 92vh; min-height: 92svh; display: grid; gap: 40px; align-content: start; padding-top: clamp(80px, 9vw, 140px); padding-bottom: clamp(80px, 9vw, 140px); }
.feat__h { max-width: 11ch; }
.feat__p { gap: 18px; font: 400 17px/1.6 var(--sans); color: rgba(251, 250, 248, 0.92); max-width: 44ch; }
.feat__p p { margin: 0; }
.feat :focus-visible { outline-color: var(--white); }

/* Page hero (inner pages) */
.phero { position: relative; min-height: 86vh; min-height: 86svh; color: var(--white); background: #1c1b18; display: flex; align-items: flex-end; overflow: hidden; }
.phero__img { position: absolute; inset: 0; }
.phero__img img { width: 100%; height: 115%; object-fit: cover; will-change: transform; }
.phero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 19, 16, 0.42), rgba(20, 19, 16, 0.3) 45%, rgba(20, 19, 16, 0.62)); }
.phero__in { position: relative; z-index: 2; padding-top: 140px; padding-bottom: clamp(32px, 4.4vw, 56px); width: 100%; display: grid; gap: 22px; }
.phero .h1 { max-width: 13ch; }
.phero .label { color: rgba(251, 250, 248, 0.86); }
.ptitle { padding-top: clamp(150px, 16vw, 220px); padding-bottom: clamp(32px, 4vw, 56px); }

/* Grid helpers */
.grid { display: grid; gap: 28px; }
.stack { display: grid; gap: 24px; align-content: start; }

/* Two-label rule row (Structure "Creativity / Practicality") */
.pair { display: flex; justify-content: space-between; padding-top: 14px; border-top: 1px solid var(--ink); margin-top: clamp(64px, 9vw, 140px); }

/* Mono column copy (Structure) */
.mono-copy { font: 400 17px/1.6 var(--sans); color: var(--ink-2); max-width: 42ch; margin: 0; }
.mono-copy + .mono-copy { margin-top: 1.4em; }

/* Image reveal — clip from bottom, settle scale */
.img { position: relative; overflow: hidden; background: var(--panel); }
.img img { width: 100%; height: 100%; object-fit: cover; }
/* The clip sits on the img, not the observed wrapper: IntersectionObserver ignores fully clipped targets */
.js .img--reveal img { clip-path: inset(100% 0 0 0); transform: scale(1.18); transition: clip-path 1.3s var(--ease-io), transform 1.8s var(--ease); }
.js .img--reveal.in img { clip-path: inset(0 0 0 0); transform: none; }

/* Text reveal */
.js .rv { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); }
.js .rv.in { opacity: 1; transform: none; }
.js .rv[data-d="1"] { transition-delay: 0.1s; } .js .rv[data-d="2"] { transition-delay: 0.2s; } .js .rv[data-d="3"] { transition-delay: 0.3s; }

/* Scroll-linked marquee heading (Mejuma) */
.mq { overflow: hidden; white-space: nowrap; }
.mq__t { display: inline-flex; gap: 0.3em; font: 300 clamp(72px, 11.5vw, 190px)/1.02 var(--serif); font-variation-settings: "opsz" 144; letter-spacing: -0.04em; will-change: transform; padding-bottom: 0.08em; }

/* Project cards (Mejuma) */
.cards { display: grid; gap: 24px; }
.card { display: grid; text-align: left; width: 100%; background: var(--panel); }
.card .img { aspect-ratio: 3 / 2; }
.card__body { padding: 22px 22px 26px; display: grid; gap: 14px; }
.card__top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.card__title { font: 400 clamp(22px, 2vw, 30px)/1.15 var(--sans); letter-spacing: -0.015em; }
.card__go { flex: none; width: 48px; height: 48px; border-radius: 50%; background: var(--brass); color: var(--ink); display: grid; place-items: center; transition: transform 0.5s var(--ease); }
.card__go svg { width: 18px; height: 18px; }
.card:hover .card__go { transform: translateX(4px); }
.js .card:hover .img--reveal.in img { transform: scale(1.03); }
.spec { display: grid; gap: 6px; margin: 0; }
.spec div { display: flex; justify-content: space-between; gap: 16px; }
.spec dt, .spec dd { margin: 0; font-size: 16px; }
.spec dt { color: var(--ink-2); }
.card[hidden] { display: none; }

/* Closing statement: open type under a hairline, no box */
/* Heading with its button: stacked and left-aligned on phones, button bottom-right on desktop */
.headrow { display: grid; gap: 28px; justify-items: start; margin-bottom: clamp(56px, 7vw, 104px); }
.band { display: grid; gap: 32px; align-items: end; border-top: 1px solid var(--ink); padding-top: clamp(28px, 3vw, 44px); }
.band .h3 { font-size: clamp(44px, 6.6vw, 112px); line-height: 0.98; letter-spacing: -0.022em; max-width: 14ch; text-wrap: balance; }

/* Numbered rows (Mejuma process) */
.rows { border-top: 1px solid var(--line); }
.nrow { display: grid; gap: 14px; padding: clamp(28px, 3.4vw, 48px) 0; border-bottom: 1px solid var(--line); }
/* Row hover: the content glides right and an ink line draws across. Motion sits on the children
   because .rv owns the row's own transform/transition for the scroll reveal. */
a.nrow { position: relative; }
a.nrow > * { transition: transform 0.8s var(--ease); }
a.nrow:hover > :first-child { transform: translateX(14px); }
a.nrow:hover > .nrow__side { transform: translateX(-6px); }
a.nrow::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform 0.9s var(--ease); }
a.nrow:hover::after, a.nrow:focus-visible::after { transform: scaleX(1); }
a.nrow:hover .dot { transform: translateX(4px); }
.nrow__word { font: 300 clamp(52px, 7.4vw, 120px)/0.95 var(--serif); font-variation-settings: "opsz" 144; letter-spacing: -0.035em; }
.nrow__side { display: grid; gap: 18px; align-content: start; }

/* Feature cards over full-bleed photo (Mejuma "why") */
.why { position: relative; color: var(--ink); overflow: hidden; }
.why__bg { position: absolute; inset: 0; background: #a37e62; } /* the photo's own average color while it loads */
.why__bg img { width: 100%; height: 120%; object-fit: cover; will-change: transform; }
.why__bg::after { content: ""; position: absolute; inset: 0; background: rgba(20, 19, 16, 0.3); }
.why .mq { position: relative; color: var(--white); padding-top: clamp(64px, 8vw, 120px); }
.why__h { grid-column: 1 / -1; margin: 0 0 clamp(8px, 1.5vw, 20px); color: var(--white); font-size: clamp(52px, 6vw, 96px); }
/* Services marquee: the row loops on its own and the scroll drift rides on top */
.mq--svc .mq__t { font-size: clamp(48px, 7.4vw, 124px); }
.mq__run { display: inline-flex; align-items: center; gap: 0.4em; padding-right: 0.4em; animation: mqrun 80s linear infinite; }
.mq__run--right { animation-direction: reverse; }
@keyframes mqrun { to { transform: translateX(-50%); } }
.mq__dot { flex: none; width: 0.15em; height: 0.15em; border-radius: 50%; background: var(--brass); }
.why__cards { position: relative; display: grid; gap: 16px; padding-top: clamp(32px, 5vw, 80px); padding-bottom: clamp(80px, 10vw, 160px); max-width: 920px; margin: 0 auto; }
.why__card { background: var(--panel); padding: clamp(28px, 3.4vw, 48px); display: grid; gap: 12px; align-content: start; }
.why__card .p { font-size: 16px; }

/* Story (Mejuma split) */
.story__head { font: 300 clamp(48px, 7.6vw, 128px)/0.98 var(--serif); font-variation-settings: "opsz" 144; letter-spacing: -0.035em; margin: 0 auto; text-align: center; max-width: 14ch; }
.story { display: grid; gap: 40px; margin-top: clamp(48px, 6vw, 96px); }
.story .img { aspect-ratio: 1 / 1; }

/* Clients — hairline logo grid (Structure) */
/* Partners wall — three columns of logo tiles drifting in opposite directions (Thirdway) */
.partners__in { display: grid; gap: 48px; align-items: center; }
.partners__text { gap: 24px; max-width: 30rem; }
.pwall { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; height: clamp(440px, 46vw, 680px); overflow: hidden; -webkit-mask-image: linear-gradient(transparent, #000 14%, #000 86%, transparent); mask-image: linear-gradient(transparent, #000 14%, #000 86%, transparent); }
.pcol { overflow: hidden; }
.pcol__t { display: grid; gap: 12px; animation: pdrift 42s linear infinite; }
.pcol:nth-child(2) .pcol__t { animation-duration: 48s; animation-direction: reverse; }
.pcol:nth-child(3) .pcol__t { animation-duration: 54s; animation-delay: -12s; }
.pcol__dup { display: contents; }
@keyframes pdrift { to { transform: translateY(calc(-50% - 6px)); } }
.ptile { aspect-ratio: 1; background: var(--panel); display: grid; place-items: center; padding: 18%; }
.ptile img { max-height: 46px; max-width: 100%; width: auto; filter: grayscale(1); mix-blend-mode: multiply; opacity: 0.8; }

/* Door: the photo grows from an inset frame to full screen, then the first panel slides over it.
   Defaults are the finished, full-screen state, so no-JS and reduced motion get a plain photo. */
.sec--into-door { padding-bottom: clamp(16px, 3vw, 40px); }
.sec--into-door .split { display: grid; gap: 1.4em; }
.door { position: relative; height: 270vh; height: 270svh; margin-bottom: -100vh; margin-bottom: -100svh; }
.door__pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; color: var(--white); }
.door__img { position: absolute; inset: 0; background: #1c1b18; clip-path: inset(var(--t, 0px) var(--r, 0px) var(--b, 0px) var(--l, 0px)); }
.door__img img { width: 100%; height: 100%; object-fit: cover; transform: scale(calc(1.16 - var(--k, 1) * 0.16)); }
.door__img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 19, 16, 0.12), rgba(20, 19, 16, 0) 40%, rgba(20, 19, 16, 0.66)); opacity: var(--x, 1); }
.door__pin::after { content: ""; position: absolute; inset: 0; background: #141310; opacity: calc(var(--p, 0) * 0.6); pointer-events: none; }
/* The heading rides the bottom-left of the visible frame, so it can show while the photo is still small */
.door__txt { position: absolute; z-index: 1; left: var(--l, 0px); right: var(--r, 0px); bottom: calc(var(--b, 0px) + clamp(24px, 4vw, 56px)); display: grid; gap: 16px; justify-items: start; opacity: var(--x, 1); transform: translateY(calc((1 - var(--x, 1)) * 28px)); }
.door__txt .h2 { color: var(--white); }
.door__txt .lead { max-width: 34ch; color: rgba(251, 250, 248, 0.86); }
@media (prefers-reduced-motion: reduce) { .door { height: auto; margin-bottom: 0; } }

/* Project scroller — full-screen panels that stack (Thirdway) */
.scroller__head { display: grid; gap: 20px; justify-items: center; text-align: center; }
.scroller__head .lead { max-width: 34ch; color: var(--ink-2); }
.pp { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; color: var(--white); background: #1c1b18; }
.pp__bg { position: absolute; inset: 0; transform: scale(calc(1 - var(--p, 0) * 0.06)); transform-origin: 50% 0; }
.pp__bg img { width: 100%; height: 100%; object-fit: cover; }
.pp__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 19, 16, 0.25), rgba(20, 19, 16, 0.1) 35%, rgba(20, 19, 16, 0.72)); }
.pp::after { content: ""; position: absolute; inset: 0; background: #141310; opacity: calc(var(--p, 0) * 0.6); pointer-events: none; }
.pp__in { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: clamp(32px, 4vw, 56px); }
/* Phones: lift the text block so its button is still on screen while the next panel slides in */
@media (max-width: 999px) { .pp__in { padding-bottom: clamp(88px, 15svh, 150px); } }
.pp__grid { display: grid; gap: 24px; padding-top: 14px; border-top: 1px solid rgba(251, 250, 248, 0.36); }
/* Counter as a label pair under the hairline, like INTEGRITY / PRIDE */
.pp__bar { grid-column: 1 / -1; display: flex; justify-content: space-between; color: rgba(251, 250, 248, 0.86); margin-bottom: 4px; }
.pp__main { display: grid; gap: 22px; }
.pp__t { margin: 0; font: 300 clamp(44px, 7vw, 116px)/0.96 var(--serif); font-variation-settings: "opsz" 144; letter-spacing: -0.03em; word-spacing: 0.03em; }
.pp__meta { margin: 0; display: flex; gap: 40px; font: 400 15px/1.4 var(--sans); }
.pp__meta dt { color: rgba(251, 250, 248, 0.72); }
.pp__meta dd { margin: 0; }
.pp__side { display: grid; gap: 20px; justify-items: start; }
.pp__thumbs { display: none; }


/* Restoration — serif headline + oversized serif phone */
.restore { display: grid; gap: 40px; align-items: end; }
.restore__phone { display: inline-block; font: 300 clamp(48px, 7vw, 112px)/1 var(--serif); font-variation-settings: "opsz" 144; letter-spacing: -0.03em; border-bottom: 1px solid var(--ink); padding-bottom: 0.08em; transition: color 0.4s var(--ease), border-color 0.4s var(--ease); }
.restore__phone:hover { color: var(--ink-stone); border-color: var(--ink-stone); }

/* Service rows with image */
.srows { display: grid; gap: clamp(88px, 11vw, 168px); }
.srow { display: grid; gap: 28px; align-items: start; }
.srow .img { aspect-ratio: 4 / 3; }
.srow__text { display: grid; gap: 18px; align-content: start; }
.ticks { list-style: none; margin: 8px 0 0; padding: 0; border-top: 1px solid var(--line); }
.ticks li { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 16px; color: var(--ink-2); display: flex; gap: 16px; }
.ticks li::before { content: "—"; color: var(--ink-2); }

/* Spec table (credentials, contact) */
.table { border-top: 1px solid var(--ink); }
.table > div { display: grid; gap: 4px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.table dt { margin: 0; }
.table dd { margin: 0; font: 300 clamp(24px, 2.4vw, 36px)/1.15 var(--serif); font-variation-settings: "opsz" 144; letter-spacing: -0.01em; }
.table dd a { transition: color 0.3s var(--ease); }
.table dd a:hover { color: var(--ink-2); }

/* Form — underline fields */
.form { display: grid; gap: 8px; }
.field { display: grid; gap: 6px; padding-top: 10px; }
.field label { font: 500 12px/1 var(--sans); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2); }
.field input, .field textarea {
  width: 100%; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--ink);
  font: 400 20px/1.4 var(--sans); padding: 10px 0 12px; min-height: 52px; border-radius: 0; transition: border-color 0.3s var(--ease);
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--ink); }
.form__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 20px; }
.form__status { margin: 0; min-height: 1.5em; font-size: 15px; color: var(--ink); }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 80; background: var(--bg); display: grid; grid-template-rows: auto 1fr auto; opacity: 0; visibility: hidden; transition: opacity 0.5s var(--ease), visibility 0s linear 0.5s; }
.lightbox.is-open { opacity: 1; visibility: visible; transition: opacity 0.5s var(--ease); }
.lightbox__bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px var(--g); border-bottom: 1px solid var(--line); }
.lightbox__title { font: 300 clamp(26px, 2.6vw, 40px)/1.1 var(--serif); font-variation-settings: "opsz" 144; }
.lightbox__stage { display: grid; place-items: center; padding: 24px var(--g); min-height: 0; }
.lightbox__stage img { max-height: 100%; max-width: 100%; width: auto; object-fit: contain; }
.lightbox__foot { display: flex; justify-content: space-between; align-items: center; padding: 16px var(--g) 24px; border-top: 1px solid var(--line); }
.cbtn { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--brass); color: var(--ink); transition: transform 0.4s var(--ease), background-color 0.3s var(--ease); }
.cbtn:hover { background: var(--brass-2); }
.cbtn:active { transform: scale(0.95); }
.cbtn svg { width: 18px; height: 18px; }
.cbtn--ink { background: var(--ink); color: var(--white); }
.cbtn--ink:hover { background: #45423a; }
.cbtn[hidden] { visibility: hidden; }

/* Footer (Mejuma: links + serif contact + giant wordmark) */
.footer { padding: clamp(64px, 8vw, 120px) 0 28px; border-top: 1px solid var(--line); }
.footer__top { display: grid; gap: 40px; }
.footer__photo { position: relative; aspect-ratio: 16 / 10; max-width: 440px; }
.footer__photo .btn { position: absolute; left: 20px; bottom: 20px; }
.footer__links { list-style: none; padding: 0; margin: 0; }
.footer__links a { display: inline-flex; align-items: center; min-height: 44px; font: 400 22px/1.2 var(--sans); letter-spacing: -0.01em; transition: color 0.3s var(--ease); }
.footer__links a:hover { color: var(--ink-2); }
.footer__contact { display: grid; gap: 22px; align-content: start; }
.footer__contact a, .footer__contact span.serif { display: inline-block; font-size: clamp(24px, 2.2vw, 32px); line-height: 1.2; letter-spacing: -0.01em; }
.footer__contact .small { display: block; margin-bottom: 6px; }
.wordmark { margin-top: clamp(56px, 8vw, 120px); display: grid; }
.wordmark__svg { display: block; width: 100%; height: auto; fill: currentColor; }
.wordmark__sub { justify-self: end; font: 400 clamp(20px, 3.2vw, 52px)/1 var(--sans); letter-spacing: -0.03em; margin-top: 0.5em; text-align: right; }
.footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 40px; font-size: 14px; color: var(--ink-2); }

/* ≥ 720 */
@media (min-width: 720px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .why__cards { grid-template-columns: 1fr 1fr; }
  .footer__top { grid-template-columns: 1fr 1fr; }
}

/* ≥ 1000 */
@media (min-width: 1000px) {
  .tabs { display: flex; }
  .nav__cta { display: inline-flex; }
  .menu-btn { display: none; }
  .hero__foot { grid-template-columns: 1.15fr 1fr auto; gap: 48px; }
  .hero__foot > .stack { display: contents; }
  .minis { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); overflow: visible; margin: 0; padding: 0; -webkit-mask-image: none; mask-image: none; }
  .minis__next { display: none; }
  .partners__in { grid-template-columns: repeat(12, 1fr); gap: 0 24px; }
  .partners__text { grid-column: 1 / span 5; }
  .pwall { grid-column: 7 / span 6; }
  .pp__grid { grid-template-columns: repeat(12, 1fr); gap: 0 24px; align-items: start; }
  .pp__bar { margin-bottom: 28px; }
  .pp__main { grid-column: 1 / span 8; }
  .pp__side { grid-column: 9 / span 4; justify-items: end; padding-top: 0.9em; }
  .pp__thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; width: 100%; }
  .pp__thumbs span { aspect-ratio: 4 / 3; overflow: hidden; background: rgba(251, 250, 248, 0.1); }
  .pp__thumbs img { width: 100%; height: 100%; object-fit: cover; }
  .feat__in { grid-template-columns: repeat(12, 1fr); gap: 0 24px; }
  .feat__h { grid-column: 1 / span 7; }
  .feat__p { grid-column: 9 / span 4; padding-top: 0.6em; }
  .headrow { grid-template-columns: 1fr auto; align-items: end; gap: 24px; }
  .split { display: grid; grid-template-columns: repeat(12, 1fr); gap: 0 24px; }
  .split__l { grid-column: 1 / span 5; }
  .split__r { grid-column: 7 / span 6; }
  .split__r--wide { grid-column: 6 / span 7; }
  .nrow { grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
  .nrow__side { padding-top: 22px; }
  .band { grid-template-columns: 1fr auto; }
  .restore { grid-template-columns: 1fr auto; gap: 64px; }
  .story { grid-template-columns: repeat(12, 1fr); gap: 24px; }
  .story .img { grid-column: 1 / span 5; }
  .story__text { grid-column: 7 / span 6; display: grid; align-content: space-between; gap: 40px; }
  .srow { grid-template-columns: repeat(12, 1fr); gap: 24px; }
  .srow .img { grid-column: 1 / span 7; }
  .srow__text { grid-column: 9 / span 4; }
  .srow:nth-child(even) .img { grid-column: 6 / span 7; order: 2; }
  .srow:nth-child(even) .srow__text { grid-column: 1 / span 4; }
  .footer__top { grid-template-columns: 5fr 3fr 4fr; }
}

@media (min-width: 1280px) {
  .cards--3 { grid-template-columns: repeat(3, 1fr); }
  .hero__work { grid-template-columns: repeat(12, 1fr); gap: 0 24px; }
  .hero__cats { grid-column: 1 / span 4; }
  .hero__latest { grid-column: 5 / span 8; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-delay: 0s !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; }
  .js .rv, .js .img--reveal, .js .img--reveal img { opacity: 1; transform: none; clip-path: none; }
  .fill .w { color: var(--ink); }
  .pcol__t, .mq__run { animation: none; }
  .pcol__dup { display: none; }
}
