/* Penllŷn PAT Testing: homepage design
   Palette from the client's logo: navy #274472 and gold #C6AB7C. */

:root {
  --navy-950: #0B1A31;
  --navy-900: #0E2240;
  --navy-800: #122B4F;       /* matches the equipment studio backdrop */
  --navy: #274472;           /* logo navy */
  --navy-600: #33578C;
  --gold: #C6AB7C;           /* logo gold */
  --gold-light: #DCC79F;
  --gold-ink: #7A6236;       /* gold dark enough for text on mist */
  --mist: #E8EDF0;
  --mist-2: #DAE2E7;
  --paper: #F7F8F8;
  --ink: #13213A;
  --ink-soft: #3D4C63;
  --pass: #2F8A57;

  --f-display: 'Brygada 1918', Georgia, serif;
  --f-body: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-label: 'Barlow Condensed', 'Arial Narrow', sans-serif;

  --gutter: clamp(16px, 4vw, 64px);
  --maxw: 1560px;
  --header-h: 104px;
  --pad-y: clamp(72px, 9vh, 124px);
  --radius: 14px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: lining-nums;
  overflow-x: clip;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1em; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.skip-link { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--gold); color: var(--navy-950); padding: 10px 16px; border-radius: 8px; font-weight: 600; }
.skip-link:focus { top: 12px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--maxw)); margin-inline: auto; }

.section { position: relative; padding-block: var(--pad-y); }
.section--mist { background: var(--mist); }
.section--navy { background: var(--navy-800); color: #fff; }
.section--deep { background: var(--navy-950); color: #fff; }

/* Type */
.h2 {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(2rem, 3.5vw, 3.9rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0 0 .45em;
  display: flow-root;
}
.h2 em, .hero__title em { font-style: italic; color: var(--gold); }
.hero__title em { color: var(--gold-light); text-shadow: 0 2px 18px rgba(6,16,32,.75), 0 0 2px rgba(6,16,32,.4); }
.section--mist .h2 em, .about .h2 em { color: var(--gold-ink); }
.lede { font-size: clamp(1.08rem, 1.15vw, 1.22rem); color: var(--ink-soft); line-height: 1.55; }
.section--navy .lede, .section--deep .lede, .eq .lede { color: rgba(255,255,255,.78); }

/* Split line masks: padding and matching negative margin so descenders are never cut */
.ln-mask { display: block; padding: 0 .15em .5em; margin: 0 -.15em -.5em; }
.ln-mask:first-child { padding-top: .2em; margin-top: -.2em; }
.ln { display: block; }

/* Buttons */
.btn {
  --bg: var(--gold); --fg: var(--navy-950);
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 52px; padding: 0 28px;
  border-radius: 999px; border: 1px solid transparent;
  background: var(--bg); color: var(--fg);
  font-family: var(--f-body); font-weight: 600; font-size: 1rem; letter-spacing: .01em;
  text-decoration: none; cursor: pointer;
  position: relative; overflow: hidden; isolation: isolate;
  transition: color .35s var(--ease), border-color .35s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--fill, #fff); border-radius: inherit;
  transform: translateY(101%); transition: transform .45s var(--ease);
}
.btn:hover::before, .btn:focus-visible::before { transform: translateY(0); }
.btn--gold { --bg: var(--gold); --fg: var(--navy-950); --fill: #F3E7CF; }
.btn--navy { --bg: var(--navy); --fg: #fff; --fill: var(--navy-950); }
.btn--ghost { --bg: transparent; --fg: #fff; --fill: rgba(255,255,255,.14); border-color: rgba(255,255,255,.55); backdrop-filter: blur(6px); }
.btn--sm { min-height: 44px; padding: 0 20px; font-size: .95rem; }

.link-arrow { display: inline-flex; align-items: center; gap: .6em; font-weight: 600; text-decoration: none; color: var(--gold); min-height: 44px; }
.link-arrow svg { width: 20px; transition: transform .35s var(--ease); }
.link-arrow:hover svg { transform: translateX(5px); }

/* ---------- Header ---------- */
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; color: #fff; }
.site-header__bar {
  display: flex; align-items: center; gap: clamp(16px, 2vw, 36px);
  height: var(--header-h);
  padding-inline: max(var(--gutter), calc((100% - var(--maxw)) / 2));
  transition: height .45s var(--ease), background-color .45s var(--ease), box-shadow .45s var(--ease);
  background: linear-gradient(to bottom, rgba(8,20,40,.55), rgba(8,20,40,0));
}
.site-header.is-scrolled .site-header__bar {
  height: 76px;
  background: rgba(14,34,64,.94);
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px rgba(6,16,32,.25);
}
.brand { flex: none; display: block; }
.brand__logo { height: 70px; width: auto; transition: height .45s var(--ease); }
.site-header.is-scrolled .brand__logo { height: 50px; }

.nav { margin-left: auto; }
.nav__list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: clamp(4px, .6vw, 12px); }
.nav__link {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 44px; padding: 0 10px;
  background: none; border: 0; cursor: pointer;
  font-size: .98rem; font-weight: 500; text-decoration: none; color: #fff;
  position: relative;
}
.nav__link::after {
  content: ""; position: absolute; left: 10px; right: 10px; bottom: 8px; height: 1px;
  background: var(--gold); transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease);
}
.nav__link:hover::after, .nav__link.is-current::after, .nav__drop-btn[aria-expanded="true"]::after { transform: scaleX(1); transform-origin: left; }
.nav__chev { width: 11px; transition: transform .35s var(--ease); }
.nav__drop-btn[aria-expanded="true"] .nav__chev { transform: rotate(180deg); }

.nav__item--drop { position: relative; }
.nav__drop {
  position: absolute; top: calc(100% + 10px); left: 50%;
  width: 380px; padding: 10px;
  background: #fff; color: var(--ink); border-radius: var(--radius);
  box-shadow: 0 24px 60px rgba(8,20,40,.28);
  opacity: 0; visibility: hidden;
  transform: translate(-50%, 10px) scale(.98);
  clip-path: inset(0 0 100% 0 round 14px);
  transition: opacity .3s var(--ease), transform .45s var(--ease), clip-path .5s var(--ease), visibility 0s .5s;
}
.nav__drop::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.nav__item--drop.is-open .nav__drop {
  opacity: 1; visibility: visible; transform: translate(-50%, 0) scale(1);
  clip-path: inset(0 0 0 0 round 14px);
  transition: opacity .3s var(--ease), transform .45s var(--ease), clip-path .5s var(--ease), visibility 0s;
}
.nav__drop-list { list-style: none; margin: 0; padding: 0; }
.nav__drop-list a {
  display: flex; align-items: center; gap: 14px; padding: 8px; border-radius: 10px;
  text-decoration: none; transition: background-color .25s;
}
.nav__drop-list a:hover, .nav__drop-list a:focus-visible { background: var(--mist); }
.nav__drop-list img { width: 48px; height: 48px; object-fit: cover; border-radius: 8px; flex: none; }
.nav__drop-list span { display: flex; flex-direction: column; font-size: .9rem; color: var(--ink-soft); line-height: 1.35; }
.nav__drop-list strong { color: var(--ink); font-size: 1rem; font-weight: 600; }
.nav__item--drop.is-open .nav__drop-list li { animation: dropIn .5s var(--ease) both; }
.nav__item--drop.is-open .nav__drop-list li:nth-child(2) { animation-delay: .04s; }
.nav__item--drop.is-open .nav__drop-list li:nth-child(3) { animation-delay: .08s; }
.nav__item--drop.is-open .nav__drop-list li:nth-child(4) { animation-delay: .12s; }
.nav__item--drop.is-open .nav__drop-list li:nth-child(5) { animation-delay: .16s; }
@keyframes dropIn { from { opacity: 0; transform: translateY(8px); } }

.site-header__actions { display: flex; align-items: center; gap: 14px; }
.header-phone { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 600; min-height: 44px; white-space: nowrap; }
.header-phone svg { width: 18px; color: var(--gold); }

.menu-btn { display: none; align-items: center; gap: 10px; min-height: 44px; min-width: 44px; padding: 0 4px; background: none; border: 0; cursor: pointer; color: #fff; }
.menu-btn__lines { width: 26px; height: 12px; position: relative; }
.menu-btn__lines i { position: absolute; left: 0; right: 0; height: 2px; background: currentColor; border-radius: 2px; transition: transform .4s var(--ease), top .4s var(--ease); }
.menu-btn__lines i:first-child { top: 0; }
.menu-btn__lines i:last-child { top: 10px; }
.menu-btn[aria-expanded="true"] .menu-btn__lines i:first-child { top: 5px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-btn__lines i:last-child { top: 5px; transform: rotate(-45deg); }
.menu-btn__label { font-weight: 600; }

.mobile-menu {
  position: fixed; inset: 0; z-index: -1;
  background: var(--navy-900);
  padding: calc(var(--header-h) + 12px) var(--gutter) 32px;
  display: flex; flex-direction: column; justify-content: space-between;
  overflow-y: auto;
  clip-path: inset(0 0 100% 0);
  transition: clip-path .6s var(--ease);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu.is-open { clip-path: inset(0 0 0 0); }
.mobile-menu__list { list-style: none; margin: 0; padding: 0; }
.mobile-menu__list > li { border-bottom: 1px solid rgba(198,171,124,.22); }
.mobile-menu__list > li > a, .mobile-menu__group > button {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  padding: 14px 0; background: none; border: 0; text-align: left; cursor: pointer;
  font-family: var(--f-display); font-size: 1.7rem; text-decoration: none; color: #fff;
}
.mobile-menu__group > button svg { width: 16px; color: var(--gold); transition: transform .35s var(--ease); }
.mobile-menu__group > button[aria-expanded="true"] svg { transform: rotate(180deg); }
.mobile-menu__sub { list-style: none; margin: 0; padding: 0 0 0 4px; overflow: hidden; max-height: 0; transition: max-height .5s var(--ease); }
.mobile-menu__sub.is-open { max-height: 400px; }
.mobile-menu__sub a { display: block; padding: 10px 0; color: var(--gold-light); text-decoration: none; font-size: 1.1rem; }
.mobile-menu__sub li:last-child a { padding-bottom: 18px; }
.mobile-menu.is-open .mobile-menu__list > li { animation: menuIn .6s var(--ease) both; }
.mobile-menu.is-open .mobile-menu__list > li:nth-child(2) { animation-delay: .05s; }
.mobile-menu.is-open .mobile-menu__list > li:nth-child(3) { animation-delay: .1s; }
.mobile-menu.is-open .mobile-menu__list > li:nth-child(4) { animation-delay: .15s; }
.mobile-menu.is-open .mobile-menu__list > li:nth-child(5) { animation-delay: .2s; }
.mobile-menu.is-open .mobile-menu__list > li:nth-child(6) { animation-delay: .25s; }
@keyframes menuIn { from { opacity: 0; transform: translateY(24px); } }
.mobile-menu__foot { display: flex; flex-direction: column; gap: 14px; padding-top: 28px; }
.mobile-menu__tel { color: #fff; text-align: center; font-weight: 600; min-height: 44px; display: grid; place-items: center; }

/* ---------- Hero ---------- */
/* Hidden until the intro runs; a CSS failsafe shows them if the scripts never arrive */
.js .hero__title, .js [data-hero-fade], .js [data-hero-fact] { opacity: 0; animation: heroFailsafe .6s 2.6s forwards; }
.js .site-header__bar > * { animation: none; }
.hero-go .hero__title, .hero-go [data-hero-fade], .hero-go [data-hero-fact] { animation: none; }
.motion-off .hero__title, .motion-off [data-hero-fade], .motion-off [data-hero-fact] { opacity: 1; animation: none; }
@keyframes heroFailsafe { to { opacity: 1; } }
.hero {
  position: relative; min-height: 100svh;
  display: grid; grid-template-rows: 1fr auto;
  color: #fff; overflow: clip; background: var(--navy-950);
}
.hero__media { position: absolute; inset: 0; will-change: transform; }
.hero__video { width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; }
.hero__shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(8,20,40,.74) 0%, rgba(8,20,40,.5) 45%, rgba(8,20,40,.28) 72%, rgba(8,20,40,.1) 100%),
    linear-gradient(0deg, rgba(8,20,40,.78) 0%, rgba(8,20,40,0) 38%),
    linear-gradient(180deg, rgba(8,20,40,.35) 0%, rgba(8,20,40,0) 22%);
}
.hero__inner {
  position: relative; align-self: end;
  padding-top: calc(var(--header-h) + 40px);
  padding-bottom: clamp(28px, 4vh, 48px);
}
.hero__title {
  font-family: var(--f-display); font-weight: 500;
  font-size: clamp(2.9rem, 6.2vw, 6.9rem);
  line-height: 1.02; letter-spacing: -0.02em;
  margin: 0 0 .32em; display: flow-root;
  text-shadow: 0 2px 30px rgba(6,16,32,.35);
}
.hero__lede { font-size: clamp(1.1rem, 1.35vw, 1.4rem); line-height: 1.5; color: rgba(255,255,255,.9); margin-bottom: 1.4em; max-width: 64ch; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__facts-wrap { position: relative; padding-bottom: clamp(20px, 3vh, 36px); }
.hero__facts {
  list-style: none; margin: 0; padding: 22px 0 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  position: relative;
}
.hero__facts::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px;
  background: rgba(198,171,124,.6); transform-origin: left; transform: scaleX(var(--line, 1));
}
.hero__facts li { display: flex; flex-direction: column; gap: 2px; }
.hero__facts strong { font-family: var(--f-display); font-weight: 500; font-size: clamp(1.15rem, 1.5vw, 1.5rem); color: var(--gold-light); }
.hero__facts span { color: rgba(255,255,255,.8); font-size: .98rem; }

/* ---------- Who we test for ---------- */
.who__head { margin-bottom: clamp(28px, 4vh, 48px); }
.who__head .h2 { margin-bottom: .3em; }
.who__cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 1.6vw, 28px); perspective: 1200px; }
.card {
  position: relative; display: block; overflow: hidden;
  height: clamp(420px, 58vh, 600px);
  border-radius: var(--radius);
  color: #fff; text-decoration: none;
  transform-style: preserve-3d;
  box-shadow: 0 30px 60px -30px rgba(12,29,54,.55);
  isolation: isolate;
}
.card__media { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.card:hover .card__media img { transform: scale(1.06); }
.card::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(10,24,46,0) 22%, rgba(10,24,46,.72) 52%, rgba(10,24,46,.97) 100%);
}
.card__body { position: absolute; inset: auto 0 0; padding: clamp(20px, 2vw, 32px); }
.card__title { font-family: var(--f-display); font-weight: 500; font-size: clamp(1.45rem, 1.8vw, 2rem); line-height: 1.15; margin: 0 0 .4em; }
.card__body p { color: rgba(255,255,255,.85); font-size: 1rem; margin-bottom: 1em; }
.card__more { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; color: var(--gold-light); }
.card__more svg { width: 20px; transition: transform .4s var(--ease); }
.card:hover .card__more svg { transform: translateX(6px); }
.card__glare {
  position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgba(255,240,210,.28), rgba(255,240,210,0) 45%);
  transition: opacity .4s;
}
.card:hover .card__glare { opacity: 1; }

/* ---------- Frames (image compositions) ---------- */
.frame { position: relative; margin: 0; }
.frame__media { position: relative; overflow: hidden; border-radius: var(--radius); z-index: 1; background: var(--navy-800); }
.frame__media img { width: 100%; height: 100%; object-fit: cover; }
.frame__outline {
  position: absolute; inset: 0; z-index: 0;
  border: 1px solid var(--gold); border-radius: var(--radius);
  transform: translate(18px, 18px);
}
.frame__caption {
  position: absolute; z-index: 2; left: 18px; bottom: 18px; right: 18px;
  padding: 12px 16px; border-radius: 10px;
  background: rgba(11,26,49,.8); backdrop-filter: blur(8px);
  color: #fff; font-size: .95rem; line-height: 1.4;
}
.frame__caption--name strong { display: block; font-family: var(--f-display); font-weight: 500; font-size: 1.25rem; color: var(--gold-light); }

/* ---------- Credentials ---------- */
.cred { background: var(--paper); overflow: clip; }
.cred__grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(32px, 5vw, 96px); align-items: center; }
.cred__fill { font-family: var(--f-display); font-size: clamp(1.4rem, 2vw, 2.1rem); line-height: 1.32; color: var(--ink); margin-bottom: .8em; }
.cred__body { color: var(--ink-soft); }
.cred__chips { list-style: none; margin: 1.6em 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.cred__chips li {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: 999px;
  background: var(--mist); color: var(--ink); font-weight: 500; font-size: .98rem;
}
.cred__chips svg { width: 18px; color: var(--pass); }
.cred__figure { --media-cap: min(72vh, 720px); width: min(40vw, calc(var(--media-cap) * .8)); justify-self: end; margin-right: 18px; }
.cred__figure .frame__media { aspect-ratio: 4 / 5; }

/* ---------- Equipment: pinned scene ---------- */
.eq { position: relative; background: var(--navy-800); color: #fff; overflow: clip; }
.eq__pin { min-height: 100svh; display: flex; align-items: center; padding-top: calc(76px + 3vh); padding-bottom: 4vh; }
.eq__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); column-gap: clamp(32px, 5vw, 96px); row-gap: clamp(10px, 2.4vh, 28px); align-items: center; }
.eq__intro { grid-column: 1 / -1; }
.eq__intro .lede { margin-bottom: 0; }
.eq__grid-static { grid-column: 1 / -1; }
.eq .h2 { margin-bottom: .3em; }
.eq__list { list-style: none; margin: 0; padding: 0; }
.eq__list-item {
  display: flex; align-items: baseline; gap: 16px;
  padding: clamp(5px, .9vh, 9px) 0;
  border-bottom: 1px solid rgba(255,255,255,.1);
  font-size: clamp(1rem, 1.15vw, 1.15rem); color: rgba(255,255,255,.72);
  transition: color .4s var(--ease), padding-left .45s var(--ease);
}
.eq__list-no { font-family: var(--f-label); font-weight: 600; letter-spacing: .06em; color: var(--gold); opacity: .8; min-width: 1.6em; }
.eq__list-item.is-active { color: #fff; padding-left: 12px; }
.eq__list-item.is-active .eq__list-no { opacity: 1; }

.eq__stage-col { display: flex; flex-direction: column; align-items: center; }
.eq__stage {
  --stage: min(52vh, 38vw, 600px);
  position: relative; width: var(--stage); aspect-ratio: 1;
  border-radius: 50%;
}
.eq__stage::before {
  content: ""; position: absolute; inset: -3%; border-radius: 50%;
  border: 1px solid rgba(198,171,124,.35);
}
.eq__img { position: absolute; inset: 0; margin: 0; opacity: 0; visibility: hidden;
  width: 100%; height: 100%; object-fit: cover; border-radius: 50%;
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 62%, transparent 71%);
          mask-image: radial-gradient(circle at 50% 50%, #000 62%, transparent 71%);
}
.eq__meta { width: min(100%, 560px); margin-top: clamp(20px, 3.4vh, 40px); text-align: center; }
.eq__current { display: flex; align-items: baseline; justify-content: center; gap: 10px; flex-wrap: wrap; margin: 0 0 .2em; }
.eq__count { font-family: var(--f-label); font-weight: 600; font-size: 1.1rem; color: var(--gold); letter-spacing: .06em; }
.eq__count-of { font-family: var(--f-label); font-size: 1.1rem; color: rgba(255,255,255,.55); margin-left: -4px; }
.eq__name { font-family: var(--f-display); font-size: clamp(1.4rem, 1.9vw, 2rem); font-weight: 500; }
.eq__desc { color: rgba(255,255,255,.75); margin: 0 0 14px; min-height: 1.6em; }
.eq__progress { height: 2px; background: rgba(255,255,255,.14); border-radius: 2px; overflow: hidden; }
.eq__progress span { display: block; height: 100%; background: var(--gold); transform-origin: left; transform: scaleX(.1); }

/* The PAT test label, the site's signature */
.pass-label {
  position: absolute; right: 4%; top: 12%;
  width: clamp(150px, 34%, 210px);
  padding: 0 0 10px;
  background: #FBFAF6; color: var(--ink);
  border-radius: 8px;
  box-shadow: 0 14px 30px rgba(0,0,0,.35), 0 2px 0 rgba(0,0,0,.08);
  transform: rotate(-7deg);
  font-family: var(--f-label);
  overflow: hidden;
}
.pass-label::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, rgba(255,255,255,0) 40%, rgba(255,255,255,.55) 50%, rgba(255,255,255,0) 60%);
  background-size: 250% 100%; background-position: 100% 0;
}
.pass-label.is-shine::after { animation: shine 1.2s .2s var(--ease) both; }
@keyframes shine { to { background-position: -50% 0; } }
.pass-label__band {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  background: var(--pass); color: #fff;
  font-weight: 600; font-size: clamp(1.1rem, 1.6vw, 1.5rem); letter-spacing: .12em; text-transform: uppercase;
  padding: 6px 10px;
}
.pass-label__band svg { width: 1em; height: 1em; }
.pass-label__name { display: block; text-align: center; font-family: var(--f-body); font-weight: 600; font-size: .78rem; color: var(--navy); padding: 7px 8px 4px; }
.pass-label__row { display: flex; align-items: flex-end; gap: 6px; padding: 3px 12px 0; font-family: var(--f-body); font-size: .72rem; color: var(--ink-soft); }
.pass-label__row i { flex: 1; border-bottom: 1px dashed #9AA6B6; height: 1em; }

.eq__grid-static { display: none; }

/* No JS or reduced motion: static grid instead of the pinned stage */
.eq.is-static .eq__stage-col, .no-js .eq__stage-col { display: none; }
.eq.is-static .eq__list, .no-js .eq__list { display: none; }
.eq.is-static .eq__grid, .no-js .eq__grid { grid-template-columns: 1fr; }
.eq.is-static .eq__grid-static, .no-js .eq__grid-static {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px;
  list-style: none; margin: 0; padding: 0;
}
.eq__grid-static li { display: flex; flex-direction: column; gap: 8px; }
.eq__grid-static img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; max-height: 30vh; }
.eq__grid-static strong { font-weight: 600; font-size: 1rem; }

/* ---------- Pricing ---------- */
.price { overflow: clip; }
.price__mark {
  position: absolute; right: -4vw; bottom: 4vh; width: 52vw; aspect-ratio: 800 / 242;
  background: url(../img/logo-house.png) center / contain no-repeat;
  opacity: .07; filter: grayscale(1) brightness(.3); pointer-events: none;
}
.price__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 5vw, 96px); align-items: center; }
.price__list { list-style: none; margin: 1.4em 0; padding: 0; display: grid; gap: 14px; }
.price__list li { display: flex; gap: 14px; align-items: flex-start; color: var(--ink-soft); }
.price__list strong { color: var(--ink); }
.price__tick { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--navy); color: var(--gold); display: grid; place-items: center; margin-top: -2px; }
.price__tick svg { width: 16px; }
.price__note { font-size: .98rem; color: var(--ink-soft); border-left: 2px solid var(--gold); padding-left: 14px; margin: 0; }

.cert {
  position: relative; padding: 12px; border-radius: 20px;
  background:
    repeating-linear-gradient(45deg, rgba(198,171,124,.55) 0 1px, transparent 1px 7px),
    repeating-linear-gradient(-45deg, rgba(198,171,124,.55) 0 1px, transparent 1px 7px),
    var(--navy);
  box-shadow: 0 40px 80px -40px rgba(12,29,54,.6);
}
.cert__inner { background: #fff; border-radius: 12px; padding: clamp(22px, 2.6vw, 40px); }
.cert__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; margin: -8px -8px 22px; background: var(--navy); border-radius: 8px; }
.cert__head img { height: 40px; width: auto; }
.cert__tag { font-family: var(--f-label); font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--gold-light); font-size: .95rem; }
.cert__label { display: block; font-weight: 600; margin-bottom: 14px; }
.cert__range input { width: 100%; accent-color: var(--navy); height: 44px; cursor: pointer; margin: 0; }
.cert__scale { display: flex; justify-content: space-between; font-size: .85rem; color: var(--ink-soft); margin-top: 2px; }
.cert__result { margin: 22px 0 20px; padding: 18px 0; border-block: 1px dashed #B8C2CF; text-align: center; }
.cert__count { margin: 0; color: var(--ink-soft); font-weight: 500; }
.cert__count span:first-child { font-weight: 700; color: var(--ink); }
.cert__price { font-family: var(--f-display); font-size: clamp(3.2rem, 5vw, 4.6rem); line-height: 1.1; margin: 0; color: var(--navy); font-variant-numeric: tabular-nums; }
.cert__price.is-contact { font-size: clamp(1.6rem, 2.4vw, 2.2rem); padding-block: .6em; }
.cert__breakdown { margin: 4px 0 0; color: var(--ink-soft); font-size: .98rem; }
.cert__cta { width: 100%; }
.cert__small { font-size: .9rem; color: var(--ink-soft); text-align: center; margin: 12px 0 0; }

/* ---------- Areas ---------- */
.areas { overflow: clip; padding-bottom: 0; }
.areas__head { margin-bottom: clamp(14px, 2.4vh, 30px); }
.areas__grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 72px); align-items: center; }
.map { position: relative; width: 100%; aspect-ratio: 1100 / 676; max-height: 54vh; margin-inline: auto; }
.map__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: hidden; }
.map__coast { fill: none; stroke: var(--gold); stroke-width: 3; stroke-linejoin: round; }
.map__rings circle { fill: none; stroke: rgba(198,171,124,.35); stroke-width: 1; stroke-dasharray: 3 6; vector-effect: non-scaling-stroke; }
.map__pins { position: absolute; inset: 0; }
.pin { position: absolute; width: 0; height: 0; }
.pin__dot {
  position: absolute; left: -5px; top: -5px; width: 10px; height: 10px; border-radius: 50%;
  background: var(--gold); box-shadow: 0 0 0 3px rgba(198,171,124,.25);
}
.pin__label {
  position: absolute; top: -.72em; left: 12px; white-space: nowrap;
  font-size: .9rem; font-weight: 500; line-height: 1.4; color: #fff;
  text-shadow: 0 1px 8px rgba(6,16,32,.9);
}
.pin--l .pin__label { left: auto; right: 12px; }
.pin--b .pin__label { top: 10px; left: 50%; transform: translateX(-50%); }
.pin--home .pin__dot { width: 18px; height: 18px; left: -9px; top: -9px; background: var(--gold); box-shadow: 0 0 0 6px rgba(198,171,124,.3), 0 0 24px rgba(198,171,124,.8); }
.pin--home .pin__dot::after {
  content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--gold);
  animation: pinPulse 2.4s var(--ease) infinite;
}
@keyframes pinPulse { from { transform: scale(.6); opacity: 1; } to { transform: scale(2.6); opacity: 0; } }
.pin--home .pin__label { left: 18px; font-family: var(--f-display); font-size: 1.2rem; color: var(--gold-light); top: -.8em; }
.pin--home .pin__label em { display: block; font-family: var(--f-body); font-style: normal; font-size: .8rem; color: #fff; margin-top: -2px; }
.pin-north {
  position: absolute; transform: translate(-50%, -70%);
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  font-size: .85rem; color: var(--gold-light);
}
.pin-north svg { width: 10px; }

.areas__list-title { font-family: var(--f-display); font-weight: 500; font-size: 1.5rem; margin: 0 0 14px; }
.areas__list { list-style: none; margin: 0 0 20px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.areas__list li {
  padding: 5px 11px; border-radius: 999px; font-size: .92rem;
  border: 1px solid rgba(198,171,124,.35); color: rgba(255,255,255,.88);
  transition: background-color .3s, color .3s;
}
.areas__list li:hover { background: var(--gold); color: var(--navy-950); }
.areas__list li.has-pin { cursor: default; }
.pin.is-hot .pin__dot { background: #fff; box-shadow: 0 0 0 5px rgba(198,171,124,.5); }
.pin.is-hot .pin__label { color: var(--gold-light); }

.marquee { margin-top: clamp(24px, 3.5vh, 44px); border-top: 1px solid rgba(198,171,124,.25); overflow: hidden; padding: 12px 0; background: var(--navy-900); }
.marquee__track { display: flex; width: max-content; animation: marquee 90s linear infinite; }
.marquee__set { display: flex; }
.marquee__set span {
  font-family: var(--f-display); font-style: italic; font-size: clamp(1.4rem, 2.2vw, 2.2rem);
  color: var(--gold); padding-right: 1.4em; white-space: nowrap; position: relative;
}
.marquee__set span::after { content: "·"; position: absolute; right: .55em; color: rgba(255,255,255,.35); font-style: normal; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- About ---------- */
.about { background: var(--paper); overflow: clip; }
.about__grid { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(36px, 6vw, 112px); align-items: center; }
.about__figure { --media-cap: min(74vh, 740px); width: min(36vw, calc(var(--media-cap) * .75)); margin-right: 18px; }
.about__figure .frame__media { aspect-ratio: 3 / 4; }
.about__figure .frame__media img { object-position: 50% 30%; }
.about__copy p:not(.lede) { color: var(--ink-soft); }
.about__facts { list-style: none; margin: 1.6em 0 2em; padding: 0; display: grid; grid-template-columns: auto auto 1fr; gap: clamp(20px, 3vw, 48px); }
.about__facts li { display: flex; flex-direction: column; border-top: 1px solid var(--gold); padding-top: 12px; }
.about__facts strong { font-family: var(--f-display); font-weight: 500; font-size: clamp(1.7rem, 2.4vw, 2.5rem); line-height: 1.1; color: var(--navy); }
.about__facts li > span { font-size: .95rem; color: var(--ink-soft); }

/* ---------- FAQ + hours ---------- */
.faq { overflow: clip; }
.faq__bg { position: absolute; inset: 0; }
.faq__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .16; filter: grayscale(.3) contrast(1.1); }
.faq__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11,26,49,.96) 20%, rgba(11,26,49,.7)); }
.faq__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 96px); align-items: start; }
.acc { border-top: 1px solid rgba(198,171,124,.35); margin-bottom: 20px; }
.acc__item { border-bottom: 1px solid rgba(198,171,124,.35); }
.acc__h { margin: 0; }
.acc__btn {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  position: relative; padding: 22px 60px 22px 0; background: none; border: 0; cursor: pointer; text-align: left; color: #fff;
  font-family: var(--f-display); font-weight: 500; font-size: clamp(1.3rem, 1.7vw, 1.75rem); line-height: 1.25;
}
.acc__q { flex: 1; min-width: 0; }
.acc__icon { position: absolute; right: 0; top: 50%; margin-top: -20px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--gold); position: relative; transition: background-color .3s, transform .5s var(--ease); }
.acc__icon::before, .acc__icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 1.6px; background: var(--gold); transform: translate(-50%, -50%); transition: transform .4s var(--ease), background-color .3s; }
.acc__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.acc__btn[aria-expanded="true"] .acc__icon { background: var(--gold); transform: rotate(180deg); }
.acc__btn[aria-expanded="true"] .acc__icon::before, .acc__btn[aria-expanded="true"] .acc__icon::after { background: var(--navy-950); }
.acc__btn[aria-expanded="true"] .acc__icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.acc__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .55s var(--ease); }
.acc__panel.is-open { grid-template-rows: 1fr; }
.no-js .acc__panel { grid-template-rows: 1fr; }
.acc__inner { overflow: hidden; }
.acc__inner p { color: rgba(255,255,255,.8); padding: 0 60px 22px 0; margin: 0; }

.hours {
  background: rgba(255,255,255,.05); border: 1px solid rgba(198,171,124,.35);
  border-radius: 18px; padding: clamp(22px, 2.4vw, 36px);
  backdrop-filter: blur(6px);
}
.hours__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.hours__title { font-family: var(--f-display); font-weight: 500; font-size: 1.6rem; margin: 0; }
.hours__status { margin: 0; display: inline-flex; align-items: center; gap: 8px; font-size: .95rem; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.08); }
.hours__status i { width: 9px; height: 9px; border-radius: 50%; background: var(--gold); }
.hours__status.is-open i { background: #56C98A; box-shadow: 0 0 0 0 rgba(86,201,138,.6); animation: livePulse 2s infinite; }
.hours__status.is-closed i { background: #E0806A; }
@keyframes livePulse { 70% { box-shadow: 0 0 0 8px rgba(86,201,138,0); } 100% { box-shadow: 0 0 0 0 rgba(86,201,138,0); } }
.hours__list { list-style: none; margin: 0 0 18px; padding: 0; }
.hours__list li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px dashed rgba(255,255,255,.14); color: rgba(255,255,255,.82); font-size: 1rem; }
.hours__list li.is-today { color: #fff; font-weight: 600; }
.hours__list li.is-today span:first-child::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); margin-right: 8px; vertical-align: middle; }
.faq__prompt {
  display: flex; align-items: center; gap: 18px; margin-top: 28px; padding: 20px 22px;
  border-radius: 14px; background: rgba(198,171,124,.1); border: 1px solid rgba(198,171,124,.3);
}
.faq__prompt svg { flex: none; width: 40px; height: 40px; color: var(--gold); }
.faq__prompt p { margin: 0; color: rgba(255,255,255,.85); }
.faq__prompt a { color: var(--gold-light); font-weight: 600; white-space: nowrap; }
.hours__tel { display: inline-flex; align-items: center; min-height: 48px; font-family: var(--f-display); font-size: 1.7rem; color: var(--gold-light); text-decoration: none; }

/* ---------- Contact ---------- */
.contact { overflow: clip; }
.contact__grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(32px, 5vw, 96px); align-items: center; }
.form { display: grid; gap: 14px; margin-top: 8px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: .95rem; }
.field input, .field textarea {
  font: inherit; font-weight: 400; font-size: 1rem; color: var(--ink);
  background: #fff; border: 1px solid #C5CFD9; border-radius: 10px;
  padding: 13px 14px; min-height: 50px; resize: vertical;
  transition: border-color .25s, box-shadow .25s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(39,68,114,.18); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: .95rem; color: var(--ink-soft); }
.check input { width: 24px; height: 24px; margin: 2px 0 0; accent-color: var(--navy); flex: none; }
.form .btn { justify-self: start; }
.contact__figure { --media-cap: min(70vh, 700px); width: min(36vw, calc(var(--media-cap) * .8)); justify-self: end; margin-right: 18px; }
.contact__figure .frame__media { aspect-ratio: 4 / 5; }
.contact__card {
  position: absolute; z-index: 2; left: -40px; bottom: 32px; right: 32px;
  background: var(--navy); color: #fff; border-radius: 14px;
  padding: 20px 22px; display: grid; gap: 10px;
  box-shadow: 0 30px 60px -20px rgba(8,20,40,.55);
}
.contact__card a, .contact__card p { display: flex; flex-direction: column; justify-content: center; min-height: 46px; color: #fff; text-decoration: none; margin: 0; font-weight: 500; line-height: 1.35; overflow-wrap: anywhere; }
.contact__card small { font-family: var(--f-label); font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--gold); font-size: .85rem; }

/* ---------- Footer ---------- */
.site-footer { position: relative; background: var(--navy-950); color: rgba(255,255,255,.82); padding-top: clamp(64px, 9vh, 110px); overflow: clip; }
.site-footer__coast {
  position: absolute; right: -4%; top: 0; width: 60%; height: 100%;
  background: url(../img/hero-poster-m.webp) center / cover no-repeat;
  opacity: .1; -webkit-mask-image: linear-gradient(90deg, transparent, #000 60%); mask-image: linear-gradient(90deg, transparent, #000 60%);
  pointer-events: none;
}
.site-footer__grid { position: relative; display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1fr; gap: clamp(28px, 4vw, 64px); }
.site-footer__brand img { width: 170px; height: auto; margin-bottom: 18px; }
.site-footer__brand p { max-width: 44ch; }
.site-footer__title { font-family: var(--f-display); font-weight: 500; font-size: 1.3rem; color: #fff; margin: 0 0 14px; }
.site-footer__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.site-footer__col a { text-decoration: none; display: inline-block; padding: 10px 0; transition: color .25s; overflow-wrap: anywhere; }
.site-footer__col a:hover { color: var(--gold-light); }
.site-footer__col li { line-height: 1.5; }
.site-footer__hours li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px dashed rgba(255,255,255,.12); }
.site-footer__social { display: flex; gap: 10px; margin-top: 18px; }
.site-footer__social a { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(198,171,124,.5); display: grid; place-items: center; color: var(--gold); padding: 0; transition: background-color .3s, color .3s; }
.site-footer__social a:hover { background: var(--gold); color: var(--navy-950); }
.site-footer__social svg { width: 18px; }
.site-footer__base {
  position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 32px;
  margin-top: clamp(40px, 6vh, 72px); padding-block: 22px 28px; border-top: 1px solid rgba(198,171,124,.25);
  font-size: .95rem;
}
.site-footer__base p { margin: 0; }
.site-footer__base a { color: var(--gold-light); min-height: 44px; display: inline-flex; align-items: center; }

/* ---------- Responsive ---------- */
@media (max-width: 1280px) {
  .header-phone span { display: none; }
  .nav__link { font-size: .95rem; padding: 0 8px; }
}
@media (max-width: 1100px) {
  :root { --header-h: 88px; }
  .nav, .header-phone { display: none; }
  .menu-btn { display: inline-flex; }
  .site-header__actions { margin-left: auto; }
  .brand__logo { height: 64px; }
  .who__cards { grid-template-columns: repeat(3, minmax(260px, 1fr)); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none; }
  .who__cards::-webkit-scrollbar { display: none; }
  .card { scroll-snap-align: start; }
  .cred__grid, .price__grid, .about__grid, .faq__grid, .contact__grid, .areas__grid { grid-template-columns: 1fr; }
  .cred__figure, .contact__figure { justify-self: start; }
  .cred__figure, .about__figure, .contact__figure { width: min(100% - 18px, calc(var(--media-cap) * .8)); }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .eq.is-static .eq__grid-static, .no-js .eq__grid-static { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 760px) {
  :root { --header-h: 84px; }
  .site-header__actions .btn { display: none; }
  .brand__logo { height: 64px; }
  .site-header.is-scrolled .brand__logo { height: 46px; }
  .site-header.is-scrolled .site-header__bar { height: 66px; }
  .menu-btn__label { display: none; }
  .hero__title { font-size: clamp(2.7rem, 11.5vw, 4rem); }
  .hero__facts { grid-template-columns: 1fr; gap: 8px; padding-top: 16px; }
  .hero__facts li { gap: 0; }
  .hero__facts strong { font-size: 1.1rem; }
  .hero__facts span { font-size: .92rem; }
  .hero__video { object-position: 74% 50%; }
  .hero__ctas .btn { flex: 1 1 100%; }
  .who__cards { grid-template-columns: repeat(3, 82vw); }
  .card { height: min(72svh, 520px); }
  .eq__grid { grid-template-columns: 1fr; gap: 14px; }
  .eq__list { display: none; }
  .eq__pin { padding-top: 76px; align-items: flex-start; }
  .eq .lede { font-size: 1rem; margin-bottom: 0; }
  .eq__stage { --stage: min(78vw, 40svh); }
  .pass-label { width: 44%; right: 2%; }
  .pass-label__band { font-size: 1rem; }
  .eq.is-static .eq__grid-static, .no-js .eq__grid-static { grid-template-columns: repeat(2, 1fr); }
  .form__row { grid-template-columns: 1fr; }
  .contact__card { left: 12px; right: 12px; bottom: 12px; }
  .map { max-height: none; }
  .pin__label { font-size: .72rem; }
  .pin--home .pin__label { font-size: .95rem; }
  .pin--home .pin__label em, .pin--mhide .pin__label { display: none; }
  .pin:not(.pin--lab):not(.pin--home) .pin__dot { width: 6px; height: 6px; left: -3px; top: -3px; }
  .pin-north { font-size: .72rem; }
  .areas__list { gap: 6px; }
  .areas__list li { font-size: .9rem; padding: 3px 10px; }
  .map__coast { stroke-width: 5; }
  .about__facts { grid-template-columns: 1fr 1fr; }
  .about__facts li:last-child { grid-column: 1 / -1; }
  .site-footer__grid { grid-template-columns: 1fr; }
  .acc__inner p { padding-right: 0; }
  .acc__btn { font-size: 1.2rem; padding-right: 50px; }
  .acc__icon { width: 36px; height: 36px; margin-top: -18px; }
}
@media (max-width: 380px) {
  .brand__logo { height: 50px; }
  .site-header__bar { gap: 10px; }
}
@media (max-width: 420px) {
  .pin--lab:not(.pin--home) .pin__label { font-size: .66rem; }
}

@media (prefers-reduced-motion: reduce) {
  .js .hero__title, .js [data-hero-fade], .js [data-hero-fact] { opacity: 1; animation: none; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .marquee__track { animation: none; }
}

/* SplitText words in the filling paragraph stay inline so lines break exactly as the plain text does */
.fill-w { display: inline !important; }
