/* ==========================================================================
   N. E. Williams Nigeria Limited — Site Stylesheet
   Palette: deep ink navy + signal red, industrial editorial typography
   Fonts: Saira Condensed (display) · Public Sans (body) · IBM Plex Mono (data)
   ========================================================================== */

:root {
  --ink: #0c1a2b;
  --ink-2: #13283f;
  --ink-3: #1d3a57;
  --steel: #5a6b7d;
  --steel-2: #8696a7;
  --line: #dde3ea;
  --line-2: #eef1f5;
  --paper: #f5f7fa;
  --white: #ffffff;
  --accent: #c8102e;
  --accent-dark: #9e0c24;
  --accent-soft: #fbe9ec;
  --amber: #c98a00;
  --amber-soft: #fff4d9;
  --green: #1c7c47;
  --green-soft: #e3f4ea;

  --f-display: "Saira Condensed", "Arial Narrow", sans-serif;
  --f-body: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;

  --radius: 4px;
  --radius-lg: 10px;
  --shadow-sm: 0 1px 2px rgba(12, 26, 43, .06), 0 2px 8px rgba(12, 26, 43, .05);
  --shadow: 0 10px 30px -12px rgba(12, 26, 43, .25);
  --shadow-lg: 0 30px 60px -20px rgba(12, 26, 43, .35);
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--accent); outline-offset: 2px;
}
p { margin: 0 0 1em; }
h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: .005em;
  margin: 0 0 .5em;
  text-transform: uppercase;
}
h1 { font-size: clamp(2.5rem, 6vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.35rem, 2.2vw, 1.7rem); }
h4 { font-size: 1.15rem; }
.skip-link {
  position: absolute; left: -999px; top: 8px; z-index: 999;
  background: var(--accent); color: #fff; padding: 10px 16px; border-radius: var(--radius);
}
.skip-link:focus { left: 8px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section--alt { background: var(--paper); }
.section--dark { background: var(--ink); color: #dfe7ef; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--tight { padding: clamp(40px, 6vw, 72px) 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-mono); font-size: .78rem; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.eyebrow--center { justify-content: center; }
.eyebrow--light { color: #ff8796; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--steel); max-width: 62ch; }
.section--dark .lead { color: #aebdcc; }
.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head--center .lead { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--f-display); font-weight: 600; font-size: 1.05rem;
  letter-spacing: .06em; text-transform: uppercase;
  padding: 14px 26px; border-radius: var(--radius); border: 2px solid transparent;
  cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s var(--ease);
  line-height: 1;
}
.btn svg { width: 18px; height: 18px; }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-dark); transform: translateY(-1px); }
.btn--ghost { border-color: rgba(255,255,255,.55); color: #fff; }
.btn--ghost:hover { background: #fff; color: var(--ink); }
.btn--outline { border-color: var(--ink); color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: #fff; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: not-allowed; transform: none; }
.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--f-display); font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--accent); font-size: 1rem;
}
.link-arrow::after { content: "→"; transition: transform .2s var(--ease); }
.link-arrow:hover::after { transform: translateX(4px); }

/* ---------- Top bar ---------- */
.topbar { background: var(--ink); color: #b8c6d4; font-size: .84rem; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 42px; flex-wrap: wrap; }
.topbar__group { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.topbar a, .topbar span { display: inline-flex; align-items: center; gap: 8px; }
.topbar a:hover { color: #fff; }
.topbar svg { width: 15px; height: 15px; color: #ff8796; flex: none; }
.topbar__live { font-family: var(--f-mono); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; }
.topbar__live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #34d27b; box-shadow: 0 0 0 4px rgba(52,210,123,.18); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; background: #fff;
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s;
}
.site-header.is-scrolled { box-shadow: var(--shadow-sm); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; min-height: 78px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; flex: none; }
.brand img { height: 54px; width: auto; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-family: var(--f-display); font-weight: 700; font-size: 1.3rem; letter-spacing: .02em; text-transform: uppercase; }
.brand__sub { font-family: var(--f-mono); font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; color: var(--steel); margin-top: 4px; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav__list { display: flex; list-style: none; margin: 0; padding: 0; gap: 2px; }
.nav__link {
  display: block; padding: 10px 12px; font-family: var(--f-display); font-weight: 600;
  font-size: 1.02rem; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-2);
  position: relative;
}
.nav__link::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease);
}
.nav__link:hover::after, .nav__link[aria-current="page"]::after { transform: scaleX(1); }
.nav__link[aria-current="page"] { color: var(--accent); }
.nav__cta { margin-left: 10px; padding: 12px 18px; font-size: .95rem; }
.nav-toggle {
  display: none; width: 46px; height: 46px; border: 1px solid var(--line); background: #fff;
  border-radius: var(--radius); cursor: pointer; align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 20px; height: 2px; background: var(--ink); position: relative; transition: transform .25s, background .25s;
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; } .nav-toggle span::after { top: 6px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1179px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed; inset: 0 0 0 auto; width: min(360px, 88vw); background: #fff;
    flex-direction: column; align-items: stretch; padding: 96px 24px 32px; gap: 16px;
    transform: translateX(100%); visibility: hidden; transition: transform .35s var(--ease), visibility 0s linear .35s; box-shadow: var(--shadow-lg); z-index: 90;
    overflow-y: auto;
  }
  .nav-open .nav { transform: none; visibility: visible; transition: transform .35s var(--ease), visibility 0s; }
  .nav__list { flex-direction: column; }
  .nav__link { padding: 14px 6px; font-size: 1.25rem; border-bottom: 1px solid var(--line-2); }
  .nav__link::after { display: none; }
  .nav__cta { margin: 8px 0 0; }
  .nav-backdrop { position: fixed; inset: 0; background: rgba(12,26,43,.5); opacity: 0; pointer-events: none; transition: opacity .3s; z-index: 80; }
  .nav-open .nav-backdrop { opacity: 1; pointer-events: auto; }
  .site-header .nav-toggle { position: relative; z-index: 95; }
  .topbar__group--secondary { display: none; }
}
@media (max-width: 560px) {
  .brand img { height: 44px; }
  .brand__sub { display: none; }
  .brand__name { font-size: 1.1rem; }
  .topbar .container { justify-content: center; }
  .topbar__addr { display: none !important; }
}

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; min-height: min(88vh, 820px); display: flex; align-items: flex-end; overflow: hidden; background: var(--ink); }
.hero__slides { position: absolute; inset: 0; }
.hero__slide {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: 0; transform: scale(1.06); transition: opacity 1.4s ease, transform 7s linear;
}
.hero__slide.is-active { opacity: 1; transform: scale(1); }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(12,26,43,.94) 0%, rgba(12,26,43,.75) 45%, rgba(12,26,43,.25) 100%),
              linear-gradient(0deg, rgba(12,26,43,.9) 0%, transparent 40%);
}
.hero .container { position: relative; z-index: 2; padding-top: 120px; padding-bottom: 56px; }
.hero__inner { max-width: 760px; }
.hero h1 { color: #fff; margin-bottom: 20px; }
.hero h1 em { font-style: normal; color: #ff5168; }
.hero p.lead { color: #c7d3df; margin-bottom: 32px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__caption {
  margin-top: 56px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: rgba(255,255,255,.14); border-top: 1px solid rgba(255,255,255,.14);
}
.hero__caption button {
  background: transparent; border: 0; color: #9fb0c1; text-align: left; padding: 18px 18px 6px 0; cursor: pointer;
  font-family: var(--f-body); position: relative;
}
.hero__caption button::before {
  content: ""; position: absolute; top: -1px; left: 0; height: 2px; width: 0; background: var(--accent);
}
.hero__caption button.is-active { color: #fff; }
.hero__caption button.is-active::before { width: 100%; transition: width 6s linear; }
.hero__caption strong { display: block; font-family: var(--f-display); font-size: 1.15rem; letter-spacing: .05em; text-transform: uppercase; color: inherit; }
.hero__caption small { font-size: .86rem; }
@media (max-width: 720px) {
  .hero__caption { grid-template-columns: 1fr; background: none; }
  .hero__caption button { display: none; }
  .hero__caption button.is-active { display: block; }
}

/* ---------- Page header (inner pages) ---------- */
.page-hero { position: relative; color: #fff; background: var(--ink); overflow: hidden; }
.page-hero__bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .35; }
.page-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(12,26,43,.95) 30%, rgba(12,26,43,.55)); }
.page-hero .container { position: relative; z-index: 2; padding-top: clamp(72px, 10vw, 128px); padding-bottom: clamp(48px, 7vw, 80px); }
.page-hero h1 { color: #fff; font-size: clamp(2.4rem, 5.5vw, 4rem); margin-bottom: 14px; }
.page-hero p { color: #c3cfdb; max-width: 62ch; font-size: 1.1rem; margin: 0; }
.crumbs { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0 0 22px; font-family: var(--f-mono); font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; color: #8ea1b4; }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: #5a7089; }
.crumbs a:hover { color: #fff; }
.crumbs [aria-current] { color: #ff8796; }

/* ---------- Pillars ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow); margin-top: -64px; position: relative; z-index: 5; }
.pillar { padding: 32px 30px; display: flex; gap: 18px; }
.pillar + .pillar { border-left: 1px solid var(--line); }
.pillar__icon { flex: none; width: 50px; height: 50px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.pillar__icon svg { width: 24px; height: 24px; }
.pillar h3 { font-size: 1.25rem; margin-bottom: 6px; }
.pillar p { margin: 0; color: var(--steel); font-size: .95rem; }
@media (max-width: 900px) {
  .pillars { grid-template-columns: 1fr; margin-top: -40px; }
  .pillar + .pillar { border-left: 0; border-top: 1px solid var(--line); }
}

/* ---------- Split layout ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 80px); align-items: center; }
.split--reverse > :first-child { order: 2; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .split--reverse > :first-child { order: 0; } }
.media-stack { position: relative; padding: 0 0 48px 48px; }
.media-stack__main { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4/3; }
.media-stack__main img { width: 100%; height: 100%; object-fit: cover; }
.media-stack__inset { position: absolute; left: 0; bottom: 0; width: 46%; border: 6px solid #fff; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 1; }
.media-stack__inset img { width: 100%; height: 100%; object-fit: cover; }
.media-stack__badge {
  position: absolute; right: -10px; top: 24px; background: var(--accent); color: #fff; padding: 18px 22px; border-radius: var(--radius);
  font-family: var(--f-display); text-transform: uppercase; line-height: 1; box-shadow: var(--shadow);
}
.media-stack__badge strong { display: block; font-size: 2.6rem; }
.media-stack__badge span { font-size: .9rem; letter-spacing: .08em; }
@media (max-width: 560px) { .media-stack { padding: 0 0 32px 24px; } .media-stack__badge { right: 0; } }

.facts { list-style: none; padding: 0; margin: 28px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px; }
.facts li { display: flex; gap: 12px; align-items: flex-start; font-size: .96rem; }
.facts li::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 4px; border-radius: 50%; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7'/%3E%3C/svg%3E") center/11px no-repeat; }
@media (max-width: 560px) { .facts { grid-template-columns: 1fr; } }

/* ---------- Service cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 1000px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .cards { grid-template-columns: 1fr; } }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; transition: transform .3s var(--ease), box-shadow .3s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card__media { aspect-ratio: 16/10; overflow: hidden; position: relative; background: var(--line-2); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .card__media img { transform: scale(1.05); }
.card__num { position: absolute; left: 16px; top: 16px; font-family: var(--f-mono); font-size: .76rem; letter-spacing: .1em; background: var(--ink); color: #fff; padding: 5px 9px; border-radius: 3px; }
.card__body { padding: 24px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.card__body h3 { font-size: 1.35rem; margin-bottom: 10px; }
.card__body p { color: var(--steel); font-size: .95rem; flex: 1; }

/* ---------- Approach (numbered) ---------- */
.approach { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.approach__item { background: #fff; display: flex; flex-direction: column; }
.approach__item img { aspect-ratio: 16/9; object-fit: cover; width: 100%; }
.approach__item div { padding: 28px; }
.approach__item .kicker { font-family: var(--f-mono); font-size: .76rem; color: var(--accent); letter-spacing: .12em; }
.approach__item h3 { margin: 8px 0 10px; }
.approach__item p { color: var(--steel); margin: 0; font-size: .96rem; }
@media (max-width: 900px) { .approach { grid-template-columns: 1fr; } }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.stat { padding: 8px 28px; border-left: 1px solid rgba(255,255,255,.14); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat__value { font-family: var(--f-display); font-weight: 700; font-size: clamp(2.8rem, 5vw, 4rem); line-height: 1; color: #fff; }
.stat__value sup { font-size: .45em; color: #ff5168; vertical-align: top; margin-left: 2px; }
.stat__label { font-family: var(--f-mono); font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; color: #93a6b9; margin-top: 10px; }
@media (max-width: 800px) {
  .stats { grid-template-columns: 1fr 1fr; gap: 32px 0; }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
}

/* ---------- Clients ---------- */
.clients { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; align-items: center; }
.client { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); height: 110px; display: grid; place-items: center; padding: 20px; }
.client img { max-height: 58px; width: auto; object-fit: contain; filter: grayscale(1); opacity: .75; transition: filter .3s, opacity .3s; }
.client:hover img { filter: none; opacity: 1; }
@media (max-width: 800px) { .clients { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 480px) { .clients { grid-template-columns: repeat(2, 1fr); } }

/* ---------- CTA band ---------- */
.cta-band { background: var(--accent); color: #fff; position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(135deg, rgba(255,255,255,.05) 0 2px, transparent 2px 22px); }
.cta-band .container { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 28px; flex-wrap: wrap; padding-top: 56px; padding-bottom: 56px; }
.cta-band h2 { color: #fff; margin: 0 0 8px; font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
.cta-band p { margin: 0; color: #ffe0e5; max-width: 56ch; }
.cta-band .btn--ghost:hover { color: var(--accent); }
.cta-band__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn--white { background: #fff; color: var(--accent); }
.btn--white:hover { background: var(--ink); color: #fff; }

/* ---------- Values / feature grid ---------- */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
@media (max-width: 1000px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; } }
.tile { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; position: relative; }
.tile__num { font-family: var(--f-mono); font-size: .78rem; color: var(--accent); letter-spacing: .1em; }
.tile h3 { font-size: 1.3rem; margin: 10px 0 8px; }
.tile p { margin: 0; color: var(--steel); font-size: .95rem; }
.tile--dark { background: var(--ink-2); border-color: var(--ink-3); }
.tile--dark h3 { color: #fff; } .tile--dark p { color: #a9b8c7; }

.mv { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.mv__card { border-radius: var(--radius-lg); overflow: hidden; position: relative; min-height: 360px; display: flex; align-items: flex-end; color: #fff; }
.mv__card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mv__card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(12,26,43,.95) 15%, rgba(12,26,43,.35)); }
.mv__card div { position: relative; z-index: 2; padding: 34px; }
.mv__card h3 { color: #fff; font-size: 1.8rem; }
.mv__card p { color: #d0dae4; margin: 0; }
@media (max-width: 800px) { .mv { grid-template-columns: 1fr; } }

/* ---------- Services detail ---------- */
.svc-nav { position: sticky; top: 78px; z-index: 40; background: #fff; border-bottom: 1px solid var(--line); }
.svc-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.svc-nav ul::-webkit-scrollbar { display: none; }
.svc-nav a { display: block; white-space: nowrap; padding: 16px 14px; font-family: var(--f-display); font-weight: 600; letter-spacing: .05em; text-transform: uppercase; font-size: .95rem; color: var(--steel); border-bottom: 2px solid transparent; }
.svc-nav a:hover, .svc-nav a.is-active { color: var(--accent); border-bottom-color: var(--accent); }
.svc { padding: clamp(56px, 8vw, 96px) 0; border-bottom: 1px solid var(--line); scroll-margin-top: 140px; }
.svc:nth-of-type(even) { background: var(--paper); }
.svc__media { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4/3; box-shadow: var(--shadow); background: var(--line-2); }
.svc__media img { width: 100%; height: 100%; object-fit: cover; }
.svc__code { font-family: var(--f-mono); color: var(--accent); font-size: .8rem; letter-spacing: .12em; }
.svc h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin-top: 8px; }
.svc p { color: var(--steel); }
.ticks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 28px; font-size: .97rem; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 10px; width: 14px; height: 2px; background: var(--accent); }

/* ---------- Policy ---------- */
.policy-doc { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; }
.policy-doc__head { background: var(--ink); color: #fff; padding: 32px clamp(24px, 4vw, 48px); display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: flex-end; }
.policy-doc__head h2 { color: #fff; margin: 0; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.policy-doc__meta { font-family: var(--f-mono); font-size: .76rem; letter-spacing: .1em; color: #93a6b9; text-transform: uppercase; display: grid; gap: 4px; text-align: right; }
.policy-doc__body { padding: clamp(24px, 4vw, 48px); }
.policy-list { counter-reset: p; list-style: none; padding: 0; margin: 24px 0; display: grid; gap: 0; }
.policy-list li { counter-increment: p; display: grid; grid-template-columns: 54px 1fr; gap: 12px; padding: 16px 0; border-top: 1px solid var(--line-2); }
.policy-list li::before { content: counter(p, decimal-leading-zero); font-family: var(--f-mono); color: var(--accent); font-weight: 500; padding-top: 2px; }
.policy-sign { margin-top: 32px; padding-top: 28px; border-top: 2px solid var(--ink); display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: flex-end; }
.policy-sign blockquote { margin: 0; font-family: var(--f-display); text-transform: uppercase; font-size: 1.25rem; letter-spacing: .03em; max-width: 46ch; }
.policy-sign__who { text-align: right; font-size: .9rem; color: var(--steel); }
.policy-sign__who strong { display: block; color: var(--ink); font-family: var(--f-display); font-size: 1.1rem; text-transform: uppercase; letter-spacing: .05em; }
.sig-line { width: 200px; height: 1px; background: var(--ink); margin: 0 0 8px auto; }

/* ---------- Certificates ---------- */
.cert-statement {
  text-align: center; max-width: 880px; margin: 0 auto; padding: clamp(36px, 5vw, 56px) clamp(20px, 4vw, 48px);
  background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--accent); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
}
.cert-statement .eyebrow { justify-content: center; }
.cert-statement .eyebrow::after { content: ""; width: 28px; height: 2px; background: currentColor; }
.cert-statement h3 { font-size: clamp(1.4rem, 2.8vw, 2rem); line-height: 1.2; margin: 0 auto; max-width: 30ch; text-wrap: balance; }
.cert-statement p { color: var(--steel); margin: 16px auto 0; max-width: 60ch; }
.cert-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 32px; }
.cert-summary__item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px 22px; }
.cert-summary__item strong { display: block; font-family: var(--f-display); font-size: 2.4rem; line-height: 1; }
.cert-summary__item span { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--steel); }
.cert-summary__item--valid strong { color: var(--green); }
.cert-summary__item--soon strong { color: var(--amber); }
@media (max-width: 800px) { .cert-summary { grid-template-columns: 1fr 1fr; } }

.toolbar { display: flex; gap: 16px; justify-content: space-between; align-items: center; flex-wrap: wrap; margin-bottom: 28px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { border: 1px solid var(--line); background: #fff; padding: 9px 16px; border-radius: 999px; font-size: .88rem; font-weight: 500; cursor: pointer; color: var(--ink-2); transition: all .2s; font-family: var(--f-body); }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip .count { font-family: var(--f-mono); font-size: .74rem; opacity: .7; margin-left: 6px; }
.search { position: relative; min-width: 260px; flex: 0 1 320px; }
.search input { width: 100%; padding: 12px 14px 12px 42px; border: 1px solid var(--line); border-radius: var(--radius); font: inherit; font-size: .95rem; background: #fff; }
.search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--steel-2); }
@media (max-width: 640px) { .search { min-width: 0; flex: 1 1 100%; } }

.cert-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 1000px) { .cert-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .cert-grid { grid-template-columns: 1fr; } }
.cert { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); display: flex; flex-direction: column; overflow: hidden; transition: box-shadow .3s, transform .3s var(--ease); }
.cert:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.cert__top { padding: 22px 22px 0; display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.cert__seal { width: 52px; height: 52px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; flex: none; overflow: hidden; }
.cert__seal img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.cert__seal svg { width: 26px; height: 26px; }
.badge { display: inline-flex; align-items: center; gap: 6px; font-family: var(--f-mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; padding: 5px 9px; border-radius: 3px; font-weight: 500; white-space: nowrap; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge--valid { background: var(--green-soft); color: var(--green); }
.badge--soon { background: var(--amber-soft); color: var(--amber); }
.badge--expired { background: var(--accent-soft); color: var(--accent); }
.badge--perm { background: var(--line-2); color: var(--ink-3); }
.badge--draft { background: #efe7ff; color: #5b34b5; }
.cert__body { padding: 16px 22px 20px; flex: 1; }
.cert__cat { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.cert__body h3 { font-size: 1.3rem; margin: 6px 0 6px; line-height: 1.12; }
.cert__issuer { color: var(--steel); font-size: .92rem; margin: 0 0 14px; }
.cert__desc { font-size: .92rem; color: var(--steel); margin: 0 0 14px; }
.cert__meta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0; padding: 14px 0 0; border-top: 1px dashed var(--line); }
.cert__meta div { min-width: 0; }
.cert__meta dt { font-family: var(--f-mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--steel-2); }
.cert__meta dd { margin: 2px 0 0; font-weight: 600; font-size: .9rem; overflow-wrap: anywhere; }
.cert__foot { padding: 14px 22px; background: var(--paper); border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.cert__foot button, .cert__foot a { font-family: var(--f-display); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; font-size: .95rem; color: var(--accent); background: none; border: 0; cursor: pointer; padding: 0; }
.cert__foot .muted { font-size: .82rem; color: var(--steel); font-family: var(--f-body); text-transform: none; letter-spacing: 0; font-weight: 400; }
.empty { text-align: center; padding: 56px 20px; border: 1px dashed var(--line); border-radius: var(--radius-lg); color: var(--steel); background: #fff; }
.empty h3 { color: var(--ink); }
.updated-note { font-family: var(--f-mono); font-size: .76rem; letter-spacing: .08em; color: var(--steel); text-transform: uppercase; margin-top: 24px; text-align: center; }

/* Modal */
.modal { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; padding: 20px; }
.modal.is-open { display: flex; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(12,26,43,.8); }
.modal__panel { position: relative; background: #fff; border-radius: var(--radius-lg); width: min(960px, 100%); max-height: 92vh; display: flex; flex-direction: column; overflow: hidden; box-shadow: var(--shadow-lg); }
.modal__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.modal__head h3 { margin: 0; font-size: 1.2rem; }
.modal__close { width: 40px; height: 40px; border: 1px solid var(--line); background: #fff; border-radius: 50%; cursor: pointer; font-size: 1.4rem; line-height: 1; flex: none; }
.modal__content { flex: 1; overflow: auto; background: var(--paper); display: grid; place-items: center; min-height: 300px; }
.modal__content img { max-height: 76vh; width: auto; margin: 0 auto; }
.modal__content iframe { width: 100%; height: 76vh; border: 0; background: #fff; }
.modal__foot { padding: 12px 20px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 10px; }

/* ---------- Partners ---------- */
.partner-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 1000px) { .partner-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .partner-grid { grid-template-columns: 1fr; } }
.partner { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); display: flex; flex-direction: column; overflow: hidden; transition: box-shadow .3s, transform .3s var(--ease), border-color .3s; position: relative; }
.partner:hover { box-shadow: var(--shadow); transform: translateY(-4px); border-color: transparent; }
.partner__logo { height: 150px; display: grid; place-items: center; padding: 28px; background: linear-gradient(180deg, #fff, var(--paper)); border-bottom: 1px solid var(--line); }
.partner__logo img { max-height: 80px; max-width: 80%; object-fit: contain; filter: grayscale(1); opacity: .8; transition: filter .35s, opacity .35s; }
.partner:hover .partner__logo img { filter: none; opacity: 1; }
.partner__mono { width: 84px; height: 84px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-family: var(--f-display); font-weight: 700; font-size: 1.8rem; letter-spacing: .04em; }
.partner__body { padding: 22px 24px; flex: 1; display: flex; flex-direction: column; }
.partner__rel { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.partner__body h3 { font-size: 1.35rem; margin: 6px 0 4px; }
.partner__loc { font-size: .86rem; color: var(--steel-2); margin: 0 0 12px; }
.partner__body p { color: var(--steel); font-size: .94rem; flex: 1; }
.partner__tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 0; padding: 0; list-style: none; }
.partner__tags li { font-size: .76rem; background: var(--line-2); padding: 4px 9px; border-radius: 3px; color: var(--ink-3); }
.partner__foot { padding: 14px 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.partner__visit { display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-display); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--accent); }
.partner__visit svg { width: 15px; height: 15px; }
.partner__domain { font-family: var(--f-mono); font-size: .76rem; color: var(--steel); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.partner__stretch::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.partner--featured { border-top: 3px solid var(--accent); }

/* ---------- Contact ---------- */
.contact-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: -56px; position: relative; z-index: 5; }
@media (max-width: 1000px) { .contact-cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .contact-cards { grid-template-columns: 1fr; margin-top: -36px; } }
.ccard { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow); display: block; transition: transform .3s var(--ease), border-color .3s; }
a.ccard:hover { transform: translateY(-3px); border-color: var(--accent); }
.ccard__icon { width: 44px; height: 44px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin-bottom: 14px; }
.ccard__icon svg { width: 20px; height: 20px; }
.ccard h3 { font-size: 1.1rem; margin-bottom: 6px; }
.ccard p { margin: 0; color: var(--steel); font-size: .94rem; overflow-wrap: anywhere; }
.ccard .ccard__action { display: inline-block; margin-top: 10px; color: var(--accent); font-weight: 600; font-size: .9rem; }

.contact-layout { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
@media (max-width: 960px) { .contact-layout { grid-template-columns: 1fr; } }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 44px); box-shadow: var(--shadow-sm); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }
.field label { display: block; font-size: .86rem; font-weight: 600; margin-bottom: 7px; color: var(--ink-2); }
.field label .req { color: var(--accent); }
.field label .opt { color: var(--steel-2); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 16px; padding: 13px 14px; border: 1px solid #cdd5de; border-radius: var(--radius);
  background: #fff; color: var(--ink); transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 160px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(12,26,43,.08); outline: none; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--accent); }
.field__error { display: none; color: var(--accent); font-size: .82rem; margin-top: 6px; }
.field.has-error .field__error { display: block; }
.field__hint { font-size: .8rem; color: var(--steel-2); margin-top: 6px; display: flex; justify-content: space-between; }
/* Autofill styling hook: lets JS detect browser autofill via animationstart */
@keyframes nwAutofill { from { opacity: 1; } to { opacity: 1; } }
input:-webkit-autofill { animation-name: nwAutofill; animation-duration: .01s; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: .88rem; color: var(--steel); }
.consent input { width: 18px; height: 18px; margin-top: 3px; flex: none; accent-color: var(--accent); }
.hp-field { position: absolute !important; left: -10000px !important; top: auto !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.form-status { display: none; padding: 16px 18px; border-radius: var(--radius); margin-top: 18px; font-size: .95rem; }
.form-status.is-visible { display: block; }
.form-status--ok { background: var(--green-soft); color: #0f5530; border-left: 4px solid var(--green); }
.form-status--err { background: var(--accent-soft); color: var(--accent-dark); border-left: 4px solid var(--accent); }
.form-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 8px; }
.form-foot small { color: var(--steel); display: inline-flex; gap: 8px; align-items: center; }
.form-foot small svg { width: 16px; height: 16px; color: var(--green); }
.spinner { width: 18px; height: 18px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; display: none; }
.is-loading .spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

.side-panel { display: grid; gap: 20px; }
.side-box { background: var(--ink); color: #c8d4e0; border-radius: var(--radius-lg); padding: 30px; }
.side-box h3 { color: #fff; font-size: 1.4rem; }
.side-box dl { margin: 0; display: grid; gap: 16px; }
.side-box dt { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: #ff8796; }
.side-box dd { margin: 3px 0 0; }
.side-box a { color: #fff; border-bottom: 1px solid rgba(255,255,255,.25); }
.side-box a:hover { border-color: #fff; }
.map { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4/3; background: var(--line-2); }
.map iframe { width: 100%; height: 100%; border: 0; }

/* ---------- Footer ---------- */
.site-footer { background: #081322; color: #9fb0c2; font-size: .94rem; }
.footer-main { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 40px; padding: 72px 0 48px; }
@media (max-width: 960px) { .footer-main { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-main { grid-template-columns: 1fr; gap: 32px; } }
.footer-brand .brand__name { color: #fff; }
.footer-brand p { margin: 16px 0 0; max-width: 40ch; }
.footer-logo { background: #fff; padding: 8px; border-radius: var(--radius); display: inline-block; }
.footer-logo img { height: 52px; }
.site-footer h4 { color: #fff; font-size: 1.05rem; letter-spacing: .08em; margin-bottom: 18px; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-links a:hover { color: #fff; }
.footer-contact { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.footer-contact li { display: flex; gap: 12px; }
.footer-contact svg { width: 18px; height: 18px; color: #ff5168; flex: none; margin-top: 3px; }
.footer-contact a { color: #dce5ee; }
.footer-contact a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 22px 0; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .84rem; }
.footer-bottom a:hover { color: #fff; }

.to-top { position: fixed; right: 18px; bottom: 18px; width: 46px; height: 46px; border-radius: 50%; background: var(--accent); color: #fff; border: 0; display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transform: translateY(10px); transition: all .3s var(--ease); z-index: 70; }
.to-top.is-visible { opacity: 1; pointer-events: auto; transform: none; }
.to-top svg { width: 20px; height: 20px; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- 404 ---------- */
.error-page { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 80px 20px; }
.error-page .code { font-family: var(--f-display); font-size: clamp(6rem, 18vw, 12rem); line-height: .9; color: var(--accent); font-weight: 700; }

/* ---------- Print ---------- */
@media print {
  .topbar, .site-header, .site-footer, .to-top, .cta-band, .svc-nav { display: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  body { font-size: 12pt; }
}

/* ---------- Fixes ---------- */
.tile__num svg { width: 30px; height: 30px; display: block; }
a.tile { display: block; transition: transform .3s var(--ease), box-shadow .3s; }
a.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.hero .container { padding-bottom: 120px; }
@media (max-width: 900px) { .hero .container { padding-bottom: 90px; } }
.nav__cta { white-space: nowrap; }
@media (min-width: 1180px) and (max-width: 1599px) {
  .site-header .container { gap: 12px; }
  .nav__link { padding: 10px 9px; font-size: .96rem; letter-spacing: .03em; }
  .nav__link::after { left: 9px; right: 9px; }
  .brand__sub { display: none; }
  .brand img { height: 48px; }
  .nav__cta { margin-left: 6px; padding: 12px 14px; font-size: .9rem; }
}

/* ---------- Policy document control ---------- */
.doc-control { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; border-bottom: 1px solid var(--line); background: var(--paper); }
.doc-control div { padding: 14px clamp(16px, 3vw, 28px); border-left: 1px solid var(--line); }
.doc-control div:first-child { border-left: 0; }
.doc-control dt { font-family: var(--f-mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--steel-2); }
.doc-control dd { margin: 3px 0 0; font-weight: 600; font-size: .92rem; overflow-wrap: anywhere; }
@media (max-width: 700px) {
  .doc-control { grid-template-columns: 1fr 1fr; }
  .doc-control div:nth-child(3) { border-left: 0; }
  .doc-control div:nth-child(n+3) { border-top: 1px solid var(--line); }
}
.policy-doc__dl { flex: none; }
.policy-sign__who--left { text-align: left; }
.policy-sign__who--left .sig-line { margin: 0 0 8px; }
.policy-sign__date { font-family: var(--f-mono); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--steel); }
.doc-control { grid-template-columns: 1.5fr 1fr 1fr 1fr; }
.doc-control dd { overflow-wrap: normal; white-space: nowrap; }
@media (max-width: 700px) {
  .doc-control { grid-template-columns: 1fr 1fr 1fr; }
  .doc-control div:first-child { grid-column: 1 / -1; border-bottom: 1px solid var(--line); }
  .doc-control div:nth-child(2) { border-left: 0; }
  .doc-control div:nth-child(3) { border-left: 1px solid var(--line); }
  .doc-control div:nth-child(n+3) { border-top: 0; }
  .doc-control dd { font-size: .86rem; white-space: normal; }
}

/* ==========================================================================
   MOBILE, TABLET & TOUCH LAYER
   Phones (incl. foldables & notched iPhones), iPads/Android tablets, landscape
   ========================================================================== */
html { -webkit-tap-highlight-color: rgba(200, 16, 46, .12); }
body { overflow-x: clip; }
h1, h2, h3 { overflow-wrap: break-word; hyphens: manual; }

/* Notched / rounded-corner screens (iPhone X and later, many Androids) */
@supports (padding: max(0px)) {
  .container { padding-left: max(var(--gutter), env(safe-area-inset-left)); padding-right: max(var(--gutter), env(safe-area-inset-right)); }
  .to-top { right: max(18px, calc(env(safe-area-inset-right) + 12px)); bottom: max(18px, calc(env(safe-area-inset-bottom) + 12px)); }
  .footer-bottom { padding-bottom: max(22px, calc(env(safe-area-inset-bottom) + 12px)); }
  @media (max-width: 1179px) {
    .nav { padding-right: max(24px, env(safe-area-inset-right)); padding-bottom: max(32px, calc(env(safe-area-inset-bottom) + 20px)); }
  }
}

/* Real viewport height on mobile browsers (address bar aware) */
.hero { min-height: min(88vh, 820px); }
@supports (height: 1svh) { .hero { min-height: min(88svh, 820px); } }
.modal__panel { max-height: 92vh; }
@supports (height: 1dvh) { .modal__panel { max-height: 92dvh; } .modal__content img { max-height: 76dvh; } .modal__content iframe { height: 76dvh; } }

/* iOS zooms into any field under 16px — keep every field at 16px */
.search input, .field input, .field select, .field textarea { font-size: 16px; }

/* Consistent select arrow on iOS / Android */
.field select {
  -webkit-appearance: none; appearance: none; padding-right: 42px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230c1a2b' stroke-width='2.2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 14px center / 18px no-repeat;
}

/* Touch devices: no hover-lift (it "sticks" after a tap), logos always in colour */
@media (hover: none) {
  .card:hover, .cert:hover, .partner:hover, a.ccard:hover, a.tile:hover, .btn--primary:hover { transform: none; }
  .card:hover .card__media img { transform: none; }
  .client img, .partner__logo img { filter: none; opacity: 1; }
}

/* Finger-sized tap targets (44px minimum, Apple & Google guidance) */
@media (pointer: coarse) {
  .chip { min-height: 44px; padding: 10px 16px; }
  .footer-links a, .footer-contact a, .footer-bottom a { display: inline-block; padding: 8px 0; }
  .footer-links { gap: 2px; }
  .footer-contact li { align-items: center; }
  .crumbs a { display: inline-block; padding: 10px 0; }
  .topbar a { padding: 10px 0; }
  .cert__foot button, .cert__foot a, .partner__visit, .link-arrow { min-height: 44px; display: inline-flex; align-items: center; }
  .consent { align-items: center; }
  .consent input { width: 24px; height: 24px; margin-top: 0; }
  .modal__close { width: 44px; height: 44px; }
  .svc-nav a { padding: 15px 14px; }
  .nav-toggle { width: 48px; height: 48px; }
  .side-box a { display: inline-block; padding: 6px 0; }
}

/* Phones */
@media (max-width: 600px) {
  body { font-size: 16px; }
  .section { padding: 56px 0; }
  .hero .container { padding-top: 72px; }
  .hero__actions .btn, .cta-band__actions .btn { flex: 1 1 100%; }
  .cta-band__actions { width: 100%; }
  .cta-band .container { padding-top: 44px; padding-bottom: 44px; }
  .page-hero p { font-size: 1rem; }
  .form-card { padding: 22px 18px; }
  .form-foot { flex-direction: column-reverse; align-items: stretch; }
  .form-foot .btn { width: 100%; }
  .form-foot small { justify-content: center; }
  .toolbar { gap: 12px; }
  .chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(-1 * var(--gutter)); padding: 2px var(--gutter) 6px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex: none; }
  .cert-summary { gap: 10px; }
  .cert-summary__item { padding: 16px; }
  .cert-summary__item strong { font-size: 2rem; }
  .policy-doc__head { flex-direction: column; align-items: flex-start; }
  .policy-list li { grid-template-columns: 40px 1fr; }
  .policy-sign { flex-direction: column; align-items: flex-start; }
  .mv__card { min-height: 300px; }
  .mv__card div { padding: 24px; }
  .media-stack__badge strong { font-size: 2rem; }
  .stat { padding: 4px 16px; }
  .approach__item div, .tile { padding: 22px; }
  /* Full-screen certificate viewer */
  .modal { padding: 0; }
  .modal__panel { width: 100%; height: 100%; max-height: none; border-radius: 0; padding-bottom: env(safe-area-inset-bottom); }
  .modal__content img { max-height: none; }
}

/* Small phones (iPhone SE, Galaxy S-series compact, foldables folded) */
@media (max-width: 380px) {
  :root { --gutter: 16px; }
  h1 { font-size: 2.15rem; }
  .page-hero h1 { font-size: 2.1rem; }
  h2 { font-size: 1.75rem; }
  .topbar { font-size: .78rem; }
  .topbar__group { gap: 14px; justify-content: center; }
  .brand__name { font-size: 1rem; }
  .brand img { height: 38px; }
  .stat__value { font-size: 2.4rem; }
  .cert-summary { grid-template-columns: 1fr 1fr; }
  .cert__meta { grid-template-columns: 1fr; }
}
@media (max-width: 320px) {
  .topbar a[href^="mailto"] { display: none; }
}


/* Landscape phones: short screens */
@media (orientation: landscape) and (max-height: 560px) {
  .hero { min-height: 0; }
  .hero .container { padding-top: 40px; padding-bottom: 72px; }
  .hero h1 { font-size: 2.2rem; }
  .hero p.lead { margin-bottom: 20px; }
  .hero__caption { display: none; }
  .page-hero .container { padding-top: 40px; padding-bottom: 36px; }
  .site-header { position: relative; }   /* give the screen back to content */
  .svc-nav { top: 0; }
  .nav { padding-top: 24px; }
  .nav__link { padding: 10px 6px; font-size: 1.1rem; }
}

/* Tablets & iPads — portrait (≈700–1000px) */
@media (min-width: 700px) and (max-width: 1000px) {
  .pillars { grid-template-columns: repeat(3, 1fr); }
  .pillar { flex-direction: column; padding: 24px 22px; gap: 12px; }
  .pillar + .pillar { border-left: 1px solid var(--line); border-top: 0; }
  .split { gap: 40px; }
  .media-stack { max-width: 620px; margin: 0 auto; }
  .contact-cards { grid-template-columns: repeat(2, 1fr); }
  .side-panel { grid-template-columns: 1fr 1fr; align-items: stretch; }
  .map { aspect-ratio: auto; min-height: 320px; }
  .cert-grid, .partner-grid, .cards { grid-template-columns: repeat(2, 1fr); }
  .approach { grid-template-columns: repeat(3, 1fr); }
  .approach__item div { padding: 20px; }
  .mv { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-main { grid-template-columns: 1.3fr 1fr 1fr; }
  .footer-main > :last-child { grid-column: 1 / -1; }
  .footer-contact { grid-template-columns: 1fr 1fr; }
}
/* Tablets & iPads — landscape / iPad Pro (≈1000–1179px, burger menu still active) */
@media (min-width: 1001px) and (max-width: 1179px) {
  .cards, .cert-grid, .partner-grid { grid-template-columns: repeat(3, 1fr); }
  .contact-layout { grid-template-columns: 1.3fr 1fr; }
}

/* Scroll hint on the services sub-menu */
.svc-nav .container { position: relative; }
@media (max-width: 1179px) {
  .svc-nav .container::after { content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 36px; pointer-events: none; background: linear-gradient(90deg, rgba(255,255,255,0), #fff); }
}

/* ---------- Readability & tap-target refinements (device audit) ---------- */
/* Minimum label size ~12px everywhere */
.badge, .partner__rel, .cert__meta dt, .doc-control dt, .cert-summary__item span, .cert__cat { font-size: .75rem; letter-spacing: .06em; }
.brand__sub { font-size: .72rem; letter-spacing: .1em; }
/* Desktop / mouse: at least 24px targets (WCAG 2.2 AA) */
.topbar a { padding: 3px 0; }
.crumbs a { display: inline-block; padding: 5px 0; }
.footer-links a { display: inline-block; padding: 3px 0; }
.footer-bottom a { display: inline-block; padding: 4px 0; }
/* Touch: at least 44px targets (Apple HIG / Material) */
@media (pointer: coarse) {
  .brand { min-height: 44px; }
  .crumbs a, .footer-bottom a, .footer-links a, .footer-contact a, .topbar a { min-height: 44px; display: inline-flex; align-items: center; padding: 0; }
  .crumbs { margin-bottom: 14px; }
  .footer-bottom { row-gap: 0; }
  .chip { min-height: 44px; }
}
.footer-contact a { display: inline-block; padding: 3px 0; }
.cert__foot button, .cert__foot a { padding: 4px 0; }
@media (pointer: coarse) {
  .crumbs a { min-width: 44px; }
  .consent { min-height: 44px; }
  .footer-contact a { min-height: 44px; display: inline-flex; align-items: center; padding: 0; }
}

/* ---------- Final mobile polish ---------- */
@media (max-width: 900px) {
  .topbar__addr { display: none !important; }
  .topbar .container { justify-content: center; min-height: 40px; }
  .topbar__group { column-gap: 22px; row-gap: 0; }
}
@media (orientation: landscape) and (max-height: 560px) { .topbar { display: none; } }
/* Never cover a field while someone is typing */
body:has(form :focus) .to-top { opacity: 0; pointer-events: none; }
/* If the logo is slow or fails, don't show its alt text inside the header */
.brand img, .footer-logo img { color: transparent; font-size: 0; }
@media (min-width: 1180px) and (max-width: 1279px) {
  .nav__link { padding: 10px 7px; }
  .nav__link::after { left: 7px; right: 7px; }
  .brand { gap: 10px; }
}

/* ---------- Buttons: layout & anchors ---------- */
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.svc__quote { margin-top: 22px; }
.cta-band__link { color: #fff; text-decoration: underline; text-underline-offset: 3px; font-weight: 600; overflow-wrap: anywhere; }
.cta-band__link:hover { color: var(--ink); }
/* Jump links land below the sticky header */
#enquiry, #hse-policy { scroll-margin-top: 96px; }
@media (orientation: landscape) and (max-height: 560px) { #enquiry, #hse-policy { scroll-margin-top: 12px; } }
@media (max-width: 600px) { .btn-row .btn { flex: 1 1 100%; } }
/* Long text links: keep the arrow attached to the words when they wrap */
.svc__quote { display: inline-block !important; padding: 10px 0; line-height: 1.35; }
.svc__quote::after { display: inline-block; margin-left: 6px; }

/* ==========================================================================
   MOBILE / TABLET MENU — dropdown that drops from the header (≤1179px)
   Same width, colours and type as the header, so it reads as part of the page
   ========================================================================== */
@media (max-width: 1179px) {
  .nav {
    position: absolute; inset: auto; top: 100%; left: 0; right: 0; width: auto; height: auto;
    max-height: var(--nav-max, calc(100vh - 90px));
    display: flex; flex-direction: column; align-items: stretch; gap: 0;
    padding: 6px max(var(--gutter), env(safe-area-inset-right)) max(22px, calc(env(safe-area-inset-bottom) + 14px)) max(var(--gutter), env(safe-area-inset-left));
    background: #fff; border-top: 1px solid var(--line); border-bottom: 3px solid var(--accent);
    box-shadow: 0 22px 34px -18px rgba(12, 26, 43, .45);
    overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: transform .25s var(--ease), opacity .2s ease, visibility 0s linear .25s;
    z-index: 90;
  }
  .nav-open .nav { transform: none; opacity: 1; visibility: visible; transition: transform .25s var(--ease), opacity .2s ease, visibility 0s; }
  .nav__list { display: flex; flex-direction: column; width: 100%; max-width: var(--container); margin: 0 auto; gap: 0; }
  .nav__link {
    display: flex; align-items: center; justify-content: space-between; min-height: 52px;
    padding: 12px 4px; font-size: 1.12rem; letter-spacing: .05em; color: var(--ink-2);
    border-bottom: 1px solid var(--line-2);
  }
  .nav__link::after {
    display: block; position: static; content: "→"; width: auto; height: auto; background: none;
    transform: none; color: var(--steel-2); font-family: var(--f-body); font-size: 1rem; transition: transform .2s var(--ease), color .2s;
  }
  .nav__link:hover::after, .nav__link:focus-visible::after { transform: translateX(3px); color: var(--accent); }
  .nav__link[aria-current="page"] { color: var(--accent); box-shadow: inset 3px 0 0 var(--accent); padding-left: 14px; }
  .nav__link[aria-current="page"]::after { color: var(--accent); }
  .nav__cta { width: 100%; max-width: var(--container); margin: 16px auto 0; padding: 15px 18px; font-size: 1rem; }
  .nav-backdrop { background: rgba(12, 26, 43, .45); }
  .site-header .nav-toggle { position: static; }
}
/* Tablets: two neat columns of links */
@media (min-width: 700px) and (max-width: 1179px) {
  .nav__list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px; }
  .nav__cta { max-width: 420px; margin-left: 0; }
  .nav { padding-bottom: 26px; }
}
/* Landscape phones: compact two-column dropdown */
@media (orientation: landscape) and (max-height: 560px) {
  .nav { padding-top: 0; }
  .nav__list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 28px; }
  .nav__link { min-height: 44px; padding: 8px 4px; font-size: 1rem; }
  .nav__cta { margin-top: 10px; padding: 12px; }
}

/* ==========================================================================
   FIT-TO-SCREEN FIXES (element-level audit, 280px foldables → tablets)
   ========================================================================== */
/* Grid/flex children may shrink below their longest word instead of pushing past the screen */
.split > *, .grid-2 > *, .grid-3 > *, .grid-4 > *, .cards > *, .cert-grid > *, .partner-grid > *,
.contact-layout > *, .footer-main > *, .mv > *, .approach > *, .pillars > *, .stats > *, .facts > *,
.contact-cards > *, .side-panel > *, .clients > *, .cert-summary > *, .toolbar > *, .policy-sign > *,
.cert__top > *, .partner__foot > *, .cert__foot > *, .form-grid > *, .hero__inner, .pillar > div { min-width: 0; }
img, iframe, video, svg { max-width: 100%; }
p, li, dd, h1, h2, h3, h4, a, .btn { overflow-wrap: break-word; }

/* Badges wrap instead of overflowing on narrow cards */
.cert__top > div { flex-wrap: wrap; }
@media (max-width: 400px) {
  .badge { white-space: normal; line-height: 1.25; }
  .cert__top { flex-wrap: wrap; }
}

/* Very narrow phones & folded foldables (≤360px) */
@media (max-width: 360px) {
  .pillar { flex-direction: column; gap: 12px; padding: 22px 18px; }
  .media-stack { padding: 0 0 28px 16px; }
  .media-stack__badge { padding: 12px 14px; top: 12px; }
  .media-stack__badge strong { font-size: 1.7rem; }
  .media-stack__badge span { font-size: .72rem; }
  .facts { grid-template-columns: 1fr; }
  .tile, .approach__item div, .cert__body, .cert__top, .partner__body { padding-left: 16px; padding-right: 16px; }
  .cert__foot, .partner__foot { padding-left: 16px; padding-right: 16px; flex-wrap: wrap; }
  .btn { padding-left: 18px; padding-right: 18px; letter-spacing: .04em; }
  .hero h1 { font-size: 2rem; }
  .eyebrow { letter-spacing: .1em; }
  .contact-cards .ccard { padding: 18px; }
  .policy-doc__body, .form-card { padding-left: 16px; padding-right: 16px; }
  .doc-control { grid-template-columns: 1fr 1fr; }
  .doc-control div:first-child { grid-column: 1 / -1; }
  .doc-control div:nth-child(3) { border-left: 0; }
}

/* Landscape phones: keep the header pinned (so the menu is always reachable), just slimmer */
@media (orientation: landscape) and (max-height: 560px) {
  .site-header { position: sticky; }
  .site-header .container { min-height: 58px; }
  .brand img { height: 36px; }
  .brand__sub { display: none; }
  .svc-nav { top: 58px; }
  .svc { scroll-margin-top: 110px; }
  #enquiry, #hse-policy { scroll-margin-top: 70px; }
}
.mv__card > div { min-width: 0; }
@media (max-width: 360px) {
  .mv__card div { padding: 20px 16px; }
  .mv__card h3 { font-size: 1.4rem; }
  .mv__card { min-height: 260px; }
}

/* ---------- Protected certificate viewer ---------- */
.cv { width: 100%; display: grid; gap: 14px; justify-items: center; padding: 12px; }
.cv__page { width: 100%; max-width: 1400px; height: auto; background: #fff; box-shadow: var(--shadow-sm); pointer-events: none; }
.cv__msg { padding: 48px 20px; text-align: center; color: var(--steel); max-width: 46ch; margin: 0 auto; }
.cv__msg a { color: var(--accent); font-weight: 600; text-decoration: underline; }
.modal__content, .cv, .cv__page {
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; -webkit-user-drag: none;
}
.modal__content { place-items: start center; }
.modal__foot { align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.modal__note { font-size: .82rem; color: var(--steel); }
@media (max-width: 600px) { .modal__foot .btn { width: 100%; } .modal__note { width: 100%; text-align: center; } }
/* Printing while a certificate is open prints nothing of it */
@media print { .modal, .cv, .cv__page { display: none !important; } body.cert-viewing * { visibility: hidden !important; } }

/* ==========================================================================
   SEAMLESS HEADER → HERO (no pale hairline on phones)
   ========================================================================== */
/* No light border under the menu bar; a soft shadow appears only once the page scrolls */
.site-header { border-bottom: 0; }
.site-header.is-scrolled { box-shadow: 0 1px 0 rgba(12, 26, 43, .06), 0 6px 18px -10px rgba(12, 26, 43, .35); }
/* Tuck the dark hero 2px under the menu bar so fractional-pixel screens can't show a white sliver */
.hero, .page-hero { margin-top: -2px; }
.hero .container, .page-hero .container { position: relative; top: 2px; }
/* The dropdown sits flush on the menu bar: no light top border either */
@media (max-width: 1179px) { .nav { border-top: 0; box-shadow: inset 0 1px 0 var(--line-2), 0 22px 34px -18px rgba(12, 26, 43, .45); } }
/* Dark sections stack without gaps */
.cta-band + .site-footer, main > section:last-child { margin-bottom: 0; }
.site-footer { margin-top: -1px; }
/* Menu bar and dropdown read as one continuous surface */
@media (max-width: 1179px) { .nav { box-shadow: 0 22px 34px -18px rgba(12, 26, 43, .45); } .nav-open .site-header { box-shadow: none; } }

/* ==========================================================================
   DROPDOWN SUB-MENUS (About ▾, Services ▾)
   ========================================================================== */
.nav__item { position: relative; display: flex; align-items: center; }
.nav__subtoggle {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 20px; height: 32px; margin: 0 6px 0 -6px; padding: 0; border: 0; background: none;
  color: var(--steel); cursor: pointer; border-radius: 4px;
}
.nav__subtoggle svg { width: 14px; height: 14px; transition: transform .2s var(--ease); }
.nav__item.is-open > .nav__subtoggle svg { transform: rotate(180deg); }
.nav__item.is-open > .nav__subtoggle, .nav__item.is-open > .nav__link { color: var(--accent); }
.nav__sublist { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.nav__sublink { display: block; padding: 10px 12px; border-radius: 6px; transition: background .15s; }
.nav__subtitle { display: block; font-family: var(--f-display); font-weight: 600; font-size: 1rem; letter-spacing: .04em; text-transform: uppercase; color: var(--ink); line-height: 1.2; }
.nav__subdesc { display: block; margin-top: 3px; font-size: .84rem; line-height: 1.35; color: var(--steel); }
.nav__sublink:hover, .nav__sublink:focus-visible { background: var(--paper); }
.nav__sublink:hover .nav__subtitle, .nav__sublink:focus-visible .nav__subtitle { color: var(--accent); }
.nav__subfoot { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 8px; padding: 12px 12px 4px; border-top: 1px solid var(--line); }
.nav__subfoot a { font-family: var(--f-display); font-weight: 600; font-size: .95rem; letter-spacing: .05em; text-transform: uppercase; color: var(--accent); }
.nav__subfoot a:hover { color: var(--accent-dark); }

/* Desktop: floating panels with hover-intent (JS adds .is-open) */
@media (min-width: 1180px) {
  .nav__item--has-sub > .nav__link { padding-right: 8px; }
  .nav__item--has-sub > .nav__link::after { right: 8px; }
  .nav__sub {
    position: absolute; top: calc(100% + 13px); left: -10px; z-index: 120;
    min-width: 320px; padding: 10px; background: #fff;
    border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: 0 0 10px 10px;
    box-shadow: var(--shadow-lg);
    opacity: 0; visibility: hidden; transform: translateY(8px);
    transition: opacity .18s ease, transform .18s var(--ease), visibility 0s linear .18s;
  }
  .nav__sub::before { content: ""; position: absolute; left: 0; right: 0; top: -17px; height: 17px; }   /* bridge so the panel doesn't close crossing the gap */
  .nav__item.is-open > .nav__sub { opacity: 1; visibility: visible; transform: none; transition: opacity .18s ease, transform .18s var(--ease), visibility 0s; }
  .nav__sub--cols2 { width: min(640px, calc(100vw - 48px)); }
  .nav__sub--cols2 .nav__sublist { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1180px) and (max-width: 1599px) {
  .nav__subtoggle { width: 16px; margin: 0 4px 0 -4px; }
  .nav__item--has-sub > .nav__link { padding-right: 6px; }
  .nav__item--has-sub > .nav__link::after { right: 6px; }
}

/* Phones & tablets: expandable sections inside the dropdown menu */
@media (max-width: 1179px) {
  .nav__list { display: flex !important; flex-direction: column; }        /* single column so sections expand cleanly */
  .nav__item { display: block; }
  .nav__item--has-sub { display: grid; grid-template-columns: 1fr auto; align-items: stretch; border-bottom: 1px solid var(--line-2); }
  .nav__item--has-sub > .nav__link { border-bottom: 0; }
  .nav__item--has-sub > .nav__link::after { display: none; }
  .nav__subtoggle { width: 56px; height: auto; min-height: 52px; margin: 0; border-left: 1px solid var(--line-2); border-radius: 0; color: var(--ink-2); }
  .nav__subtoggle svg { width: 20px; height: 20px; }
  .nav__sub { grid-column: 1 / -1; display: none; padding: 0 0 12px 12px; border-left: 3px solid var(--accent-soft); margin: 0 0 4px 4px; }
  .nav__item.is-open > .nav__sub { display: block; }
  .nav__sublink { padding: 11px 10px; min-height: 44px; }
  .nav__subtitle { font-size: 1rem; }
  .nav__subfoot { flex-direction: column; gap: 0; padding: 6px 10px 0; margin-top: 4px; }
  .nav__subfoot a { display: flex; align-items: center; min-height: 44px; }
  .nav__cta { max-width: var(--container) !important; margin-left: auto !important; }
}
@media (max-width: 600px) { .nav__subdesc { display: none; } }
@media (min-width: 700px) and (max-width: 1179px) { .nav__sub--cols2 .nav__sublist { grid-template-columns: 1fr 1fr; column-gap: 16px; } }
@media (orientation: landscape) and (max-height: 560px) { .nav__subdesc { display: none; } .nav__sub--cols2 .nav__sublist { grid-template-columns: 1fr 1fr; } }
/* Small confirmation note (email links) */
.toast {
  position: fixed; left: 50%; bottom: max(20px, calc(env(safe-area-inset-bottom) + 14px)); z-index: 300;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  width: max-content; max-width: calc(100vw - 32px); padding: 12px 18px; border-radius: 8px;
  background: var(--ink); color: #fff; font-size: .92rem; line-height: 1.4; box-shadow: var(--shadow-lg);
  transition: opacity .2s ease, transform .25s var(--ease); overflow-wrap: anywhere;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
/* Header fits with the dropdown arrows: compact sizing across the laptop range */
@media (min-width: 1180px) and (max-width: 1719px) {
  .site-header .container { gap: 10px; }
  .brand__sub { display: none; }
  .brand img { height: 46px; }
  .nav__link { padding: 10px 8px; font-size: .95rem; letter-spacing: .03em; }
  .nav__link::after { left: 8px; right: 8px; }
  .nav__item--has-sub > .nav__link { padding-right: 5px; }
  .nav__item--has-sub > .nav__link::after { right: 5px; }
  .nav__subtoggle { width: 16px; margin: 0 3px 0 -3px; }
  .nav__cta { margin-left: 6px; padding: 12px 14px; font-size: .9rem; }
}
@media (min-width: 1180px) and (max-width: 1299px) {
  .brand__name { font-size: 1.15rem; }
  .brand { gap: 10px; }
  .nav__link { padding: 10px 6px; font-size: .92rem; letter-spacing: .02em; }
  .nav__link::after { left: 6px; right: 6px; }
  .nav__cta { padding: 11px 12px; font-size: .86rem; margin-left: 4px; }
}

/* ==========================================================================
   THANK-YOU PAGE
   ========================================================================== */
.ty { position: relative; background: var(--ink); min-height: calc(100vh - 120px); display: flex; align-items: center; overflow: hidden; }
@supports (height: 1svh) { .ty { min-height: calc(100svh - 120px); } }
.ty__bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .22; }
.ty::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 30%, rgba(12,26,43,.55), rgba(12,26,43,.95) 70%); }
.ty__inner { position: relative; z-index: 2; padding-top: clamp(40px, 7vw, 80px); padding-bottom: clamp(40px, 7vw, 80px); }
.ty__card { max-width: 720px; margin: 0 auto; background: #fff; border-radius: var(--radius-lg); border-top: 4px solid var(--accent); box-shadow: var(--shadow-lg); padding: clamp(28px, 5vw, 52px); text-align: center; }
.ty__tick { width: 72px; height: 72px; margin: 0 auto 18px; color: var(--green); }
.ty__tick svg { width: 100%; height: 100%; }
.ty__tick circle { stroke-dasharray: 151; stroke-dashoffset: 151; animation: tyDraw .7s .1s var(--ease) forwards; }
.ty__tick path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: tyDraw .45s .7s var(--ease) forwards; }
@keyframes tyDraw { to { stroke-dashoffset: 0; } }
.ty__card .eyebrow::after { content: ""; width: 28px; height: 2px; background: currentColor; }
.ty__title { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 14px; }
.ty__lead { color: var(--steel); font-size: 1.05rem; max-width: 56ch; margin: 0 auto 24px; }
.ty__ref { display: grid; gap: 4px; justify-items: center; background: var(--paper); border: 1px dashed var(--line); border-radius: var(--radius); padding: 14px 18px; margin: 0 auto 26px; max-width: 420px; }
.ty__ref span { font-family: var(--f-mono); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--steel); }
.ty__ref strong { font-family: var(--f-mono); font-size: 1.35rem; letter-spacing: .06em; color: var(--ink); }
.ty__ref small { color: var(--steel-2); font-size: .82rem; }
.ty__steps { list-style: none; margin: 0 0 22px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; text-align: left; }
.ty__steps li { display: flex; gap: 12px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; min-width: 0; }
.ty__steps li > span { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-family: var(--f-display); font-weight: 700; }
.ty__steps strong { display: block; font-family: var(--f-display); text-transform: uppercase; letter-spacing: .03em; font-size: 1rem; margin-bottom: 2px; }
.ty__steps div { font-size: .88rem; color: var(--steel); line-height: 1.45; }
.ty__urgent { font-size: .95rem; color: var(--steel); margin-bottom: 22px; }
.ty__urgent a { color: var(--accent); white-space: nowrap; }
.ty__countdown { margin: 0 auto 18px; max-width: 460px; }
.ty__countdown p { margin: 8px 0 0; font-size: .92rem; color: var(--steel); }
.ty__bar { height: 4px; background: var(--line-2); border-radius: 4px; overflow: hidden; }
.ty__bar span { display: block; height: 100%; width: 0; background: var(--accent); transition: width 1s linear; }
.ty__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.ty__links { margin: 22px 0 0; font-size: .92rem; display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; color: var(--steel-2); }
.ty__links a { color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 700px) {
  .ty__steps { grid-template-columns: 1fr; }
  .ty__actions .btn { flex: 1 1 100%; }
}
@media (pointer: coarse) { .ty__links a { display: inline-flex; align-items: center; min-height: 44px; } }
@media (prefers-reduced-motion: reduce) { .ty__tick circle, .ty__tick path { animation: none; stroke-dashoffset: 0; } }
.form-status__code { font-family: var(--f-mono); font-size: .75rem; opacity: .7; white-space: nowrap; }
.ty__steps strong { color: var(--ink); }

/* ---------- Certificate card previews (clean, no watermark) ---------- */
.cert__preview { position: relative; display: block; width: 100%; aspect-ratio: 4 / 3; padding: 0; border: 0; border-bottom: 1px solid var(--line);
  background: linear-gradient(135deg, var(--ink), #1d3350); cursor: zoom-in; overflow: hidden; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.cert__preview canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; background: #fff;
  pointer-events: none; opacity: 0; transition: opacity .4s, transform .5s var(--ease); }
.cert__preview.is-loaded canvas { opacity: 1; }
.cert__preview:hover canvas, .cert__preview:focus-visible canvas { transform: scale(1.04); }
.cert__preview-tag { position: absolute; top: 12px; left: 12px; z-index: 2; background: var(--ink); color: #fff; font-family: var(--f-mono);
  font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; padding: 5px 9px; border-radius: 3px; }
.cert__zoom { position: absolute; inset: 0; z-index: 1; display: grid; place-items: center; background: rgba(12,26,43,.45); color: #fff; opacity: 0; transition: opacity .25s; }
.cert__zoom svg { width: 34px; height: 34px; }
.cert__preview:hover .cert__zoom, .cert__preview:focus-visible .cert__zoom { opacity: 1; }
.cert__preview:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }
.cert__preview.is-failed { display: none; }
.cert--featured { border-color: rgba(200,16,46,.35); }
@media (hover: none) { .cert__zoom { opacity: 0 !important; } }

/* ---------- Brand mark (local vector logo) — header can never be wider than the screen ---------- */
.site-header .container { min-width: 0; }
.brand { min-width: 0; flex: 0 1 auto; overflow: hidden; }
.brand img.brand__mark { height: 44px; width: auto; max-width: 64px; flex: none; }
.brand__text { min-width: 0; }
.brand__name, .brand__sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-toggle { flex: none; }
@media (max-width: 1179px) { .brand img.brand__mark { height: 40px; } }
@media (max-width: 360px)  { .brand img.brand__mark { height: 34px; } .brand__name { font-size: .95rem; } }
.footer-logo { display: inline-flex; align-items: center; gap: 12px; background: #fff; padding: 10px 16px 10px 12px; border-radius: var(--radius); max-width: 100%; }
.footer-logo img { height: 44px; width: auto; flex: none; }
.footer-logo__text { display: flex; flex-direction: column; line-height: 1.1; color: var(--ink); min-width: 0; }
.footer-logo__text strong { font-family: var(--f-display); font-size: 1.15rem; text-transform: uppercase; letter-spacing: .02em; }
.footer-logo__text span { font-family: var(--f-mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--steel); }
html, body { max-width: 100%; overflow-x: clip; }

/* "Nigeria Limited" always shown under the name; only "Est. 2000" drops on small screens */
.brand__sub { display: block !important; }
@media (max-width: 1179px) {
  .brand__est { display: none; }
  .brand__name { font-size: 1.1rem; line-height: 1.05; }
  .brand__sub { font-size: .62rem; letter-spacing: .14em; margin-top: 3px; }
}
@media (max-width: 360px) { .brand__name { font-size: .98rem; } .brand__sub { font-size: .56rem; letter-spacing: .1em; } }
@media (max-width: 299px) { .brand { gap: 8px; } .brand img.brand__mark { height: 30px; } .brand__name { font-size: .86rem; } .brand__sub { font-size: .5rem; letter-spacing: .08em; } }
