/* =================================================================
   ALFREDO GREGORY DESIGN
   Luxury interior design studio, San Francisco
   Design system + components
   ================================================================= */

/* ---------- Design tokens ---------- */
:root {
  /* Brand palette (sampled from brand collateral) */
  --espresso:        #1E140C;
  --espresso-2:      #241910;
  --espresso-3:      #2A1E14;
  --espresso-soft:   #34271B;
  --cream:           #F4EDE1;
  --cream-2:         #F3EBDD;
  --card:            #FBF6EC;
  --gold:            #B68A3E;
  --gold-2:          #C2A05A;
  --gold-light:      #D9BE86;
  --green:           #5E6B4F;
  --terracotta:      #A8593C;
  --plum:            #4C3E54;

  /* Roles */
  --bg:              var(--cream);
  --bg-deep:         var(--espresso);
  --ink:             #2A2117;       /* primary text on cream */
  --ink-soft:        #5A4F42;       /* secondary text on cream */
  --ink-faint:       #8A7E6E;
  --on-dark:         #F1E8D9;       /* primary text on espresso */
  --on-dark-soft:    #C9BBA5;       /* secondary text on espresso */
  --line:            #E2D6C2;       /* hairline on cream */
  --line-dark:       rgba(217,190,134,0.22);

  /* Type */
  --serif: "Playfair Display", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans:  "Mulish", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --script: "Pinyon Script", "Snell Roundhand", "Apple Chancery", cursive;

  /* Rhythm */
  --container: 1280px;
  --container-narrow: 880px;
  --gutter: clamp(20px, 5vw, 72px);
  --section-y: clamp(72px, 11vw, 160px);

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
  --dur: 0.7s;

  --radius: 2px;
  --shadow: 0 24px 60px -30px rgba(30,20,12,0.45);
  --shadow-soft: 0 18px 50px -28px rgba(30,20,12,0.40);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  font-size: clamp(17px, 1.05vw + 14px, 19px);
  line-height: 1.75;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  letter-spacing: 0.005em;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
::selection { background: var(--gold); color: #fff; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.12; letter-spacing: -0.01em; color: var(--ink); }
h1 { font-size: clamp(2.55rem, 6vw, 5rem); font-weight: 500; }
h2 { font-size: clamp(2rem, 4.2vw, 3.4rem); }
h3 { font-size: clamp(1.4rem, 2.4vw, 2rem); }
h4 { font-size: clamp(1.15rem, 1.6vw, 1.4rem); }
p { max-width: 68ch; }
strong { font-weight: 700; }
em { font-style: italic; }

.display-serif { font-family: var(--serif); }
.italic { font-style: italic; }

/* small-caps eyebrow */
.eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 0.9em;
}
.eyebrow::before {
  content: "";
  width: 32px;
  height: 1px;
  background: var(--gold);
  display: inline-block;
  opacity: 0.8;
}
.eyebrow.center::after {
  content: "";
  width: 32px;
  height: 1px;
  background: var(--gold);
  display: inline-block;
  opacity: 0.8;
}
.eyebrow.center { justify-content: center; }
.eyebrow.no-rule::before { display: none; }

.lead {
  font-size: clamp(1.18rem, 1.5vw, 1.42rem);
  line-height: 1.62;
  color: var(--ink-soft);
  font-weight: 400;
}
.script {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0.01em;
}

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding-inline: var(--gutter); }
.narrow { max-width: var(--container-narrow); margin-inline: auto; }
.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(48px, 7vw, 96px); }
.bg-dark { background: var(--bg-deep); color: var(--on-dark); }
.bg-dark h1, .bg-dark h2, .bg-dark h3, .bg-dark h4 { color: var(--on-dark); }
.bg-dark .lead { color: var(--on-dark-soft); }
.bg-espresso-2 { background: var(--espresso-2); }
.bg-card { background: var(--card); }

.center { text-align: center; }
.measure { max-width: 64ch; }
.measure-narrow { max-width: 54ch; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 1.05em 2.1em;
  border: 1px solid var(--gold);
  color: var(--ink);
  background: transparent;
  border-radius: var(--radius);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), transform 0.5s var(--ease);
  position: relative;
  overflow: hidden;
}
.btn::after {
  content: "";
  position: absolute; inset: 0;
  background: var(--gold);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.6s var(--ease);
  z-index: -1;
}
.btn:hover { color: #fff; }
.btn:hover::after { transform: scaleX(1); }
.btn--solid { background: var(--gold); color: #fff; border-color: var(--gold); }
.btn--solid::after { background: var(--espresso); }
.btn--solid:hover { color: #fff; }
.btn--ghost-light { color: var(--on-dark); border-color: var(--gold-light); }
.btn--ghost-light:hover { color: var(--espresso); }
.btn--ghost-light::after { background: var(--gold-light); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}
.link-arrow svg { transition: transform 0.5s var(--ease); }
.link-arrow:hover svg { transform: translateX(6px); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  padding-block: clamp(14px, 1.6vw, 22px);
  transition: background 0.5s var(--ease), backdrop-filter 0.5s var(--ease), padding 0.4s var(--ease), box-shadow 0.5s var(--ease);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.site-header.is-scrolled {
  background: rgba(30,20,12,0.92);
  backdrop-filter: blur(14px) saturate(1.1);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  box-shadow: 0 1px 0 var(--line-dark);
  padding-block: clamp(10px, 1.1vw, 14px);
}

/* brand lockup, faithful to the studio wordmark: letter-spaced serif caps + script "design" */
.brand { display: inline-flex; flex-direction: column; align-items: center; line-height: 1; color: var(--on-dark); }
.brand__name {
  font-family: var(--serif);
  font-size: clamp(1rem, 1.3vw, 1.22rem);
  font-weight: 500;
  letter-spacing: 0.34em;
  text-indent: 0.34em;
  color: var(--on-dark);
  text-transform: uppercase;
  white-space: nowrap;
}
.brand__script {
  font-family: var(--script);
  font-size: clamp(1.25rem, 1.7vw, 1.6rem);
  color: var(--gold-light);
  margin-top: -0.18em;
  line-height: 1;
}
.brand__tag { display: none; }
/* on cream pages before scroll, header text must be dark */
.site-header:not(.is-scrolled).on-light .brand,
.site-header:not(.is-scrolled).on-light .brand__name { color: var(--ink); }
.site-header:not(.is-scrolled).on-light .brand__script { color: var(--gold); }
.site-header:not(.is-scrolled).on-light .nav__link { color: var(--ink); }
.site-header:not(.is-scrolled).on-light .nav-toggle span { background: var(--ink); }

.nav { display: flex; align-items: center; gap: clamp(1.4rem, 2.4vw, 2.6rem); }
.nav__link {
  font-family: var(--sans);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--on-dark);
  position: relative;
  padding-block: 0.4em;
}
.nav__link::after {
  content: "";
  position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--gold-light);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.45s var(--ease);
}
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }
.nav__link.is-active { color: var(--gold-light); }
.nav__cta { margin-left: 0.6rem; }
.nav__cta .btn { padding: 0.85em 1.5em; }

.nav-toggle { display: none; width: 30px; height: 22px; position: relative; z-index: 110; }
.nav-toggle span { position: absolute; left: 0; width: 100%; height: 2px; background: var(--on-dark); transition: all 0.4s var(--ease); }
.nav-toggle span:nth-child(1) { top: 0; }
.nav-toggle span:nth-child(2) { top: 10px; }
.nav-toggle span:nth-child(3) { top: 20px; }
body.nav-open .nav-toggle span:nth-child(1) { top: 10px; transform: rotate(45deg); background: var(--on-dark); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { top: 10px; transform: rotate(-45deg); background: var(--on-dark); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; color: var(--on-dark); }
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; animation: kenburns 22s var(--ease-soft) forwards; }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,13,7,0.45) 0%, rgba(20,13,7,0.18) 35%, rgba(20,13,7,0.55) 78%, rgba(20,13,7,0.86) 100%);
}
@keyframes kenburns { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero__inner { position: relative; z-index: 2; width: 100%; padding-bottom: clamp(54px, 9vw, 130px); padding-top: 140px; }
.hero__eyebrow { color: var(--gold-light); margin-bottom: 1.4rem; }
.hero h1 { color: #fff; max-width: 16ch; }
.hero__sub { margin-top: 1.7rem; max-width: 46ch; color: rgba(255,255,255,0.86); font-size: clamp(1.1rem, 1.4vw, 1.32rem); line-height: 1.6; }
.hero__actions { margin-top: 2.6rem; display: flex; flex-wrap: wrap; gap: 1rem; }
.hero__scroll {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
  z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 0.7rem;
  font-size: 0.6rem; letter-spacing: 0.3em; text-transform: uppercase; color: rgba(255,255,255,0.7);
}
.hero__scroll span { width: 1px; height: 46px; background: linear-gradient(var(--gold-light), transparent); animation: scrolldot 2.4s var(--ease) infinite; }
@keyframes scrolldot { 0% { transform: scaleY(0); transform-origin: top; } 45% { transform: scaleY(1); transform-origin: top; } 55% { transform: scaleY(1); transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* page hero (interior pages) */
.page-hero { position: relative; padding-top: clamp(150px, 18vh, 230px); padding-bottom: clamp(56px, 8vw, 110px); overflow: hidden; }
.page-hero--dark { background: var(--espresso); color: var(--on-dark); }
.page-hero--image { color: #fff; min-height: 64vh; display: flex; align-items: flex-end; }
.page-hero--image .page-hero__media { position: absolute; inset: 0; z-index: 0; }
.page-hero--image .page-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero--image .page-hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,13,7,0.4) 0%, rgba(20,13,7,0.25) 40%, rgba(20,13,7,0.8) 100%); }
.page-hero__inner { position: relative; z-index: 2; width: 100%; }
.page-hero h1 { margin-top: 1.2rem; }
.page-hero--image h1 { color: #fff; }
.page-hero__lead { margin-top: 1.5rem; max-width: 60ch; }

/* breadcrumb */
.crumbs { font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-faint); display: flex; gap: 0.6em; flex-wrap: wrap; }
.crumbs a { color: var(--ink-faint); transition: color 0.3s; }
.crumbs a:hover { color: var(--gold); }
.page-hero--dark .crumbs, .page-hero--image .crumbs { color: rgba(255,255,255,0.6); }
.page-hero--dark .crumbs a, .page-hero--image .crumbs a { color: rgba(255,255,255,0.6); }
.crumbs span { opacity: 0.55; }

/* ---------- Section heading block ---------- */
.sec-head { max-width: 60ch; }
.sec-head.center { margin-inline: auto; text-align: center; }
.sec-head .eyebrow { margin-bottom: 1.2rem; }
.sec-head h2 + .lead { margin-top: 1.3rem; }

/* ---------- Stats / facts strip ---------- */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1.5rem, 3vw, 3rem); }
.fact { text-align: center; }
.fact__num { font-family: var(--serif); font-size: clamp(2.4rem, 4vw, 3.4rem); color: var(--gold-2); line-height: 1; }
.fact__label { margin-top: 0.7rem; font-size: 0.74rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--on-dark-soft); }

/* ---------- Feature projects (home) ---------- */
.feature { display: grid; grid-template-columns: 1.05fr 0.95fr; align-items: center; gap: clamp(2rem, 5vw, 6rem); }
.feature--reverse .feature__media { order: 2; }
.feature__media { position: relative; overflow: hidden; border-radius: var(--radius); }
.feature__media img { width: 100%; aspect-ratio: 4/3.2; object-fit: cover; transition: transform 1.2s var(--ease); }
.feature__media:hover img { transform: scale(1.05); }
.feature__media::before {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06);
}
.feature__index { font-family: var(--serif); font-size: 0.9rem; color: var(--gold); letter-spacing: 0.1em; }
.feature h3 { margin-top: 0.6rem; font-size: clamp(1.7rem, 2.8vw, 2.5rem); }
.feature__meta { margin-top: 0.7rem; font-size: 0.76rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-faint); }
.feature p { margin-top: 1.4rem; color: var(--ink-soft); }
.feature__cta { margin-top: 1.9rem; }

/* ---------- Project grid ---------- */
.proj-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1.4rem, 3vw, 2.6rem) clamp(1.4rem, 3vw, 2.6rem); }
.proj-card { position: relative; display: block; overflow: hidden; border-radius: var(--radius); background: var(--espresso-2); }
.proj-card__media { position: relative; overflow: hidden; }
.proj-card__media img { width: 100%; aspect-ratio: 3/2.35; object-fit: cover; transition: transform 1.3s var(--ease), filter 0.8s var(--ease); }
.proj-card:hover .proj-card__media img { transform: scale(1.06); }
.proj-card__overlay {
  position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(180deg, rgba(20,13,7,0) 30%, rgba(20,13,7,0.82) 100%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: clamp(1.4rem, 2.4vw, 2.2rem);
  color: #fff;
}
.proj-card__type { font-size: 0.68rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold-light); }
.proj-card__title { font-family: var(--serif); font-size: clamp(1.4rem, 2vw, 1.85rem); font-weight: 500; margin-top: 0.45rem; line-height: 1.15; }
.proj-card__loc { font-size: 0.76rem; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.78); margin-top: 0.5rem; display: flex; align-items: center; gap: 0.5em; }
.proj-card__view {
  margin-top: 1.1rem; font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold-light);
  display: inline-flex; align-items: center; gap: 0.6em;
  opacity: 0; transform: translateY(10px); transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.proj-card:hover .proj-card__view { opacity: 1; transform: translateY(0); }
.proj-card--wide { grid-column: span 2; }
.proj-card--wide .proj-card__media img { aspect-ratio: 16/8; }

/* ---------- Project detail gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(0.8rem, 1.6vw, 1.4rem); }
.gallery__item { overflow: hidden; border-radius: var(--radius); cursor: zoom-in; position: relative; background: var(--espresso-2); }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.gallery__item:hover img { transform: scale(1.045); }
.gallery__item::after {
  content: ""; position: absolute; inset: 0; background: rgba(20,13,7,0); transition: background 0.5s var(--ease);
}
.gallery__item:hover::after { background: rgba(20,13,7,0.12); }
.g-6 { grid-column: span 6; aspect-ratio: 3/2.2; }
.g-4 { grid-column: span 4; aspect-ratio: 3/3.6; }
.g-8 { grid-column: span 8; aspect-ratio: 16/8.4; }
.g-12 { grid-column: span 12; aspect-ratio: 16/8; }
.g-7 { grid-column: span 7; aspect-ratio: 4/2.7; }
.g-5 { grid-column: span 5; aspect-ratio: 4/3.4; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(16,10,5,0.96); display: none; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.4s var(--ease); }
.lightbox.is-open { display: flex; opacity: 1; }
.lightbox img { max-width: 90vw; max-height: 86vh; object-fit: contain; border-radius: 2px; box-shadow: 0 30px 80px rgba(0,0,0,0.6); }
.lightbox__close, .lightbox__nav { position: absolute; color: #fff; opacity: 0.75; transition: opacity 0.3s; width: 54px; height: 54px; display: grid; place-items: center; }
.lightbox__close:hover, .lightbox__nav:hover { opacity: 1; }
.lightbox__close { top: 22px; right: 26px; font-size: 1.5rem; }
.lightbox__nav { top: 50%; transform: translateY(-50%); font-size: 2rem; }
.lightbox__nav--prev { left: 18px; }
.lightbox__nav--next { right: 18px; }
.lightbox__count { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,0.7); font-size: 0.78rem; letter-spacing: 0.2em; }

/* ---------- Caption / quote blocks ---------- */
.caption-block { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 5vw, 5.5rem); align-items: start; }
.caption-block__label { font-size: 0.74rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); }
.caption-block h2 { margin-top: 1rem; }
.caption-block .meta-list { margin-top: 2rem; }

.pull-quote { font-family: var(--serif); font-style: italic; font-size: clamp(1.5rem, 3vw, 2.4rem); line-height: 1.4; color: var(--ink); max-width: 24ch; }
.bg-dark .pull-quote { color: var(--on-dark); }
.pull-quote--accent { color: var(--gold-2); }

/* meta list (project facts) */
.meta-list { display: grid; gap: 1.1rem; }
.meta-list__row { display: grid; grid-template-columns: 0.5fr 1fr; gap: 1rem; padding-bottom: 1.1rem; border-bottom: 1px solid var(--line); }
.bg-dark .meta-list__row { border-color: var(--line-dark); }
.meta-list__k { font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-faint); padding-top: 0.2em; }
.bg-dark .meta-list__k { color: var(--on-dark-soft); }
.meta-list__v { font-family: var(--serif); font-size: 1.05rem; color: var(--ink); }
.bg-dark .meta-list__v { color: var(--on-dark); }

/* ---------- Services list ---------- */
.svc-list { border-top: 1px solid var(--line); }
.bg-dark .svc-list { border-color: var(--line-dark); }
.svc-row {
  display: grid; grid-template-columns: 0.35fr 1fr auto; align-items: center; gap: 2rem;
  padding-block: clamp(1.6rem, 3vw, 2.5rem); border-bottom: 1px solid var(--line);
  transition: padding-left 0.5s var(--ease);
  position: relative;
}
.bg-dark .svc-row { border-color: var(--line-dark); }
.svc-row:hover { padding-left: 1.2rem; }
.svc-row__num { font-family: var(--serif); color: var(--gold); font-size: 1rem; letter-spacing: 0.1em; }
.svc-row__title { font-family: var(--serif); font-size: clamp(1.4rem, 2.4vw, 2rem); font-weight: 500; }
.svc-row__desc { color: var(--ink-soft); font-size: 0.98rem; margin-top: 0.4rem; max-width: 60ch; }
.bg-dark .svc-row__desc { color: var(--on-dark-soft); }
.svc-row__arrow { color: var(--gold); opacity: 0; transform: translateX(-8px); transition: all 0.45s var(--ease); }
.svc-row:hover .svc-row__arrow { opacity: 1; transform: translateX(0); }

.svc-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.2rem, 2.4vw, 2rem); }
.svc-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(1.8rem, 3vw, 2.6rem); transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease), border-color 0.6s var(--ease);
  display: flex; flex-direction: column;
}
.svc-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-soft); border-color: var(--gold-light); }
.svc-card__num { font-family: var(--serif); color: var(--gold); font-size: 0.95rem; }
.svc-card h3 { margin-top: 0.8rem; font-size: 1.4rem; }
.svc-card p { margin-top: 0.9rem; color: var(--ink-soft); font-size: 0.96rem; flex-grow: 1; }
.svc-card .link-arrow { margin-top: 1.6rem; }

/* ---------- About ---------- */
.about-split { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.about-portrait { position: relative; }
.about-portrait img { border-radius: var(--radius); box-shadow: var(--shadow); }
.about-portrait__frame { position: absolute; inset: 16px -16px -16px 16px; border: 1px solid var(--gold); border-radius: var(--radius); z-index: -1; }
.signature { font-family: var(--serif); font-style: italic; font-size: 2rem; color: var(--gold-2); }

/* prose */
.prose p { color: var(--ink-soft); margin-top: 1.4rem; }
.prose p:first-child { margin-top: 0; }
.prose p.lead { color: var(--ink); }
.bg-dark .prose p { color: var(--on-dark-soft); }
.prose h3 { margin-top: 2.6rem; margin-bottom: 0.4rem; }
.prose .drop::first-letter { font-family: var(--serif); font-size: 3.4em; line-height: 0.8; float: left; padding: 0.05em 0.12em 0 0; color: var(--gold); }

/* ---------- Clients marquee / grid ---------- */
.clients { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line-dark); border: 1px solid var(--line-dark); }
.client { background: var(--espresso); padding: clamp(1.4rem, 2.4vw, 2.2rem) 1rem; display: grid; place-items: center; text-align: center;
  font-family: var(--serif); font-size: clamp(0.95rem, 1.3vw, 1.15rem); letter-spacing: 0.04em; color: var(--on-dark-soft);
  transition: color 0.5s var(--ease), background 0.5s var(--ease); min-height: 96px; }
.client:hover { color: var(--gold-light); background: var(--espresso-soft); }

/* press / as seen in */
.press-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: clamp(1.6rem, 4vw, 3.4rem); }
.press-item { font-family: var(--serif); font-size: clamp(1.1rem, 1.8vw, 1.5rem); letter-spacing: 0.06em; color: var(--ink-faint); font-style: italic; }

/* ---------- Areas served ---------- */
.areas { display: flex; flex-wrap: wrap; gap: 0.7rem; }
.area-chip {
  font-size: 0.8rem; letter-spacing: 0.1em; padding: 0.6em 1.2em;
  border: 1px solid var(--line); border-radius: 100px; color: var(--ink-soft);
  transition: all 0.4s var(--ease);
}
.bg-dark .area-chip { border-color: var(--line-dark); color: var(--on-dark-soft); }
.area-chip:hover { border-color: var(--gold); color: var(--gold); }

/* ---------- Journal ---------- */
.journal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.6rem, 3vw, 2.6rem); }
.jcard { display: flex; flex-direction: column; }
.jcard__media { overflow: hidden; border-radius: var(--radius); aspect-ratio: 3/2.1; background: var(--espresso-2); }
.jcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.jcard:hover .jcard__media img { transform: scale(1.05); }
.jcard__cat { margin-top: 1.3rem; font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); }
.jcard h3 { margin-top: 0.7rem; font-size: 1.45rem; line-height: 1.2; }
.jcard__excerpt { margin-top: 0.8rem; color: var(--ink-soft); font-size: 0.98rem; }
.jcard__date { margin-top: 1rem; font-size: 0.76rem; letter-spacing: 0.08em; color: var(--ink-faint); }
.jcard--feature { grid-column: span 3; display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(2rem, 4vw, 4rem); align-items: center; }
.jcard--feature .jcard__media { aspect-ratio: 16/10; }

/* article body */
.article { max-width: 720px; margin-inline: auto; }
.article p { color: var(--ink-soft); margin-top: 1.5rem; font-size: 1.08rem; line-height: 1.8; }
.article p.lead { color: var(--ink); font-size: 1.3rem; }
.article h2 { margin-top: 3rem; font-size: 1.9rem; }
.article h3 { margin-top: 2.4rem; }
.article blockquote { margin: 2.6rem 0; padding-left: 1.6rem; border-left: 2px solid var(--gold); font-family: var(--serif); font-style: italic; font-size: 1.5rem; line-height: 1.4; color: var(--ink); }
.article ul { margin-top: 1.4rem; padding-left: 1.2rem; color: var(--ink-soft); }
.article li { margin-top: 0.6rem; }
.article__meta { display: flex; gap: 1.4rem; align-items: center; font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-faint); }
.article__meta .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--gold); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.contact-info { display: grid; gap: 2.2rem; }
.contact-info__block .k { font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); }
.contact-info__block .v { font-family: var(--serif); font-size: 1.3rem; margin-top: 0.5rem; color: var(--ink); }
.contact-info__block .v a { transition: color 0.3s; }
.contact-info__block .v a:hover { color: var(--gold); }
.contact-info__block .sub { color: var(--ink-soft); font-size: 0.95rem; margin-top: 0.3rem; }

.form { display: grid; gap: 1.5rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.field { display: flex; flex-direction: column; gap: 0.5rem; }
.field label { font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-faint); }
.field input, .field select, .field textarea {
  font-family: var(--sans); font-size: 1rem; color: var(--ink);
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 0.95em 1.05em; transition: border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(182,138,62,0.12);
}
.field textarea { resize: vertical; min-height: 130px; }
.form__note { font-size: 0.82rem; color: var(--ink-faint); }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; }
.cta-band__media { position: absolute; inset: 0; z-index: 0; }
.cta-band__media img { width: 100%; height: 100%; object-fit: cover; }
.cta-band__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(20,13,7,0.92), rgba(20,13,7,0.7)); }
.cta-band__inner { position: relative; z-index: 2; text-align: center; }
.cta-band h2 { color: #fff; max-width: 18ch; margin-inline: auto; }
.cta-band .lead { color: rgba(255,255,255,0.85); margin-top: 1.4rem; margin-inline: auto; }
.cta-band .btn-group { margin-top: 2.4rem; display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.site-footer { background: var(--espresso); color: var(--on-dark-soft); padding-top: clamp(64px, 9vw, 120px); }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: clamp(2rem, 4vw, 4rem); padding-bottom: clamp(48px, 7vw, 80px); border-bottom: 1px solid var(--line-dark); }
.footer-brand .brand { margin-bottom: 1.5rem; align-items: flex-start; }
.footer-brand .brand__name { text-indent: 0; }
.footer-brand p { font-size: 0.96rem; color: var(--on-dark-soft); max-width: 34ch; }
.footer-col h4 { font-family: var(--sans); font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold-light); margin-bottom: 1.3rem; font-weight: 600; }
.footer-col ul { list-style: none; padding: 0; display: grid; gap: 0.75rem; }
.footer-col a { font-size: 0.95rem; color: var(--on-dark-soft); transition: color 0.3s, padding-left 0.3s; }
.footer-col a:hover { color: var(--gold-light); padding-left: 4px; }
.footer-contact p { font-size: 0.95rem; margin-bottom: 0.4rem; }
.footer-contact a:hover { color: var(--gold-light); }
.social-row { display: flex; gap: 0.8rem; margin-top: 1.4rem; }
.social-row a { width: 40px; height: 40px; border: 1px solid var(--line-dark); border-radius: 50%; display: grid; place-items: center; transition: all 0.4s var(--ease); }
.social-row a:hover { border-color: var(--gold); background: var(--gold); color: var(--espresso); }
.social-row svg { width: 16px; height: 16px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; padding-block: 2rem; font-size: 0.8rem; letter-spacing: 0.04em; color: var(--ink-faint); }
.footer-bottom a:hover { color: var(--gold-light); }

/* ---------- Reveal animations ---------- */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); will-change: opacity, transform; }
[data-reveal].is-in { opacity: 1; transform: translateY(0); }
[data-reveal-delay="1"] { transition-delay: 0.1s; }
[data-reveal-delay="2"] { transition-delay: 0.2s; }
[data-reveal-delay="3"] { transition-delay: 0.3s; }
[data-reveal-delay="4"] { transition-delay: 0.4s; }
[data-reveal="img"] { clip-path: inset(0 0 100% 0); opacity: 1; transform: none; transition: clip-path 1.2s var(--ease); }
[data-reveal="img"].is-in { clip-path: inset(0 0 0 0); }

/* skip link + journal sign-off */
.skip-link:focus { left: 16px !important; top: 16px; z-index: 300; background: var(--gold); color: #fff; padding: 0.6em 1em; border-radius: 2px; }
.signoff { font-family: var(--script); font-size: 2.1rem; color: var(--gold-2); margin-top: 1.6rem; }
.article .signoff { margin-top: 2rem; }

/* divider */
.rule-gold { width: 56px; height: 2px; background: var(--gold); border: none; }
.rule-gold.center { margin-inline: auto; }

/* utility spacing */
.mt-1 { margin-top: 0.8rem; } .mt-2 { margin-top: 1.6rem; } .mt-3 { margin-top: 2.4rem; } .mt-4 { margin-top: 3.2rem; }
.stack > * + * { margin-top: 1.2rem; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .feature, .about-split, .contact-grid, .caption-block, .jcard--feature { grid-template-columns: 1fr; }
  .feature--reverse .feature__media { order: 0; }
  .facts { grid-template-columns: repeat(2, 1fr); gap: 2.4rem 1.5rem; }
  .svc-cards, .journal-grid { grid-template-columns: repeat(2, 1fr); }
  .jcard--feature { grid-column: span 2; }
  .clients { grid-template-columns: repeat(3, 1fr); }
  .g-4, .g-5, .g-6, .g-7, .g-8 { grid-column: span 6; aspect-ratio: 4/3; }
  .about-portrait { max-width: 460px; margin-inline: auto; }
}
@media (max-width: 760px) {
  .nav { position: fixed; inset: 0; flex-direction: column; justify-content: center; gap: 1.8rem;
    background: rgba(26,17,9,0.98); backdrop-filter: blur(8px); transform: translateX(100%); transition: transform 0.5s var(--ease); }
  body.nav-open .nav { transform: translateX(0); }
  .nav__link { font-size: 1rem; color: var(--on-dark); }
  .nav__cta { margin-left: 0; }
  .nav-toggle { display: block; }
  .site-header.is-scrolled, .site-header:not(.is-scrolled) { background: rgba(30,20,12,0.9); backdrop-filter: blur(12px); }
  .site-header:not(.is-scrolled).on-light { background: rgba(244,237,225,0.92); }
  .proj-grid { grid-template-columns: 1fr; }
  .proj-card--wide { grid-column: span 1; }
  .proj-card--wide .proj-card__media img { aspect-ratio: 3/2.2; }
  .svc-cards, .journal-grid, .clients { grid-template-columns: 1fr; }
  .jcard--feature { grid-column: span 1; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .svc-row { grid-template-columns: auto 1fr; gap: 1rem 1.2rem; }
  .svc-row__arrow { display: none; }
  .form__row { grid-template-columns: 1fr; }
  .meta-list__row { grid-template-columns: 1fr; gap: 0.3rem; }
  .gallery { grid-template-columns: 1fr; }
  .g-4, .g-5, .g-6, .g-7, .g-8, .g-12 { grid-column: span 1; aspect-ratio: 4/3; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: span 2; }
  h1 { font-size: clamp(2.2rem, 9vw, 3rem); }
  .hero { min-height: 92svh; }
}
@media (max-width: 460px) {
  .footer-top { grid-template-columns: 1fr; }
  .footer-brand { grid-column: span 1; }
  .facts { grid-template-columns: 1fr 1fr; }
  .brand__tag { display: none; }
}

/* =================================================================
   PREMIUM ENHANCEMENTS
   Texture, brushed-gold, micro-typography, vignettes, arrival.
   All within the fixed palette and fonts.
   ================================================================= */

:root {
  --brass: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 45%, #8C6A2E 100%);
  --gold-ink: #8C6526;          /* AA-legible gold for small text on cream */
  --header-h: 76px;
}

/* ---- Real script accent (was incorrectly rendering as serif italic) ---- */
.script {
  font-family: var(--script);
  font-style: normal;
  font-weight: 400;
  letter-spacing: 0.01em;
  font-feature-settings: "liga" 1, "dlig" 1, "calt" 1;
}
.hero h1 .script {
  font-size: 1.4em;
  line-height: 0.7;
  display: inline-block;
  transform: translateY(0.08em);
  color: var(--gold-light);
}

/* ---- Micro-typography ---- */
body { font-feature-settings: "kern" 1, "liga" 1, "clig" 1, "calt" 1; }
h1, h2, h3, h4, .display-serif, .pull-quote, .signature, .meta-list__v {
  font-feature-settings: "kern" 1, "liga" 1, "dlig" 1, "calt" 1;
}
.fact__num, .meta-list__v, .jcard__date, .article__meta, .crumbs,
.feature__index, .svc-card__num, .svc-row__num, .footer-contact a[href^="tel"] {
  font-feature-settings: "kern" 1, "onum" 1, "pnum" 1;
}
.field input, .field select, .field textarea { font-feature-settings: "kern" 1, "lnum" 1, "tnum" 1; }
h1, h2, h3, h4, .pull-quote, .cta-band h2, .hero h1, .page-hero h1, .signature { text-wrap: balance; }
p, .lead, .hero__sub, .page-hero__lead, .jcard__excerpt, .svc-row__desc, .article p, .prose p { text-wrap: pretty; }
.pull-quote, .article blockquote, .prose blockquote { hanging-punctuation: first last; }

/* ---- Warm headline ink on dark grounds ---- */
.hero h1, .page-hero--image h1, .cta-band h2, .proj-card__title { color: var(--cream); }
::selection { background: var(--gold); color: var(--espresso); }

/* ---- Background texture: warm paper + lit rooms ---- */
body {
  background-color: var(--cream);
  background-image:
    radial-gradient(120% 80% at 50% -10%, rgba(214,170,110,0.10), rgba(244,237,225,0) 60%),
    radial-gradient(100% 70% at 100% 100%, rgba(94,107,79,0.05), rgba(244,237,225,0) 55%),
    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='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.4'/%3E%3C/svg%3E");
  background-attachment: fixed, fixed, fixed;
  background-blend-mode: normal, normal, soft-light;
}
.field input, .field select, .field textarea { background-image: none; }
.bg-dark {
  background-color: var(--espresso);
  background-image:
    radial-gradient(130% 90% at 50% 0%, rgba(182,138,62,0.12), rgba(30,20,12,0) 55%),
    linear-gradient(180deg, var(--espresso-3) 0%, var(--espresso) 45%, #190F08 100%);
}
.site-footer {
  background-color: var(--espresso);
  background-image:
    radial-gradient(120% 80% at 50% 0%, rgba(182,138,62,0.08), rgba(30,20,12,0) 60%),
    linear-gradient(180deg, var(--espresso) 0%, #190F08 100%);
}

/* ---- Brushed-gold detailing ---- */
.rule-gold { background: var(--brass); box-shadow: 0 1px 0 rgba(255,255,255,0.18) inset, 0 1px 2px rgba(30,20,12,0.25); }
.about-portrait__frame {
  border: none; padding: 1px; background: var(--brass);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.eyebrow::before, .eyebrow.center::after { background: var(--brass); height: 1.5px; opacity: 1; }
.btn--solid { background: var(--brass); color: var(--espresso); border-color: var(--gold); }
.btn--solid:hover { color: var(--espresso); }
.social-row a:hover { border-color: var(--gold); background: var(--brass); color: var(--espresso); }
.pull-quote--accent, .fact__num, .signature, .signoff {
  background: linear-gradient(180deg, var(--gold-light) 0%, var(--gold-2) 50%, #8C6A2E 100%);
  -webkit-background-clip: text; background-clip: text; color: var(--gold-2);
  -webkit-text-fill-color: transparent;
}
@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .pull-quote--accent, .fact__num, .signature, .signoff { -webkit-text-fill-color: var(--gold-2); }
}
/* AA-legible small gold text on cream */
.eyebrow, .link-arrow, .jcard__cat, .contact-info__block .k, .caption-block__label { color: var(--gold-ink); }
.bg-dark .eyebrow, .page-hero--image .eyebrow, .hero .eyebrow, .cta-band .eyebrow,
.bg-dark .link-arrow, .svc-row__num { color: var(--gold-light); }
.feature__cta .link-arrow, .svc-card .link-arrow { color: var(--gold-ink); }

/* ---- Warm image vignettes ---- */
.hero__media::after {
  background:
    radial-gradient(120% 100% at 50% 38%, rgba(20,13,7,0) 38%, rgba(20,13,7,0.55) 100%),
    linear-gradient(180deg, rgba(20,13,7,0.42) 0%, rgba(20,13,7,0.10) 35%, rgba(20,13,7,0.55) 78%, rgba(25,16,8,0.88) 100%);
}
.proj-card__overlay {
  background:
    radial-gradient(100% 120% at 50% 100%, rgba(20,13,7,0.85) 0%, rgba(20,13,7,0) 60%),
    linear-gradient(180deg, rgba(20,13,7,0) 35%, rgba(20,13,7,0.55) 100%);
}
.page-hero--image .page-hero__media::after {
  background:
    radial-gradient(120% 100% at 50% 30%, rgba(20,13,7,0) 40%, rgba(20,13,7,0.5) 100%),
    linear-gradient(180deg, rgba(20,13,7,0.40) 0%, rgba(20,13,7,0.22) 40%, rgba(25,16,8,0.82) 100%);
}
.cta-band__media::after { background: linear-gradient(180deg, rgba(20,13,7,0.18) 0%, rgba(20,13,7,0.42) 45%, rgba(20,13,7,0.86) 100%); }

/* ---- Editorial composition ---- */
.sec-head { max-width: 48ch; }
.feature__index {
  display: block; font-family: var(--serif); font-size: clamp(3.2rem, 6.5vw, 5.6rem);
  font-weight: 500; line-height: 0.9; color: var(--gold-2); opacity: 0.9;
  letter-spacing: -0.01em; margin-bottom: 0.3rem;
}
.feature h3 { margin-top: 0.2rem; }

/* ---- Clients as flowing typographic lines ---- */
.clients { display: flex; flex-wrap: wrap; gap: 0.5em 2.1em; background: none; border: none; }
.client {
  background: none; padding: 0; min-height: 0; display: inline;
  font-family: var(--serif); font-style: italic; font-size: clamp(1.1rem, 1.6vw, 1.5rem);
  color: var(--on-dark-soft); letter-spacing: 0.01em; transition: color 0.4s var(--ease);
}
.client:hover { color: var(--gold-light); }
.client::after { content: "\2022"; margin-left: 2.1em; color: var(--gold); opacity: 0.5; }
.client:last-child::after { content: ""; }

/* ---- Lifted cards ---- */
.svc-card {
  position: relative;
  background: linear-gradient(180deg, #FFFCF4 0%, var(--card) 55%, #F6EFE1 100%);
  border: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(255,255,255,0.6) inset, 0 16px 40px -28px rgba(30,20,12,0.35);
}
.svc-card::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-2), transparent);
  opacity: 0; transition: opacity 0.6s var(--ease);
}
.svc-card:hover::before { opacity: 1; }

/* ---- Full-bleed image moment ---- */
.bleed-image { position: relative; width: 100%; height: clamp(58vh, 78vh, 880px); overflow: hidden; }
.bleed-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.6s var(--ease); }
.bleed-image::after { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 120% at 50% 50%, rgba(20,13,7,0) 55%, rgba(20,13,7,0.45) 100%); }
.bleed-image__cap {
  position: absolute; left: var(--gutter); bottom: clamp(20px, 4vw, 48px); z-index: 2;
  color: var(--cream); font-size: 0.74rem; letter-spacing: 0.24em; text-transform: uppercase;
  text-shadow: 0 1px 20px rgba(0,0,0,0.55);
}

/* ---- Anchor offset for fixed header ---- */
html { scroll-padding-top: calc(var(--header-h) + 18px); }
[id] { scroll-margin-top: calc(var(--header-h) + 18px); }

/* ---- Slower image reveal ---- */
[data-reveal="img"] { transition: clip-path 1.4s var(--ease); }

/* ---- Arrival curtain (pure-CSS lift, no JS dependency) ---- */
.no-js [data-reveal] { opacity: 1 !important; transform: none !important; clip-path: none !important; }
.page-curtain {
  position: fixed; inset: 0; z-index: 1000; background: var(--espresso);
  display: none; place-items: center; pointer-events: none; text-align: center;
}
html.is-loading .page-curtain { display: grid; animation: curtainLift 1.9s var(--ease) forwards; }
.page-curtain__mark {
  font-family: var(--serif); font-size: clamp(1.05rem, 2vw, 1.45rem);
  letter-spacing: 0.36em; text-indent: 0.36em; text-transform: uppercase; color: var(--on-dark);
  animation: curtainMark 1s var(--ease) both;
}
.page-curtain__script { display: block; font-family: var(--script); font-size: 2.1rem; color: var(--gold-light); letter-spacing: 0; text-indent: 0; margin-top: -0.1rem; animation: curtainMark 1s var(--ease) 0.15s both; }
.page-curtain__rule { display: block; height: 1px; width: 0; margin: 1.1rem auto 0; background: var(--brass); animation: curtainRule 1.1s var(--ease) 0.25s both; }
@keyframes curtainLift { 0%, 52% { clip-path: inset(0 0 0 0); } 100% { clip-path: inset(0 0 100% 0); } }
@keyframes curtainMark { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes curtainRule { from { width: 0; } to { width: 120px; } }

/* ---- Brass scroll-progress ---- */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 200;
  transform: scaleX(0); transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--gold), var(--gold-light)); will-change: transform;
}

/* ---- Back to top ---- */
.to-top {
  position: fixed; right: clamp(18px, 3vw, 34px); bottom: clamp(18px, 3vw, 34px); z-index: 150;
  width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--gold);
  background: rgba(30,20,12,0.6); backdrop-filter: blur(8px); color: var(--gold-light);
  display: grid; place-items: center; opacity: 0; transform: translateY(14px) scale(0.9);
  pointer-events: none; transition: opacity 0.5s var(--ease), transform 0.5s var(--ease), background 0.4s var(--ease);
}
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--gold); color: var(--espresso); }

@media (prefers-reduced-motion: reduce) {
  .page-curtain, .scroll-progress { display: none !important; }
  .hero__media img { animation: none; }
}

/* ---- Gallery page ---- */
.g-filter { position: sticky; top: 0; z-index: 90; background: rgba(244,237,225,0.86); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.g-filter__inner { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; padding-block: 1.1rem; }
.g-chip {
  font-family: var(--sans); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-soft); padding: 0.6em 1.25em; border: 1px solid var(--line); border-radius: 100px;
  transition: all 0.4s var(--ease);
}
.g-chip:hover { border-color: var(--gold); color: var(--gold-ink); }
.g-chip.is-active { background: var(--brass); border-color: var(--gold); color: var(--espresso); }
.g-group { padding-block: clamp(2.4rem, 5vw, 4.5rem); border-bottom: 1px solid var(--line); }
.g-group:last-child { border-bottom: none; }
.g-group__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5rem; flex-wrap: wrap; }
.g-group__head h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
.g-group__meta { display: flex; flex-direction: column; align-items: flex-end; gap: 0.7rem; text-align: right; }
.g-group__meta span { font-size: 0.76rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-faint); }
@media (max-width: 760px) {
  .g-group__head { align-items: flex-start; }
  .g-group__meta { align-items: flex-start; text-align: left; }
}
