/* ==========================================================================
   Alder & Stone Landscape Co. — v2
   Atmospheric, motion-rich: cinematic hero, parallax breakers, scroll
   reveals, marquee. Display: Fraunces · Text: Archivo
   ========================================================================== */

:root {
  --paper: #f3f0e7;
  --white: #ffffff;
  --ink: #131c15;
  --body: #3d4a3f;
  --forest: #14271b;      /* dark band background */
  --forest-2: #1b3323;
  --pine: #2d5c3a;        /* primary accent */
  --pine-deep: #214429;
  --sprout: #b9d36f;      /* bright leaf accent — used on dark */
  --stone: #d5cfbd;       /* hairline rules on light */
  --caption: #6e6c5c;
  --cream-70: rgba(243, 240, 231, 0.72);

  --font-display: "Fraunces", Georgia, serif;
  --font-text: "Archivo", "Helvetica Neue", Arial, sans-serif;

  --wrap: 1200px;
  --ease-out: cubic-bezier(0.19, 1, 0.22, 1);
}

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

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-text);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--body);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.nav-open { overflow: hidden; }

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--ink);
  line-height: 1.08;
  margin: 0 0 0.5em;
  letter-spacing: -0.015em;
}

p { margin: 0 0 1em; }

a { color: var(--pine); }

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

.wrap {
  width: min(var(--wrap), 92vw);
  margin-inline: auto;
}

/* Eyebrow label */
.eyebrow {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--pine);
  margin-bottom: 1rem;
}

/* ---------- Scroll reveals ----------
   Hidden states apply only under html.js (set by main.js), so content
   stays visible if scripts fail to run. */

[data-reveal] {
  transition:
    opacity 0.9s var(--ease-out),
    transform 0.9s var(--ease-out),
    clip-path 1.1s var(--ease-out);
}
.js [data-reveal] {
  opacity: 0;
  transform: translateY(34px);
}
.js [data-reveal="left"]  { transform: translateX(-44px); }
.js [data-reveal="right"] { transform: translateX(44px); }
.js [data-reveal="zoom"]  { transform: scale(0.94); }
.js [data-reveal="wipe"] {
  transform: none;
  clip-path: inset(0 100% 0 0);
}
.js [data-reveal].in-view {
  opacity: 1;
  transform: none;
  clip-path: inset(0 0 0 0);
}
[data-delay="1"] { transition-delay: 0.12s; }
[data-delay="2"] { transition-delay: 0.24s; }
[data-delay="3"] { transition-delay: 0.36s; }
[data-delay="4"] { transition-delay: 0.48s; }
[data-delay="5"] { transition-delay: 0.6s; }

/* ---------- Buttons — sweep fill on hover ---------- */

.btn {
  position: relative;
  display: inline-block;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-decoration: none;
  padding: 0.95rem 1.9rem;
  border: 1px solid transparent;
  border-radius: 2px;
  overflow: hidden;
  z-index: 0;
  transition: color 0.25s ease, border-color 0.25s ease;
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease-out);
}
.btn:hover::before { transform: scaleX(1); }

.btn--solid { background: var(--pine); color: #fff; }
.btn--solid::before { background: var(--forest); }

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

.btn--paper { background: var(--paper); color: var(--ink); }
.btn--paper::before { background: var(--sprout); }
.btn--paper:hover { color: var(--forest); }

/* Text link with sliding arrow */
.more {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--pine);
  text-decoration: none;
}
.more::after {
  content: "\2192";
  transition: transform 0.3s var(--ease-out);
}
.more:hover::after { transform: translateX(6px); }
.more span {
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1px;
  background-position: left bottom;
  background-repeat: no-repeat;
  transition: background-size 0.35s var(--ease-out);
  padding-bottom: 3px;
}
.more:hover span { background-size: 100% 1px; }

/* ==========================================================================
   Header — transparent over the hero, forest-green once scrolled
   ========================================================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: transparent;
  transition: background-color 0.35s ease, box-shadow 0.35s ease;
}
.site-header.scrolled,
body.nav-open .site-header {
  background: var(--forest);
  box-shadow: 0 6px 24px rgba(10, 18, 12, 0.25);
}
/* Inner pages get the solid header immediately */
.site-header--solid { background: var(--forest); }

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

.brand {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  letter-spacing: -0.01em;
  white-space: nowrap;
  line-height: 1.1;
}
.brand em { font-style: italic; font-weight: 400; color: var(--sprout); }
.brand small {
  display: block;
  font-family: var(--font-text);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 2px;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 0.6rem;
  cursor: pointer;
  color: #fff;
}
.nav-toggle svg { width: 28px; height: 28px; }

.nav { display: flex; align-items: center; gap: 2rem; }

.nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  padding: 0.4rem 0;
  background-image: linear-gradient(var(--sprout), var(--sprout));
  background-size: 0% 2px;
  background-position: left calc(100% - 2px);
  background-repeat: no-repeat;
  transition: background-size 0.3s var(--ease-out), color 0.2s ease;
}
.nav a:hover { color: #fff; background-size: 100% 2px; }
.nav a[aria-current="page"] { background-size: 100% 2px; color: #fff; }

.nav a.btn {
  background-image: none;
  padding: 0.75rem 1.5rem;
}
.nav a.btn--sprout {
  background-color: var(--sprout);
  color: var(--forest);
  font-weight: 600;
}
.nav a.btn--sprout::before { background: #fff; }
.nav a.btn--sprout:hover { color: var(--forest); }

/* Dropdown */
.has-sub { position: relative; }
.has-sub > a::after {
  content: "";
  display: inline-block;
  margin-left: 0.5em;
  width: 7px;
  height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-3px);
}
.sub-menu {
  position: absolute;
  top: 100%;
  left: -1.2rem;
  min-width: 210px;
  background: var(--forest);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0.5rem 0;
  display: none;
  box-shadow: 0 18px 40px rgba(10, 18, 12, 0.4);
}
.has-sub:hover .sub-menu,
.has-sub:focus-within .sub-menu { display: block; }
.sub-menu a {
  display: block;
  padding: 0.6rem 1.2rem;
  background-image: none;
}
.sub-menu a:hover { background-color: var(--forest-2); }

/* ==========================================================================
   Hero — full screen, slow cinematic zoom
   ========================================================================== */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url("images/hero.webp") center 30% / cover no-repeat;
  animation: kenburns 16s var(--ease-out) forwards;
  will-change: transform;
}

@keyframes kenburns {
  from { transform: scale(1.14); }
  to   { transform: scale(1); }
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to top, rgba(10, 18, 12, 0.85) 0%, rgba(10, 18, 12, 0.35) 45%, rgba(10, 18, 12, 0.25) 100%);
}

.hero__inner {
  position: relative;
  width: min(var(--wrap), 92vw);
  margin-inline: auto;
  padding: 9rem 0 5.5rem;
}

.hero .eyebrow { color: var(--sprout); }

.hero h1 {
  color: #fff;
  font-size: clamp(2.8rem, 7.2vw, 5.6rem);
  max-width: 14ch;
  margin-bottom: 0.35em;
}
.hero h1 em { font-style: italic; font-weight: 400; color: var(--sprout); }

.hero__sub {
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  max-width: 46ch;
  margin-bottom: 2rem;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero .btn--ghost { color: #fff; border-color: rgba(255, 255, 255, 0.7); }
.hero .btn--ghost::before { background: #fff; }
.hero .btn--ghost:hover { color: var(--ink); }

/* Scroll cue */
.hero__cue {
  position: absolute;
  right: 4vw;
  bottom: 2.2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  writing-mode: vertical-rl;
}
.hero__cue::after {
  content: "";
  width: 1px;
  height: 52px;
  background: rgba(255, 255, 255, 0.6);
  animation: cue-drop 2.2s ease-in-out infinite;
  transform-origin: top;
}
@keyframes cue-drop {
  0%   { transform: scaleY(0); }
  45%  { transform: scaleY(1); }
  100% { transform: scaleY(1); opacity: 0; }
}

/* ==========================================================================
   Marquee — services ticker under the hero
   ========================================================================== */

.marquee {
  background: var(--forest);
  color: var(--cream-70);
  overflow: hidden;
  padding: 1.1rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  white-space: nowrap;
  display: flex;
}

.marquee__track {
  display: inline-flex;
  align-items: baseline;
  gap: 2.6rem;
  padding-right: 2.6rem;
  animation: marquee 32s linear infinite;
  flex-shrink: 0;
  min-width: 100%;
}
.marquee:hover .marquee__track { animation-play-state: paused; }

.marquee__track span {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
}
.marquee__track b {
  font-weight: 400;
  color: var(--sprout);
  font-size: 0.8rem;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-100%); }
}

/* ==========================================================================
   Intro statement
   ========================================================================== */

.intro { padding: 6.5rem 0 5.5rem; }

.intro__grid { display: grid; gap: 3rem; }

.intro h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.7rem);
  font-weight: 450;
  max-width: 25ch;
}
.intro h2 em { font-style: italic; color: var(--pine); }

.intro__facts {
  display: grid;
  gap: 1.4rem;
  align-content: start;
  margin: 0;
}
.intro__facts > div {
  border-top: 1px solid var(--stone);
  padding-top: 0.9rem;
}
.intro__facts dt {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--caption);
  margin: 0 0 0.2rem;
}
.intro__facts dd { margin: 0; font-weight: 500; color: var(--ink); }

/* ==========================================================================
   Ledger heading — rule draws itself in on reveal
   ========================================================================== */

.ledger {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  position: relative;
  padding-top: 1.2rem;
  margin-bottom: 3rem;
}
.ledger::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 2px;
  width: 100%;
  background: var(--ink);
  transform-origin: left;
  transition: transform 1.2s var(--ease-out) 0.1s;
}
.js .ledger:not(.in-view)::before { transform: scaleX(0); }

.ledger .eyebrow { margin: 0; color: var(--ink); }
.ledger__no {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--caption);
}

/* Dark sections flip the ledger */
.on-dark .ledger::before { background: var(--sprout); }
.on-dark .ledger .eyebrow { color: var(--sprout); }
.on-dark .ledger__no { color: var(--cream-70); }

/* ==========================================================================
   Service rows — oversized numerals, framed images that wipe in
   ========================================================================== */

.services { padding: 1rem 0 4rem; }

.service-row {
  display: grid;
  gap: 2rem;
  align-items: center;
  padding: 3rem 0;
}
.service-row + .service-row { border-top: 1px solid var(--stone); }

.service-row__media {
  overflow: hidden;
  border-radius: 2px;
}
.service-row__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out);
}
.service-row:hover .service-row__media img { transform: scale(1.05); }

.service-row__no {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(3rem, 6vw, 4.6rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px var(--pine);
  margin-bottom: 0.4rem;
}

.service-row__kicker {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--caption);
  margin-bottom: 0.5rem;
}

.service-row h3 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
.service-row p { max-width: 52ch; }

/* ==========================================================================
   Breaker — full-bleed parallax photograph with one line of type
   ========================================================================== */

.breaker {
  position: relative;
  min-height: 62vh;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  isolation: isolate;
}
.breaker::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(12, 22, 15, 0.55);
}
.breaker--grass  { background-image: url("images/grass-bg.jpg"); }
.breaker--water  { background-image: url("images/irrigation-bg.jpg"); }
.breaker--paving { background-image: url("images/paving-bg.jpg"); }

.breaker p {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 450;
  font-size: clamp(1.7rem, 4.2vw, 3.2rem);
  line-height: 1.25;
  color: #fff;
  max-width: 24ch;
  margin: 0;
}
.breaker small {
  display: block;
  font-family: var(--font-text);
  font-style: normal;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sprout);
  margin-top: 1.4rem;
}

/* ==========================================================================
   Recent work — dark band, hover-zoom cards with sliding captions
   ========================================================================== */

.work {
  background: var(--forest);
  padding: 6rem 0;
}

.work__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.4rem;
}

.work figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 2px;
}
.work img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: transform 0.7s var(--ease-out);
}
.work figure:hover img { transform: scale(1.07); }

.work figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 2.2rem 1.1rem 1rem;
  background: linear-gradient(to top, rgba(10, 18, 12, 0.85), transparent);
  color: #fff;
  font-size: 0.92rem;
  font-weight: 600;
  transform: translateY(8px);
  opacity: 0.92;
  transition: transform 0.45s var(--ease-out), opacity 0.45s ease;
}
.work figure:hover figcaption { transform: translateY(0); opacity: 1; }
.work figcaption span {
  display: block;
  font-weight: 400;
  color: var(--sprout);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
}

/* ==========================================================================
   Quote band
   ========================================================================== */

.quote {
  position: relative;
  background: var(--paper);
  padding: 7rem 0 6rem;
  overflow: hidden;
}
.quote::before {
  content: "\201C";
  position: absolute;
  top: -0.12em;
  left: 2vw;
  font-family: var(--font-display);
  font-size: clamp(14rem, 30vw, 24rem);
  line-height: 1;
  color: var(--pine);
  opacity: 0.1;
  pointer-events: none;
}

.quote blockquote { margin: 0; max-width: 36ch; margin-inline: auto; }

.quote p {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 450;
  font-size: clamp(1.6rem, 3.4vw, 2.5rem);
  line-height: 1.3;
  color: var(--ink);
  margin-bottom: 1.4rem;
}

.quote cite {
  font-family: var(--font-text);
  font-style: normal;
  font-size: 0.9rem;
  color: var(--caption);
}

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

.cta {
  background: var(--forest);
  color: var(--cream-70);
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
}
.cta::after {
  content: "";
  position: absolute;
  right: -140px;
  bottom: -140px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  border: 1px solid rgba(185, 211, 111, 0.25);
  pointer-events: none;
}
.cta::before {
  content: "";
  position: absolute;
  right: -60px;
  bottom: -220px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  border: 1px solid rgba(185, 211, 111, 0.15);
  pointer-events: none;
}

.cta__inner { display: grid; gap: 1.8rem; align-items: center; }

.cta h2 {
  color: #fff;
  font-size: clamp(2rem, 4.2vw, 3.2rem);
  margin: 0;
  line-height: 1.25;
}
.cta h2 em { font-style: italic; font-weight: 400; color: var(--sprout); }
.cta p { margin: 0.7rem 0 0; max-width: 46ch; }

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

.site-footer {
  background: #0d1810;
  color: rgba(243, 240, 231, 0.66);
  padding: 4rem 0 2rem;
  font-size: 0.92rem;
}

.footer-grid { display: grid; gap: 2.4rem; padding-bottom: 2.8rem; }

.footer-col h3 {
  font-family: var(--font-text);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(243, 240, 231, 0.45);
  margin-bottom: 1rem;
}

.footer-col a {
  display: block;
  color: rgba(243, 240, 231, 0.85);
  text-decoration: none;
  padding: 0.2rem 0;
  transition: color 0.2s ease, transform 0.25s var(--ease-out);
}
.footer-col a:hover { color: var(--sprout); transform: translateX(4px); }

.footer-col p { margin: 0 0 0.3rem; }

.footer-base {
  border-top: 1px solid rgba(243, 240, 231, 0.12);
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.legal-links { display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; }
.legal-links a {
  color: rgba(243, 240, 231, 0.65);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.2s ease;
}
.legal-links a:hover { color: var(--sprout); }

.social { display: flex; gap: 1.1rem; }
.social a { color: rgba(243, 240, 231, 0.65); transition: color 0.2s ease, transform 0.25s ease; }
.social a:hover { color: var(--sprout); transform: translateY(-3px); }
.social svg { width: 20px; height: 20px; }

/* ==========================================================================
   Inner pages
   ========================================================================== */

.page-head {
  position: relative;
  background: var(--forest);
  color: var(--cream-70);
  padding: 11rem 0 5rem;
  overflow: hidden;
}
.page-head::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: rgba(185, 211, 111, 0.3);
}

.page-head .eyebrow { color: var(--sprout); }

.page-head h1 {
  color: #fff;
  font-size: clamp(2.4rem, 5.4vw, 4rem);
  max-width: 18ch;
  line-height: 1.25;
}
.page-head h1 em { font-style: italic; font-weight: 400; color: var(--sprout); }

.page-head .lede { font-size: 1.15rem; max-width: 56ch; margin: 0; }

.page-body { padding: 3.5rem 0 5rem; }

/* Legal / policy content pages */
.legal-content { max-width: 760px; }
.legal-content h2 { font-size: 1.5rem; margin-top: 2.6rem; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content h3 { font-size: 1.15rem; margin-top: 1.6rem; }
.legal-content p, .legal-content li { max-width: 68ch; }
.legal-content ul, .legal-content ol { padding-left: 1.2rem; margin: 0 0 1em; }
.legal-content li { margin-bottom: 0.4rem; }
.legal-content .updated {
  color: var(--caption);
  font-size: 0.92rem;
  margin-bottom: 2.2rem;
}

.credits-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0 2.5rem;
  font-size: 0.95rem;
}
.credits-table th, .credits-table td {
  text-align: left;
  padding: 0.7rem 0.8rem;
  border-bottom: 1px solid var(--stone);
  vertical-align: top;
}
.credits-table th {
  font-family: var(--font-text);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--caption);
}
.credits-table td a { color: var(--pine); }

/* Process steps */
.process {
  list-style: none;
  counter-reset: step;
  margin: 0;
  padding: 0;
  max-width: 760px;
}
.process li {
  counter-increment: step;
  border-top: 1px solid var(--stone);
  padding: 1.8rem 0;
  display: grid;
  grid-template-columns: 4.4rem 1fr;
  gap: 1.2rem;
}
.process li::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 2rem;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px var(--pine);
}
.process h3 { font-size: 1.3rem; margin-bottom: 0.3rem; }
.process p { margin: 0; max-width: 54ch; }

/* Values */
.values { display: grid; gap: 1.8rem; margin-top: 1rem; }
.values > div { border-top: 1px solid var(--stone); padding-top: 1.1rem; }
.values h3 { font-size: 1.25rem; }
.values p { margin: 0; }

/* ==========================================================================
   Contact page
   ========================================================================== */

.contact-grid { display: grid; gap: 3rem; }

.contact-form { display: grid; gap: 1.2rem; }

.contact-form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.35rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--stone);
  border-radius: 2px;
  padding: 0.8rem 0.95rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--pine);
  box-shadow: 0 0 0 3px rgba(45, 92, 58, 0.18);
}

.contact-form textarea { min-height: 150px; resize: vertical; }
.contact-form button { justify-self: start; cursor: pointer; }

.form-note { font-size: 0.88rem; color: var(--caption); margin: 0; }

.form-success {
  background: var(--forest);
  color: var(--paper);
  border-radius: 2px;
  padding: 1.1rem 1.3rem;
  font-weight: 500;
}

.contact-aside > div { border-top: 1px solid var(--stone); padding: 1.2rem 0; }
.contact-aside h3 {
  font-family: var(--font-text);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--caption);
  margin-bottom: 0.4rem;
}
.contact-aside p { margin: 0 0 0.2rem; color: var(--ink); }

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

@media (min-width: 700px) {
  .work__grid { grid-template-columns: repeat(4, 1fr); }
  .cta__inner { grid-template-columns: 1.4fr auto; }
  .contact-grid { grid-template-columns: 1.3fr 1fr; }
  .values { grid-template-columns: repeat(3, 1fr); }
  .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
}

@media (min-width: 880px) {
  .service-row {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 4.5rem;
    padding: 4rem 0;
  }
  .service-row--reverse .service-row__media { order: 2; }
  .intro__grid { grid-template-columns: 1.5fr 1fr; gap: 5rem; }
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; }
}

/* Parallax off on touch/small screens (iOS ignores fixed attachment) */
@media (max-width: 879px), (hover: none) {
  .breaker { background-attachment: scroll; min-height: 48vh; }
}

/* Mobile navigation */
@media (max-width: 879px) {
  .nav-toggle { display: block; }

  .nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(340px, 86vw);
    background: var(--forest);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: 6.5rem 2rem 2rem;
    transform: translateX(100%);
    transition: transform 0.45s var(--ease-out);
    display: flex;
    box-shadow: -20px 0 60px rgba(10, 18, 12, 0.4);
    z-index: -1;
  }
  .nav.open { transform: translateX(0); }

  .nav > a,
  .has-sub > a {
    display: block;
    padding: 0.9rem 0;
    font-size: 1.15rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .sub-menu {
    position: static;
    display: block;
    border: none;
    box-shadow: none;
    background: transparent;
    padding: 0 0 0.4rem 1.1rem;
  }
  .sub-menu a { padding: 0.6rem 0; font-size: 1rem; }
  .has-sub > a::after { display: none; }

  .nav .btn { margin: 1.4rem 0 0; text-align: center; }

  .hero__cue { display: none; }
}

/* ---------- Reduced motion: everything appears, nothing moves ---------- */
@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;
  }
  .js [data-reveal] { opacity: 1; transform: none; clip-path: none; }
  .hero__bg { animation: none; }
  .marquee__track { animation: none; }
  .breaker { background-attachment: scroll; }
}
