/* Imperial Valley Advanced Imaging
   White pages with the logo's navy, teal and cyan. One typeface (Manrope), large
   text and large tap targets, because most visitors are adults and seniors. */

@font-face { font-family: "Manrope"; font-style: normal; font-weight: 200 800; font-display: swap; src: url("../fonts/manrope.woff2") format("woff2"); }

:root {
  --navy: #0b2e60;        /* second colour of the logo gradient */
  --navy-deep: #08214a;
  --teal: #0082a0;        /* first colour of the logo gradient */
  --teal-text: #007a96;   /* the teal, darkened just enough for small text on white */
  --cyan: #5cc6d0;
  --ink: #1d2b44;
  --muted: #475672;
  --tint: #f2f6fa;
  --tint-teal: #e7f4f7;
  --line: #d9e2ec;
  --white: #fff;

  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --container: 1200px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --section-y: clamp(3.5rem, 7vw, 6rem);
  --header-h: 80px;
  --radius: 16px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  interpolate-size: allow-keywords;
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--white); color: var(--ink);
  font: 400 1.125rem/1.65 var(--font);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
@media (min-width: 1100px) { body { font-size: 1.1875rem; } }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
:where(ul, ol)[role="list"] { padding: 0; list-style: none; }
a { color: var(--navy); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--teal-text); }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }
[id] { scroll-margin-top: calc(var(--header-h) + 1rem); }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.icon { flex: none; width: 1.25em; height: 1.25em; }

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100; padding: .75rem 1.25rem;
  border-radius: 10px; background: var(--navy); color: #fff; font-weight: 700;
}
.skip-link:focus { top: 1rem; color: #fff; }

/* Type */
.eyebrow {
  margin-bottom: .75rem; color: var(--teal-text);
  font-size: .875rem; font-weight: 800; letter-spacing: .12em; line-height: 1.4; text-transform: uppercase;
}
.eyebrow--light { color: var(--cyan); }
.section-title {
  color: var(--navy); font-size: clamp(2rem, 1.4rem + 2.2vw, 3rem); font-weight: 800;
  letter-spacing: -.02em; line-height: 1.12; text-wrap: balance;
}
.section-head { max-width: 46rem; margin-bottom: clamp(2.25rem, 4vw, 3.5rem); }
.section-intro, .lead { margin-top: 1rem; color: var(--muted); font-size: clamp(1.15rem, 1.05rem + .35vw, 1.3rem); line-height: 1.6; }

.tag {
  display: inline-block; padding: .3rem .8rem; border-radius: 999px;
  background: var(--tint-teal); color: var(--teal-text);
  font-size: .9rem; font-weight: 800; line-height: 1.3; white-space: nowrap;
}
.tag--strong { margin-bottom: 1rem; background: var(--navy); color: #fff; font-size: 1rem; padding: .4rem 1rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 3.25rem; padding: .8rem 1.4rem; border: 2px solid var(--navy); border-radius: 12px;
  font: 700 1.0625rem/1.2 var(--font); text-align: center; text-decoration: none; cursor: pointer;
  position: relative; isolation: isolate; overflow: hidden;
  transition: color .35s, border-color .35s, box-shadow .45s var(--ease-out), translate .6s var(--ease-out);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--btn-hover, var(--teal)); transform: translateY(102%);
  transition: transform .6s var(--ease-out);
}
.btn:hover::before, .btn:focus-visible::before { transform: none; }
.btn:hover .icon { animation: ring .6s var(--ease-out); }
@keyframes ring { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-14deg); } 55% { transform: rotate(10deg); } }
[data-magnetic] { translate: var(--mx, 0) var(--my, 0); }
.btn--lg { min-height: 3.75rem; padding-inline: 1.75rem; font-size: 1.15rem; }
.btn--primary { --btn-hover: var(--teal); background: var(--navy); color: #fff; }
.btn--primary:hover { border-color: var(--teal); color: #fff; box-shadow: 0 18px 40px -18px rgba(0, 130, 160, .85); }
.btn--outline { background: #fff; color: var(--navy); }
.btn--outline { --btn-hover: var(--tint); }
.btn--outline:hover { color: var(--navy); }
.btn--block { width: 100%; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .97);
  border-bottom: 1px solid transparent; transition: transform .55s var(--ease-out), border-color .2s, box-shadow .2s;
}
.site-header.is-hidden { transform: translateY(-100%); }
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 4px 18px rgba(11, 46, 96, .06); }
.site-header__bar { display: flex; align-items: center; gap: 1.5rem; height: var(--header-h); }
.brand { flex: none; margin-right: auto; }
.brand img { width: 136px; height: auto; }
.nav__list { display: flex; gap: .25rem; }
.nav__link {
  display: block; padding: .6rem .8rem; border-radius: 8px;
  color: var(--navy); font-size: 1.05rem; font-weight: 700; text-decoration: none;
}
.nav__link:hover { background: var(--tint); color: var(--navy); }
.btn--call { min-height: 3rem; padding: .6rem 1.1rem; }

/* Language switch: the other language's name, with a globe. Stays in the bar on phones. */
.lang-switch {
  display: inline-flex; align-items: center; gap: .45rem; min-height: 3rem; padding: .5rem .8rem; border-radius: 12px;
  color: var(--navy); font-size: 1.05rem; font-weight: 700; text-decoration: none; white-space: nowrap;
}
.lang-switch:hover { background: var(--tint); color: var(--navy); }
.lang-switch .icon { color: var(--teal); }
.lang-switch__short { display: none; }

.menu-btn {
  display: none; align-items: center; gap: .6rem; min-height: 3rem; padding: .5rem 1rem;
  border: 2px solid var(--navy); border-radius: 12px; background: #fff; color: var(--navy);
  font: 700 1.0625rem/1 var(--font); cursor: pointer;
}
.menu-btn__lines, .menu-btn__lines::before, .menu-btn__lines::after {
  display: block; width: 20px; height: 2.5px; border-radius: 2px; background: currentColor; transition: transform .2s, opacity .2s;
}
.menu-btn__lines { position: relative; }
.menu-btn__lines::before, .menu-btn__lines::after { content: ""; position: absolute; left: 0; }
.menu-btn__lines::before { top: -6.5px; }
.menu-btn__lines::after { top: 6.5px; }
.menu-btn[aria-expanded="true"] .menu-btn__lines { background: transparent; }
.menu-btn[aria-expanded="true"] .menu-btn__lines::before { transform: translateY(6.5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-btn__lines::after { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-menu {
  border-top: 1px solid var(--line); background: #fff; box-shadow: 0 16px 30px rgba(11, 46, 96, .12);
  clip-path: circle(0 at calc(100% - 3rem) 0); transition: clip-path .8s var(--ease-out);
}
.mobile-menu.is-open { clip-path: circle(150% at calc(100% - 3rem) 0); }
.mobile-menu__list > li { opacity: 0; transform: translateY(16px); transition: opacity .5s, transform .7s var(--ease-out); }
.mobile-menu.is-open .mobile-menu__list > li { opacity: 1; transform: none; }
.mobile-menu.is-open .mobile-menu__list > li:nth-child(2) { transition-delay: .05s; }
.mobile-menu.is-open .mobile-menu__list > li:nth-child(3) { transition-delay: .1s; }
.mobile-menu.is-open .mobile-menu__list > li:nth-child(4) { transition-delay: .15s; }
.mobile-menu.is-open .mobile-menu__list > li:nth-child(5) { transition-delay: .2s; }
.mobile-menu nav { padding-block: .75rem 1.5rem; }
.mobile-menu__list { margin-bottom: 1.25rem; }
.mobile-menu__list a {
  display: flex; align-items: center; min-height: 3.5rem; border-bottom: 1px solid var(--line);
  color: var(--navy); font-size: 1.3rem; font-weight: 700; text-decoration: none;
}
.mobile-menu__note { margin-top: 1rem; color: var(--muted); font-size: 1rem; }

@media (max-width: 1000px) {
  .nav, .site-header .btn--call { display: none; }
  .menu-btn { display: inline-flex; }
}
@media (max-width: 600px) {
  :root { --header-h: 68px; }
  .brand img { width: 112px; }
  .site-header__bar { gap: .75rem; }
  .lang-switch { padding-inline: .6rem; }
  .lang-switch__name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .lang-switch__short { display: inline; }
}

/* Hero */
.hero { overflow: clip; padding-block: clamp(1rem, 2.5vw, 2rem) 0; }
.hero__inner { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: center; gap: clamp(2rem, 5vw, 4rem); }
.hero__title {
  color: var(--navy); font-size: clamp(2.25rem, 1rem + 2.6vw, 3.5rem); font-weight: 800;
  letter-spacing: -.025em; line-height: 1.06;
}
.hero__title span { display: block; }
.hero__title-accent { color: var(--teal-text); }
.hero__lead { max-width: 34rem; margin-top: 1.1rem; color: var(--muted); font-size: clamp(1.2rem, 1.05rem + .45vw, 1.375rem); line-height: 1.6; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.6rem; }

.hero__media { position: relative; }
.hero__media img { position: relative; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 20px; box-shadow: 0 24px 48px rgba(11, 46, 96, .16); }

.facts {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 1.25rem;
  margin-top: clamp(1.5rem, 3vw, 2.25rem); padding-block: 1.25rem; font-size: 1.03rem;
  background: linear-gradient(var(--line), var(--line)) center top / calc(100% - 2 * var(--gutter)) 1px no-repeat;
}
.facts li { display: flex; align-items: flex-start; gap: .6rem; white-space: nowrap; color: var(--navy); font-weight: 700; line-height: 1.4; }
.facts .icon { margin-top: .1em; color: var(--teal); }
.facts a { text-decoration: none; }
.facts a:hover { text-decoration: underline; }

@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__media { max-width: 640px; }
  .facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts li { white-space: normal; }
}
@media (max-width: 560px) {
  .hero__actions .btn { width: 100%; }
  .facts { grid-template-columns: 1fr; gap: .9rem; }
}

/* Services */
.services { padding-block: var(--section-y); border-top: 1px solid var(--line); }
.modalities { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(2.5rem, 4vw, 3.5rem) clamp(1.5rem, 3vw, 2.75rem); }
.modality__media { position: relative; overflow: hidden; isolation: isolate; width: 100%; aspect-ratio: 4 / 5; margin-bottom: 1.5rem; background: #0b1a2e; }
.modality__media img { width: 100%; height: 100%; object-fit: cover; }
.modality .eyebrow { margin-bottom: .35rem; }
.modality__name { color: var(--navy); font-size: clamp(1.6rem, 1.4rem + .6vw, 1.9rem); font-weight: 800; letter-spacing: -.015em; line-height: 1.2; }
.modality__text { margin-top: .75rem; }
.modality__list { margin-top: .9rem; padding-top: .9rem; border-top: 1px solid var(--line); color: var(--muted); }
.modality__list strong { color: var(--navy); }
.types { margin-top: .9rem; border-block: 1px solid var(--line); }
.types summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 3.25rem; padding-block: .6rem;
  color: var(--navy); font-weight: 800; line-height: 1.35; cursor: pointer; list-style: none;
}
.types summary::-webkit-details-marker { display: none; }
.types summary::after {
  content: ""; flex: none; width: 1.75rem; height: 1.75rem; border-radius: 50%;
  background: var(--tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 6v12M6 12h12' stroke='%230b2e60' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E") center / 1rem no-repeat;
  transition: transform .45s var(--ease-out), background-color .3s;
}
.types summary:hover { color: var(--teal-text); }
.types[open] summary::after { transform: rotate(45deg); background-color: var(--tint-teal); }
.types::details-content { height: 0; overflow: clip; transition: height .55s var(--ease-out), content-visibility .55s allow-discrete; }
.types[open]::details-content { height: auto; }
.types__body { padding-bottom: 1rem; }
.types__group + .types__group { margin-top: 1rem; }
.types__group--focus { padding: .85rem 1rem; border-radius: 12px; background: var(--tint-teal); }
.types__head { margin-bottom: .45rem; color: var(--teal-text); font-size: .8rem; font-weight: 800; letter-spacing: .12em; line-height: 1.4; text-transform: uppercase; }
.types__list li { position: relative; padding-left: 1.05rem; line-height: 1.45; }
.types__list li + li { margin-top: .45rem; }
.types__list li::before { content: ""; position: absolute; left: 0; top: .6em; width: .4rem; height: .4rem; border-radius: 50%; background: var(--teal); }
.types__list strong { color: var(--navy); }
.modality__media[data-opens], .modality__name[data-opens] { cursor: pointer; }
.modality__also { margin-top: 1.25rem; padding: 1rem 1.15rem; border-radius: 12px; background: var(--tint-teal); }
.modality__also h4 { color: var(--navy); font-size: 1.2rem; font-weight: 800; }
.modality__also p { margin-top: .35rem; }

.soon {
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: center; gap: 1.5rem 3rem;
  margin-top: clamp(3.5rem, 6vw, 5rem); padding: clamp(1.75rem, 4vw, 2.75rem); border-radius: 20px; background: var(--tint);
}
.soon .eyebrow { margin-bottom: .4rem; }
.soon__title { color: var(--navy); font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); font-weight: 800; line-height: 1.2; }
.soon__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.soon__list li { display: flex; flex-direction: column; align-items: flex-start; gap: .5rem; padding: 1rem 0 0; border-top: 3px solid var(--navy); }
.soon__name { color: var(--navy); font-size: 1.5rem; font-weight: 800; line-height: 1.2; }

@media (max-width: 960px) {
  .modalities { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .soon { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .modalities { grid-template-columns: 1fr; gap: 3rem; }
  .modality__media { width: min(100%, 320px); }
  .soon__list { grid-template-columns: 1fr; gap: 0; }
  .soon { padding-inline: 1.25rem; }
  .soon__list li { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .4rem .75rem; padding: .9rem 0; border-top: 1px solid var(--line); }
  .soon__list li:first-child { border-top: 3px solid var(--navy); }
}

/* About */
.about { padding-block: var(--section-y); background: var(--navy); color: #e4ecf6; }
.about__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(2.5rem, 6vw, 5rem); }
.about__media img { width: 100%; border-radius: 20px; }
.about .section-title { color: #fff; margin-bottom: 1.25rem; }
.about__copy p + p { margin-top: 1rem; }
.pills { display: grid; gap: .75rem; margin-top: 2rem; }
.pills li {
  display: flex; align-items: center; gap: .75rem; padding: .9rem 1.1rem; border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .06); color: #fff; font-weight: 700; line-height: 1.4;
}
.pills .icon { color: var(--cyan); }
@media (max-width: 900px) { .about__inner { grid-template-columns: 1fr; } .about__media { max-width: 640px; } }

/* Technology */
.tech { padding-block: var(--section-y); background: var(--tint); }
.tech__inner { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: center; gap: clamp(2.5rem, 6vw, 5rem); }
.tech__copy .eyebrow { margin-bottom: .6rem; }
.ticks { display: grid; gap: .75rem; margin-top: 1.75rem; }
.ticks li { display: flex; gap: .7rem; align-items: flex-start; color: var(--navy); font-weight: 600; line-height: 1.45; }
.ticks .icon { margin-top: .1em; color: var(--teal); }
.fineprint { margin-top: 1.5rem; color: var(--muted); font-size: 1rem; }

.tech__device { justify-self: center; }
.tech__device figcaption { margin-top: 1rem; color: var(--muted); font-size: .95rem; text-align: center; }
.phone {
  width: min(300px, 78vw); padding: 12px; border-radius: 44px; background: var(--navy);
  box-shadow: 0 30px 60px rgba(11, 46, 96, .25);
}
.phone__screen { min-height: 470px; padding: 1.25rem 1rem; border-radius: 34px; background: #fff; }
.phone__bar { display: flex; align-items: center; gap: .55rem; margin: .25rem 0 1rem; color: var(--navy); font-size: 1rem; font-weight: 800; }
.report, .explain { padding: .9rem 1rem; border-radius: 14px; font-size: .95rem; line-height: 1.5; }
.report { background: var(--tint); color: var(--ink); }
.report__label, .explain__label { margin-bottom: .3rem; color: var(--muted); font-size: .75rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.report__exam { margin-bottom: .35rem; color: var(--navy); font-weight: 800; }
.explain { margin-top: .85rem; border-left: 4px solid var(--teal); background: var(--tint-teal); }
.explain__label { color: var(--teal-text); }
.explain__text { color: var(--navy); font-weight: 700; }
.explain__note { margin-top: .5rem; color: var(--muted); font-size: .8rem; }
@media (max-width: 900px) { .tech__inner { grid-template-columns: 1fr; } }

/* Your visit */
.visit { padding-block: var(--section-y); }
.steps__track { position: relative; }
.steps__rail { position: absolute; left: 0; right: 0; top: 0; height: 1px; background: rgba(11, 46, 96, .22); }
.steps__beam { position: absolute; inset: 0; height: 2px; top: -.5px; background: linear-gradient(90deg, var(--cyan), var(--teal)); transform: scaleX(var(--progress, 0)); transform-origin: left; }
.steps { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem clamp(1.5rem, 3vw, 2.75rem); }
.step { position: relative; padding-top: 2.25rem; }
.step::before { content: ""; position: absolute; top: -7px; left: 0; width: 14px; height: 14px; border: 2px solid var(--teal); border-radius: 50%; background: #fff; transition: background-color .5s, box-shadow .5s; }
.step.is-lit::before { background: var(--cyan); border-color: var(--cyan); box-shadow: 0 0 0 6px rgba(92, 198, 208, .22); }
.step__num {
  display: grid; place-items: center; width: 3rem; height: 3rem; margin-bottom: 1rem; border-radius: 50%;
  background: var(--navy); color: #fff; font-size: 1.3rem; font-weight: 800;
}
.step h3 { margin-bottom: .5rem; color: var(--navy); font-size: 1.4rem; font-weight: 800; line-height: 1.25; }
.faq { max-width: 52rem; margin-top: clamp(3rem, 6vw, 4.5rem); }
.faq__title { margin-bottom: .75rem; color: var(--navy); font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); font-weight: 800; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4rem; padding-block: .85rem;
  color: var(--navy); font-size: 1.2rem; font-weight: 700; line-height: 1.4; cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 1.75rem; height: 1.75rem; border-radius: 50%;
  background: var(--tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 6v12M6 12h12' stroke='%230b2e60' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E") center / 1rem no-repeat;
}
.faq summary::after { transition: transform .45s var(--ease-out), background-color .3s; }
.faq details[open] summary::after { transform: rotate(45deg); background-color: var(--tint-teal); }
.faq details::details-content { height: 0; overflow: clip; transition: height .55s var(--ease-out), content-visibility .55s allow-discrete; }
.faq details[open]::details-content { height: auto; }
.faq details p { padding-bottom: 1.25rem; max-width: 44rem; }
@media (max-width: 800px) {
  .steps__rail { left: 6px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; }
  .steps__beam { left: -.5px; width: 2px; height: 100%; top: 0; background: linear-gradient(180deg, var(--cyan), var(--teal)); transform: scaleY(var(--progress, 0)); transform-origin: top; }
  .steps { grid-template-columns: 1fr; gap: 2.25rem; }
  .step { padding: 0 0 0 2.6rem; }
  .step::before { top: .9rem; }
}

/* Contact */
.contact { padding-block: var(--section-y); background: var(--tint); }
.contact__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; gap: clamp(2.5rem, 6vw, 5rem); }
.contact__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }
.contact__list { display: grid; gap: 0; padding: .5rem clamp(1.25rem, 3vw, 2rem); border-radius: 20px; background: #fff; }
.contact__list > div { padding-block: 1.1rem; border-top: 1px solid var(--line); }
.contact__list > div:first-child { border-top: 0; }
.contact__list dt { display: flex; align-items: center; gap: .5rem; margin-bottom: .25rem; color: var(--teal-text); font-size: .9rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.contact__list dd { color: var(--navy); font-size: 1.25rem; font-weight: 700; line-height: 1.45; }
.contact__list dd a { text-decoration: none; }
.contact__list dd a:hover { text-decoration: underline; }
@media (max-width: 900px) { .contact__inner { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .contact__actions .btn { width: 100%; } }

/* 404 */
.error-page { padding-block: clamp(4rem, 12vw, 8rem); }
.error-page .lead { max-width: 36rem; }

/* Footer */
.site-footer { padding-top: clamp(3rem, 6vw, 4.5rem); background: var(--navy-deep); color: #d5e0ee; font-size: 1.05rem; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--cyan); }
.site-footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 2.5rem; padding-bottom: 3rem; }
.site-footer__brand img { width: 210px; }
.site-footer__slogan { margin-top: 1.25rem; color: #fff; font-size: 1.2rem; font-weight: 700; line-height: 1.4; }
.site-footer__head { margin-bottom: .75rem; color: var(--cyan); font-size: .875rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.site-footer__col p + p { margin-top: .75rem; }
.site-footer__col li + li { margin-top: .4rem; }
.site-footer__col a { text-decoration: none; }
.site-footer__col a:hover { text-decoration: underline; }
.site-footer__phone { font-size: 1.35rem; font-weight: 800; }
.site-footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; padding-block: 1.5rem; border-top: 1px solid rgba(255, 255, 255, .14); font-size: .95rem; }
.site-footer__credits { flex-basis: 100%; color: #a9b9cf; font-size: .85rem; line-height: 1.5; }
.site-footer__credits a { color: inherit; }
@media (max-width: 900px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } .site-footer__brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .site-footer__grid { grid-template-columns: 1fr; } }

/* Call bar: phones and small tablets */
.callbar { display: none; }
@media (max-width: 900px) {
  .callbar {
    position: fixed; inset: auto 0 0; z-index: 40; display: grid; gap: .6rem;
    /* Directions is never narrower than its label, so neither button is cramped */
    grid-template-columns: minmax(0, 1fr) minmax(max-content, .62fr);
    padding: .6rem var(--gutter) calc(.6rem + env(safe-area-inset-bottom));
    background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(11, 46, 96, .08);
    transform: translateY(160%); transition: transform .6s var(--ease-out);
  }
  .callbar.is-visible { transform: none; }
  /* Both buttons share one shape: same height, border, radius, padding and type; only the fill differs */
  .callbar a {
    display: flex; align-items: center; justify-content: center; gap: .5rem; min-height: 3.5rem; padding: .5rem 1rem;
    border: 2px solid var(--navy); border-radius: 12px;
    font-size: 1.05rem; font-weight: 800; line-height: 1.2; white-space: nowrap; text-decoration: none;
  }
  .callbar__call, .callbar__call:hover, .callbar__call:active { background: var(--navy); color: #fff; }
  .callbar__dir, .callbar__dir:hover, .callbar__dir:active { background: #fff; color: var(--navy); }
  .callbar__dir:active { background: var(--tint); }
}

/* Animations carried over from the original site */
.js .hero__title .line { display: block; overflow: hidden; padding: 0 .1em .08em 0; margin-bottom: -.08em; }
.js .hero__title .line > span { display: inline-block; transform: translateY(108%); transition: transform 1.3s var(--ease-out); }
.js .hero__title .line:nth-child(2) > span { transition-delay: .12s; }
.js .hero__title .line:nth-child(3) > span { transition-delay: .24s; }
.js .hero .eyebrow, .js .hero__lead, .js .hero__actions, .js .facts { opacity: 0; transform: translateY(18px); transition: opacity 1s var(--ease-out), transform 1.2s var(--ease-out); }
.js .hero__lead { transition-delay: .35s; }
.js .hero__actions { transition-delay: .5s; }
.js .facts { transition-delay: .75s; }
.js .hero__photo { clip-path: inset(100% -60px 0 -60px round 20px); transition: clip-path 1.5s var(--ease-out) .2s; }
.hero.is-loaded .hero__title .line > span,
.hero.is-loaded .eyebrow, .hero.is-loaded .hero__lead, .hero.is-loaded .hero__actions, .hero.is-loaded .facts { opacity: 1; transform: none; }
.hero.is-loaded .hero__photo { clip-path: inset(-60px round 20px); }

.scanbeam {
  position: absolute; inset: 0 0 auto; z-index: 2; height: 38%; pointer-events: none;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 201, 211, .05) 55%, rgba(0, 201, 211, .16) 93%, rgba(190, 252, 255, .55) 99.5%, transparent 100%);
  mix-blend-mode: screen; transform: translateY(-110%);
  animation: scan 7.5s var(--ease-in-out) 2.4s infinite;
}
@keyframes scan { 0% { transform: translateY(-110%); } 42%, 100% { transform: translateY(280%); } }
.js .modality__media { clip-path: inset(100% 0 0 0); transition: clip-path 1.5s var(--ease-out) .2s; }
.js .modality.is-in .modality__media { clip-path: inset(0); }

.js [data-scrolllit] .w { opacity: .16; transition: opacity .5s var(--ease-out); }
.js [data-scrolllit] .w.is-lit { opacity: 1; }

.explain__label { display: flex; align-items: center; gap: .45rem; }
.explain__spark { width: 9px; height: 9px; border-radius: 50%; background: conic-gradient(var(--cyan), var(--teal), var(--navy), var(--cyan)); animation: spin 3s linear infinite; }
@keyframes spin { to { rotate: 1turn; } }
.explain__text { min-height: 4.5em; }
.explain__text.is-typing::after { content: ""; display: inline-block; width: 2px; height: 1em; margin-left: 2px; vertical-align: -.12em; background: var(--teal); animation: caret .9s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }

.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease-out), transform 1.15s var(--ease-out); transition-delay: var(--d, 0s); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-split] .word { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .06em .1em 0; margin: 0 -.06em -.1em 0; }
.js [data-split] .word > span { display: inline-block; transform: translateY(110%); transition: transform 1.15s var(--ease-out); transition-delay: calc(var(--i, 0) * 55ms); }
.js [data-split].is-in .word > span { transform: none; }

@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .35s var(--ease-out) both; }
::view-transition-new(root) { animation: vt-in .55s var(--ease-out) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-12px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(14px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .scanbeam { display: none; }
  .js [data-reveal], .js [data-split] .word > span { opacity: 1; transform: none; }
}

@media print {
  .site-header, .callbar { display: none; }
}
