:root{
  --navy: #16233f;
  --navy-2: #1f3358;
  --silver: #8a97ab;
  --silver-light: #eef1f5;
  --accent: #ff7a1a;
  --accent-dark: #e2670f;
  --white: #ffffff;
  --ink: #1a2233;
  --muted: #5b6576;
  --radius: 14px;
  --shadow: 0 20px 50px -25px rgba(22,35,63,0.35);
  --container: 1180px;
  --font-display: 'Archivo', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-sans: 'Public Sans', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  /* Hero/header composition: deeper navy for the film-like overlay, a wider
     shell than the text container and one shared gutter so the nav bar and the
     hero copy sit on the same vertical line. */
  --ink-deep: 5, 20, 42;
  --shell: 1440px;
  --gutter: clamp(24px, 6vw, 100px);
  --header-h: 68px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  font-size: 16px;
}

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

html{
  scroll-behavior: smooth;
  /* The nav bar floats over the page, so anchored sections stop below it */
  scroll-padding-top: calc(var(--header-h) + 34px);
}

body{
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4{
  font-family: var(--font-display);
  letter-spacing: -0.025em;
}

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

a{ color: inherit; text-decoration: none; }

.container{
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link{
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy);
  color: var(--white);
  padding: 10px 16px;
  border-radius: 0 0 8px 0;
  z-index: 200;
}
.skip-link:focus{ left: 0; }

/* Buttons */
.btn{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  white-space: nowrap;
}
.btn:hover{ transform: translateY(-2px); }

.btn-primary{
  background: var(--navy);
  color: var(--white);
  box-shadow: 0 12px 24px -12px rgba(22,35,63,0.6);
}
.btn-primary:hover{ background: var(--navy-2); }

.btn-lg{ padding: 15px 28px; font-size: 1rem; }

/* ==========================================================================
   HEADER — nav bar floating over the hero video
   ========================================================================== */
.site-header{
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  padding-top: 18px;
  /* only the bar itself catches the pointer, the rest of the hero stays live */
  pointer-events: none;
}
.header-shell{
  max-width: var(--shell);
  margin: 0 auto;
  padding-inline: var(--gutter);
}
.nav-bar{
  pointer-events: auto;
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.4vw, 38px);
  height: var(--header-h);
  padding: 0 8px;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(var(--ink-deep), 0.55);
  -webkit-backdrop-filter: blur(16px) saturate(130%);
  backdrop-filter: blur(16px) saturate(130%);
  transition: background-color .35s ease, border-color .35s ease;
}
/* Past the hero the bar sits on white sections, so it firms up */
.site-header.is-solid .nav-bar{
  background: rgba(var(--ink-deep), 0.92);
  border-color: rgba(255,255,255,0.09);
}
@supports not ((backdrop-filter: blur(2px)) or (-webkit-backdrop-filter: blur(2px))){
  .nav-bar{ background: rgba(var(--ink-deep), 0.9); }
}

.brand{
  display: flex;
  align-items: center;
  padding-inline: 10px;
}
/* The logo file is a square canvas with the artwork in a centred band, so this
   frames the artwork instead of scaling the empty space with it. White on the
   navy bar, the same treatment the footer already uses. */
.brand-logo{
  --logo-h: 42px;
  height: var(--logo-h);
  width: calc(var(--logo-h) * 500 / 163);
  object-fit: cover;
  object-position: 50% 44.2%;
  filter: brightness(0) invert(1);
  opacity: 0.95;
}

.nav{
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 32px);
  flex: 1;
}
.nav > a:not(.nav-cta){
  position: relative;
  padding: 10px 1px;
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
  color: rgba(255,255,255,0.74);
  transition: color .25s ease;
}
.nav > a:not(.nav-cta)::after{
  content: "";
  position: absolute;
  left: 1px;
  right: 1px;
  bottom: 6px;
  height: 1px;
  background: currentColor;
  opacity: 0;
  transform: scaleX(.3);
  transform-origin: left;
  transition: opacity .25s ease, transform .35s var(--ease-out);
}
.nav > a:not(.nav-cta):hover{ color: var(--white); }
.nav > a:not(.nav-cta):hover::after{ opacity: .45; transform: none; }

.nav-cta{
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: calc(var(--header-h) - 16px);
  padding-inline: 18px;
  border-radius: 15px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--white);
  white-space: nowrap;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.16);
  transition: background-color .25s ease, border-color .25s ease;
}
.nav-cta:hover{
  background: rgba(255,255,255,0.18);
  border-color: rgba(255,255,255,0.3);
}
.icon-arrow{ transition: transform .25s var(--ease-out); }
.nav-cta:hover .icon-arrow{ transform: translateX(4px); }

.nav-toggle{
  display: none;
  position: relative;
  margin-left: auto;
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  cursor: pointer;
}
.nav-toggle span{
  position: absolute;
  left: 12px;
  right: 12px;
  height: 1.5px;
  background: var(--white);
  border-radius: 2px;
  transition: transform .35s var(--ease-out);
}
.nav-toggle span:first-child{ top: 19px; }
.nav-toggle span:last-child{ top: 25px; }
.nav-toggle[aria-expanded="true"] span:first-child{ transform: translateY(3px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child{ transform: translateY(-3px) rotate(-45deg); }

.site-header :focus-visible{
  outline: 2px solid rgba(255,255,255,0.7);
  outline-offset: 4px;
  border-radius: 6px;
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero{
  position: relative;
  display: grid;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  background: rgb(var(--ink-deep));
  color: var(--white);
  padding: calc(var(--header-h) + 54px) 0 46px;
}
.hero-bg{ position: absolute; inset: 0; overflow: hidden; }
.hero-video{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
/* Cinematic grade: dark enough on the left to carry the type, open on the
   right so the technician and the panels stay readable */
.hero-overlay{
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg,
      rgba(var(--ink-deep), 0.45) 0%,
      rgba(var(--ink-deep), 0) 24%,
      rgba(var(--ink-deep), 0) 66%,
      rgba(var(--ink-deep), 0.45) 100%),
    linear-gradient(90deg,
      rgba(var(--ink-deep), 0.9) 0%,
      rgba(var(--ink-deep), 0.78) 35%,
      rgba(var(--ink-deep), 0.42) 65%,
      rgba(var(--ink-deep), 0.16) 100%);
}

.hero-shell{
  position: relative;
  z-index: 1;
  align-self: stretch;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: 1fr auto;
  column-gap: 40px;
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding-inline: var(--gutter);
}
.hero-content{ grid-area: 1 / 1; align-self: center; max-width: 51rem; }

.hero-eyebrow{
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 0 26px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.72);
}
.hero-rule{
  flex: none;
  width: clamp(28px, 4vw, 54px);
  height: 1px;
  background: var(--accent);
}

.hero-title{
  margin: 0 0 22px;
  font-family: var(--font-serif);
  font-optical-sizing: auto;
  font-weight: 500;
  font-size: clamp(2.5rem, min(1.5rem + 3.9vw, 10.6vh), 5.1rem);
  line-height: 1.03;
  letter-spacing: -0.022em;
  color: #f5f2ea;
}
.hero-title-line{ display: block; }
.hero-title-accent{ color: var(--accent); }

.hero-sub{
  max-width: 38rem;
  margin: 0 0 34px;
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.12rem);
  line-height: 1.62;
  color: rgba(255,255,255,0.8);
}

.hero-actions{
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 40px;
}
.hero-btn{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 60px;
  padding-inline: 28px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 1rem;
  font-weight: 600;
  transition: transform .25s var(--ease-out), background-color .25s ease,
              border-color .25s ease, box-shadow .25s ease;
}
/* Navy ink on the brand orange: white on this orange only reaches 2.6:1 */
.hero-btn-primary{
  background: var(--accent);
  color: #12203a;
  box-shadow: 0 12px 30px -14px rgba(255,122,26,0.75);
}
.hero-btn-primary:hover{
  transform: translateY(-2px);
  background: #ff8a33;
  box-shadow: 0 18px 38px -14px rgba(255,122,26,0.85);
}
.hero-btn-ghost{
  color: var(--white);
  border-color: rgba(255,255,255,0.5);
}
.hero-btn-ghost:hover{
  transform: translateY(-2px);
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.78);
}
.hero-btn:hover .icon-arrow{ transform: translateX(4px); }
.hero-btn:focus-visible{
  outline: 2px solid rgba(255,255,255,0.8);
  outline-offset: 3px;
}

.hero-trust{
  --trust-gap: clamp(18px, 2.4vw, 34px);
  display: flex;
  flex-wrap: wrap;
  gap: var(--trust-gap);
  margin: 0;
  padding: 0;
  list-style: none;
}
.hero-trust li{
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 0.82rem;
  line-height: 1.38;
  color: rgba(255,255,255,0.76);
}
.hero-trust li + li::before{
  content: "";
  position: absolute;
  left: calc(var(--trust-gap) / -2);
  top: 3px;
  bottom: 3px;
  width: 1px;
  background: rgba(255,255,255,0.16);
}
.hero-trust svg{ flex: none; color: rgba(255,255,255,0.5); }

.hero-badge{
  /* second column, anchored to the bottom of the content row */
  grid-area: 1 / 2;
  align-self: end;
  width: 224px;
  padding: 22px 24px 24px;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(var(--ink-deep), 0.5);
  -webkit-backdrop-filter: blur(10px) saturate(120%);
  backdrop-filter: blur(10px) saturate(120%);
}
.hero-badge svg{ color: var(--accent); }
.hero-badge-title{
  margin: 14px 0 8px;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 2rem;
  line-height: 1;
  letter-spacing: -0.02em;
  color: #f5f2ea;
}
.hero-badge-text{
  margin: 0;
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  line-height: 1.75;
  text-transform: uppercase;
  color: rgba(255,255,255,0.62);
}

.hero-note{
  grid-area: 2 / 1 / 3 / -1;
  margin-top: 26px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.62rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.42);
}
.hero-note-rule{
  width: 1px;
  height: 26px;
  background: linear-gradient(rgba(255,255,255,0), rgba(255,255,255,0.5));
}

@media (min-width: 768px) and (max-height: 860px){
  .hero{ padding-top: calc(var(--header-h) + 30px); padding-bottom: 34px; }
  .hero-eyebrow{ margin-bottom: 20px; }
  .hero-title{ margin-bottom: 18px; }
  .hero-sub{ margin-bottom: 26px; }
  .hero-actions{ margin-bottom: 32px; }
  .hero-note{ margin-top: 18px; }
}

/* Entrance — the held state is applied before the first paint (see the inline
   script in index.html) so nothing flashes in and out */
html.js .hero [data-anim]{ opacity: 0; }
html.js.hero-ready .hero [data-anim]{
  animation: hero-rise .8s var(--ease-out) both;
  animation-delay: var(--d, 0s);
}
.hero-eyebrow{ --d: .05s; --rise: 10px; }
.hero-title{ --d: .14s; --rise: 20px; }
.hero-sub{ --d: .26s; }
.hero-actions{ --d: .36s; }
.hero-trust{ --d: .46s; }
.hero-badge{ --d: .56s; }
.hero-note{ --d: .66s; }

@keyframes hero-rise{
  from{ opacity: 0; transform: translate3d(0, var(--rise, 16px), 0); }
  to{ opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce){
  html.js .hero [data-anim]{ opacity: 1; }
  html.js.hero-ready .hero [data-anim]{ animation: none; }
}

.eyebrow{
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--silver);
  margin: 0 0 14px;
}
/* Sections */
.section{ padding: 100px 0; }
.section-alt{ background: var(--silver-light); }

.section h2{
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin: 0 0 14px;
  max-width: 660px;
}
.section-sub{
  color: var(--muted);
  max-width: 560px;
  margin: 0 0 48px;
  font-size: 1.05rem;
}

/* Services: one full-width feature card, then the rest flowing so the last
   row stretches instead of leaving an empty slot */
.services-rest{
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 22px;
}
.services-rest .card{ flex: 1 1 280px; }

.card{
  position: relative;
  overflow: hidden;
  background: var(--white);
  border: 1px solid rgba(22,35,63,0.08);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.card:hover{
  transform: translateY(-4px);
  border-color: rgba(58,110,165,0.35);
  box-shadow: 0 24px 50px -22px rgba(31,72,133,0.45);
}
.card::before{
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 50%), rgba(58,110,165,0.22), transparent 70%);
  opacity: 0;
  transition: opacity .35s ease;
  pointer-events: none;
}
.card:hover::before{ opacity: 1; }
.card > *{ position: relative; z-index: 1; }
.card-icon{
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--navy);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.card h3{ margin: 0 0 10px; font-size: 1.15rem; font-weight: 700; }
.card p{ margin: 0; color: var(--muted); font-size: 0.96rem; }

/* Featured service card — carries the main offer */
.card-featured{
  background: var(--navy);
  border-color: rgba(255,255,255,0.12);
  color: var(--white);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 36px 34px;
}
.card-featured .card-icon{ background: var(--accent); }
.card-featured h3{ font-size: 1.65rem; margin-bottom: 12px; }
.card-featured p{ color: rgba(255,255,255,0.78); font-size: 1.02rem; max-width: 520px; }
.card-featured:hover{ border-color: rgba(255,122,26,0.5); }
.card-featured::before{
  background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%), rgba(255,122,26,0.28), transparent 70%);
}
.card-link{
  margin-top: 22px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--accent);
  border-bottom: 1px solid rgba(255,122,26,0.4);
  padding-bottom: 2px;
  transition: color .2s ease, border-color .2s ease;
}
.card-link:hover{ color: var(--white); border-color: var(--white); }

/* About */
.about-grid{
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: center;
}
.about-text .eyebrow{ margin-bottom: 12px; }
.about-text h2{ font-size: clamp(1.7rem, 3vw, 2.2rem); font-weight: 800; margin: 0 0 18px; }
.about-text p{ color: var(--muted); font-size: 1.02rem; margin: 0 0 28px; max-width: 480px; }

.reasons{ display: flex; flex-direction: column; gap: 28px; }
.reason{
  padding-left: 22px;
  border-left: 3px solid var(--accent);
}
.reason h4{ margin: 0 0 6px; font-size: 1.08rem; font-weight: 700; }
.reason p{ margin: 0; color: var(--muted); font-size: 0.97rem; }

/* Steps */
.steps{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 20px;
}
.step{
  padding: 26px 22px;
  border-left: 3px solid var(--accent);
  background: var(--silver-light);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.step-num{
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--accent);
  margin-bottom: 10px;
}
.step h3{ margin: 0 0 8px; font-size: 1.05rem; font-weight: 700; }
.step p{ margin: 0; color: var(--muted); font-size: 0.92rem; }

/* CTA final */
.cta-final{
  background: linear-gradient(135deg, var(--navy), var(--navy-2));
  color: var(--white);
  padding: 90px 0;
}
.cta-final-inner{ text-align: center; max-width: 620px; }
.cta-final h2{ font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 800; margin: 0 0 14px; }
.cta-final p{ color: rgba(255,255,255,0.82); margin: 0 0 30px; font-size: 1.05rem; }

/* Contact card */
.contact-card{
  position: relative;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  background: var(--white);
  border: 1px solid rgba(22,35,63,0.08);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.contact-card .corner{
  position: absolute;
  font-size: 1.5rem;
  font-weight: 300;
  line-height: 1;
  color: var(--silver);
  opacity: 0.7;
  pointer-events: none;
}
.corner-tl{ top: 12px; left: 14px; }
.corner-tr{ top: 12px; right: 14px; }
.corner-bl{ bottom: 12px; left: 14px; }
.corner-br{ bottom: 12px; right: 14px; }

.contact-info{ padding: 44px 40px; }
.contact-info h3{ margin: 0 0 12px; font-size: 1.4rem; font-weight: 800; }
.contact-info > p{ color: var(--muted); max-width: 440px; margin: 0 0 30px; }

.contact-rows{ display: flex; flex-direction: column; gap: 20px; }
.contact-row{ display: flex; align-items: flex-start; gap: 14px; }
.contact-icon{
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--silver-light);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact-label{
  margin: 0;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.contact-value{
  display: inline-block;
  margin: 2px 0 0;
  font-weight: 600;
  color: var(--ink);
}
a.contact-value:hover{ color: var(--navy-2); text-decoration: underline; }

.contact-form{
  background: var(--silver-light);
  border-left: 1px solid rgba(22,35,63,0.08);
  padding: 40px 34px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.form-field{ display: flex; flex-direction: column; gap: 6px; }
.form-field label{ font-size: 0.85rem; font-weight: 600; color: var(--ink); }
.form-field input,
.form-field textarea{
  font: inherit;
  border: 1px solid rgba(22,35,63,0.15);
  border-radius: 10px;
  padding: 10px 14px;
  background: var(--white);
  resize: vertical;
}
.form-field input:focus,
.form-field textarea:focus{
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(22,35,63,0.12);
}
.form-hint{ margin: 0; font-size: 0.8rem; color: var(--muted); }

@media (max-width: 720px){
  .contact-card{ grid-template-columns: 1fr; }
  .contact-form{ border-left: none; border-top: 1px solid rgba(22,35,63,0.08); }
}

/* Footer */
.footer{ background: var(--ink); color: rgba(255,255,255,0.75); padding: 46px 0; }
.footer-inner{ text-align: center; }
.footer-logo{ height: 40px; margin: 0 auto 14px; filter: brightness(0) invert(1); opacity: 0.9; }
.footer p{ margin: 4px 0; font-size: 0.92rem; }
.footer a:hover{ color: var(--white); }
.footer-copy{ margin-top: 16px; font-size: 0.82rem; color: rgba(255,255,255,0.45); }

/* WhatsApp floating button */
.whatsapp-float{
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 26px -10px rgba(12,90,50,0.6), inset 0 1px 0 rgba(255,255,255,0.25);
  z-index: 150;
  transition: transform .25s var(--ease-out), box-shadow .25s ease;
}
.whatsapp-float-icon{ position: relative; z-index: 1; width: 27px; height: 27px; }
.whatsapp-float:hover{
  transform: scale(1.04);
  box-shadow: 0 14px 32px -10px rgba(12,90,50,0.7), inset 0 1px 0 rgba(255,255,255,0.25);
}
.whatsapp-float:active{ transform: scale(0.97); }

/* Greets on arrival, then settles — no permanent blinking */
.whatsapp-float-ping{
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #25d366;
  opacity: 0;
  animation: whatsapp-pulse 2.6s var(--ease-out) 1.4s 3;
}

@keyframes whatsapp-pulse{
  0%{ transform: scale(1); opacity: 0.4; }
  100%{ transform: scale(1.7); opacity: 0; }
}

@media (prefers-reduced-motion: reduce){
  .whatsapp-float-ping{ animation: none; display: none; }
  .whatsapp-float{ transition: none; }
}

/* Reveal animation */
.reveal{
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.is-visible{ opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce){
  .reveal{ opacity: 1; transform: none; transition: none; }
  html{ scroll-behavior: auto; }
  .card, .card::before{ transition: none; }
  .card:hover{ transform: none; }
  .nav a{ transition: none !important; }
}

/* Responsive */
@media (max-width: 1180px){
  .hero-badge{ display: none; }
}

@media (max-width: 1023px){
  /* Below this the six links plus the CTA no longer breathe in the bar */
  .nav-toggle{ display: block; }
  .nav{
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px;
    border-radius: 22px;
    border: 1px solid rgba(255,255,255,0.12);
    /* solid: a nested backdrop-filter has no effect inside the bar's own, and
       the hero type was ghosting through a translucent panel */
    background: rgb(var(--ink-deep));
    box-shadow: 0 26px 50px -26px rgba(0,0,0,0.65);
    max-height: calc(100svh - 120px);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .25s ease, transform .35s var(--ease-out), visibility .25s;
  }
  .nav.is-open{ opacity: 1; visibility: visible; transform: none; }
  .nav > a{
    padding: 15px 14px;
    font-size: 1rem;
    color: rgba(255,255,255,0.88);
  }
  .nav > a + a{ box-shadow: inset 0 1px 0 rgba(255,255,255,0.08); }
  .nav > a:not(.nav-cta)::after{ content: none; }
  .nav-cta{
    margin: 12px 0 2px;
    height: 54px;
    justify-content: center;
    background: var(--accent);
    color: #12203a;
    border-color: transparent;
  }
  .nav-cta:hover{ background: #ff8a33; border-color: transparent; }
}

@media (max-width: 900px){
  .steps{ grid-template-columns: repeat(2, 1fr); }
  .about-grid{ grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 767px){
  /* Portrait crops the frame to its middle, which loses the technician, and a
     left-to-right grade has no room to work — so: reframe and use a flat scrim */
  .hero-video{ object-position: 68% center; }
  .hero-overlay{
    background: linear-gradient(180deg,
      rgba(var(--ink-deep), 0.86) 0%,
      rgba(var(--ink-deep), 0.7) 40%,
      rgba(var(--ink-deep), 0.62) 68%,
      rgba(var(--ink-deep), 0.84) 100%);
  }
  .hero{ padding-bottom: 72px; }
  .hero-note{ display: none; }
  .hero-trust{
    --trust-gap: 14px;
    flex-direction: column;
    align-items: flex-start;
  }
  .hero-trust li + li::before{ content: none; }
  .card-featured{ padding: 30px 26px; }
  .card-featured h3{ font-size: 1.35rem; }
  .steps{ grid-template-columns: 1fr; }
}

@media (max-width: 599px){
  .hero{ padding-top: calc(var(--header-h) + 44px); }
  .hero-title-line{ display: inline; }
  .hero-title{ margin-bottom: 18px; text-wrap: balance; }
  .hero-eyebrow{ margin-bottom: 20px; }
  .hero-sub{ margin-bottom: 30px; }
  .hero-actions{
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .hero-btn{
    justify-content: center;
    height: 56px;
    padding-inline: 20px;
    font-size: 0.95rem;
    white-space: nowrap;
  }
  .hero-actions{ margin-bottom: 34px; }
}
