/* =========================================================
   Rebound Vending — Stylesheet
   Palette:
     Charcoal 950 #1B1E24 (deepest ground)
     Charcoal 900 #22262E (hero / dark section ground)
     Charcoal 800 #2B303A (raised dark surface)
     Cream    50  #FAF7F1 (light section ground)
     Cream   100  #F1EBDF (light raised surface)
     Ink          #1F2229 (text on light)
     Paper        #F5F2EC (text on dark)
     Muted-dark   #A9AEB8 (secondary text on dark)
     Muted-light  #6B6A63 (secondary text on light)
     Green   600  #1F5E42 (brand accent, from logo)
     Green   500  #2C7A56 (accent hover)
     Green   200  #BFE0CE (accent tint, on dark)
   ========================================================= */

:root {
  --charcoal-950: #1b1e24;
  --charcoal-900: #22262e;
  --charcoal-800: #2b303a;
  --cream-50: #faf7f1;
  --cream-100: #f1ebdf;
  --ink: #1f2229;
  --paper: #f5f2ec;
  --muted-dark: #a9aeb8;
  --muted-light: #6b6a63;
  --green-600: #1f5e42;
  --green-500: #2c7a56;
  --green-200: #bfe0ce;
  --hairline-dark: rgba(245, 242, 236, 0.12);
  --hairline-light: rgba(31, 34, 41, 0.12);

  --font-display: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;

  --container: 1280px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--charcoal-900);
  color: var(--paper);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  margin: 0;
  text-wrap: balance;
  font-weight: 600;
}

p {
  margin: 0;
}

.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: 40px;
  padding-right: 40px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--green-200);
}

.section-light .eyebrow {
  color: var(--green-600);
}

.eyebrow-num {
  font-family: var(--font-display);
  font-size: 12px;
  opacity: 0.6;
}

.eyebrow-rule {
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: 0.5;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 32px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

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

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

.btn-primary:hover {
  background: var(--green-500);
}

.btn-ghost-dark {
  border-color: var(--hairline-dark);
  color: var(--paper);
  background: transparent;
}

.btn-ghost-dark:hover {
  border-color: var(--paper);
}

.btn-nav {
  border-color: rgba(191, 224, 206, 0.6);
  color: var(--paper);
  background: rgba(20, 23, 28, 0.42);
  backdrop-filter: blur(6px);
  font-size: 11.5px;
  letter-spacing: 0.18em;
  padding: 11px 24px;
}

.btn-nav:hover {
  border-color: var(--green-200);
  color: var(--green-200);
  background: rgba(20, 23, 28, 0.6);
}

/* Over the solid scrolled header the pill can drop its own dark fill */
.site-header.scrolled .btn-nav {
  background: transparent;
  backdrop-filter: none;
  border-color: rgba(191, 224, 206, 0.5);
  color: var(--green-200);
}

.site-header.scrolled .btn-nav:hover {
  border-color: var(--green-200);
  background: rgba(191, 224, 206, 0.08);
}

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

.btn-ghost-light:hover {
  border-color: var(--ink);
}

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: transparent;
  border-bottom: 1px solid transparent;
  /* Note: backdrop-filter is deliberately NOT transitioned — animating a
     filter forces expensive recompositing and flickers on mobile. */
  transition: background 0.4s ease, border-color 0.4s ease;
}

/* Solid, blurred bar appears once scrolled past the hero — keeps the nav
   readable over the cream section while staying immersive over the hero. */
.site-header.scrolled {
  background: rgba(24, 27, 32, 0.97);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--hairline-dark);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  height: 80px;
  gap: 40px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
}

.brand-mark {
  display: inline-flex;
  flex-shrink: 0;
}

.brand-mark img {
  display: block;
  width: 38px;
  height: 38px;
}

/* Tall RV monogram in the nav — sized by height, natural (narrow) width */
.brand-mark-rv img {
  width: auto;
  height: 48px;
}

.brand-divider {
  width: 1px;
  height: 34px;
  background: rgba(191, 224, 206, 0.55);
  flex-shrink: 0;
}

.brand-word {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1;
}

.brand-word-main {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.02em;
  color: var(--paper);
}

.brand-word-sub {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--green-200);
  margin-top: 3px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-left: auto;
}

.main-nav a {
  font-family: var(--font-display);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(245, 242, 236, 0.62);
  transition: color 0.15s ease;
  /* Never let a label break across lines as the viewport narrows */
  white-space: nowrap;
}

.main-nav a:hover {
  color: var(--paper);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Extra "Request a Placement" link that lives inside the nav — only shown
   inside the opened mobile menu; hidden on desktop (the header pill covers it). */
.mobile-cta {
  display: none;
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: none;
  border: 1px solid var(--hairline-dark);
  border-radius: 10px;
  color: var(--paper);
  padding: 0;
}

.menu-toggle-bars,
.menu-toggle-bars::before,
.menu-toggle-bars::after {
  display: block;
  width: 18px;
  height: 1.5px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.menu-toggle-bars {
  position: relative;
}

.menu-toggle-bars::before,
.menu-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-toggle-bars::before {
  top: -6px;
}

.menu-toggle-bars::after {
  top: 6px;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-bars {
  background: transparent;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-bars::before {
  transform: translateY(6px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle-bars::after {
  transform: translateY(-6px) rotate(-45deg);
}

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

.hero {
  position: relative;
  overflow: hidden;
  background: var(--charcoal-950);
  /* Override the global `section { padding: 144px 0 }` — the hero clears the
     fixed header via .hero-inner's own padding-top instead. */
  padding: 0;
}

/* Image is an absolutely-positioned overlay pinned to the right edge —
   not a grid column. Text below sits in normal flow at full width,
   so it starts at the same left margin as the nav/logo. */
.hero-media {
  position: absolute;
  inset: 0 0 0 auto;
  right: 0;
  width: 44%;
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--charcoal-800);
  color: var(--muted-dark);
}

/* Gradient lives inside the image's own box. Its solid end uses the EXACT
   hero background color (--charcoal-950) so the seam where it meets the text
   column is invisible, and it stays fully opaque across the left ~quarter so
   the headline never sits over a visible part of the photo, then fades out. */
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    var(--charcoal-950) 0%,
    var(--charcoal-950) 8%,
    rgba(27, 30, 36, 0.4) 50%,
    transparent 100%
  );
}

.hero-inner {
  position: relative;
  z-index: 10;
  min-height: 640px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-top: 118px;
  padding-bottom: 100px;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 28px;
  max-width: 768px;
}

.hero-mark {
  align-self: flex-start;
  height: 94px;
  width: auto;
}

.hero h1 {
  font-size: clamp(40px, 6vw, 70px);
  line-height: 1.02;
  letter-spacing: -0.025em;
}

.hero h1 em {
  font-style: normal;
  color: var(--green-200);
}

.hero-sub {
  font-size: 18px;
  line-height: 1.6;
  color: var(--muted-dark);
  max-width: 46ch;
}

.hero-cta-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.hero-status {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--muted-dark);
  margin-top: 12px;
}

.status-dot {
  position: relative;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green-500);
  flex-shrink: 0;
}

/* Soft outward pulse, signalling "actively placing machines" */
.status-dot::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--green-500);
  animation: status-ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes status-ping {
  0%   { transform: scale(1);   opacity: 0.6; }
  75%, 100% { transform: scale(2.6); opacity: 0; }
}

.hero-media-tag {
  position: absolute;
  bottom: 32px;
  right: 32px;
  z-index: 3;
  background: rgba(27, 30, 36, 0.72);
  border: 1px solid var(--hairline-dark);
  color: var(--paper);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 8px 14px;
  border-radius: 999px;
  backdrop-filter: blur(6px);
}

/* ---------- Section shells ---------- */

section {
  padding: 144px 0;
}

.section-dark {
  background: var(--charcoal-800);
}

.section-darker {
  background: var(--charcoal-950);
}

.section-light {
  background: var(--cream-50);
  color: var(--ink);
}

.section-head {
  max-width: 720px;
  margin-bottom: 64px;
}

.section-head h2 {
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.06;
  letter-spacing: -0.025em;
  margin-top: 16px;
}

/* ---------- What it is ---------- */

.feature-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 96px;
  margin-top: 64px;
  /* Centre the media card against the taller feature list. `center` (not
     stretch) lets .feature-media keep its own 16:9 ratio without deriving
     its width from the row height. */
  align-items: center;
}

.feature-media {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--hairline-dark);
  /* Match the clip's framing exactly — no letterboxing, nothing cropped. */
  aspect-ratio: 16 / 9;
  background: var(--charcoal-800);
}

.feature-media img,
.feature-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  color: var(--muted-dark);
}

/* Mobile browsers flicker when a <video> is clipped by a rounded, overflow
   hidden parent. Rounding the video itself and giving it its own compositing
   layer stops the per-frame re-clip. */
.feature-media video {
  border-radius: inherit;
  transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}




.feature-media-tag {
  position: absolute;
  bottom: 20px;
  left: 20px;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--paper);
  background: rgba(27, 30, 36, 0.7);
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--hairline-dark);
}

.feature-list {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.feature-row {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 24px;
  padding: 32px 0;
  border-top: 1px solid var(--hairline-dark);
}

.feature-row:last-child {
  border-bottom: 1px solid var(--hairline-dark);
}

.feature-num {
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--muted-dark);
  opacity: 0.55;
}

.feature-row h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

.feature-row p {
  color: var(--muted-dark);
  max-width: 60ch;
}

/* ---------- Positioning ---------- */

.positioning-head h2 {
  font-size: clamp(34px, 4.6vw, 60px);
  line-height: 1.04;
  letter-spacing: -0.025em;
}

.positioning-head .line-2 {
  color: var(--green-200);
}

.positioning-grid {
  margin-top: 80px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px 56px;
}

.positioning-item {
  padding-left: 20px;
  border-left: 2px solid var(--green-500);
}

.positioning-item h3 {
  font-size: 19px;
  margin-bottom: 10px;
}

.positioning-item p {
  color: var(--muted-dark);
  max-width: 42ch;
}

/* ---------- How it works + About ---------- */

.split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
}

.steps-list {
  list-style: none;
  margin: 56px 0 0;
  padding: 0;
  display: grid;
  gap: 0;
}

.step-item {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 20px;
  padding: 28px 0;
  border-top: 1px solid var(--hairline-light);
}

.step-item:last-child {
  border-bottom: 1px solid var(--hairline-light);
}

.step-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--cream-50);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 14px;
}

.step-item h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.step-item p {
  color: var(--muted-light);
}

.split-grid .btn {
  margin-top: 44px;
}

.about-block {
  padding-top: 4px;
}

.founder-card {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 56px 0 28px;
}

.founder-photo {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--cream-100);
  flex-shrink: 0;
  box-shadow: 0 0 0 1px var(--hairline-light), 0 8px 20px rgba(31, 34, 41, 0.12);
}

.founder-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.founder-role {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-light);
  margin-bottom: 4px;
}

.founder-name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
}

.about-copy {
  color: var(--muted-light);
  max-width: 50ch;
  margin-bottom: 40px;
}

.coverage-map {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 24px;
  background: var(--cream-100);
  border-radius: 16px;
}

.coverage-map img {
  width: 180px;
  height: auto;
}

.coverage-map-label {
  font-size: 13px;
  color: var(--muted-light);
}

.coverage-map-label strong {
  display: block;
  color: var(--ink);
  font-size: 15px;
  margin-bottom: 4px;
}

/* ---------- FAQ ---------- */

.faq-list {
  border-top: 1px solid var(--hairline-dark);
}

.faq-item {
  border-bottom: 1px solid var(--hairline-dark);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: none;
  border: none;
  color: var(--paper);
  padding: 26px 0;
  text-align: left;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
}

.faq-plus {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--hairline-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.faq-plus::before,
.faq-plus::after {
  content: "";
  position: absolute;
  background: var(--paper);
}

.faq-plus::before {
  width: 12px;
  height: 1.5px;
}

.faq-plus::after {
  width: 1.5px;
  height: 12px;
  transition: transform 0.2s ease;
}

.faq-item[aria-expanded="true"] .faq-plus {
  border-color: var(--green-500);
}

.faq-item[aria-expanded="true"] .faq-plus::after {
  transform: scaleY(0);
}

.faq-answer {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.25s ease;
}

.faq-answer-inner {
  padding-bottom: 26px;
  color: var(--muted-dark);
  max-width: 68ch;
}

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

/* The social band closes out the contact section, so the section's own
   bottom padding can be tighter — keeps the gap to the footer from gaping. */
#contact {
  padding-bottom: 56px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 72px;
}

.contact-intro {
  color: var(--muted-dark);
  max-width: 44ch;
  margin: 18px 0 44px;
}

.contact-detail {
  margin-bottom: 26px;
}

.contact-detail-label {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-dark);
  margin-bottom: 6px;
}

.contact-detail-value {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
}

.contact-form {
  background: var(--charcoal-800);
  border: 1px solid var(--hairline-dark);
  border-radius: 20px;
  padding: 40px;
}

.form-row {
  display: grid;
  gap: 8px;
  margin-bottom: 22px;
}

.form-row.two-col {
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.form-row.two-col > div {
  display: grid;
  gap: 8px;
}

.form-label {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-dark);
}

.form-control {
  width: 100%;
  background: var(--charcoal-900);
  border: 1px solid var(--hairline-dark);
  border-radius: 10px;
  padding: 13px 16px;
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 14px;
}

.form-control::placeholder {
  color: var(--muted-dark);
  opacity: 0.7;
}

.form-control:focus {
  outline: none;
  border-color: var(--green-500);
}

textarea.form-control {
  resize: vertical;
  min-height: 110px;
}

.form-submit {
  width: 100%;
  margin-top: 4px;
}

.form-note {
  text-align: center;
  font-size: 12px;
  color: var(--muted-dark);
  margin-top: 14px;
}

.cf-turnstile {
  margin: 4px 0 18px;
  min-height: 65px;
}

.form-error {
  margin-top: 16px;
  padding: 12px 16px;
  border: 1px solid rgba(220, 120, 120, 0.4);
  border-radius: 10px;
  background: rgba(220, 120, 120, 0.08);
  color: #e3a3a3;
  font-size: 13px;
  text-align: center;
}

.form-success {
  background: var(--charcoal-800);
  border: 1px solid var(--hairline-dark);
  border-radius: 20px;
  padding: 48px 40px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* The `hidden` attribute must win over the flex display above,
   otherwise the success panel shows before the form is submitted. */
.form-success[hidden] {
  display: none;
}

.form-success-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--green-600);
  color: var(--paper);
  font-size: 26px;
  line-height: 1;
}

.form-success h3 {
  font-size: 22px;
  color: var(--paper);
  margin-bottom: 10px;
}

.form-success p {
  color: var(--muted-dark);
  max-width: 42ch;
  margin: 0 auto;
}

/* ---------- Social ---------- */

.social-band {
  margin-top: 96px;
  border-top: 1px solid var(--hairline-dark);
  padding: 56px 0 8px;
  text-align: center;
}

.social-band .eyebrow {
  justify-content: center;
  margin-bottom: 24px;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 36px;
}

.social-links a {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-dark);
  transition: color 0.15s ease;
}

.social-links a:hover {
  color: var(--paper);
}

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

.site-footer {
  background: var(--charcoal-950);
  border-top: 1px solid var(--hairline-dark);
  padding: 64px 0 60px;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 32px;
  padding-bottom: 40px;
}

.footer-brand {
  gap: 12px;
}

.footer-brand .brand-mark img {
  width: auto;
  height: 44px;
}

.footer-brand .brand-word-main {
  font-size: 18px;
}

.footer-tagline {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-dark);
  margin-top: 4px;
}

.footer-nav {
  display: flex;
  gap: 28px;
}

.footer-nav a {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-dark);
}

.footer-nav a:hover {
  color: var(--paper);
}

.footer-contact {
  text-align: right;
  font-size: 14px;
  color: var(--muted-dark);
  display: grid;
  gap: 4px;
}

.footer-bottom {
  border-top: 1px solid var(--hairline-dark);
  padding: 24px 0 0;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: var(--muted-dark);
}

/* ---------- Scroll reveal ---------- */

/* Blocks start slightly low + transparent, then settle as they scroll into
   view. Gated behind `.js-reveal`, which an inline <head> script adds — so if
   JS is disabled or fails, none of this applies and content is simply visible.
   `is-visible` is added per-element by an IntersectionObserver in script.js. */
.js-reveal :is(
  .section-head,
  .feature-row,
  .positioning-head,
  .positioning-item,
  .how-block,
  .about-block,
  .faq-item,
  .contact-info,
  .contact-form
) {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Doubled class deliberately raises specificity above the :is() hide rule
   above, so a revealed element always wins the cascade. */
.js-reveal .is-visible.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .js-reveal :is(
    .section-head,
    .feature-row,
    .positioning-head,
    .positioning-item,
    .how-block,
    .about-block,
    .faq-item,
    .contact-info,
    .contact-form
  ) {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .status-dot::before {
    animation: none;
  }
}

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

@media (max-width: 960px) {
  .main-nav {
    display: none;
  }

  .main-nav.nav-open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    /* Reset the desktop row's centring — stacked items read left-aligned */
    align-items: stretch;
    gap: 0;
    background: var(--charcoal-950);
    border-top: 1px solid var(--hairline-dark);
    padding: 12px 24px 32px;
  }

  /* No dividers between items — the panel's single top border is the only rule. */
  .main-nav.nav-open a {
    padding: 16px 0;
    font-size: 14px;
  }

  /* Mobile CTA surfaces inside the opened menu as a full-width button */
  .main-nav.nav-open .mobile-cta {
    display: block;
    margin-top: 16px;
    padding: 15px 0;
    border: 1px solid var(--green-500);
    border-radius: 999px;
    color: var(--green-200);
    text-align: center;
    font-size: 14px;
    letter-spacing: 0.18em;
  }

  /* Header pill hides on mobile; the CTA lives in the menu instead */
  .header-actions .btn-nav {
    display: none;
  }

  /* Nav is hidden on mobile, so push the menu toggle to the right edge here */
  .header-actions {
    margin-left: auto;
  }

  /* Mobile: use a fully opaque bar and NO backdrop blur. Blurring live
     content under a fixed header causes visible shimmer/flicker while
     scrolling on mobile browsers. */
  .site-header.scrolled {
    background: var(--charcoal-950);
    backdrop-filter: none;
  }

  /* Keep the header solid (not transparent) whenever the menu is open,
     so the dropdown reads as one connected panel over the hero. */
  .site-header.menu-open {
    background: var(--charcoal-950);
    backdrop-filter: none;
    border-bottom-color: transparent;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .wrap {
    padding-left: 24px;
    padding-right: 24px;
  }

  .hero {
    min-height: 0;
  }

  /* Mobile: the side panel becomes a rounded photo card BELOW the copy
     (mirrors the reference site's separate mobile image block). */
  .hero {
    display: flex;
    flex-direction: column;
  }

  .hero-inner {
    order: 1;
  }

  .hero-media {
    order: 2;
    position: static;
    width: auto;
    height: 380px;
    margin: 0 20px 64px;
    border: 1px solid var(--hairline-dark);
    border-radius: 16px;
    overflow: hidden;
  }

  /* Bottom-up scrim instead of the desktop left-edge fade */
  .hero-media::after {
    background: linear-gradient(
      to top,
      rgba(27, 30, 36, 0.72) 0%,
      rgba(27, 30, 36, 0.12) 45%,
      transparent 100%
    );
  }

  /* Extra top padding clears the fixed header now that the hero starts at y:0 */
  .hero-inner {
    min-height: 0;
    padding-top: 128px;
    padding-bottom: 72px;
  }

  .split-grid,
  .positioning-grid,
  .contact-grid,
  .feature-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .feature-media {
    aspect-ratio: 16 / 9;
  }

  .form-row.two-col {
    grid-template-columns: 1fr;
  }

  /* 16px inputs stop iOS Safari from auto-zooming on focus */
  .form-control {
    font-size: 16px;
  }

  .contact-form {
    padding: 28px 20px;
  }

  /* Stacked on mobile: centre the state outline over its caption so the
     card reads as one balanced block instead of a left-hugging image. */
  .coverage-map {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 18px;
  }

  .coverage-map img {
    width: 220px;
  }

  .footer-contact {
    text-align: left;
  }

  /* Comfortable thumb-sized hit areas for the small links on mobile */
  .footer-nav {
    flex-wrap: wrap;
    gap: 4px 24px;
  }

  .footer-nav a,
  .social-links a,
  .footer-contact a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }

  .contact-detail-value {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
  }

  section {
    padding: 80px 0;
  }
}

@media (max-width: 600px) {
  .wrap {
    padding-left: 20px;
    padding-right: 20px;
  }

  .hero-cta-row {
    flex-direction: column;
    align-items: stretch;
  }

  .footer-top {
    flex-direction: column;
    align-items: flex-start;
  }
}
