:root {
  --ink: #000000;
  --bg: #ffffff;
  --ink-soft: rgba(0, 0, 0, 0.65);
  --bg-soft: rgba(255, 255, 255, 0.7);
  --accent: #000000;
  --border: rgba(0, 0, 0, 0.12);
  --hero-bg: #000000;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}

/* The native cursor only hides once JS has actually built the custom one
   (see .has-custom-cursor in interactions.js). If the script fails to run,
   the native cursor stays put instead of leaving the user with none at all. */
body.has-custom-cursor { cursor: none; }

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

.container.narrow { max-width: 780px; }

h1, h2, h3 { line-height: 1.1; margin: 0 0 16px; font-weight: 700; }
h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.75rem, 3vw, 2.25rem); margin-bottom: 32px; letter-spacing: -0.01em; }
h3 { font-size: 1.15rem; margin-bottom: 8px; }
p { margin: 0 0 16px; color: var(--ink-soft); }

section { padding: 120px 0; position: relative; scroll-margin-top: 100px; }

/* ---------- cursor ----------
   Both layers are white with mix-blend-mode: difference, so they invert
   against whatever's underneath (white on black, black on white) and stay
   visible on any section. A solid fill alone would go black-on-black. */
.cursor-dot, .cursor-ring {
  position: fixed;
  top: 0; left: 0;
  border-radius: 50%;
  background: var(--bg);
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: difference;
}
.cursor-dot {
  width: 8px; height: 8px;
  transform: translate(-50%, -50%);
  transition: opacity 0.25s var(--ease);
}
.cursor-ring {
  width: 34px; height: 34px;
  background: transparent;
  border: 1.5px solid var(--bg);
  transform: translate(-50%, -50%);
  transition: width 0.3s var(--ease), height 0.3s var(--ease), opacity 0.25s var(--ease);
}
.cursor-ring.-hover {
  width: 56px; height: 56px;
}
.cursor-dot.-hover { opacity: 0; }
@media (hover: none), (pointer: coarse) {
  .cursor-dot, .cursor-ring { display: none; }
}

/* ---------- fixed pill nav ---------- */
.nav {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translate(-50%, -8px);
  z-index: 500;
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--ink);
  border-radius: 999px;
  padding: 6px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.nav.-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}
.nav a {
  color: var(--bg-soft);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 999px;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
  white-space: nowrap;
}
.nav a:hover, .nav a.-active {
  color: var(--ink);
  background: var(--bg);
}
.nav .nav-cta {
  color: var(--ink);
  background: var(--bg);
  margin-left: 4px;
}

/* ---------- hero ---------- */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  background: var(--hero-bg);
  color: var(--bg);
  text-align: center;
  padding: 72px 0;
}
.hero-logo { height: clamp(90px, 12vw, 140px); width: auto; margin-bottom: 32px; }
.hero h1 { color: var(--bg); max-width: 820px; margin-left: auto; margin-right: auto; }
.hero .subhead {
  max-width: 620px;
  margin: 0 auto 36px;
  font-size: 1.1rem;
  color: var(--bg-soft);
}

/* ---------- button ---------- */
.button {
  display: inline-block;
  background: var(--bg);
  color: var(--ink);
  padding: 16px 32px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease);
}
.button:hover { transform: translateY(-2px); }
.hero .button { background: var(--bg); color: var(--ink); }
section:not(.hero) .button { background: var(--accent); color: var(--bg); }

/* ---------- curtain wipe wrapper ----------
   Default state (no JS, or interactions.js failed/unsupported) is fully
   open/visible — the covering animation only exists once JS confirms it can
   run it, via the js-motion class on <html>. This is a progressive-
   enhancement gate, not a decoration: without it, content would be
   permanently hidden behind a black overlay if the script never runs. */
.wipe {
  position: relative;
  overflow: hidden;
}
.wipe::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ink);
  transform-origin: top;
  transform: scaleY(0);
  z-index: 5;
  pointer-events: none;
}
html.js-motion .wipe::before {
  transform: scaleY(1);
  transition: transform 0.9s var(--ease);
}
html.js-motion .wipe.-revealed::before {
  transform: scaleY(0);
}

/* ---------- scroll reveal ----------
   Same progressive-enhancement gate as .wipe above: visible by default,
   only fades/slides once html.js-motion confirms the observer is running. */
.reveal {
  opacity: 1;
  transform: none;
}
html.js-motion .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
html.js-motion .reveal.-in { opacity: 1; transform: translateY(0); }
.reveal-stagger > * { transition-delay: calc(var(--i, 0) * 90ms); }

/* ---------- sections ---------- */
.about { background: var(--bg); }

.focus-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 40px;
}
.proof-item { margin-bottom: 32px; }
.proof-item:last-child { margin-bottom: 0; }

/* ---------- oversized type moment ---------- */
.statement {
  background: var(--ink);
  color: var(--bg);
  text-align: center;
}
.statement p {
  color: var(--bg);
  font-size: clamp(1.75rem, 4.5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  max-width: 920px;
  margin: 0 auto;
}
.statement span { color: var(--bg-soft); }

.engage { background: var(--bg); text-align: center; }
.engage .container.narrow { text-align: left; }

.book { text-align: center; background: var(--bg); }

footer {
  padding: 40px 0;
  background: var(--hero-bg);
  color: var(--bg-soft);
  text-align: center;
}
footer p { margin: 0; font-size: 0.85rem; color: var(--bg-soft); }

@media (max-width: 600px) {
  section { padding: 72px 0; }
  .nav a:not(.nav-cta) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cursor-dot, .cursor-ring { display: none; }
  body.has-custom-cursor { cursor: auto; }
  html.js-motion .wipe::before { transition: none; }
  html.js-motion .reveal { transition: none; opacity: 1; transform: none; }
  .nav { transition: none; }
}
