/* Aequilibria redesign — base styles */
:root {
  /* Palette A — Aequilibria brand (forest + gold on cream, coral as subtle accent) DEFAULT
     Source palette: #f4ecde cream · #3d5338 forest · #db7c71 coral · #e4b467 gold */
  --bg: #f4ecde;
  --bg-2: #ebe0cc;
  --paper: #faf4e6;
  --ink: #3d5338;
  --ink-soft: #4d6647;
  --muted: #7c8a74;
  --line: #d9cfb5;
  --accent: #e4b467;          /* gold — primary accent */
  --accent-soft: #eecd93;
  --gold: #e4b467;
  --coral: #db7c71;           /* coral — used sparingly (eyebrows, small highlights) */
  --coral-soft: #ecb5ae;

  --radius-sm: 4px;
  --radius: 10px;
  --radius-lg: 22px;

  --shadow-card: 0 1px 0 rgba(30,42,36,0.06), 0 20px 40px -30px rgba(30,42,36,0.25);

  --step: clamp(16px, 1.05vw, 18px);
  --density-pad: clamp(80px, 9vw, 140px);

  --serif: "Instrument Serif", "Spectral", "Cormorant Garamond", Georgia, serif;
  --sans: "Geist", "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", "Geist Mono", ui-monospace, monospace;
}

/* Palette B — Deep forest (more corporate) */
[data-palette="ink"] {
  --bg: #ece5d0;
  --bg-2: #ddd3b8;
  --paper: #f5efda;
  --ink: #1a2a16;
  --ink-soft: #2d4025;
  --muted: #66735c;
  --line: #cabf9e;
  --accent: #b88d3a;
  --accent-soft: #dcc487;
  --gold: #b88d3a;
  --coral: #c46a5f;
  --coral-soft: #e5a89f;
}

/* Palette C — Cream + muted clay (softer, warmer) */
[data-palette="forest"] {
  --bg: #f5ecd6;
  --bg-2: #e9dcbd;
  --paper: #fcf5e0;
  --ink: #2d4025;
  --ink-soft: #425c37;
  --muted: #7a8a6b;
  --line: #d6c69c;
  --accent: #b87a3a;
  --accent-soft: #e8c49d;
  --gold: #c9a24a;
  --coral: #db7c71;
  --coral-soft: #ecb5ae;
}

/* Palette D — Night forest (dark, premium) */
[data-palette="night"] {
  --bg: #131a11;
  --bg-2: #1a231618;
  --paper: #1c2518;
  --ink: #f3ecd9;
  --ink-soft: #d5c9a8;
  --muted: #8a9478;
  --line: #2f3a2a;
  --accent: #d4a84a;
  --accent-soft: #5a4a25;
  --gold: #d4a84a;
  --coral: #e89088;
  --coral-soft: #5a3d3a;
}

/* Density */
[data-density="spacious"] { --density-pad: clamp(110px, 12vw, 180px); }
[data-density="tight"]    { --density-pad: clamp(56px, 6vw, 88px); }

/* Typography pair overrides */
[data-type="editorial"] {
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Geist", -apple-system, sans-serif;
}
[data-type="classic"] {
  --serif: "Spectral", Georgia, serif;
  --sans: "Geist", sans-serif;
}
[data-type="display"] {
  --serif: "Fraunces", Georgia, serif;
  --sans: "Geist", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--step);
  line-height: 1.55;
  font-feature-settings: "ss01","cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

h1,h2,h3,h4 { margin: 0; font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; line-height: 1.12; padding-bottom: 0.05em; }
h1 { font-size: clamp(56px, 8.2vw, 136px); letter-spacing: -0.025em; }
h2 { font-size: clamp(40px, 5.4vw, 88px); letter-spacing: -0.02em; }
h3 { font-size: clamp(26px, 2.6vw, 40px); line-height: 1.1; }
p  { margin: 0; }

.italic { font-style: italic; color: var(--coral, inherit); }
h1 .italic, h2 .italic, h3 .italic { color: var(--coral, inherit); }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; }

/* ——— Layout helpers ——— */
.container { width: min(1360px, 92%); margin: 0 auto; }
.container-wide { width: min(1560px, 96%); margin: 0 auto; }
.row { display: flex; }
.gap-24 { gap: 24px; } .gap-16 { gap: 16px; }
.hairline { height: 1px; background: var(--line); }

section { padding: var(--density-pad) 0; position: relative; }

/* ——— Nav ——— */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 28px;
  background: color-mix(in oklab, var(--bg) 82%, transparent);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav-logo { display: flex; align-items: center; gap: 12px; font-family: var(--serif); font-size: 24px; color: var(--ink); letter-spacing: -0.01em; }
.nav-logo img { height: 36px !important; width: auto !important; display: block; max-width: 200px; }
.nav-logo span.wordmark { font-family: var(--serif); font-size: 24px; }
[data-palette="night"] .nav-logo img { filter: brightness(1.2) saturate(1.1); }
.nav-links { display: flex; gap: 28px; align-items: center; font-size: 15px; }
.nav-links a { color: var(--ink-soft); position: relative; padding: 6px 0; }
.nav-links a:hover { color: var(--ink); }
.nav-links a.nav-cta {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 11px 18px; border-radius: 100px;
  background: var(--ink); color: #fdf8ec;
  font-size: 14px; font-weight: 500;
  transition: transform .2s, background .2s, color .2s;
}
.nav-links a.nav-cta:hover { transform: translateY(-1px); background: var(--accent); color: var(--ink); }
.nav-cta .dot {
  width: 7px; height: 7px; border-radius: 50%; background: #7fc39b;
  box-shadow: 0 0 0 0 rgba(127,195,155,.7);
  animation: pulse 2.2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(127,195,155,.7); }
  70% { box-shadow: 0 0 0 8px rgba(127,195,155,0); }
  100% { box-shadow: 0 0 0 0 rgba(127,195,155,0); }
}

/* ——— Buttons ——— */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 16px 24px; border-radius: 100px;
  font-size: 15px; font-weight: 500; cursor: pointer;
  border: 1px solid transparent; transition: all .25s;
  white-space: nowrap;
}
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { background: var(--accent); color: var(--paper); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--bg); }
.btn-accent { background: var(--accent); color: var(--paper); }
.btn-accent:hover { background: var(--ink); color: var(--bg); }
.btn .arrow { transition: transform .25s; }
.btn:hover .arrow { transform: translateX(4px); }

/* ——— Utilities ——— */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.16em;
  color: var(--muted);
}
.eyebrow::before {
  content: ""; width: 22px; height: 1px; background: currentColor;
}
.eyebrow.no-line::before { display: none; }

.tag {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 100px;
  background: var(--bg-2); color: var(--ink-soft);
  font-size: 12px; font-family: var(--mono);
  text-transform: uppercase; letter-spacing: 0.08em;
  border: 1px solid var(--line);
}

.img-placeholder {
  position: relative; overflow: hidden; background: var(--bg-2);
  border: 1px solid var(--line);
  background-image:
    repeating-linear-gradient(135deg,
      color-mix(in oklab, var(--line) 60%, transparent) 0 1px,
      transparent 1px 14px);
}
.img-placeholder::after {
  content: attr(data-label);
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 11px;
  color: var(--ink-soft); letter-spacing: 0.12em;
  text-transform: uppercase;
  background: color-mix(in oklab, var(--bg) 60%, transparent);
  padding: 12px; text-align: center;
}

/* ——— Reveal on scroll ——— */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ——— Footer ——— */
.footer { background: var(--ink); color: var(--bg); padding: 80px 0 40px; }
[data-palette="night"] .footer { background: #0e0c0a; }
.footer a { color: var(--bg); opacity: 0.75; }
.footer a:hover { opacity: 1; color: var(--accent-soft); }

/* ——— Tweaks panel ——— */
.tweaks {
  position: fixed; right: 20px; bottom: 20px; z-index: 100;
  width: 320px; padding: 20px;
  background: var(--paper); color: var(--ink);
  border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.25);
  display: none;
  font-size: 13px;
  max-height: 85vh; overflow-y: auto;
}
.tweaks.visible { display: block; }
.tweaks h4 { font-family: var(--sans); font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted); margin-bottom: 10px; font-weight: 500; }
.tweaks-row { margin-bottom: 20px; }
.swatches { display: flex; gap: 8px; }
.swatch {
  width: 36px; height: 36px; border-radius: 50%; cursor: pointer;
  border: 2px solid transparent; position: relative;
  transition: transform .15s;
}
.swatch:hover { transform: scale(1.08); }
.swatch.active { border-color: var(--ink); }
.chip-row { display: flex; gap: 6px; flex-wrap: wrap; }
.chip {
  padding: 7px 11px; border-radius: 100px;
  background: var(--bg-2); color: var(--ink-soft);
  font-size: 12px; cursor: pointer;
  border: 1px solid var(--line); transition: all .15s;
}
.chip.active { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.tweaks-close { position: absolute; top: 12px; right: 12px; background: none; border: none; cursor: pointer; color: var(--muted); font-size: 18px; }

/* Responsive */
@media (max-width: 900px) {
  .nav-links a:not(.nav-cta) { display: none; }
  h1 { font-size: clamp(44px, 11vw, 64px); }
  h2 { font-size: clamp(32px, 8vw, 48px); }
  section { padding: 72px 0; }
}
