/* ══════════════════════════════════════════════════════
   MARSTON ROW — style.css
   ══════════════════════════════════════════════════════ */

/* ── Tokens ─────────────────────────────────────────── */
:root {
  --bg:         #F7F5F1;
  --ink:        #1A1A1A;
  --graphite:   #3E3A35;
  --brass:      #A98645;
  --hairline:   #D8D0C2;
  --deep:       #101820;
  --deep-text:  #F7F5F1;

  --serif: "Cormorant Garamond", "Palatino Linotype", Georgia, serif;
  --sans:  "DM Sans", "Inter", system-ui, sans-serif;

  --header-h:   64px;
  --pad-x:      clamp(24px, 5vw, 96px);
  --max-w:      1320px;
  --section-y:  clamp(72px, 13vh, 176px);
  --col-gap:    clamp(16px, 2vw, 32px);
}

@media (min-width: 768px) {
  :root { --header-h: 72px; }
}

/* ── Reset ───────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  text-wrap: balance;
}

p { margin: 0; }

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:focus-visible,
button:focus-visible {
  outline: 1.5px solid var(--brass);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ── Layout ──────────────────────────────────────────── */
.wrap {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

.section {
  padding-block: var(--section-y);
}

section[id] {
  scroll-margin-top: calc(var(--header-h) + 24px);
}

/* ── Type primitives ─────────────────────────────────── */
.eyebrow {
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--brass);
}

.display {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(36px, 4.8vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.025em;
}

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

.h-section {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(28px, 3.4vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.022em;
}

.lede {
  font-size: clamp(16px, 1.2vw, 18px);
  line-height: 1.65;
  color: var(--graphite);
}

/* ── Section header (chapter break) ─────────────────── */
.section-header {
  position: relative;
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  margin-bottom: clamp(56px, 7vh, 96px);
}

.section-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 1px;
  width: 0;
  background: var(--hairline);
  transition: width 0.7s ease;
}

.section-header.visible::before {
  width: 100%;
}

.section-header__num {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--brass);
}

.section-header__title {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--graphite);
}

/* ── Buttons ─────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 50px;
  padding: 0 26px;
  background: var(--ink);
  color: var(--bg);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: background 0.2s ease, color 0.2s ease;
}
.btn-primary:hover {
  background: var(--graphite);
  color: var(--bg);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.btn-ghost:hover {
  color: var(--brass);
  border-bottom-color: var(--brass);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 50px;
  padding: 0 26px;
  background: transparent;
  border: 1px solid rgba(247, 245, 241, 0.35);
  color: var(--deep-text);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: background 0.2s ease, color 0.2s ease;
}
.btn-outline:hover {
  background: var(--deep-text);
  color: var(--deep);
}

.arrow {
  display: inline-block;
  transition: transform 0.2s ease;
}
.btn-primary:hover .arrow,
.btn-ghost:hover .arrow,
.btn-outline:hover .arrow {
  transform: translateX(4px);
}

/* ── Dash accent ─────────────────────────────────────── */
.dash {
  display: block;
  width: 48px;
  height: 1px;
  background: var(--brass);
  flex-shrink: 0;
}

.reveal .dash,
.reveal .operating-premise__dash {
  width: 0;
  transition: width 0.5s ease 0.35s;
}

.reveal.visible .dash,
.reveal.visible .operating-premise__dash {
  width: 48px;
}

/* ══════════════════════════════════════════════════════
   HEADER
   ══════════════════════════════════════════════════════ */
#site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: transparent;
  transition: background 0.3s ease, backdrop-filter 0.3s ease, border-color 0.3s ease;
}

#site-header.scrolled {
  background: rgba(247, 245, 241, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--hairline);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wordmark {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ink);
}

nav {
  display: flex;
  gap: clamp(24px, 3vw, 48px);
  align-items: center;
}

@media (max-width: 479px) {
  nav {
    gap: 14px;
  }
}

nav a {
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--graphite);
  position: relative;
  padding-bottom: 2px;
}

nav a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--brass);
  transition: width 0.25s ease;
}

nav a:hover {
  color: var(--ink);
}

nav a:hover::after {
  width: 100%;
}

/* ══════════════════════════════════════════════════════
   HERO
   ══════════════════════════════════════════════════════ */
#top {
  padding-top: clamp(72px, 11vh, 144px);
  padding-bottom: clamp(40px, 6vh, 88px);
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: clamp(40px, 5vh, 64px);
}

.hero-ctas {
  margin-top: clamp(40px, 6vh, 72px);
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
}

/* Hero hairline */
.hero-rule {
  margin-top: clamp(48px, 7vh, 80px);
  height: 1px;
  background: var(--hairline);
  width: 100%;
}

/* ══════════════════════════════════════════════════════
   APPROACH
   ══════════════════════════════════════════════════════ */
.approach-lede {
  margin-top: clamp(40px, 5vh, 64px);
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 62ch;
}

.principles {
  display: grid;
  grid-template-columns: 1fr;
  margin-top: clamp(64px, 9vh, 112px);
}

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

.principle {
  position: relative;
  border-top: 1px solid var(--hairline);
  padding-top: clamp(32px, 5vh, 48px);
  padding-bottom: clamp(32px, 5vh, 48px);
}

/* Brass top accent on every card */
.principle::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 48px;
  height: 1px;
  background: var(--brass);
  transition: width 0.4s ease;
}

.principle:hover::before {
  width: 100%;
}

/* Mobile: border-bottom on all but last */
.principle:not(:last-child) {
  border-bottom: 1px solid var(--hairline);
}

@media (min-width: 768px) {
  .principle {
    padding-right: clamp(24px, 3vw, 48px);
  }

  /* Remove mobile bottom borders */
  .principle:not(:last-child) {
    border-bottom: none;
  }

  /* Vertical dividers between cards */
  .principle + .principle {
    padding-left: clamp(24px, 3vw, 48px);
    border-left: 1px solid var(--hairline);
  }
}

.principle__num {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 20px;
}

.principle__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(20px, 1.8vw, 26px);
  line-height: 1.15;
  letter-spacing: -0.012em;
  color: var(--ink);
  margin-bottom: 16px;
}

.principle__body {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--graphite);
  max-width: 30ch;
}

/* ══════════════════════════════════════════════════════
   FOCUS
   ══════════════════════════════════════════════════════ */
.markers {
  margin-top: clamp(56px, 8vh, 96px);
  border-top: 1px solid var(--hairline);
}

.marker-row {
  display: grid;
  grid-template-columns: 1fr;
  padding-block: clamp(20px, 3vh, 32px);
  border-bottom: 1px solid var(--hairline);
  gap: 8px;
  cursor: default;
}

@media (min-width: 640px) {
  .marker-row {
    grid-template-columns: 220px 1fr;
    align-items: baseline;
    gap: var(--col-gap);
    padding-block: clamp(28px, 4vh, 44px);
  }
}

.marker-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.marker-num {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--brass);
}

.marker-label {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--graphite);
  transition: color 0.2s ease;
}

.marker-value {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(17px, 1.6vw, 22px);
  line-height: 1.3;
  letter-spacing: -0.008em;
  color: var(--ink);
  transition: color 0.2s ease;
}

.marker-row:hover .marker-label {
  color: var(--ink);
}

.marker-row:hover .marker-value {
  color: var(--brass);
}

.operating-premise {
  margin-top: clamp(64px, 9vh, 112px);
  background: var(--deep);
  padding: clamp(48px, 6vh, 72px) clamp(40px, 5vw, 64px);
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.operating-premise__label {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.operating-premise__dash {
  display: block;
  width: 48px;
  height: 1px;
  background: var(--brass);
}

.operating-premise__quote {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(24px, 3vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--deep-text);
  text-wrap: balance;
  max-width: 22ch;
}

/* ══════════════════════════════════════════════════════
   CONTACT
   ══════════════════════════════════════════════════════ */
.contact-section {
  background: var(--deep);
  color: var(--deep-text);
}

.section-header--dark::before {
  background: rgba(247, 245, 241, 0.18);
}

.section-header__title--dark {
  color: rgba(247, 245, 241, 0.55);
}

.contact-heading {
  color: var(--deep-text);
}

.contact-lede {
  margin-top: clamp(32px, 5vh, 56px);
  font-size: clamp(16px, 1.2vw, 18px);
  line-height: 1.65;
  color: rgba(247, 245, 241, 0.72);
  max-width: 56ch;
}

.contact-email-zone {
  margin-top: clamp(64px, 9vh, 112px);
}

.contact-email-label {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.contact-email-label .dash {
  background: var(--brass);
}

.contact-email-label span {
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(247, 245, 241, 0.55);
}

.email-link {
  display: inline-block;
  position: relative;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(18px, 2vw, 28px);
  line-height: 1.1;
  letter-spacing: -0.022em;
  color: var(--deep-text);
  word-break: break-all;
  transition: color 0.2s ease;
}

.email-link::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--brass);
  transition: width 0.35s ease;
}

.email-link:hover {
  color: var(--brass);
}

.email-link:hover::after {
  width: 100%;
}

.contact-cta-zone {
  margin-top: clamp(48px, 7vh, 88px);
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}

.contact-schedule-label {
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(247, 245, 241, 0.55);
}

.contact-cta-note {
  font-size: 14.5px;
  line-height: 1.6;
  color: rgba(247, 245, 241, 0.5);
  max-width: 44ch;
  margin-top: 8px;
}

/* ══════════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════════ */
footer {
  background: var(--deep);
  padding-top: clamp(64px, 8vh, 112px);
  padding-bottom: clamp(28px, 4vh, 48px);
  border-top: 1px solid rgba(247, 245, 241, 0.1);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  padding-bottom: clamp(40px, 6vh, 64px);
  border-bottom: 1px solid rgba(247, 245, 241, 0.12);
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 7fr 3fr 2fr;
    gap: var(--col-gap);
  }
}

.footer-wordmark {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--deep-text);
  margin-bottom: 24px;
}

.footer-tagline {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(15px, 1.4vw, 19px);
  line-height: 1.5;
  letter-spacing: -0.008em;
  color: rgba(247, 245, 241, 0.55);
  max-width: 28ch;
}

.footer-col__heading {
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(247, 245, 241, 0.45);
  margin-bottom: 20px;
}

.footer-col__links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col__links a {
  font-size: 14.5px;
  color: rgba(247, 245, 241, 0.72);
  transition: color 0.2s ease;
}

.footer-col__links a:hover {
  color: var(--brass);
}

.footer-col__links .schedule-link {
  color: rgba(247, 245, 241, 0.55);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-bottom {
  padding-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

@media (min-width: 640px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.footer-copy {
  font-size: 12.5px;
  color: rgba(247, 245, 241, 0.32);
}

.footer-mark {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(247, 245, 241, 0.28);
  font-weight: 500;
}

/* ══════════════════════════════════════════════════════
   SCROLL REVEAL ANIMATIONS
   ══════════════════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 0.8s cubic-bezier(0.2, 0.6, 0.2, 1),
    transform 0.8s cubic-bezier(0.2, 0.6, 0.2, 1);
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

.reveal-fade {
  opacity: 0;
  transition: opacity 0.7s ease-out;
}

.reveal-fade.visible {
  opacity: 1;
}

.reveal-wipe {
  clip-path: inset(0 100% 0 0);
  transition: clip-path 1.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-wipe.visible {
  clip-path: inset(0 0% 0 0);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .reveal,
  .reveal-fade {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .reveal-wipe {
    clip-path: none;
    transition: none;
  }

  .section-header::before {
    width: 100%;
    transition: none;
  }

  .reveal .dash,
  .reveal .operating-premise__dash {
    width: 48px;
    transition: none;
  }
}
