/* ============================================================
   Summit Automations — design system
   Palette (from brand logo):
     navy    #0F1E3D  primary surfaces (dark)
     indigo  #3B5BDB  accent / interactive
     teal    #38D9A9  highlights & CTAs
     off-wh  #F6F8FC  light surfaces
     ink     #1A2233  body text on light
   ============================================================ */

:root {
  --navy: #0F1E3D;
  --navy-deep: #0A1730;
  --navy-raise: #16294F;         /* raised panels on dark */
  --indigo: #3B5BDB;
  --indigo-soft: #E5EAFB;        /* indigo tint for icon chips */
  --teal: #38D9A9;
  --teal-deep: #23B98C;
  --offwhite: #F6F8FC;
  --white: #FFFFFF;
  --ink: #1A2233;
  --slate: #4C5B77;              /* muted text on light — AA on off-white */
  --mist: #ADBBD6;               /* muted text on navy — AA on navy */
  --line: #E1E7F2;               /* hairlines on light */
  --line-dark: rgba(173, 187, 214, 0.18);

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --container: 1160px;
  --radius: 14px;
  --shadow-sm: 0 1px 2px rgba(15, 30, 61, 0.06), 0 2px 8px rgba(15, 30, 61, 0.05);
  --shadow-md: 0 6px 24px rgba(15, 30, 61, 0.10), 0 2px 6px rgba(15, 30, 61, 0.06);

  --ease: cubic-bezier(0.22, 0.61, 0.21, 1);
  --speed: 260ms;

  --section-pad: clamp(4.5rem, 9vw, 7.5rem);
  --header-h: 76px;
}

/* ---------- Reset & base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--offwhite);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }

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

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

::selection { background: var(--indigo); color: var(--white); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip: rect(0 0 0 0); clip-path: inset(50%);
  overflow: hidden; white-space: nowrap;
}

.skip-link {
  position: absolute;
  top: -100px; left: 16px;
  z-index: 200;
  padding: 0.75rem 1.25rem;
  background: var(--teal);
  color: var(--navy);
  font-weight: 600;
  text-decoration: none;
  border-radius: 0 0 8px 8px;
  transition: top 160ms var(--ease);
}
.skip-link:focus { top: 0; }

/* ---------- Layout primitives ---------- */

.container {
  width: min(var(--container), 100% - 3rem);
  margin-inline: auto;
}
.container--narrow { max-width: 780px; }

.section { padding-block: var(--section-pad); }
.section--alt { background: var(--white); }
.section--dark {
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: var(--white);
}

[id] { scroll-margin-top: calc(var(--header-h) + 16px); }

/* ---------- Typography ---------- */

.eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--indigo);
  margin-bottom: 1rem;
}
.eyebrow--on-dark { color: var(--teal); }

.section__title {
  font-size: clamp(1.9rem, 3.6vw, 2.75rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.022em;
  max-width: 22ch;
}

.section__head { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section__lede {
  margin-top: 1.1rem;
  font-size: 1.125rem;
  color: var(--slate);
  max-width: 58ch;
}
.section__lede--on-dark { color: var(--mist); }

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.75rem;
  border-radius: 10px;
  border: 1.5px solid transparent;
  font: 600 1rem/1.2 var(--font);
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--speed) var(--ease),
              box-shadow var(--speed) var(--ease),
              background-color var(--speed) var(--ease),
              border-color var(--speed) var(--ease);
}
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--teal);
  color: var(--navy);
  box-shadow: 0 2px 10px rgba(56, 217, 169, 0.25);
}
.btn--primary:hover {
  background: var(--teal-deep);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(56, 217, 169, 0.32);
}

.btn--ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(246, 248, 252, 0.4);
}
.btn--ghost:hover {
  border-color: var(--teal);
  color: var(--teal);
  transform: translateY(-2px);
}

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

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  transition: background-color var(--speed) var(--ease),
              box-shadow var(--speed) var(--ease);
}
.site-header.is-scrolled,
.site-header.is-open {
  background: rgba(10, 23, 48, 0.9);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line-dark);
}

.site-header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
}
.brand__mark { width: 44px; height: 40px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name {
  font-size: 1.18rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--white);
}
.brand__sub {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.34em;
  color: var(--mist);
}

.site-nav { display: flex; align-items: center; }
.site-nav__menu { display: flex; align-items: center; gap: 2rem; }
.site-nav__list {
  display: flex;
  gap: 1.9rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-nav__list a {
  color: var(--offwhite);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  padding-block: 0.4rem;
  position: relative;
}
/* micro-interaction: underline grows from left */
.site-nav__list a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 2px;
  background: var(--teal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--speed) var(--ease);
}
.site-nav__list a:hover::after,
.site-nav__list a:focus-visible::after { transform: scaleX(1); }

.btn--nav { padding: 0.66rem 1.3rem; font-size: 0.92rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  padding: 10px;
  background: none;
  border: 0;
  cursor: pointer;
}
.nav-toggle__bar {
  height: 2px;
  width: 100%;
  background: var(--offwhite);
  border-radius: 2px;
  transition: transform var(--speed) var(--ease), opacity var(--speed) var(--ease);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

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

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-block: calc(var(--header-h) + 3rem) 5rem;
  background:
    radial-gradient(1100px 520px at 72% 30%, rgba(59, 91, 219, 0.28), transparent 65%),
    linear-gradient(180deg, var(--navy-deep) 0%, var(--navy) 60%, #12234a 100%);
  color: var(--white);
  overflow: hidden;
}

.hero__visual {
  position: absolute;
  inset: 0;
  pointer-events: none;   /* scene reacts to cursor via window events; never blocks clicks */
}
.hero__fallback {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  opacity: 0.8;
}
.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  opacity: 0;
  transition: opacity 900ms ease;
}
.hero__canvas.is-live { opacity: 1; }
/* once the 3D scene is live, quiet the static art behind it */
.hero__visual.is-3d .hero__fallback { opacity: 0; transition: opacity 900ms ease; }

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin-left: max(calc((100vw - var(--container)) / 2), 1.5rem);
}

.hero__title {
  font-size: clamp(2.5rem, 6vw, 4.35rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.028em;
}
.hero__title-accent {
  background: linear-gradient(92deg, #6EE7C7 0%, var(--teal) 45%, #57CBF5 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__subhead {
  margin-top: 1.5rem;
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--mist);
  max-width: 54ch;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.25rem;
}

.hero__footnote {
  margin-top: 2.5rem;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  color: var(--mist);
}

.hero__scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  width: 24px; height: 38px;
  border: 1.5px solid rgba(173, 187, 214, 0.5);
  border-radius: 12px;
}
.hero__scroll-cue span {
  position: absolute;
  left: 50%; top: 7px;
  width: 3px; height: 8px;
  margin-left: -1.5px;
  border-radius: 2px;
  background: var(--teal);
  animation: cue 2.2s var(--ease) infinite;
}
@keyframes cue {
  0%, 20% { transform: translateY(0); opacity: 1; }
  70%     { transform: translateY(12px); opacity: 0; }
  100%    { transform: translateY(0); opacity: 0; }
}

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

.strip {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  padding-block: 2.25rem;
}
.strip__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 2.5rem;
}
.strip__statement {
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  font-weight: 600;
  letter-spacing: -0.01em;
}
.strip__statement em {
  font-style: normal;
  color: var(--indigo);
}
.strip__cues {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.75rem;
  font-size: 0.9rem;
  color: var(--slate);
}
.strip__cues li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.strip__cues li::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--teal);
  flex: none;
}

/* ---------- Service cards ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--speed) var(--ease), box-shadow var(--speed) var(--ease);
  overflow: hidden;
}
/* micro-interaction: accent line sweeps across the top on hover */
.card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--indigo), var(--teal));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 360ms var(--ease);
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.card:hover::before { transform: scaleX(1); }

.card__icon {
  width: 48px; height: 48px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--indigo-soft);
  color: var(--indigo);
  margin-bottom: 1.4rem;
  transition: background-color var(--speed) var(--ease), color var(--speed) var(--ease);
}
.card__icon svg { width: 24px; height: 24px; }
.card:hover .card__icon { background: var(--indigo); color: var(--white); }

.card__title {
  font-size: 1.16rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 0.6rem;
}
.card__body {
  font-size: 0.98rem;
  color: var(--slate);
}

/* ---------- How it works ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2.5rem 2rem;
  counter-reset: step;
  margin: 0;
  padding: 0;
}

.step {
  position: relative;
  padding-top: 1.6rem;
  border-top: 2px solid var(--line);
}
.step::before {
  content: "";
  position: absolute;
  top: -2px; left: 0;
  width: 56px; height: 2px;
  background: var(--teal);
}
.step__num {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--indigo);
}
.step__title {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 0.55rem 0 0.65rem;
}
.step__body { color: var(--slate); font-size: 0.99rem; }

/* ---------- Impact / stats ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.stat {
  background: var(--navy-raise);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  padding: 2rem 1.75rem 1.75rem;
  transition: transform var(--speed) var(--ease), border-color var(--speed) var(--ease);
}
.stat:hover { transform: translateY(-4px); border-color: rgba(56, 217, 169, 0.45); }

.stat__value {
  font-size: clamp(2.4rem, 4.4vw, 3.3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--teal);
  font-variant-numeric: tabular-nums;
}
.stat__label {
  margin-top: 0.7rem;
  font-size: 0.94rem;
  color: var(--mist);
}

.impact__disclaimer {
  margin-top: 2.25rem;
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--mist);
  max-width: 68ch;
}

/* ---------- Industries ---------- */

.industry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.industry {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 1.1rem;
  row-gap: 0.35rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.6rem 1.5rem;
  transition: transform var(--speed) var(--ease), box-shadow var(--speed) var(--ease);
}
.industry:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.industry__icon {
  grid-row: 1 / 3;
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: rgba(56, 217, 169, 0.14);
  color: var(--teal-deep);
}
.industry__icon svg { width: 22px; height: 22px; }
.industry__name { font-size: 1.06rem; font-weight: 700; letter-spacing: -0.01em; align-self: center; }
.industry__body { grid-column: 2; font-size: 0.93rem; color: var(--slate); }

/* ---------- About ---------- */

.about {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: start;
}
.about__copy p { margin-top: 1.15rem; color: var(--slate); }
.about__copy p strong { color: var(--ink); }

.about__pillars {
  display: grid;
  gap: 1.25rem;
}
.pillar {
  background: var(--offwhite);
  border-left: 3px solid var(--teal);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.35rem 1.5rem;
}
.pillar__title { font-size: 1.02rem; font-weight: 700; margin-bottom: 0.35rem; }
.pillar__body { font-size: 0.93rem; color: var(--slate); }

/* ---------- Testimonials (placeholders) ---------- */

.quote-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.quote {
  border-radius: var(--radius);
  padding: 1.9rem 1.75rem;
}
.quote--placeholder {
  border: 1.5px dashed #C4CEE2;
  background: rgba(255, 255, 255, 0.6);
}
.quote__badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate);
  background: var(--line);
  border-radius: 99px;
  padding: 0.25rem 0.7rem;
  margin-bottom: 1.1rem;
}
.quote__text p {
  font-size: 1.02rem;
  color: var(--slate);
  font-style: italic;
}
.quote__attrib {
  margin-top: 1.1rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
}
.quote__attrib::before { content: "— "; color: var(--teal-deep); }

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

.faq {
  border-top: 1px solid var(--line);
}
.faq__item { border-bottom: 1px solid var(--line); }
.faq__heading { font-size: inherit; font-weight: inherit; }

.faq__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  width: 100%;
  padding: 1.35rem 0.25rem;
  background: none;
  border: 0;
  cursor: pointer;
  text-align: left;
  font: 600 1.08rem/1.4 var(--font);
  color: var(--ink);
  transition: color var(--speed) var(--ease);
}
.faq__trigger:hover { color: var(--indigo); }

.faq__chevron {
  flex: none;
  width: 10px; height: 10px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform var(--speed) var(--ease);
  margin-top: -4px;
}
.faq__trigger[aria-expanded="true"] .faq__chevron {
  transform: rotate(225deg);
  margin-top: 4px;
}

/* smooth open/close via grid-rows — animates height without magic numbers */
.faq__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 320ms var(--ease);
}
.faq__panel.is-open { grid-template-rows: 1fr; }
.faq__panel-inner { overflow: hidden; }
.faq__panel-inner p {
  padding: 0 0.25rem 1.5rem;
  color: var(--slate);
  max-width: 65ch;
}
/* [hidden] is removed by JS before animating; without JS panels toggle natively */
.faq__panel[hidden] { display: none; }

/* ---------- Final CTA + lead form ---------- */

.cta__inner {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}

.cta__reassure {
  margin-top: 2rem;
  display: grid;
  gap: 0.8rem;
}
.cta__reassure li {
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
  color: var(--mist);
  font-size: 0.98rem;
}
.cta__reassure li::before {
  content: "✓";
  color: var(--teal);
  font-weight: 700;
  flex: none;
}

.lead-form {
  background: var(--white);
  border-radius: var(--radius);
  padding: clamp(1.75rem, 3.5vw, 2.5rem);
  box-shadow: var(--shadow-md);
  color: var(--ink);
  display: grid;
  gap: 1.2rem;
}

.lead-form__field { display: grid; gap: 0.45rem; }
.lead-form__field label {
  font-size: 0.9rem;
  font-weight: 600;
}
.lead-form__field input,
.lead-form__field select,
.lead-form__field textarea {
  width: 100%;
  padding: 0.8rem 0.95rem;
  font: 400 1rem/1.45 var(--font);
  color: var(--ink);
  background: var(--offwhite);
  border: 1.5px solid var(--line);
  border-radius: 9px;
  transition: border-color var(--speed) var(--ease), box-shadow var(--speed) var(--ease);
}
.lead-form__field textarea { resize: vertical; min-height: 104px; }
.lead-form__field :is(input, select, textarea):focus {
  outline: none;
  border-color: var(--indigo);
  box-shadow: 0 0 0 3px rgba(59, 91, 219, 0.18);
}
.lead-form__field select:invalid { color: var(--slate); }

.lead-form__submit { width: 100%; margin-top: 0.3rem; }

.lead-form__status {
  font-size: 0.95rem;
  font-weight: 600;
  min-height: 1.4em;
}
.lead-form__status.is-ok { color: var(--teal-deep); }
.lead-form__status.is-err { color: #C0392B; }

.lead-form__privacy {
  font-size: 0.83rem;
  color: var(--slate);
  text-align: center;
}

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

.site-footer {
  background: var(--navy-deep);
  color: var(--mist);
  padding-top: 4.5rem;
}

.site-footer__inner {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 4fr) minmax(0, 3fr);
  gap: 3rem;
  padding-bottom: 3.5rem;
  border-bottom: 1px solid var(--line-dark);
}

.site-footer__mark { width: 56px; height: 51px; margin-bottom: 1rem; }
.site-footer__name {
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--white);
  font-size: 1.05rem;
}
.site-footer__name span {
  display: block;
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.34em;
  color: var(--mist);
}
.site-footer__tag {
  margin-top: 1rem;
  font-size: 0.92rem;
  max-width: 34ch;
}

.site-footer__nav ul {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem 1.5rem;
}
.site-footer__nav a,
.site-footer__email {
  color: var(--offwhite);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color var(--speed) var(--ease);
}
.site-footer__nav a:hover,
.site-footer__email:hover { color: var(--teal); }

.site-footer__heading {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mist);
  margin-bottom: 0.8rem;
}

.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  padding-block: 1.5rem;
  font-size: 0.85rem;
}
.site-footer__top {
  color: var(--mist);
  text-decoration: none;
}
.site-footer__top:hover { color: var(--teal); }

/* ---------- Scroll reveals ---------- */
/* Applied only when JS is present (html.js), so content never hides without it */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 640ms var(--ease), transform 640ms var(--ease);
  transition-delay: var(--reveal-delay, 0s);
}
.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Reduced motion ---------- */

@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; }
  .hero__scroll-cue { display: none; }
}

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

@media (max-width: 900px) {
  .about, .cta__inner { grid-template-columns: 1fr; }
  .site-footer__inner { grid-template-columns: 1fr 1fr; }
  .site-footer__brand { grid-column: 1 / -1; }
}

/* Collapse the nav well before links can crowd or wrap */
@media (max-width: 960px) {
  .nav-toggle { display: flex; }

  .site-nav__menu {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 1.5rem 1.5rem;
    background: var(--navy-deep); /* opaque: content must never ghost through the menu */
    border-bottom: 1px solid var(--line-dark);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: transform var(--speed) var(--ease),
                opacity var(--speed) var(--ease),
                visibility 0s linear var(--speed);
  }
  .site-header.is-open .site-nav__menu {
    transform: none;
    opacity: 1;
    visibility: visible;
    transition-delay: 0s;
  }

  .site-nav__list {
    flex-direction: column;
    gap: 0;
  }
  .site-nav__list a {
    display: block;
    padding: 0.9rem 0.25rem;
    font-size: 1.05rem;
    border-bottom: 1px solid var(--line-dark);
  }
  .site-nav__list a::after { display: none; }
  .btn--nav { margin-top: 1.25rem; }
}

@media (max-width: 760px) {
  :root { --header-h: 64px; }

  .brand__mark { width: 36px; height: 33px; }
  .brand__name { font-size: 1.02rem; }

  .hero { padding-bottom: 6rem; }
  .hero__content { margin-inline: 1.5rem; }
  .hero__actions .btn { width: 100%; }

  .strip__inner { flex-direction: column; align-items: flex-start; }
  .site-footer__inner { grid-template-columns: 1fr; gap: 2.25rem; }
}
