/* ─── Font Variables ──────────────────────────────────────────── */
:root {
  --font-display: 'Cormorant Garamond', 'Palatino Linotype', Georgia, serif;
  --font-sans: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;

  /* ─── Palette ─── */
  --linen-white: #faf6f0;
  --peach: #f4d0bf;
  --peach-deep: #e8b89e;
  --soft-coral: #e07a5f;
  --soft-coral-deep: #c96248;
  --french-blue: #4a7389;
  --french-blue-deep: #35566b;
  --navy: #1a3350;
  --navy-soft: #243d58;

  /* ─── Semantic tokens ─── */
  --bg: var(--linen-white);
  --bg-soft: #fffdfb;
  --panel: #ffffff;
  --panel-soft: #fdf8f4;
  --line: rgba(26, 51, 80, 0.11);
  --line-strong: rgba(26, 51, 80, 0.22);
  --text: var(--navy);
  --muted: #5a7080;
  --brand: var(--soft-coral);
  --brand-2: var(--french-blue);

  /* ─── Gradients ─── */
  --gradient-warm: linear-gradient(135deg, var(--soft-coral), var(--peach-deep));
  --gradient-cool: linear-gradient(135deg, var(--french-blue), var(--navy-soft));
  --gradient-hero: linear-gradient(160deg, rgba(244, 208, 191, 0.45) 0%, rgba(250, 246, 240, 0) 45%, rgba(110, 150, 176, 0.12) 100%);

  /* ─── Paper system ─── */
  --peach-paper: #fce8dc;
  --peach-paper-light: #fff8f2;
  --peach-paper-mid: #f7dcc8;
  --peach-paper-deep: #efcdb5;
  --peach-paper-border: rgba(210, 158, 128, 0.5);
  --peach-paper-border-soft: rgba(232, 196, 176, 0.55);

  --paper-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset, 0 2px 0 rgba(190, 140, 110, 0.08), 0 4px 14px rgba(90, 55, 40, 0.06);
  --paper-shadow-hover: 0 1px 0 rgba(255, 255, 255, 0.95) inset, 0 3px 0 rgba(190, 140, 110, 0.1), 0 8px 24px rgba(90, 55, 40, 0.09);
  --paper-shadow-active: 0 2px 4px rgba(90, 55, 40, 0.07) inset;

  /* ─── Radii ─── */
  --radius-paper: 10px;
  --radius-paper-lg: 14px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;

  /* ─── Shadows ─── */
  --shadow-lg: 0 24px 64px rgba(26, 51, 80, 0.09);
  --shadow-md: 0 12px 32px rgba(26, 51, 80, 0.07);
  --shadow-sm: 0 4px 16px rgba(26, 51, 80, 0.05);

  /* ─── Motion ─── */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  /* ─── Layout ─── */
  --max-content: 980px;
}

/* ─── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.75;
  color: var(--text);
  background: transparent;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ─── Page Structure ─────────────────────────────────────────── */
.page-shell { position: relative; z-index: 1; }

main { position: relative; }

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

/* ─── Parallax Background ────────────────────────────────────── */
.parallax-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: var(--linen-white);
}

.parallax-bg-inner {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  will-change: transform;
  transform: translate3d(0, 0, 0);
}

.parallax-bg-image {
  display: block;
  width: 100%;
  height: auto;
  max-width: none;
}

.parallax-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(250, 246, 240, 0.20) 0%,
    rgba(250, 246, 240, 0.10) 40%,
    rgba(250, 246, 240, 0.28) 100%
  );
}

/* ─── Layout Utilities ───────────────────────────────────────── */
.container {
  width: min(var(--max-content), calc(100% - 2.5rem));
  margin: 0 auto;
}

.section {
  padding: 6rem 0;
  position: relative;
}

.section-head {
  margin-bottom: 3rem;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
}

.section-head p {
  color: var(--muted);
  max-width: 52ch;
  line-height: 1.65;
  font-size: 0.9375rem;
}

/* ─── Typography ─────────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--navy);
  margin: 0;
  line-height: 1.05;
}

h1 {
  font-size: clamp(4.5rem, 15vw, 10rem);
  letter-spacing: -0.025em;
  font-weight: 300;
}

h2 {
  font-size: clamp(2.25rem, 5.5vw, 3.5rem);
  font-weight: 400;
}

h3 {
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

p { line-height: 1.75; }

.muted {
  color: var(--muted);
  font-weight: 400;
}

/* ─── Eyebrow ─────────────────────────────────────────────────── */
.eyebrow {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 0.85rem;
}

/* ─── Grid Helpers ────────────────────────────────────────────── */
.grid { display: grid; gap: 1rem; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* ─── Reveal Animation ────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.85s var(--ease-out), transform 0.85s var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Section Ornament ────────────────────────────────────────── */
.section-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  padding: 0 2rem;
  max-width: 320px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.ornament-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(26, 51, 80, 0.2), transparent);
}

.ornament-gem {
  width: 5px;
  height: 5px;
  border-radius: 1px;
  transform: rotate(45deg);
  background: var(--soft-coral);
  opacity: 0.55;
}

/* ─── Accessibility ───────────────────────────────────────────── */
.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;
}

:focus-visible {
  outline: 2px solid var(--soft-coral);
  outline-offset: 3px;
}

/* ─── Keyframes ───────────────────────────────────────────────── */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes pulse-soft {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.03); }
}

@keyframes shimmer {
  0%, 70%, 100% { transform: translateX(-120%); }
  85% { transform: translateX(120%); }
}

@keyframes pin-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* ─── Reduced Motion ──────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
  .parallax-bg-inner { transform: translate3d(0, 0, 0) !important; }
}

/* ─── Responsive ──────────────────────────────────────────────── */
@media (max-width: 980px) {
  .section { padding: 4.5rem 0; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .grid-2 { grid-template-columns: 1fr; }
}
