/* ------------------------------------------------------------------
   Dr. Nikki Ravari site styles
   Palette: ink (near-black), ivory paper, brass accent, soft sage.
   Type:    Fraunces (display serif) + Inter (text), via Google Fonts.
------------------------------------------------------------------- */

:root {
  --ink: #14171c;
  --ink-2: #2a2f37;
  --ink-soft: #596170;
  --paper: #f7f4ee;
  --paper-2: #efeae1;
  --card: #ffffff;
  --line: #e2dcd1;
  --brass: #b4873f;
  --brass-deep: #8f6a2c;
  --brass-soft: #f2e7d2;
  --sage: #3f5d57;
  --sage-soft: #e3ece8;
  --focus: #1f5fd1;

  --font-display: "Fraunces", "Georgia", serif;
  --font-text: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --max: 1120px;
  --gutter: 20px;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(20, 23, 28, 0.08);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-text);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.4rem, 5.2vw, 4.2rem); font-weight: 400; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
.lede { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--ink-2); max-width: 44ch; }
.muted { color: var(--ink-soft); }
.small { font-size: 0.9rem; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section.tight { padding: clamp(40px, 6vw, 72px) 0; }
.section-head { max-width: 62ch; margin-bottom: clamp(28px, 4vw, 48px); }
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass-deep);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 22px; height: 1px;
  background: var(--brass);
  vertical-align: middle;
  margin-right: 10px;
}

/* Skip link */
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 244, 238, 0.86);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav .container { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { font-family: var(--font-display); font-size: 1.2rem; text-decoration: none; letter-spacing: 0.01em; white-space: nowrap; }
.brand span { color: var(--brass-deep); }
.nav-links { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; }
.nav-links a { text-decoration: none; font-size: 0.95rem; color: var(--ink-2); white-space: nowrap; }
.nav-links a:hover { color: var(--ink); }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-cta .btn { white-space: nowrap; }
.nav-toggle {
  display: none;
  background: none; border: 1px solid var(--line); border-radius: 8px;
  padding: 8px 10px; cursor: pointer; font: inherit; color: var(--ink);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.97rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  font-family: var(--font-text);
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--ink-2); }
.btn-ghost { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-brass { background: var(--brass); color: #fff; }
.btn-brass:hover { background: var(--brass-deep); }
.btn-sm { padding: 9px 16px; font-size: 0.88rem; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--paper-2); }
.btn-outline-light { background: transparent; border-color: rgba(255,255,255,0.5); color: #fff; }
.btn-outline-light:hover { background: #fff; color: var(--ink); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(56px, 8vw, 110px) 0 clamp(48px, 7vw, 96px);
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(900px 500px at 85% 10%, rgba(180, 135, 63, 0.14), transparent 60%),
    radial-gradient(700px 500px at 0% 100%, rgba(63, 93, 87, 0.10), transparent 60%);
  pointer-events: none;
}
.hero .container { position: relative; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.hero h1 em { font-style: italic; color: var(--brass-deep); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 22px; }
.hero-note { font-size: 0.92rem; color: var(--ink-soft); }
.hero-figure { position: relative; display: grid; place-items: center; }
.portrait {
  width: min(400px, 78vw);
  aspect-ratio: 3 / 4;
  border-radius: 22px;
  overflow: hidden;
  background: var(--paper-2);
  box-shadow: 0 30px 60px rgba(20, 23, 28, 0.18);
  position: relative;
}
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.portrait-ring {
  position: absolute;
  width: min(400px, 78vw); aspect-ratio: 3/4;
  border-radius: 22px;
  border: 1px solid rgba(180,135,63,0.55);
  transform: translate(18px, 18px);
  pointer-events: none;
}
.portrait-badge {
  position: absolute; bottom: 10%; left: 0;
  background: #fff; border: 1px solid var(--line);
  border-radius: 12px; padding: 12px 16px;
  box-shadow: var(--shadow);
  font-size: 0.9rem; line-height: 1.3;
}
.portrait-badge strong { display: block; font-family: var(--font-display); font-size: 1.6rem; font-weight: 500; color: var(--brass-deep); }

/* ---------- Proof strip ---------- */
.proof { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--card); }
.proof .container { display: grid; grid-template-columns: repeat(4, 1fr); }
.proof-item { padding: 28px 20px; border-left: 1px solid var(--line); }
.proof-item:first-child { border-left: 0; padding-left: 0; }
.proof-item strong { display: block; font-family: var(--font-display); font-size: 2.2rem; font-weight: 500; line-height: 1; margin-bottom: 8px; }
.proof-item span { color: var(--ink-soft); font-size: 0.92rem; }

/* ---------- About ---------- */
.about .container { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.about-aside { position: sticky; top: 92px; }
.pull {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  line-height: 1.3;
  font-weight: 400;
  color: var(--ink);
  border-left: 3px solid var(--brass);
  padding-left: 22px;
  margin: 0 0 20px;
}
.pull cite { display: block; font-family: var(--font-text); font-style: normal; font-size: 0.9rem; color: var(--ink-soft); margin-top: 14px; }
.about-body p { font-size: 1.05rem; color: var(--ink-2); }
.portfolio { list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.portfolio li { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; font-size: 0.95rem; display: flex; align-items: baseline; gap: 10px; }
.portfolio b { font-family: var(--font-display); font-size: 1.4rem; font-weight: 500; color: var(--brass-deep); min-width: 1.6ch; }

/* ---------- Topic cards ---------- */
.grid { display: grid; gap: 18px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px 22px;
  display: flex; flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card .num { font-family: var(--font-display); font-size: 0.95rem; color: var(--brass-deep); letter-spacing: 0.08em; margin-bottom: 14px; }
.card h3 { font-size: 1.3rem; margin-bottom: 10px; }
.card p { color: var(--ink-2); font-size: 0.97rem; margin-bottom: 14px; }
.card .meta { margin-top: auto; display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: 0.74rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; padding: 5px 9px; border-radius: 999px; background: var(--brass-soft); color: var(--brass-deep); }
.tag.sage { background: var(--sage-soft); color: var(--sage); }

/* ---------- Dark band (framework / fractional) ---------- */
.band { background: var(--ink); color: #fff; }
.band .eyebrow { color: #d9b77a; }
.band .eyebrow::before { background: #d9b77a; }
.band h2 { color: #fff; }
.band p { color: rgba(255,255,255,0.78); }
.band .card { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.12); color: #fff; }
.band .card h3 { color: #fff; }
.band .card p { color: rgba(255,255,255,0.75); }
.band .card:hover { box-shadow: 0 10px 30px rgba(0,0,0,0.35); }

.framework { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; gap: 10px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 38px 1fr; gap: 14px; align-items: start; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.1); }
.steps li::before { content: counter(s, decimal-leading-zero); font-family: var(--font-display); color: #d9b77a; font-size: 1.1rem; padding-top: 2px; }
.steps strong, .steps span { grid-column: 2; }
.steps strong { display: block; color: #fff; font-weight: 600; }
.steps span { color: rgba(255,255,255,0.7); font-size: 0.93rem; }
.gate { border: 1px dashed rgba(217,183,122,0.7); border-radius: 12px; padding: 16px 18px; margin-bottom: 18px; }
.gate strong { color: #d9b77a; display: block; margin-bottom: 4px; letter-spacing: 0.04em; text-transform: uppercase; font-size: 0.78rem; }
.gate p { margin: 0; color: #fff; }

/* ---------- Fractional ---------- */
.systems { columns: 2; column-gap: 28px; list-style: none; padding: 0; margin: 0; }
.systems li { break-inside: avoid; padding: 9px 0 9px 26px; position: relative; border-bottom: 1px solid var(--line); font-size: 0.97rem; }
.systems li::before { content: ""; position: absolute; left: 0; top: 17px; width: 12px; height: 12px; border-radius: 50%; background: var(--brass-soft); border: 2px solid var(--brass); }
.split { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.levels { display: grid; gap: 12px; margin-top: 8px; }
.level { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; }
.level strong { display: block; font-family: var(--font-display); font-size: 1.15rem; font-weight: 500; }
.level span { color: var(--ink-soft); font-size: 0.93rem; }

/* ---------- Audience / formats ---------- */
.pills { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.pills li { background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 9px 16px; font-size: 0.93rem; }

/* ---------- Contact ---------- */
.contact { background: var(--paper-2); border-top: 1px solid var(--line); }
.contact .container { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.contact-list a { text-decoration: none; font-weight: 600; }
.contact-list a:hover { text-decoration: underline; }
form.inquiry { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 0.86rem; font-weight: 600; color: var(--ink-2); }
.field input, .field textarea, .field select {
  font: inherit; font-size: 0.97rem;
  padding: 11px 12px;
  border: 1px solid var(--line); border-radius: 8px;
  background: #fff; color: var(--ink);
  width: 100%;
}
.field textarea { min-height: 110px; resize: vertical; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-note { font-size: 0.82rem; color: var(--ink-soft); margin: 0; }

/* ---------- Footer ---------- */
footer { padding: 36px 0 40px; border-top: 1px solid var(--line); font-size: 0.88rem; color: var(--ink-soft); }
footer .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; align-items: center; }
footer a { color: var(--ink-2); text-decoration: none; }
footer a:hover { text-decoration: underline; }
footer ul { list-style: none; padding: 0; margin: 0; display: flex; gap: 18px; flex-wrap: wrap; }

/* ---------- Speaker kit page ---------- */
.kit-hero { padding: clamp(48px, 7vw, 90px) 0 clamp(28px, 4vw, 48px); border-bottom: 1px solid var(--line); }
.kit-hero .container { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 40px; align-items: center; }
.kit-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.kit-nav a { font-size: 0.86rem; text-decoration: none; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 7px 13px; }
.kit-nav a:hover { border-color: var(--ink); }
.bio-block { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 26px; margin-bottom: 16px; }
.bio-block h3 { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.bio-block h3 span { font-family: var(--font-text); font-size: 0.78rem; color: var(--ink-soft); font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; }
.bio-block p:last-child { margin-bottom: 0; }
.copy-btn { font: inherit; font-size: 0.82rem; font-weight: 600; background: var(--paper-2); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; cursor: pointer; margin-top: 10px; }
.copy-btn:hover { background: var(--brass-soft); }
.headshots { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; max-width: 760px; }
.headshot { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; text-align: center; }
.headshot img { border-radius: 10px; margin: 0 auto 12px; width: 100%; height: auto; background: var(--paper-2); }
.headshot .small { display: block; margin-bottom: 10px; }
.topic-detail { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; margin-bottom: 16px; }
.topic-detail h3 { margin-bottom: 6px; }
.topic-detail .meta { margin-bottom: 14px; display: flex; flex-wrap: wrap; gap: 6px; }
.topic-detail ul { margin: 8px 0 0; padding-left: 20px; color: var(--ink-2); }
.topic-detail li { margin-bottom: 4px; }
.specs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.spec { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; }
.spec h3 { font-size: 1.15rem; }
.spec ul { margin: 0; padding-left: 20px; color: var(--ink-2); }
.spec li { margin-bottom: 5px; }

/* ---------- Reveal on scroll (progressive enhancement) ---------- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .btn:hover, .card:hover { transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-figure { order: -1; }
  .portrait-badge { left: 4%; }
  .about .container, .split, .framework, .contact .container, .kit-hero .container { grid-template-columns: 1fr; }
  .about-aside { position: static; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .proof .container { grid-template-columns: repeat(2, 1fr); }
  .proof-item { padding: 22px 16px; }
  .proof-item:nth-child(odd) { border-left: 0; padding-left: 0; }
  .proof-item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .headshots { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1024px) {
  .nav-links { display: none; position: absolute; left: 0; right: 0; top: 68px; background: var(--paper); border-bottom: 1px solid var(--line); padding: 14px var(--gutter) 20px; flex-direction: column; gap: 14px; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: inline-flex; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .nav-cta .btn { display: none; }
  .grid-3, .grid-2, .headshots, .specs, .row-2, .portfolio { grid-template-columns: 1fr; }
  .systems { columns: 1; }
  .proof .container { grid-template-columns: 1fr 1fr; }
  .hero-actions .btn { width: 100%; }
}

/* ---------- Print (speaker kit → PDF) ---------- */
@media print {
  .nav, .nav-toggle, footer .nolist, .copy-btn, .kit-nav, .hero-actions { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .section { padding: 18pt 0; }
  .card, .bio-block, .topic-detail, .spec, .headshot { box-shadow: none; break-inside: avoid; }
  a { text-decoration: none; color: #000; }
  .band { background: #fff; color: #000; border-top: 1px solid #ccc; }
  .band h2, .band p, .band .card h3, .band .card p, .steps strong, .steps span, .gate p { color: #000; }
}

/* ---------- Unnumbered variant of the band list ---------- */
.steps.plain li { grid-template-columns: 14px 1fr; gap: 16px; }
.steps.plain li::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: #d9b77a; margin-top: 9px; }
.systems li strong { color: var(--ink); }

/* ---------- Inquiry form mode switch ---------- */
.mode-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; background: var(--paper-2); border: 1px solid var(--line); border-radius: 999px; padding: 4px; }
.mode-btn { font: inherit; font-size: 0.9rem; font-weight: 600; border: 0; background: transparent; color: var(--ink-soft); border-radius: 999px; padding: 9px 12px; cursor: pointer; }
.mode-btn.is-active { background: var(--ink); color: #fff; }
.mode-fields { display: grid; gap: 14px; }
.mode-fields[hidden] { display: none; }
