@import url("https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Geist:wght@400;500;600;700&display=swap");

:root {
  --bg-canvas: #F7F3EC;
  --bg-surface: #FCFAF5;
  --bg-tint: #EFE8DB;
  --bg-sand: #E4D8C2;
  --bg-deep: #262320;
  --ink-primary: #22201D;
  --ink-secondary: #605C54;
  --ink-tertiary: #8F8A80;
  --line: rgba(31, 26, 22, 0.14);
  --line-strong: rgba(31, 26, 22, 0.28);
  --accent-primary: #B8896B;
  --accent-primary-deep: #9C7257;
  --accent-warm: #B8896B;
  --accent-warm-deep: #9C7257;
  --accent-subtle: #D6C3A8;
  --accent-espresso: #3D2F26;
  --error-ink: #9B5D4E;

  --radius: 20px;
  --radius-sm: 12px;
  --radius-pill: 999px;

  --font-display: "Instrument Serif", "Newsreader", Georgia, serif;
  --font-body: "Geist", "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --shadow-sm: 0 1px 2px rgba(31, 26, 22, 0.04);
  --shadow-md: 0 14px 32px rgba(31, 26, 22, 0.08);
  --shadow-lg: 0 30px 60px rgba(31, 26, 22, 0.14);

  --section-py: clamp(72px, 10vw, 140px);
  --container: 1200px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg-canvas);
  color: var(--ink-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

@media (min-width: 900px) {
  body { font-size: 18px; }
}

img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

p {
  margin: 0;
  max-width: 65ch;
  font-variant-numeric: oldstyle-nums proportional-nums;
}

strong { font-weight: 600; }

/* TYPOGRAPHY ----------------------------------------------------------- */

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--ink-primary);
}

h1 {
  font-size: clamp(2.1rem, 5.2vw, 4.5rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
}

h2 {
  font-size: clamp(1.75rem, 3.4vw, 2.9rem);
  line-height: 1.08;
  letter-spacing: -0.018em;
}

h3 {
  font-size: 1.3rem;
  line-height: 1.25;
  letter-spacing: -0.005em;
  font-weight: 500;
}

h4 {
  font-size: 1.05rem;
  font-weight: 500;
}

.display-xl {
  font-size: clamp(2.4rem, 7vw, 6rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  font-weight: 400;
}

.italic-accent {
  font-style: italic;
  color: var(--accent-primary);
}

.eyebrow, .meta-line {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-warm-deep);
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}
.eyebrow.no-rule::before { display: none; }
.eyebrow-forest { color: var(--ink-primary); }
.eyebrow-light { color: var(--accent-subtle); }

.lead {
  max-width: 38em;
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  color: var(--ink-secondary);
  line-height: 1.6;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--accent-primary);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition: text-decoration-thickness 140ms ease, gap 160ms ease;
}
.text-link:hover { text-decoration-thickness: 2px; gap: 0.55rem; }

/* LAYOUT --------------------------------------------------------------- */

.container {
  width: min(var(--container), calc(100% - 2rem));
  margin-inline: auto;
}
@media (min-width: 700px) {
  .container { width: min(var(--container), calc(100% - 3rem)); }
}

.container-narrow {
  width: min(720px, calc(100% - 2rem));
  margin-inline: auto;
}

.container-wide {
  width: min(1320px, calc(100% - 2rem));
  margin-inline: auto;
}

.section {
  padding: var(--section-py) 0;
  position: relative;
}

.section-tint { background: var(--bg-tint); }

.section-ink {
  background: var(--bg-deep);
  color: var(--bg-surface);
}
.section-ink h1, .section-ink h2, .section-ink h3, .section-ink p { color: var(--bg-surface); }
.section-ink .eyebrow { color: var(--accent-subtle); }
.section-ink .lead { color: rgba(251, 248, 243, 0.72); }

.section-forest {
  background: var(--bg-deep);
  color: var(--bg-surface);
}
.section-forest h1, .section-forest h2, .section-forest h3 { color: var(--bg-surface); }
.section-forest p { color: rgba(251, 248, 243, 0.94); }
.section-forest .copy-stack > p { color: rgba(251, 248, 243, 0.92); }
.section-forest .lead { color: rgba(251, 248, 243, 0.82); }

.page-main > section:first-child {
  padding-top: clamp(56px, 8vw, 104px);
}

.page-hero {
  padding: clamp(72px, 9vw, 120px) 0 clamp(36px, 5vw, 56px);
}

.section-heading {
  display: grid;
  gap: 0.8rem;
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
  max-width: 44rem;
}

.section-heading-split {
  display: grid;
  gap: 2rem;
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}
@media (min-width: 900px) {
  .section-heading-split {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: end;
  }
}

.copy-stack {
  display: grid;
  gap: 1.15rem;
}
.copy-stack > p { color: var(--ink-secondary); }
.copy-stack > h1, .copy-stack > h2, .copy-stack > h3 { color: var(--ink-primary); }

.divider {
  border: 0;
  height: 1px;
  background: var(--line);
  margin: clamp(2.5rem, 5vw, 4rem) 0;
}

.rule-ornament {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: clamp(2rem, 5vw, 3.5rem) 0;
  color: var(--accent-warm);
}
.rule-ornament::before,
.rule-ornament::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}
.rule-ornament span {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.3rem;
  color: var(--accent-warm);
}

/* HEADER --------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(245, 241, 234, 0.82);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms ease, background 200ms ease;
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(245, 241, 234, 0.94);
}

.header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 68px;
}

.brandmark {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: -0.015em;
  color: var(--ink-primary);
  line-height: 1;
  white-space: nowrap;
}
.brandmark-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--accent-primary);
  color: var(--bg-surface);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0;
  border-radius: 8px;
  font-family: var(--font-display);
}
.brandmark-text {
  display: none;
}
@media (min-width: 520px) {
  .brandmark-text { display: inline; }
}

.brandmark-logo {
  display: block;
  width: 72px;
  height: 72px;
  aspect-ratio: 1 / 1;
  flex-shrink: 0;
  object-fit: contain;
  object-position: center;
  transition: transform 240ms ease, opacity 240ms ease;
  filter: saturate(1.05) contrast(1.05);
}
@media (min-width: 640px) {
  .brandmark-logo { width: 88px; height: 88px; }
}
@media (min-width: 980px) {
  .brandmark-logo { width: 100px; height: 100px; }
}
.brandmark:hover .brandmark-logo {
  transform: translateY(-1px);
}

.footer-brand .brandmark-logo {
  width: 176px;
  height: 176px;
  border-radius: 0;
  background: transparent;
  object-fit: contain;
  box-shadow: none;
  filter: saturate(1.08) contrast(1.05);
}
.footer-brandmark {
  gap: 1rem;
  align-items: center;
  display: inline-flex;
}
.footer-brand .brandmark-text {
  display: none;
}

/* Header shell scales to breathe around the larger mark */
.site-header .header-main { min-height: 96px; }
@media (min-width: 640px) {
  .site-header .header-main { min-height: 112px; }
}
@media (min-width: 980px) {
  .site-header .header-main { min-height: 124px; }
}

.primary-nav {
  display: none;
  gap: 1.65rem;
  align-items: center;
}
.primary-nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-secondary);
  position: relative;
  padding: 0.35rem 0;
  transition: color 140ms ease;
}
.primary-nav a:hover { color: var(--ink-primary); }
.primary-nav a.is-active { color: var(--ink-primary); }
.primary-nav a.is-active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: var(--accent-warm);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.header-cta {
  display: none;
}
@media (min-width: 640px) {
  .header-cta { display: inline-flex; }
}

.header-portal {
  display: none;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink-secondary);
  padding: 0.4rem 0.4rem;
  border-radius: 8px;
  transition: color 140ms ease;
}
.header-portal:hover { color: var(--ink-primary); }
@media (min-width: 820px) {
  .header-portal { display: inline-flex; }
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 999px;
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--ink-primary);
  cursor: pointer;
  padding: 0;
}
.nav-toggle svg { width: 18px; height: 18px; }

.mobile-nav {
  display: none;
  padding: 0.75rem 0 1.5rem;
  border-top: 1px solid var(--line);
}
.mobile-nav.is-open { display: block; }
.mobile-nav .mobile-list {
  display: grid;
  gap: 0.75rem;
  padding: 1rem 0;
}
.mobile-nav a {
  font-size: 1.1rem;
  color: var(--ink-primary);
  font-family: var(--font-display);
}
.mobile-nav .mobile-ctas {
  display: grid;
  gap: 0.6rem;
  margin-top: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

@media (min-width: 960px) {
  .primary-nav { display: flex; }
  .nav-toggle { display: none; }
}

/* BUTTONS -------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.9rem 1.55rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: background-color 140ms ease, color 140ms ease, border-color 140ms ease, transform 140ms ease;
  white-space: nowrap;
}
.btn:focus-visible {
  outline: 2px solid var(--accent-warm);
  outline-offset: 3px;
}
.btn-primary {
  background: var(--ink-primary);
  color: var(--bg-surface);
}
.btn-primary:hover { background: #0E0B08; }

.btn-secondary {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--ink-primary);
}
.btn-secondary:hover { border-color: var(--ink-primary); background: rgba(31, 26, 22, 0.04); }

.btn-light {
  background: var(--bg-surface);
  color: var(--ink-primary);
  border-color: var(--bg-surface);
}
.btn-light:hover { background: rgba(255, 255, 255, 1); }

.btn-ghost-light {
  background: transparent;
  color: var(--bg-surface);
  border-color: rgba(251, 248, 243, 0.4);
}
.btn-ghost-light:hover { border-color: var(--bg-surface); background: rgba(255, 255, 255, 0.06); }

.btn-compact { padding: 0.65rem 1.1rem; font-size: 0.85rem; }

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}
.button-row.stacked { flex-direction: column; align-items: stretch; }
.button-row.stacked .btn { width: 100%; }

/* HOMEPAGE HERO — FULL BLEED EDITORIAL --------------------------------- */

.hero-home {
  position: relative;
  isolation: isolate;
  min-height: clamp(620px, 92vh, 860px);
  padding: clamp(100px, 14vh, 160px) 0 clamp(80px, 8vw, 120px);
  background: var(--bg-deep);
  color: var(--bg-surface);
  overflow: hidden;
}

.hero-home-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero-home-media img,
.hero-home-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  filter: saturate(0.85) contrast(1.05) brightness(0.72);
}
.hero-home-poster { position: absolute; inset: 0; }
.hero-home-video { position: absolute; inset: 0; z-index: 1; transition: opacity 800ms ease; opacity: 0; }
.hero-home.is-video-ready .hero-home-video { opacity: 1; }

.hero-home::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(31, 26, 22, 0.72) 0%, rgba(31, 26, 22, 0.42) 45%, rgba(31, 26, 22, 0.82) 100%),
    linear-gradient(90deg, rgba(31, 26, 22, 0.52) 0%, rgba(31, 26, 22, 0.1) 60%, rgba(31, 26, 22, 0) 100%);
}

.hero-home-grid {
  display: grid;
  gap: clamp(2.5rem, 5vw, 4rem);
}
@media (min-width: 980px) {
  .hero-home-grid {
    grid-template-columns: minmax(0, 1.3fr) minmax(320px, 420px);
    align-items: end;
  }
}

.hero-copy {
  display: grid;
  gap: 1.5rem;
  max-width: 720px;
}
.hero-copy .eyebrow { color: var(--accent-subtle); }
.hero-copy h1 {
  color: var(--bg-surface);
  font-size: clamp(2.2rem, 6.4vw, 5.4rem);
  line-height: 0.98;
  letter-spacing: -0.028em;
}
.hero-copy h1 em {
  font-style: italic;
  color: var(--accent-subtle);
  font-weight: 400;
}
.hero-copy .lead {
  color: rgba(251, 248, 243, 0.82);
  max-width: 36em;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(251, 248, 243, 0.18);
  color: rgba(251, 248, 243, 0.72);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
}
.hero-badges span { display: inline-flex; align-items: center; gap: 0.5rem; }
.hero-badges span::before {
  content: "";
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--accent-warm);
}

.hero-entry {
  display: grid;
  gap: 0.85rem;
}

.entry-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 1.4rem 1.5rem 1.5rem;
  background: rgba(251, 248, 243, 0.08);
  border: 1px solid rgba(251, 248, 243, 0.18);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-radius: var(--radius);
  color: var(--bg-surface);
  transition: transform 220ms cubic-bezier(.22,.61,.36,1), background-color 220ms ease, border-color 220ms ease;
}
.entry-card:hover {
  transform: translateY(-3px);
  background: rgba(251, 248, 243, 0.14);
  border-color: rgba(251, 248, 243, 0.32);
}
.entry-card-therapy { border-top: 3px solid var(--accent-warm); }
.entry-card-court { border-top: 3px solid var(--accent-subtle); }
.entry-card .entry-meta {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-subtle);
}
.entry-card h3 {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--bg-surface);
}
.entry-card p {
  color: rgba(251, 248, 243, 0.78);
  font-size: 0.92rem;
  line-height: 1.55;
}
.entry-card-footer {
  margin-top: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(251, 248, 243, 0.14);
  font-size: 0.82rem;
  color: var(--bg-surface);
  font-weight: 500;
}
.entry-card-footer .entry-arrow {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--bg-surface);
  transition: transform 180ms ease;
}
.entry-card:hover .entry-arrow { transform: translateX(4px); }

/* HERO MARQUEE / TICKER ------------------------------------------------ */

.marquee {
  background: var(--ink-primary);
  color: var(--bg-surface);
  padding: 1rem 0;
  overflow: hidden;
  border-top: 1px solid rgba(251, 248, 243, 0.08);
}
.marquee-track {
  display: flex;
  gap: 3rem;
  width: max-content;
  animation: marquee 44s linear infinite;
}
.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--accent-subtle);
  letter-spacing: 0;
  white-space: nowrap;
}
.marquee-item::after {
  content: "§";
  color: var(--accent-warm);
  font-style: normal;
  opacity: 0.7;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; flex-wrap: wrap; }
}

/* EDITORIAL SECTION (pull quote + portrait) --------------------------- */

.editorial {
  display: grid;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
}
@media (min-width: 980px) {
  .editorial { grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: 5rem; }
}

.editorial-figure {
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--bg-tint);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.editorial-figure img { width: 100%; height: 100%; object-fit: cover; }
.editorial-figure::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(31, 26, 22, 0) 65%, rgba(31, 26, 22, 0.24));
  pointer-events: none;
}
.editorial-figure-caption {
  position: absolute;
  bottom: 1.25rem;
  left: 1.5rem;
  right: 1.5rem;
  z-index: 2;
  color: var(--bg-surface);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.98rem;
  line-height: 1.4;
}

.pull-quote {
  position: relative;
  padding: 0.25rem 0 0.25rem 1.75rem;
  border-left: 2px solid var(--accent-warm);
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.45rem, 2.9vw, 2.1rem);
  line-height: 1.25;
  color: var(--ink-primary);
  font-weight: 400;
}
.pull-quote cite {
  display: block;
  margin-top: 1.1rem;
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-tertiary);
}

/* SERVICES ------------------------------------------------------------- */

.service-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 700px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
}
@media (min-width: 1080px) {
  .service-grid { grid-template-columns: repeat(3, 1fr); }
}

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: clamp(1.5rem, 2.6vw, 2rem);
  min-height: 260px;
  background: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink-primary);
  overflow: hidden;
  transition: transform 220ms cubic-bezier(.22,.61,.36,1), border-color 220ms ease, box-shadow 220ms ease;
}
.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(31, 26, 22, 0.02));
  pointer-events: none;
}
.service-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
}
.service-card .arrow {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-primary);
  transition: gap 180ms ease;
}
.service-card:hover .arrow { gap: 0.7rem; }
.service-card h3 {
  font-size: 1.55rem;
  font-weight: 400;
  font-family: var(--font-display);
  letter-spacing: -0.01em;
}
.service-card p {
  color: var(--ink-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}
.service-card .service-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.1rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-warm-deep);
}
.service-card .service-meta::before {
  content: "";
  width: 14px;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}

.service-card-court {
  border-left: 3px solid var(--ink-primary);
}
.service-card-court .service-meta { color: var(--ink-primary); }

.service-card-therapy { border-top: 3px solid var(--accent-warm); }

.service-card-feature {
  grid-column: 1 / -1;
  background: var(--bg-deep);
  color: var(--bg-surface);
  border-color: var(--bg-deep);
  min-height: 320px;
  justify-content: space-between;
}
.service-card-feature h3 {
  color: var(--bg-surface);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
}
.service-card-feature p { color: rgba(251, 248, 243, 0.85); font-size: 1.05rem; max-width: 42ch; }
.service-card-feature .service-meta { color: var(--accent-subtle); }
.service-card-feature .arrow { color: var(--bg-surface); }

/* ABOUT PREVIEW -------------------------------------------------------- */

.about-preview {
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}
@media (min-width: 900px) {
  .about-preview { grid-template-columns: 1.05fr 0.95fr; gap: 5rem; }
}

.about-portrait {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-tint);
  box-shadow: var(--shadow-lg);
}
.about-portrait img { width: 100%; height: 100%; object-fit: cover; }
.about-portrait::before {
  content: "";
  position: absolute;
  inset: auto -24px -24px auto;
  width: 120px;
  height: 120px;
  background: var(--accent-warm);
  border-radius: 50%;
  z-index: -1;
  opacity: 0.7;
}
.about-portrait::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(31, 26, 22, 0) 70%, rgba(31, 26, 22, 0.2));
  pointer-events: none;
}

.portrait-frame {
  position: relative;
  padding: 18px;
  background: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 10px);
}
.portrait-meta {
  display: grid;
  gap: 0.35rem;
  padding-top: 1rem;
  margin-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
  color: var(--ink-secondary);
}
.portrait-meta strong {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.05rem;
  color: var(--ink-primary);
}

/* GALLERY EDITORIAL --------------------------------------------------- */

.gallery-editorial {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: clamp(160px, 20vw, 260px);
  gap: 1rem;
}
.gallery-editorial figure {
  position: relative;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-tint);
}
.gallery-editorial img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 800ms cubic-bezier(.22,.61,.36,1);
}
.gallery-editorial figure:hover img { transform: scale(1.03); }
.gallery-editorial figcaption {
  position: absolute;
  left: 1.25rem;
  bottom: 1rem;
  right: 1.25rem;
  color: var(--bg-surface);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.95rem;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.4);
}
.gallery-editorial .g-a { grid-column: span 12; grid-row: span 2; }
.gallery-editorial .g-b { grid-column: span 12; }
.gallery-editorial .g-c { grid-column: span 12; }
@media (min-width: 760px) {
  .gallery-editorial .g-a { grid-column: span 7; grid-row: span 2; }
  .gallery-editorial .g-b { grid-column: span 5; }
  .gallery-editorial .g-c { grid-column: span 5; }
}

/* ETHOS BAND ---------------------------------------------------------- */

.ethos-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 800px) {
  .ethos-grid { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
}
.ethos-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  padding: 2rem 1.75rem;
  background: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
  overflow: hidden;
}
.ethos-card::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-warm), transparent 80%);
  opacity: 0.6;
  transition: opacity 220ms ease;
}
.ethos-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
}
.ethos-card:hover::after { opacity: 1; }
.ethos-card:nth-child(2)::after { background: linear-gradient(90deg, var(--accent-primary), transparent 80%); }
.ethos-card:nth-child(3)::after { background: linear-gradient(90deg, var(--accent-subtle), transparent 80%); }
.ethos-num {
  font-family: var(--font-display);
  font-size: 2.25rem;
  color: var(--accent-warm);
  line-height: 1;
  letter-spacing: -0.02em;
}
.ethos-card h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: -0.012em;
  color: var(--ink-primary);
}
.ethos-card p { color: var(--ink-secondary); font-size: 0.97rem; }
.ethos-tag {
  margin-top: auto;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-warm-deep);
}

/* CREDENTIALS CARD (in forest section) -------------------------------- */

.credentials-card {
  padding: 2rem 1.75rem;
  background: rgba(251, 248, 243, 0.06);
  border: 1px solid rgba(251, 248, 243, 0.2);
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--bg-surface);
}
.credentials-card .eyebrow { margin-bottom: 1.2rem; }
.credentials-list {
  display: grid;
  gap: 0;
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
}
.credentials-list li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem 1.25rem;
  padding: 0.85rem 0;
  border-top: 1px solid rgba(251, 248, 243, 0.18);
}
.credentials-list li:last-child { border-bottom: 1px solid rgba(251, 248, 243, 0.18); }
.credentials-list li span:first-child {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--bg-surface);
  letter-spacing: -0.005em;
}
.credentials-list li span:last-child {
  color: rgba(251, 248, 243, 0.7);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
  text-align: right;
}
.credentials-footer {
  color: rgba(251, 248, 243, 0.78);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1rem;
  line-height: 1.5;
}

/* POLICY GRID ---------------------------------------------------------- */

.policy-grid {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}
@media (min-width: 700px) {
  .policy-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
  .policy-grid { grid-template-columns: repeat(4, 1fr); }
}
.policy-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.75rem 1.25rem 2rem;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  transition: background-color 180ms ease;
}
.policy-card:hover { background: rgba(184, 137, 107, 0.04); }
.policy-card:last-child { border-right: 0; }
@media (max-width: 699px) {
  .policy-card { border-right: 0; }
}
@media (min-width: 700px) and (max-width: 999px) {
  .policy-card:nth-child(2n) { border-right: 0; }
}
.policy-card .num {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--accent-warm);
  line-height: 1;
}
.policy-card h3 { font-size: 1.15rem; font-weight: 500; letter-spacing: -0.005em; }
.policy-card p { color: var(--ink-secondary); font-size: 0.92rem; }

/* CONTACT -------------------------------------------------------------- */

.contact-grid {
  display: grid;
  gap: clamp(2rem, 5vw, 3rem);
  align-items: start;
}
@media (min-width: 900px) {
  .contact-grid { grid-template-columns: 1fr 1fr; gap: 4rem; }
}

.contact-card {
  display: grid;
  gap: 0.35rem;
  padding: 1.5rem 1.75rem;
  background: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--ink-secondary);
  font-size: 0.97rem;
}
.contact-card p { margin: 0; font-variant-numeric: tabular-nums; }
.contact-card a { color: var(--accent-primary); }

.contact-form {
  display: grid;
  gap: 1rem;
  background: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2rem);
  box-shadow: var(--shadow-md);
}
.contact-form label {
  display: grid;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-secondary);
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  min-height: 48px;
  background: var(--bg-canvas);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--ink-primary);
  font: inherit;
  font-size: 1rem;
  transition: border-color 140ms ease, background-color 140ms ease;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent-primary);
  background: var(--bg-surface);
}
.contact-form textarea { min-height: 140px; resize: vertical; }
.contact-form .req { color: var(--accent-warm); margin-left: 0.25em; }
.contact-form button { justify-self: start; margin-top: 0.25rem; }

/* RICH COPY ------------------------------------------------------------ */

.rich-copy {
  display: grid;
  gap: 1.15rem;
  max-width: 40rem;
}
.rich-copy p { color: var(--ink-primary); }
.rich-copy p + p { margin-top: 0.2rem; }
.rich-copy h2 { margin: 1.5rem 0 0.25rem; font-size: clamp(1.5rem, 2.4vw, 1.95rem); }
.rich-copy h3 { margin: 1rem 0 0.25rem; }
.rich-copy ul { padding-left: 1.2rem; color: var(--ink-primary); }
.rich-copy li { margin: 0.35rem 0; }

.rich-copy.has-dropcap > p:first-of-type::first-letter {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 4.5em;
  line-height: 0.85;
  float: left;
  margin: 0.1em 0.12em 0 -0.04em;
  color: var(--accent-warm);
}

.content-layout {
  display: grid;
  gap: clamp(2.5rem, 5vw, 4rem);
  align-items: start;
}
@media (min-width: 900px) {
  .content-layout { grid-template-columns: minmax(0, 1fr) 320px; }
  .content-layout.single-wide { grid-template-columns: minmax(0, 720px); justify-content: center; }
}

.sidebar-card {
  display: grid;
  gap: 0.85rem;
  padding: 1.6rem 1.6rem 1.75rem;
  background: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  position: sticky;
  top: 92px;
  box-shadow: var(--shadow-sm);
}
.sidebar-card h2 {
  font-size: 1.15rem;
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: -0.005em;
  text-transform: none;
}
.sidebar-card p { color: var(--ink-secondary); font-size: 0.95rem; }

.feature-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.4rem 1.5rem;
  margin: 0.5rem 0 0;
  padding: 0;
  list-style: none;
  color: var(--ink-primary);
}
.feature-list li {
  padding-left: 1rem;
  position: relative;
  font-size: 0.97rem;
}
.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.8em;
  width: 8px;
  height: 1px;
  background: var(--accent-warm);
}
@media (max-width: 600px) {
  .feature-list { grid-template-columns: 1fr; }
}

.process-list {
  counter-reset: step;
  display: grid;
  gap: 0;
  margin-top: 1.5rem;
  padding: 0;
  list-style: none;
}
.process-list li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 4rem 1fr;
  gap: 1.25rem;
  padding: 1.4rem 0;
  border-top: 1px solid var(--line);
}
.process-list li:last-child { border-bottom: 1px solid var(--line); }
.process-list li::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-display);
  font-size: 1.65rem;
  color: var(--accent-warm);
  line-height: 1;
}
.process-list li h3 {
  margin-bottom: 0.35rem;
  font-size: 1.25rem;
  font-weight: 500;
  font-family: var(--font-display);
}
.process-list li p { color: var(--ink-secondary); font-size: 0.97rem; }

.accordion { display: grid; gap: 0; }
.accordion details {
  border-top: 1px solid var(--line);
  padding: 1rem 0;
}
.accordion details:last-of-type { border-bottom: 1px solid var(--line); }
.accordion summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.5rem 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--ink-primary);
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after {
  content: "";
  width: 10px; height: 10px;
  border-right: 1px solid var(--ink-secondary);
  border-bottom: 1px solid var(--ink-secondary);
  transform: rotate(45deg);
  transition: transform 220ms ease;
}
.accordion details[open] summary::after { transform: rotate(-135deg); }
.accordion details > div {
  padding: 0.5rem 0 0.25rem;
  color: var(--ink-secondary);
}

/* BLOG ---------------------------------------------------------------- */

.blog-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 900px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
.blog-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 2rem;
  background: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 200ms ease, box-shadow 200ms ease;
}
.blog-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.blog-card h2 { font-size: 1.6rem; font-family: var(--font-display); }
.blog-card p { color: var(--ink-secondary); }
.blog-card .meta-line { color: var(--ink-tertiary); }

/* FOOTER -------------------------------------------------------------- */

.site-footer {
  padding: clamp(3rem, 6vw, 4.5rem) 0 2rem;
  background: var(--ink-primary);
  color: rgba(251, 248, 243, 0.72);
  position: relative;
  overflow: hidden;
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: auto -10% -40% -10%;
  height: 340px;
  background: radial-gradient(ellipse at center, rgba(184, 137, 107, 0.14), transparent 60%);
  pointer-events: none;
}
.footer-grid {
  display: grid;
  gap: clamp(2rem, 4vw, 3rem);
  position: relative;
}
@media (min-width: 900px) {
  .footer-grid { grid-template-columns: 1.4fr 0.8fr 0.8fr 0.8fr; }
}
.footer-col h3 {
  margin-bottom: 0.8rem;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-subtle);
}
.footer-col p, .footer-col a {
  color: rgba(251, 248, 243, 0.72);
  font-size: 0.95rem;
  display: block;
  margin: 0.3rem 0;
}
.footer-col a:hover { color: var(--bg-surface); }

.footer-brand {
  max-width: 28rem;
}
.footer-brand .brandmark { font-size: 1.6rem; color: var(--bg-surface); }
.footer-brand .brandmark-mark { background: var(--accent-warm); color: var(--ink-primary); }
.footer-brand p { color: rgba(251, 248, 243, 0.72); margin-top: 1rem; font-family: var(--font-display); font-style: italic; font-size: 1.15rem; line-height: 1.45; }

.footer-bottom {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-top: 1.25rem;
  border-top: 1px solid rgba(251, 248, 243, 0.1);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  color: rgba(251, 248, 243, 0.5);
  font-size: 0.85rem;
  position: relative;
}
.footer-bottom a { color: rgba(251, 248, 243, 0.6); }
.footer-crisis {
  padding: 0.55rem 1rem;
  background: rgba(184, 137, 107, 0.14);
  border: 1px solid rgba(184, 137, 107, 0.3);
  border-radius: var(--radius-pill);
  color: var(--accent-subtle);
  font-size: 0.82rem;
  font-weight: 500;
}
.footer-crisis a { color: var(--bg-surface); text-decoration: underline; text-underline-offset: 3px; }

/* CHAT WIDGET --------------------------------------------------------- */

.chat-shell {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 50;
}
.chat-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.7rem 1.1rem;
  background: var(--bg-surface);
  color: var(--ink-primary);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  font: inherit;
  font-weight: 500;
  font-size: 0.88rem;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: border-color 140ms ease, transform 140ms ease;
}
.chat-toggle:hover { border-color: var(--ink-primary); transform: translateY(-1px); }
.chat-toggle svg { width: 14px; height: 14px; color: var(--accent-primary); }

.chat-panel {
  width: min(360px, calc(100vw - 2rem));
  margin-top: 0.75rem;
  padding: 1rem 1rem 0.85rem;
  background: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
.chat-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--line);
}
.chat-header strong {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 400;
  letter-spacing: -0.01em;
}
.chat-header p {
  margin-top: 0.15rem;
  font-size: 0.76rem;
  color: var(--ink-tertiary);
}
.chat-close {
  width: 28px; height: 28px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink-secondary);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  border-radius: 999px;
}
.chat-close:hover { color: var(--ink-primary); }
.chat-messages {
  display: grid;
  gap: 0.6rem;
  padding: 0.9rem 0;
  max-height: 280px;
  overflow: auto;
}
.message {
  padding: 0.7rem 0.9rem;
  border-radius: 12px;
  line-height: 1.55;
  font-size: 0.9rem;
}
.message.assistant { background: var(--bg-canvas); color: var(--ink-primary); }
.message.user { background: var(--accent-primary); color: var(--bg-surface); justify-self: end; max-width: 85%; }
.chat-form { display: grid; gap: 0.6rem; }
.chat-form textarea {
  padding: 0.7rem 0.85rem;
  min-height: 70px;
  resize: vertical;
  background: var(--bg-canvas);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font: inherit;
  color: var(--ink-primary);
}
.chat-form textarea:focus { outline: none; border-color: var(--accent-primary); }
.chat-disclaimer {
  margin-top: 0.55rem;
  padding-top: 0.6rem;
  border-top: 1px solid var(--line);
  font-size: 0.74rem;
  color: var(--ink-tertiary);
  line-height: 1.5;
}

/* UTILITIES & MOTION -------------------------------------------------- */

.hidden { display: none !important; }
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 700ms ease-out, transform 700ms cubic-bezier(.22,.61,.36,1);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.hero-copy > * {
  opacity: 0;
  transform: translateY(6px);
  animation: fade-rise 700ms cubic-bezier(.22,.61,.36,1) forwards;
}
.hero-copy > *:nth-child(1) { animation-delay: 80ms; }
.hero-copy > *:nth-child(2) { animation-delay: 180ms; }
.hero-copy > *:nth-child(3) { animation-delay: 260ms; }
.hero-copy > *:nth-child(4) { animation-delay: 340ms; }
.hero-copy > *:nth-child(5) { animation-delay: 420ms; }
.hero-entry { opacity: 0; animation: fade-rise 700ms cubic-bezier(.22,.61,.36,1) 360ms forwards; }

@keyframes fade-rise {
  to { opacity: 1; transform: translateY(0); }
}

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