/* ===== Intuition with Aja — design system ===== */

:root {
  /* fonts (overridden by Tweaks) */
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Hanken Grotesk", system-ui, sans-serif;
  --font-mono: "Hanken Grotesk", system-ui, sans-serif;

  /* palette: mint on white (brand default) */
  --bg: #ffffff;
  --surface: #f3f6f1;
  --surface-2: #e9efe8;
  --ink: #23251f;
  --ink-soft: #474b40;
  --muted: #797d6f;
  --line: rgba(35, 37, 32, 0.12);
  --line-strong: rgba(35, 37, 32, 0.26);
  --accent: #aedbc0;
  --accent-ink: #599577;
  --accent-wash: #e6f1ea;
  --on-accent: #23251f;
  --glow: rgba(174, 219, 192, 0.5);
}

:root[data-palette="celestial"] {
  --bg: #f4f1e9;
  --surface: #ece6da;
  --surface-2: #e4ddce;
  --ink: #221f18;
  --ink-soft: #4a4538;
  --muted: #756d5d;
  --line: rgba(34, 31, 24, 0.14);
  --line-strong: rgba(34, 31, 24, 0.28);
  --accent: #6e6f9e;
  --accent-ink: #4e4f7e;
  --accent-wash: #e6e3ee;
  --on-accent: #f7f5ef;
  --glow: rgba(110, 111, 158, 0.16);
}

:root[data-palette="clay"] {
  --bg: #f2ebe0;
  --surface: #e9dfce;
  --surface-2: #e0d4bf;
  --ink: #2a2118;
  --ink-soft: #4f4233;
  --muted: #7c6c57;
  --line: rgba(42, 33, 24, 0.15);
  --line-strong: rgba(42, 33, 24, 0.3);
  --accent: #b06a47;
  --accent-ink: #97552f;
  --accent-wash: #ecdccf;
  --on-accent: #f7f1e8;
  --glow: rgba(176, 106, 71, 0.16);
}

:root[data-palette="midnight"] {
  --bg: #141310;
  --surface: #1d1b15;
  --surface-2: #25221a;
  --ink: #f1ece0;
  --ink-soft: #cfc7b6;
  --muted: #968d7a;
  --line: rgba(241, 236, 224, 0.14);
  --line-strong: rgba(241, 236, 224, 0.3);
  --accent: #c9a24b;
  --accent-ink: #d9b66a;
  --accent-wash: rgba(201, 162, 75, 0.14);
  --on-accent: #1a1810;
  --glow: rgba(201, 162, 75, 0.14);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* layout */
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 40px; }
.wrap-narrow { max-width: 880px; }
section { position: relative; }

/* type */
.display {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 0.96;
  letter-spacing: -0.01em;
  font-size: clamp(3rem, 8.5vw, 7.4rem);
}
.h2 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.0;
  letter-spacing: -0.01em;
  font-size: clamp(2.3rem, 5vw, 4.1rem);
}
.h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.08;
  font-size: clamp(1.5rem, 2.4vw, 2.1rem);
}
.lede {
  font-size: clamp(1.15rem, 1.6vw, 1.4rem);
  line-height: 1.55;
  color: var(--ink-soft);
  font-weight: 400;
}
.body { color: var(--ink-soft); line-height: 1.7; }
.muted { color: var(--muted); }
.serif-it { font-family: var(--font-display); font-style: italic; font-weight: 400; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent-ink);
  font-weight: 500;
}
.kicker {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

/* section header device */
.sec-num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: var(--muted);
}
.rule { height: 1px; background: var(--line); border: 0; width: 100%; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: 0.6em;
  font-family: var(--font-body);
  font-size: 0.86rem;
  letter-spacing: 0.04em;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.25s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: var(--on-accent);
  padding: 0.95em 1.7em;
  border-radius: 100px;
}
.btn-primary:hover { background: var(--accent-ink); transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  padding: 0.95em 1.6em;
  border-radius: 100px;
  border: 1px solid var(--line-strong);
}
.btn-ghost:hover { border-color: var(--ink); }
.btn-arrow {
  background: transparent; color: var(--ink); padding: 0; border-radius: 0;
  border-bottom: 1px solid var(--line-strong); padding-bottom: 0.35em;
}
.btn-arrow:hover { border-color: var(--accent); color: var(--accent-ink); }
.btn .ar { transition: transform 0.25s ease; }
.btn:hover .ar { transform: translateX(3px); }

/* image slot baseline */
image-slot {
  display: block;
  background: var(--surface-2);
  --is-placeholder-color: var(--muted);
}

a { color: inherit; }

/* brand logo */
.brand-logo { display: block; height: 40px; width: auto; }
:root[data-palette="midnight"] .brand-logo { filter: brightness(0) invert(1); }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.9s cubic-bezier(.2,.7,.2,1), transform 0.9s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

::selection { background: var(--accent); color: var(--on-accent); }

button:hover > .play-btn { transform: translate(-50%,-50%) scale(1.07); }

.rev-arrow {
  background: transparent; border: 1px solid color-mix(in srgb, var(--bg) 34%, transparent);
  color: var(--bg); width: 46px; height: 46px; border-radius: 50%; cursor: pointer;
  font-size: 1.1rem; display: flex; align-items: center; justify-content: center;
  transition: all 0.25s ease;
}
.rev-arrow:hover { border-color: var(--accent); color: var(--accent); }

/* include cells get left border on larger screens */
.include-cell { border-left: 1px solid var(--line); padding-left: 30px !important; }
.include-cell:first-child { border-left: none; padding-left: 0 !important; }

/* responsive */
@media (max-width: 860px) {
  .desktop-nav { display: none !important; }
  .mobile-toggle { display: flex !important; }
  .wrap { padding: 0 26px; }
  .include-cell { border-left: none; padding-left: 0 !important; border-top: 1px solid var(--line); }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { padding: 0 20px; }
}

/* scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 10px; }
