/* ==========================================================================
   Certworx — styles
   Palette: Certworx Blue #0D1BD4 (primary) · Certworx Green #39E639 (accent)
            Accent Red #E60012 (sparing) · Dark Charcoal #1A1A1A · Light Gray #F2F2F2
   Type:    Montserrat (700/800 headings, 400/500 body)
   ========================================================================== */

:root {
  --green: #39E639;
  --green-dark: #23bd28;
  --blue: #0D1BD4;
  --blue-deep: #060c45;
  --blue-night: #04061f;
  --red: #E60012;
  --ink: #1A1A1A;
  --ink-soft: #3d3d3d;
  --gray: #F2F2F2;
  --paper: #f7f7f3;
  --line: rgba(26, 26, 26, 0.14);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-pill: 999px;
  --gutter: clamp(20px, 4vw, 56px);
  --header-h: 76px;
  --font: "Montserrat", "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
h1, h2, h3, p, dl, dd, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
img, svg, canvas { display: block; }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: fixed; top: 10px; left: 10px; z-index: 100;
  background: var(--blue); color: #fff; padding: 10px 18px; border-radius: var(--radius-pill);
  font-weight: 600; font-size: 13px;
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

/* ---------- Type ---------- */
.display {
  font-weight: 700;
  font-size: clamp(1.9rem, 4.2vw, 3.6rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.display--light { color: #fff; }

/* Scroll-tinted headings: words start dim, tint to full as they scroll in */
[data-scroll-words] .w { color: #c6c8bf; transition: color 0.35s ease; }
[data-scroll-words] .w.on { color: var(--ink); }
[data-scroll-words][data-reveal-dark] .w { color: rgba(255, 255, 255, 0.22); }
[data-scroll-words][data-reveal-dark] .w.on { color: #fff; }

/* ---------- Tag / label pill ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  align-self: start;
}
.tag-dot { width: 9px; height: 9px; background: var(--green); border-radius: 2px; flex: none; }
.tag--glass {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.22);
  color: #fff;
  backdrop-filter: blur(6px);
}
.tag--center { margin: 0 auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: stretch;
  gap: 5px;
  max-width: 100%;
}
.btn-label {
  display: inline-flex;
  align-items: center;
  padding: 15px 26px;
  border-radius: 14px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.4;
  transition: background-color 0.25s ease, color 0.25s ease;
}
.btn-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  border-radius: 14px;
  background: var(--green);
  color: var(--ink);
  flex: none;
  transition: transform 0.25s ease, background-color 0.25s ease;
}
.btn-chip svg { width: 17px; height: 17px; }
.btn:hover .btn-chip { transform: translateX(5px); }
.btn:active .btn-chip { transform: translateX(2px); }

.btn--blue .btn-label { background: var(--blue); color: #fff; }
.btn--blue:hover .btn-label { background: #0a15a8; }
.btn--dark .btn-label { background: var(--ink); color: #fff; }
.btn--dark:hover .btn-label { background: #000; }
.btn--green .btn-label { background: var(--green); color: var(--ink); }
.btn--green:hover .btn-label { background: #4dff4d; }
.btn--green .btn-chip { background: #fff; }
.btn--light .btn-label { background: #fff; color: var(--ink); }
.btn--light:hover .btn-label { background: var(--gray); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px clamp(14px, 2.2vw, 28px);
  pointer-events: none;
}
.site-header > * { pointer-events: auto; }

.brand {
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
}
/* White CERTWORX wordmark on a blue-gradient chip (recreates the supplied
   banner as live text: Montserrat 800, crisp at any size). */
.brand-wordmark {
  display: inline-block;
  padding: 14px 20px 13px;
  border-radius: 10px;
  background: linear-gradient(120deg, #2247bd, #0b2f9e);
  color: #fff;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1;
  /* soft white bleed so the chip lifts off dark backgrounds */
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.28), 0 0 16px rgba(255, 255, 255, 0.30);
}

.nav-pill {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-radius: 18px;
  padding: 6px;
  box-shadow: 0 2px 14px rgba(10, 10, 40, 0.10);
}
.nav-pill a {
  padding: 12px 18px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.nav-pill a:hover { background: var(--gray); }
.nav-pill a.is-active { background: var(--gray); }
.nav-pill .nav-cta { background: var(--blue); color: #fff; margin-left: 6px; }
.nav-pill .nav-cta:hover { background: #0a15a8; }

.nav-toggle {
  display: none;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 14px rgba(10, 10, 40, 0.10);
  position: relative;
}
.nav-toggle span {
  position: absolute;
  left: 16px; right: 16px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.25s ease, top 0.25s ease;
}
.nav-toggle span:nth-child(1) { top: 22px; }
.nav-toggle span:nth-child(2) { top: 29px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { top: 25px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { top: 25px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed;
  z-index: 40;
  inset: 0;
  background: var(--paper);
  padding: calc(var(--header-h) + 24px) 24px 32px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu nav { display: flex; flex-direction: column; }
.mobile-menu nav a {
  font-size: clamp(1.7rem, 7vw, 2.4rem);
  font-weight: 700;
  padding: 14px 4px;
  border-bottom: 1px solid var(--line);
}
.mobile-menu .btn { margin-top: 28px; align-self: flex-start; }

/* ---------- Aurora canvas ---------- */
.aurora { position: absolute; inset: 0; width: 100%; height: 100%; }

/* ---------- Hero ---------- */
/* Blue window bleeds to the top of the viewport so the fixed header pill
   floats inside it with even space around, matching the footer. */
.hero { padding: 0 clamp(10px, 1.4vw, 16px) clamp(10px, 1.4vw, 16px); }
.hero-window {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: max(640px, calc(100vh - 16px)); /* fallback for Safari < 15.4 */
  min-height: max(640px, calc(100svh - 16px));
  background: var(--blue-deep);
  display: flex;
}
.hero-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 48px;
  width: 100%;
  padding: calc(var(--header-h) + clamp(28px, 6vh, 72px)) var(--gutter) clamp(28px, 5vh, 56px);
}
.hero-headline {
  color: #fff;
  font-weight: 700;
  font-size: clamp(2.3rem, 5.6vw, 5.1rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
  max-width: 20ch;
  text-wrap: balance;
}
.hero-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.hero-copy { max-width: 54ch; }
.hero-copy p {
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  line-height: 1.55;
}
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 18px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
}
.hero-trust li { display: flex; align-items: center; gap: 9px; }
.hero-trust li::before {
  content: "";
  width: 7px; height: 7px;
  background: var(--green);
  border-radius: 2px;
}

/* ---------- Pitch (sticky scroll reveal) ---------- */
.pitch-track { height: 380vh; }
.pitch-sticky {
  position: sticky;
  top: 0;
  height: 100vh; /* fallback for Safari < 15.4 (no svh) */
  height: 100svh;
  overflow: hidden;
  background: var(--blue-deep);
}
.pitch-chrome {
  position: absolute;
  top: calc(var(--header-h) + 14px);
  left: var(--gutter);
  right: var(--gutter);
  z-index: 2;
}
.pitch-progress {
  position: relative;
  height: 1px;
  background: rgba(255, 255, 255, 0.22);
  margin-top: 20px;
}
.pitch-progress span {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0%;
  background: var(--green);
}
.pitch-counter {
  display: inline-flex;
  margin-top: 26px;
  padding: 10px 18px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-pill);
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
}
.pitch-counter .cur,
.pitch-counter [data-pitch-current] { color: #fff; }
.pitch-statements {
  position: absolute;
  z-index: 1;
  inset: 0;
  display: grid;
  align-items: center;
  padding: var(--header-h) var(--gutter) 0 clamp(20px, 32vw, 460px);
}
.pitch-statement {
  grid-area: 1 / 1;
  font-size: clamp(1.45rem, 2.9vw, 2.7rem);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
  max-width: 24em;
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  pointer-events: none;
}
.pitch-statement.is-active { opacity: 1; transform: none; }
.pitch-statement .w { color: rgba(255, 255, 255, 0.24); transition: color 0.3s ease; }
.pitch-statement .w.on { color: #fff; }

/* ---------- Standards (sticky scroll reveal) ---------- */
.stds-track { height: 430vh; }
.stds-sticky {
  position: sticky;
  top: 0;
  height: 100vh; /* fallback for Safari < 15.4 (no svh) */
  height: 100svh;
  overflow: hidden;
  background: var(--blue-deep);
  display: flex;
  flex-direction: column;
}
/* Chrome (tag / progress / counter) sits in normal flow here, so it can
   never collide with the list below, whatever the viewport height. */
.stds-sticky .pitch-chrome {
  position: relative; /* stays in flow, but paints above the aurora canvas */
  z-index: 1;
  top: auto;
  left: auto;
  right: auto;
  margin: 0 var(--gutter);
  padding-top: calc(var(--header-h) + 14px);
}
.stds-body {
  position: relative;
  z-index: 1;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden; /* safety: clip rather than bleed over the chrome above */
  padding: 16px var(--gutter) clamp(18px, 4vh, 44px);
}
.stds-lede {
  color: rgba(255, 255, 255, 0.6);
  font-size: clamp(0.72rem, 1.5vh, 0.875rem);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: clamp(10px, 2vh, 24px);
}
.stds-lines { display: flex; flex-direction: column; }
.stds-line {
  display: flex;
  align-items: baseline;
  gap: clamp(14px, 2.5vw, 32px);
  padding: clamp(4px, 1vh, 13px) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  opacity: 0.22;
  transform: translateY(14px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.stds-line.on { opacity: 1; transform: none; }
.stds-line--contact { padding: 0; }
.stds-link {
  display: flex;
  align-items: baseline;
  gap: clamp(14px, 2.5vw, 32px);
  width: 100%;
  padding: clamp(4px, 1vh, 13px) 0;
}
.stds-link:hover .stds-name { color: var(--green); }
.stds-link:hover .stds-desc { color: #fff; }
.stds-num {
  font-size: clamp(0.7rem, 1.4vh, 0.8125rem);
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--green);
  flex: none;
  width: 2.2em;
}
.stds-name {
  font-size: clamp(1.05rem, 3.2vh, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.15;
  color: #fff;
  white-space: nowrap;
  transition: color 0.25s ease;
}
.stds-desc {
  margin-left: auto;
  text-align: right;
  max-width: 45%;
  line-height: 1.35;
  font-size: clamp(0.62rem, 1.4vh, 0.875rem);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  transition: color 0.25s ease;
}

@media (max-width: 640px) {
  /* Stack each standard: name row, descriptor underneath — right-aligned
     descriptors don't fit next to the names on narrow screens. */
  .stds-line, .stds-link { flex-wrap: wrap; row-gap: 2px; padding: 5px 0; }
  .stds-line--contact { padding: 0; }
  .stds-name { font-size: clamp(1rem, 2.6vh, 1.4rem); }
  .stds-desc {
    flex-basis: 100%;
    max-width: none;
    text-align: left;
    margin-left: calc(2em + 14px); /* aligns under the name, past the number column */
  }
}

/* ---------- Sections (shared) ---------- */
.section { padding: clamp(72px, 11vw, 140px) var(--gutter); }
.section-head {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(0, 2.4fr);
  gap: 28px var(--gutter);
  align-items: start;
  margin-bottom: clamp(40px, 6vw, 80px);
}
.section-head-body { display: flex; flex-direction: column; gap: 26px; align-items: flex-start; }
.section-lede {
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  color: var(--ink-soft);
  max-width: 52ch;
}

/* Fade-up on scroll (hidden state only applies once JS is confirmed running) */
.js [data-animate] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.js [data-animate].in-view { opacity: 1; transform: none; }
.js [data-animate][data-delay="1"] { transition-delay: 0.12s; }
.js [data-animate][data-delay="2"] { transition-delay: 0.24s; }
.js [data-animate][data-delay="3"] { transition-delay: 0.36s; }

/* ---------- Services accordion ---------- */
.services { background: var(--paper); }
.accordion { border-top: 1px solid var(--line); }
.accordion-item { border-bottom: 1px solid var(--line); }
.accordion-trigger {
  display: grid;
  grid-template-columns: minmax(58px, 110px) 1fr auto;
  align-items: center;
  gap: clamp(12px, 2.5vw, 32px);
  width: 100%;
  padding: clamp(22px, 3.4vw, 40px) 4px;
  text-align: left;
}
.accordion-num {
  font-size: clamp(1.5rem, 3vw, 2.6rem);
  font-weight: 700;
  color: #c6c8bf;
  transition: color 0.25s ease;
}
.accordion-title {
  font-size: clamp(1.35rem, 3vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.15;
  transition: color 0.25s ease;
}
.accordion-trigger:hover .accordion-title { color: var(--blue); }
.accordion-item.is-open .accordion-num { color: var(--green-dark); }
.accordion-icon {
  position: relative;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  flex: none;
  transition: background-color 0.25s ease, border-color 0.25s ease, transform 0.35s ease;
}
.accordion-icon::before,
.accordion-icon::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 16px; height: 2px;
  background: var(--ink);
  translate: -50% -50%;
  transition: background-color 0.25s ease, rotate 0.35s ease;
}
.accordion-icon::after { rotate: 90deg; }
.accordion-item.is-open .accordion-icon { background: var(--blue); border-color: var(--blue); transform: rotate(45deg); }
.accordion-item.is-open .accordion-icon::before,
.accordion-item.is-open .accordion-icon::after { background: #fff; }
.accordion-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}
.accordion-item.is-open .accordion-panel { grid-template-rows: 1fr; }
.accordion-panel-inner { overflow: hidden; }
.accordion-panel-inner p {
  max-width: 62ch;
  padding: 0 4px clamp(26px, 3vw, 44px);
  margin-left: clamp(70px, 9vw, 142px);
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.3vw, 1.15rem);
}

/* ---------- Pillars ---------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.pillar {
  display: flex;
  flex-direction: column;
  gap: clamp(60px, 9vw, 150px);
  padding: clamp(28px, 3.4vw, 48px);
  position: relative;
}
.pillar-num {
  position: absolute;
  top: clamp(28px, 3.4vw, 48px);
  right: clamp(28px, 3.4vw, 48px);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.1em;
  opacity: 0.75;
}
.pillar-icon { width: clamp(84px, 8vw, 116px); height: auto; }
.pillar-body h3 {
  font-size: clamp(1.4rem, 2vw, 1.9rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}
.pillar-body p { max-width: 40ch; font-size: 15.5px; line-height: 1.6; }
.pillar--green { background: var(--green); color: var(--ink); }
.pillar--blue { background: var(--blue); color: #fff; }
.pillar--blue p { color: rgba(255, 255, 255, 0.85); }
.pillar--gray { background: #e7e7e2; color: var(--ink); }
.pillar--gray p, .pillar--green p { color: rgba(26, 26, 26, 0.75); }

/* ---------- Standards marquee ---------- */
.standards {
  padding: clamp(64px, 9vw, 120px) 0 clamp(56px, 8vw, 110px);
  text-align: center;
  overflow: hidden;
}
.marquee { margin-top: clamp(28px, 4vw, 48px); }
.marquee-inner {
  display: flex;
  width: max-content;
  animation: marquee 46s linear infinite;
}
.marquee-run {
  font-size: clamp(3.4rem, 9vw, 8.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  white-space: nowrap;
  color: var(--blue);
  line-height: 1.1;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Industries ---------- */
.industries { background: var(--gray); border-radius: var(--radius-lg); margin: 0 clamp(10px, 1.4vw, 16px); }
.industries .tag { background: #fff; }
.chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.chip-grid li {
  padding: 16px 26px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  font-size: clamp(0.95rem, 1.3vw, 1.15rem);
  font-weight: 600;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}
.chip-grid li:hover {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
  transform: translateY(-3px);
}

/* ---------- ISO 9001:2026 ---------- */
.iso2026 { padding-left: clamp(10px, 1.4vw, 16px); padding-right: clamp(10px, 1.4vw, 16px); }
.iso2026-inner {
  background:
    radial-gradient(60% 90% at 85% -10%, rgba(13, 27, 212, 0.55), transparent 60%),
    radial-gradient(40% 60% at -5% 110%, rgba(57, 230, 57, 0.18), transparent 60%),
    var(--ink);
  border-radius: var(--radius-lg);
  padding: clamp(48px, 7vw, 100px) var(--gutter);
  color: #fff;
}
.iso2026-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(260px, 1fr);
  gap: clamp(40px, 6vw, 96px);
  margin-top: clamp(32px, 5vw, 64px);
}
.iso2026-copy { display: flex; flex-direction: column; gap: 26px; align-items: flex-start; }
.iso2026-copy p { color: rgba(255, 255, 255, 0.78); max-width: 58ch; font-size: clamp(1rem, 1.3vw, 1.15rem); }
.iso2026-copy .btn { margin-top: 8px; }
.iso2026-timeline { display: flex; flex-direction: column; }
.iso2026-timeline li {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 26px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}
.iso2026-timeline li:last-child { border-bottom: 1px solid rgba(255, 255, 255, 0.18); }
.timeline-when {
  font-size: clamp(1.7rem, 2.6vw, 2.4rem);
  font-weight: 700;
  color: var(--green);
  letter-spacing: -0.01em;
}
.timeline-what { color: rgba(255, 255, 255, 0.7); font-size: 15px; }

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(0, 1.7fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.about-stats {
  display: grid;
  gap: 0;
  position: sticky;
  top: calc(var(--header-h) + 24px);
}
.stat {
  display: flex;
  flex-direction: column-reverse;
  gap: 4px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}
.stat:last-child { border-bottom: 1px solid var(--line); }
.stat dd {
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--blue);
  line-height: 1.05;
}
.stat dt {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.about-copy { display: flex; flex-direction: column; gap: 22px; }
.about-copy p { max-width: 62ch; font-size: clamp(1rem, 1.35vw, 1.2rem); color: var(--ink-soft); }
.about-copy p:first-child { color: var(--ink); }

/* ---------- Contact ---------- */
.contact { background: var(--gray); border-radius: var(--radius-lg); margin: 0 clamp(10px, 1.4vw, 16px) clamp(10px, 1.4vw, 16px); }
.contact .tag { background: #fff; }
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(260px, 1fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.contact-links { display: flex; flex-direction: column; }
.contact-line {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: clamp(24px, 3vw, 36px) 0;
  border-top: 1px solid var(--line);
  transition: padding-left 0.3s ease;
}
.contact-line:last-child { border-bottom: 1px solid var(--line); }
.contact-line:hover { padding-left: 14px; }
.contact-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0;
}
.contact-value {
  font-size: clamp(1.5rem, 3.4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--blue);
  overflow-wrap: anywhere;
}
.contact-line:hover .contact-value { color: var(--green-dark); }
.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  align-self: flex-start;
  margin-top: 26px;
  padding: 15px 26px;
  border-radius: 14px;
  background: #25D366;
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.4;
  transition: background-color 0.25s ease, transform 0.25s ease;
}
.btn-whatsapp svg { width: 20px; height: 20px; flex: none; }
.btn-whatsapp:hover { background: #1fb457; transform: translateY(-2px); }
.footer-nav a.btn-whatsapp { color: #fff; margin-top: 10px; }
.footer-nav a.btn-whatsapp:hover { color: #fff; }
.contact-areas { display: flex; flex-direction: column; gap: 14px; padding-top: 8px; }
.contact-areas p { color: var(--ink-soft); max-width: 40ch; }
.contact-areas strong { color: var(--ink); }

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  overflow: hidden;
  background: var(--blue-night);
  color: #fff;
}
.footer-inner {
  position: relative;
  padding: clamp(72px, 10vw, 130px) var(--gutter) 28px;
  display: flex;
  flex-direction: column;
}
.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(300px, 1fr) auto;
  gap: clamp(40px, 5vw, 80px);
  align-items: start;
}
.footer-statement {
  font-size: clamp(1.7rem, 3.4vw, 3.1rem);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.015em;
  max-width: 18em;
  text-wrap: balance;
}
.footer-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.footer-nav nav, .footer-nav > div { display: flex; flex-direction: column; gap: 12px; }
.footer-heading {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 6px;
}
.footer-nav a { color: rgba(255, 255, 255, 0.88); transition: color 0.2s ease; width: fit-content; }
.footer-nav a:hover { color: var(--green); }
.to-top {
  width: 56px; height: 56px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 18px;
  display: grid;
  place-items: center;
  transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}
.to-top svg { width: 18px; height: 18px; }
.to-top:hover { background: var(--green); border-color: var(--green); color: var(--ink); }
.footer-cta { margin-top: clamp(36px, 5vw, 56px); align-self: flex-start; }
.footer-wordmark {
  font-size: clamp(3rem, 13.4vw, 13rem);
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 0.95;
  text-align: center;
  margin-top: clamp(48px, 7vw, 90px);
  white-space: nowrap;
  user-select: none;
}
.footer-legal {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: clamp(32px, 4vw, 56px);
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}
.footer-qushum { color: rgba(255, 255, 255, 0.85); }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .section-head { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .to-top { order: -1; justify-self: end; }
  /* Centre the statements on smaller screens instead of anchoring them low */
  .pitch-statements {
    padding-left: var(--gutter);
    align-items: center;
    padding-top: calc(var(--header-h) + 60px);
    padding-bottom: 4vh;
  }
}

@media (max-width: 860px) {
  .nav-pill { display: none; }
  .nav-toggle { display: block; }
  /* Full-bleed hero on mobile: no paper border or rounded window */
  .hero { padding: 0; }
  .hero-window {
    border-radius: 0;
    min-height: max(640px, 100vh); /* fallback for Safari < 15.4 */
    min-height: max(640px, 100svh);
  }
  .about-grid, .contact-grid, .iso2026-grid { grid-template-columns: 1fr; }
  .about-stats { position: static; grid-template-columns: 1fr 1fr; gap: 0 24px; }
  .pillars { grid-template-columns: 1fr; }
  .pillar { gap: 48px; }
  .hero-foot { flex-direction: column; align-items: flex-start; }
}

/* ---------- No-JS fallback: pitch statements flow as a plain list ---------- */
html:not(.js) .pitch-track { height: auto; }
html:not(.js) .pitch-sticky { position: static; height: auto; }
html:not(.js) .pitch-statements {
  position: static;
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding: 140px var(--gutter) 80px;
}
html:not(.js) .pitch-statement { opacity: 1; transform: none; color: #fff; }
html:not(.js) .stds-track { height: auto; }
html:not(.js) .stds-sticky { position: static; height: auto; }
html:not(.js) .stds-line { opacity: 1; transform: none; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-animate] { opacity: 1; transform: none; transition: none; }
  .marquee-inner { animation: none; flex-wrap: wrap; width: auto; }
  .marquee-run { font-size: clamp(1.4rem, 3vw, 2.4rem); }
  .marquee-run[aria-hidden="true"] { display: none; }
  .pitch-track { height: auto !important; }
  .pitch-sticky { position: static; height: auto; padding: 80px 0; }
  .pitch-statements { position: static; display: flex; flex-direction: column; gap: 32px; padding: 48px var(--gutter) 0; }
  .pitch-statement { opacity: 1; transform: none; }
  .pitch-statement .w, .pitch-statement { color: #fff; }
  .stds-track { height: auto !important; }
  .stds-sticky { position: static; height: auto; }
  .stds-line { opacity: 1; transform: none; }
  [data-scroll-words] .w { color: inherit; }
  [data-scroll-words][data-reveal-dark] .w { color: #fff; }
  .btn:hover .btn-chip { transform: none; }
}
