/* ==========================================================================
   The Sorted Space — Design System
   Style: Soft UI Evolution (subtle depth, soft shadows, WCAG AA+)
   Type:  Lora (headings) / Raleway (body) — calm, warm, organic
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Raleway:wght@300;400;500;600;700&display=swap');

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Brand palette (from logo) */
  --charcoal: #3a3a35;
  --charcoal-soft: #55554d;
  --terracotta: #b85c38;
  --terracotta-dark: #9c4a2a;
  --terracotta-soft: #d08560;
  --sage: #7a9e7e;
  --sage-dark: #5f8163;
  --sage-soft: #e3ece2;
  --sage-deep: #34423a;
  --sage-deep-soft: #3d4d43;
  --cream: #faf8f5;
  --cream-deep: #f1ece4;
  --paper: #ffffff;
  --line: #e7e0d6;

  /* Text */
  --text: #3a3a35;
  --text-muted: #6b6b62;
  --text-on-dark: #f4efe8;

  /* Typography */
  --font-head: 'Lora', Georgia, 'Times New Roman', serif;
  --font-body: 'Raleway', system-ui, -apple-system, sans-serif;

  /* Spacing scale */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.75rem;
  --space-lg: 3rem;
  --space-xl: 5rem;
  --space-2xl: 7.5rem;

  /* Radii */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 26px;
  --radius-pill: 999px;

  /* Soft UI shadows (layered for realistic depth) */
  --shadow-sm: 0 1px 2px rgba(58, 58, 53, 0.05), 0 2px 8px rgba(58, 58, 53, 0.06);
  --shadow-md: 0 3px 8px rgba(58, 58, 53, 0.06), 0 14px 34px rgba(58, 58, 53, 0.10);
  --shadow-lg: 0 8px 18px rgba(58, 58, 53, 0.08), 0 30px 64px rgba(58, 58, 53, 0.14);

  /* Layout */
  --container: 1140px;
  --container-narrow: 760px;
  --header-h: 84px;

  /* Motion */
  --ease: 250ms cubic-bezier(0.4, 0, 0.2, 1);

  /* Z-index scale */
  --z-header: 50;
  --z-overlay: 40;
}

/* --------------------------------------------------------------------------
   2. Reset & base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;        /* ~17px */
  line-height: 1.7;
  color: var(--text);
  background-color: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Ambient paper-grain texture, sits above everything, never intercepts clicks */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

a { color: var(--terracotta-dark); text-decoration: none; transition: color var(--ease); }
a:hover { color: var(--terracotta); }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.18;
  color: var(--sage-dark);
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.4rem, 6vw, 4rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.6rem); }

p { color: var(--text); }

/* Visually-hidden but screen-reader accessible */
.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;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: 50%;
  top: -60px;
  transform: translateX(-50%);
  background: var(--charcoal);
  color: var(--text-on-dark);
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-pill);
  z-index: 100;
  transition: top var(--ease);
}
.skip-link:focus { top: 12px; color: var(--text-on-dark); }

/* Visible focus rings */
:focus-visible {
  outline: 3px solid var(--sage);
  outline-offset: 3px;
  border-radius: 4px;
}

/* --------------------------------------------------------------------------
   3. Layout helpers
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1.4rem;
}

.section { padding-block: var(--space-xl); }
.section--tight { padding-block: var(--space-lg); }

.eyebrow {
  position: relative;
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 1rem;
  padding-bottom: 0.65rem;
}
.eyebrow::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 26px;
  height: 2px;
  transform: translateX(-50%);
  background: currentColor;
  opacity: 0.55;
  border-radius: var(--radius-pill);
}

.section-head { max-width: 640px; margin-bottom: var(--space-lg); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--text-muted); font-size: 1.1rem; margin-top: 0.85rem; }

.lead { font-size: 1.2rem; color: var(--charcoal-soft); line-height: 1.75; }

/* --------------------------------------------------------------------------
   4. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  padding: 0.88rem 1.9rem 1.02rem;
  border-radius: var(--radius-pill);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background-color var(--ease), color var(--ease),
              border-color var(--ease), box-shadow var(--ease), transform var(--ease);
  min-height: 48px;
}

.btn svg { transition: transform var(--ease); width: 18px; height: 18px; }
.btn:hover svg { transform: translateX(3px); }

.btn--primary {
  background: var(--terracotta);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover { background: var(--terracotta-dark); color: #fff; box-shadow: var(--shadow-md), 0 0 0 6px rgba(184, 92, 56, 0.12); }

.btn--secondary {
  background: var(--sage);
  color: #fff;
}
.btn--secondary:hover { background: var(--sage-dark); color: #fff; box-shadow: var(--shadow-md), 0 0 0 6px rgba(122, 158, 126, 0.14); }

.btn--ghost {
  background: transparent;
  color: var(--charcoal);
  border-color: var(--line);
}
.btn--ghost:hover { background: var(--paper); border-color: var(--terracotta); color: var(--terracotta-dark); }

.btn--light {
  background: var(--cream);
  color: var(--charcoal);
}
.btn--light:hover { background: #fff; color: var(--terracotta-dark); }

/* --------------------------------------------------------------------------
   5. Header / Nav
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: rgba(250, 248, 245, 0.85);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: box-shadow var(--ease), border-color var(--ease), background-color var(--ease);
}
.site-header.is-scrolled {
  box-shadow: var(--shadow-sm);
  border-bottom-color: var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 1rem;
}

.brand { display: inline-flex; align-items: center; gap: 0.6rem; }
.brand img {
  height: 56px; width: auto;
  background: #fff;
  padding: 5px 9px;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}
.brand .brand-name { font-family: var(--font-head); font-weight: 600; font-size: 1.15rem; color: var(--charcoal); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  list-style: none;
  padding: 0;
}
.nav-links a {
  display: inline-block;
  line-height: 1;
  color: var(--charcoal);
  font-weight: 500;
  font-size: 0.98rem;
  padding: 0.55rem 0.9rem;
  border-radius: var(--radius-pill);
  transition: background-color var(--ease), color var(--ease);
}
.nav-links a:hover { background: var(--cream-deep); color: var(--terracotta-dark); }
.nav-links a[aria-current="page"] { color: var(--terracotta-dark); background: var(--cream-deep); }
.nav-links .nav-cta { margin-left: 0.5rem; }
.nav-links .nav-cta .btn {
  display: inline-flex;
  padding: 0.88rem 1.9rem 1.02rem;
  background: var(--terracotta);
  color: #fff;
}
.nav-links .nav-cta .btn:hover {
  background: var(--terracotta-dark);
  color: #fff;
  box-shadow: var(--shadow-md), 0 0 0 6px rgba(184, 92, 56, 0.12);
}

/* Mobile toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 48px; height: 48px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 10px;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--charcoal);
  border-radius: 2px;
  transition: transform var(--ease), opacity var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
  .brand img { height: 48px; }
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.2rem;
    background: var(--cream);
    padding: 1rem 1.4rem 1.6rem;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    transform: translateY(-130%);
    transition: transform var(--ease);
    z-index: var(--z-overlay);
  }
  .nav-links.is-open { transform: translateY(0); }
  .nav-links a { padding: 0.85rem 1rem; font-size: 1.05rem; }
  .nav-links .nav-cta { margin: 0.4rem 0 0; }
  .nav-links .btn { width: 100%; justify-content: center; }
}

/* --------------------------------------------------------------------------
   6. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  text-align: center;
  padding-block: var(--space-2xl) var(--space-xl);
  background:
    radial-gradient(circle at 50% 0%, var(--sage-soft) 0%, rgba(227,236,226,0) 55%),
    linear-gradient(180deg, var(--cream) 0%, var(--cream-deep) 100%);
  overflow: hidden;
}
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(8px);
  opacity: 0.35;
  pointer-events: none;
}
.hero::before { width: 240px; height: 240px; background: var(--terracotta-soft); top: 12%; left: -90px; opacity: 0.18; }
.hero::after  { width: 300px; height: 300px; background: var(--sage); bottom: -120px; right: -110px; opacity: 0.16; }

.hero .container { position: relative; z-index: 1; }

.hero-logo {
  width: min(360px, 78vw);
  margin: 0 auto var(--space-md);
  filter: drop-shadow(0 10px 20px rgba(58, 58, 53, 0.1));
}

.hero-tagline {
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  font-size: 0.82rem;
  color: var(--terracotta);
  margin-bottom: 1.4rem;
}

.hero h1 {
  max-width: 16ch;
  margin: 0 auto 1.2rem;
}
.hero h1 em { font-style: italic; color: var(--terracotta); }

.hero-strapline {
  max-width: 52ch;
  margin: 0 auto 2.2rem;
  font-size: 1.25rem;
  color: var(--charcoal-soft);
}

.hero-cta { display: flex; gap: 0.9rem; justify-content: center; flex-wrap: wrap; }

/* Page banner (interior pages) */
.page-hero {
  text-align: center;
  padding-block: calc(var(--space-xl)) var(--space-lg);
  background:
    radial-gradient(circle at 50% -10%, var(--sage-soft) 0%, rgba(227,236,226,0) 60%),
    var(--cream);
}
.page-hero h1 { max-width: 18ch; margin: 0 auto 1rem; }
.page-hero p { max-width: 56ch; margin: 0 auto; color: var(--text-muted); font-size: 1.15rem; }

/* --------------------------------------------------------------------------
   7. Cards & grids
   -------------------------------------------------------------------------- */
.grid { display: grid; gap: 1.6rem; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

@media (max-width: 900px) { .grid--3 { grid-template-columns: 1fr; } .grid--2 { grid-template-columns: 1fr; } }

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--sage); }

/* clickable card (service tile on home) */
a.card { display: block; color: inherit; }
a.card:hover { color: inherit; }

.card-icon {
  width: 56px; height: 56px;
  display: grid; place-items: center;
  border-radius: var(--radius-md);
  background: var(--sage-soft);
  color: var(--sage-dark);
  margin-bottom: 1.3rem;
  transition: transform var(--ease), background-color var(--ease);
}
.card-icon svg { width: 28px; height: 28px; }
.card.card--terra .card-icon { background: #f6e4da; color: var(--terracotta-dark); }
.card:hover .card-icon { transform: scale(1.08) rotate(-4deg); }

.card h3 { margin-bottom: 0.65rem; }
.card p { color: var(--text-muted); }

.card-link {
  position: relative;
  display: inline-flex; align-items: center; gap: 0.4rem;
  width: fit-content;
  margin-top: 1.3rem;
  font-weight: 600; font-size: 0.95rem;
  color: var(--terracotta-dark);
}
.card-link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -3px;
  height: 1.5px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 320ms var(--ease);
}
a.card:hover .card-link::after { transform: scaleX(1); }
.card-link svg { width: 16px; height: 16px; transition: transform var(--ease); }
a.card:hover .card-link svg { transform: translateX(4px); }

/* --------------------------------------------------------------------------
   8. Intro / split sections
   -------------------------------------------------------------------------- */
.surface { background: var(--paper); }
.surface-cream { background: var(--cream-deep); }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: center;
}
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: var(--space-md); } }

.about-photo {
  width: 100%;
  max-width: 380px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  margin-inline: auto;
}

.media-placeholder {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  border: 2px dashed var(--sage);
  background:
    repeating-linear-gradient(135deg, rgba(122,158,126,0.06) 0 18px, transparent 18px 36px),
    var(--sage-soft);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 2rem;
  color: var(--sage-dark);
  box-shadow: var(--shadow-sm);
}
.media-placeholder .ph-icon { width: 52px; height: 52px; margin: 0 auto 1rem; color: var(--sage-dark); }
.media-placeholder p { font-family: var(--font-head); font-style: italic; font-size: 1.2rem; color: var(--sage-dark); }

/* --------------------------------------------------------------------------
   9. Testimonials
   -------------------------------------------------------------------------- */
.quote-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 5vw, 3.6rem);
  box-shadow: var(--shadow-md);
  position: relative;
  max-width: var(--container-narrow);
  margin-inline: auto;
}
.quote-card .quote-mark {
  font-family: var(--font-head);
  font-size: 5rem;
  line-height: 0.5;
  color: var(--sage);
  opacity: 0.45;
  display: block;
  height: 2.2rem;
}
.quote-card blockquote { margin: 0; }
.quote-card blockquote p {
  font-family: var(--font-head);
  font-size: clamp(1.15rem, 2.2vw, 1.4rem);
  line-height: 1.6;
  color: var(--charcoal);
  margin-bottom: 1.1rem;
}
.quote-card blockquote p:last-of-type { margin-bottom: 0; }
.quote-card cite {
  display: block;
  margin-top: 1.8rem;
  font-style: normal;
  font-weight: 700;
  font-family: var(--font-body);
  color: var(--terracotta-dark);
  letter-spacing: 0.02em;
}
.quote-card cite span { display: block; font-weight: 500; color: var(--text-muted); font-size: 0.92rem; }

.placeholder-note {
  max-width: var(--container-narrow);
  margin: var(--space-lg) auto 0;
  text-align: center;
  border: 2px dashed var(--line);
  border-radius: var(--radius-lg);
  padding: 2.4rem;
  color: var(--text-muted);
  background: var(--cream);
}
.placeholder-note h3 { color: var(--charcoal-soft); margin-bottom: 0.5rem; }

/* --------------------------------------------------------------------------
   10. CTA band
   -------------------------------------------------------------------------- */
.cta-band {
  background: linear-gradient(135deg, var(--sage-deep) 0%, #293630 100%);
  color: var(--text-on-dark);
  text-align: center;
  border-radius: var(--radius-lg);
  padding: clamp(2.8rem, 6vw, 4.5rem) 1.5rem;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.cta-band::after {
  content: "";
  position: absolute;
  width: 360px; height: 360px;
  border-radius: 50%;
  background: var(--terracotta);
  opacity: 0.16;
  top: -160px; right: -120px;
  filter: blur(10px);
}
.cta-band h2 { color: #fff; position: relative; }
.cta-band p { color: rgba(244,239,232,0.85); max-width: 48ch; margin: 1rem auto 2rem; position: relative; }
.cta-band .btn { position: relative; }

/* --------------------------------------------------------------------------
   11. Legal / prose pages
   -------------------------------------------------------------------------- */
.prose {
  max-width: var(--container-narrow);
  margin-inline: auto;
}
.prose .intro-card {
  background: var(--sage-soft);
  border-left: 4px solid var(--sage);
  border-radius: var(--radius-md);
  padding: 1.6rem 1.8rem;
  margin-bottom: var(--space-lg);
}
.prose .intro-card p { font-family: var(--font-head); font-style: italic; font-size: 1.15rem; color: var(--charcoal); }

.prose section { margin-bottom: var(--space-md); }
.prose h2 {
  font-size: 1.45rem;
  color: var(--sage-dark);
  margin-bottom: 0.7rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--line);
}
.prose h3 { font-size: 1.15rem; margin: 1.2rem 0 0.5rem; }
.prose p { color: var(--charcoal-soft); margin-bottom: 0.9rem; }
.prose ul { margin: 0 0 1rem 1.2rem; color: var(--charcoal-soft); }
.prose li { margin-bottom: 0.4rem; }
.prose .updated { color: var(--text-muted); font-size: 0.95rem; font-style: italic; }

.toc {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.4rem 1.6rem;
  margin-bottom: var(--space-lg);
  box-shadow: var(--shadow-sm);
}
.toc h2 { font-family: var(--font-body); font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-muted); border: 0; padding: 0; margin-bottom: 0.8rem; }
.toc ol { columns: 2; column-gap: 2rem; margin: 0; padding-left: 1.1rem; }
.toc li { margin-bottom: 0.35rem; }
.toc a { color: var(--charcoal-soft); font-size: 0.95rem; }
.toc a:hover { color: var(--terracotta-dark); }
@media (max-width: 600px) { .toc ol { columns: 1; } }

/* --------------------------------------------------------------------------
   12. Contact page
   -------------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--space-lg);
  align-items: start;
}
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-detail {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
}
.contact-detail:last-child { border-bottom: 0; }
.contact-detail .ic {
  flex: none;
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: var(--radius-md);
  background: var(--sage-soft); color: var(--sage-dark);
}
.contact-detail .ic svg { width: 22px; height: 22px; }
.contact-detail .lbl { font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); }
.contact-detail a, .contact-detail .val { font-weight: 600; color: var(--charcoal); font-size: 1.05rem; }
.contact-detail a:hover { color: var(--terracotta-dark); }

.form-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.8rem, 4vw, 2.8rem);
  box-shadow: var(--shadow-md);
}
.field { margin-bottom: 1.3rem; }
.field label { display: block; font-weight: 600; margin-bottom: 0.45rem; color: var(--charcoal); font-size: 0.98rem; }
.field label .opt { font-weight: 400; color: var(--text-muted); }
.field input,
.field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text);
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--cream);
  transition: border-color var(--ease), box-shadow var(--ease), background-color var(--ease);
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--sage);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(122,158,126,0.18);
}
.field textarea { min-height: 150px; resize: vertical; }
.form-closing { margin-top: 1.4rem; text-align: center; color: var(--text-muted); font-style: italic; font-family: var(--font-head); }

/* --------------------------------------------------------------------------
   13. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--sage-deep);
  color: var(--text-on-dark);
  padding-block: var(--space-lg) var(--space-md);
  margin-top: var(--space-xl);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: var(--space-lg);
  margin-bottom: var(--space-md);
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: var(--space-md); } }

.site-footer .f-brand img {
  height: auto; width: 190px; max-width: 70%;
  margin-bottom: 1.1rem;
  background: #fff;
  padding: 0.7rem 0.9rem;
  border-radius: var(--radius-md);
}
.site-footer .f-brand p { color: rgba(244,239,232,0.7); max-width: 34ch; font-size: 0.98rem; }
.site-footer .tag { letter-spacing: 0.2em; text-transform: uppercase; font-size: 0.72rem; color: var(--terracotta-soft); margin-top: 1rem; font-weight: 600; }

.site-footer h4 {
  font-family: var(--font-body);
  font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(244,239,232,0.55);
  margin-bottom: 1rem;
}
.site-footer ul { list-style: none; padding: 0; }
.site-footer li { margin-bottom: 0.6rem; }
.site-footer a {
  position: relative;
  display: inline-block;
  width: fit-content;
  color: var(--text-on-dark);
  font-size: 0.98rem;
  transition: color var(--ease);
}
.site-footer a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 280ms var(--ease);
}
.site-footer a:hover { color: var(--terracotta-soft); }
.site-footer a:hover::after { transform: scaleX(1); }
.f-contact a { display: inline-flex; gap: 0.55rem; align-items: center; }
.f-contact svg { width: 16px; height: 16px; flex: none; color: var(--terracotta-soft); }

.footer-bottom {
  border-top: 1px solid rgba(244,239,232,0.14);
  padding-top: 1.4rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.88rem;
  color: rgba(244,239,232,0.6);
}
.footer-bottom nav { display: flex; gap: 1.2rem; flex-wrap: wrap; }

/* --------------------------------------------------------------------------
   14. Reveal-on-scroll animation
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 600ms ease, transform 600ms cubic-bezier(0.4,0,0.2,1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }

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