/* ==========================================================================
   Secret Cave — design system
   Dark "cave" sections alternate with warm cream sections; gold is the light
   that leaks through the door.
   ========================================================================== */

:root {
  --black: #0b0a08;
  --ink: #13110e;
  --ink-2: #1c1915;
  --line-dark: rgba(232, 214, 178, .14);
  --gold: #c9a46a;
  --gold-light: #e6cc97;
  --gold-deep: #9c7a45;
  --cream: #f4efe7;
  --cream-2: #ebe3d6;
  --line-light: rgba(27, 24, 19, .14);
  --text-on-dark: #efe6d8;
  --muted-on-dark: rgba(239, 230, 216, .6);
  --text-on-light: #1b1813;
  --muted-on-light: #6b6257;

  --serif: 'Cormorant Garamond', 'Times New Roman', serif;
  --sans: 'Jost', 'Helvetica Neue', Arial, sans-serif;

  --gutter: clamp(20px, 4vw, 56px);
  --max: 1440px;
  --section: clamp(88px, 12vw, 180px);
  --radius: 2px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --header-h: 84px;
}

/* -------------------------------------------------------------------------- */
/* Base                                                                       */
/* -------------------------------------------------------------------------- */

*, *::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; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--black);
  color: var(--text-on-dark);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.7;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, p, figure, blockquote, ul { margin: 0; }
ul { padding: 0; list-style: none; }
address { font-style: normal; }
::selection { background: var(--gold); color: var(--black); }

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

.skip-link {
  position: fixed; left: 16px; top: -60px; z-index: 200;
  background: var(--gold); color: var(--black); padding: 10px 16px;
}
.skip-link:focus { top: 16px; }

:focus-visible { outline: 1px solid var(--gold); outline-offset: 4px; }

/* -------------------------------------------------------------------------- */
/* Typography                                                                 */
/* -------------------------------------------------------------------------- */

.display, .h1, .h2, .h3 {
  font-family: var(--serif);
  font-weight: 300;
  line-height: 1.02;
  letter-spacing: -.01em;
}
.display { font-size: clamp(3.1rem, 8.4vw, 8.6rem); }
.h1 { font-size: clamp(2.8rem, 6.4vw, 6.4rem); }
.h2 { font-size: clamp(2.3rem, 4.6vw, 4.6rem); line-height: 1.06; }
.h3 { font-size: clamp(1.6rem, 2.4vw, 2.3rem); line-height: 1.15; }
.display em, .h1 em, .h2 em, .h3 em { font-style: italic; color: var(--gold); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--sans);
  font-size: 12px; font-weight: 400;
  letter-spacing: .32em; text-transform: uppercase;
  color: var(--gold);
}
.eyebrow::before { content: ''; width: 34px; height: 1px; background: currentColor; opacity: .7; }
.eyebrow--center { justify-content: center; }
.eyebrow--center::after { content: ''; width: 34px; height: 1px; background: currentColor; opacity: .7; }

.lead p + p { margin-top: 1em; }
.lead { font-size: clamp(1.05rem, 1.35vw, 1.25rem); line-height: 1.75; color: var(--muted-on-dark); max-width: 38em; }
.muted { color: var(--muted-on-dark); }

.prose { color: var(--muted-on-dark); max-width: 40em; }
.prose p + p, .prose ul, .prose ol, .prose h2, .prose h3, .prose blockquote { margin-top: 1.2em; }
.prose h2, .prose h3 { font-family: var(--serif); font-weight: 400; color: var(--text-on-dark); line-height: 1.2; }
.prose h2 { font-size: 2rem; }
.prose h3 { font-size: 1.5rem; }
.prose strong { color: var(--text-on-dark); font-weight: 500; }
.prose a { color: var(--gold); border-bottom: 1px solid currentColor; }
.prose ul { list-style: none; padding: 0; }
.prose li { position: relative; padding-left: 1.6em; }
.prose li::before { content: ''; position: absolute; left: 0; top: .85em; width: .7em; height: 1px; background: var(--gold); }
.prose blockquote { font-family: var(--serif); font-style: italic; font-size: 1.5rem; color: var(--text-on-dark); border-left: 1px solid var(--gold); padding-left: 1em; }

/* Split-text masks (filled in by JS) */
.line-mask { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.line-mask > span { display: inline-block; will-change: transform; }

/* -------------------------------------------------------------------------- */
/* Light sections                                                             */
/* -------------------------------------------------------------------------- */

.section { position: relative; padding: var(--section) 0; }
.section--tight { padding: calc(var(--section) * .6) 0; }
.section--ink { background: var(--ink); }
.section--light {
  background: var(--cream);
  color: var(--text-on-light);
}
.section--light .lead, .section--light .muted, .section--light .prose { color: var(--muted-on-light); }
.section--light .prose h2, .section--light .prose h3, .section--light .prose strong, .section--light .prose blockquote { color: var(--text-on-light); }
.section--light .eyebrow { color: var(--gold-deep); }
.section--light .display em, .section--light .h1 em, .section--light .h2 em, .section--light .h3 em { color: var(--gold-deep); }
.section--light ::selection { background: var(--black); color: var(--cream); }

.section-head { display: grid; gap: 26px; margin-bottom: clamp(48px, 7vw, 96px); }
.section-head--split { grid-template-columns: 1fr; align-items: end; }
@media (min-width: 900px) {
  .section-head--split { grid-template-columns: 1.1fr .9fr; gap: 64px; }
}
.section-head--center { text-align: center; justify-items: center; }

/* -------------------------------------------------------------------------- */
/* Buttons & links                                                            */
/* -------------------------------------------------------------------------- */

.btn {
  --btn-fg: var(--black);
  --btn-bg: var(--gold);
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  min-height: 56px; padding: 0 34px;
  font-family: var(--sans); font-size: 12px; font-weight: 400;
  letter-spacing: .26em; text-transform: uppercase;
  color: var(--btn-fg); background: var(--btn-bg);
  border: 1px solid var(--btn-bg);
  border-radius: var(--radius);
  overflow: hidden; isolation: isolate;
  transition: color .6s var(--ease), border-color .6s var(--ease);
}
.btn::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: var(--gold-light);
  transform: scaleX(0); transform-origin: center;
  transition: transform .7s var(--ease);
}
.btn:hover::before { transform: scaleX(1); }
.btn svg { width: 16px; height: 16px; transition: transform .6s var(--ease); }
.btn:hover svg { transform: translateX(4px); }

.btn--ghost { --btn-fg: var(--gold); background: transparent; border-color: rgba(201, 164, 106, .5); }
.btn--ghost::before { background: var(--gold); }
.btn--ghost:hover { color: var(--black); border-color: var(--gold); }
.section--light .btn--ghost { --btn-fg: var(--text-on-light); border-color: var(--line-light); }
.section--light .btn--ghost::before { background: var(--black); }
.section--light .btn--ghost:hover { color: var(--cream); border-color: var(--black); }
.btn--sm { min-height: 44px; padding: 0 22px; font-size: 11px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 12px; letter-spacing: .26em; text-transform: uppercase;
  color: var(--gold);
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  padding-bottom: 6px;
  transition: background-size .7s var(--ease);
}
.link-arrow:hover { background-size: 100% 1px; }
.link-arrow svg { width: 14px; height: 14px; transition: transform .6s var(--ease); }
.link-arrow:hover svg { transform: translateX(5px); }
.section--light .link-arrow { color: var(--gold-deep); }

/* -------------------------------------------------------------------------- */
/* Intro, curtain, grain, cursor glow                                         */
/* -------------------------------------------------------------------------- */

.intro { position: fixed; inset: 0; z-index: 120; pointer-events: none; display: none; }
.js .intro.is-active { display: block; }
.intro__panel { position: absolute; top: 0; bottom: 0; width: 50.5%; background: var(--black); }
.intro__panel--l { left: 0; }
.intro__panel--r { right: 0; }
.intro__mark { position: absolute; inset: 0; display: grid; place-items: center; }
.intro__logo { width: clamp(90px, 12vw, 140px); }
.intro__logo .m-line { stroke-dasharray: 1; stroke-dashoffset: 1; }
.intro__logo .m-door, .intro__logo .m-glow { opacity: 0; }
.intro__beam {
  position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; transform: translateX(-50%) scaleY(0);
  background: linear-gradient(transparent, var(--gold-light), transparent);
  box-shadow: 0 0 40px 6px rgba(230, 204, 151, .35);
}

.curtain {
  position: fixed; inset: 0; z-index: 110; pointer-events: none;
  background: var(--black);
  transform: scaleY(0); transform-origin: bottom;
}
.curtain__line { position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--gold); opacity: .6; }

.grain {
  position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: .055;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -1%); }
  80% { transform: translate(3%, 3%); }
}

.cursor-glow {
  position: fixed; left: 0; top: 0; z-index: 1; pointer-events: none;
  width: 520px; height: 520px; margin: -260px 0 0 -260px; border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 164, 106, .10), rgba(201, 164, 106, 0) 65%);
  opacity: 0; transition: opacity .8s var(--ease);
  mix-blend-mode: screen;
}
.cursor-glow.is-visible { opacity: 1; }
@media (hover: none), (pointer: coarse) { .cursor-glow { display: none; } }

/* -------------------------------------------------------------------------- */
/* Header & menu                                                              */
/* -------------------------------------------------------------------------- */

.header {
  position: fixed; inset: 0 0 auto; z-index: 100;
  height: var(--header-h);
  transition: transform .7s var(--ease), background-color .6s var(--ease), border-color .6s var(--ease), height .6s var(--ease);
  border-bottom: 1px solid transparent;
}
.header.is-scrolled {
  --header-h: 72px;
  background: rgba(11, 10, 8, .86);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-color: var(--line-dark);
}
.header.is-hidden { transform: translateY(-100%); }
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 14px; }
.brand__mark { width: 34px; height: auto; transition: transform .8s var(--ease); }
.brand:hover .brand__mark { transform: rotate(-6deg) scale(1.05); }
.brand__word {
  font-family: var(--sans); font-weight: 300; font-size: 14px;
  letter-spacing: .42em; text-transform: uppercase; color: var(--gold-light);
  white-space: nowrap;
}

.nav { display: none; gap: 42px; }
.nav__link {
  position: relative; padding: 8px 0;
  font-size: 12px; letter-spacing: .26em; text-transform: uppercase;
  color: var(--muted-on-dark);
  transition: color .5s var(--ease);
}
.nav__link::after {
  content: ''; position: absolute; left: 50%; right: 50%; bottom: 0; height: 1px;
  background: var(--gold); transition: left .6s var(--ease), right .6s var(--ease);
}
.nav__link:hover, .nav__link.is-active { color: var(--text-on-dark); }
.nav__link:hover::after, .nav__link.is-active::after { left: 0; right: 0; }

.header__actions { display: flex; align-items: center; gap: 20px; }
.header__phone { display: none; font-size: 13px; letter-spacing: .08em; color: var(--muted-on-dark); transition: color .4s; }
.header__phone:hover { color: var(--gold); }
.header__cta { display: none; }

.burger { position: relative; width: 44px; height: 44px; z-index: 102; }
.burger span {
  position: absolute; left: 10px; right: 10px; height: 1px; background: var(--gold-light);
  transition: transform .6s var(--ease), top .6s var(--ease);
}
.burger span:nth-child(1) { top: 18px; }
.burger span:nth-child(2) { top: 26px; left: 18px; }
.menu-open .burger span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.menu-open .burger span:nth-child(2) { top: 22px; left: 10px; transform: rotate(-45deg); }

@media (min-width: 1024px) {
  .nav { display: flex; }
  .header__cta { display: inline-flex; }
  .burger { display: none; }
}
@media (min-width: 1280px) { .header__phone { display: inline; } }
@media (max-width: 520px) { .brand__word { font-size: 12px; letter-spacing: .32em; } }

.menu { position: fixed; inset: 0; z-index: 99; visibility: hidden; }
.menu__bg { position: absolute; inset: 0; background: var(--black); clip-path: inset(0 50% 0 50%); }
.menu__inner {
  position: relative; height: 100%;
  display: flex; flex-direction: column; justify-content: center; gap: 56px;
  padding-top: var(--header-h);
}
.menu__nav { display: grid; gap: 8px; }
.menu__link {
  display: flex; align-items: baseline; gap: 18px;
  font-family: var(--serif); font-weight: 300; font-size: clamp(2.8rem, 12vw, 4.4rem); line-height: 1.1;
  opacity: 0; transform: translateY(30px);
}
.menu__link small { font-family: var(--sans); font-size: 11px; letter-spacing: .2em; color: var(--gold); }
.menu__meta { display: grid; gap: 6px; font-size: 14px; color: var(--muted-on-dark); opacity: 0; }

/* -------------------------------------------------------------------------- */
/* Hero                                                                       */
/* -------------------------------------------------------------------------- */

.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: flex-end;
  overflow: hidden; isolation: isolate;
  padding: calc(var(--header-h) + 60px) 0 clamp(56px, 8vw, 110px);
}
.hero__media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; transform-origin: center; }
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(11, 10, 8, .78) 0%, rgba(11, 10, 8, .35) 45%, rgba(11, 10, 8, 0) 75%),
    linear-gradient(180deg, rgba(11, 10, 8, .55) 0%, rgba(11, 10, 8, 0) 28%, rgba(11, 10, 8, 0) 55%, rgba(11, 10, 8, .9) 100%);
}
.hero__doors { position: absolute; inset: 0; z-index: -1; pointer-events: none; display: none; }
.js .hero__doors { display: block; }
.hero__door { position: absolute; top: 0; bottom: 0; width: 50.5%; background: var(--black); }
.hero__door--l { left: 0; box-shadow: inset -1px 0 0 rgba(201, 164, 106, .5); }
.hero__door--r { right: 0; box-shadow: inset 1px 0 0 rgba(201, 164, 106, .5); }

.hero__content { position: relative; display: grid; gap: 30px; }
.hero__title { max-width: 12ch; }
.hero__bottom { display: grid; gap: 34px; align-items: end; }
@media (min-width: 900px) {
  .hero__bottom { grid-template-columns: 1fr auto; gap: 80px; }
}
.hero__sub { max-width: 34em; color: rgba(239, 230, 216, .78); }

.scroll-cue {
  position: absolute; right: var(--gutter); bottom: clamp(56px, 8vw, 110px);
  display: none; flex-direction: column; align-items: center; gap: 16px;
  font-size: 10px; letter-spacing: .3em; text-transform: uppercase; color: var(--muted-on-dark);
  writing-mode: vertical-rl;
}
.scroll-cue::after {
  content: ''; width: 1px; height: 70px;
  background: linear-gradient(var(--gold), transparent);
  animation: cue 2.4s var(--ease-in-out) infinite;
  transform-origin: top;
}
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* Inner-page hero (shorter) */
.page-hero { min-height: 78svh; }
.page-hero--short { min-height: 62svh; }
.page-hero .hero__title { max-width: 16ch; }

/* -------------------------------------------------------------------------- */
/* Image reveal — images open like a hidden door                              */
/* -------------------------------------------------------------------------- */

.frame { position: relative; overflow: hidden; background: var(--ink-2); }
.section--light .frame { background: var(--cream-2); }
.frame img { width: 100%; height: 100%; object-fit: cover; }
.frame--parallax img { position: absolute; left: 0; top: -9%; height: 118%; will-change: transform; }
.js [data-door] { clip-path: inset(0 50% 0 50%); }
.frame__ratio { aspect-ratio: var(--ratio, 4 / 5); }

/* -------------------------------------------------------------------------- */
/* Home: intro                                                                */
/* -------------------------------------------------------------------------- */

.intro-grid { display: grid; gap: 56px; align-items: center; }
@media (min-width: 960px) { .intro-grid { grid-template-columns: 1fr 1fr; gap: clamp(64px, 8vw, 140px); } }
.intro-grid__text { display: grid; gap: 30px; }
.intro-grid__media { position: relative; }
.intro-grid__media .frame { aspect-ratio: 4 / 5; }
.intro-grid__badge {
  position: absolute; left: -24px; bottom: 40px;
  width: 132px; height: 132px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--black); color: var(--gold-light);
  box-shadow: 0 0 0 1px rgba(201, 164, 106, .35);
}
.intro-grid__badge svg { width: 100%; height: 100%; animation: spin 26s linear infinite; }
.intro-grid__badge text { font-family: var(--sans); font-size: 7.4px; letter-spacing: .2em; text-transform: uppercase; fill: currentColor; }
.intro-grid__badge .monogram { position: absolute; width: 34px; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 600px) { .intro-grid__badge { left: 12px; bottom: 12px; width: 104px; height: 104px; } }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line-dark); }
@media (min-width: 900px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { padding: 40px 24px 0 0; display: grid; gap: 8px; }
.stat + .stat { padding-left: 24px; border-left: 1px solid var(--line-dark); }
@media (max-width: 899px) { .stat:nth-child(3) { border-left: 0; padding-left: 0; } }
.stat__value { font-family: var(--serif); font-weight: 300; font-size: clamp(3rem, 5.6vw, 5.4rem); line-height: 1; color: var(--gold-light); }
.stat__label { font-size: 12px; letter-spacing: .24em; text-transform: uppercase; color: var(--muted-on-dark); }
.section--light .stats, .section--light .stat + .stat { border-color: var(--line-light); }
.section--light .stat__value { color: var(--text-on-light); }
.section--light .stat__label { color: var(--muted-on-light); }

/* -------------------------------------------------------------------------- */
/* Home: collections list with floating preview                               */
/* -------------------------------------------------------------------------- */

.collections { border-top: 1px solid var(--line-light); }
.collection {
  position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px;
  padding: clamp(24px, 3.2vw, 40px) 0;
  border-bottom: 1px solid var(--line-light);
  isolation: isolate;
}
.collection::before {
  content: ''; position: absolute; inset: 0; z-index: -1; background: var(--black);
  transform: scaleY(0); transform-origin: bottom; transition: transform .7s var(--ease);
}
.collection__num { font-size: 12px; letter-spacing: .2em; color: var(--gold-deep); width: 3ch; transition: color .5s var(--ease), transform .7s var(--ease); }
.collection__name {
  font-family: var(--serif); font-weight: 300; font-size: clamp(2rem, 4.6vw, 4.2rem); line-height: 1.05;
  transition: transform .7s var(--ease), color .5s var(--ease);
}
.collection__tagline { display: block; font-family: var(--sans); font-size: 14px; color: var(--muted-on-light); margin-top: 6px; transition: color .5s var(--ease); }
.collection__meta { display: flex; align-items: center; gap: 22px; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted-on-light); transition: color .5s var(--ease); }
.collection__meta svg { width: 22px; height: 22px; color: var(--gold-deep); transition: transform .7s var(--ease), color .5s; }
.collection__thumb { display: none; }
@media (hover: hover) and (pointer: fine) {
  .collection:hover::before { transform: scaleY(1); }
  .collection:hover .collection__name { transform: translateX(28px); color: var(--cream); }
  .collection:hover .collection__num { color: var(--gold); transform: translateX(14px); }
  .collection:hover .collection__tagline, .collection:hover .collection__meta { color: var(--muted-on-dark); }
  .collection:hover .collection__meta svg { transform: rotate(-45deg); color: var(--gold); }
}
@media (max-width: 760px) {
  .collection { grid-template-columns: 1fr auto; padding-left: 0; }
  .collection__num { display: none; }
  .collection__meta span { display: none; }
  .collection__thumb { display: block; grid-column: 1 / -1; aspect-ratio: 16 / 9; order: -1; }
}

.preview {
  position: fixed; left: 0; top: 0; z-index: 5; pointer-events: none;
  width: clamp(240px, 22vw, 340px); aspect-ratio: 3 / 4;
  overflow: hidden; opacity: 0; transform: scale(.85);
  border-radius: var(--radius);
}
.preview img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.15); transition: opacity .5s var(--ease), transform 1s var(--ease); }
.preview img.is-current { opacity: 1; transform: scale(1); }
@media (hover: none), (pointer: coarse) { .preview { display: none; } }

/* -------------------------------------------------------------------------- */
/* Project cards & featured grid                                              */
/* -------------------------------------------------------------------------- */

.card { position: relative; display: block; }
.card__media { position: relative; overflow: hidden; background: var(--ink-2); border-radius: var(--radius); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); transition: transform 1.6s var(--ease), filter 1s var(--ease); }
.card__media::after {
  /* the light that sweeps across on hover */
  content: ''; position: absolute; inset: -20% auto -20% -60%; width: 40%;
  background: linear-gradient(100deg, transparent, rgba(246, 226, 178, .22), transparent);
  transform: skewX(-12deg) translateX(0); opacity: 0;
  transition: transform 1.3s var(--ease), opacity .4s;
}
.card:hover .card__media img { transform: scale(1.08); }
.card:hover .card__media::after { transform: skewX(-12deg) translateX(520%); opacity: 1; }
.card__open {
  position: absolute; right: 18px; bottom: 18px; z-index: 2;
  width: 54px; height: 54px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--gold); color: var(--black);
  transform: scale(0) rotate(-45deg); transition: transform .7s var(--ease);
}
.card__open svg { width: 18px; height: 18px; }
.card:hover .card__open { transform: scale(1) rotate(0); }
.card__body { display: grid; gap: 6px; padding-top: 20px; }
.card__tags { font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); }
.section--light .card__tags { color: var(--gold-deep); }
.card__title { font-family: var(--serif); font-weight: 400; font-size: clamp(1.5rem, 2vw, 2rem); line-height: 1.15; }
.card__title span { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .8s var(--ease); }
.card:hover .card__title span { background-size: 100% 1px; }
.card__meta { font-size: 14px; color: var(--muted-on-dark); }
.section--light .card__meta { color: var(--muted-on-light); }

.featured { display: grid; gap: clamp(48px, 6vw, 80px) clamp(24px, 3vw, 48px); }
@media (min-width: 760px) {
  .featured { grid-template-columns: repeat(12, 1fr); }
  .featured > :nth-child(6n + 1) { grid-column: 1 / span 7; }
  .featured > :nth-child(6n + 1) .card__media { aspect-ratio: 4 / 3; }
  .featured > :nth-child(6n + 2) { grid-column: 9 / span 4; margin-top: 22%; }
  .featured > :nth-child(6n + 2) .card__media { aspect-ratio: 3 / 4; }
  .featured > :nth-child(6n + 3) { grid-column: 2 / span 4; }
  .featured > :nth-child(6n + 3) .card__media { aspect-ratio: 3 / 4; }
  .featured > :nth-child(6n + 4) { grid-column: 7 / span 6; margin-top: 16%; }
  .featured > :nth-child(6n + 4) .card__media { aspect-ratio: 5 / 4; }
  .featured > :nth-child(6n + 5) { grid-column: 1 / span 6; }
  .featured > :nth-child(6n + 5) .card__media { aspect-ratio: 5 / 4; }
  .featured > :nth-child(6n) { grid-column: 8 / span 5; margin-top: 12%; }
  .featured > :nth-child(6n) .card__media { aspect-ratio: 4 / 5; }
}
@media (max-width: 759px) { .featured .card__media { aspect-ratio: 4 / 5; } }
.featured__more { display: flex; justify-content: center; margin-top: clamp(64px, 8vw, 110px); }

/* -------------------------------------------------------------------------- */
/* Process                                                                    */
/* -------------------------------------------------------------------------- */

.process { display: grid; gap: 56px; }
@media (min-width: 960px) {
  .process { grid-template-columns: .9fr 1.1fr; gap: clamp(64px, 8vw, 140px); }
  .process__head { position: sticky; top: calc(var(--header-h) + 60px); align-self: start; }
}
.process__head { display: grid; gap: 28px; }
.steps { position: relative; padding-left: 44px; }
.steps__track, .steps__fill { position: absolute; left: 6px; top: 8px; bottom: 8px; width: 1px; }
.steps__track { background: var(--line-dark); }
.steps__fill { background: linear-gradient(var(--gold-light), var(--gold)); transform-origin: top; transform: scaleY(0); }
.section--light .steps__track { background: var(--line-light); }
.step { position: relative; padding: 0 0 clamp(48px, 6vw, 80px); display: grid; gap: 12px; }
.step:last-child { padding-bottom: 0; }
.step::before {
  content: ''; position: absolute; left: -44px; top: 8px;
  width: 13px; height: 13px; border-radius: 50%;
  background: var(--black); border: 1px solid var(--gold);
  transition: background .6s var(--ease), box-shadow .6s var(--ease);
}
.section--light .step::before { background: var(--cream); }
.step.is-active::before { background: var(--gold); box-shadow: 0 0 0 6px rgba(201, 164, 106, .16); }
.step__num { font-size: 12px; letter-spacing: .24em; color: var(--gold); }
.section--light .step__num { color: var(--gold-deep); }
.step__title { font-family: var(--serif); font-weight: 400; font-size: clamp(1.7rem, 2.6vw, 2.4rem); line-height: 1.1; }
.step__text { color: var(--muted-on-dark); max-width: 34em; }
.section--light .step__text { color: var(--muted-on-light); }

/* -------------------------------------------------------------------------- */
/* Testimonials                                                               */
/* -------------------------------------------------------------------------- */

.quotes { position: relative; max-width: 1040px; margin: 0 auto; text-align: center; }
.quotes__mark { font-family: var(--serif); font-size: 140px; line-height: .6; height: 60px; color: var(--gold); opacity: .55; }
.quotes__stage { display: grid; }
.quote { grid-area: 1 / 1; display: grid; gap: 34px; justify-items: center; opacity: 0; visibility: hidden; }
.quote.is-active { opacity: 1; visibility: visible; }
.no-js .quote:first-child, html:not(.js) .quote:first-child { opacity: 1; visibility: visible; }
.quote__text { font-family: var(--serif); font-weight: 300; font-style: italic; font-size: clamp(1.6rem, 3.2vw, 2.8rem); line-height: 1.3; }
.quote__author { font-size: 12px; letter-spacing: .26em; text-transform: uppercase; color: var(--gold); }
.quote__author span { color: var(--muted-on-dark); }
.quotes__nav { display: flex; justify-content: center; gap: 12px; margin-top: 48px; }
.quotes__dot { width: 34px; height: 20px; position: relative; }
.quotes__dot::after { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--line-dark); transition: background .5s; }
.quotes__dot.is-active::after { background: var(--gold); }

/* -------------------------------------------------------------------------- */
/* CTA band                                                                   */
/* -------------------------------------------------------------------------- */

.cta { position: relative; overflow: hidden; isolation: isolate; padding: clamp(120px, 16vw, 240px) 0; text-align: center; }
.cta__media { position: absolute; inset: 0; z-index: -2; }
.cta__media img { position: absolute; left: 0; top: -10%; width: 100%; height: 120%; object-fit: cover; }
.cta::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(70% 70% at 50% 50%, rgba(11, 10, 8, .72), rgba(11, 10, 8, .94)); }
.cta__inner { display: grid; gap: 30px; justify-items: center; }
.cta .lead { margin: 0 auto; text-align: center; }
.cta__beam {
  position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; z-index: -1;
  background: linear-gradient(transparent, rgba(230, 204, 151, .7), transparent);
  box-shadow: 0 0 60px 10px rgba(230, 204, 151, .15);
  transform-origin: center;
}

/* -------------------------------------------------------------------------- */
/* Gallery                                                                    */
/* -------------------------------------------------------------------------- */

.filters-wrap {
  position: sticky; top: 0; z-index: 20;
  padding: 16px 0; margin-bottom: clamp(40px, 5vw, 72px);
  background: rgba(244, 239, 231, .86);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-light);
  transition: top .7s var(--ease);
}
body.header-visible .filters-wrap { top: 72px; }
.filters {
  position: relative; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, #000 90%, transparent);
  mask-image: linear-gradient(90deg, #000 90%, transparent);
}
.filters::-webkit-scrollbar { display: none; }
@media (min-width: 1200px) { .filters { justify-content: safe center; -webkit-mask-image: none; mask-image: none; } }
.filter {
  position: relative; z-index: 1; flex: none;
  padding: 10px 18px; border-radius: 100px;
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted-on-light); white-space: nowrap;
  transition: color .5s var(--ease);
}
.filter:hover { color: var(--text-on-light); }
.filter.is-active { color: var(--cream); }
.filter sup { font-size: 9px; margin-left: 4px; letter-spacing: 0; opacity: .7; }
.filters__pill {
  position: absolute; z-index: 0; top: 0; bottom: 0; left: 0; width: 0;
  border-radius: 100px; background: var(--black);
  transition: transform .7s var(--ease), width .7s var(--ease);
}
html:not(.js) .filter.is-active { background: var(--black); }

.tag-intro { max-width: 760px; margin: 0 auto clamp(40px, 5vw, 72px); text-align: center; display: grid; gap: 18px; justify-items: center; }
.tag-intro:empty { display: none; }

.masonry { columns: 1; column-gap: clamp(20px, 2.4vw, 36px); }
@media (min-width: 640px) { .masonry { columns: 2; } }
@media (min-width: 1100px) { .masonry { columns: 3; } }
.masonry > .card { break-inside: avoid; margin-bottom: clamp(40px, 4.5vw, 64px); }
.masonry .card__media img { aspect-ratio: auto; }
.gallery-empty { text-align: center; padding: 80px 0; color: var(--muted-on-light); font-family: var(--serif); font-size: 1.6rem; }
[data-grid].is-loading { opacity: .3; transition: opacity .3s; }

/* -------------------------------------------------------------------------- */
/* Project detail                                                             */
/* -------------------------------------------------------------------------- */

.crumbs { display: flex; flex-wrap: wrap; gap: 10px; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted-on-dark); }
.crumbs a:hover { color: var(--gold); }
.crumbs li + li::before { content: '/'; margin-right: 10px; opacity: .5; }

.project-hero .hero__title { max-width: 18ch; }
.project-meta { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  display: inline-flex; align-items: center; padding: 8px 16px;
  border: 1px solid rgba(201, 164, 106, .4); border-radius: 100px;
  font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-light);
  transition: background .5s var(--ease), color .5s var(--ease);
}
a.chip:hover { background: var(--gold); color: var(--black); }
.section--light .chip { border-color: var(--line-light); color: var(--text-on-light); }
.section--light a.chip:hover { background: var(--black); color: var(--cream); }

.project-body { display: grid; gap: 56px; }
@media (min-width: 960px) {
  .project-body { grid-template-columns: 1.4fr .8fr; gap: clamp(64px, 8vw, 140px); }
  .project-aside { position: sticky; top: calc(var(--header-h) + 40px); align-self: start; }
}
.project-aside { display: grid; gap: 0; border-top: 1px solid var(--line-light); }
.spec { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line-light); }
.spec dt { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted-on-light); padding-top: 4px; }
.spec dd { margin: 0; font-family: var(--serif); font-size: 1.3rem; }
.spec dd .chip { margin: 0 6px 6px 0; }
.project-aside .btn { margin-top: 32px; }

.shots { display: grid; gap: clamp(20px, 2.4vw, 36px); }
@media (min-width: 760px) {
  .shots { grid-template-columns: repeat(2, 1fr); }
  .shots > :nth-child(3n + 1) { grid-column: 1 / -1; }
  .shots > :nth-child(3n + 1) .frame { aspect-ratio: 16 / 9; }
}
.shot { position: relative; display: block; cursor: zoom-in; }
.shot .frame { aspect-ratio: 4 / 5; }
.shot img { transition: transform 1.4s var(--ease); }
.shot:hover img { transform: scale(1.04); }
.shots figcaption { margin-top: 12px; font-size: 13px; color: var(--muted-on-dark); }

.next-project { position: relative; display: block; overflow: hidden; isolation: isolate; padding: clamp(100px, 14vw, 200px) 0; text-align: center; }
.next-project__media { position: absolute; inset: 0; z-index: -2; }
.next-project__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.1); filter: grayscale(.6) brightness(.5); transition: transform 1.8s var(--ease), filter 1.2s var(--ease); }
.next-project::before { content: ''; position: absolute; inset: 0; z-index: -1; background: rgba(11, 10, 8, .55); transition: background 1s var(--ease); }
.next-project:hover .next-project__media img { transform: scale(1); filter: grayscale(0) brightness(.75); }
.next-project:hover::before { background: rgba(11, 10, 8, .3); }
.next-project .h1 { margin-top: 18px; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 130; display: none; background: rgba(8, 7, 6, .96); }
.lightbox.is-open { display: grid; grid-template-rows: auto 1fr auto; }
.lightbox__bar { display: flex; justify-content: space-between; align-items: center; padding: 20px var(--gutter); font-size: 12px; letter-spacing: .22em; color: var(--muted-on-dark); }
.lightbox__stage { position: relative; display: grid; place-items: center; padding: 0 var(--gutter); min-height: 0; }
.lightbox__img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: var(--radius); user-select: none; }
.lightbox__caption { text-align: center; padding: 18px var(--gutter) 28px; color: var(--muted-on-dark); font-size: 14px; min-height: 64px; }
.lightbox__btn {
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line-dark); color: var(--gold-light); transition: background .4s, color .4s, border-color .4s;
}
.lightbox__btn:hover { background: var(--gold); color: var(--black); border-color: var(--gold); }
.lightbox__btn svg { width: 18px; height: 18px; }
.lightbox__prev, .lightbox__next { position: absolute; top: 50%; transform: translateY(-50%); }
.lightbox__prev { left: var(--gutter); }
.lightbox__next { right: var(--gutter); }
@media (max-width: 760px) { .lightbox__prev, .lightbox__next { display: none; } }

/* -------------------------------------------------------------------------- */
/* About                                                                      */
/* -------------------------------------------------------------------------- */

.story { display: grid; gap: 64px; align-items: center; }
@media (min-width: 960px) { .story { grid-template-columns: 1fr 1fr; gap: clamp(64px, 8vw, 140px); } }
.story__media { position: relative; padding: 0 12% 18% 0; }
.story__media .frame:first-child { aspect-ratio: 4 / 5; }
.story__media .frame--small { position: absolute; right: 0; bottom: 0; width: 46%; aspect-ratio: 3 / 4; border: 10px solid var(--cream); }
.story__text { display: grid; gap: 28px; }

.big-quote { max-width: 1100px; margin: 0 auto; text-align: center; display: grid; gap: 32px; justify-items: center; }
.big-quote blockquote { font-family: var(--serif); font-weight: 300; font-size: clamp(2rem, 4.4vw, 4rem); line-height: 1.18; }
.big-quote cite { font-style: normal; font-size: 12px; letter-spacing: .26em; text-transform: uppercase; color: var(--gold); }

.values { display: grid; border-top: 1px solid var(--line-dark); }
@media (min-width: 760px) { .values { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .values { grid-template-columns: repeat(4, 1fr); } }
.value { padding: 40px 32px 48px 0; display: grid; gap: 16px; align-content: start; border-bottom: 1px solid var(--line-dark); }
@media (min-width: 760px) { .value { padding-left: 32px; border-left: 1px solid var(--line-dark); } .value:nth-child(2n + 1) { border-left: 0; padding-left: 0; } }
@media (min-width: 1100px) { .value:nth-child(2n + 1) { border-left: 1px solid var(--line-dark); padding-left: 32px; } .value:nth-child(4n + 1) { border-left: 0; padding-left: 0; } }
.value__num { font-family: var(--serif); font-style: italic; font-size: 2.2rem; color: var(--gold); line-height: 1; }
.value__title { font-family: var(--serif); font-weight: 400; font-size: 1.7rem; line-height: 1.15; }
.value__text { color: var(--muted-on-dark); font-size: 16px; }

.craft { display: grid; gap: 56px; align-items: center; }
@media (min-width: 960px) { .craft { grid-template-columns: 1.15fr .85fr; gap: clamp(64px, 8vw, 140px); } }
.craft .frame { aspect-ratio: 5 / 4; }
.craft__text { display: grid; gap: 28px; }

/* -------------------------------------------------------------------------- */
/* Contact                                                                    */
/* -------------------------------------------------------------------------- */

.contact { display: grid; gap: 0; border-radius: var(--radius); overflow: hidden; box-shadow: 0 40px 120px -40px rgba(27, 24, 19, .35); }
@media (min-width: 1000px) { .contact { grid-template-columns: .8fr 1.2fr; } }
.contact__info { position: relative; overflow: hidden; background: var(--black); color: var(--text-on-dark); padding: clamp(40px, 5vw, 72px); display: grid; gap: 40px; align-content: space-between; }
.contact__info::after {
  content: ''; position: absolute; right: -30%; bottom: -30%; width: 80%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 164, 106, .22), transparent 65%);
  pointer-events: none;
}
.contact__item { display: grid; gap: 6px; }
.contact__item dt { font-size: 11px; letter-spacing: .26em; text-transform: uppercase; color: var(--gold); }
.contact__item dd { margin: 0; font-family: var(--serif); font-size: clamp(1.3rem, 1.8vw, 1.6rem); line-height: 1.3; }
.contact__item a { transition: color .4s; }
.contact__item a:hover { color: var(--gold-light); }
.contact__list { display: grid; gap: 30px; }
.contact__form { background: #fbf8f3; padding: clamp(40px, 5vw, 72px); color: var(--text-on-light); }
.contact__form .h3 { margin-bottom: 10px; }
.contact__form > .muted { color: var(--muted-on-light); margin-bottom: 40px; }

.form { display: grid; gap: 34px 32px; }
@media (min-width: 700px) { .form { grid-template-columns: 1fr 1fr; } .field--full { grid-column: 1 / -1; } }
.field { position: relative; }
.field input, .field select, .field textarea {
  width: 100%; padding: 22px 0 10px;
  font: inherit; font-size: 17px; color: var(--text-on-light);
  background: transparent; border: 0; border-bottom: 1px solid var(--line-light); border-radius: 0;
  outline: none; appearance: none; -webkit-appearance: none;
}
.field textarea { resize: vertical; min-height: 140px; }
.field select { cursor: pointer; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%239c7a45'/%3E%3C/svg%3E") right 4px center no-repeat; }
.field label {
  position: absolute; left: 0; top: 22px; pointer-events: none;
  font-size: 15px; color: var(--muted-on-light);
  transform-origin: left top; transition: transform .5s var(--ease), color .5s var(--ease);
}
.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(.78); color: var(--gold-deep); letter-spacing: .06em; }
.field::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--gold-deep);
  transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease);
}
.field:focus-within::after { transform: scaleX(1); }
.field__error { margin-top: 8px; font-size: 13px; color: #a4442f; }
.field--invalid input, .field--invalid textarea { border-color: #a4442f; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__submit { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; justify-content: space-between; }
.form__note { font-size: 13px; color: var(--muted-on-light); }

.notice {
  display: flex; gap: 18px; align-items: center; padding: 22px 26px; margin-bottom: 36px;
  background: var(--black); color: var(--text-on-dark); border-left: 2px solid var(--gold);
}
.notice svg { flex: none; width: 26px; height: 26px; color: var(--gold); }

/* -------------------------------------------------------------------------- */
/* Footer                                                                     */
/* -------------------------------------------------------------------------- */

.footer { position: relative; background: var(--black); padding: clamp(96px, 12vw, 170px) 0 40px; overflow: hidden; }
.footer::before {
  content: ''; position: absolute; left: 50%; top: -30%; width: 80%; aspect-ratio: 1; transform: translateX(-50%);
  background: radial-gradient(circle, rgba(201, 164, 106, .09), transparent 60%); pointer-events: none;
}
.footer__cta { position: relative; display: grid; gap: 24px; padding-bottom: clamp(72px, 9vw, 130px); border-bottom: 1px solid var(--line-dark); }
.footer__big {
  display: inline-flex; align-items: center; gap: clamp(16px, 3vw, 40px); width: fit-content;
  font-family: var(--serif); font-weight: 300; font-size: clamp(2.8rem, 8.4vw, 8.4rem); line-height: 1;
  transition: color .6s var(--ease);
}
.footer__big:hover { color: var(--gold-light); }
.footer__arrow { width: clamp(40px, 6vw, 88px); height: auto; color: var(--gold); transition: transform .8s var(--ease); }
.footer__big:hover .footer__arrow { transform: rotate(45deg); }
.footer__grid { position: relative; display: grid; gap: 48px; padding: clamp(56px, 7vw, 96px) 0; }
@media (min-width: 760px) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } }
.footer__brand { display: grid; gap: 18px; align-content: start; }
.footer__mark { width: 52px; }
.footer__name { font-size: 13px; letter-spacing: .42em; text-transform: uppercase; color: var(--gold-light); }
.footer__text { color: var(--muted-on-dark); max-width: 26em; font-size: 15px; }
.footer__title { font-family: var(--sans); font-weight: 400; font-size: 11px; letter-spacing: .28em; text-transform: uppercase; color: var(--gold); margin-bottom: 22px; }
.footer__list { display: grid; gap: 10px; font-size: 15px; color: var(--muted-on-dark); }
.footer__list a { transition: color .4s; }
.footer__list a:hover { color: var(--text-on-dark); }
.socials { display: flex; gap: 10px; margin-top: 26px; }
.socials a { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-dark); color: var(--muted-on-dark); transition: all .5s var(--ease); }
.socials a:hover { background: var(--gold); border-color: var(--gold); color: var(--black); }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 28px; border-top: 1px solid var(--line-dark); font-size: 13px; color: rgba(239, 230, 216, .4); }

/* -------------------------------------------------------------------------- */
/* 404                                                                        */
/* -------------------------------------------------------------------------- */

.notfound { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: 140px var(--gutter) 80px; }
.notfound__inner { display: grid; gap: 28px; justify-items: center; }
.notfound .monogram { width: 90px; }

/* -------------------------------------------------------------------------- */
/* Reveal initial states (only when JS is running)                            */
/* -------------------------------------------------------------------------- */

.js [data-reveal] { opacity: 0; transform: translateY(40px); }
.js [data-stagger] > * { opacity: 0; transform: translateY(40px); }

@media (prefers-reduced-motion: reduce) {
  .js [data-reveal], .js [data-stagger] > * { opacity: 1; transform: none; }
  .js [data-door] { clip-path: none; }
  .grain, .intro, .hero__doors { display: none !important; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* Word masks produced by the split-text helper */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .12em; margin-bottom: -.12em; }
.w > span { display: inline-block; will-change: transform; }
.js [data-split] { visibility: hidden; }
.js [data-split].is-split { visibility: visible; }

/* The curtain covers the page until JS lifts it (prevents a flash before the enter animation) */
.js .curtain { transform: scaleY(1); transform-origin: top; }
