/* ===== Tokens ===== */
:root {
  /* Palette — warm/earthy default per spec */
  --bg: #F2EBDD;             /* cream */
  --bg-soft: #EFE6D3;
  --bg-warm: #E9DEC4;
  --ink: #3f3d2d;            /* near-black w/ warm tint */
  --ink-soft: #5A554B;
  --muted: #8A8275;
  --rule: rgba(63, 61, 45, 0.12);

  --orange: #F68655;         /* terracotta accent */
  --orange-soft: #FBB089;
  --orange-deep: #D86432;
  --orange-tint: #FCDFCB;

  --moss: #2F3D2D;           /* deep moss/sage */
  --moss-soft: #4D5B47;
  --sage: #8AA08A;
  --sage-tint: #C9D5BD;

  --on-moss: #F2EBDD;

  /* Type */
  --font-display: 'Cormorant Garamond', 'Playfair Display', 'EB Garamond', Georgia, serif;
  --font-display-it: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;

  /* Radii */
  --r-card: 18px;
  --r-pill: 999px;
  --r-arch: 50% 50% 6px 6px / 36% 36% 6px 6px;

  /* Motion */
  --ease: cubic-bezier(.22,.61,.36,1);
  --slow: 800ms;
}

/* Sharp / Smooth / Arches via [data-radius] */
[data-radius="sharp"] {
  --r-card: 4px;
  --r-pill: 4px;
  --r-arch: 4px;
}
[data-radius="smooth"] {
  --r-card: 18px;
  --r-pill: 999px;
  --r-arch: 50% 50% 6px 6px / 36% 36% 6px 6px;
}
[data-radius="arches"] {
  --r-card: 28px 28px 28px 28px / 80px 80px 28px 28px;
  --r-pill: 999px;
  --r-arch: 50% 50% 6px 6px / 60% 60% 6px 6px;
}

/* Light vs Warm/Earthy mode via [data-mode] */
[data-mode="light"] {
  --bg: #FAF6EE;
  --bg-soft: #F4EFE2;
  --bg-warm: #EFE7D2;
}
[data-mode="warm"] {
  --bg: #ECE0C7;
  --bg-soft: #E4D5B5;
  --bg-warm: #DBC9A2;
}

/* ===== Reset-ish ===== */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
a { color: inherit; }

/* ===== Type primitives ===== */
.h-display {
  font-family: var(--font-display);
  font-weight: 300;
  letter-spacing: -0.01em;
  line-height: 1.02;
  text-wrap: balance;
}
.h-display em, .italic-display {
  font-family: var(--font-display-it);
  font-style: italic;
  font-weight: 500;
}
.eyebrow {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 11px;
  color: var(--ink-soft);
}
.nav-logo {
  justify-self: center; color: var(--ink); height: 26px;
  position: relative;
}
.logo-wrapper {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.logo-img {
  height: 100%;
  width: auto;
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.logo-full {
  position: relative;
}
.logo-symbol {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  height: 32px;
}
.logo-visible {
  opacity: 1;
  pointer-events: auto;
}
.logo-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.6) !important;
}
.logo-full.logo-hidden {
  transform: scale(0.9) !important;
}
.logo-symbol.logo-visible {
  transform: translate(-50%, -50%) scale(1) !important;
}
.nav-logo svg { height: 100%; width: auto; }
.body-prose { text-wrap: pretty; color: var(--ink-soft); }

/* ===== Layout ===== */
.container { width: min(1200px, 92vw); margin: 0 auto; }
.container-narrow { width: min(900px, 92vw); margin: 0 auto; }
.section { padding: clamp(72px, 10vw, 140px) 0; position: relative; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 18px 28px; border-radius: var(--r-pill);
  font-family: var(--font-body); font-weight: 500;
  font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase;
  transition: transform .4s var(--ease), background .4s var(--ease), color .4s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { background: var(--orange-deep); color: #fff; }
.btn-orange { 
  background: var(--orange); 
  color: #fff; 
  animation: cta-pulse 2.5s infinite;
}
.btn-orange:hover { 
  background: var(--orange-deep); 
  animation: none;
  transform: translateY(-2px);
}

@keyframes cta-pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(246, 134, 85, 0.7);
  }
  70% {
    transform: scale(1.05);
    box-shadow: 0 0 0 15px rgba(246, 134, 85, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(246, 134, 85, 0);
  }
}
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--rule); }
.btn-light  { background: var(--bg); color: var(--ink); }
.btn-arrow svg { transition: transform .4s var(--ease); }
.btn-arrow:hover svg { transform: translateX(4px); }

/* ===== Reveal animation ===== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity var(--slow) var(--ease), transform var(--slow) var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 80ms; }
.reveal-d2 { transition-delay: 160ms; }
.reveal-d3 { transition-delay: 240ms; }
.reveal-d4 { transition-delay: 320ms; }
@media (prefers-reduced-motion: reduce) {
  .reveal { transition: none; opacity: 1; transform: none; }
}

/* Selection */
::selection { background: var(--orange); color: #fff; }

/* Decorative arc / orb */
.deco-arc {
  position: absolute; pointer-events: none; border-radius: 50%;
  filter: blur(60px); opacity: 0.5;
}

/* Divider */
.rule { border: 0; height: 1px; background: var(--rule); margin: 0; }
