/* ==========================================================================
   Provene — homepage v2
   Direction A: Graphite & Tobacco. Values mirror the Provene design system
   tokens (colors / typography / spacing) and the v2 prototype 1:1.
   ========================================================================== */

:root {
  /* ----- Base palette ----- */
  --graphite:   #0F1419;   /* primary dark ground */
  --slate:      #1A2028;   /* raised card / footer */
  --iron:       #2D3340;   /* dividers / borders on dark */
  --steel:      #68707B;   /* muted text */
  --tobacco:    #8B6B3C;   /* THE accent */
  --brass:      #A8854E;   /* lighter tobacco — buttons, links, eyebrows on dark */
  --bone:       #F7F5F0;   /* light text on dark */
  --paper:      #FAFAF0;   /* primary light ground */

  /* ----- Extended neutrals ----- */
  --ink:        #0F1419;   /* body text on light */
  --ink-soft:   #33383E;
  --slate-2:    #15191F;   /* hero strip / pilot card */
  --mist:       #9AA1AA;   /* muted text on dark */
  --mist-2:     #C7C2B6;   /* warm muted text on dark */
  --hairline-l: #E5E2D8;   /* border on light */
  --hairline-l2:#EFEDE6;   /* faint border on light */
  --field:      #F4F1E8;   /* tinted light panel (guide) */
  --line-soft:  #5A6068;   /* sub text on paper */
  --line-soft-2:#494F57;   /* prose on light */
  --leader:     #3A4150;   /* dotted leader on dark */
  --cadence-edge:#4A3D27;  /* tobacco-tinted card border */
  --hollow:     #C2BEB2;   /* hollow bullet ring */
  --avatar-ring:#C9C3B4;
  --foot-mono:  #A89A7C;

  /* ----- Type ----- */
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, monospace;

  /* ----- Layout ----- */
  --container: 1120px;
  --gutter: 32px;
}

/* ----- Reset ----- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--graphite);
  color: var(--bone);
  font-family: var(--font-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: var(--tobacco); color: var(--bone); }
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
input, textarea, button, select { font-family: inherit; }
[id] { scroll-margin-top: 84px; }

/* ==========================================================================
   Shared atoms
   ========================================================================== */

.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }

/* The rule device — 4×48 tobacco bar */
.rule { display: block; height: 4px; width: 48px; background: var(--tobacco); border-radius: 2px; }
.rule--sm { width: 40px; }
.rule--top {
  position: absolute; top: 0; left: 32px;
  height: 4px; width: 40px; background: var(--tobacco);
  border-radius: 0 0 2px 2px;
}
.rule--inset { left: 34px; }

.dot { width: 4px; height: 4px; border-radius: 50%; background: var(--tobacco); flex-shrink: 0; }

/* Mono labels / eyebrows */
.mono-label {
  font-family: var(--font-mono);
  text-transform: uppercase;
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.eyebrow--brass { color: var(--brass); letter-spacing: .18em; }
.eyebrow--tobacco { color: var(--tobacco); }
.eyebrow--steel { color: var(--steel); }

/* Wordmark */
.wordmark { display: inline-flex; align-items: flex-end; }
.wordmark__name {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -.02em;
  font-size: 21px;
  color: var(--bone);
  line-height: 1;
}
.wordmark__dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--tobacco); margin-left: 2px; margin-bottom: 2px;
}
.wordmark--sm .wordmark__name { font-size: 20px; }

/* Buttons */
.btn {
  display: inline-block;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: opacity .15s, transform .1s, border-color .15s, color .15s, background .15s;
}
.btn--primary { background: var(--brass); color: var(--graphite); }
.btn--primary:hover { opacity: .9; }
.btn--primary:active { transform: translateY(1px); }

.btn--ghost {
  color: var(--mist-2);
  border: 1px solid var(--iron);
  background: transparent;
}
.btn--ghost:hover { border-color: var(--brass); color: var(--bone); background: rgba(168, 133, 78, .10); }
.btn--mono { font-family: var(--font-mono); }

.btn--dark { background: var(--graphite); color: var(--bone); }
.btn--dark:hover { opacity: .9; }

.btn--lg { font-size: 15px; padding: 15px 30px; border-radius: 9px; }

/* ==========================================================================
   Nav
   ========================================================================== */

.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(15, 20, 25, .92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--iron);
}
.nav__inner {
  max-width: var(--container); margin: 0 auto;
  padding: 15px var(--gutter);
  display: flex; align-items: center; justify-content: space-between;
}
.nav__menu { display: flex; align-items: center; gap: 30px; }
.nav__link {
  position: relative;
  font-size: 13.5px; color: var(--mist);
  padding-bottom: 4px;
  transition: color .15s;
}
.nav__link::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px;
  background: var(--tobacco);
  transform: scaleX(0); transform-origin: left;
  transition: transform .2s cubic-bezier(.32, .72, 0, 1);
}
.nav__link:hover { color: var(--bone); }
.nav__link:hover::after { transform: scaleX(1); }
.nav__cta { font-size: 13.5px; padding: 9px 18px; }

/* Hamburger — three "rules" (shown only on mobile, wired up in @media) */
.nav__toggle {
  display: none;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  width: 40px; height: 40px; padding: 0;
  background: none; border: none; cursor: pointer;
}
.nav__toggle-bar {
  display: block; width: 22px; height: 1.5px;
  background: var(--bone); border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.nav.is-open .nav__toggle-bar:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav.is-open .nav__toggle-bar:nth-child(2) { opacity: 0; }
.nav.is-open .nav__toggle-bar:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  border-bottom: 1px solid var(--iron);
  min-height: calc(100svh - 64px);
  display: flex; flex-direction: column;
}
/* Dot grid on a masked layer so it feathers out at the edges
   instead of tiling hard to the frame. */
.hero::before {
  content: "";
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: radial-gradient(rgba(104, 112, 123, .24) 1.1px, transparent 1.4px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(ellipse 85% 75% at 50% 42%, #000 35%, transparent 100%);
          mask-image: radial-gradient(ellipse 85% 75% at 50% 42%, #000 35%, transparent 100%);
}
.hero__inner, .hero__strip { position: relative; z-index: 1; }
.hero__inner {
  flex: 1;
  max-width: 1000px; width: 100%; margin: 0 auto;
  padding: 64px var(--gutter);
  text-align: center;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.hero__eyebrow { margin-top: 22px; }
.hero__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(40px, 5.8vw, 76px);
  line-height: 1.02;
  letter-spacing: -.025em;
  color: var(--bone);
  margin-top: 20px;
  text-wrap: balance;
}
.hero__lede {
  margin-top: 24px; max-width: 56ch;
  color: var(--mist); font-size: 18px; line-height: 1.6;
}
.hero__actions {
  margin-top: 32px;
  display: flex; gap: 14px; align-items: center; flex-wrap: wrap; justify-content: center;
}

.hero__strip { border-top: 1px solid var(--iron); background: var(--slate-2); }
.hero__strip-inner {
  max-width: var(--container); margin: 0 auto;
  padding: 26px var(--gutter);
  display: flex; justify-content: center; align-items: center; gap: 18px; flex-wrap: wrap;
}
.strip__item {
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: .06em; color: var(--mist);
}

/* ==========================================================================
   Section scaffolding
   ========================================================================== */

.section { padding: 88px 0; }
.section--paper { background: var(--paper); border-bottom: 1px solid var(--hairline-l); }
.section--field { background: var(--field); border-bottom: 1px solid var(--hairline-l); }

.section__head { text-align: center; display: flex; flex-direction: column; align-items: center; }
.section__title {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -.015em;
  font-size: clamp(26px, 3.6vw, 40px);
  margin-top: 12px;
  color: var(--ink);
}
.section__title--narrow { max-width: 20ch; }
.section__title--light { color: var(--bone); }
.section__sub { color: var(--line-soft); margin-top: 14px; max-width: 52ch; font-size: 16px; }
.section__sub--dark { color: var(--mist); }

/* ==========================================================================
   Problem → transformation
   ========================================================================== */

.problem__grid {
  margin-top: 46px;
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 28px; align-items: stretch;
}
.compare { border-radius: 16px; padding: 32px; transition: border-color .2s ease; }
.compare--light { background: #fff; border: 1px solid var(--hairline-l); }
.compare--light:hover { border-color: #D8D3C5; }
.compare--dark {
  background: var(--graphite); border: 1px solid var(--iron);
  position: relative; overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(247, 245, 240, .05);   /* 1px top rim-light */
}
.compare--dark:hover { border-color: #3A4150; }
.compare__label { font-size: 10px; letter-spacing: .12em; }
.compare__label--muted { color: var(--mist); }
.compare__label--brass { color: var(--brass); }
.compare__list { list-style: none; margin-top: 18px; display: flex; flex-direction: column; gap: 14px; }
.compare__item { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; }
.compare--light .compare__item { color: var(--line-soft); }
.compare--dark .compare__item { color: var(--mist-2); }
.compare__bullet { width: 7px; height: 7px; border-radius: 50%; margin-top: 6px; flex-shrink: 0; }
.compare__bullet--hollow { border: 1.5px solid var(--hollow); }
.compare__bullet--solid { background: var(--tobacco); }

.problem__arrow { display: flex; align-items: center; justify-content: center; }
.problem__arrow span { font-family: var(--font-display); font-size: 24px; color: var(--tobacco); font-weight: 500; }

/* ==========================================================================
   Guide — letter from Travis
   ========================================================================== */

.guide__inner {
  max-width: 780px; margin: 0 auto; padding: 0 var(--gutter);
  text-align: center; display: flex; flex-direction: column; align-items: center;
}
.guide__title {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -.015em;
  font-size: clamp(24px, 3.4vw, 36px);
  margin-top: 14px;
  line-height: 1.18;
  max-width: 24ch;
  color: var(--ink);
  text-wrap: pretty;
}
.guide__body {
  color: var(--line-soft-2); margin-top: 20px;
  max-width: 60ch; font-size: 17px; line-height: 1.7; text-wrap: pretty;
}
.byline { margin-top: 28px; display: flex; align-items: center; gap: 14px; }
.byline__avatar {
  width: 48px; height: 48px; border-radius: 50%; overflow: hidden;
  border: 1px solid var(--avatar-ring); flex-shrink: 0;
}
.byline__avatar img { width: 100%; height: 100%; object-fit: cover; }
.byline__meta { text-align: left; }
.byline__name { font-family: var(--font-display); font-weight: 600; font-size: 15px; color: var(--ink); }
.byline__role { font-size: 13px; color: var(--steel); }

/* ==========================================================================
   Engagements
   ========================================================================== */

.engagements { border-bottom: 1px solid var(--iron); }

.leaders {
  margin: 48px auto 0; max-width: 760px;
  display: flex; flex-direction: column; gap: 16px;
}
.leader { display: flex; align-items: baseline; gap: 16px; }
.leader__name {
  font-family: var(--font-mono);
  font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--bone);
}
.leader__dots { flex: 1; border-bottom: 1px dotted var(--leader); transform: translateY(-4px); }
.leader__meta {
  font-family: var(--font-mono);
  font-size: 13px; letter-spacing: .04em; color: var(--brass);
}

.engagements__grid {
  margin-top: 44px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: stretch;
}
.plan {
  border-radius: 16px; padding: 34px; display: flex; flex-direction: column;
  box-shadow: inset 0 1px 0 rgba(247, 245, 240, .05);   /* 1px top rim-light */
  transition: transform .2s cubic-bezier(.32, .72, 0, 1),
              box-shadow .2s cubic-bezier(.32, .72, 0, 1),
              border-color .2s ease;
}
.plan:hover {
  transform: translateY(-3px);
  border-color: rgba(168, 133, 78, .45);                 /* brighten toward brass */
  box-shadow: inset 0 1px 0 rgba(247, 245, 240, .06),
              0 18px 42px rgba(0, 0, 0, .38);             /* cool/dark depth on the dark ground */
}
.plan--pilot { background: var(--slate-2); border: 1px solid var(--iron); }
.plan--cadence {
  border: 1px solid var(--cadence-edge); position: relative; overflow: hidden;
  /* the design system's "barely-there tobacco wash behind the cadence cell" */
  background:
    radial-gradient(120% 100% at 100% 0%, rgba(139, 107, 60, .12), transparent 58%),
    var(--graphite);
}
.plan__kicker { font-size: 10px; letter-spacing: .14em; }
.plan__kicker--muted { color: var(--mist); }
.plan__kicker--brass { color: var(--brass); }
.plan__title {
  font-family: var(--font-display);
  font-weight: 600; font-size: 23px; letter-spacing: -.01em;
  margin-top: 12px; color: var(--bone);
}
.plan__lead { font-size: 15px; color: var(--mist-2); margin-top: 14px; line-height: 1.65; }
.plan__text { font-size: 15px; color: var(--mist); margin-top: 14px; line-height: 1.65; }

/* ==========================================================================
   Proof — the monthly report
   ========================================================================== */

.proof__grid {
  display: grid; grid-template-columns: .9fr 1.1fr; gap: 54px; align-items: center;
}
.proof__title {
  font-family: var(--font-display);
  font-weight: 600; letter-spacing: -.015em;
  font-size: clamp(26px, 3.4vw, 38px);
  margin-top: 12px; max-width: 16ch; color: var(--ink);
}
.proof__body { color: var(--line-soft-2); margin-top: 16px; max-width: 46ch; font-size: 16px; line-height: 1.6; }
.proof__cta { margin-top: 26px; font-size: 14.5px; padding: 13px 24px; border-radius: 9px; }

.report {
  background: #fff; border: 1px solid var(--hairline-l); border-radius: 16px;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(247, 245, 240, .06),   /* rim-light on the graphite header */
              0 20px 50px rgba(15, 20, 25, .10);
}
.report__head {
  background: var(--graphite); padding: 24px 28px;
  display: flex; justify-content: space-between; align-items: flex-start;
}
.report__id { display: flex; flex-direction: column; gap: 8px; }
.report__period { font-size: 9px; letter-spacing: .16em; color: var(--tobacco); }
.report__client { font-family: var(--font-display); font-weight: 600; font-size: 20px; color: var(--bone); }
.report__mark { display: inline-flex; align-items: flex-end; }
.report__mark-p { font-family: var(--font-display); font-weight: 600; font-size: 19px; color: var(--bone); line-height: 1; }
.report__mark-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--tobacco); margin-left: 1px; margin-bottom: 2px; }

.report__stats {
  padding: 24px 28px;
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px;
  border-bottom: 1px solid var(--hairline-l2);
}
.stat__num { font-family: var(--font-display); font-weight: 600; font-size: 34px; color: var(--ink); }
.stat__num--accent { color: var(--tobacco); }
.stat__cap {
  font-family: var(--font-mono);
  font-size: 9px; letter-spacing: .08em; text-transform: uppercase; color: var(--steel);
  margin-top: 3px;
}

.report__lines { padding: 22px 28px; display: flex; flex-direction: column; gap: 13px; }
.report__line { display: flex; justify-content: space-between; align-items: center; }
.report__line-name { font-size: 13.5px; color: var(--ink-soft); }
.report__line-val { font-family: var(--font-mono); font-size: 11px; color: var(--tobacco); }
.report__hr { height: 1px; width: 100%; background: var(--hairline-l2); }

.report__foot {
  padding: 15px 28px; background: var(--paper); border-top: 1px solid var(--hairline-l2);
  display: flex; justify-content: space-between; align-items: center;
}
.report__foot-note { font-family: var(--font-mono); font-size: 9px; letter-spacing: .1em; text-transform: uppercase; color: var(--foot-mono); }
.report__foot-url { font-family: var(--font-mono); font-size: 9px; color: var(--foot-mono); }

/* ==========================================================================
   CTA
   ========================================================================== */

.cta { padding: 96px 0; }
.cta__inner {
  max-width: 1000px; margin: 0 auto; padding: 0 var(--gutter);
  text-align: center; display: flex; flex-direction: column; align-items: center;
}
.cta__title {
  font-family: var(--font-display);
  font-weight: 600; letter-spacing: -.02em;
  font-size: clamp(30px, 4.8vw, 56px);
  line-height: 1.04; color: var(--bone);
  margin-top: 24px; max-width: 18ch;
}
.cta__sub { color: var(--mist); margin-top: 18px; max-width: 50ch; font-size: 17px; }
.cta__actions {
  margin-top: 30px;
  display: flex; gap: 14px; align-items: center; flex-wrap: wrap; justify-content: center;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  background: var(--slate);
  color: var(--steel);
  border-top: 1px solid var(--iron);
}
.footer__inner {
  max-width: 1180px; margin: 0 auto; padding: 44px var(--gutter);
  display: flex; justify-content: space-between; align-items: flex-start; gap: 30px; flex-wrap: wrap;
}
.footer__brand { display: flex; flex-direction: column; gap: 12px; }
.footer__tagline { font-family: var(--font-mono); font-size: 11px; letter-spacing: .04em; color: var(--tobacco); }
.footer__cols { display: flex; gap: 48px; flex-wrap: wrap; }
.footer__col { display: flex; flex-direction: column; gap: 10px; }
.footer__col-label { font-size: 10px; letter-spacing: .12em; color: var(--steel); }
.footer__link { font-size: 13px; color: var(--mist); }
.footer__link:hover { color: var(--bone); }

.footer__bar { border-top: 1px solid var(--iron); }
.footer__bar-inner {
  max-width: 1180px; margin: 0 auto; padding: 18px var(--gutter);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.footer__legal { font-size: 11px; color: var(--steel); }

/* ==========================================================================
   Booking modal — Cal.com inline embed inside the branded shell
   ========================================================================== */

/* One scroll context: the overlay scrolls, the dialog grows to fit the
   Cal embed. Prevents the iframe-resize / inner-scroll thrash. */
.modal {
  position: fixed; inset: 0; z-index: 200;
  display: flex; justify-content: center;
  padding: 24px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.modal__scrim {
  position: fixed; inset: 0;
  background: rgba(11, 15, 19, .62);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
}
.modal__dialog {
  position: relative;
  width: 100%; max-width: 940px;
  margin: auto;                         /* centers when short, scrolls when tall */
  background: var(--graphite);
  border-radius: 16px; border: 1px solid var(--iron);
  box-shadow: 0 30px 70px rgba(11, 15, 19, .55);
  overflow: hidden;                     /* clip the embed to the rounded corners */
  animation: pv-rise .2s ease both;
}
@keyframes pv-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.modal__bar {
  background: var(--graphite); padding: 18px 24px;
  display: flex; align-items: center; gap: 14px;
  border-bottom: 1px solid var(--iron);
}
.modal__kicker { font-size: 10px; letter-spacing: .16em; color: var(--brass); }
.modal__x {
  margin-left: auto;
  display: flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 6px;
  background: none; border: none; cursor: pointer;
  color: var(--mist); font-size: 22px; line-height: 1;
  transition: color .15s, background .15s;
}
.modal__x:hover { color: var(--bone); background: rgba(255, 255, 255, .07); }

/* Cal.com renders its iframe into this element */
.modal__cal { position: relative; width: 100%; min-height: 540px; background: var(--graphite); }
.modal__cal::before {
  content: "Loading the calendar\2026";
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--steel);
}
.modal__cal iframe { display: block; width: 100%; }

/* Sample-report modal — the standalone report renders inside an isolated iframe. */
.modal__dialog--report { max-width: 900px; }
.modal__report {
  position: relative; width: 100%;
  height: 78vh; height: 78dvh;
  background: #EAE8DE;                   /* report's own bone-paper backdrop */
}
.modal__report-frame {
  display: block; width: 100%; height: 100%; border: 0;
}

/* ==========================================================================
   Motion — calm scroll reveal + nav elevation. Reveal is gated on `.js`
   (set before paint) so it never flashes, and falls back to fully visible
   with no JS. All of it is switched off under prefers-reduced-motion.
   ========================================================================== */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .7s cubic-bezier(.16, 1, .3, 1),
              transform .7s cubic-bezier(.16, 1, .3, 1);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* The rule device draws in from the left instead of fading/rising —
   the brand's one signature motion moment. */
.js .rule[data-reveal] {
  opacity: 1;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .7s cubic-bezier(.16, 1, .3, 1);
}
.js .rule[data-reveal].is-visible { transform: scaleX(1); }

.nav { transition: box-shadow .25s ease; }
.nav.is-scrolled { box-shadow: 0 12px 30px rgba(11, 15, 19, .35); }

/* Keyboard focus — brass ring, offset so it reads on dark and paper alike. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 2px;
  border-radius: 4px;
  box-shadow: 0 0 0 4px rgba(168, 133, 78, .22);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .nav { transition: none; }
  .js [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
  .js .rule[data-reveal] { transform: none !important; }
  .plan { transition: none; }
  .plan:hover { transform: none; }
  .nav__link::after { transition: none; }
}

/* ==========================================================================
   Responsive — desktop layout is preserved at wide widths; everything
   reflows down to small phones.
   ========================================================================== */

/* Laptop / small desktop: ease the gutters in a touch */
@media (max-width: 1080px) {
  .nav__menu { gap: 24px; }
}

/* Tablet: collapse the proof split */
@media (max-width: 900px) {
  .proof__grid { grid-template-columns: 1fr; gap: 36px; }
  .proof__copy { max-width: 560px; }
}

/* Tablet / large phone: stack the multi-column blocks */
@media (max-width: 760px) {
  .section { padding: 64px 0; }
  .cta { padding: 72px 0; }

  .hero__inner { padding: 56px var(--gutter); }
  .hero__lede { font-size: 17px; }

  .problem__grid { grid-template-columns: 1fr; gap: 18px; }
  .problem__arrow { padding: 2px 0; }
  .problem__arrow span { display: inline-block; transform: rotate(90deg); }

  .engagements__grid { grid-template-columns: 1fr; }
  .leaders { margin-top: 36px; }
}

/* Mobile nav: swap the inline links for a hamburger dropdown */
@media (max-width: 720px) {
  .nav__toggle { display: inline-flex; }
  .nav__menu {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--graphite);
    border-bottom: 1px solid var(--iron);
    box-shadow: 0 24px 40px rgba(11, 15, 19, .35);
    padding: 6px 0 16px;
    display: none;
  }
  .nav.is-open .nav__menu { display: flex; }
  .nav__link {
    display: block;
    font-size: 15px; color: var(--bone);
    padding: 13px var(--gutter);
  }
  .nav__link::after { display: none; }   /* no underline draw on the stacked mobile menu */
  .nav__cta { margin: 10px var(--gutter) 0; text-align: center; }
}

/* Phone */
@media (max-width: 560px) {
  :root { --gutter: 22px; }
  .section { padding: 56px 0; }
  .cta { padding: 60px 0; }

  .footer__inner { flex-direction: column; gap: 28px; }

  .report__head { padding: 20px 22px; }
  .report__stats,
  .report__lines,
  .report__foot { padding-left: 22px; padding-right: 22px; }
  .stat__num { font-size: 30px; }

  /* Booking calendar goes full-screen on phones. The dialog fills the
     visible viewport (dvh tracks the collapsing address bar) as a flex
     column, and the calendar area itself is the scroll container — the Cal
     iframe grows to its content height and scrolls inside it. Relying on the
     fixed overlay to scroll fails on iOS, where a drag over the iframe never
     reaches the overlay. */
  .modal { padding: 0; overflow: hidden; }
  .modal__dialog {
    max-width: 100%; margin: 0;
    height: 100vh; height: 100dvh;
    border-radius: 0; border: none;
    display: flex; flex-direction: column;
  }
  .modal__bar { flex: 0 0 auto; }
  /* The calendar pane is the single scroll context. The Cal iframe stays at
     its natural (full content) height, so it has no internal scroll of its
     own — a touch-drag over it then scrolls this pane instead of being
     swallowed by the cross-origin iframe. */
  .modal__cal {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  /* Report fills the full-screen dialog; the same-origin iframe scrolls itself. */
  .modal__report {
    flex: 1 1 auto;
    min-height: 0;
    height: auto;
  }
}

/* Small phone */
@media (max-width: 440px) {
  :root { --gutter: 18px; }
  .hero__actions,
  .cta__actions { width: 100%; }
  .hero__actions .btn,
  .cta__actions .btn { width: 100%; text-align: center; }
  .report__foot { flex-direction: column; align-items: flex-start; gap: 6px; }
}
