/* ==========================================================================
   M D Patel & Co. — editorial audit & assurance
   ========================================================================== */

:root {
  --ivory:      #FBF9F5;
  --ivory-deep: #F3EFE7;
  --paper:      #FFFFFF;
  --ink:        #15171A;
  --ink-2:      #4C5158;
  --ink-3:      #6E747C;
  --line:       #E3DED4;
  --line-soft:  #EDE9E1;
  --accent:     #35492F;
  --accent-hi:  #46603D;
  --accent-ink: #FBF9F5;

  --display: "Geist", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --body:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  --pad: clamp(1.25rem, 5vw, 5rem);
  --maxw: 1440px;
  --ease:        cubic-bezier(0.23, 1, 0.32, 1);      /* strong ease-out  */
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);     /* on-screen motion */
}

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

html {
  overflow-x: hidden;          /* NEVER on body: forces body into its own scroll container */
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; height: auto; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.08;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }

a { color: inherit; }

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

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

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--ivory);
  padding: 0.85rem 1.25rem;
  z-index: 200;
  font-size: 0.9rem;
}
.skip-link:focus { left: 0; }

/* ---------- shared type ---------- */

.eyebrow {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.6rem;
  white-space: nowrap;   /* labels stay on one line at every width */
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin: 0;
}
.eyebrow::before {
  content: "";
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  /* flex-start + nudge so the dot tracks line 1 when the label wraps */
  margin-top: 0.42em;
}

.label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0;
}

.lede {
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  color: var(--ink-2);
  line-height: 1.7;
  max-width: 52ch;
}

.section { padding: clamp(4.5rem, 10vw, 8.5rem) 0; }
.section--line { border-top: 1px solid var(--line); }
.section--deep { background: var(--ivory-deep); }

.section-head { max-width: 62ch; }
.section-head h2 {
  font-size: clamp(2rem, 4.4vw, 3.25rem);
  margin-top: 1.4rem;
}
.section-head .lede { margin-top: 1.5rem; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 48px;
  padding: 0.9rem 1.6rem;
  border: 1px solid var(--ink);
  border-radius: 3px;
  background: var(--ink);
  color: var(--ivory);
  font-family: var(--body);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 180ms var(--ease), color 180ms var(--ease),
              border-color 180ms var(--ease), transform 140ms var(--ease);
}
.btn:active { transform: scale(0.97); }

.btn-arrow { transition: transform 180ms var(--ease); }

/* Hover only where a real pointer exists — touch taps otherwise stick. */
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background-color: var(--accent); border-color: var(--accent); }
  .btn:hover .btn-arrow { transform: translateX(3px); }
  .btn--ghost:hover {
    background-color: transparent;
    color: var(--accent);
    border-color: var(--accent);
  }
  .btn--light:hover { background-color: var(--paper); border-color: var(--paper); color: var(--ink); }
  .btn--dark:hover { background-color: rgba(8, 10, 13, 0.92); border-color: rgba(251, 249, 245, 0.4); }
  .btn--glass:hover { background-color: rgba(251, 249, 245, 0.24); border-color: rgba(251, 249, 245, 0.5); }
}

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

.btn--light {
  background: var(--ivory);
  color: var(--ink);
  border-color: var(--ivory);
}

/* on-photo variants */
.btn--dark {
  background: rgba(8, 10, 13, 0.62);
  border-color: rgba(251, 249, 245, 0.26);
  color: var(--ivory);
  backdrop-filter: blur(10px);
}
.btn--glass {
  background: rgba(251, 249, 245, 0.14);
  border-color: rgba(251, 249, 245, 0.34);
  color: var(--ivory);
  backdrop-filter: blur(10px);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.25rem;
}

/* ---------- header ---------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(251, 249, 245, 0.9);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
  transition: background 260ms var(--ease), border-color 260ms var(--ease),
              color 260ms var(--ease);
}

/* Over the full-bleed hero the bar is invisible and its type flips to ivory. */
/* An open dropdown always wins: its panel is ivory, so the bar and its type
   must return to the light scheme even while the hero photo is behind them. */
.site-header.is-over-hero.is-menu-open {
  background: rgba(251, 249, 245, 0.96);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom-color: var(--line);
  color: var(--ink);
}
.site-header.is-over-hero.is-menu-open .nav-toggle { color: var(--ink); }

.site-header.is-over-hero {
  background: transparent;
  backdrop-filter: none;
  border-bottom-color: transparent;
  color: var(--ivory);
}
.site-header.is-over-hero .nav-links a { color: rgba(251, 249, 245, 0.82); }
.site-header.is-over-hero .nav-links a:hover { color: var(--ivory); }
.site-header.is-over-hero .nav-toggle { color: var(--ivory); }
.site-header.is-over-hero .nav-cta {
  background: rgba(251, 249, 245, 0.12);
  border-color: rgba(251, 249, 245, 0.28);
  color: var(--ivory);
  backdrop-filter: blur(10px);
}

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

.wordmark {
  font-family: var(--display);
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  font-size: 0.875rem;
  color: var(--ink-2);
  text-decoration: none;
  transition: color 200ms var(--ease);
}
.nav-links a:hover { color: var(--ink); }

.nav-links .btn { display: none; }   /* dropdown-only CTA; desktop uses .nav-cta */
.nav-cta { display: inline-flex; }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-right: -0.6rem;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
  color: var(--ink);
}
.nav-toggle span {
  position: relative;
  display: block;
  width: 20px;
  height: 1.5px;
  background: currentColor;
  transition: background 200ms var(--ease);
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px;
  height: 1.5px;
  background: currentColor;
  transition: transform 240ms var(--ease);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after  { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after  { transform: translateY(-6px) rotate(-45deg); }

/* ---------- hero (full-bleed) ---------- */

.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 100svh;
  padding: 8rem 0 clamp(3.5rem, 8vh, 6rem);
  overflow: hidden;
  background: #0C0E11;
  isolation: isolate;
}

.hero-bg,
.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 50%;
}

/* Legible over any part of the frame: a deep bottom-left wash for the copy,
   plus a lighter top veil so the overlaid nav stays readable. */
.hero-scrim {
  background:
    linear-gradient(to top, rgba(8, 10, 13, 0.92) 0%, rgba(8, 10, 13, 0.62) 34%, rgba(8, 10, 13, 0.12) 66%, rgba(8, 10, 13, 0.34) 100%),
    linear-gradient(to right, rgba(8, 10, 13, 0.78) 0%, rgba(8, 10, 13, 0.34) 45%, rgba(8, 10, 13, 0) 78%);
}

.hero-inner {
  position: relative;
  width: 100%;
  color: var(--ivory);
}

/* Same bare label as every other eyebrow on the page — the shape language
   here is rectangles and rules, so no pill. */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  white-space: nowrap;
  margin: 0;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: rgba(251, 249, 245, 0.92);
}
.hero-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ivory);
  flex: 0 0 auto;
}

.hero h1 {
  max-width: 18ch;
  margin-top: 1.75rem;
  font-size: clamp(2.5rem, 6.6vw, 5.25rem);
  color: var(--ivory);
}
.hero-line { display: block; white-space: nowrap; }

.hero-lede {
  max-width: 48ch;
  margin-top: 1.6rem;
  font-size: clamp(1rem, 1.35vw, 1.1rem);
  line-height: 1.65;
  color: rgba(251, 249, 245, 0.82);
}

.hero .btn-row { margin-top: 2.25rem; }

/* ---------- facts band ---------- */

.facts-band { padding: clamp(2.5rem, 5vw, 3.5rem) 0; }

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0;
  margin: 0;
}
/* Each stat takes an equal share so the row spans the full container. */
.hero-facts div {
  flex: 1 1 0;
  min-width: 0;
  padding: 0.4rem 0 0.4rem clamp(1.25rem, 3vw, 2.5rem);
  border-left: 1px solid var(--line);
}
.hero-facts div:first-child {
  padding-left: 0;
  border-left: 0;
}
.hero-facts dt {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.hero-facts dd {
  margin: 0.35rem 0 0;
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 500;
}

/* ---------- editorial two-column ---------- */

.split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}
.split h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.9rem);
  margin-top: 1.4rem;
}
.split-aside { padding-top: 0.5rem; }
.split-aside p + p { margin-top: 1.1rem; }

/* ---------- approach figure ---------- */

.approach-figure {
  margin: clamp(3rem, 6vw, 5rem) 0 0;
}
.approach-figure img {
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
  object-position: 50% 42%;
  border-radius: 2px;
}

@media (max-width: 700px) {
  .approach-figure img { aspect-ratio: 4 / 3; }
}

/* ---------- bordered rows (problem / why) ---------- */

.rows { margin-top: clamp(2.5rem, 5vw, 4rem); }

.row {
  display: grid;
  grid-template-columns: 4rem 1fr 1.15fr;
  gap: clamp(1rem, 4vw, 3rem);
  align-items: start;
  padding: clamp(1.75rem, 3vw, 2.5rem) 0;
  border-top: 1px solid var(--line);
}
.row:last-child { border-bottom: 1px solid var(--line); }
.row-num {
  font-family: var(--display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--ink-3);
  padding-top: 0.35rem;
}
.row h3 { font-size: clamp(1.15rem, 2vw, 1.45rem); }
.row p { color: var(--ink-2); font-size: 0.975rem; }

/* ---------- service cards ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: clamp(2.5rem, 5vw, 4rem);
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 2px;
  overflow: hidden;
}
.card {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: clamp(1.75rem, 2.8vw, 2.5rem);
  background: var(--ivory);
  transition: background-color 300ms var(--ease);
}
.card-num {
  font-family: var(--display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--accent);
}
.card h3 {
  font-size: clamp(1.1rem, 1.5vw, 1.3rem);
  transition: color 240ms var(--ease);
}
.card p { font-size: 0.95rem; color: var(--ink-2); }

@media (hover: hover) and (pointer: fine) {
  .card:hover { background-color: var(--ivory-deep); }
  .card:hover h3 { color: var(--accent); }
}

/* ---------- statement / founder (dark band) ---------- */

.statement {
  background: var(--ink);
  color: var(--ivory);
  border-top: 0;
}
.statement .eyebrow { color: rgba(251, 249, 245, 0.66); }
.statement .eyebrow::before { background: rgba(251, 249, 245, 0.6); }

.statement-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.statement-media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 2px;
}
.statement blockquote {
  margin: 1.6rem 0 0;
  font-family: var(--display);
  font-size: clamp(1.4rem, 2.9vw, 2.2rem);
  font-weight: 500;
  line-height: 1.28;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.statement blockquote { color: var(--ivory); }
.statement cite {
  display: block;
  margin-top: 1.9rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(251, 249, 245, 0.18);
  font-style: normal;
}
.statement cite b { display: block; font-weight: 600; font-size: 1rem; }
.statement cite span {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.875rem;
  color: rgba(251, 249, 245, 0.6);
  line-height: 1.5;
}

/* ---------- process ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: clamp(2.5rem, 5vw, 4rem);
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 2px;
}
.step {
  background: var(--ivory);
  padding: clamp(1.5rem, 2.6vw, 2.25rem);
}
.step-num {
  font-family: var(--display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--accent);
}
.step h3 { font-size: 1.1rem; margin-top: 1.1rem; }
.step p { margin-top: 0.7rem; font-size: 0.925rem; color: var(--ink-2); }

/* ---------- feature band ---------- */

.band {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.band-media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 2px;
}
.band h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); margin-top: 1.4rem; }
.band .lede { margin-top: 1.5rem; }
.band ul {
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}
.band li {
  padding: 0.95rem 0;
  border-top: 1px solid var(--line);
  font-size: 0.975rem;
  color: var(--ink-2);
}
.band li:last-child { border-bottom: 1px solid var(--line); }
.band li b { color: var(--ink); font-weight: 600; }

/* ---------- faq ---------- */

.faq-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}
.faq-list { margin: 0; }
.faq-item { border-top: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 1px solid var(--line); }

.faq-q {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  width: 100%;
  min-height: 48px;
  padding: 1.45rem 0;
  background: none;
  border: 0;
  color: inherit;
  font-family: var(--display);
  font-size: clamp(1rem, 1.7vw, 1.15rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
  transition: color 200ms var(--ease);
}
.faq-q:hover { color: var(--accent); }
.faq-icon {
  position: relative;
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  margin-top: 0.28em;
}
.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 14px;
  height: 1.5px;
  background: currentColor;
  transition: transform 260ms var(--ease);
}
.faq-icon::after { transform: rotate(90deg); }
.faq-q[aria-expanded="true"] .faq-icon::after { transform: rotate(0deg); }

.faq-a {
  overflow: hidden;
  max-height: 0;
  transition: max-height 300ms var(--ease);
}
.faq-a p {
  padding: 0 0 1.6rem;
  max-width: 62ch;
  font-size: 0.975rem;
  color: var(--ink-2);
}

/* ---------- contact ---------- */

.contact { background: var(--ink); color: var(--ivory); }
.contact h2 { font-size: clamp(2rem, 4.4vw, 3.25rem); margin-top: 1.4rem; }
.contact .eyebrow { color: rgba(251, 249, 245, 0.66); }
.contact .eyebrow::before { background: rgba(251, 249, 245, 0.55); }
.contact .lede { margin-top: 1.5rem; color: rgba(251, 249, 245, 0.72); }

.contact-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}

.contact-direct {
  margin: 2.5rem 0 0;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(251, 249, 245, 0.16);
}
.contact-direct dt {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: rgba(251, 249, 245, 0.55);
}
.contact-direct dd { margin: 0.35rem 0 1.25rem; font-size: 1rem; }
.contact-direct dd:last-of-type { margin-bottom: 0; }
.contact-direct a { text-decoration: none; border-bottom: 1px solid rgba(251, 249, 245, 0.3); }
.contact-direct a:hover { border-bottom-color: var(--ivory); }

/* ---------- form ---------- */

.form { display: grid; gap: 1.35rem; }
.field { display: grid; gap: 0.5rem; }
.field label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(251, 249, 245, 0.78);
}
.field .req { color: rgba(251, 249, 245, 0.62); font-weight: 400; text-transform: none; letter-spacing: 0; }
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.8rem 0.95rem;
  background: rgba(251, 249, 245, 0.05);
  border: 1px solid rgba(251, 249, 245, 0.28);
  border-radius: 3px;
  color: var(--ivory);
  font-family: var(--body);
  font-size: 0.95rem;
}
.field textarea { min-height: 118px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: rgba(251, 249, 245, 0.45); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--ivory);
  outline-offset: 1px;
  border-color: transparent;
}
.field select option { color: var(--ink); }

.checks { display: grid; gap: 0.75rem; margin-top: 0.75rem; }
.check {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-size: 0.925rem;
  color: rgba(251, 249, 245, 0.88);
  line-height: 1.45;
  cursor: pointer;
}
.check input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin: 0.16rem 0 0;
  accent-color: var(--ivory);
}

fieldset { margin: 0; padding: 0; border: 0; }
legend {
  padding: 0;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(251, 249, 245, 0.78);
}

.form-note { font-size: 0.82rem; color: rgba(251, 249, 245, 0.62); }

.form-status {
  padding: 0.9rem 1.1rem;
  border: 1px solid rgba(251, 249, 245, 0.35);
  border-radius: 3px;
  font-size: 0.925rem;
}
.form-status[hidden] { display: none; }

/* ---------- footer ---------- */

.site-footer {
  background: var(--ink);
  color: rgba(251, 249, 245, 0.75);
  border-top: 1px solid rgba(251, 249, 245, 0.14);
  padding: clamp(3rem, 6vw, 4.5rem) 0 clamp(2rem, 4vw, 3rem);
}
.footer-inner { text-align: center; }
.site-footer .wordmark {
  display: inline-block;
  color: var(--ivory);
  font-size: 0.95rem;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem 1.75rem;
  list-style: none;
  margin: 2rem 0 0;
  padding: 0 0 2.25rem;
  border-bottom: 1px solid rgba(251, 249, 245, 0.14);
  font-size: 0.9rem;
}
.footer-nav a { text-decoration: none; }
.footer-nav a:hover { color: var(--ivory); }

.footer-line {
  margin-top: 2rem;
  font-size: 0.875rem;
  line-height: 1.85;
}
.footer-line a { text-decoration: none; border-bottom: 1px solid rgba(251, 249, 245, 0.28); }
.footer-line a:hover { color: var(--ivory); }
.footer-sep { color: rgba(251, 249, 245, 0.35); padding: 0 0.55rem; }

.footer-legal {
  margin-top: 1.5rem;
  font-size: 0.8rem;
  color: rgba(251, 249, 245, 0.55);
}

/* ---------- document page (accessibility) ---------- */

.doc { padding: calc(72px + clamp(3rem, 6vw, 5rem)) 0 clamp(4rem, 9vw, 7rem); }
.doc-head { max-width: 44ch; }
.doc-head h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); margin-top: 1.4rem; }
.doc-meta { margin-top: 1.5rem; font-size: 0.875rem; color: var(--ink-3); }

.doc-body { max-width: 68ch; margin-top: clamp(2.5rem, 5vw, 4rem); }
.doc-body section + section {
  border-top: 1px solid var(--line);
  margin-top: clamp(2rem, 4vw, 3rem);
  padding-top: clamp(2rem, 4vw, 3rem);
}
.doc-body h2 { font-size: clamp(1.35rem, 2.4vw, 1.75rem); }
.doc-body p { margin-top: 1.1rem; color: var(--ink-2); }
.doc-body ul { margin: 1.1rem 0 0; padding-left: 1.15rem; color: var(--ink-2); }
.doc-body li { margin-top: 0.6rem; }
.doc-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- motion ----------
   Scroll reveal: CSS never hides content by default. JS adds `.pre-reveal`
   only just before observing an element, so anything the observer misses
   simply stays visible. */

.pre-reveal { opacity: 0; transform: translateY(22px); }
.is-visible {
  opacity: 1;
  transform: none;
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
}

/* Photographs settle out of a slight push-in as they arrive. */
.approach-figure img,
.band-media img,
.statement-media img {
  transform-origin: center;
  transition: transform 900ms var(--ease), clip-path 900ms var(--ease);
}
.pre-reveal.approach-figure img,
.pre-reveal .approach-figure img,
.approach-figure.pre-reveal img,
.band-media.pre-reveal img,
.statement-media.pre-reveal img {
  transform: scale(1.06);
  clip-path: inset(0 0 12% 0);
}

/* ---------- hero entrance ---------- */

@keyframes rise {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: none; }
}
@keyframes settle {
  from { transform: scale(1.07); }
  to   { transform: scale(1); }
}

.hero-bg { animation: settle 1800ms var(--ease) both; }

.hero-badge,
.hero h1 .hero-line,
.hero-lede,
.hero .btn-row {
  animation: rise 800ms var(--ease) both;
}
.hero-badge              { animation-delay: 120ms; }
.hero h1 .hero-line:nth-child(1) { animation-delay: 220ms; }
.hero h1 .hero-line:nth-child(2) { animation-delay: 320ms; }
.hero-lede               { animation-delay: 440ms; }
.hero .btn-row           { animation-delay: 540ms; }

/* h1 lines animate individually, so they need their own box */
.hero h1 .hero-line { display: block; }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1100px) {
  .split,
  .statement-grid,
  .band,
  .faq-grid,
  .contact-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .cards { grid-template-columns: repeat(2, 1fr); }

  .statement-media,
  .band-media {
    width: 100%;
    max-width: 30rem;
  }

  .hero h1 { max-width: 16ch; }

  .row { grid-template-columns: 3rem 1fr; }
  .row p { grid-column: 2; margin-top: 0.6rem; }
}

@media (max-width: 860px) {
  .nav-links,
  .nav-cta { display: none; }
  .nav-toggle { display: inline-flex; }

  .nav-links.is-open {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem var(--pad) 1.5rem;
    background: var(--ivory);
    border-bottom: 1px solid var(--line);
  }
  .nav-links.is-open li { width: 100%; }
  /* `.site-header` prefix keeps these above the `.is-over-hero` link colours */
  .site-header .nav-links.is-open a {
    display: block;
    padding: 0.95rem 0;
    font-size: 1rem;
    color: var(--ink);
    border-bottom: 1px solid var(--line-soft);
  }
  .site-header .nav-links.is-open a:hover { color: var(--accent); }
  .site-header .nav-links.is-open li:last-child a { border-bottom: 0; }
  .site-header .nav-links.is-open .btn {
    display: flex;
    width: 100%;
    margin-top: 1rem;
    padding: 0.9rem 1.6rem;
    color: var(--ivory);
    background: var(--ink);
    border-color: var(--ink);
  }
}

@media (max-width: 700px) {
  .hero-facts div { flex-basis: 50%; }
  .hero-facts div:nth-child(3) { padding-left: 0; border-left: 0; }
  .hero-facts div:nth-child(n + 3) { margin-top: 1.25rem; }
  .steps { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .hero { min-height: 92svh; padding-top: 7rem; }
  .hero h1 { max-width: none; font-size: clamp(2.1rem, 9.5vw, 2.9rem); }
  /* wrap naturally on small screens instead of forcing the desktop breaks */
  .hero-line { display: inline; white-space: normal; }
  /* keep every label on a single line at 375px */
  .hero-badge { font-size: 0.6rem; letter-spacing: 0.09em; }
  .eyebrow { font-size: 0.63rem; letter-spacing: 0.1em; }

  .btn-row { gap: 0.65rem; }
  .btn-row .btn {
    width: 100%;
    white-space: nowrap;
    font-size: 0.875rem;
    padding-left: 1.1rem;
    padding-right: 1.1rem;
  }

  .row { grid-template-columns: 1fr; gap: 0.65rem; }
  .row p { grid-column: 1; margin-top: 0; }

  .hero-facts { flex-direction: column; gap: 0; }
  .hero-facts div {
    flex: 1 1 auto;
    padding: 0.9rem 0 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .hero-facts div:first-child { padding-top: 0; border-top: 0; }
  .hero .btn-row .btn { width: 100%; }
  .footer-nav { gap: 0.9rem 1.4rem; }
  .footer-sep { display: none; }
  .footer-line span.footer-item { display: block; }
}

/* ---------- motion preferences ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .pre-reveal { opacity: 1; transform: none; }
  .hero-bg,
  .hero-badge,
  .hero h1 .hero-line,
  .hero-lede,
  .hero .btn-row { animation: none; }
  .approach-figure img,
  .band-media img,
  .statement-media img { transform: none; clip-path: none; }
}
