/* ==========================================================================
   Resideance — landing styles
   Brand: pure white + three blues from deck (#0D1F3D / #203C76 / #3055A8)
   ========================================================================== */

:root {
  --bg: #ffffff;
  --bg-soft: #f7f7f7;
  --white: #ffffff;
  --ink: #0d1f3d;
  --ink-muted: #4a5568;
  --blue-1: #0d1f3d;
  --blue-2: #203c76;
  --blue-3: #3055a8;
  --border: #e8ecf2;
  --shadow-sm: 0 1px 2px rgba(13, 31, 61, 0.06);
  --shadow-md: 0 8px 24px rgba(13, 31, 61, 0.08);
  --shadow-lg: 0 16px 40px rgba(13, 31, 61, 0.1);
  --radius: 12px;
  --radius-sm: 8px;
  --header-h: 72px;
  --container: 1120px;
  --font: "Roboto", system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --focus: 0 0 0 3px rgba(48, 85, 168, 0.35);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--blue-3);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
  transition: color 0.2s var(--ease);
}

a:hover {
  color: var(--blue-2);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

h1, h2, h3 {
  line-height: 1.2;
  font-weight: 300;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 0.75rem;
}

h1 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 200;
}

h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.35rem);
}

h3 {
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 1rem;
  color: var(--ink-muted);
}

p:last-child {
  margin-bottom: 0;
}

ul, ol {
  margin: 0;
  padding: 0;
}

button,
input,
textarea {
  font: inherit;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 1000;
  background: var(--blue-1);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
  color: #fff;
}

/* Layout */
.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

.section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(3.5rem, 8vw, 6rem) 0;
}

.section > .container {
  position: relative;
  z-index: 1;
}

/* Soft default band */
.section-soft {
  background: var(--band-soft);
}

/* --------------------------------------------------------------------------
   Section backgrounds only — clean alternating bands (no orbs / dots / accents)
   -------------------------------------------------------------------------- */

:root {
  --band-white: #ffffff;
  --band-soft: #f4f6fa;
}

/* Home keeps video. Other sections: simple cool gray ↔ white rhythm */
#gap {
  background: var(--band-soft);
}

#services {
  background: var(--band-white);
}

#how-it-works {
  background: var(--band-soft);
}

#contact {
  background: var(--band-white);
}

.site-footer {
  background: var(--band-soft);
}

.section-head {
  max-width: 640px;
  margin-bottom: 2.5rem;
}

.section-head h2 {
  text-wrap: balance;
}

.section-head-gap {
  max-width: none;
  width: 100%;
}

.section-head-gap h2 {
  max-width: none;
  line-height: 1.25;
}

.section-head-gap .section-lead {
  max-width: none;
  width: 100%;
  text-wrap: pretty;
}

.title-break {
  display: block;
}

.section-lead {
  font-size: 1.1rem;
  max-width: 52ch;
  text-wrap: pretty;
}

/* Full container width leads */
#gap .section-lead,
#services .section-lead,
#how-it-works .section-lead {
  max-width: none;
  width: 100%;
}

#services .section-head,
#how-it-works .section-head {
  max-width: none;
  width: 100%;
}

.card p {
  text-wrap: pretty;
  hyphens: none;
  overflow-wrap: normal;
  word-break: normal;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 0.75rem;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-3);
}

.muted {
  color: var(--ink-muted);
  font-size: 0.95rem;
}

/* Logo */
.logo {
  display: inline-flex;
  align-items: baseline;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  line-height: 1;
}

.logo:hover {
  text-decoration: none;
}

.logo-res { color: var(--blue-1); }
.logo-idea { color: var(--blue-2); }
.logo-nce { color: var(--blue-3); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}

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

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

.nav-link {
  color: var(--ink-muted);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 400;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--blue-1);
  border-bottom-color: var(--blue-3);
}

/* Gap bridge — full container width */
.bridge-text {
  margin-top: 2.25rem;
  max-width: none;
  width: 100%;
  font-size: 1.1rem;
  color: var(--ink);
  font-weight: 400;
  padding-left: 1rem;
  border-left: 3px solid var(--blue-3);
  text-wrap: pretty;
}

/* Steps — responsive 2×2 / 1×4 */
.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.15rem;
  width: 100%;
  max-width: none;
  counter-reset: none;
}

.step {
  --spot-x: 50%;
  --spot-y: 30%;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  min-height: 100%;
  padding: 1.45rem 1.4rem 1.5rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}

/* Pointer spotlight */
.step::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    280px circle at var(--spot-x) var(--spot-y),
    rgba(48, 85, 168, 0.13),
    transparent 62%
  );
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 0;
}

.step.is-spot-active::after {
  opacity: 1;
}

.step > * {
  position: relative;
  z-index: 1;
}

/* Accent bar that grows on hover */
.step::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 2;
  background: linear-gradient(90deg, var(--blue-1), var(--blue-3));
  transform: scaleX(0.28);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}

.step:hover,
.step.is-spot-active {
  box-shadow: var(--shadow-md);
  border-color: #d0d8e6;
}

.step:hover::before,
.step.is-spot-active::before {
  transform: scaleX(1);
}

.step-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.step-num {
  font-size: clamp(1.75rem, 3vw, 2.15rem);
  font-weight: 200;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--blue-3);
  background: none;
  width: auto;
  height: auto;
  border-radius: 0;
}

.step-label {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  padding: 0.3rem 0.55rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-soft);
}

.step-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.step h3 {
  margin: 0 0 0.55rem;
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.3;
  text-wrap: balance;
}

.step-help {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  text-wrap: pretty;
  color: var(--ink-muted);
}

/* Soft staggered reveal delays already via data-delay */

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--white);
  cursor: pointer;
}

.menu-bar {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--blue-1);
  border-radius: 1px;
  transition: transform 0.25s var(--ease), opacity 0.2s;
}

.menu-toggle[aria-expanded="true"] .menu-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-bar:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] .menu-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Buttons — color/shadow only, no move on hover */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.8rem 1.35rem;
  border-radius: var(--radius-sm);
  font-size: 0.975rem;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease),
    border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background: var(--blue-3);
  color: #fff;
  border-color: var(--blue-3);
}

.btn-primary:hover {
  background: var(--blue-2);
  border-color: var(--blue-2);
  color: #fff;
  box-shadow: var(--shadow-md);
  transform: none;
}

.btn-secondary {
  background: var(--white);
  color: var(--blue-1);
  border-color: var(--border);
}

.btn-secondary:hover {
  border-color: var(--blue-3);
  color: var(--blue-2);
  box-shadow: var(--shadow-sm);
  transform: none;
}

.btn-ghost {
  background: transparent;
  color: var(--ink-muted);
  border-color: var(--border);
  cursor: not-allowed;
  opacity: 0.75;
}

.btn-ghost:hover {
  transform: none;
  box-shadow: none;
}

.btn-sm {
  padding: 0.5rem 0.95rem;
  font-size: 0.875rem;
}

.btn-block {
  width: 100%;
}

.btn:disabled {
  cursor: not-allowed;
  transform: none;
}

/* Hero */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-top: clamp(3rem, 10vw, 5.5rem);
  padding-bottom: clamp(3.5rem, 10vw, 6rem);
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

/* Full-bleed background video */
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  /* Keep content readable; video stays decorative */
  opacity: 0.55;
  transform: scale(1.04);
}

.hero-media-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      105deg,
      rgba(255, 255, 255, 0.94) 0%,
      rgba(255, 255, 255, 0.82) 42%,
      rgba(255, 255, 255, 0.62) 100%
    ),
    linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.35) 0%,
      rgba(255, 255, 255, 0.55) 100%
    );
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}

.hero-main {
  max-width: 36rem;
}

.hero-title {
  margin-bottom: 1.25rem;
}

.hero-title-accent {
  color: var(--blue-2);
  font-weight: 300;
}

.hero-sub {
  font-size: 1.125rem;
  max-width: 40ch;
  margin-bottom: 1.75rem;
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-focus-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  min-width: 0;
}

/* Outside the card — light, editorial, matches home type */
.hero-focus-kicker {
  margin: 0;
  padding: 0 0.15rem;
  font-size: clamp(1.2rem, 2.2vw, 1.45rem);
  font-weight: 200;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: var(--ink);
}

.hero-focus-kicker-accent {
  color: var(--blue-2);
  font-weight: 300;
}

.hero-focus {
  --spot-x: 50%;
  --spot-y: 30%;
  position: relative;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}

.hero-focus::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    260px circle at var(--spot-x) var(--spot-y),
    rgba(48, 85, 168, 0.12),
    transparent 62%
  );
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 0;
}

.hero-focus.is-spot-active::after {
  opacity: 1;
}

.hero-focus > * {
  position: relative;
  z-index: 1;
}

.hero-focus.is-spot-active {
  box-shadow: var(--shadow-md);
  border-color: #d5dce8;
}

/* Soft desktop cursor glow (pointer-fine only) */
.pointer-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 40;
  opacity: 0;
  background: radial-gradient(
    circle,
    rgba(48, 85, 168, 0.1) 0%,
    rgba(48, 85, 168, 0.035) 45%,
    transparent 70%
  );
  transform: translate3d(-50%, -50%, 0);
  transition: opacity 0.25s ease;
  will-change: transform, opacity;
}

.pointer-glow.is-visible {
  opacity: 1;
}

.pointer-glow.is-dimmed {
  opacity: 0.25;
}

.hero-focus-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
}

.hero-focus-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  align-items: start;
  padding: 1.05rem 1.4rem;
  border-bottom: 1px solid var(--border);
  transition: background 0.2s var(--ease);
}

.hero-focus-list li:last-child {
  border-bottom: none;
}

.hero-focus-list li:hover {
  background: var(--bg-soft);
}

.hero-focus-index {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--blue-3);
  line-height: 1.6;
  padding-top: 0.1rem;
  min-width: 1.5rem;
}

.hero-focus-body h3 {
  margin: 0 0 0.25rem;
  font-size: 0.975rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
  line-height: 1.35;
}

.hero-focus-body p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--ink-muted);
  text-wrap: pretty;
}

/* Cards */
.card-grid {
  display: grid;
  gap: 1.25rem;
}

.card-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.card {
  --spot-x: 50%;
  --spot-y: 40%;
  position: relative;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}

/* Pointer spotlight (position driven by JS, pixel coords) */
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    280px circle at var(--spot-x) var(--spot-y),
    rgba(48, 85, 168, 0.13),
    transparent 62%
  );
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 0;
}

.card.is-spot-active::after {
  opacity: 1;
}

.card > * {
  position: relative;
  z-index: 1;
}

.card:hover,
.card.is-spot-active {
  box-shadow: var(--shadow-md);
  border-color: #d5dce8;
}

/* Contact form should not lift or spotlight-shift */
.card.form:hover,
.card.form.is-spot-active {
  box-shadow: var(--shadow-sm);
  border-color: var(--border);
  transform: none;
}

.card.form::after {
  display: none;
}

.card-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--bg-soft);
  color: var(--blue-2);
  margin-bottom: 1rem;
}

.card h3 {
  margin-bottom: 0.5rem;
}

/* Check list */
.check-list {
  list-style: none;
  margin-top: 1.25rem;
}

.check-list li {
  position: relative;
  padding: 0.45rem 0 0.45rem 1.6rem;
  color: var(--ink-muted);
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.85rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--blue-3);
  box-shadow: 0 0 0 3px rgba(48, 85, 168, 0.15);
}

/* Services */
.service-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.service-card p {
  flex: 1;
  margin-bottom: 1.25rem;
}

.service-top {
  margin-bottom: 0.75rem;
}

.service-top h3 {
  margin-top: 0.75rem;
  margin-bottom: 0;
}

.pill {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
}

.pill-live {
  background: rgba(48, 85, 168, 0.12);
  color: var(--blue-3);
}

.pill-soon {
  background: var(--bg-soft);
  color: var(--ink-muted);
  border: 1px solid var(--border);
}

/* Forms */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form:hover {
  transform: none;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-field label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink);
}

.optional {
  font-weight: 400;
  color: var(--ink-muted);
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--ink);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: #9aa3b2;
}

.form-field input:hover,
.form-field textarea:hover {
  border-color: #c8d0dc;
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--blue-3);
}

.form-field input.is-invalid,
.form-field textarea.is-invalid {
  border-color: #c0392b;
}

.form-note {
  min-height: 1.25rem;
  margin: 0;
  font-size: 0.9rem;
  color: var(--blue-2);
}

.form-note.is-error {
  color: #c0392b;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 3rem 0 1.5rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 1.8fr;
  gap: 2.5rem;
  padding-bottom: 2rem;
}

.footer-brand p {
  margin-top: 1rem;
  max-width: 32ch;
  font-size: 0.95rem;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.footer-heading {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 0.85rem;
}

.footer-links a,
.footer-muted {
  display: block;
  font-size: 0.95rem;
  color: var(--ink-muted);
  text-decoration: none;
  margin-bottom: 0.45rem;
}

.footer-links a:hover {
  color: var(--blue-3);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  font-size: 0.875rem;
  color: var(--ink-muted);
}

.footer-bottom p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.875rem;
}

.footer-legal {
  display: flex;
  gap: 1rem;
}

.footer-legal a {
  color: var(--ink-muted);
  text-decoration: none;
}

.footer-legal a:hover {
  color: var(--blue-3);
}

/* Animations */
.hero-animate {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.hero-animate.is-in {
  opacity: 1;
  transform: none;
}

.hero-animate[data-delay="0"] { transition-delay: 0.05s; }
.hero-animate[data-delay="1"] { transition-delay: 0.12s; }
.hero-animate[data-delay="2"] { transition-delay: 0.2s; }
.hero-animate[data-delay="3"] { transition-delay: 0.28s; }
.hero-animate[data-delay="4"] { transition-delay: 0.36s; }

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-animate,
  .reveal,
  .btn,
  .card,
  .step,
  .step::before,
  .nav-link,
  .site-header {
    transition: none !important;
  }

  .hero-animate,
  .reveal {
    opacity: 1;
    transform: none;
  }

  .step::before {
    transform: scaleX(1);
  }

  .pointer-glow {
    display: none !important;
  }

  .card::after,
  .step::after,
  .hero-focus::after {
    display: none;
  }

  /* No autoplay distraction when user prefers reduced motion */
  .hero-video {
    display: none;
  }

  .hero-media {
    background:
      url("../assets/videos/hero-bg-poster.jpg") center / cover no-repeat;
    opacity: 0.35;
  }

  .hero-media-overlay {
    background: rgba(255, 255, 255, 0.88);
  }
}

/* Responsive */
@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .hero-main {
    max-width: none;
  }

  .card-grid-3 {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-links {
    grid-template-columns: 1fr 1fr;
  }
}

/* How it works: stack to 1×4 on smaller viewports */
@media (max-width: 768px) {
  .steps {
    grid-template-columns: 1fr;
    gap: 0.9rem;
  }
}

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

  .menu-toggle {
    display: flex;
  }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.75rem 1rem 1.25rem;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s var(--ease), opacity 0.3s var(--ease), visibility 0.3s;
  }

  .nav.is-open {
    transform: none;
    opacity: 1;
    visibility: visible;
  }

  .nav-link {
    padding: 0.85rem 0.25rem;
    border-bottom: 1px solid var(--border);
  }

  .nav-link.is-active {
    border-bottom-color: var(--border);
    color: var(--blue-3);
  }

  .footer-links {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .footer-links {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
  }
}
