/* Distressed Restaurant Advisors — premium advisory redesign */
:root {
  --charcoal: #0E0E0E;
  --charcoal-2: #1A1A1A;
  --charcoal-3: #242424;
  --cream: #FAFAF8;
  --cream-2: #F3F1EC;
  --bronze: #B08D57;
  --bronze-deep: #8F7040;
  --bronze-text: #7A5E33; /* small text on cream — WCAG AA */
  --bronze-soft: rgba(176, 141, 87, 0.18);
  --ink: #1A1A1A;
  --ink-muted: #5C5A55;
  --ink-faint: #8A877F;
  --line: rgba(14, 14, 14, 0.1);
  --line-light: rgba(250, 250, 248, 0.14);
  --white: #FFFFFF;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 18px 50px rgba(14, 14, 14, 0.1);
  --shadow-lg: 0 28px 80px rgba(14, 14, 14, 0.18);
  --max: 1120px;
  --max-narrow: 720px;
  --font: system-ui, -apple-system, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --nav-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--bronze-deep); text-underline-offset: 3px; }
a:hover { color: var(--bronze); }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; font-weight: 600; margin: 0 0 0.75rem; }
p { margin: 0 0 1rem; }
ul { margin: 0; padding: 0; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* Layout */
.wrap {
  width: min(100% - 2.5rem, var(--max-narrow));
  margin-inline: auto;
}
.wrap--wide { width: min(100% - 2.5rem, var(--max)); }

/* Type */
.display {
  font-size: clamp(2rem, 4.8vw, 3.35rem);
  letter-spacing: -0.035em;
  line-height: 1.08;
  font-weight: 600;
}
.display-sm {
  font-size: clamp(1.65rem, 3.4vw, 2.45rem);
  letter-spacing: -0.03em;
  line-height: 1.12;
}
.eyebrow {
  display: inline-block;
  margin: 0 0 0.85rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bronze);
}
.eyebrow--light { color: rgba(250, 250, 248, 0.72); }
.eyebrow--bronze { color: var(--bronze); }
.lede {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  line-height: 1.65;
  max-width: 42rem;
}
.lede--light { color: rgba(250, 250, 248, 0.88); }
.lede-sm { font-size: 1.08rem; color: var(--ink-muted); max-width: 36rem; }
.muted { color: var(--ink-muted); }
.muted-light { color: rgba(250, 250, 248, 0.65); }
.quiet { color: var(--ink-muted); font-size: 0.95rem; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.75rem 1.35rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--primary {
  background: var(--bronze);
  color: var(--charcoal);
  box-shadow: 0 8px 24px rgba(176, 141, 87, 0.28);
}
.btn--primary:hover { background: #c09c66; color: var(--charcoal); }
.btn--bronze {
  background: var(--bronze);
  color: var(--charcoal);
}
.btn--bronze:hover { background: #c09c66; color: var(--charcoal); }
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn--ghost:hover { border-color: var(--bronze); color: var(--bronze-deep); }
.btn--ghost-light {
  background: transparent;
  color: var(--cream);
  border-color: rgba(250, 250, 248, 0.28);
}
.btn--ghost-light:hover { border-color: var(--bronze); color: #fff; }
.btn--full { width: 100%; }

/* NAV — sticky glass */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  transition: background 0.35s var(--ease), border-color 0.35s, backdrop-filter 0.35s;
  border-bottom: 1px solid transparent;
  background: transparent;
}
.nav.is-scrolled {
  background: rgba(14, 14, 14, 0.72);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border-bottom-color: var(--line-light);
}
.nav.is-scrolled .nav__name,
.nav.is-scrolled .nav__links > a:not(.nav__cta) { color: rgba(250, 250, 248, 0.82); }
.nav.is-scrolled .nav__links > a:not(.nav__cta):hover { color: #fff; }
.nav.is-light {
  background: rgba(250, 250, 248, 0.82);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border-bottom-color: var(--line);
}
.nav.is-light .nav__mark { color: var(--bronze); border-color: var(--bronze); }
.nav.is-light .nav__name,
.nav.is-light .nav__links > a:not(.nav__cta) { color: var(--ink); }
.nav.is-light .nav__toggle span { background: var(--ink); }

.nav__inner {
  width: min(100% - 2rem, var(--max));
  height: 100%;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}
.nav__mark {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 28px;
  padding: 0 0.55rem;
  border: 1px solid var(--bronze);
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--bronze);
}
.nav__rule {
  width: 1px;
  height: 18px;
  background: var(--bronze);
  opacity: 0.55;
  flex: none;
}
.nav__name {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: rgba(250, 250, 248, 0.88);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 1.35rem;
}
.nav__links > a {
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(250, 250, 248, 0.78);
  transition: color 0.2s;
}
.nav__links > a:hover { color: #fff; }
.nav__cta {
  min-height: 38px !important;
  padding: 0.45rem 1rem !important;
  border-radius: 999px;
  background: var(--bronze) !important;
  color: var(--charcoal) !important;
  font-weight: 600 !important;
  box-shadow: 0 6px 18px rgba(176, 141, 87, 0.25);
}
.nav__cta:hover { background: #c09c66 !important; color: var(--charcoal) !important; }
.nav__toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}
.nav__toggle span {
  display: block;
  width: 20px;
  height: 1.5px;
  margin-inline: auto;
  background: rgba(250, 250, 248, 0.9);
  transition: transform 0.25s var(--ease);
}

/* HERO */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: flex-end;
  padding: calc(var(--nav-h) + 2rem) 0 5rem;
  margin-top: calc(var(--nav-h) * -1);
  color: var(--cream);
  overflow: hidden;
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}
.hero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(14,14,14,0.55) 0%, rgba(14,14,14,0.35) 35%, rgba(14,14,14,0.78) 70%, rgba(14,14,14,0.94) 100%),
    linear-gradient(90deg, rgba(14,14,14,0.55) 0%, rgba(14,14,14,0.15) 55%, transparent 100%);
}
.hero__content {
  position: relative;
  z-index: 1;
  width: min(100% - 2.5rem, var(--max));
  padding-bottom: 0.5rem;
}
.hero__logo {
  width: min(340px, 72vw);
  height: auto;
  margin: 0 0 1.5rem;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,0.35));
}
.hero h1 { color: #fff; max-width: 18ch; margin-bottom: 1.15rem; }
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.75rem;
}

/* SPLIT sections */
.split {
  display: grid;
  grid-template-columns: 1fr;
  background: var(--cream);
}
.split__media {
  min-height: 320px;
  overflow: hidden;
}
.split__media img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
}
.split__copy {
  padding: 3.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 560px;
  width: 100%;
  margin-inline: auto;
}
.split__copy h2 { margin-bottom: 1.1rem; }
@media (min-width: 900px) {
  .split {
    grid-template-columns: 1fr 1fr;
    min-height: 560px;
  }
  .split--flip .split__media { order: 2; }
  .split--flip .split__copy { order: 1; }
  .split__media { min-height: 100%; }
  .split__media img { min-height: 560px; }
  .split__copy {
    padding: 4.5rem 3.5rem;
    max-width: none;
    width: min(100%, 560px);
    margin-inline: 0 auto;
  }
  .split--flip .split__copy { margin-inline: auto 0; }
}

/* Sections */
.section {
  padding: 5.5rem 0;
  position: relative;
}
.section--cream { background: var(--cream-2); }
.section--dark {
  background: var(--charcoal);
  color: var(--cream);
}

/* Who it's for — glass cards over photo */
.who {
  position: relative;
  overflow: hidden;
  padding: 6rem 0;
}
.who__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.who__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.7) brightness(0.45);
}
.who__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(14,14,14,0.75) 0%, rgba(14,14,14,0.82) 100%),
    radial-gradient(ellipse at 30% 20%, rgba(176,141,87,0.12), transparent 55%);
}
.who__inner { position: relative; z-index: 1; }
.who .display-sm { color: #fff; max-width: 22ch; margin-bottom: 2.25rem; }

/* Cards */
.cards {
  display: grid;
  gap: 1.25rem;
}
.cards--3 { grid-template-columns: 1fr; }
@media (min-width: 760px) {
  .cards--3 { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
}
.card {
  padding: 1.65rem 1.5rem;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--line);
}
.card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.65rem;
}
.card__num {
  margin: 0 0 0.85rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--bronze);
}
.card__label {
  margin: 0 0 0.45rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bronze);
}
.card__list {
  list-style: none;
  margin-top: 1rem;
}
.card__list li {
  position: relative;
  padding: 0.45rem 0 0.45rem 1.1rem;
  font-size: 0.95rem;
  color: var(--ink-muted);
  border-top: 1px solid var(--line);
}
.card__list li:first-child { border-top: 0; }
.card__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.95rem;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--bronze);
  opacity: 0.7;
}
.card__icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  border-radius: 12px;
  background: var(--bronze-soft);
  color: var(--bronze-deep);
}
.card--glass {
  background: rgba(250, 250, 248, 0.07);
  border: 1px solid rgba(250, 250, 248, 0.12);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.2);
  color: rgba(250, 250, 248, 0.92);
  transition: transform 0.3s var(--ease), background 0.3s, border-color 0.3s;
}
.card--glass:hover {
  transform: translateY(-3px);
  background: rgba(250, 250, 248, 0.11);
  border-color: rgba(176, 141, 87, 0.35);
}
.card--glass h3 { color: #fff; }
.card--glass p:not(.card__num) { color: rgba(250, 250, 248, 0.72); margin-bottom: 0; }
.card--elevate {
  background: var(--white);
  box-shadow: var(--shadow);
  border-color: transparent;
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
}
.card--elevate:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.note {
  margin-top: 2rem;
  font-size: 0.95rem;
  color: var(--ink-muted);
  max-width: 52rem;
}
.note--light { color: rgba(250, 250, 248, 0.62); }
.note--box {
  margin-top: 2.25rem;
  padding: 1.15rem 1.35rem;
  border-left: 3px solid var(--bronze);
  background: rgba(176, 141, 87, 0.08);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--ink);
}

/* Feature band — AI automation */
.feature-band {
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: center;
  padding: 5.5rem 0;
  color: var(--cream);
  overflow: hidden;
}
.feature-band__media {
  position: absolute;
  inset: 0;
}
.feature-band__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.feature-band__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(14,14,14,0.92) 0%, rgba(14,14,14,0.78) 42%, rgba(14,14,14,0.45) 100%),
    linear-gradient(180deg, rgba(14,14,14,0.35), rgba(14,14,14,0.55));
}
.feature-band__content {
  position: relative;
  z-index: 1;
  width: min(100% - 2.5rem, 640px);
  margin-left: max(1.25rem, calc((100% - var(--max)) / 2));
}
.feature-band__pull {
  margin: 1.5rem 0 1rem;
  font-size: clamp(1.25rem, 2.4vw, 1.65rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--bronze);
  line-height: 1.3;
}

/* Steps / How it works */
.steps {
  display: grid;
  gap: 1.5rem;
  margin: 2.5rem 0 3rem;
}
@media (min-width: 700px) {
  .steps { grid-template-columns: 1.4fr 1fr; gap: 1.75rem; }
}
.step {
  padding: 1.75rem;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--line);
}
.step--price {
  background: var(--charcoal);
  color: var(--cream);
  border-color: transparent;
}
.step--price .muted { color: rgba(250, 250, 248, 0.65); }
.step--price .card__label { color: var(--bronze); }
.step__num {
  margin: 0 0 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--bronze);
}
.step__price {
  font-size: clamp(2rem, 4vw, 2.6rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  margin: 0.35rem 0 0.85rem;
  color: #fff;
}
.step__price span {
  font-size: 1rem;
  font-weight: 500;
  color: rgba(250, 250, 248, 0.55);
  letter-spacing: 0;
}

/* CTA band */
.cta-band {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 2rem;
  border-radius: calc(var(--radius) + 4px);
  background:
    linear-gradient(135deg, var(--charcoal) 0%, var(--charcoal-2) 100%);
  color: var(--cream);
  box-shadow: var(--shadow-lg);
}
.cta-band h2 { color: #fff; font-size: clamp(1.35rem, 2.5vw, 1.75rem); }
.cta-band p { color: rgba(250, 250, 248, 0.72); margin-bottom: 0; max-width: 40rem; }
.cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.cta-band .btn--ghost {
  color: var(--cream);
  border-color: rgba(250, 250, 248, 0.25);
}
.cta-band .btn--ghost:hover {
  border-color: var(--bronze);
  color: #fff;
}
@media (min-width: 800px) {
  .cta-band {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 2.25rem 2.5rem;
  }
}

/* Intake */
.intake-intro { margin: 0 0 2rem; max-width: 40rem; }
.form {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}
.field {
  margin: 0;
  padding: 1.35rem 1.35rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}
.field__label {
  display: block;
  margin: 0 0 0.9rem;
  padding: 0;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.field__hint {
  display: inline-block;
  margin-left: 0.35rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--ink-faint);
  letter-spacing: 0;
}
.choices {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.choice {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 0.7rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.choice:hover { background: var(--cream-2); }
.choice:has(input:checked) {
  background: var(--bronze-soft);
  border-color: rgba(176, 141, 87, 0.35);
}
.choice input {
  margin-top: 0.25rem;
  accent-color: var(--bronze);
  flex: none;
}
.choice span { font-size: 0.95rem; line-height: 1.45; }
.input {
  width: 100%;
  margin-top: 0.55rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--cream);
  font: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.input:focus {
  outline: none;
  border-color: var(--bronze);
  box-shadow: 0 0 0 3px var(--bronze-soft);
  background: var(--white);
}
.grid-2 {
  display: grid;
  gap: 1rem;
}
@media (min-width: 640px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
}
.form__footer {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding-top: 0.5rem;
}
.form__legal {
  margin: 0;
  font-size: 0.82rem;
  color: var(--ink-faint);
  line-height: 1.55;
}
.thankyou {
  display: none;
  padding: 2rem;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  margin-bottom: 1.5rem;
}
.thankyou.is-visible { display: block; }
.thankyou ol { margin: 0.5rem 0 1rem 1.2rem; color: var(--ink-muted); }
.thankyou__close {
  margin-top: 1rem;
  font-weight: 500;
  color: var(--ink);
}

/* Footer */
.footer {
  background: var(--charcoal);
  color: rgba(250, 250, 248, 0.55);
  padding: 3.5rem 0 2.5rem;
  border-top: 1px solid var(--line-light);
}
.footer__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.nav__mark--footer { color: var(--bronze); border-color: var(--bronze); }
.footer__name {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(250, 250, 248, 0.85);
}
.footer__legal {
  font-size: 0.78rem;
  line-height: 1.65;
  max-width: 58rem;
  margin-bottom: 1.5rem;
}
.footer__copy {
  margin: 0;
  font-size: 0.78rem;
  color: rgba(250, 250, 248, 0.4);
}

/* Soft capture modal */
.capture {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--ease), visibility 0.35s;
}
.capture.is-open {
  pointer-events: auto;
  opacity: 1;
  visibility: visible;
}
.capture__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(14, 14, 14, 0.55);
  backdrop-filter: blur(4px);
}
.capture__panel {
  position: relative;
  z-index: 1;
  width: min(100%, 440px);
  margin: 0 1rem 1rem;
  padding: 1.75rem 1.5rem 1.5rem;
  border-radius: 18px;
  background: var(--cream);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
  transform: translateY(24px);
  transition: transform 0.4s var(--ease);
}
.capture.is-open .capture__panel { transform: translateY(0); }
@media (min-width: 600px) {
  .capture { align-items: center; }
  .capture__panel { margin: 0; }
}
.capture__close {
  position: absolute;
  top: 0.75rem;
  right: 0.85rem;
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--ink-faint);
  cursor: pointer;
  border-radius: 8px;
}
.capture__close:hover { background: var(--cream-2); color: var(--ink); }
.capture__eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bronze);
}
.capture__form h2,
.capture__thanks h2 {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}
.capture__form p,
.capture__thanks p {
  font-size: 0.95rem;
  color: var(--ink-muted);
}
.capture__fields {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin: 1.15rem 0 1rem;
}
.capture__fields .input { margin-top: 0; background: var(--white); }
.capture__note {
  margin: 0.75rem 0 0;
  font-size: 0.78rem;
  color: var(--ink-faint);
  text-align: center;
}
.capture__form.is-hidden { display: none; }
.capture__thanks { display: none; }
.capture__thanks.is-visible { display: block; }

/* Mobile nav */
@media (max-width: 820px) {
  .nav__toggle { display: flex; }
  .nav__name { display: none; }
  .nav__rule { display: none; }
  .nav__links {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.75rem 1.25rem 1.25rem;
    background: rgba(14, 14, 14, 0.94);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line-light);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
  }
  .nav.is-open .nav__links {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }
  .nav.is-light .nav__links {
    background: rgba(250, 250, 248, 0.96);
    border-bottom-color: var(--line);
  }
  .nav__links > a {
    padding: 0.85rem 0.25rem;
    border-bottom: 1px solid var(--line-light);
  }
  .nav.is-light .nav__links > a { border-bottom-color: var(--line); }
  .nav__cta {
    margin-top: 0.75rem;
    text-align: center;
    justify-content: center;
  }
  .nav.is-open .nav__toggle span:first-child { transform: translateY(3.75px) rotate(45deg); }
  .nav.is-open .nav__toggle span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
}

@media (max-width: 480px) {
  .hero { min-height: 92vh; padding-bottom: 3.5rem; }
  .hero h1 { max-width: none; }
  .section { padding: 4rem 0; }
  .feature-band { padding: 4rem 0; min-height: 420px; }
}

/* Insights / Resources — homepage section */
.insights {
  position: relative;
  overflow: hidden;
  padding: 6rem 0;
}
.insights__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.insights__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.55) brightness(0.38);
  opacity: 0.85;
}
.insights__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(14,14,14,0.82) 0%, rgba(14,14,14,0.88) 100%),
    radial-gradient(ellipse at 70% 30%, rgba(176,141,87,0.1), transparent 55%);
}
.insights__inner { position: relative; z-index: 1; }
.insights .display-sm {
  color: #fff;
  max-width: 24ch;
  margin-bottom: 0.75rem;
}
.insights__lede {
  color: rgba(250, 250, 248, 0.68);
  max-width: 36rem;
  margin-bottom: 2.25rem;
}
.card--link {
  display: block;
  text-decoration: none;
  color: inherit;
  height: 100%;
}
.card--link .card__more {
  margin: 1.15rem 0 0;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--bronze);
}
.card--glass.card--link:hover .card__more { color: #c09c66; }

/* Article pages */
body.page-article {
  background: var(--cream);
}
.article-hero {
  position: relative;
  padding: calc(var(--nav-h) + 3.25rem) 0 3.25rem;
  margin-top: calc(var(--nav-h) * -1);
  background:
    linear-gradient(160deg, var(--charcoal) 0%, var(--charcoal-2) 55%, #1f1a14 100%);
  color: var(--cream);
  overflow: hidden;
}
.article-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 85% 20%, rgba(176,141,87,0.14), transparent 50%);
  pointer-events: none;
}
.article-hero__inner {
  position: relative;
  z-index: 1;
  width: min(100% - 2.5rem, var(--max-narrow));
  margin-inline: auto;
}
.article-hero__crumb {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 1.15rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(250, 250, 248, 0.55);
  text-decoration: none;
}
.article-hero__crumb:hover { color: var(--bronze); }
.article-hero h1 {
  color: #fff;
  font-size: clamp(1.75rem, 3.8vw, 2.55rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0;
  max-width: 22ch;
}
.article {
  padding: 3.5rem 0 5rem;
}
.article__body {
  width: min(100% - 2.5rem, var(--max-narrow));
  margin-inline: auto;
}
.article__body > p {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--ink);
  margin-bottom: 1.25rem;
}
.article__body > p:first-child {
  font-size: 1.12rem;
  color: var(--ink-muted);
}
.article__body strong {
  font-weight: 600;
  color: var(--ink);
}
.article__body ul {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
}
.article__body li {
  position: relative;
  padding: 0.55rem 0 0.55rem 1.2rem;
  font-size: 1.02rem;
  line-height: 1.65;
  color: var(--ink-muted);
  border-top: 1px solid var(--line);
}
.article__body li:first-child { border-top: 0; }
.article__body li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.05rem;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--bronze);
  opacity: 0.75;
}
.article__body li strong { color: var(--ink); }
.article__cta {
  margin-top: 2.5rem;
  padding: 1.35rem 1.5rem;
  border-radius: var(--radius);
  background: var(--cream-2);
  border-left: 3px solid var(--bronze);
  font-size: 1.02rem;
  line-height: 1.65;
  color: var(--ink-muted);
}
.article__cta em { font-style: italic; }
.article__cta a {
  color: var(--bronze-deep);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.article__cta a:hover { color: var(--bronze); }
.article__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: space-between;
  align-items: center;
  margin-top: 2.75rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
}
.article__nav a {
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--ink-muted);
}
.article__nav a:hover { color: var(--bronze-deep); }

@media (max-width: 480px) {
  .insights { padding: 4.5rem 0; }
  .article { padding: 2.5rem 0 4rem; }
  .article-hero { padding-bottom: 2.5rem; }
}

/* ── Utilities ─────────────────────────────────────────────────────────── */
/* Component rules set display, which would otherwise beat the UA [hidden] rule. */
[hidden] { display: none !important; }
:focus-visible {
  outline: 2px solid var(--bronze);
  outline-offset: 3px;
  border-radius: 4px;
}
.section--dark :focus-visible,
.hero :focus-visible,
.nav :focus-visible,
.feature-band :focus-visible { outline-color: #D8B57E; }

/* Nav — five links plus the CTA: let the brand ellipsize, never the links */
.nav__links { flex: none; }
.nav__links > a { white-space: nowrap; }

/* ── Handbook ──────────────────────────────────────────────────────────── */
/* Links inside the dark Insights lede — the default link bronze is too dark here */
.insights__lede a { color: var(--bronze); text-underline-offset: 3px; }
.insights__lede a:hover { color: #C09C66; }

.book__inner {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}
@media (min-width: 900px) {
  .book__inner { grid-template-columns: minmax(220px, 300px) 1fr; gap: 3.75rem; }
}
.book__cover img {
  width: 100%;
  max-width: 300px;
  margin-inline: auto;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
}
.book .eyebrow { color: var(--bronze-text); }
.book__copy h2 { margin-bottom: 0.6rem; }
.book__subtitle {
  max-width: 34rem;
  margin-bottom: 1.35rem;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.5;
  color: var(--bronze-text);
}
.book__copy > p { max-width: 38rem; }
.book__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}
.book__pending {
  margin: 0.7rem 0 0;
  font-size: 0.82rem;
  color: var(--ink-muted);
}
.book__panel {
  max-width: 34rem;
  margin-top: 2rem;
  padding: 1.6rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}
.book__panel h3 { font-size: 1.1rem; margin-bottom: 0.35rem; }
.book__panel .quiet { margin-bottom: 0; }
.book__fields {
  display: grid;
  gap: 0.75rem;
  margin: 1.15rem 0;
}
@media (min-width: 560px) {
  .book__fields { grid-template-columns: 1fr 1fr; }
}
.book__fields .input { margin-top: 0; }
.book__error {
  margin: 0 0 0.85rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: #A3341F;
}
.book__note {
  margin: 0.85rem 0 0;
  font-size: 0.8rem;
  line-height: 1.55;
  color: var(--ink-muted);
}
.book__downloads {
  display: grid;
  gap: 0.7rem;
  margin-top: 1.15rem;
}
@media (min-width: 560px) {
  .book__downloads { grid-template-columns: 1fr 1fr; }
}
.book__form.is-hidden { display: none; }

/* ── Article extras — headings, ordered lists, tables ──────────────────── */
.article__body h2 {
  margin: 2.4rem 0 0.9rem;
  font-size: clamp(1.22rem, 2.2vw, 1.45rem);
  letter-spacing: -0.025em;
  color: var(--ink);
}
.article__body h2:first-child { margin-top: 0; }
.article__body ol {
  list-style: none;
  counter-reset: art-step;
  margin: 0 0 1.5rem;
  padding: 0;
}
.article__body ol > li {
  counter-increment: art-step;
  padding-left: 1.9rem;
}
.article__body ol > li::before {
  content: counter(art-step) ".";
  top: 0.55rem;
  left: 0;
  width: auto;
  height: auto;
  border-radius: 0;
  background: none;
  opacity: 1;
  font-size: 0.95rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--bronze-deep);
}
.article__table {
  margin: 0 0 1.75rem;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
}
.article__table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.article__table th,
.article__table td {
  padding: 0.7rem 0.95rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}
.article__table thead th {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.article__table tbody th {
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}
.article__table td {
  color: var(--ink-muted);
  font-variant-numeric: tabular-nums;
}
.article__table tbody tr:last-child th,
.article__table tbody tr:last-child td { border-bottom: 0; }
