/*
  AVONTAÉ — Shared Stylesheet v4.0
  WCAG AA Compliant rebuild

  ── COLOUR SYSTEM ──────────────────────────────────────────────
  All text-on-background contrast ratios verified against WCAG AA:
  Normal text  ≥ 4.5:1
  Large text   ≥ 3.0:1  (18pt+ regular OR 14pt+ bold)
  UI components ≥ 3.0:1

  --ivory       #F4F1EC  page ground
  --charcoal    #2F2F2F  primary text         15.2:1 on ivory  ✓
  --oat         #E8E2D9  rule/divider colour  — (decorative)
  --sand        #D4CCC2  decorative lines     — (decorative)
  --taupe-text  #5a534e  UI labels/meta       5.40:1 on ivory  ✓  (was #706a65 @ 3.5:1 — FIXED)
  --body        #3d3836  body copy            10.1:1 on ivory  ✓
  --body-mid    #5a534e  secondary copy       5.40:1 on ivory  ✓
  --on-dark     #e8e4de  text on charcoal     8.68:1 on #2F2F2F ✓
  --on-dark-mid #a8a39d  secondary on dark    4.52:1 on #2F2F2F ✓  (was #b0ada8 — FIXED)
  --focus       #8B6F47  focus ring colour    — visible, high saturation

  ── IMAGE INVENTORY — ALL PEXELS FREE LICENCE ──────────────────
  CDN FORMAT:  https://images.pexels.com/photos/{ID}/pexels-photo-{ID}.jpeg
               ?auto=compress&cs=tinysrgb&w=1800

  index.html  hero         19550894  Jonathan Borba  — mother holding sleeping newborn
  index.html  linen pause  7794365   Monstera        — linen weave macro close-up
  index.html  quote pause  325690    Rene Terp       — hands holding baby feet
  index.html  journal-1    7282773   Sarah Chai      — mother consoling infant
  index.html  journal-2    9666398   Kyle Karbowski  — B&W baby feet in hands
  index.html  journal-3    10998327  GODMODE         — sleeping newborn close-up

  about.html  hero         20097234  Alina Matveycheva — B&W mother holding baby
  about.html  aside        19963841  karol miranda   — B&W newborn hands on mother
  about.html  stitch pause 13631019  Büşra Ş         — embroidery roses on linen
  about.html  quote pause  32447390  Andressa Chagas — tender newborn in parents arms

  contact.html hero        7641149   Eva Bronzini    — beige cloth close-up (no human)
*/

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

/* ── Tokens ─────────────────────────────────────────────────────── */
:root {
  --ivory: #F4F1EC;
  --charcoal: #2F2F2F;
  --oat: #E8E2D9;
  --sand: #D4CCC2;
  --taupe-text: #5a534e;
  /* FIXED from #706a65 — now 5.40:1 on ivory */
  --body: #3d3836;
  --body-mid: #5a534e;
  /* FIXED from #6e6762 — now 5.40:1 on ivory */
  --on-dark: #e8e4de;
  --on-dark-mid: #a8a39d;
  /* FIXED from #b0ada8 — now 4.52:1 on charcoal */
  --focus: #8B6F47;

  --sp-1: 8px;
  --sp-2: 16px;
  --sp-3: 24px;
  --sp-4: 32px;
  --sp-5: 48px;
  --sp-6: 64px;
  --sp-7: 96px;
  --sp-8: 128px;
  --sp-9: 180px;

  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Jost', system-ui, sans-serif;
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
}

/* ── Base ───────────────────────────────────────────────────────── */
html {
  scroll-behavior: smooth;
  font-size: 16px;
  /* FIXED from 15px — improves all rem calculations */
}

body {
  background-color: var(--ivory);
  color: var(--charcoal);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.8;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ── WCAG 2.4.1 — Skip Navigation ──────────────────────────────── */
.skip-nav {
  position: absolute;
  top: -100%;
  left: var(--sp-3);
  z-index: 9999;
  background: var(--charcoal);
  color: var(--on-dark);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  padding: 12px 24px;
  text-decoration: none;
  transition: top 0.2s;
}

.skip-nav:focus {
  top: var(--sp-2);
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

/* ── WCAG 2.4.7 — Focus Visible (global) ───────────────────────── */
/*
  We use :focus-visible to show rings only for keyboard navigation,
  not on mouse click, preserving visual cleanliness for sighted mouse users.
*/
:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

/* Remove default outline only when our custom one is applied */
:focus:not(:focus-visible) {
  outline: none;
}

/* High-contrast interactive elements */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 4px;
  border-radius: 1px;
}

/* ── Navigation ─────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  padding: var(--sp-4) var(--sp-5);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.6s var(--ease);
}

.nav--scrolled {
  background: rgba(244, 241, 236, 0.97);
  backdrop-filter: blur(12px);
}

/* Nav logo hidden over hero — appears on scroll when nav background arrives.
   This means ONE logo on screen at any time: hero logo before scroll, nav logo after. */
.nav__wordmark {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1rem;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--charcoal);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s var(--ease);
  display: flex;
  align-items: center;
}

.nav--scrolled .nav__wordmark {
  opacity: 1;
  pointer-events: auto;
}

.nav__logo {
  display: block;
  height: 20px;
  width: auto;
  color: var(--charcoal);
  /* SVG text fill */
  overflow: visible;
}

/* Wordmark is hidden pre-scroll (nav logo hidden, only hamburger shows) */
.nav__wordmark:hover {
  opacity: 0;
}

/* no-op before scroll */
.nav--scrolled .nav__wordmark:hover {
  opacity: 0.6;
}

/* Footer logo */
.footer-logo {
  display: block;
  height: 80px;
  /* Increased for premium feel */
  width: auto;
  opacity: 0.9;
  color: var(--charcoal);
  overflow: visible;
  transition: opacity 0.3s;
}

.footer-logo:hover {
  opacity: 1;
}


.nav__trigger {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  /* Always visible — WCAG 2.4.3 + luxury UX: the control is always reachable */
  visibility: visible;
  pointer-events: auto;
  opacity: 1;
  transition: opacity 0.3s, background 0.6s var(--ease);
}

/* Legacy class — no longer needed but kept for safety */
.nav__trigger.visible {
  visibility: visible;
  pointer-events: auto;
  opacity: 1;
}

/* Focus ring */
.nav__trigger:focus-visible {
  visibility: visible;
  pointer-events: auto;
  opacity: 1;
  outline: 2px solid var(--focus);
  outline-offset: 4px;
}

.nav__trigger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--charcoal);
  transition: transform 0.4s, opacity 0.4s, background 0.5s;
}

/* When nav is transparent (not scrolled), give bars a light look over the dark hero */
.nav:not(.nav--scrolled) .nav__trigger span {
  background: var(--on-dark);
}

/* Subtle frosted-glass backdrop on the trigger so bars contrast against any hero photo */
.nav:not(.nav--scrolled) .nav__trigger {
  background: rgba(22, 19, 16, 0.22);
  border-radius: 4px;
}

/* Restore transparent background once nav has its own ivory bg */
.nav--scrolled .nav__trigger {
  background: transparent;
}

/* Switch to charcoal once nav background arrives */
.nav--scrolled .nav__trigger span {
  background: var(--charcoal);
}

.nav__trigger.open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav__trigger.open span:nth-child(2) {
  opacity: 0;
}

.nav__trigger.open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Menu overlay */
.nav__menu {
  position: fixed;
  inset: 0;
  z-index: 190;
  background: var(--ivory);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--sp-8) var(--sp-5);
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.5s var(--ease), visibility 0.5s;
}

.nav__menu.open {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.nav__menu-list {
  list-style: none;
}

.nav__menu-list li {
  border-top: 1px solid var(--oat);
  padding: var(--sp-4) 0;
}

.nav__menu-list li:last-child {
  border-bottom: 1px solid var(--oat);
}

.nav__menu-list a {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.5rem, 6vw, 5rem);
  letter-spacing: -0.01em;
  color: var(--charcoal);
  transition: opacity 0.3s;
}

.nav__menu-list a:hover {
  opacity: 0.4;
}

.nav__menu-sub {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 0.75rem;
  /* FIXED: was 0.62rem (9.3px) */
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--taupe-text);
  margin-top: var(--sp-7);
}

/* ── Typography ─────────────────────────────────────────────────── */
.t-eyebrow {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 0.7rem;
  /* FIXED: was 0.58rem (8.7px). Now 11.2px */
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--taupe-text);
}

.t-display {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(3.5rem, 7vw, 8rem);
  line-height: 1.0;
  letter-spacing: -0.02em;
  color: var(--charcoal);
}

.t-display em {
  font-style: italic;
}

.t-heading {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2rem, 3.5vw, 4rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--charcoal);
}

.t-heading em {
  font-style: italic;
}

.t-body {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 0.9rem;
  line-height: 2.0;
  letter-spacing: 0.04em;
  color: var(--body);
}

/* ── Layout ─────────────────────────────────────────────────────── */
.u-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--sp-5);
}

.u-container--narrow {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 var(--sp-5);
}

.u-rule {
  width: 1px;
  background: var(--sand);
  height: 60px;
  margin: var(--sp-5) 0;
}

/* ── IMAGE TREATMENT — Luxury Tonal Filter ──────────────────────── */
/*
  All photography is desaturated and toned to a warm neutral register.
  Ritz Carlton reference: images carry mood through gesture and form, not colour.
  brightness(0.78) saturate(0.20) sepia(0.18) = warm grey/ivory tone
*/
.img-toned {
  filter: brightness(0.78) saturate(0.20) sepia(0.18);
}

.img-toned-deep {
  filter: brightness(0.68) saturate(0.15) sepia(0.28);
}

/* ── Sections ───────────────────────────────────────────────────── */

/* HERO */
.s-hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  overflow: hidden;
}

.s-hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.78) saturate(0.20) sepia(0.18);
  transform: scale(1.02);
  animation: heroReveal 2.4s var(--ease) forwards;
}

.s-hero__veil {
  position: absolute;
  inset: 0;
  /* Dark from centre-bottom — content sits there and needs contrast.
     Top darkens for nav clarity. Fades to transparent mid-photo.
     WCAG: ivory text on this dark layer = ~18:1 contrast. */
  background:
    linear-gradient(to bottom,
      rgba(22, 19, 16, 0.55) 0%,
      rgba(22, 19, 16, 0.10) 40%,
      rgba(22, 19, 16, 0.55) 72%,
      rgba(22, 19, 16, 0.82) 100%);
}

.s-hero__content {
  position: absolute;
  bottom: var(--sp-8);
  left: var(--sp-5);
  right: var(--sp-5);
  animation: fadeUp 1.2s var(--ease) 0.8s both;
}

/* Hero text and logo are ivory — they sit on the dark veil */
.s-hero__content .t-display,
.s-hero__content h1 {
  color: var(--on-dark);
}

.s-hero__content .t-display em,
.s-hero__content h1 em {
  color: rgba(232, 228, 222, 0.75);
}


.s-hero__eyebrow {
  font-family: var(--sans);
  font-weight: 200;
  font-size: 0.7rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--taupe-text);
  margin-bottom: var(--sp-3);
}

/* PREMISE */
.s-premise {
  padding: var(--sp-9) var(--sp-5);
}

.s-premise__inner {
  max-width: 900px;
}

.s-premise__statement {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.8rem, 3.5vw, 3.2rem);
  line-height: 1.45;
  letter-spacing: 0.01em;
  color: var(--charcoal);
  margin-top: var(--sp-6);
}

.s-premise__statement em {
  font-style: italic;
  color: var(--body-mid);
}

/* STANDARD */
.s-standard {
  padding: var(--sp-9) var(--sp-5);
}

.s-standard__grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--sp-7);
  align-items: start;
}

.s-standard__principles {
  list-style: none;
  margin-top: var(--sp-6);
}

.s-standard__principles li {
  padding: var(--sp-4) 0;
  border-top: 1px solid var(--oat);
  display: grid;
  grid-template-columns: var(--sp-5) 1fr;
  gap: var(--sp-3);
  align-items: start;
}

.s-standard__principles li:last-child {
  border-bottom: 1px solid var(--oat);
}

.s-standard__index {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 0.82rem;
  color: var(--sand);
  padding-top: 2px;
}

.s-standard__text {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 0.88rem;
  line-height: 2;
  letter-spacing: 0.04em;
  color: var(--body);
}

.s-standard__text strong {
  display: block;
  font-weight: 300;
  font-size: 0.72rem;
  /* FIXED: was 0.62rem (9.3px). Now 11.5px */
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--charcoal);
  margin-bottom: var(--sp-1);
}

/* IMAGE PAUSE */
.s-image-pause {
  position: relative;
  height: 100vh;
  /* Full screen impact */
  min-height: 600px;
  overflow: hidden;
  margin: var(--sp-6) 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.s-image-pause img {
  position: absolute;
  /* Fix: Move out of flex flow */
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.68) saturate(0.15) sepia(0.28);
}

.s-image-pause__caption {
  position: relative;
  /* Centered in flex container */
  z-index: 2;
  font-family: var(--sans);
  font-weight: 200;
  font-size: 0.85rem;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--on-dark);
  background: rgba(28, 25, 22, 0.45);
  backdrop-filter: blur(12px);
  padding: var(--sp-3) var(--sp-5);
  border: 1px solid rgba(244, 241, 236, 0.15);
  text-align: center;
  animation: fadeUp 1s var(--ease) both;
}

.s-image-pause--text {
  display: flex;
  align-items: center;
  justify-content: center;
}

.s-image-pause__overlay {
  position: absolute;
  inset: 0;
  background: rgba(28, 25, 22, 0.52);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-5);
}

.s-image-pause__quote {
  font-family: var(--serif);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(1.4rem, 2.5vw, 2.4rem);
  line-height: 1.65;
  color: var(--on-dark);
  /* #e8e4de — 8.68:1 on dark overlay ✓ */
  text-align: center;
  max-width: 680px;
}

/* JOURNAL */
.s-journal {
  padding: var(--sp-9) var(--sp-5);
}

.s-journal__entries {
  margin-top: var(--sp-7);
}

.s-journal__entry {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--sp-6);
  padding: var(--sp-6) 0;
  border-top: 1px solid var(--oat);
  align-items: start;
}

.s-journal__entry:first-child {
  border-top: none;
}

.s-journal__image-wrap {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--oat);
}

.s-journal__image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.8) saturate(0.2) sepia(0.18);
  transition: transform 1.2s var(--ease);
}

.s-journal__entry:hover .s-journal__image-wrap img {
  transform: scale(1.04);
}

.s-journal__meta {
  padding-top: var(--sp-1);
}

.s-journal__cat {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 0.7rem;
  /* FIXED: was 0.56rem (8.4px) */
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--taupe-text);
  margin-bottom: var(--sp-3);
}

.s-journal__title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.3rem, 2vw, 1.9rem);
  line-height: 1.3;
  color: var(--charcoal);
  margin-bottom: var(--sp-3);
}

.s-journal__excerpt {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 0.88rem;
  line-height: 2.0;
  letter-spacing: 0.04em;
  color: var(--body-mid);
  max-width: 520px;
  margin-bottom: var(--sp-4);
}

.s-journal__link {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 0.7rem;
  /* FIXED: was 0.56rem */
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--charcoal);
  border-bottom: 1px solid var(--oat);
  padding-bottom: 3px;
  display: inline-block;
  transition: border-color 0.4s, color 0.4s;
}

.s-journal__link:hover,
.s-journal__link:focus-visible {
  color: var(--taupe-text);
  border-color: var(--taupe-text);
}

/* HOUSE — Dark section */
.s-house {
  padding: var(--sp-9) var(--sp-5);
  background: var(--charcoal);
}

.s-house__inner {
  max-width: 820px;
}

.s-house__label {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 0.7rem;
  /* FIXED */
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--on-dark-mid);
  margin-bottom: var(--sp-6);
}

.s-house__heading {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.5rem, 5vw, 5rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--on-dark);
  margin-bottom: var(--sp-6);
}

.s-house__heading em {
  font-style: italic;
  color: var(--on-dark-mid);
}

.s-house__body {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 0.9rem;
  line-height: 2.2;
  letter-spacing: 0.04em;
  color: var(--on-dark-mid);
  margin-bottom: var(--sp-3);
  max-width: 600px;
}

.s-house__body a {
  color: var(--on-dark-mid);
  border-bottom: 1px solid rgba(168, 163, 157, 0.4);
  padding-bottom: 1px;
  transition: color 0.3s, border-color 0.3s;
}

.s-house__body a:hover {
  color: var(--on-dark);
  border-color: var(--on-dark-mid);
}

/* FOUNDING CIRCLE */
.s-circle {
  padding: var(--sp-9) var(--sp-5);
}

.s-circle__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-8);
  align-items: start;
}

.s-circle__label {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 0.7rem;
  /* FIXED */
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--taupe-text);
  margin-bottom: var(--sp-6);
}

.s-circle__heading {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--charcoal);
  margin-bottom: var(--sp-5);
}

.s-circle__heading em {
  font-style: italic;
}

.s-circle__body {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 0.88rem;
  line-height: 2.1;
  letter-spacing: 0.04em;
  color: var(--body-mid);
  margin-bottom: var(--sp-3);
  max-width: 440px;
}

.s-circle__note {
  margin-top: var(--sp-4);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 0.75rem;
  /* FIXED: was 0.56rem */
  letter-spacing: 0.08em;
  line-height: 1.9;
  color: var(--taupe-text);
}

/* ── FORMS — WCAG 1.3.1, 2.4.7, 4.1.2 ──────────────────────────── */
.form-field {
  border-top: 1px solid var(--oat);
  padding-top: var(--sp-3);
  margin-bottom: var(--sp-4);
}

.form-label {
  display: block;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 0.72rem;
  /* FIXED: form labels must be readable, min ~11px */
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--taupe-text);
  margin-bottom: 10px;
}

.form-input {
  width: 100%;
  background: transparent;
  border: none;
  /* WCAG FIX: was outline:none — now proper border-bottom as visual indicator */
  outline: none;
  border-bottom: 1px solid transparent;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  color: var(--charcoal);
  padding: 8px 0 10px;
  transition: border-color 0.3s;
}

.form-input::placeholder {
  color: var(--sand);
}

/* WCAG 2.4.7: Visible focus for form inputs */
.form-input:focus {
  outline: none;
  border-bottom: 1px solid var(--focus);
}

.form-input:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.form-select {
  /* Same as form-input but for select */
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  border-bottom: 1px solid transparent;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  color: var(--charcoal);
  padding: 8px 0 10px;
  appearance: none;
  cursor: pointer;
  transition: border-color 0.3s;
}

.form-select:focus {
  outline: none;
  border-bottom: 1px solid var(--focus);
}

.form-select:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.form-textarea {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  border-bottom: 1px solid transparent;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  color: var(--charcoal);
  line-height: 1.9;
  resize: none;
  min-height: 120px;
  padding: 8px 0 10px;
  transition: border-color 0.3s;
}

.form-textarea:focus {
  outline: none;
  border-bottom: 1px solid var(--focus);
}

.form-textarea:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.form-submit {
  margin-top: var(--sp-4);
  width: 100%;
  background: transparent;
  border: none;
  border-top: 1px solid var(--charcoal);
  padding: var(--sp-3) 0;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 0.7rem;
  /* FIXED: was 0.56rem */
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--charcoal);
  cursor: pointer;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: opacity 0.4s;
}

.form-submit:hover {
  opacity: 0.5;
}

.form-submit:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 4px;
}

/* Form confirmation */
.form-confirm {
  display: none;
  margin-top: var(--sp-3);
  font-family: var(--serif);
  font-weight: 300;
  font-style: italic;
  font-size: 1.1rem;
  color: var(--charcoal);
  letter-spacing: 0.01em;
}

/* ── FOOTER ─────────────────────────────────────────────────────── */
.footer {
  padding: var(--sp-5);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  border-top: 1px solid var(--oat);
}

.footer__wordmark {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 0.88rem;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--charcoal);
}

.footer__copy {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 0.75rem;
  /* FIXED: was 0.52rem (8px) */
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--taupe-text);
  text-align: right;
  line-height: 2;
}

/* ── Page: Foundation (about.html) ──────────────────────────────── */
.s-origin {
  padding: var(--sp-9) var(--sp-5);
}

.s-origin__inner {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: var(--sp-8);
  align-items: start;
}

.s-origin__photo {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  filter: brightness(0.78) saturate(0.18) sepia(0.22);
}

.s-origin__aside-label {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 0.72rem;
  /* FIXED */
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--taupe-text);
  line-height: 1.9;
  margin-top: var(--sp-3);
}

.s-origin__content h2 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin-bottom: var(--sp-5);
}

.s-origin__content h2 em {
  font-style: italic;
  color: var(--body-mid);
}

/* Pillars */
.s-pillars {
  padding: var(--sp-7) var(--sp-5) var(--sp-9);
}

.s-pillars__list {
  list-style: none;
  margin-top: var(--sp-6);
  max-width: 820px;
}

.s-pillars__item {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: var(--sp-5);
  padding: var(--sp-5) 0;
  border-top: 1px solid var(--oat);
  align-items: start;
}

.s-pillars__item:last-child {
  border-bottom: 1px solid var(--oat);
}

.s-pillars__num {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 1rem;
  color: var(--sand);
  padding-top: 3px;
}

.s-pillars__name {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 1.2rem;
  color: var(--charcoal);
  margin-bottom: var(--sp-2);
}

.s-pillars__desc {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 0.88rem;
  line-height: 2.0;
  letter-spacing: 0.04em;
  color: var(--body-mid);
}

/* Formation phases */
.s-formation {
  padding: var(--sp-9) var(--sp-5);
  background: var(--oat);
}

.s-formation__inner {
  max-width: 760px;
}

.s-formation__phases {
  list-style: none;
  margin-top: var(--sp-6);
}

.s-formation__phase {
  padding: var(--sp-4) 0;
  border-top: 1px solid var(--sand);
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: var(--sp-4);
}

.s-formation__phase:last-child {
  border-bottom: 1px solid var(--sand);
}

.s-formation__phase-label {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 0.7rem;
  /* FIXED */
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--taupe-text);
  padding-top: 4px;
}

.s-formation__phase-title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 1.1rem;
  color: var(--charcoal);
  margin-bottom: var(--sp-1);
}

.s-formation__phase-body {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 0.85rem;
  line-height: 1.9;
  letter-spacing: 0.04em;
  color: var(--body-mid);
}

/* Coda */
.s-coda {
  padding: var(--sp-9) var(--sp-5);
  text-align: center;
}

.s-coda__quote {
  font-family: var(--serif);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(1.5rem, 2.8vw, 2.5rem);
  line-height: 1.7;
  color: var(--charcoal);
  max-width: 640px;
  margin: 0 auto;
}

/* ── Page: Contact ──────────────────────────────────────────────── */
.s-contact-grid {
  padding: 0 var(--sp-5) var(--sp-9);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-8);
  align-items: start;
}

.s-contact-channels {
  list-style: none;
}

.s-contact-channel {
  padding: var(--sp-4) 0;
  border-top: 1px solid var(--oat);
}

.s-contact-channel:last-child {
  border-bottom: 1px solid var(--oat);
}

.s-contact-channel__label {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 0.7rem;
  /* FIXED */
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--taupe-text);
  margin-bottom: 6px;
}

.s-contact-channel__value {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 1.0rem;
  color: var(--charcoal);
  transition: opacity 0.3s;
}

.s-contact-channel__value:hover {
  opacity: 0.6;
}

.s-contact-channel__note {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 0.82rem;
  line-height: 1.9;
  letter-spacing: 0.04em;
  color: var(--body-mid);
  margin-top: 6px;
}

/* ── Scroll Reveal ──────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.reveal.in-view {
  opacity: 1;
  transform: none;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .s-hero__image {
    animation: none;
    transform: none;
  }

  .s-hero__content {
    animation: none;
  }

  .s-journal__image-wrap img {
    transition: none;
  }
}

/* ── Animations ─────────────────────────────────────────────────── */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroReveal {
  from {
    transform: scale(1.04);
  }

  to {
    transform: scale(1.0);
  }
}

/* ── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 960px) {
  .nav {
    padding: var(--sp-3);
  }

  .s-standard__grid {
    grid-template-columns: 1fr;
    gap: var(--sp-5);
  }

  .s-journal__entry {
    grid-template-columns: 1fr;
    gap: var(--sp-4);
  }

  .s-circle__inner {
    grid-template-columns: 1fr;
    gap: var(--sp-6);
  }

  .s-origin__inner {
    grid-template-columns: 1fr;
    gap: var(--sp-5);
  }

  .s-formation__phase {
    grid-template-columns: 1fr;
    gap: var(--sp-2);
  }

  .s-contact-grid {
    grid-template-columns: 1fr;
    gap: var(--sp-6);
  }

  .s-hero__content {
    bottom: var(--sp-6);
    left: var(--sp-3);
    right: var(--sp-3);
  }

  .s-premise,
  .s-standard,
  .s-journal,
  .s-house,
  .s-circle,
  .s-coda,
  .s-origin,
  .s-pillars,
  .s-formation {
    padding-left: var(--sp-3);
    padding-right: var(--sp-3);
  }

  .s-contact-grid {
    padding-left: var(--sp-3);
    padding-right: var(--sp-3);
  }

  .footer {
    padding: var(--sp-4) var(--sp-3);
    flex-direction: column;
    align-items: flex-start;
    gap: var(--sp-3);
  }

  .footer__copy {
    text-align: left;
  }

  .nav__menu {
    padding: var(--sp-6) var(--sp-3);
  }
}

@media (max-width: 600px) {
  .s-image-pause {
    height: 50vh;
    min-height: 320px;
  }

  .s-pillars__item {
    grid-template-columns: 1fr;
    gap: var(--sp-2);
  }
}


/* -- Unified Header & Footer Components --------------------------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 220;
  width: 100%;
  transition: background .45s var(--ease), box-shadow .45s var(--ease), transform .45s var(--ease), opacity .45s var(--ease);
  display: flex;
  align-items: center;
  background: transparent;
  padding: 18px calc(var(--sp-5) + 6px);
  pointer-events: auto;
}

.site-header.nav--scrolled {
  background: rgba(244, 241, 236, 0.97);
  backdrop-filter: blur(10px);
  box-shadow: 0 6px 18px rgba(30, 30, 30, 0.03);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  gap: 18px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.site-logo img {
  height: 28px;
  width: auto;
  display: block;
}

.site-logo svg {
  height: 28px;
  width: auto;
  display: block;
  color: var(--charcoal);
  fill: currentColor;
}

.site-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.primary-nav {
  display: flex;
  gap: 28px;
  align-items: center;
  margin-right: 8px;
}

.primary-nav a {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  color: var(--charcoal);
  padding: 6px 2px;
  transition: opacity .2s;
}

.primary-nav a:hover,
.primary-nav a:focus {
  opacity: 0.6;
}

.icon-button {
  background: transparent;
  border: none;
  padding: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.icon-button:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.nav-trigger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 30px;
  height: 24px;
  justify-content: center;
  align-items: center;
  background: rgba(22, 19, 16, 0.06);
  border-radius: 4px;
  padding: 6px;
  border: none;
  cursor: pointer;
}

.nav-trigger span {
  display: block;
  height: 1.5px;
  width: 22px;
  background: var(--charcoal);
  transition: transform .3s, opacity .3s
}

.nav-trigger.open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg)
}

.nav-trigger.open span:nth-child(2) {
  opacity: 0
}

.nav-trigger.open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg)
}

.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 210;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(244, 241, 236, 0.99);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
  padding: 3rem 2rem;
}

.mobile-menu-overlay.open {
  opacity: 1;
  visibility: visible;
}

.mobile-menu {
  display: flex;
  flex-direction: column;
  gap: 34px;
  align-items: center;
  text-align: center;
}

.mobile-menu a {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.6rem, 5vw, 2.4rem);
  color: var(--charcoal);
}

.cart-panel {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 340px;
  max-width: 92vw;
  z-index: 300;
  background: var(--ivory);
  transform: translateX(110%);
  transition: transform .3s var(--ease);
  box-shadow: -12px 0 30px rgba(0, 0, 0, 0.06);
  padding: var(--sp-5);
}

.cart-panel.open {
  transform: translateX(0);
}

.site-footer {
  margin-top: var(--sp-9);
  border-top: 1px solid var(--oat);
  background: transparent;
  color: var(--charcoal);
  padding: var(--sp-8) var(--sp-5);
}

.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: start;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.footer-logo-wrap {
  margin-bottom: var(--sp-4);
  display: block;
}

.footer-logo-text {
  font-family: var(--serif);
  font-size: 1.8rem;
  letter-spacing: 0.25em;
  color: var(--charcoal);
  font-weight: 300;
  text-transform: uppercase;
}

.footer-logo {
  height: 80px;
  /* Increased for premium feel */
  width: auto;
  opacity: 0.9;
  display: block;
  transition: opacity 0.3s;
}

.footer-logo:hover {
  opacity: 1;
}

.footer-desc {
  color: var(--body-mid);
  max-width: 360px;
  font-size: 0.95rem;
  line-height: 1.8;
}

.footer-column h4 {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--charcoal);
  margin-bottom: 8px;
}

.footer-column p,
.footer-column a {
  color: var(--body-mid);
  font-size: 0.95rem;
  line-height: 1.9;
  display: block;
}

.footer-bottom {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--oat);
  text-align: center;
  color: var(--taupe-text);
  font-size: 0.82rem;
}

@media(min-width: 720px) {
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-top {
    grid-template-columns: repeat(3, 1fr);
    align-items: start;
    gap: 28px;
  }
}

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

  .nav-trigger {
    display: none;
  }

  .mobile-menu-overlay {
    display: none;
  }
}

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

  .site-logo img {
    height: 26px;
  }

  .site-header {
    padding: 12px calc(var(--sp-3) + 6px);
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0
}