/* ============================================================
   ANOMALY THERAPY — VISUAL SYSTEM
   Volume 02 · Revision · MMXXVI
   ============================================================ */

/* ---------- 00 · TOKENS ---------- */
:root {
  /* Surfaces */
  --bone:        #F5F1EA;
  --stone:       #D9D0C5;
  --stone-soft:  #E8E1D6;

  /* Text & anchor */
  --graphite:    #2A2A2A;
  --espresso:    #3A312D;

  /* Brand */
  --olive:       #4F574B;
  --olive-deep:  #3F463B;
  --moss:        #6F756B;

  /* Accent — use sparingly */
  --bronze:      #9A7B5F;

  /* Typographic */
  --serif:  'Fraunces', 'Recoleta', 'Cormorant Garamond', Georgia, serif;
  --sans:   'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Scale */
  --container:        1320px;
  --container-narrow: 980px;
  --container-text:   720px;

  /* Rhythm */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: 4rem;
  --space-7: 6rem;
  --space-8: 8rem;
  --space-9: 12rem;

  /* Motion */
  --ease:    cubic-bezier(0.4, 0, 0.2, 1);
  --ease-in: cubic-bezier(0.4, 0, 1, 1);
  --slow:    900ms;
  --med:     500ms;
  --fast:    220ms;
}

/* ---------- 01 · RESET ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
img, picture, video { display: block; max-width: 100%; height: auto; }
button { background: none; border: 0; color: inherit; cursor: pointer; font: inherit; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
input, textarea, select { font: inherit; color: inherit; }

/* ---------- 02 · BASE ---------- */
html, body {
  background: var(--bone);
  color: var(--graphite);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--olive); color: var(--bone); }

/* ---------- 03 · TYPE ---------- */
.eyebrow {
  font-family: var(--sans);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--bronze);
  display: inline-block;
}

.eyebrow--muted { color: var(--moss); }

.display {
  font-family: var(--serif);
  font-weight: 300;
  font-style: normal;
  letter-spacing: -0.02em;
  line-height: 1.02;
  font-size: clamp(2.75rem, 7vw, 6rem);
  color: var(--graphite);
}

.display em, .italic {
  font-style: italic;
  font-weight: 300;
}

h1, .h1 {
  font-family: var(--serif);
  font-weight: 300;
  font-style: italic;
  letter-spacing: -0.01em;
  line-height: 1.1;
  font-size: clamp(2rem, 4.5vw, 3rem);
  color: var(--graphite);
}

h2, .h2 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.005em;
  line-height: 1.18;
  font-size: clamp(1.5rem, 2.6vw, 1.875rem);
  color: var(--graphite);
}

h3, .h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.25;
  font-size: 1.25rem;
}

.lead {
  font-size: clamp(1rem, 1.2vw, 1.125rem);
  line-height: 1.65;
  font-weight: 300;
  color: var(--graphite);
  max-width: 56ch;
}

.body { font-size: 1rem; line-height: 1.7; font-weight: 300; max-width: 62ch; }
.body--narrow { max-width: 52ch; }

.fine {
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--moss);
}

/* Pull-quote */
.quote {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  line-height: 1.28;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  color: var(--graphite);
}

/* ---------- 04 · LAYOUT ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
}

.container--narrow { max-width: var(--container-narrow); }
.container--text   { max-width: var(--container-text); }

.section {
  padding-block: clamp(4rem, 8vw, 7rem);
  position: relative;
}

.section--tight { padding-block: clamp(3rem, 5vw, 4.5rem); }
.section--olive { background: var(--olive); color: var(--bone); }
.section--olive .display,
.section--olive h1, .section--olive h2, .section--olive h3 { color: var(--bone); }
.section--olive .eyebrow { color: rgba(245, 241, 234, 0.6); }
.section--olive .body { color: rgba(245, 241, 234, 0.85); }

.section--moss {
  background: linear-gradient(180deg, #EEEAE1 0%, #E4E1D8 100%);
  border-block: 1px solid rgba(79, 87, 75, 0.12);
}
.section--moss .eyebrow { color: var(--olive); }

.section--stone  { background: var(--stone-soft); }
.section--graphite { background: var(--graphite); color: var(--bone); }
.section--graphite .display,
.section--graphite h1, .section--graphite h2, .section--graphite h3 { color: var(--bone); }
.section--graphite .eyebrow { color: var(--bronze); }
.section--graphite .body { color: rgba(245, 241, 234, 0.78); }

/* Page-numbered chrome on top of sections */
.section__index {
  position: absolute;
  top: clamp(1.5rem, 3vw, 2.5rem);
  left: clamp(1.25rem, 4vw, 3rem);
  font-family: var(--sans);
  font-size: 0.6875rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--moss);
}

.section__page {
  position: absolute;
  top: clamp(1.5rem, 3vw, 2.5rem);
  right: clamp(1.25rem, 4vw, 3rem);
  font-family: var(--sans);
  font-size: 0.6875rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--moss);
}

.rule {
  display: block;
  height: 1px;
  border: 0;
  background: currentColor;
  opacity: 0.18;
  margin: 0;
}

.rule--short { width: 56px; }
.rule--bronze { background: var(--bronze); opacity: 1; height: 1px; }

/* ---------- 05 · UTILITY BAR (top moving banner) ---------- */
.utility {
  background: var(--graphite);
  color: var(--bone);
  overflow: hidden;
  position: relative;
  border-bottom: 1px solid rgba(245, 241, 234, 0.08);
}

.marquee {
  display: flex;
  width: max-content;
  animation: marquee 56s linear infinite;
  padding-block: 0.6rem;
  will-change: transform;
}

.marquee:hover { animation-play-state: paused; }

.marquee__item {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.8125rem;
  letter-spacing: 0.01em;
  padding-inline: 1.5rem;
  white-space: nowrap;
  color: rgba(245, 241, 234, 0.78);
}

.marquee__item::after {
  content: "·";
  margin-left: 3rem;
  color: var(--bronze);
}

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------- 06 · HEADER ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 241, 234, 0.92);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid rgba(42, 42, 42, 0.08);
}

.header__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 2rem;
  padding-block: 1.1rem;
}

.wordmark {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.125rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--graphite);
  white-space: nowrap;
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.wordmark__sub {
  font-family: var(--sans);
  font-size: 0.625rem;
  letter-spacing: 0.32em;
  color: var(--moss);
  font-weight: 400;
  text-transform: uppercase;
  display: none;
}

@media (min-width: 900px) {
  .wordmark__sub { display: inline; }
}

.nav {
  display: none;
  justify-content: center;
  gap: clamp(1.25rem, 2.5vw, 2.5rem);
}

@media (min-width: 880px) {
  .nav { display: flex; align-items: center; }
}

.nav__item {
  position: relative;
}

.nav__link,
.nav > a {
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--graphite);
  padding-block: 0.5rem;
  position: relative;
  display: inline-block;
  transition: color var(--fast) var(--ease);
  cursor: pointer;
  background: none;
  border: 0;
}

.nav__link::after,
.nav > a::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: 0;
  height: 1px;
  background: var(--bronze);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--med) var(--ease);
}

.nav__link:hover,
.nav > a:hover,
.nav > a[aria-current="page"],
.nav__item--active > .nav__link { color: var(--olive); }

.nav__link:hover::after,
.nav > a:hover::after,
.nav > a[aria-current="page"]::after,
.nav__item--active > .nav__link::after { transform: scaleX(1); }

/* Dropdown panel */
.nav__dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translate(-50%, 8px);
  min-width: 240px;
  background: var(--bone);
  border: 1px solid rgba(42, 42, 42, 0.08);
  box-shadow: 0 18px 40px rgba(42, 42, 42, 0.08);
  padding: 0.75rem 0;
  list-style: none;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--fast) var(--ease), transform var(--fast) var(--ease), visibility var(--fast) var(--ease);
  z-index: 30;
}

.nav__item:hover .nav__dropdown,
.nav__item:focus-within .nav__dropdown,
.nav__item[data-open="true"] .nav__dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

/* Bridge over the 8px gap so hover doesn't flicker */
.nav__dropdown::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 0;
  right: 0;
  height: 10px;
}

.nav__dropdown a {
  display: block;
  font-family: var(--sans);
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--graphite);
  padding: 0.7rem 1.5rem;
  white-space: nowrap;
  border-left: 2px solid transparent;
  transition: color var(--fast) var(--ease), border-color var(--fast) var(--ease), background var(--fast) var(--ease);
}

.nav__dropdown a:hover {
  color: var(--olive);
  border-left-color: var(--bronze);
  background: rgba(154, 123, 95, 0.04);
}

.nav__dropdown a.external::after {
  content: " ↗";
  color: var(--bronze);
  font-size: 0.625rem;
}

.nav__caret {
  font-size: 0.5rem;
  margin-left: 0.35rem;
  display: inline-block;
  transform: translateY(-1px);
  color: var(--moss);
  transition: transform var(--fast) var(--ease), color var(--fast) var(--ease);
}

.nav__item:hover .nav__caret,
.nav__item:focus-within .nav__caret { transform: translateY(-1px) rotate(180deg); color: var(--olive); }

.header__cta {
  display: none;
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 0.7rem 1.2rem;
  background: var(--graphite);
  color: var(--bone);
  border: 1px solid var(--graphite);
  transition: background var(--fast) var(--ease), color var(--fast) var(--ease);
}

.header__cta:hover { background: var(--olive); border-color: var(--olive); }

.header__ig {
  display: inline-flex;
  align-items: center;
  color: var(--graphite);
  transition: color var(--fast) var(--ease);
  line-height: 0;
}
.header__ig:hover { color: var(--bronze); }

@media (min-width: 700px) {
  .header__cta { display: inline-block; }
}

.menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0.5rem;
  margin-right: -0.5rem;
}

@media (min-width: 880px) {
  .menu-toggle { display: none; }
}

.menu-toggle span {
  width: 22px; height: 1px;
  background: var(--graphite);
  transition: transform var(--fast) var(--ease), opacity var(--fast) var(--ease);
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* Mobile menu overlay */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--bone);
  z-index: 40;
  padding: 7rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  transform: translateY(-100%);
  transition: transform var(--med) var(--ease);
  pointer-events: none;
  visibility: hidden;
}

.mobile-menu[data-open="true"] {
  transform: translateY(0);
  pointer-events: auto;
  visibility: visible;
}

.mobile-menu a,
.mobile-menu summary {
  font-family: var(--serif);
  font-size: 1.875rem;
  letter-spacing: -0.01em;
  color: var(--graphite);
  border-bottom: 1px solid rgba(42, 42, 42, 0.1);
  padding-block: 1rem;
  display: block;
  cursor: pointer;
  list-style: none;
}

.mobile-menu summary::-webkit-details-marker { display: none; }

.mobile-menu summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mobile-menu summary::after {
  content: "+";
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1.5rem;
  color: var(--bronze);
  transition: transform var(--fast) var(--ease);
}

.mobile-menu details[open] summary::after { content: "−"; }

.mobile-menu details[open] summary { border-bottom: 0; padding-bottom: 0.25rem; }

.mobile-menu__sub {
  display: flex;
  flex-direction: column;
  padding-left: 0;
  border-bottom: 1px solid rgba(42, 42, 42, 0.1);
  padding-bottom: 0.5rem;
}

.mobile-menu__sub a {
  font-family: var(--sans);
  font-size: 0.8125rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--moss);
  border-bottom: 0;
  padding-block: 0.6rem;
}

.mobile-menu__sub a:hover { color: var(--olive); }

.mobile-menu a:last-of-type { border-bottom: 0; }

/* ---------- 07 · BUTTONS ---------- */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 1rem 1.6rem;
  border: 1px solid var(--graphite);
  background: var(--graphite);
  color: var(--bone);
  transition: background var(--med) var(--ease), color var(--med) var(--ease), border-color var(--med) var(--ease);
}

.btn:hover { background: var(--olive); border-color: var(--olive); color: var(--bone); }

.btn--ghost {
  background: transparent;
  color: var(--graphite);
}

.btn--ghost:hover { background: var(--graphite); color: var(--bone); }

.btn--bone {
  background: var(--bone);
  color: var(--graphite);
  border-color: var(--bone);
}

.btn--bone:hover { background: transparent; color: var(--bone); border-color: var(--bone); }

.btn--olive {
  background: var(--olive);
  border-color: var(--olive);
  color: var(--bone);
}

.btn--olive:hover { background: var(--graphite); border-color: var(--graphite); }

/* Inline text link */
.tlink {
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--graphite);
  padding-bottom: 4px;
  border-bottom: 1px solid var(--bronze);
  display: inline-block;
  transition: color var(--fast) var(--ease), border-color var(--fast) var(--ease);
}

.tlink:hover { color: var(--bronze); }

.tlink--bone { color: var(--bone); border-bottom-color: var(--bronze); }
.tlink--bone:hover { color: var(--bronze); }

/* ---------- 08 · HERO ---------- */
.hero {
  padding-top: clamp(4rem, 9vw, 8rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
  position: relative;
}

/* Single full-bleed hero with text overlay */
.hero--overlay {
  position: relative;
  padding: clamp(2rem, 3.5vw, 3rem) clamp(1.5rem, 4vw, 3.5rem) clamp(2.5rem, 4vw, 3.5rem);
  min-height: clamp(640px, 96vh, 1000px);
  background: var(--graphite);
  color: var(--bone);
  overflow: hidden;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  text-align: center;
}

.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}

.hero--overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(15, 20, 17, 0.55) 0%, rgba(15, 20, 17, 0.42) 40%, rgba(15, 20, 17, 0.28) 70%, rgba(15, 20, 17, 0.45) 100%);
}

.hero--overlay .hero__index {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0;
  font-family: var(--sans);
  font-size: 0.6875rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(245, 241, 234, 0.82);
  gap: 1.5rem;
}

.hero__content {
  position: relative;
  z-index: 2;
  margin-top: clamp(2.5rem, 6vw, 4.5rem);
  margin-bottom: auto;
}

.hero--overlay .hero__eyebrow {
  color: rgba(245, 241, 234, 0.95);
  text-shadow: 0 1px 16px rgba(15, 20, 17, 0.55);
}

.hero--overlay .hero__statement {
  color: var(--bone);
  font-size: clamp(1.875rem, 4.5vw, 3.875rem);
  margin-bottom: clamp(1rem, 1.75vw, 1.5rem);
  text-shadow: 0 2px 24px rgba(15, 20, 17, 0.5);
}

.hero--overlay .hero__statement em {
  color: var(--bone);
}

.hero--overlay .hero__sub {
  color: var(--bone);
  font-size: clamp(1.0625rem, 1.4vw, 1.25rem);
  text-shadow: 0 1px 16px rgba(15, 20, 17, 0.6);
}

.hero--overlay .btn {
  background: var(--bone);
  color: var(--graphite);
  border-color: var(--bone);
}

.hero--overlay .btn:hover {
  background: transparent;
  color: var(--bone);
  border-color: var(--bone);
}

.hero--overlay .tlink {
  color: var(--bone);
}

.hero--overlay .tlink:hover {
  color: var(--bronze);
}

.hero__caption {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: clamp(2rem, 4vw, 3rem) 0 0;
  font-family: var(--sans);
  font-size: 0.6875rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(245, 241, 234, 0.75);
  gap: 1.5rem;
  font-weight: 500;
}

@media (max-width: 640px) {
  .hero__caption {
    flex-direction: column;
    gap: 0.4rem;
  }
}

.hero__eyebrow {
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--bronze);
  margin-bottom: clamp(1.5rem, 3vw, 2rem);
}

.hero__statement {
  font-family: var(--serif);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.04;
  font-size: clamp(2.75rem, 8vw, 6.5rem);
  color: var(--graphite);
  max-width: 18ch;
  margin: 0 auto clamp(2rem, 4vw, 2.5rem);
}
.hero__statement em { font-style: italic; font-weight: 300; color: var(--graphite); }

.hero__sub {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.0625rem, 1.5vw, 1.3125rem);
  line-height: 1.55;
  color: var(--moss);
  max-width: 52ch;
  margin: 0 auto clamp(2.5rem, 5vw, 3.5rem);
}

.hero__ctas {
  display: flex;
  gap: clamp(1rem, 2vw, 1.75rem);
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

@media (max-width: 640px) {
  .hero-photo__caption {
    flex-direction: column;
    gap: 0.4rem;
  }
}

.hero__index {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: clamp(3rem, 6vw, 5rem);
  gap: 2rem;
}

.hero__meta {
  font-family: var(--sans);
  font-size: 0.6875rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--moss);
}

.hero__title {
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
  max-width: 14ch;
}

.hero__lead {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 4vw, 3rem);
  align-items: end;
}

@media (min-width: 880px) {
  .hero__lead {
    grid-template-columns: 7fr 5fr;
    gap: clamp(2.5rem, 5vw, 4.5rem);
  }
}

.hero__accent {
  max-width: 380px;
  width: 100%;
  justify-self: end;
}

.hero__accent .frame {
  background: var(--stone-soft);
}

.hero__accent-caption {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.875rem;
  color: var(--moss);
  margin-top: 1rem;
  letter-spacing: -0.005em;
  text-align: right;
}

.hero__footer {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: flex-start;
  padding-top: clamp(2rem, 4vw, 3rem);
  margin-top: clamp(3rem, 5vw, 4rem);
  border-top: 1px solid rgba(42, 42, 42, 0.12);
}

.hero__footer--standalone {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.hero__pillar {
  flex: 1 1 200px;
  min-width: 0;
}

.hero__pillar-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.875rem;
  color: var(--bronze);
  margin-bottom: 0.5rem;
  display: block;
}

.hero__pillar-title {
  font-family: var(--serif);
  font-size: 1.1875rem;
  font-weight: 400;
  margin-bottom: 0.4rem;
  letter-spacing: -0.005em;
}

.hero__pillar-text {
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--moss);
}

/* ---------- 09 · GRID PATTERNS ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: start;
}

@media (min-width: 800px) {
  .split { grid-template-columns: 5fr 7fr; }
  .split--even   { grid-template-columns: 1fr 1fr; }
  .split--narrow { grid-template-columns: 4fr 8fr; }
  .split--wide   { grid-template-columns: 7fr 5fr; }
}

.split__aside {
  position: sticky;
  top: 5rem;
}

@media (max-width: 799px) {
  .split__aside { position: static; }
}

/* Editorial image frame */
.frame {
  position: relative;
  overflow: hidden;
  background: var(--stone);
}

.frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}

.frame--portrait { aspect-ratio: 4 / 5; }
.frame--landscape { aspect-ratio: 16 / 10; }
.frame--square { aspect-ratio: 1 / 1; }
.frame--tall { aspect-ratio: 3 / 4; }
.frame--wide { aspect-ratio: 21 / 9; }

/* Asymmetric editorial grid for office/lifestyle moments */
.editorial-grid {
  display: grid;
  grid-template-columns: 1fr;
  grid-auto-rows: auto;
  gap: clamp(1rem, 2vw, 1.5rem);
  max-width: 960px;
  margin-inline: auto;
}

@media (min-width: 760px) {
  .editorial-grid {
    grid-template-columns: 1.2fr 0.8fr;
    grid-template-rows: auto auto;
  }
  .editorial-grid > :first-child {
    grid-row: span 2;
    aspect-ratio: auto;
    align-self: stretch;
  }
  .editorial-grid > :first-child img { height: 100%; }
}

/* Symmetric 2-up pair (equal weight) */
.group-pair {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1rem, 2vw, 1.5rem);
}

@media (min-width: 760px) {
  .group-pair { grid-template-columns: 1fr 1fr; }
}

/* 2-up editorial grid (one wide, one tall) */
.editorial-2up {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1rem, 2vw, 1.75rem);
  align-items: stretch;
}

@media (min-width: 760px) {
  .editorial-2up { grid-template-columns: 1.15fr 0.85fr; }
}

.frame:hover img { transform: scale(1.03); }

/* ---------- 10 · SERVICES — three buckets ---------- */
.buckets {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: rgba(42, 42, 42, 0.12);
  border: 1px solid rgba(42, 42, 42, 0.12);
}

@media (min-width: 880px) {
  .buckets { grid-template-columns: repeat(3, 1fr); }
}

.bucket {
  background: var(--bone);
  padding: clamp(2rem, 3.5vw, 3rem);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transition: background var(--med) var(--ease);
  position: relative;
}

.bucket:hover { background: var(--stone-soft); }

.bucket__num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.875rem;
  color: var(--bronze);
}

.bucket__title {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.4vw, 1.875rem);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.15;
  min-height: calc(2 * 1.15em);
}

.bucket__price {
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--moss);
  min-height: 1.4em;
}

.bucket__body {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--graphite);
  flex: 1;
}

.bucket__link {
  align-self: flex-start;
  margin-top: 0.5rem;
}

/* ---------- 11 · TEAM ---------- */
.team-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 3.5vw, 3rem) clamp(1.5rem, 3vw, 2.5rem);
}

@media (min-width: 720px) {
  .team-grid { grid-template-columns: repeat(3, 1fr); }
}

.member { display: block; }

.member__photo {
  margin-bottom: 1.25rem;
  aspect-ratio: 4 / 5;
  background: var(--stone);
  overflow: hidden;
  position: relative;
}

.member__photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  filter: saturate(0.95);
  transition: opacity 0.7s var(--ease), filter var(--med) var(--ease);
}

.member__photo img:first-child,
.member__photo img.is-current {
  opacity: 1;
}

.member:hover .member__photo img.is-current {
  filter: saturate(1);
}

/* Single-photo cards: maintain the previous gentle hover zoom */
.member:not([data-photos]) .member__photo img {
  transition: opacity 0.7s var(--ease), filter var(--med) var(--ease), transform 1.2s var(--ease);
}

.member:not([data-photos]):hover .member__photo img {
  transform: scale(1.04);
  filter: saturate(1);
}

.member__name {
  font-family: var(--serif);
  font-size: 1.125rem;
  font-weight: 400;
  letter-spacing: -0.005em;
  margin-bottom: 0.25rem;
}

.member__credentials {
  font-family: var(--sans);
  font-size: 0.6875rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--bronze);
  margin-bottom: 0.5rem;
}

.member__role {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.9375rem;
  color: var(--moss);
}

/* Empty / placeholder member */
.member--placeholder .member__photo {
  background: var(--stone-soft);
  display: flex;
  align-items: center;
  justify-content: center;
}

.member__monogram {
  font-family: var(--serif);
  font-size: 3rem;
  color: var(--moss);
  font-weight: 400;
}

.member--placeholder .member__photo {
  position: relative;
  flex-direction: column;
  gap: 0.75rem;
}

.member__photo-note {
  font-family: var(--sans);
  font-size: 0.625rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--bronze);
}

.member__bio {
  margin-top: 0.875rem;
  font-family: var(--serif);
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--graphite);
}

/* ---------- 12 · TESTIMONIALS ---------- */
.testimonials {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2.5rem, 4vw, 3.5rem);
}

@media (min-width: 880px) {
  .testimonials { grid-template-columns: repeat(3, 1fr); }
}

.testimonial {
  border-top: 1px solid rgba(42, 42, 42, 0.15);
  padding-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.testimonial__num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.875rem;
  color: var(--bronze);
}

.testimonial__quote {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.125rem;
  line-height: 1.5;
  color: var(--graphite);
  font-weight: 300;
  flex: 1;
}

.testimonial__attr {
  font-family: var(--sans);
  font-size: 0.6875rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--moss);
}

/* ---------- 13 · FAQs (accordion) ---------- */
.faq-list { border-top: 1px solid rgba(42, 42, 42, 0.15); }

.faq {
  border-bottom: 1px solid rgba(42, 42, 42, 0.15);
}

.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding: 1.4rem 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--serif);
  font-size: clamp(1.0625rem, 1.4vw, 1.25rem);
  font-weight: 400;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--bronze);
  transition: transform var(--med) var(--ease);
  flex-shrink: 0;
}

.faq[open] summary::after { content: "−"; }

.faq__body {
  padding: 0 0 1.6rem;
  max-width: 64ch;
  color: var(--moss);
  line-height: 1.7;
}

/* ---------- 14 · CONTACT ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 4vw, 3.5rem);
}

@media (min-width: 880px) {
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
}

.contact-card {
  background: var(--stone-soft);
  padding: clamp(2rem, 3.5vw, 3rem);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-card--olive {
  background: var(--olive);
  color: var(--bone);
}

.contact-card--olive .h2,
.contact-card--olive .quote { color: var(--bone); }

.contact-card--olive .body { color: rgba(245, 241, 234, 0.85); }

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  font-size: 0.9375rem;
}

.contact-info__label {
  font-family: var(--sans);
  font-size: 0.6875rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--moss);
  margin-bottom: 0.4rem;
  display: block;
}

.contact-info a:hover { color: var(--bronze); }

/* ---------- 13b · SERVICE ASIDE (integrated image in service split) ---------- */
.service-aside {
  margin-top: clamp(2rem, 4vw, 3rem);
  max-width: 460px;
}

.service-aside .frame {
  background: var(--stone-soft);
}

.service-aside__caption {
  font-family: var(--sans);
  font-size: 0.625rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--moss);
  font-weight: 500;
  margin-top: 0.875rem;
}

/* ---------- 14a · SPECIALTY CARDS ---------- */
.specialty-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1rem, 2vw, 1.5rem);
  margin-top: 1.5rem;
}

@media (min-width: 720px) {
  .specialty-list { grid-template-columns: repeat(2, 1fr); }
}

.specialty {
  padding: clamp(1.5rem, 2.5vw, 2rem);
  background: var(--bone);
  border: 1px solid rgba(42, 42, 42, 0.1);
  scroll-margin-top: 6rem;
  transition: border-color var(--med) var(--ease), background var(--med) var(--ease);
}

.specialty:target {
  border-color: var(--bronze);
  background: var(--stone-soft);
}

.specialty__title {
  font-family: var(--serif);
  font-size: 1.125rem;
  font-weight: 400;
  letter-spacing: -0.005em;
  margin-bottom: 0.5rem;
  color: var(--graphite);
}

.specialty__body {
  font-family: var(--serif);
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--moss);
}

/* ---------- 14b · CONTACT FORM ---------- */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-form__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .contact-form__row { grid-template-columns: 1fr 1fr; }
}

.contact-form__field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.contact-form__label {
  font-family: var(--sans);
  font-size: 0.6875rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--moss);
}

.contact-form__opt {
  font-family: var(--serif);
  font-style: italic;
  text-transform: none;
  letter-spacing: 0;
  color: var(--bronze);
  font-size: 0.75rem;
  margin-left: 0.25rem;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form select,
.contact-form textarea {
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--graphite);
  background: var(--bone);
  border: 1px solid rgba(42, 42, 42, 0.18);
  padding: 0.75rem 0.875rem;
  width: 100%;
  border-radius: 0;
  transition: border-color var(--med) var(--ease), background var(--med) var(--ease);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--olive);
  background: #fff;
}

.contact-form textarea {
  resize: vertical;
  min-height: 8rem;
  line-height: 1.5;
}

.contact-form select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--moss) 50%), linear-gradient(135deg, var(--moss) 50%, transparent 50%);
  background-position: calc(100% - 18px) 1.1rem, calc(100% - 12px) 1.1rem;
  background-size: 6px 6px;
  background-repeat: no-repeat;
  padding-right: 2.25rem;
}

.contact-form button[type="submit"] {
  align-self: flex-start;
  margin-top: 0.5rem;
}

.contact-form__hp {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- 14c · MAP EMBED ---------- */
.map-embed {
  aspect-ratio: 16 / 7;
  background: var(--stone);
  overflow: hidden;
  border: 1px solid rgba(42, 42, 42, 0.12);
}

.map-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  filter: saturate(0.85);
}

@media (max-width: 640px) {
  .map-embed { aspect-ratio: 4 / 3; }
}

/* ---------- 15 · FOOTER ---------- */
.footer {
  background: var(--graphite);
  color: var(--bone);
  padding-top: clamp(4rem, 7vw, 6rem);
  padding-bottom: clamp(2rem, 3vw, 3rem);
}

.footer__top {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(3rem, 5vw, 5rem);
  padding-bottom: clamp(3rem, 5vw, 4rem);
  border-bottom: 1px solid rgba(245, 241, 234, 0.15);
}

@media (min-width: 880px) {
  .footer__top { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}

.footer__mission {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.125rem, 1.5vw, 1.375rem);
  line-height: 1.4;
  max-width: 32ch;
  color: var(--bone);
}

.footer__mission em { color: var(--bronze); font-style: italic; }

.footer__col-title {
  font-family: var(--sans);
  font-size: 0.6875rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--bronze);
  margin-bottom: 1.25rem;
}

.footer__list { display: flex; flex-direction: column; gap: 0.7rem; }
.footer__list li.nowrap { white-space: nowrap; }

.footer__list a {
  font-family: var(--sans);
  font-size: 0.875rem;
  color: rgba(245, 241, 234, 0.78);
  transition: color var(--fast) var(--ease);
}

.footer__list a:hover { color: var(--bronze); }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
  justify-content: space-between;
  padding-top: clamp(2rem, 3vw, 3rem);
}

.footer__wordmark {
  font-family: var(--serif);
  font-size: 1.5rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--bone);
}

.footer__legal {
  font-family: var(--sans);
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(245, 241, 234, 0.5);
}

/* ---------- 16 · FLOATING CTA ---------- */
.float-cta {
  position: fixed;
  bottom: clamp(1rem, 2.5vw, 1.75rem);
  right: clamp(1rem, 2.5vw, 1.75rem);
  z-index: 30;
  background: var(--graphite);
  color: var(--bone);
  padding: 0.95rem 1.4rem;
  font-family: var(--sans);
  font-size: 0.6875rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  box-shadow: 0 12px 32px -16px rgba(42, 42, 42, 0.45);
  transition: background var(--med) var(--ease), transform var(--med) var(--ease);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
}

.float-cta[data-visible="true"] {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.float-cta:hover { background: var(--olive); }

.float-cta__arrow {
  display: inline-block;
  transition: transform var(--fast) var(--ease);
}

.float-cta:hover .float-cta__arrow { transform: translateX(3px); }

/* ---------- 17 · ACCESSIBLE CARE POPUP ---------- */
.popup {
  position: fixed;
  bottom: clamp(1rem, 2.5vw, 1.75rem);
  left: clamp(1rem, 2.5vw, 1.75rem);
  z-index: 31;
  width: min(360px, calc(100vw - 2rem));
  background: var(--bone);
  color: var(--graphite);
  border: 1px solid rgba(42, 42, 42, 0.12);
  box-shadow: 0 20px 50px -20px rgba(42, 42, 42, 0.35);
  padding: 1.5rem 1.5rem 1.4rem;
  transform: translateY(140%);
  transition: transform var(--slow) var(--ease);
  visibility: hidden;
}

.popup[data-open="true"] {
  transform: translateY(0);
  visibility: visible;
}

.popup__close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  padding: 0.5rem;
  color: var(--moss);
  font-size: 1rem;
  line-height: 1;
}

.popup__close:hover { color: var(--graphite); }

.popup__eyebrow {
  font-family: var(--sans);
  font-size: 0.625rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--bronze);
  margin-bottom: 0.75rem;
  display: block;
}

.popup__title {
  font-family: var(--serif);
  font-size: 1.25rem;
  line-height: 1.25;
  margin-bottom: 0.5rem;
  font-weight: 400;
}

.popup__body {
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--moss);
  margin-bottom: 1rem;
}

.popup__link {
  font-family: var(--sans);
  font-size: 0.6875rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--graphite);
  border-bottom: 1px solid var(--bronze);
  padding-bottom: 3px;
}

.popup__link:hover { color: var(--bronze); }

/* When float-cta and popup co-exist on mobile, popup gets stacked above */
@media (max-width: 600px) {
  .popup { bottom: 5rem; left: 1rem; right: 1rem; width: auto; }
}

/* ---------- 18 · UTILITIES ---------- */
.text-center { text-align: center; }
.mt-1 { margin-top: var(--space-1); }
.mt-2 { margin-top: var(--space-2); }
.mt-3 { margin-top: var(--space-3); }
.mt-4 { margin-top: var(--space-4); }
.mt-5 { margin-top: var(--space-5); }
.mt-6 { margin-top: var(--space-6); }
.mb-1 { margin-bottom: var(--space-1); }
.mb-2 { margin-bottom: var(--space-2); }
.mb-3 { margin-bottom: var(--space-3); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-5 { margin-bottom: var(--space-5); }
.mb-6 { margin-bottom: var(--space-6); }

.stack > * + * { margin-top: 1rem; }
.stack-lg > * + * { margin-top: 1.75rem; }
.stack-xl > * + * { margin-top: 2.5rem; }

.list-clean { list-style: none; padding: 0; }
.list-clean li {
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(42, 42, 42, 0.12);
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
}
.list-clean li::before {
  content: "·";
  color: var(--bronze);
  font-weight: 600;
}

/* ---------- 19 · REVEAL ANIMATIONS ---------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 900ms var(--ease), transform 900ms var(--ease);
}

.reveal[data-visible="true"] {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays */
.reveal[data-delay="1"] { transition-delay: 80ms; }
.reveal[data-delay="2"] { transition-delay: 160ms; }
.reveal[data-delay="3"] { transition-delay: 240ms; }
.reveal[data-delay="4"] { transition-delay: 320ms; }
.reveal[data-delay="5"] { transition-delay: 400ms; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- 20 · PAGE HEAD (interior pages) ---------- */
.page-head {
  padding-top: clamp(3rem, 6vw, 5rem);
  padding-bottom: clamp(2.5rem, 4vw, 3.5rem);
  border-bottom: 1px solid rgba(42, 42, 42, 0.12);
}

.page-head__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
  font-family: var(--sans);
  font-size: 0.6875rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--moss);
  gap: 1rem;
}

.page-head__title {
  font-family: var(--serif);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.05;
  font-size: clamp(2.25rem, 5vw, 4rem);
  max-width: 16ch;
}

.page-head__sub {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1rem, 1.3vw, 1.25rem);
  color: var(--moss);
  margin-top: 1.5rem;
  max-width: 52ch;
  line-height: 1.45;
  font-weight: 300;
}

/* Page head with image variant (About) */
.page-head__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 4vw, 3rem);
  align-items: center;
}

@media (min-width: 880px) {
  .page-head__grid {
    grid-template-columns: 6fr 5fr;
    gap: clamp(3rem, 5vw, 4.5rem);
  }
}

.page-head__image {
  width: 100%;
}

.page-head--with-image .page-head__title {
  max-width: none;
}

/* Application form */
.app-form { max-width: 720px; margin-inline: auto; }

.app-form__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.25rem, 2vw, 1.5rem);
  margin-bottom: clamp(1.25rem, 2vw, 1.5rem);
}
@media (min-width: 600px) {
  .app-form__row { grid-template-columns: 1fr 1fr; }
}

.app-form__field { display: block; margin-bottom: clamp(1.25rem, 2vw, 1.5rem); }
.app-form__row .app-form__field { margin-bottom: 0; }

.app-form__label {
  display: block;
  font-family: var(--sans);
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--moss);
  margin-bottom: 0.5rem;
}

.app-form input[type="text"],
.app-form input[type="email"],
.app-form input[type="tel"],
.app-form input[type="url"],
.app-form input[type="month"],
.app-form select {
  width: 100%;
  font-family: var(--sans);
  font-size: 0.9375rem;
  color: var(--graphite);
  background: var(--bone);
  border: 0;
  border-bottom: 1px solid rgba(42, 42, 42, 0.25);
  padding: 0.75rem 0;
  font-weight: 300;
  transition: border-color 180ms ease;
  border-radius: 0;
}

.app-form textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: 0.9375rem;
  color: var(--graphite);
  background: var(--bone);
  border: 1px solid rgba(42, 42, 42, 0.2);
  padding: 1rem;
  resize: vertical;
  min-height: 140px;
  font-weight: 300;
  transition: border-color 180ms ease;
}

.app-form input:focus,
.app-form select:focus,
.app-form textarea:focus {
  outline: none;
  border-color: var(--olive);
}

.app-form input[type="file"] {
  font-family: var(--sans);
  font-size: 0.8125rem;
  color: var(--graphite);
  padding: 0.5rem 0;
}

.app-form select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%236F756B'><path d='M7 10l5 5 5-5z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 0.25rem center;
  padding-right: 2rem;
}

.app-form input::placeholder,
.app-form textarea::placeholder {
  color: rgba(111, 117, 107, 0.6);
  font-style: italic;
}
