/* ==========================================================================
   HERBSTAR Medical Consulting - design system
   Palette: clinical ink / surgical teal / dusty rose on warm paper.
   Signature motif: calibrated tick-rules (quantitative blood-loss scale).
   ========================================================================== */

:root {
  --ink: #16324F;
  --ink-deep: #0E2438;
  --teal: #2F6F6A;
  --teal-deep: #275D59;
  --rose: #B76E79;
  --rose-deep: #8E4D59;
  --blush: #F4E9E9;
  --blush-deep: #EEDFDF;
  --paper: #FBF9F7;
  --slate: #3D4B58;
  --muted: #5F6B76;
  --line: #E4DDD8;
  --line-dark: rgba(251, 249, 247, 0.18);

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

  --fs-h1: clamp(2.6rem, 5.5vw, 4.1rem);
  --fs-h2: clamp(1.85rem, 3.6vw, 2.7rem);
  --fs-h3: 1.35rem;
  --fs-stat: clamp(3.2rem, 7vw, 4.8rem);

  --space-section: clamp(4.5rem, 9vw, 7.5rem);
  --container: 1120px;
  --radius: 10px;
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--slate);
  background-color: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  color: var(--ink);
  margin: 0 0 1rem;
  text-wrap: balance;
}

h1 { font-size: var(--fs-h1); letter-spacing: -0.01em; }
h2 { font-size: var(--fs-h2); letter-spacing: -0.005em; }
h3 { font-size: var(--fs-h3); line-height: 1.3; }

p {
  margin: 0 0 1.15rem;
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--teal-deep);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.18s ease;
}

a:hover {
  color: var(--rose-deep);
}

ul, ol {
  margin: 0 0 1.15rem;
  padding-left: 1.3rem;
}

li {
  margin-bottom: 0.45rem;
}

img, svg {
  max-width: 100%;
  height: auto;
}

em {
  font-style: italic;
}

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection {
  background: var(--blush-deep);
  color: var(--ink);
}

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 100;
  background: var(--ink);
  color: var(--paper);
  padding: 0.6rem 1.1rem;
  border-radius: 0 0 var(--radius) var(--radius);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
}

.skip-link:focus {
  top: 0;
  color: var(--paper);
}

/* --------------------------------------------------------------------------
   Signature motif: calibrated tick-rule (QBL scale)
   -------------------------------------------------------------------------- */

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin: 0 0 1.1rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--rose-deep);
}

.eyebrow::before {
  content: "";
  flex: none;
  width: 46px;
  height: 11px;
  background-image:
    repeating-linear-gradient(90deg, var(--rose) 0 1.5px, transparent 1.5px 7.5px),
    linear-gradient(var(--rose), var(--rose));
  background-repeat: no-repeat;
  background-size: 100% 7px, 100% 1.5px;
  background-position: left top, left bottom;
}

.on-dark .eyebrow {
  color: #D9A6AE;
}

.on-dark .eyebrow::before {
  background-image:
    repeating-linear-gradient(90deg, #D9A6AE 0 1.5px, transparent 1.5px 7.5px),
    linear-gradient(#D9A6AE, #D9A6AE);
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.85rem 1.7rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--ink);
  color: var(--paper);
}

.btn-primary:hover {
  background: var(--ink-deep);
  color: var(--paper);
}

.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}

.btn-outline:hover {
  background: var(--ink);
  color: var(--paper);
}

.on-dark .btn-primary {
  background: var(--paper);
  color: var(--ink);
}

.on-dark .btn-primary:hover {
  background: var(--blush);
  color: var(--ink-deep);
}

.on-dark .btn-outline {
  color: var(--paper);
  border-color: var(--line-dark);
}

.on-dark .btn-outline:hover {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 249, 247, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--ink);
}

.brand:hover {
  color: var(--ink);
}

.logo-mark {
  width: 42px;
  height: 42px;
  flex: none;
}

.logo-mark .logo-arc {
  stroke: currentColor;
}

.logo-mark .logo-star {
  fill: var(--rose);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.3rem;
  letter-spacing: 0.13em;
}

.brand-sub {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.2rem;
}

.site-nav {
  display: flex;
  align-items: center;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.9rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu li {
  margin: 0;
}

.nav-menu a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--slate);
  text-decoration: none;
  padding-block: 0.4rem;
}

.nav-menu a:hover {
  color: var(--ink);
}

.nav-menu a[aria-current="page"]:not(.nav-cta) {
  color: var(--ink);
  font-weight: 600;
  box-shadow: 0 2px 0 0 var(--rose);
}

.nav-menu .nav-cta {
  display: inline-block;
  background: var(--ink);
  color: var(--paper);
  font-weight: 600;
  padding: 0.55rem 1.35rem;
  border-radius: 999px;
  transition: background-color 0.18s ease;
}

.nav-menu .nav-cta:hover {
  background: var(--ink-deep);
  color: var(--paper);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}

.nav-toggle .bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] .bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */

.section {
  padding-block: var(--space-section);
}

.section-blush {
  background: var(--blush);
}

.section-ink {
  background: var(--ink-deep);
  color: #C7D2DC;
}

.section-ink h2,
.section-ink h3 {
  color: var(--paper);
}

.section-intro {
  max-width: 46rem;
}

.section-intro .lede {
  font-size: 1.2rem;
  line-height: 1.65;
  color: var(--slate);
}

.section-ink .section-intro .lede {
  color: #C7D2DC;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(4.5rem, 10vw, 8.5rem);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 3rem;
  align-items: center;
}

.hero h1 {
  margin-bottom: 1.4rem;
  max-width: 15ch;
}

.hero h1 em {
  color: var(--rose-deep);
  font-style: italic;
  font-weight: 500;
}

.hero .lede {
  font-size: 1.2rem;
  line-height: 1.65;
  max-width: 34rem;
  margin-bottom: 2.2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.hero-note {
  margin-top: 1.6rem;
  font-size: 0.9rem;
  color: var(--muted);
}

/* Stage scale - vertical QBL calibration, decorative */
.stage-scale {
  width: 220px;
  flex: none;
}

.stage-scale .scale-line {
  stroke: var(--ink);
  stroke-width: 1.5;
}

.stage-scale .scale-tick {
  stroke: var(--ink);
  stroke-width: 1.2;
  opacity: 0.45;
}

.stage-scale .scale-major {
  stroke: var(--rose-deep);
  stroke-width: 1.8;
  opacity: 1;
}

.stage-scale .scale-label {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  fill: var(--ink);
}

.stage-scale .scale-sub {
  font-family: var(--font-body);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  fill: var(--rose-deep);
}

/* --------------------------------------------------------------------------
   Stat band
   -------------------------------------------------------------------------- */

.stat-band {
  background: var(--ink-deep);
  color: #C7D2DC;
  padding-block: clamp(3.5rem, 7vw, 5.5rem);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.stat {
  position: relative;
  padding-left: 1.6rem;
  border-left: 1px solid var(--line-dark);
}

.stat::before {
  content: "";
  position: absolute;
  left: -1px;
  top: 0;
  width: 1px;
  height: 100%;
  background-image: repeating-linear-gradient(180deg, rgba(217, 166, 174, 0.9) 0 6px, transparent 6px 14px);
}

.stat-number {
  display: block;
  font-family: var(--font-display);
  font-size: var(--fs-stat);
  font-weight: 500;
  line-height: 1;
  color: #D9A6AE;
  margin-bottom: 0.6rem;
}

.stat-label {
  display: block;
  font-size: 0.98rem;
  line-height: 1.55;
  max-width: 24ch;
}

.stat-source {
  margin-top: 2.4rem;
  font-size: 0.8rem;
  color: rgba(199, 210, 220, 0.65);
}

.stat-source a {
  color: rgba(199, 210, 220, 0.85);
}

/* --------------------------------------------------------------------------
   Cards & grids
   -------------------------------------------------------------------------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
  margin-top: 2.8rem;
}

.card-grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.9rem 1.7rem;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.section-blush .card {
  background: var(--paper);
}

.card:hover {
  border-color: var(--teal);
  transform: translateY(-3px);
}

.card h3 {
  margin-bottom: 0.6rem;
}

.card p {
  font-size: 0.98rem;
  color: var(--muted);
}

.card-num {
  display: block;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--rose-deep);
  letter-spacing: 0.08em;
  margin-bottom: 1.1rem;
}

.card-link {
  display: inline-block;
  margin-top: 1.1rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--teal-deep);
  text-decoration: none;
}

.card-link::after {
  content: " \2192";
}

.card-link:hover {
  color: var(--rose-deep);
}

a.card-block {
  display: block;
  text-decoration: none;
  color: inherit;
}

/* --------------------------------------------------------------------------
   Four R strip
   -------------------------------------------------------------------------- */

.framework-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 2.8rem;
  border-top: 1px solid var(--line);
}

.framework-step {
  padding: 1.8rem 1.6rem 0 0;
  border-top: 3px solid transparent;
  margin-top: -2px;
}

.framework-step:nth-child(1) { border-top-color: var(--blush-deep); }
.framework-step:nth-child(2) { border-top-color: var(--rose); }
.framework-step:nth-child(3) { border-top-color: var(--rose-deep); }
.framework-step:nth-child(4) { border-top-color: var(--teal); }

.framework-step h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.framework-step p {
  font-size: 0.95rem;
  color: var(--muted);
}

.framework-motto {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 1.02rem;
  color: var(--rose-deep);
  margin-bottom: 0.55rem;
}

/* --------------------------------------------------------------------------
   Standards strip
   -------------------------------------------------------------------------- */

.standards-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding-block: 2.2rem;
  background: var(--paper);
}

.standards-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem 2.8rem;
}

.standards-title {
  flex-basis: 100%;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

.standards-item {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.05rem;
  color: var(--ink);
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Detail sections (services / approach)
   -------------------------------------------------------------------------- */

.track {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 2.2rem;
  padding-block: 3.2rem;
  border-top: 1px solid var(--line);
}

.track:first-of-type {
  border-top: none;
  padding-top: 1.6rem;
}

.track-num {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 500;
  color: var(--rose);
  line-height: 1;
}

.track-num span {
  display: block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.7rem;
}

.track h2,
.track h3 {
  font-size: 1.55rem;
  line-height: 1.25;
  margin-bottom: 0.8rem;
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 1.4rem 0 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.55rem 2rem;
}

.checklist li {
  position: relative;
  padding-left: 1.5rem;
  margin: 0;
  font-size: 0.98rem;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.52em;
  width: 0.55rem;
  height: 0.55rem;
  background: var(--rose);
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
}

/* Deliverables grid */
.deliverable {
  border-top: 2px solid var(--ink);
  padding-top: 1.1rem;
}

.deliverable h3 {
  font-size: 1.08rem;
  margin-bottom: 0.4rem;
}

.deliverable p {
  font-size: 0.93rem;
  color: var(--muted);
}

/* Engagement timeline */
.timeline {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 2.6rem 0 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}

.timeline li {
  counter-increment: step;
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.7rem 1.5rem;
  margin: 0;
}

.timeline li::before {
  content: "0" counter(step);
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--rose-deep);
  margin-bottom: 0.8rem;
}

.timeline h3 {
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}

.timeline p {
  font-size: 0.94rem;
  color: var(--muted);
}

/* Prose pages (legal, why-it-matters narrative) */
.prose {
  max-width: 46rem;
}

.prose h2 {
  font-size: 1.6rem;
  margin-top: 2.6rem;
}

.prose h2:first-child {
  margin-top: 0;
}

/* Value list */
.value-list {
  list-style: none;
  padding: 0;
  margin: 2.4rem 0 0;
  max-width: 46rem;
}

.value-list li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1.1rem;
  padding-block: 1.15rem;
  border-top: 1px solid var(--line);
  margin: 0;
}

.value-list li:last-child {
  border-bottom: 1px solid var(--line);
}

.value-list .tick {
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.28rem;
  flex: none;
  background: var(--teal);
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
}

/* --------------------------------------------------------------------------
   CTA band
   -------------------------------------------------------------------------- */

.cta-band {
  background: var(--blush);
  padding-block: clamp(4rem, 8vw, 6.5rem);
  text-align: center;
}

.cta-band h2 {
  max-width: 22ch;
  margin-inline: auto;
}

.cta-band p {
  max-width: 38rem;
  margin: 0 auto 2rem;
}

.cta-band .btn-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem;
}

.cta-email {
  display: block;
  margin-top: 1.4rem;
  font-size: 0.95rem;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   Contact page
   -------------------------------------------------------------------------- */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 3.5rem;
  align-items: start;
}

.contact-email-block {
  margin-top: 2rem;
  padding: 1.6rem 1.7rem;
  background: var(--blush);
  border-radius: var(--radius);
}

.contact-email-block .label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--rose-deep);
  margin-bottom: 0.5rem;
}

.contact-email-block a {
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 1.8vw, 1.12rem);
  font-weight: 500;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.include-list {
  margin-top: 1.8rem;
}

.include-list h3 {
  font-size: 1.05rem;
}

.include-list ul {
  font-size: 0.97rem;
  color: var(--muted);
}

/* Form */
.contact-form {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.2rem 2rem;
}

.contact-form h2 {
  font-size: 1.45rem;
  margin-bottom: 0.4rem;
}

.form-hint {
  font-size: 0.92rem;
  color: var(--muted);
  margin-bottom: 1.6rem;
}

.form-field {
  margin-bottom: 1.2rem;
}

.form-field label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.4rem;
}

.form-field .optional {
  font-weight: 400;
  color: var(--muted);
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  font-family: var(--font-body);
  font-size: 0.98rem;
  color: var(--slate);
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: 8px;
  transition: border-color 0.18s ease;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: 2px solid var(--teal);
  outline-offset: 1px;
  border-color: var(--teal);
}

.form-field textarea {
  resize: vertical;
  min-height: 140px;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  margin-top: 1rem;
  font-size: 0.95rem;
  font-weight: 500;
  min-height: 1.5em;
}

.form-status.success { color: var(--teal-deep); }
.form-status.error { color: var(--rose-deep); }

/* --------------------------------------------------------------------------
   Page header (subpages)
   -------------------------------------------------------------------------- */

.page-head {
  padding-block: clamp(3.5rem, 7vw, 5.5rem) clamp(2.5rem, 5vw, 4rem);
  border-bottom: 1px solid var(--line);
}

.page-head h1 {
  max-width: 18ch;
}

.page-head .lede {
  font-size: 1.18rem;
  line-height: 1.65;
  max-width: 44rem;
  margin-top: 1.2rem;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  background: var(--ink-deep);
  color: #AFBCC8;
  font-size: 0.94rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 4fr);
  gap: 3rem;
  padding-block: 3.8rem 3rem;
}

.footer-brand .brand {
  color: var(--paper);
  margin-bottom: 1rem;
}

.footer-brand .brand-sub {
  color: #8B99A7;
}

.footer-brand p {
  max-width: 30ch;
}

.footer-heading {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #8B99A7;
  margin: 0 0 1.1rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.55rem;
}

.site-footer a {
  color: #D5DDE4;
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--paper);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-contact .email {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.92rem;
  margin-bottom: 0.9rem;
  overflow-wrap: anywhere;
}

.footer-bottom {
  border-top: 1px solid var(--line-dark);
  padding-block: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 2rem;
  font-size: 0.83rem;
  color: #8B99A7;
}

.footer-bottom p {
  margin: 0;
}

.footer-bottom .footer-disclaimer {
  flex-basis: 100%;
  margin-top: 0.3rem;
}

/* --------------------------------------------------------------------------
   Reveal animation
   -------------------------------------------------------------------------- */

html.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

html.js .reveal.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  html.js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .card:hover,
  .btn:active {
    transform: none;
  }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .stage-scale {
    display: none;
  }

  .card-grid,
  .timeline {
    grid-template-columns: 1fr 1fr;
  }

  .framework-strip {
    grid-template-columns: 1fr 1fr;
    row-gap: 1.2rem;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 780px) {
  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 0.6rem 1.5rem 1.4rem;
    box-shadow: 0 18px 30px -18px rgba(22, 50, 79, 0.25);
  }

  .nav-menu.open {
    display: flex;
  }

  .nav-menu a {
    display: block;
    padding: 0.85rem 0;
    font-size: 1.05rem;
  }

  .nav-menu a[aria-current="page"]:not(.nav-cta) {
    box-shadow: none;
    color: var(--rose-deep);
  }

  .nav-menu .nav-cta {
    margin-top: 0.8rem;
    text-align: center;
  }
}

@media (max-width: 640px) {
  .stat-grid,
  .card-grid,
  .timeline,
  .framework-strip {
    grid-template-columns: 1fr;
  }

  .checklist {
    grid-template-columns: 1fr;
  }

  .track {
    grid-template-columns: 1fr;
    gap: 1.2rem;
    padding-block: 2.4rem;
  }

  .track-num {
    display: flex;
    align-items: baseline;
    gap: 0.8rem;
  }

  .track-num span {
    margin-top: 0;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.2rem;
  }

  .brand-name {
    font-size: 1.15rem;
  }
}
