/* TJ's Workplace Hearing Testing — site styles */
/* Self-hosted fonts (latin subsets, variable) */
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 700 800; font-display: swap; src: url('fonts/Manrope.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Figtree'; font-style: normal; font-weight: 400 600; font-display: swap; src: url('fonts/Figtree.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* Tokens ------------------------------------------------------------ */
:root {
  --red: #CA2128;
  --red-deep: #A5181F;
  --red-tint: #FBEBEC;
  --ink: #17202A;
  --ink-2: #26303B;
  --slate: #4B5563;
  --paper: #FFFFFF;
  --ground: #F0F2F5;
  --line: #D8DDE3;
  --line-strong: #B9C1CA;
  --ok: #1B7F4B;

  --font-display: "Manrope", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;

  --r-control: 6px;
  --r-card: 14px;

  --container: 1200px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section: clamp(4rem, 9vw, 7.5rem);
  --ease: cubic-bezier(.2,.7,.2,1);
}

/* Base -------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
[id] { scroll-margin-top: 5.5rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--ground);
  -webkit-font-smoothing: antialiased;
}
img, svg, video { display: block; max-width: 100%; }
img, video { height: auto; }
a { color: inherit; text-underline-offset: .15em; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 5.2vw, 4.3rem); font-weight: 800; letter-spacing: -0.035em; line-height: 1.04; }
h2 { font-size: clamp(2rem, 3.6vw, 3rem); }
h3 { font-size: clamp(1.35rem, 2vw, 1.6rem); }
h4 { font-size: 1.15rem; }
.lede { font-size: clamp(1.15rem, 1.6vw, 1.35rem); color: var(--slate); max-width: 58ch; line-height: 1.5; }
.measure { max-width: 64ch; }
.muted { color: var(--slate); }
strong { font-weight: 600; }

:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 2px; }
.on-ink :focus-visible, .site-footer :focus-visible { outline-color: #fff; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--ink); color: #fff; padding: .6rem 1rem; border-radius: var(--r-control);
  text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: 1rem; }

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

/* Buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 3rem; padding: .75rem 1.35rem;
  border-radius: var(--r-control); border: 1.5px solid transparent;
  font: 600 1rem/1.2 var(--font-body); text-decoration: none; cursor: pointer;
  transition: background-color .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease), transform .18s var(--ease);
  touch-action: manipulation; white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--red); color: #fff; }
.btn--primary:hover { background: var(--red-deep); }
.btn--secondary { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--secondary:hover { border-color: var(--ink); background: var(--paper); }
.on-ink .btn--secondary { color: #fff; border-color: rgba(255,255,255,.4); }
.on-ink .btn--secondary:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn--lg { min-height: 3.5rem; padding: .95rem 1.75rem; font-size: 1.0625rem; }
.btn[aria-busy="true"] { opacity: .7; pointer-events: none; }

.text-link { font-weight: 600; color: var(--red); text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.text-link svg { display: inline; vertical-align: -.15em; margin-left: .15em; }

/* Header ------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(240,242,245,.92); backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner { display: flex; align-items: center; gap: 1.5rem; min-height: 4.75rem; }
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand__logo { height: 58px; width: auto; display: block; }
@media (max-width: 960px) { .brand__logo { height: 46px; } }
.site-footer .brand__logo { height: 56px; }
.brand--plate { background: #fff; padding: .7rem .9rem; border-radius: 8px; }

.site-nav { margin-left: auto; display: flex; align-items: center; gap: 1.5rem; }
.site-nav__list { display: flex; gap: .25rem; list-style: none; }
.site-nav__list a {
  display: inline-block; padding: .5rem .7rem; border-radius: var(--r-control);
  text-decoration: none; font-weight: 500; color: var(--ink-2);
}
.site-nav__list a:hover { background: var(--paper); }
.site-nav__list a[aria-current="page"] { color: var(--red); font-weight: 600; }
.site-nav__actions { display: flex; align-items: center; gap: 1rem; }
.phone-link { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; text-decoration: none; color: var(--ink); white-space: nowrap; }
.phone-link:hover { color: var(--red); }

.nav-toggle {
  display: none; margin-left: auto; width: 3rem; height: 3rem; border: 0; background: transparent;
  cursor: pointer; border-radius: var(--r-control); position: relative;
}
.nav-toggle__bar { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px auto; transition: transform .2s var(--ease), opacity .2s; }
.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); }

@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line); padding: .5rem var(--gutter) 1.25rem;
  }
  .site-nav.is-open { display: flex; }
  .site-nav__list { flex-direction: column; gap: 0; }
  .site-nav__list a { display: block; padding: .8rem .5rem; font-size: 1.1rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .site-nav__actions { flex-direction: column; align-items: stretch; margin-top: 1rem; }
  .site-nav__actions .btn { width: 100%; }
  .phone-link { justify-content: center; padding: .6rem; }
}

/* Sections ----------------------------------------------------------- */
.section { padding-block: var(--section); }
.section--paper { background: var(--paper); }
.section--ink { background: var(--ink); color: #fff; }
.section--ink .muted, .section--ink .lede { color: rgba(255,255,255,.72); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.section-head { max-width: 56ch; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.section-head p { color: var(--slate); font-size: 1.125rem; }
.section--ink .section-head p { color: rgba(255,255,255,.72); }

/* Hero --------------------------------------------------------------- */
.hero { padding-block: clamp(3rem, 7vw, 6rem) clamp(3rem, 6vw, 5rem); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero h1 { margin-bottom: .45em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.hero__note { margin-top: 1.25rem; color: var(--slate); font-size: .95rem; }
.hero__figure { margin: 0; position: relative; }
.hero__figure img, .hero__figure video { display: block; border-radius: var(--r-card); aspect-ratio: 3 / 2; object-fit: cover; object-position: 40% 55%; width: 100%; background: var(--ink); }
.hero__caption {
  position: absolute; left: 1rem; top: 1rem; right: 1rem;
  display: flex; gap: .75rem; align-items: center;
  background: rgba(23,32,42,.85); color: #fff; backdrop-filter: blur(6px);
  padding: .75rem 1rem; border-radius: 10px; font-size: .9rem; line-height: 1.35;
}
.hero__caption svg { flex: none; color: #fff; }
@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__figure { order: -1; }
}

/* Proof strip -------------------------------------------------------- */
.proof { border-block: 1px solid var(--line); background: var(--paper); }
.proof__list { display: grid; grid-template-columns: repeat(5, 1fr); list-style: none; }
.proof__list li {
  display: flex; align-items: center; gap: .6rem;
  padding: 1rem 1.25rem 1rem 0; margin-right: 1.25rem;
  font-weight: 500; font-size: .93rem; line-height: 1.3; color: var(--ink-2);
}
.proof__list li + li { border-left: 1px solid var(--line); padding-left: 1.25rem; }
.proof__list li:last-child { margin-right: 0; padding-right: 0; }
.proof__list svg { color: var(--red); flex: none; }
@media (max-width: 1000px) {
  .proof__list { grid-template-columns: repeat(3, 1fr); }
  .proof__list li:nth-child(4) { border-left: 0; padding-left: 0; }
}
@media (max-width: 700px) {
  .proof__list { grid-template-columns: 1fr 1fr; gap: 0 1rem; }
  .proof__list li, .proof__list li + li { border: 0; padding: .6rem 0; margin: 0; }
}

/* Compliance rows ---------------------------------------------------- */
.reqs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.req {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-card);
  padding: 1.75rem; display: flex; flex-direction: column; gap: .5rem;
}
.req__rule { font-size: .9rem; color: var(--slate); font-weight: 500; }
.req h3 { margin-bottom: .1em; }
.req p { color: var(--slate); flex: 1; }
.req .text-link { margin-top: .5rem; }
@media (max-width: 900px) { .reqs { grid-template-columns: 1fr; } }

/* Steps (a real sequence) ------------------------------------------- */
.steps { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.steps li { counter-increment: step; padding-top: 1.25rem; border-top: 2px solid var(--line-strong); position: relative; }
.steps li::before {
  content: counter(step);
  font: 800 2rem/1 var(--font-display); color: var(--red); display: block; margin-bottom: .6rem;
}
.steps h3 { font-size: 1.25rem; }
.steps p { color: var(--slate); font-size: 1rem; }
.section--ink .steps li { border-top-color: rgba(255,255,255,.25); }
.section--ink .steps p { color: rgba(255,255,255,.72); }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* Audiogram feature --------------------------------------------------- */
.feature { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.feature__copy h2 { margin-bottom: .4em; }
.feature__copy p { color: var(--slate); }
.feature__list { list-style: none; margin-top: 1.25rem; display: grid; gap: .6rem; }
.feature__list li { display: flex; gap: .65rem; align-items: flex-start; }
.feature__list svg { flex: none; margin-top: .3rem; color: var(--red); }
.audiogram { margin: 0; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-card); padding: 1.25rem; }
.audiogram svg { width: 100%; height: auto; font-family: var(--font-body); }
.audiogram__caption { font-size: .9rem; color: var(--slate); margin-top: .75rem; display: flex; gap: 1.25rem; flex-wrap: wrap; }
.audiogram__caption span { display: inline-flex; align-items: center; gap: .4rem; }
.audiogram__caption i { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
@media (max-width: 860px) { .feature { grid-template-columns: 1fr; } }

/* Services ------------------------------------------------------------ */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.service {
  display: flex; flex-direction: column; background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden;
  text-decoration: none; color: inherit; transition: border-color .18s var(--ease), transform .2s var(--ease);
}
.service:hover { border-color: var(--ink); transform: translateY(-2px); }
.service img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.service__body { padding: 1.5rem 1.5rem 1.6rem; display: flex; flex-direction: column; gap: .4rem; flex: 1; }
.service__body p { color: var(--slate); flex: 1; }
.service__cta { font-weight: 600; color: var(--red); display: inline-flex; align-items: center; gap: .3rem; margin-top: .5rem; }
@media (max-width: 900px) { .services { grid-template-columns: 1fr; } .service img { aspect-ratio: 16 / 8; } }

/* Benefits ------------------------------------------------------------ */
.benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem 2.5rem; }
.benefit h3 { font-size: 1.2rem; margin-bottom: .3em; }
.benefit p { color: var(--slate); font-size: 1rem; }
.benefit svg { color: var(--red); margin-bottom: .9rem; }
@media (max-width: 900px) { .benefits { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .benefits { grid-template-columns: 1fr; } }

/* Testimonials -------------------------------------------------------- */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.quote {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-card);
  padding: 1.75rem; display: flex; flex-direction: column; gap: 1rem;
}
.quote--lead { grid-column: span 2; padding: 2.25rem; font-size: 1.25rem; }
.quote--lead blockquote { max-width: 40ch; }
.quote blockquote { margin: 0; flex: 1; }
.quote blockquote p { text-wrap: pretty; }
.quote footer { font-size: .95rem; color: var(--slate); }
.quote footer strong { display: block; color: var(--ink); }
.quote__src { display: inline-flex; align-items: center; gap: .35rem; font-size: .85rem; color: var(--slate); }
.stars { display: inline-flex; gap: 2px; color: #E0A100; }
@media (max-width: 900px) { .quotes { grid-template-columns: 1fr; } .quote--lead { grid-column: auto; font-size: 1.1rem; } }

/* Industries + area ---------------------------------------------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); }
.chip-list { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.chip-list li { padding: .45rem .85rem; border: 1px solid var(--line-strong); border-radius: 999px; font-size: .95rem; font-weight: 500; }
.section--ink .chip-list li { border-color: rgba(255,255,255,.3); }
.area-list { columns: 2; column-gap: 2rem; list-style: none; margin-top: 1rem; }
.area-list li { padding: .3rem 0; border-bottom: 1px solid var(--line); break-inside: avoid; }
.section--ink .area-list li { border-color: rgba(255,255,255,.15); }
@media (max-width: 760px) { .split { grid-template-columns: 1fr; } }

/* FAQ ------------------------------------------------------------------ */
.faq { max-width: 52rem; }
.faq details { border-top: 1px solid var(--line-strong); }
.faq details:last-child { border-bottom: 1px solid var(--line-strong); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.15rem 0; font: 700 1.2rem/1.3 var(--font-display); letter-spacing: -.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { flex: none; transition: transform .2s var(--ease); color: var(--red); }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq details > div { padding: 0 0 1.4rem; color: var(--slate); max-width: 64ch; }

/* CTA band ------------------------------------------------------------- */
.cta-band { display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: center; }
.cta-band h2 { margin-bottom: .3em; }
.cta-band p { color: rgba(255,255,255,.75); max-width: 50ch; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: .75rem; }
@media (max-width: 760px) { .cta-band { grid-template-columns: 1fr; } }

/* Form ------------------------------------------------------------------- */
.booking { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.booking__aside h2 { margin-bottom: .4em; }
.booking__aside p { color: var(--slate); }
.booking__aside .contact-lines { list-style: none; margin-top: 1.5rem; display: grid; gap: .75rem; }
.booking__aside .contact-lines li { display: flex; gap: .7rem; align-items: center; font-weight: 500; }
.booking__aside .contact-lines svg { color: var(--red); flex: none; }
.booking__aside .contact-lines a { text-decoration: none; }
.booking__aside .contact-lines a:hover { text-decoration: underline; }
@media (max-width: 860px) { .booking { grid-template-columns: 1fr; } }

.form { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-card); padding: clamp(1.5rem, 3vw, 2.5rem); }
.form fieldset { border: 0; padding: 0; margin: 0 0 1.5rem; min-width: 0; }
.form legend { font: 700 1.15rem/1.3 var(--font-display); padding: 0; margin-bottom: .75rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .form__row { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: .35rem; margin-bottom: 1rem; }
.field label { font-weight: 600; font-size: .95rem; }
.field .hint { font-size: .85rem; color: var(--slate); }
.field .req-mark { color: var(--red); }
.field input, .field select, .field textarea {
  font: inherit; color: var(--ink); background: #fff;
  border: 1.5px solid var(--line-strong); border-radius: var(--r-control);
  padding: .7rem .85rem; min-height: 3rem; width: 100%;
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.field textarea { min-height: 7rem; resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(23,32,42,.15); }
.field input[aria-invalid="true"], .field select[aria-invalid="true"] { border-color: var(--red); }
.field .error { color: var(--red-deep); font-size: .875rem; display: none; }
.field.is-invalid .error { display: block; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%2317202A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .85rem center; padding-right: 2.5rem; }

.choice-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; }
@media (max-width: 640px) { .choice-grid { grid-template-columns: 1fr; } }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice label {
  display: flex; flex-direction: column; gap: .35rem; cursor: pointer;
  border: 1.5px solid var(--line-strong); border-radius: var(--r-control); padding: .9rem 1rem .9rem 2.6rem;
  font-weight: 600; position: relative; min-height: 3rem; transition: border-color .15s var(--ease), background-color .15s var(--ease);
}
.choice label small { font-weight: 400; color: var(--slate); font-size: .85rem; }
.choice label::before {
  content: ""; position: absolute; left: 1rem; top: 1.05rem; width: 18px; height: 18px;
  border: 2px solid var(--line-strong); border-radius: 4px; background: #fff;
}
.choice label::after {
  content: ""; position: absolute; left: 1.35rem; top: 1.15rem; width: 5px; height: 10px;
  border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg) scale(0); transition: transform .15s var(--ease);
}
.choice input:checked + label { border-color: var(--red); background: var(--red-tint); }
.choice input:checked + label::before { background: var(--red); border-color: var(--red); }
.choice input:checked + label::after { transform: rotate(45deg) scale(1); }
.choice input:focus-visible + label { outline: 3px solid var(--red); outline-offset: 2px; }
.count-fields { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 1rem; }
.count-fields .field { margin-bottom: 0; }
@media (max-width: 640px) { .count-fields { grid-template-columns: 1fr; } }
.form__footer { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: .5rem; }
.form__footer .muted { font-size: .875rem; }
.form__status { margin-top: 1rem; padding: 1rem 1.15rem; border-radius: var(--r-control); font-weight: 500; display: none; }
.form__status.is-success { display: block; background: #E6F4EC; color: #14532D; border: 1px solid #A7D9B9; }
.form__status.is-error { display: block; background: var(--red-tint); color: var(--red-deep); border: 1px solid #F1B3AE; }
.hp { position: absolute; left: -9999px; }

/* Page hero (inner pages) --------------------------------------------- */
.page-hero { padding-block: clamp(3rem, 6vw, 5rem) clamp(2.5rem, 5vw, 4rem); }
.page-hero__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.page-hero h1 { font-size: clamp(2.4rem, 4.5vw, 3.8rem); }
.page-hero img, .page-hero video { display: block; border-radius: var(--r-card); aspect-ratio: 3 / 2; object-fit: cover; width: 100%; background: var(--ink); }
.page-hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
@media (max-width: 860px) { .page-hero__grid { grid-template-columns: 1fr; } }

.prose { max-width: 64ch; }
.prose h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin-top: 2em; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--ink-2); }
.prose ul { padding-left: 1.2rem; margin: 0 0 1em; }
.prose li { margin-bottom: .4em; }
.callout { background: var(--paper); border-left: 4px solid var(--red); border-radius: 0 var(--r-card) var(--r-card) 0; padding: 1.25rem 1.5rem; margin: 1.5rem 0; }
.callout p { margin: 0; }
.callout cite { display: block; font-style: normal; font-size: .9rem; color: var(--slate); margin-top: .5rem; }

.two-col { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }
.sidecard { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-card); padding: 1.75rem; position: sticky; top: 6rem; }
.sidecard h2 { font-size: 1.4rem; }
.sidecard .fact-list { list-style: none; display: grid; gap: .8rem; margin: 1.25rem 0 1.5rem; }
.sidecard .fact-list li { display: flex; gap: .65rem; align-items: flex-start; font-size: 1rem; }
.sidecard .fact-list svg { color: var(--red); flex: none; margin-top: .25rem; }
.sidecard .btn { width: 100%; }
.sidecard .phone-line { text-align: center; margin-top: .75rem; font-size: .95rem; color: var(--slate); }
.sidecard .phone-line a { font-weight: 600; color: var(--ink); text-decoration: none; }
.sidecard img, .sidecard video { display: block; width: 100%; border-radius: 10px; margin-bottom: 1.25rem; aspect-ratio: 16/10; object-fit: cover; background: var(--ink); }

/* Team --------------------------------------------------------------- */
.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.person { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-card); padding: 1.75rem; }
.person__initial {
  width: 3.5rem; height: 3.5rem; border-radius: 50%; background: var(--ink); color: #fff;
  display: grid; place-items: center; font: 800 1.4rem/1 var(--font-display); margin-bottom: 1rem;
}
.person h3 { margin-bottom: .1em; }
.person .role { color: var(--red); font-weight: 600; font-size: .95rem; margin-bottom: .75rem; }
.person p { color: var(--slate); font-size: 1rem; }
@media (max-width: 900px) { .team { grid-template-columns: 1fr; } }

.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 2rem; }
.stat-row div { border-top: 2px solid var(--line-strong); padding-top: 1rem; }
.stat-row strong { display: block; font: 800 2.2rem/1 var(--font-display); letter-spacing: -.02em; margin-bottom: .3rem; }
.stat-row span { color: var(--slate); }
@media (max-width: 560px) { .stat-row { grid-template-columns: 1fr; } }

/* Footer ------------------------------------------------------------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,.8); padding-block: 4rem 2rem; }
.site-footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1.4fr 1fr 1.1fr; gap: 2rem; }
.site-footer__brand p { margin-top: 1.25rem; max-width: 36ch; font-size: .95rem; }
.site-footer__heading { font: 600 .95rem/1.3 var(--font-body); color: #fff; margin-bottom: .9rem; letter-spacing: 0; }
.site-footer__list { list-style: none; display: grid; gap: .5rem; }
.site-footer a { color: inherit; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer__address { font-style: normal; line-height: 1.7; }
.site-footer__legal { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem 2rem; border-top: 1px solid rgba(255,255,255,.15); margin-top: 3rem; padding-top: 1.5rem; font-size: .875rem; color: rgba(255,255,255,.6); }
@media (max-width: 1100px) { .site-footer__grid { grid-template-columns: 1fr 1fr 1fr; } .site-footer__brand { grid-column: 1 / -1; } }
@media (max-width: 860px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .site-footer__grid { grid-template-columns: 1fr; } }


/* ===================================================================
   Interaction layer
   =================================================================== */

/* Header: compresses and gains a shadow once the page scrolls */
.site-header { transition: box-shadow .3s var(--ease), background-color .3s var(--ease); }
.site-header__inner { transition: min-height .3s var(--ease); }
.site-header.is-scrolled { box-shadow: 0 10px 30px -22px rgba(23,32,42,.45); background: rgba(240,242,245,.96); }
.site-header.is-scrolled .site-header__inner { min-height: 3.75rem; }
.site-header.is-scrolled .brand__logo { height: 46px; }
.brand__logo { transition: height .3s var(--ease); }

/* Phone icon rings on hover */
.phone-link svg { transform-origin: 50% 60%; }
.phone-link:hover svg { animation: ring .55s var(--ease); }
@keyframes ring { 0%,100% { transform: rotate(0); } 20% { transform: rotate(-16deg); } 40% { transform: rotate(13deg); } 60% { transform: rotate(-9deg); } 80% { transform: rotate(6deg); } }

/* Nav links: underline grows from the left */
.site-nav__list a { position: relative; }
.site-nav__list a::after { content: ""; position: absolute; left: .7rem; right: .7rem; bottom: .25rem; height: 2px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.site-nav__list a:hover::after, .site-nav__list a[aria-current="page"]::after { transform: scaleX(1); }
.site-nav__list a:hover { background: transparent; }
@media (max-width: 960px) { .site-nav__list a::after { display: none; } }

/* Buttons: lift, glow, press */
.btn { transition: background-color .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease), transform .18s var(--ease), box-shadow .18s var(--ease); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 10px 20px -12px rgba(201,38,29,.7); }
.btn--primary:active { transform: translateY(0); box-shadow: none; }
.btn--secondary:hover { transform: translateY(-2px); }
.btn[aria-busy="true"] { position: relative; color: transparent; opacity: 1; }
.btn[aria-busy="true"]::after { content: ""; position: absolute; width: 20px; height: 20px; border: 2.5px solid rgba(255,255,255,.35); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Text links: underline grows, arrow nudges */
.text-link, .service__cta { background: linear-gradient(currentColor, currentColor) no-repeat 0 100% / 0 2px; padding-bottom: 2px; transition: background-size .3s var(--ease); }
.text-link:hover { text-decoration: none; background-size: 100% 2px; }
.service:hover .service__cta { background-size: 100% 2px; }
.text-link svg, .service__cta svg { transition: transform .3s var(--ease); }
.text-link:hover svg, .service:hover .service__cta svg { transform: translateX(5px); }

/* Hero: audiogram-paper grid behind the opening, photo arrives */
.hero { position: relative; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(23,32,42,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(23,32,42,.07) 1px, transparent 1px);
  background-size: 56px 56px; background-position: center top;
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.9), transparent 92%); mask-image: linear-gradient(180deg, rgba(0,0,0,.9), transparent 92%);
}
.hero__grid { position: relative; }
.hero__figure, .page-hero img, .page-hero video { animation: arrive .9s var(--ease) both; }
.hero__caption { animation: rise .5s var(--ease) .55s both; }
@keyframes arrive { from { opacity: 0; transform: translateX(28px); } }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }

/* Proof strip */
.proof__list li { transition: color .2s var(--ease); }
.proof__list svg { transition: transform .25s cubic-bezier(.34,1.56,.64,1); }
.proof__list li:hover { color: var(--ink); }
.proof__list li:hover svg { transform: scale(1.25); }

/* Compliance cards: lift, and a "covered" badge confirms the fit */
.req { position: relative; transition: border-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease); }
.req:hover, .req:focus-within { border-color: var(--ink); transform: translateY(-4px); box-shadow: 0 24px 40px -30px rgba(23,32,42,.5); }
.req__badge { position: absolute; top: 1.25rem; right: 1.25rem; display: inline-flex; align-items: center; gap: .35rem; font-size: .8rem; font-weight: 600; color: var(--ok); opacity: 0; transform: translateY(6px); transition: opacity .25s var(--ease), transform .25s var(--ease); }
.req:hover .req__badge, .req:focus-within .req__badge { opacity: 1; transform: none; }
.req__badge svg { flex: none; }

/* Steps: the rule fills red and each number lights as the section scrolls into view */
.steps li { --fill: 0; }
.steps li::after { content: ""; position: absolute; top: -2px; left: 0; width: 100%; height: 2px; background: var(--red); transform: scaleX(var(--fill)); transform-origin: left; transition: transform .9s var(--ease); }
.section--ink .steps li::before { color: rgba(255,255,255,.28); transition: color .5s var(--ease), transform .5s var(--ease); }
.section--ink .steps li.is-active::before { color: var(--red); }
.steps li.is-active { --fill: 1; }

/* Audiogram: interactive */
.audiogram__control { display: flex; align-items: center; gap: .35rem; margin-bottom: 1rem; flex-wrap: wrap; }
.audiogram__control-label { font-size: .85rem; color: var(--slate); margin-right: .5rem; }
.seg { font: 600 .875rem/1 var(--font-body); color: var(--ink-2); background: transparent; border: 1.5px solid var(--line-strong); border-radius: 999px; padding: .5rem .9rem; cursor: pointer; min-height: 2.25rem; transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease); touch-action: manipulation; }
.seg:hover { border-color: var(--ink); }
.seg.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.audiogram .plot-line { stroke-dasharray: 800; stroke-dashoffset: 800; }
.audiogram.is-visible .plot-line { animation: draw 1.3s var(--ease) .1s forwards; }
.audiogram .plot-pt { opacity: 0; cursor: pointer; transition: r .2s var(--ease), stroke-width .2s var(--ease); outline: none; }
.audiogram .plot-pt:hover, .audiogram .plot-pt:focus-visible { r: 8; stroke-width: 3.5; }
.audiogram.is-visible .plot-pt { animation: pop .3s var(--ease) forwards; }
.audiogram.is-visible .plot-pt:nth-child(1) { animation-delay: .2s }
.audiogram.is-visible .plot-pt:nth-child(2) { animation-delay: .38s }
.audiogram.is-visible .plot-pt:nth-child(3) { animation-delay: .56s }
.audiogram.is-visible .plot-pt:nth-child(4) { animation-delay: .74s }
.audiogram.is-visible .plot-pt:nth-child(5) { animation-delay: .92s }
.audiogram.is-visible .plot-pt:nth-child(6) { animation-delay: 1.1s }
.audiogram.is-visible .plot-pt:nth-child(7) { animation-delay: 1.28s }
.audiogram .plot-note { opacity: 0; transition: opacity .3s var(--ease); }
.audiogram.is-visible .plot-note { opacity: 1; transition-delay: 1.4s; }
.audiogram .plot-tip { transition: opacity .15s var(--ease); }
.audiogram .plot-tip.is-on { opacity: 1; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { to { opacity: 1; } }

/* Service cards: photo zooms, card lifts */
.service img { transition: transform .6s var(--ease); }
.service:hover img { transform: scale(1.045); }
.service:hover { box-shadow: 0 24px 40px -30px rgba(23,32,42,.5); }

/* Benefits: a red disc grows behind the icon and the icon draws itself */
.benefit { position: relative; }
.benefit::before { content: ""; position: absolute; top: -10px; left: -10px; width: 48px; height: 48px; border-radius: 50%; background: var(--red-tint); transform: scale(0); transition: transform .3s var(--ease); }
.benefit svg { position: relative; }
.benefit svg * { stroke-dasharray: 1; stroke-dashoffset: 0; }
.benefit:hover::before { transform: scale(1); }
.benefit:hover svg * { animation: draw-icon .8s var(--ease); }
@keyframes draw-icon { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }

/* Testimonials: a drawn opening quote, gentle lift */
.quote { position: relative; transition: transform .25s var(--ease), border-color .25s var(--ease); }
.quote:hover { transform: translateY(-3px); border-color: var(--line-strong); }
.quote blockquote { position: relative; padding-top: 1.6rem; }
.quote blockquote::before { content: "\201C"; position: absolute; top: -.35rem; left: -.15rem; font: 800 3.4rem/1 var(--font-display); color: var(--red); opacity: .28; }
.quote--lead blockquote::before { font-size: 4.4rem; }
.stars span, .stars { letter-spacing: 1px; }

/* Area and industry lists */
.area-list li { transition: padding-left .2s var(--ease), color .2s var(--ease); cursor: default; }
.area-list li:hover { padding-left: .5rem; color: #fff; }
.chip-list li { transition: background-color .2s var(--ease), border-color .2s var(--ease); cursor: default; }
.chip-list li:hover { background: rgba(255,255,255,.08); border-color: #fff; }
.section--paper .chip-list li:hover, .section:not(.section--ink) .chip-list li:hover { background: var(--paper); border-color: var(--ink); }

/* FAQ: animated by script; the plus rotates, the row tints */
.faq summary { transition: color .2s var(--ease); }
.faq summary:hover { color: var(--red); }
.faq details > div { overflow: hidden; }

/* Form */
.field:focus-within label { color: var(--red); }
.choice label { transition: border-color .15s var(--ease), background-color .15s var(--ease), transform .12s var(--ease); }
.choice label:active { transform: scale(.985); }
.choice label::after { transition: transform .3s cubic-bezier(.34,1.56,.64,1); }
.count-field { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows .35s var(--ease), opacity .3s var(--ease); margin-bottom: 0; }
.count-field.is-shown { grid-template-rows: 1fr; opacity: 1; }
.count-field__inner { min-height: 0; overflow: hidden; display: flex; flex-direction: column; gap: .35rem; }
.count-fields:not(:has(.is-shown)) { margin-top: 0; }
.form legend { display: flex; align-items: center; gap: .55rem; }
.form legend::after { content: ""; width: 20px; height: 20px; border-radius: 50%; background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat; transform: scale(0); transition: transform .35s cubic-bezier(.34,1.56,.64,1); }
.form fieldset.is-complete legend::after { transform: scale(1); }
.form__status.is-success, .form__status.is-error { animation: rise .4s var(--ease); }

/* Sticky quick actions on phones */
.sticky-cta { display: none; }
@media (max-width: 860px) {
  .sticky-cta { display: grid; grid-template-columns: auto 1fr; gap: .6rem; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; padding: .6rem var(--gutter) calc(.6rem + env(safe-area-inset-bottom)); background: rgba(255,255,255,.94); backdrop-filter: blur(10px); border-top: 1px solid var(--line); transform: translateY(110%); transition: transform .35s var(--ease); }
  .sticky-cta.is-visible { transform: none; }
  .sticky-cta .btn { min-height: 2.9rem; }
  body.has-sticky-cta { padding-bottom: 4.5rem; }
}

/* Reduced motion: everything settles instantly */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; transition-duration: .001ms !important; }
  .audiogram .plot-line { stroke-dashoffset: 0; }
  .audiogram .plot-pt, .audiogram .plot-note { opacity: 1; }
  .hero__figure, .page-hero img, .page-hero video, .hero__caption { animation: none; opacity: 1; transform: none; }
}

/* Wide (16:9) page-hero image variant */

/* Hero variant B: full-bleed looping video behind the copy ------------------ */
.hero--bleed { position: relative; isolation: isolate; color: #fff; padding-block: clamp(4.5rem, 10vw, 8.5rem) clamp(4rem, 9vw, 7.5rem); min-height: min(78vh, 760px); display: flex; align-items: center; overflow: hidden; background: var(--ink); }
.hero--bleed::before { display: none; }
.hero--bleed .hero__bg { position: absolute; inset: 0; z-index: -1; }
.hero--bleed .hero__bg video { width: 100%; height: 100%; aspect-ratio: auto; border-radius: 0; object-fit: cover; object-position: 68% 60%; animation: none; opacity: .92; }
.hero--bleed .hero__bg::after { content: ""; position: absolute; inset: 0; background:
  linear-gradient(90deg, rgba(23,32,42,.92) 0%, rgba(23,32,42,.78) 38%, rgba(23,32,42,.28) 72%, rgba(23,32,42,.15) 100%),
  linear-gradient(180deg, rgba(23,32,42,.35) 0%, rgba(23,32,42,0) 30%, rgba(23,32,42,.55) 100%); }
.hero--bleed .hero__content { position: relative; max-width: var(--container); }
.hero--bleed h1 { max-width: 15ch; color: #fff; }
.hero--bleed .lede { color: rgba(255,255,255,.86); max-width: 46ch; font-size: clamp(1.2rem, 1.7vw, 1.4rem); }
.hero--bleed .hero__pill { display: inline-flex; align-items: center; gap: .5rem; margin: 1.75rem 0 0; padding: .55rem .95rem; border: 1px solid rgba(255,255,255,.3); border-radius: 999px; font-size: .9rem; font-weight: 500; color: rgba(255,255,255,.92); backdrop-filter: blur(6px); background: rgba(23,32,42,.35); }
.hero--bleed .hero__pill svg { flex: none; }
.hero--bleed .hero__note { color: rgba(255,255,255,.62); max-width: 52ch; }
.hero--bleed .btn--secondary { color: #fff; border-color: rgba(255,255,255,.45); }
.hero--bleed .btn--secondary:hover { border-color: #fff; background: rgba(255,255,255,.1); }
.hero--bleed + .proof { border-top: 0; }
@media (max-width: 860px) {
  .hero--bleed { min-height: auto; padding-block: clamp(3.5rem, 12vw, 6rem); }
  .hero--bleed .hero__bg video { object-position: 50% 50%; }
  .hero--bleed .hero__bg::after { background: linear-gradient(180deg, rgba(23,32,42,.82) 0%, rgba(23,32,42,.72) 60%, rgba(23,32,42,.9) 100%); }
}

/* Merged compliance + services cards */
.service { position: relative; }
.service .req__badge { top: .9rem; left: .9rem; right: auto; background: rgba(255,255,255,.92); padding: .3rem .6rem; border-radius: 999px; z-index: 1; }
.service .req__rule { display: block; font-size: .85rem; color: var(--slate); font-weight: 500; margin-bottom: .2rem; }
.benefits { grid-template-columns: repeat(3, 1fr); }
.quotes--two { grid-template-columns: 1fr 1fr; max-width: 60rem; }
@media (max-width: 760px) { .quotes--two { grid-template-columns: 1fr; } }
