/* =========================================================================
   ManzanaVerde.com — main.css
   Concept: "Tended" — orchard at midday. Leaf-paper light, bark ink,
   matte apple green, warm russet accent. See DESIGN.md.
   ========================================================================= */

/* ---------- Fonts (self-hosted variable woff2) ---------- */
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-italic-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Hanken";
  src: url("../fonts/hanken-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- Design tokens ---------- */
:root {
  --paper:      #EEF1E7;
  --paper-2:    #E5EADB;
  --paper-3:    #DCE3CD;
  --ink:        #23251E;
  --ink-soft:   #4C5142;
  --apple:      #7CAF3F;
  --apple-deep: #5E8C2F;
  --leaf:       #3C5A2B;
  --russet:     #BF4A2A;
  --russet-deep:#A03A1F;
  --wheat:      #E4D6B2;
  --bark:       #6B5334;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Hanken", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  --step--1: clamp(0.83rem, 0.80rem + 0.14vw, 0.90rem);
  --step-0:  clamp(1.00rem, 0.96rem + 0.20vw, 1.10rem);
  --step-1:  clamp(1.20rem, 1.10rem + 0.45vw, 1.40rem);
  --step-2:  clamp(1.45rem, 1.15rem + 1.35vw, 2.10rem);
  --step-3:  clamp(1.90rem, 1.30rem + 2.90vw, 3.30rem);
  --step-4:  clamp(2.60rem, 1.55rem + 4.60vw, 5.10rem);

  --wrap: 74rem;         /* ~1184px */
  --gutter: clamp(1.15rem, 0.6rem + 2.6vw, 2.75rem);
  --space: 1rem;

  --radius: 14px;
  --radius-lg: 22px;
  --rail: 92px;          /* reserved right gutter the apple travels down */

  --shadow-soft: 0 18px 40px -28px rgba(35, 37, 30, 0.55);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html.smoother-active { scroll-behavior: auto; } /* ScrollSmoother owns scrolling */

body {
  margin: 0;
  background-color: var(--paper);
  /* subtle orchard daylight from the top-right; deliberately just one wash */
  background-image:
    radial-gradient(120% 80% at 78% -8%, rgba(124, 175, 63, 0.10), transparent 60%);
  background-attachment: fixed;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.62;
  font-weight: 420;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { max-width: 100%; }
a { color: inherit; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 560;
  line-height: 1.04;
  letter-spacing: -0.012em;
  margin: 0;
  color: var(--ink);
}

p { margin: 0 0 1rem; max-width: 62ch; }
strong { font-weight: 640; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Accessibility helpers ---------- */
.skip-link {
  position: fixed;
  left: 1rem;
  top: -4rem;
  z-index: 200;
  background: var(--ink);
  color: var(--paper);
  padding: 0.7rem 1.1rem;
  border-radius: 0 0 var(--radius) var(--radius);
  transition: top 0.2s var(--ease-out);
}
.skip-link:focus { top: 0; }

:where(a, button, input, select, textarea):focus-visible {
  outline: 3px solid var(--russet);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ==========================================================================
   HEADER / NAV
   ========================================================================== */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background-color 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}
.site-header.is-stuck {
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 rgba(60, 90, 43, 0.14);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.85rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.32rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.brand-mark { display: block; flex: none; }
.brand-name-verde { color: var(--apple-deep); }

.nav { display: flex; align-items: center; }
.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-menu a {
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink);
  position: relative;
  padding-block: 0.2rem;
}
.nav-menu a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--russet);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s var(--ease-out);
}
.nav-menu a:not(.nav-cta):hover::after,
.nav-menu a:not(.nav-cta):focus-visible::after { transform: scaleX(1); }

.nav-cta {
  background: var(--russet-deep);
  color: var(--paper);
  padding: 0.55rem 1.05rem;
  border-radius: 999px;
  font-weight: 600;
  transition: background-color 0.25s var(--ease-out), transform 0.25s var(--ease-out);
}
.nav-cta:hover { background: var(--russet); }

.nav-toggle { display: none; }

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  --btn-bg: var(--russet-deep);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-body);
  font-size: 1.02rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  border-radius: 999px;
  padding: 0.85rem 1.5rem;
  line-height: 1;
  transition: transform 0.25s var(--ease-out), background-color 0.25s var(--ease-out);
}
.btn-primary { background: var(--btn-bg); color: var(--paper); }
.btn-primary:hover { background: var(--russet); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }
.btn-plain {
  background: transparent;
  color: var(--ink);
  padding-inline: 0.4rem;
  border-radius: 4px;
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--leaf) 55%, transparent);
  text-underline-offset: 4px;
}
.btn-plain:hover { text-decoration-color: var(--russet); }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  padding-top: clamp(6.5rem, 5rem + 7vw, 9rem);
  padding-bottom: clamp(3rem, 2rem + 5vw, 6rem);
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: clamp(1rem, 1rem + 2vw, 3rem);
}
.hero-eyebrow {
  font-size: var(--step--1);
  color: var(--ink-soft);
  margin: 0 0 1.1rem;
  letter-spacing: 0.01em;
}
.hero-title {
  font-size: var(--step-4);
  font-weight: 600;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.hero-title .line { display: block; }
.hero-rule {
  height: 4px;
  width: min(360px, 70%);
  margin: 1.4rem 0 1.6rem;
  background: linear-gradient(90deg, var(--leaf), var(--apple));
  border-radius: 3px;
  transform-origin: left center;
}
.hero-lead {
  font-size: var(--step-1);
  color: var(--ink-soft);
  max-width: 40ch;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.4rem;
  margin-top: 1.8rem;
}
.hero-tree-wrap {
  justify-self: center;
  width: 100%;
  max-width: 420px;
}
.tree { width: 100%; height: auto; display: block; }
.hero-scrollcue {
  position: absolute;
  left: 50%;
  bottom: 1.4rem;
  transform: translateX(-50%);
  font-size: var(--step--1);
  color: var(--ink-soft);
  margin: 0;
  opacity: 0.85;
}

/* ==========================================================================
   SECTION SCAFFOLD
   ========================================================================== */
section { position: relative; }
.section-head { max-width: 46rem; margin-bottom: clamp(2rem, 1.2rem + 3vw, 3.6rem); }
.section-title { font-size: var(--step-3); }
.section-intro {
  font-size: var(--step-1);
  color: var(--ink-soft);
  margin-top: 1rem;
}
.services, .how, .work, .about, .contact {
  padding-block: clamp(4rem, 3rem + 6vw, 8rem);
}

/* ---------- Services: shared ---------- */
.svc { padding-block: clamp(2.5rem, 1.5rem + 4vw, 5rem); }
.svc-title { font-size: var(--step-2); margin-bottom: 1rem; }
.svc-list {
  list-style: none;
  margin: 1.4rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}
.svc-list li {
  position: relative;
  padding-left: 1.6rem;
  color: var(--ink-soft);
}
.svc-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.55em;
  width: 9px; height: 9px;
  border-radius: 2px 8px 8px 8px;   /* tiny leaf tick */
  background: var(--apple);
}

/* Treatment A: AI consulting */
.svc-ai-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(1.5rem, 1rem + 3vw, 4rem);
  align-items: center;
}
.svc-ai-scan { display: grid; place-items: center; }
.scan-frame {
  position: relative;
  width: min(320px, 100%);
  aspect-ratio: 4 / 3;
  border: 1.5px solid color-mix(in srgb, var(--leaf) 40%, transparent);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(color-mix(in srgb, var(--apple) 8%, transparent), transparent);
  overflow: hidden;
}
.scan-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(color-mix(in srgb, var(--leaf) 16%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--leaf) 16%, transparent) 1px, transparent 1px);
  background-size: 34px 34px;
  opacity: 0.5;
  mask-image: radial-gradient(circle at center, #000 40%, transparent 75%);
}
.scan-line {
  position: absolute;
  left: 6%; right: 6%;
  top: 12%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--russet), transparent);
  box-shadow: 0 0 14px 2px color-mix(in srgb, var(--russet) 55%, transparent);
  opacity: 0;
}

/* Treatment B: Website logistics — full-bleed wheat band + route */
.svc-web {
  background: var(--wheat);
  background-image: linear-gradient(180deg, color-mix(in srgb, var(--wheat) 60%, var(--paper)), var(--wheat));
}
.svc-web-lead { font-size: var(--step-1); max-width: 52ch; color: var(--ink); }
.route {
  --dot: 15px;
  list-style: none;
  margin: 2.6rem 0 0;
  padding: 0;
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  position: relative;
  counter-reset: none;
}
.route::before {
  content: "";
  position: absolute;
  left: 0; right: 0;
  top: calc(var(--dot) / 2);
  height: 0;
  border-top: 3px dashed color-mix(in srgb, var(--bark) 55%, transparent);
}
.route-stop {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  flex: 1;
  text-align: center;
}
.route-stop .dot {
  width: var(--dot); height: var(--dot);
  border-radius: 50%;
  background: var(--paper);
  border: 3px solid var(--bark);
}
.route-stop-end .dot { background: var(--apple); border-color: var(--apple-deep); }
.route-label {
  font-size: var(--step--1);
  color: var(--ink);
  font-weight: 500;
  max-width: 9ch;
}

/* Treatment C: Social */
.svc-social-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(1.5rem, 1rem + 3vw, 4rem);
  align-items: center;
}
.svc-social-copy { order: 1; }
.svc-social-spark {
  order: 2;
  position: relative;
  min-height: 240px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 30% 30%, color-mix(in srgb, var(--russet) 10%, transparent), transparent 60%),
    color-mix(in srgb, var(--apple) 6%, transparent);
}
.spark-heart {
  position: absolute;
  width: 18px; height: 18px;
  color: var(--russet);
  pointer-events: none;
}

/* ==========================================================================
   HOW WE WORK
   ========================================================================== */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.2rem, 0.8rem + 2vw, 2.4rem);
  counter-reset: step;
  position: relative;
}
.steps::before {
  content: "";
  position: absolute;
  top: 22px; left: 6%; right: 6%;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--apple) 0 14px, transparent 14px 26px);
  opacity: 0.5;
}
.step { position: relative; }
.step-num {
  display: inline-grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--apple-deep);
  color: var(--apple-deep);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}
.step-title { font-size: var(--step-1); margin-bottom: 0.4rem; }
.step p { color: var(--ink-soft); font-size: var(--step-0); }

/* ==========================================================================
   SELECTED WORK
   ========================================================================== */
.cases {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}
.case {
  border: 1.5px solid color-mix(in srgb, var(--leaf) 26%, transparent);
  border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--paper-2) 70%, transparent);
  overflow: hidden;
}
.case-open {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  display: grid;
  grid-template-columns: 1.2fr auto;
  grid-template-areas: "client tag" "teaser teaser";
  gap: 0.4rem 1rem;
  padding: clamp(1.1rem, 0.8rem + 1vw, 1.8rem);
  color: var(--ink);
  transition: background-color 0.25s var(--ease-out);
}
.case-open:hover { background: color-mix(in srgb, var(--apple) 8%, transparent); }
.case-client {
  grid-area: client;
  font-family: var(--font-display);
  font-weight: 580;
  font-size: var(--step-1);
}
.case-tag {
  grid-area: tag;
  align-self: start;
  font-size: var(--step--1);
  color: var(--paper);
  background: var(--leaf);
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  white-space: nowrap;
}
.case-teaser { grid-area: teaser; color: var(--ink-soft); }
.case-detail { overflow: hidden; }
.case-detail[hidden] { display: none; }
.case-detail-inner {
  padding: 0 clamp(1.1rem, 0.8rem + 1vw, 1.8rem) clamp(1.3rem, 1rem + 1vw, 2rem);
  border-top: 1.5px dashed color-mix(in srgb, var(--leaf) 26%, transparent);
}
.case-detail-inner p { color: var(--ink-soft); margin-top: 1rem; }
.case.is-open .case-client { color: var(--apple-deep); }

/* ==========================================================================
   ABOUT
   ========================================================================== */
.about { background: color-mix(in srgb, var(--paper-2) 60%, transparent); }
.about-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(1.5rem, 1rem + 3vw, 4rem);
}
.about-body p { font-size: var(--step-1); }
.about-sig { font-family: var(--font-display); font-style: italic; color: var(--leaf); }

/* ==========================================================================
   CONTACT
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(1.8rem, 1rem + 4vw, 4.5rem);
  align-items: start;
}
.contact { position: relative; }
.contact-intro p { color: var(--ink-soft); font-size: var(--step-1); }
.contact-direct a { color: var(--russet-deep); font-weight: 600; text-underline-offset: 3px; }
.crate { position: absolute; right: 0.5rem; bottom: 1.25rem; width: 132px; margin: 0; }
@media (max-width: 900px) { .crate { position: static; margin-top: 2rem; } }

.contact-form {
  background: var(--paper);
  border: 1.5px solid color-mix(in srgb, var(--leaf) 22%, transparent);
  border-radius: var(--radius-lg);
  padding: clamp(1.3rem, 1rem + 2vw, 2.2rem);
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: 1.1rem;
}
.field { display: grid; gap: 0.4rem; }
.field label { font-weight: 560; font-size: 0.98rem; }
.field input, .field select, .field textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--paper-2);
  border: 1.5px solid color-mix(in srgb, var(--leaf) 28%, transparent);
  border-radius: var(--radius);
  padding: 0.7rem 0.85rem;
  width: 100%;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--apple-deep);
  outline-offset: 1px;
}
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.btn-send { position: relative; }
.send-apple {
  width: 18px; height: 18px;
  border-radius: 60% 60% 55% 55%;
  background: var(--apple);
  box-shadow: inset -2px -2px 0 color-mix(in srgb, var(--apple-deep) 70%, transparent);
  display: inline-block;
}
.form-status { margin: 0; font-weight: 560; min-height: 1.4em; }
.form-status.is-error { color: var(--russet-deep); }
.form-status.is-success { color: var(--apple-deep); }
.form-note { font-size: var(--step--1); color: var(--ink-soft); }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: var(--leaf);
  color: color-mix(in srgb, var(--paper) 92%, var(--leaf));
  padding-block: clamp(2.5rem, 2rem + 3vw, 4rem);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 2rem;
  align-items: start;
}
.footer-brandname { color: var(--paper); font-size: 1.4rem; }
.site-footer .brand-name-verde { color: #C0E28C; }
.footer-brand p { color: color-mix(in srgb, var(--paper) 78%, var(--leaf)); margin-top: 0.6rem; }
.footer-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.footer-nav a, .footer-contact a { color: var(--paper); text-decoration: none; text-underline-offset: 3px; }
.footer-nav a:hover, .footer-contact a:hover { text-decoration: underline; text-decoration-color: var(--apple); }
.footer-legal { color: color-mix(in srgb, var(--paper) 86%, var(--leaf)); font-size: var(--step--1); margin-top: 0.8rem; }

/* ==========================================================================
   THE APPLE (fixed travelling layer)
   ========================================================================== */
#apple-layer {
  position: fixed;
  top: 0; left: 0;
  z-index: 40;
  width: 72px;
  height: auto;
  pointer-events: none;
  /* default (no-JS) resting spot: hanging in the hero tree, upper area */
  transform: translate(0, 0);
  will-change: transform;
}
.apple { width: 100%; height: auto; display: block; overflow: visible; }
/* No-JS / pre-JS fallback position: sit near the hero tree on the right. */
html:not(.js) #apple-layer {
  top: clamp(9rem, 30vh, 20rem);
  left: min(64%, calc(100vw - 9rem));
}
/* Reserve the right rail so the travelling apple never covers copy/tap targets */
body.js-apple-rail #main { padding-right: var(--rail); }

/* ==========================================================================
   MOBILE NAV
   ========================================================================== */
@media (max-width: 800px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 560;
    color: var(--ink);
    padding: 0.3rem 0.2rem;
    z-index: 120;
  }
  .nav-toggle-box {
    position: relative;
    width: 26px; height: 16px;
    display: inline-block;
  }
  .nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after {
    content: "";
    position: absolute;
    left: 0; right: 0;
    height: 2.5px;
    border-radius: 2px;
    background: var(--ink);
    transition: transform 0.3s var(--ease-out), opacity 0.2s var(--ease-out);
  }
  .nav-toggle-bar { top: 50%; transform: translateY(-50%); }
  .nav-toggle-bar::before { top: -7px; }
  .nav-toggle-bar::after { top: 7px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { top: 0; transform: rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { top: 0; transform: rotate(-45deg); }

  .nav-menu {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(78vw, 340px);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 1.6rem;
    padding: 2rem var(--gutter);
    background: var(--paper);
    box-shadow: -20px 0 60px -30px rgba(35,37,30,0.6);
    transform: translateX(100%);
    transition: transform 0.4s var(--ease-out);
    z-index: 110;
  }
  .nav-menu a { font-size: 1.3rem; font-family: var(--font-display); }
  .nav-open .nav-menu { transform: translateX(0); }
  body.nav-open { overflow: hidden; }
  .nav-scrim {
    position: fixed; inset: 0;
    background: rgba(35,37,30,0.34);
    opacity: 0; visibility: hidden;
    transition: opacity 0.3s var(--ease-out), visibility 0.3s;
    z-index: 105;
  }
  .nav-open .nav-scrim { opacity: 1; visibility: visible; }
}

/* ==========================================================================
   RESPONSIVE LAYOUT
   ========================================================================== */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .hero-tree-wrap { grid-row: 1; max-width: 300px; justify-self: end; margin-right: -0.5rem; }
  .hero-copy { grid-row: 2; }
  .svc-ai-grid, .svc-social-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .svc-social-copy { order: 1; }
  .svc-social-spark { order: 2; min-height: 180px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .steps { grid-template-columns: 1fr 1fr; }
  .steps::before { display: none; }
  .route { flex-wrap: wrap; gap: 1.4rem 0.5rem; justify-content: flex-start; }
  .route::before { display: none; }
  .route-stop { flex: 0 0 30%; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.4rem; }
  .hero-scrollcue { position: static; transform: none; margin-top: 1.6rem; }
}

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

/* Rail width shrinks with the viewport (tablet gutter, then slim mobile gutter) */
@media (max-width: 900px) { :root { --rail: 72px; } }
@media (max-width: 600px) { :root { --rail: 34px; } }

/* ==========================================================================
   REDUCED MOTION — apple rests, leaves still, everything visible
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  #apple-layer {
    /* rest quietly in the hero, near the tree canopy */
    top: clamp(9rem, 30vh, 20rem);
    left: min(64%, calc(100vw - 9rem));
    width: 60px;
  }
  .scan-line { opacity: 0; }
}
