/* ─── Template C — "Studio Motion" ─────────────────────────────────────────
   Premium, animation-rich agency aesthetic. Light editorial canvas, near-black
   cinematic bands, indigo + warm-gold accents, layered depth, and a cohesive
   GSAP/Lenis motion layer (driven from script.js).

   THEMING: every colour references a :root token (per the template CONTRACT).
   MOTION:  durations/easings are tokens too (--dur-*, --ease) so every
            transition/animation feels like one system, not a pile of effects.
   ──────────────────────────────────────────────────────────────────────────*/

:root {
  /* Brand-customizable palette (generator may override brand/brand-2/accent). */
  --brand:      #4f46e5;   /* electric indigo */
  --brand-2:    #6d5efc;   /* lighter indigo  */
  --accent:     #e3b566;   /* warm gold       */
  --accent-2:   #f0dcb0;   /* soft gold (on dark) */
  --navy:       #0a0c14;   /* near-black ink / cinematic bands */
  --text:       #11131a;
  --text-muted: #5a6275;
  --bg:         #ffffff;   /* cards / surfaces */
  --bg-alt:     #f4f5f9;   /* alternating light sections */
  --bg-deep:    #0a0c14;   /* hero / footer / bands */
  --border:     #e6e8f0;

  --radius:     12px;
  --radius-lg:  22px;
  --shadow-sm:  0 6px 20px rgba(15, 18, 40, 0.08);
  --shadow:     0 22px 55px rgba(15, 18, 40, 0.14);
  --shadow-lg:  0 40px 90px rgba(15, 18, 40, 0.22);

  --display:    "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --body:       "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --max-w:      1240px;
  --gutter:     clamp(20px, 4vw, 56px);

  /* ── Motion tokens — the single source of timing/easing for the whole site ── */
  --dur-1:      .45s;                          /* micro-interactions */
  --dur-2:      .7s;                           /* hovers / larger moves */
  --ease:       cubic-bezier(.22, 1, .36, 1);  /* expressive ease-out */
  --ease-soft:  cubic-bezier(.4, 0, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
/* Native smooth scroll only when Lenis ISN'T driving (reduced-motion / no-JS). */
html.reduced-motion, html:not(.has-js) { scroll-behavior: smooth; }
body {
  margin: 0; padding: 0; overflow-x: hidden;
  font-family: var(--body); color: var(--text); background: var(--bg-alt);
  font-size: 17px; line-height: 1.7;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; transition: color var(--dur-1) var(--ease); }
a:hover { color: var(--brand-2); }
p { margin: 0 0 1rem; }
ul, ol { padding-left: 1.4rem; margin: 0 0 1rem; }

h1, h2, h3, h4 {
  font-family: var(--display); font-weight: 700; color: var(--navy);
  letter-spacing: -0.02em; margin: 0 0 .6em; line-height: 1.06;
}
h1 { font-size: clamp(2.6rem, 6.4vw, 4.6rem); font-weight: 700; }
h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
h3 { font-size: clamp(1.25rem, 2.1vw, 1.55rem); }

.eyebrow {
  font-family: var(--body); font-size: 12.5px; font-weight: 700;
  letter-spacing: 2.2px; text-transform: uppercase;
  color: var(--brand); margin-bottom: 16px; display: flex; align-items: center; gap: 10px;
}
.eyebrow::before {
  content: ""; width: 26px; height: 2px; background: currentColor;
  display: inline-block; border-radius: 2px;
}

/* ─── Layout helpers ─── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(76px, 10vw, 132px) 0; position: relative; background: var(--bg); }
.section--alt { background: var(--bg-alt); }

/* ─── Buttons — slide-fill + lift micro-interaction ─── */
.btn {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 30px; border-radius: 999px;
  font-family: var(--body); font-weight: 600; font-size: 15px; letter-spacing: 0.2px;
  background: var(--brand); color: #fff; border: none; cursor: pointer;
  text-decoration: none; box-shadow: var(--shadow-sm);
  transition: transform var(--dur-1) var(--ease), box-shadow var(--dur-1) var(--ease), color var(--dur-1) var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--brand-2); transform: scaleX(0); transform-origin: left;
  transition: transform var(--dur-2) var(--ease);
}
.btn:hover { color: #fff; transform: translateY(-3px); box-shadow: var(--shadow); }
.btn:hover::before { transform: scaleX(1); }
.btn--accent { background: var(--accent); color: var(--navy); }
.btn--accent::before { background: #f0c987; }
.btn--accent:hover { color: var(--navy); }
.btn--ghost { background: transparent; color: var(--navy); border: 1.5px solid var(--border); box-shadow: none; }
.btn--ghost::before { background: var(--navy); }
.btn--ghost:hover { color: #fff; border-color: var(--navy); }

/* ─── Header — solidifies on scroll ─── */
/* NOTE: deliberately NO backdrop-filter:blur — a sticky blurred header forces
   the browser to re-blur whatever scrolls beneath it EVERY frame, which janks
   badly when a full-screen hero image passes under it (the cause of the laggy
   scroll). A semi-opaque solid background gives the same clean look for free. */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid transparent;
  transition: background var(--dur-2) var(--ease), border-color var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 22px; padding-bottom: 22px;
  transition: padding var(--dur-2) var(--ease);
}
.site-header.is-scrolled { background: rgba(255, 255, 255, 0.92); border-bottom-color: var(--border); box-shadow: var(--shadow-sm); }
.site-header.is-scrolled .container { padding-top: 13px; padding-bottom: 13px; }
.site-header__logo { display: flex; align-items: center; gap: 13px; text-decoration: none; color: inherit; }
.site-header__logo img { height: 46px; width: auto; transition: height var(--dur-2) var(--ease); }
.site-header.is-scrolled .site-header__logo img { height: 38px; }
.site-header__brand { font-family: var(--display); font-weight: 700; color: var(--navy); font-size: 21px; line-height: 1; letter-spacing: -0.02em; }
.logo-fallback {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 12px; background: var(--navy); color: #fff;
  font-family: var(--display); font-weight: 700; font-size: 18px;
}
.site-nav { display: flex; gap: 30px; align-items: center; }
.site-nav a { position: relative; color: var(--navy); font-weight: 500; font-size: 15px; padding: 4px 0; }
.site-nav a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 100%;
  background: var(--brand); transform: scaleX(0); transform-origin: right;
  transition: transform var(--dur-1) var(--ease);
}
.site-nav a:hover { color: var(--brand); }
.site-nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.site-header__cta { display: flex; align-items: center; gap: 16px; }
.site-header__phone { font-family: var(--display); font-weight: 600; color: var(--navy); font-size: 17px; line-height: 1; }
.site-header__phone:hover { color: var(--brand); }

/* ─── Hero — cinematic dark band, always white text (image OR no-image) ─── */
.hero {
  position: relative; min-height: 86vh; display: flex; align-items: center;
  padding: clamp(120px, 17vw, 196px) 0 clamp(84px, 11vw, 130px);
  background-color: var(--bg-deep);
  background-size: cover; background-position: center; background-repeat: no-repeat;
  overflow: hidden; color: #fff;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(120% 120% at 15% 10%, rgba(79, 70, 229, 0.42) 0%, transparent 55%),
    linear-gradient(120deg, rgba(10, 12, 20, 0.92) 0%, rgba(10, 12, 20, 0.72) 45%, rgba(10, 12, 20, 0.55) 100%);
}
.hero::after {
  content: ""; position: absolute; top: -12%; right: -12%; width: 46vw; height: 46vw; max-width: 620px; max-height: 620px;
  background: radial-gradient(circle, rgba(227, 181, 102, 0.30) 0%, transparent 62%);
  z-index: 0; pointer-events: none;   /* gradient is already soft — no filter:blur (repaint cost) */
}
.hero .container { position: relative; z-index: 1; width: 100%; }
.hero__copy { max-width: 860px; }
.hero__copy .eyebrow { color: var(--accent-2); }
.hero__copy h1 { color: #fff; margin-bottom: 24px; }
.hero__copy h1 .accent-word {
  position: relative; display: inline-block;
  background: linear-gradient(100deg, var(--accent) 20%, #fff 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__sub { font-size: clamp(1.08rem, 1.5vw, 1.32rem); color: rgba(255, 255, 255, 0.86); margin-bottom: 36px; max-width: 640px; }
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero .btn--ghost { color: #fff; border-color: rgba(255, 255, 255, 0.4); }
.hero .btn--ghost::before { background: #fff; }
.hero .btn--ghost:hover { color: var(--navy); border-color: #fff; }
.hero__rating {
  margin-top: 42px; display: inline-flex; align-items: center; gap: 14px;
  padding: 13px 22px; background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;   /* no backdrop-filter — sits over the hero image */
}
.hero__rating .stars { color: var(--accent); font-size: 19px; letter-spacing: 3px; }
.hero__rating .text { font-size: 14px; font-weight: 600; color: #fff; }

/* ─── Cards: shared depth + hover-lift system ─── */
.services-grid, .reviews-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 26px; margin-top: 8px;
}
.process-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(232px, 1fr)); gap: 24px; margin-top: 48px; }
.work-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); gap: 26px; margin-top: 48px; }

.service-card, .process-step, .work-card, .review-card {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease), border-color var(--dur-2) var(--ease);
}
.service-card:hover, .process-step:hover, .review-card:hover {
  transform: translateY(-8px); box-shadow: var(--shadow); border-color: rgba(79, 70, 229, 0.35);
}

/* Services */
.service-card { padding: 36px 32px; position: relative; }
.service-card__num {
  font-family: var(--display); font-weight: 700; font-size: 1.05rem; color: var(--brand);
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 12px; background: rgba(79, 70, 229, 0.08);
  margin-bottom: 20px;
}
.service-card h3 { margin-bottom: 12px; }
.service-card p { color: var(--text-muted); margin: 0; font-size: 15.5px; line-height: 1.7; }

/* Process */
.process-step { padding: 34px 30px 30px; }
.process-step__num { display: block; font-family: var(--display); font-weight: 700; font-size: 2.6rem;
  color: transparent; -webkit-text-stroke: 1.5px var(--brand); line-height: 1; margin-bottom: 16px; }
.process-step h3 { margin-bottom: 10px; font-size: 1.28rem; }
.process-step p { color: var(--text-muted); font-size: 15.5px; margin: 0; line-height: 1.7; }

/* Recent work — grayscale→colour + zoom on hover */
.work-card { overflow: hidden; padding: 0; }
.work-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: rgba(79, 70, 229, 0.35); }
.work-card__img {
  width: 100%; aspect-ratio: 4 / 3; background-size: cover; background-position: center;
  background-color: var(--bg-alt); position: relative;
  filter: grayscale(0.85) contrast(1.02); transform: scale(1.001);
  transition: filter var(--dur-2) var(--ease), transform var(--dur-2) var(--ease);
}
.work-card:hover .work-card__img { filter: grayscale(0); transform: scale(1.06); }
.work-card__img::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(10, 12, 20, 0.34) 100%); }
.work-card figcaption { padding: 24px 26px 28px; }
.work-card figcaption h3 { font-size: 1.32rem; margin-bottom: 8px; }
.work-card figcaption p { color: var(--text-muted); font-size: 15px; margin: 0; }

/* ─── Promise band — dark, parallax (transform-driven via JS) ─── */
.promise-band {
  position: relative; padding: clamp(100px, 14vw, 184px) 0; text-align: center;
  background-color: var(--bg-deep); background-size: cover; background-position: center;
  color: #fff; overflow: hidden;
}
.promise-band::before { content: ""; position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(120deg, rgba(10, 12, 20, 0.88) 0%, rgba(36, 30, 92, 0.62) 100%); }
.promise-band .container { position: relative; z-index: 1; max-width: 900px; }
.promise-band .eyebrow { color: var(--accent); justify-content: center; }
.promise-band .eyebrow::before { display: none; }
.promise-band h2 { color: #fff; font-size: clamp(2.2rem, 4.6vw, 3.6rem); margin: 0 auto 22px; max-width: 800px; }
.promise-band p { color: rgba(255, 255, 255, 0.84); font-size: 1.2rem; max-width: 640px; margin: 0 auto; }

/* ─── Why us — dark feature block ─── */
.why-us-diagonal { position: relative; overflow: hidden; background: var(--bg-deep); color: #fff; }
.why-us-diagonal::before { content: ""; position: absolute; inset: 0;
  background: radial-gradient(90% 90% at 80% 0%, rgba(79, 70, 229, 0.28) 0%, transparent 55%); }
.why-us-diagonal .container { padding-top: clamp(84px, 11vw, 128px); padding-bottom: clamp(84px, 11vw, 128px); position: relative; z-index: 1; }
.why-us-diagonal .eyebrow { color: var(--accent); }
.why-us-diagonal h2 { color: #fff; margin-bottom: 48px; max-width: 800px; }
.why-us-diagonal .why-us__list { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 1040px; }
.why-us-diagonal .why-us__item {
  background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: var(--radius-lg); padding: 28px; display: grid; grid-template-columns: 52px 1fr; gap: 20px;
  transition: transform var(--dur-2) var(--ease), background var(--dur-2) var(--ease), border-color var(--dur-2) var(--ease);
}
.why-us-diagonal .why-us__item:hover { transform: translateY(-6px); background: rgba(255, 255, 255, 0.07); border-color: rgba(227, 181, 102, 0.4); }
.why-us-diagonal .why-us__num { font-family: var(--display); font-weight: 700; font-size: 1.9rem; color: var(--accent); line-height: 1; }
.why-us-diagonal .why-us__item h3 { color: #fff; font-size: 1.25rem; margin-bottom: 8px; }
.why-us-diagonal .why-us__item p { color: rgba(255, 255, 255, 0.7); margin: 0; font-size: 15px; }

/* ─── Reviews ─── */
.review-card { padding: 34px 30px; position: relative; }
.review-card::before { content: '"'; position: absolute; top: 6px; right: 26px; font-family: var(--display);
  font-weight: 700; font-size: 4.5rem; color: rgba(79, 70, 229, 0.12); line-height: 1; }
.review-card__stars { color: var(--accent); font-size: 17px; margin-bottom: 14px; letter-spacing: 2px; }
.review-card__text { font-size: 16px; line-height: 1.75; margin-bottom: 18px; color: var(--text); }
.review-card__author { font-family: var(--display); font-weight: 600; font-size: 1.02rem; color: var(--navy); }

/* ─── Service areas ─── */
.areas-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin-top: 36px; }
.area-pill {
  padding: 16px 22px; background: var(--bg); border: 1px solid var(--border); border-radius: 999px;
  text-align: center; font-weight: 600; color: var(--navy); font-size: 15px;
  transition: transform var(--dur-1) var(--ease), background var(--dur-1) var(--ease), color var(--dur-1) var(--ease), border-color var(--dur-1) var(--ease);
}
.area-pill:hover { background: var(--navy); color: #fff; transform: translateY(-3px); border-color: var(--navy); }
.area-card { box-shadow: var(--shadow-sm); transition: transform var(--dur-1) var(--ease), box-shadow var(--dur-1) var(--ease), border-color var(--dur-1) var(--ease) !important; }
.area-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--brand) !important; }

/* ─── FAQ ─── */
.faq-list { display: grid; gap: 12px; max-width: 880px; margin: 0 auto; }
.faq-item { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
  transition: border-color var(--dur-1) var(--ease), box-shadow var(--dur-1) var(--ease); }
.faq-item:has(details[open]) { border-color: rgba(79, 70, 229, 0.4); box-shadow: var(--shadow-sm); }
.faq-item details summary {
  padding: 22px 28px; font-weight: 600; color: var(--navy); font-size: 16.5px; cursor: pointer;
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-item details summary::-webkit-details-marker { display: none; }
.faq-item details summary::after { content: "+"; font-family: var(--display); font-size: 1.6rem; color: var(--brand);
  font-weight: 400; line-height: 0.6; transition: transform var(--dur-1) var(--ease); }
.faq-item details[open] summary::after { transform: rotate(45deg); }
.faq-item details .faq-answer { padding: 0 28px 24px; color: var(--text-muted); font-size: 16px; line-height: 1.7; }

/* ─── NAP block ─── */
.nap-block { display: grid; gap: 6px; font-size: 15px; line-height: 1.6; }
.nap-block strong { color: var(--navy); font-size: 17px; font-family: var(--display); font-weight: 600; }
.nap-block a { color: var(--text-muted); font-weight: 500; }
.nap-block a:hover { color: var(--brand); }

/* ─── Contact CTA — dark band, soft glow ─── */
.contact-cta {
  position: relative; padding: clamp(92px, 12vw, 140px) 0; text-align: center; color: #fff; overflow: hidden;
  background-color: var(--bg-deep); background-size: cover; background-position: center;
}
.contact-cta::before { content: ""; position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(120deg, rgba(10, 12, 20, 0.9) 0%, rgba(36, 30, 92, 0.78) 100%); }
.contact-cta::after { content: ""; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 0;
  width: 820px; height: 820px; background: radial-gradient(circle, rgba(79, 70, 229, 0.28) 0%, transparent 60%); pointer-events: none; }
.contact-cta .container { position: relative; z-index: 1; }
.contact-cta .eyebrow { color: var(--accent); justify-content: center; }
.contact-cta .eyebrow::before { display: none; }
.contact-cta h2 { color: #fff; max-width: 780px; margin: 0 auto 18px; }
.contact-cta p { color: rgba(255, 255, 255, 0.85); max-width: 600px; margin: 0 auto 34px; font-size: 1.1rem; }

/* ─── Contact form ─── */
.contact-form { display: grid; gap: 18px; max-width: 580px; }
.contact-form label { font-size: 13px; font-weight: 600; color: var(--navy); margin-bottom: 6px; display: block; letter-spacing: 0.4px; }
.contact-form input, .contact-form textarea {
  width: 100%; padding: 15px 18px; border: 1px solid var(--border); border-radius: var(--radius);
  font-family: var(--body); font-size: 16px; background: var(--bg); color: var(--text);
  transition: border-color var(--dur-1) var(--ease), box-shadow var(--dur-1) var(--ease);
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.12); }
.contact-form textarea { min-height: 160px; resize: vertical; }

/* ─── Article (blog post + legal pages) ─── */
.article h2 { margin-top: 1.6em; }
.article ul { margin-bottom: 1.2rem; }
.article a { text-decoration: underline; text-underline-offset: 3px; }

/* ─── Footer ─── */
.site-footer { background: var(--bg-deep); color: rgba(255, 255, 255, 0.7); padding: 84px 0 32px; font-size: 15px; }
.site-footer h4 { color: #fff; font-family: var(--display); font-size: 1.05rem; font-weight: 600; margin-bottom: 18px; }
.site-footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 56px; margin-bottom: 56px; }
.site-footer a { color: rgba(255, 255, 255, 0.7); font-weight: 500; }
.site-footer a:hover { color: var(--accent); }
.site-footer__bottom { border-top: 1px solid rgba(255, 255, 255, 0.1); padding-top: 24px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; font-size: 13.5px; color: rgba(255, 255, 255, 0.5); }
.site-footer__logo img { height: 44px; margin-bottom: 16px; filter: brightness(0) invert(1); }
.site-footer__blurb { color: rgba(255, 255, 255, 0.6); font-size: 15px; line-height: 1.7; max-width: 360px; }
.social-icons a { transition: transform var(--dur-1) var(--ease), background var(--dur-1) var(--ease); }
.social-icons a:hover { transform: translateY(-3px); background: var(--brand) !important; }

/* ─── Header dropdown submenus (Service Areas / Blog) ─── */
.nav-dropdown { position: relative; display: inline-flex; align-items: center; padding-bottom: 18px; margin-bottom: -18px; }
.nav-dropdown__label { cursor: pointer; }
.nav-dropdown__menu {
  position: absolute; top: 100%; left: 0; min-width: 230px; max-width: 320px;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 8px; display: flex; flex-direction: column; gap: 2px; box-shadow: var(--shadow); z-index: 60;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity var(--dur-1) var(--ease), transform var(--dur-1) var(--ease), visibility var(--dur-1);
}
.nav-dropdown:hover .nav-dropdown__menu, .nav-dropdown:focus-within .nav-dropdown__menu { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-dropdown__menu a { padding: 10px 13px; border-radius: 8px; font-size: 14px; font-weight: 500; color: var(--navy); }
.nav-dropdown__menu a::after { display: none; }
.nav-dropdown__menu a:hover { background: var(--bg-alt); color: var(--brand); }

/* ─── Mobile hamburger ─── */
.nav-toggle { display: none; flex-direction: column; justify-content: center; gap: 5px;
  background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--navy); border-radius: 2px;
  transition: transform .24s var(--ease), opacity .24s var(--ease); }
.site-header.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-header.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.site-header.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ═══════════════════════════════════════════════════════════════════════════
   MOTION LAYER — reveal start states + reduced-motion / no-JS safety.
   Only the above-the-fold hero copy is pre-hidden (gated on has-js so it is
   NEVER hidden without JS, and excluded under reduced-motion). Below-the-fold
   reveals are handled entirely by GSAP `from()` (no pre-hide → no flash, and
   content stays visible if the CDN ever fails).
   ═══════════════════════════════════════════════════════════════════════════*/
html.has-js:not(.reduced-motion) .hero__copy > * { opacity: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .hero__copy > * { opacity: 1 !important; }
}

/* ─── Responsive ─── */
@media (max-width: 980px) {
  .why-us-diagonal .why-us__list { grid-template-columns: 1fr; }
  .site-footer__grid { grid-template-columns: 1fr; gap: 36px; }
  .nav-toggle { display: inline-flex; order: 2; margin-left: auto; }
  .site-header .container { flex-wrap: wrap; }
  .site-header__logo { order: 1; }
  .site-nav, .site-header__cta { order: 3; width: 100%; display: none; }
  .site-header.nav-open .site-nav { display: flex; flex-direction: column; align-items: stretch; gap: 2px;
    margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border); }
  .site-header.nav-open .site-nav a { padding: 12px 4px; }
  .site-header.nav-open .site-nav a::after { display: none; }
  .site-header.nav-open .site-header__cta { display: flex; flex-direction: column; align-items: stretch; gap: 10px; padding: 10px 0 16px; }
  .site-header.nav-open .site-header__cta .btn { width: 100%; justify-content: center; }
  .nav-dropdown { flex-direction: column; align-items: stretch; padding: 0; margin: 0; }
  .site-header.nav-open .nav-dropdown__menu { position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: 0; background: transparent; padding: 0 0 6px 16px; min-width: 0; max-width: none; }
}
@media (max-width: 640px) {
  .hero { min-height: 78vh; }
  .hero__copy h1 { font-size: clamp(2.2rem, 9vw, 3rem); }
  .contact-cta::after, .hero::after { display: none; }   /* lighter paint on phones */
}
