/* =============================================================
   PENTWARE COMPUTER — Corporate Website
   Stylesheet: global tokens, layout, components, motion
   ============================================================= */

/* ---------- 1. Design Tokens ---------- */
:root {
  /* Brand */
  --navy:        #0F3057;
  --navy-deep:   #0A2340;
  --navy-soft:   #1B4A80;
  --blue:        #1B6CA8;
  --amber:       #F2A20C;
  --amber-dark:  #C97F00;

  /* Neutrals */
  --ink:         #10151C;
  --body:        #45505E;
  --muted:       #6B7787;
  --line:        #DDE3EA;
  --tint:        #F4F6F8;
  --white:       #FFFFFF;

  /* Typography */
  --font-head: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;

  --fs-display: clamp(2.15rem, 1.2rem + 3.5vw, 3.7rem);
  --fs-h2:      clamp(1.7rem, 1.05rem + 2.2vw, 2.65rem);
  --fs-h3:      clamp(1.1rem, .98rem + .5vw, 1.3rem);
  --fs-lead:    clamp(1.02rem, .96rem + .35vw, 1.16rem);
  --fs-body:    1rem;
  --fs-sm:      .875rem;
  --fs-xs:      .78rem;

  /* Space */
  --s-1: .5rem;  --s-2: 1rem;   --s-3: 1.5rem;
  --s-4: 2rem;   --s-5: 3rem;   --s-6: 4rem;
  --section-y: clamp(4rem, 2rem + 7vw, 7.5rem);

  /* Shape */
  --r-sm: 4px;
  --r:    8px;
  --r-lg: 14px;

  /* Elevation */
  --sh-sm: 0 1px 2px rgba(15,48,87,.06), 0 2px 8px rgba(15,48,87,.05);
  --sh:    0 4px 12px rgba(15,48,87,.08), 0 16px 40px rgba(15,48,87,.07);
  --sh-lg: 0 10px 24px rgba(15,48,87,.12), 0 28px 70px rgba(15,48,87,.14);

  --shell: 1280px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---------- 2. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--body);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -.02em;
  margin: 0 0 var(--s-2);
  text-wrap: balance;
}
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); letter-spacing: -.01em; }
h4 { font-size: var(--fs-sm); letter-spacing: .06em; text-transform: uppercase; }

p { margin: 0 0 var(--s-2); }
p:last-child { margin-bottom: 0; }

a { color: var(--blue); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--navy); }

img { max-width: 100%; height: auto; display: block; }
ul, ol { margin: 0; padding: 0; list-style: none; }
address { font-style: normal; }
svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0;
  margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 50%; top: -100px; transform: translateX(-50%);
  z-index: 999; background: var(--navy); color: var(--white);
  padding: .75rem 1.5rem; border-radius: 0 0 var(--r) var(--r); font-weight: 600;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 0; color: var(--white); }

/* ---------- 3. Layout Helpers ---------- */
.shell {
  width: min(100% - 2.5rem, var(--shell));
  margin-inline: auto;
}

.section { padding-block: var(--section-y); }
.section--tint { background: var(--tint); }

.section--dark {
  background:
    radial-gradient(900px 460px at 15% 0%, rgba(27,108,168,.32), transparent 65%),
    linear-gradient(160deg, var(--navy-deep), var(--navy) 60%, #0d2b4d);
  color: rgba(255,255,255,.78);
}
.section--dark h2, .section--dark h3 { color: var(--white); }

.section__head { max-width: 62ch; margin-bottom: clamp(2.5rem, 1.5rem + 2.5vw, 3.75rem); }
.section__head--center { margin-inline: auto; text-align: center; }
.section__intro { font-size: var(--fs-lead); }

.eyebrow {
  font-family: var(--font-head);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--blue);
  margin: 0 0 var(--s-2);
  display: flex;
  align-items: center;
  gap: .7rem;
}
.section__head--center .eyebrow { justify-content: center; }
.eyebrow::before {
  content: ""; width: 28px; height: 2px; background: var(--amber); flex: none;
}
.eyebrow--light { color: var(--amber); }

.lead { font-size: var(--fs-lead); color: var(--body); }
.section--dark .lead { color: rgba(255,255,255,.8); }


/* ---------- 4. Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-family: var(--font-head); font-weight: 600; font-size: var(--fs-sm);
  letter-spacing: .01em; padding: .8rem 1.5rem; border-radius: var(--r-sm);
  border: 1.5px solid transparent; cursor: pointer;
  transition: transform .2s var(--ease), background .2s var(--ease),
              box-shadow .25s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.btn--lg { padding: 1rem 1.9rem; font-size: 1rem; }

/* Amber fill uses near-black text: 8.95:1 contrast */
.btn--accent { background: var(--amber); color: #16202B; box-shadow: 0 6px 18px rgba(242,162,12,.28); }
.btn--accent:hover { background: #ffb52e; color: #16202B; transform: translateY(-2px); box-shadow: 0 10px 26px rgba(242,162,12,.36); }

.btn--ghost { border-color: rgba(255,255,255,.42); color: var(--white); background: rgba(255,255,255,.06); backdrop-filter: blur(6px); }
.btn--ghost:hover { border-color: var(--white); background: rgba(255,255,255,.15); color: var(--white); transform: translateY(-2px); }

/* ---------- 5. Scroll Progress ---------- */
.scroll-progress {
  position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 120;
  background: transparent; pointer-events: none;
}
.scroll-progress span {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--blue), var(--amber));
  transition: width .08s linear;
}

/* ---------- 6. Top Bar ---------- */
.topbar {
  background: var(--navy-deep);
  color: rgba(255,255,255,.72);
  font-size: var(--fs-xs);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.topbar__inner { display: flex; justify-content: space-between; align-items: center; gap: var(--s-3); min-height: 42px; flex-wrap: wrap; }
.topbar__contact { display: flex; gap: var(--s-3); flex-wrap: wrap; }
.topbar a { color: rgba(255,255,255,.78); display: inline-flex; align-items: center; gap: .45rem; }
.topbar a:hover { color: var(--amber); }
.topbar svg { width: 14px; height: 14px; flex: none; }
.topbar__meta { display: flex; align-items: center; gap: var(--s-3); }
.topbar__badge { letter-spacing: .08em; color: rgba(255,255,255,.55); }
.topbar__profile { font-weight: 600; }

/* ---------- 7. Header ---------- */
.header {
  position: sticky; top: 0; z-index: 110;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s var(--ease), background .3s var(--ease);
}
.header.is-stuck { box-shadow: var(--sh-sm); background: rgba(255,255,255,.97); }

.header__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); min-height: 74px; }

.brand { display: inline-flex; align-items: center; gap: .7rem; color: var(--ink); }
.brand__mark {
  width: 38px; height: 38px; flex: none; display: grid; place-items: center;
  border-radius: var(--r-sm); color: var(--white);
  background: linear-gradient(150deg, var(--navy), var(--blue));
  box-shadow: 0 4px 12px rgba(15,48,87,.28);
}
.brand__mark svg { width: 20px; height: 20px; fill: currentColor; stroke: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__text strong { font-family: var(--font-head); font-size: 1.08rem; letter-spacing: .06em; }
.brand__text em {
  font-style: normal; font-size: .66rem; letter-spacing: .3em;
  text-transform: uppercase; color: var(--muted);
}
.brand--light { color: var(--white); }
.brand--light .brand__text em { color: rgba(255,255,255,.6); }

.nav { display: flex; align-items: center; gap: var(--s-4); }
.nav > ul { display: flex; gap: 1.6rem; }
.nav a {
  font-size: var(--fs-sm); font-weight: 500; color: var(--body);
  position: relative; padding-block: .5rem;
}
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: var(--amber); transition: width .25s var(--ease);
}
.nav a:hover { color: var(--navy); }
.nav a:hover::after, .nav a.is-active::after { width: 100%; }
.nav a.is-active { color: var(--navy); font-weight: 600; }

.nav-toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line);
  border-radius: var(--r-sm); background: var(--white); cursor: pointer;
  padding: 11px 10px; flex-direction: column; justify-content: space-between;
}
.nav-toggle span { display: block; height: 2px; background: var(--navy); border-radius: 2px; transition: transform .28s var(--ease), opacity .2s var(--ease); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* ---------- 8. Hero ---------- */
.hero {
  position: relative; min-height: clamp(400px, 64vh, 660px);
  display: flex; align-items: center; overflow: hidden;
  color: var(--white); isolation: isolate;
}

/* ---- Banner slider ---- */
.hero__slider { position: absolute; inset: 0; z-index: -3; }
.hero__track { position: absolute; inset: 0; }

.hero__slide {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity 1.1s var(--ease);
}
.hero__slide.is-on { opacity: 1; }
.hero__slide img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
}
/* Slow drift on the active slide only, so the banner never sits completely still. */
.hero__slide.is-on img { animation: heroDrift 9s var(--ease) forwards; }

/* Per-slide caption, bottom left. Sits on its own translucent panel so it stays
   readable on any photograph, rather than relying on the image being dark. */
.hero__cap {
  position: absolute; left: clamp(1rem, .4rem + 2vw, 2.25rem); bottom: clamp(3.4rem, 2.6rem + 2vw, 4.6rem);
  z-index: 2; max-width: min(30rem, 72%);
  padding: 1rem 1.25rem;
  text-align: left;
  border-radius: var(--r);
  border-left: 3px solid var(--amber);
  background: rgba(7,22,42,.66);
  backdrop-filter: blur(10px) saturate(130%);
  box-shadow: 0 10px 30px rgba(4,14,28,.3);
  opacity: 0; transform: translateY(16px);
  transition: opacity .7s var(--ease) .25s, transform .7s var(--ease) .25s;
}
.hero__slide.is-on .hero__cap { opacity: 1; transform: translateY(0); }

.hero__cap-title {
  font-family: var(--font-head); font-weight: 700;
  font-size: clamp(1.25rem, 1rem + 1.1vw, 1.85rem);
  line-height: 1.15; letter-spacing: -.01em;
  color: var(--white); margin: 0 0 .3rem;
}
.hero__cap-sub {
  font-size: var(--fs-sm); line-height: 1.45;
  color: rgba(255,255,255,.88); margin: 0;
}
@keyframes heroDrift {
  from { transform: scale(1.02); }
  to   { transform: scale(1.09); }
}

/* Only a light brand tint now — there is no copy over the image to protect,
   so the photographs carry the banner. */
.hero__veil {
  position: absolute; inset: 0; z-index: -2;
  background:
    linear-gradient(180deg, rgba(6,20,38,.30) 0%, rgba(6,20,38,.10) 30%, rgba(6,20,38,.14) 62%, rgba(6,20,38,.52) 100%);
}

/* ---- Slider controls ---- */
.hero__nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 46px; height: 46px; display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,.35); border-radius: 50%;
  background: rgba(8,26,48,.42); color: var(--white);
  backdrop-filter: blur(6px); cursor: pointer;
  transition: background .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.hero__nav svg { width: 22px; height: 22px; }
.hero__nav:hover { background: rgba(8,26,48,.72); border-color: var(--amber); }
.hero__nav--prev { left: clamp(.75rem, .3rem + 1.6vw, 1.75rem); }
.hero__nav--next { right: clamp(.75rem, .3rem + 1.6vw, 1.75rem); }
.hero__nav--prev:hover { transform: translateY(-50%) translateX(-3px); }
.hero__nav--next:hover { transform: translateY(-50%) translateX(3px); }

/* Bottom right, clear of both the centred scroll cue and the left-hand caption. */
.hero__dots {
  position: absolute; right: clamp(1rem, .4rem + 2vw, 2.25rem); bottom: 1.6rem; z-index: 3;
  display: flex; gap: .55rem;
}
.hero__dots button {
  width: 34px; height: 4px; padding: 0; border: 0; border-radius: 999px; cursor: pointer;
  background: rgba(255,255,255,.38);
  transition: background .25s var(--ease), width .35s var(--ease);
}
.hero__dots button:hover { background: rgba(255,255,255,.7); }
.hero__dots button[aria-selected="true"] { background: var(--amber); width: 52px; }
.hero__grid-lines {
  position: absolute; inset: 0; z-index: -1; opacity: .3;
  background-image:
    linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px);
  background-size: 78px 78px;
  mask-image: radial-gradient(120% 90% at 30% 50%, #000 25%, transparent 78%);
}
@keyframes heroFadeUp {
  from { transform: translateY(20px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}

.hero__scroll {
  position: absolute; left: 50%; bottom: 1.8rem; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: .55rem;
  font-size: var(--fs-xs); letter-spacing: .22em; text-transform: uppercase;
  color: rgba(255,255,255,.65);
  animation: heroFadeUp .9s var(--ease) 1.45s both;
}
.hero__scroll:hover { color: var(--amber); }
.hero__scroll-line { width: 1px; height: 42px; background: linear-gradient(rgba(255,255,255,.05), var(--amber)); position: relative; overflow: hidden; }
.hero__scroll-line::after {
  content: ""; position: absolute; inset: 0; background: var(--amber);
  animation: scrollCue 2.1s var(--ease) infinite;
}
@keyframes scrollCue {
  0%   { transform: translateY(-100%); }
  60%  { transform: translateY(100%); }
  100% { transform: translateY(100%); }
}

/* ---------- 9. Stats ---------- */
.stats { background: var(--navy); padding-block: clamp(2.5rem, 1.5rem + 3vw, 3.75rem); }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(255,255,255,.12); }
.stat { background: var(--navy); padding: var(--s-3) var(--s-3) var(--s-3) var(--s-4); position: relative; }
.stat::before {
  content: ""; position: absolute; left: var(--s-2); top: var(--s-3); bottom: var(--s-3);
  width: 3px; background: var(--amber); border-radius: 2px; opacity: .85;
}
.stat__num {
  display: block; font-family: var(--font-head); font-weight: 700;
  font-size: clamp(2.1rem, 1.4rem + 2.4vw, 3.1rem); line-height: 1;
  color: var(--white); font-variant-numeric: tabular-nums; margin-bottom: .35rem;
}
.stat__label { display: block; font-weight: 600; font-size: var(--fs-sm); color: var(--white); }
.stat__note { display: block; font-size: var(--fs-xs); color: rgba(255,255,255,.6); }

/* ---------- 10. About ---------- */
.about { display: grid; grid-template-columns: minmax(0,.85fr) minmax(0,1fr); gap: clamp(2.5rem, 1rem + 5vw, 5rem); align-items: center; }
.about__media { position: relative; }
.about__media img { border-radius: var(--r-lg); box-shadow: var(--sh); aspect-ratio: 4/3.2; object-fit: cover; }
.about__badge {
  position: absolute; right: -1rem; bottom: -1.4rem;
  background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--amber);
  border-radius: var(--r); padding: var(--s-2) var(--s-3);
  box-shadow: var(--sh); max-width: 15rem;
}
.about__badge strong {
  display: block; font-family: var(--font-head); font-size: 1.7rem;
  color: var(--navy); line-height: 1.1; font-variant-numeric: tabular-nums;
}
.about__badge span { font-size: var(--fs-xs); color: var(--muted); line-height: 1.4; display: block; margin-top: .25rem; }

.ticklist { margin: var(--s-3) 0; display: grid; gap: .7rem; }
.ticklist li { position: relative; padding-left: 2rem; font-size: var(--fs-sm); }
.ticklist li::before {
  content: ""; position: absolute; left: 0; top: .28rem; width: 18px; height: 18px;
  border-radius: 50%; background: rgba(27,108,168,.12);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231B6CA8' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 13 4 4 10-10'/%3E%3C/svg%3E");
  background-size: 11px; background-repeat: no-repeat; background-position: center;
}

.about__partners { display: flex; gap: var(--s-4); flex-wrap: wrap; margin-top: var(--s-3); padding-top: var(--s-3); border-top: 1px solid var(--line); }
.about__partners strong { display: block; font-family: var(--font-head); color: var(--ink); font-size: var(--fs-sm); }
.about__partners span { font-size: var(--fs-xs); color: var(--muted); letter-spacing: .1em; text-transform: uppercase; }

/* ---------- 11. Service Cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(265px, 1fr)); gap: var(--s-3); }

.card {
  position: relative; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: var(--s-4) var(--s-3) var(--s-3);
  overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.card::after {
  content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 0;
  background: linear-gradient(90deg, var(--blue), var(--amber));
  transition: width .45s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--sh-lg); border-color: transparent; }
.card:hover::after { width: 100%; }

.card__idx {
  position: absolute; right: var(--s-3); top: var(--s-2);
  font-family: var(--font-head); font-weight: 700; font-size: 2.4rem;
  color: rgba(15,48,87,.06); line-height: 1;
}
.card__icon {
  width: 46px; height: 46px; display: grid; place-items: center;
  border-radius: var(--r); background: rgba(27,108,168,.1); color: var(--blue);
  margin-bottom: var(--s-2); transition: background .3s var(--ease), color .3s var(--ease);
}
.card__icon svg { width: 23px; height: 23px; }
.card:hover .card__icon { background: var(--navy); color: var(--amber); }
.card p { font-size: var(--fs-sm); margin: 0; }

.card--cta {
  background: linear-gradient(155deg, var(--navy), var(--navy-soft));
  border-color: transparent; color: rgba(255,255,255,.8); display: flex; flex-direction: column;
}
.card--cta h3 { color: var(--white); }
.card--cta:hover { color: rgba(255,255,255,.9); }
.card__link {
  display: inline-flex; align-items: center; gap: .5rem; margin-top: auto; padding-top: var(--s-2);
  font-family: var(--font-head); font-weight: 600; font-size: var(--fs-sm); color: var(--amber);
}
.card__link svg { width: 17px; height: 17px; transition: transform .25s var(--ease); }
.card--cta:hover .card__link svg { transform: translateX(5px); }

/* ---------- 12. Process Flow ---------- */
.flow { position: relative; display: grid; grid-template-columns: repeat(7, 1fr); gap: var(--s-2); }
.flow::before {
  content: ""; position: absolute; left: 5%; right: 5%; top: 9px; height: 2px;
  background: var(--line);
}
.flow::after {
  content: ""; position: absolute; left: 5%; top: 9px; height: 2px;
  width: calc((100% - 10%) * var(--p, 0)); background: linear-gradient(90deg, var(--blue), var(--amber));
  transition: width .6s var(--ease);
}
.flow__step { position: relative; padding-top: 2.6rem; text-align: center; }
.flow__dot {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 20px; height: 20px; border-radius: 50%; background: var(--white);
  border: 2px solid var(--line); transition: border-color .3s var(--ease), background .3s var(--ease), transform .3s var(--ease);
}
.flow__step.is-on .flow__dot { border-color: var(--amber); background: var(--amber); transform: translateX(-50%) scale(1.15); }
.flow__step strong { display: block; font-family: var(--font-head); font-size: .95rem; color: var(--ink); margin-bottom: .3rem; }
.flow__step span:last-child { display: block; font-size: var(--fs-xs); color: var(--muted); line-height: 1.45; }

/* ---------- 13. Projects ---------- */
.projects { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: var(--s-3); }
.project {
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--r-lg); padding: var(--s-3);
  backdrop-filter: blur(6px);
  transition: transform .35s var(--ease), background .35s var(--ease), border-color .35s var(--ease);
}
.project:hover { transform: translateY(-5px); background: rgba(255,255,255,.09); border-color: rgba(242,162,12,.5); }
.project__top { display: flex; justify-content: space-between; align-items: center; gap: var(--s-2); margin-bottom: var(--s-2); }
.tag {
  font-size: var(--fs-xs); font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  padding: .28rem .7rem; border-radius: 999px;
  background: rgba(255,255,255,.14); color: rgba(255,255,255,.85);
}
.tag--live { background: var(--amber); color: #16202B; }
.project__state { font-size: var(--fs-xs); letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.55); }
.project h3 { font-size: 1.1rem; margin-bottom: .4rem; }
.project__client { font-size: var(--fs-sm); font-weight: 600; color: var(--amber); margin-bottom: .6rem; }
.project__desc { font-size: var(--fs-sm); color: rgba(255,255,255,.72); }
.project__meta { display: flex; gap: var(--s-3); margin: var(--s-3) 0 0; padding-top: var(--s-2); border-top: 1px solid rgba(255,255,255,.14); }
.project__meta dt { font-size: var(--fs-xs); letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.5); margin-bottom: .15rem; }
.project__meta dd { margin: 0; font-family: var(--font-head); font-weight: 600; color: var(--white); font-size: .98rem; }

.projects__foot {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-3);
  flex-wrap: wrap; margin-top: var(--s-4); padding-top: var(--s-3);
  border-top: 1px solid rgba(255,255,255,.14);
}
.projects__foot p { font-size: var(--fs-sm); color: rgba(255,255,255,.7); margin: 0; }

/* ---------- 14. Strength ---------- */
.strength { display: grid; grid-template-columns: minmax(0,1.25fr) minmax(0,.75fr); gap: clamp(2.5rem, 1rem + 4vw, 4.5rem); align-items: start; }
.bars { display: grid; gap: 1.15rem; margin-top: var(--s-4); }
.bar { display: grid; grid-template-columns: 1fr auto; gap: .3rem .75rem; }
.bar__label { font-family: var(--font-head); font-weight: 600; font-size: var(--fs-sm); color: var(--ink); }
.bar__val { font-family: var(--font-head); font-weight: 700; color: var(--navy); font-variant-numeric: tabular-nums; }
.bar__track { grid-column: 1 / -1; height: 8px; background: var(--tint); border-radius: 999px; overflow: hidden; }
.bar__fill {
  display: block; height: 100%; width: 0; border-radius: 999px;
  background: linear-gradient(90deg, var(--navy), var(--blue));
  transition: width 1.1s var(--ease);
}
.bar.is-in .bar__fill { width: var(--w); }
.bar:nth-child(1) .bar__fill { background: linear-gradient(90deg, var(--navy), var(--amber)); }
.bar__exp { grid-column: 1 / -1; font-size: var(--fs-xs); color: var(--muted); }

.strength__side { display: grid; gap: var(--s-3); }
.strength__figure { margin: 0; }
.strength__figure img { border-radius: var(--r-lg); box-shadow: var(--sh); aspect-ratio: 3/2; object-fit: cover; }
.strength__figure figcaption { font-size: var(--fs-xs); color: var(--muted); margin-top: .6rem; line-height: 1.45; }

/* ---------- 15. Coverage ---------- */
.coverage { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--s-3); }
.coverage__card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: var(--s-4) var(--s-3) var(--s-3); position: relative; overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.coverage__card:hover { transform: translateY(-5px); box-shadow: var(--sh-lg); }
.coverage__count {
  font-family: var(--font-head); font-weight: 700; font-size: 2.8rem; line-height: 1;
  color: var(--navy); display: block; margin-bottom: .5rem; font-variant-numeric: tabular-nums;
}
.coverage__card p { font-size: var(--fs-sm); }
.coverage__client {
  display: block; margin-top: var(--s-2); padding-top: var(--s-2); border-top: 1px solid var(--line);
  font-size: var(--fs-xs); letter-spacing: .06em; text-transform: uppercase; color: var(--blue); font-weight: 600;
}

/* ---------- 15b. Safety ---------- */
.safety { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--s-3); }
.safety__card {
  border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s-3);
  background: var(--white);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.safety__card:hover { transform: translateY(-5px); box-shadow: var(--sh-lg); border-color: var(--blue); }
.safety__icon {
  width: 46px; height: 46px; display: grid; place-items: center;
  border-radius: var(--r); background: rgba(27,108,168,.1); color: var(--blue);
  margin-bottom: var(--s-2);
}
.safety__icon svg { width: 23px; height: 23px; }
.safety__card p { font-size: var(--fs-sm); margin: 0; }

.safety__note {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-3);
  flex-wrap: wrap; margin-top: var(--s-4); padding: var(--s-3);
  border-left: 3px solid var(--amber); border-radius: var(--r);
  background: var(--tint);
}
.safety__note p { font-size: var(--fs-sm); margin: 0; max-width: 62ch; }

/* ---------- 16. Compliance ---------- */
.iso { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: var(--s-3); margin-bottom: var(--s-5); }
.iso__card {
  border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s-3);
  background: linear-gradient(170deg, var(--white), var(--tint));
  transition: transform .3s var(--ease), border-color .3s var(--ease);
}
.iso__card:hover { transform: translateY(-4px); border-color: var(--blue); }
.iso__code {
  display: inline-block; font-family: var(--font-head); font-weight: 700; font-size: 1.05rem;
  color: var(--white); background: var(--navy); padding: .35rem .8rem;
  border-radius: var(--r-sm); margin-bottom: var(--s-2); letter-spacing: .04em;
}
.iso__card h3 { font-size: 1rem; }
.iso__card p { font-size: var(--fs-xs); margin: 0; }

.compliance__strip {
  border: 1px dashed var(--line); border-radius: var(--r-lg); padding: var(--s-3);
  background: var(--tint); margin-bottom: var(--s-5);
}
.compliance__strip h3 { font-size: var(--fs-sm); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: .55rem; margin-bottom: var(--s-2); }
.chips li {
  font-size: var(--fs-xs); font-weight: 600; color: var(--navy);
  background: var(--white); border: 1px solid var(--line);
  padding: .4rem .85rem; border-radius: 999px;
}
.compliance__note { font-size: var(--fs-xs); color: var(--muted); margin: 0; }

.finance { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,.85fr); gap: clamp(2rem, 1rem + 3vw, 3.5rem); align-items: center; }
.finance__head p { font-size: var(--fs-sm); margin-bottom: var(--s-3); }

.docs { display: grid; gap: .7rem; }
.docs li {
  display: grid; grid-template-columns: auto 1fr; column-gap: var(--s-2); align-items: center;
  border: 1px solid var(--line); border-radius: var(--r); padding: .85rem 1rem; background: var(--white);
  transition: border-color .3s var(--ease), transform .3s var(--ease);
}
.docs li:hover { border-color: var(--blue); transform: translateX(3px); }
.docs__icon {
  grid-row: 1 / 3; width: 38px; height: 38px; display: grid; place-items: center;
  border-radius: var(--r-sm); background: rgba(27,108,168,.1); color: var(--blue);
}
.docs__icon svg { width: 19px; height: 19px; }
.docs strong { font-family: var(--font-head); font-size: var(--fs-sm); color: var(--ink); }
.docs li > span:last-child { font-size: var(--fs-xs); color: var(--muted); }

/* ---------- 17. Careers ---------- */
.careers { position: relative; padding-block: var(--section-y); color: var(--white); overflow: hidden; isolation: isolate; }
.careers__media { position: absolute; inset: 0; z-index: -2; }
.careers__media img { width: 100%; height: 100%; object-fit: cover; }
.careers::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgba(10,35,64,.96) 25%, rgba(15,48,87,.78));
}
.careers__inner { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,.9fr); gap: clamp(2.5rem, 1rem + 4vw, 4.5rem); align-items: center; }
.careers h2 { color: var(--white); }
.careers p { color: rgba(255,255,255,.8); }
.careers__actions { display: flex; gap: var(--s-2); flex-wrap: wrap; margin-top: var(--s-3); }

.roles { display: grid; grid-template-columns: repeat(2, 1fr); gap: .7rem; }
.roles li {
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--r); padding: .85rem 1rem; backdrop-filter: blur(6px);
  transition: transform .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease);
}
.roles li:hover { transform: translateX(4px); border-color: var(--amber); background: rgba(255,255,255,.12); }
.roles strong { display: block; font-family: var(--font-head); font-size: var(--fs-sm); color: var(--white); }
.roles span { font-size: var(--fs-xs); color: rgba(255,255,255,.6); }

/* ---------- 18. Contact ---------- */
.enquiry { display: grid; grid-template-columns: repeat(auto-fit, minmax(275px, 1fr)); gap: var(--s-3); margin-bottom: var(--s-5); }
.enquiry__card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: var(--s-3); display: flex; flex-direction: column; color: var(--body);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.enquiry__card:hover { transform: translateY(-6px); box-shadow: var(--sh-lg); border-color: var(--blue); color: var(--body); }
.enquiry__icon {
  width: 44px; height: 44px; display: grid; place-items: center; border-radius: var(--r);
  background: var(--navy); color: var(--amber); margin-bottom: var(--s-2);
}
.enquiry__icon svg { width: 21px; height: 21px; }
.enquiry__card p { font-size: var(--fs-sm); }
.enquiry__link {
  display: inline-flex; align-items: center; gap: .45rem; margin-top: auto; padding-top: var(--s-2);
  font-family: var(--font-head); font-weight: 600; font-size: var(--fs-sm); color: var(--blue);
}
.enquiry__link svg { width: 17px; height: 17px; transition: transform .25s var(--ease); }
.enquiry__card:hover .enquiry__link svg { transform: translateX(5px); }

.office { display: grid; grid-template-columns: minmax(0,.55fr) minmax(0,1fr); gap: clamp(2rem, 1rem + 3vw, 3.5rem); align-items: center; }
.office__media img { border-radius: var(--r-lg); box-shadow: var(--sh); aspect-ratio: 3/4; object-fit: cover; }
.office__body address { font-size: var(--fs-lead); line-height: 1.75; color: var(--ink); margin-bottom: var(--s-3); }
.office__list { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: var(--s-3); margin: 0; }
.office__list dt { font-size: var(--fs-xs); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: .2rem; }
.office__list dd { margin: 0; font-size: var(--fs-sm); font-weight: 500; color: var(--ink); }

/* ---------- 19. Footer ---------- */
.footer { background: var(--navy-deep); color: rgba(255,255,255,.66); padding-top: var(--s-6); }
.footer__grid {
  display: grid; grid-template-columns: minmax(0,1.5fr) repeat(3, minmax(0,1fr));
  gap: var(--s-4); padding-bottom: var(--s-5);
}
.footer__brand p { font-size: var(--fs-sm); margin-top: var(--s-2); max-width: 34ch; }
.footer h4 { color: var(--white); margin-bottom: var(--s-2); }
.footer__col ul { display: grid; gap: .55rem; font-size: var(--fs-sm); }
.footer a { color: rgba(255,255,255,.66); }
.footer a:hover { color: var(--amber); }
.footer__bar {
  display: flex; justify-content: space-between; gap: var(--s-2); flex-wrap: wrap;
  padding-block: var(--s-3); border-top: 1px solid rgba(255,255,255,.1);
  font-size: var(--fs-xs);
}
.footer__bar p { margin: 0; }

/* ---------- 20. Call To Action ---------- */
.cta-section { padding-block: clamp(3rem, 2rem + 4vw, 5rem); }

.cta {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: var(--r-lg);
  display: grid; grid-template-columns: minmax(0,1.35fr) minmax(0,.85fr);
  gap: clamp(2rem, 1rem + 3vw, 3.5rem);
  padding: clamp(2rem, 1.2rem + 3vw, 3.5rem);
  color: rgba(255,255,255,.8);
  background:
    radial-gradient(760px 380px at 88% 10%, rgba(242,162,12,.24), transparent 62%),
    radial-gradient(620px 420px at 8% 95%, rgba(27,108,168,.42), transparent 66%),
    linear-gradient(140deg, var(--navy-deep), var(--navy) 55%, #133a68);
  box-shadow: var(--sh-lg);
}
.cta__lines {
  position: absolute; inset: 0; z-index: -1; opacity: .3;
  background-image:
    linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(110% 100% at 100% 0%, #000 20%, transparent 72%);
}
.cta h2 { color: var(--white); max-width: 22ch; }
.cta__body > p { max-width: 58ch; }

.cta__points { display: grid; gap: .55rem; margin: var(--s-3) 0; }
.cta__points li { position: relative; padding-left: 1.9rem; font-size: var(--fs-sm); color: rgba(255,255,255,.85); }
.cta__points li::before {
  content: ""; position: absolute; left: 0; top: .3rem; width: 18px; height: 18px;
  border-radius: 50%; background: rgba(242,162,12,.18);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F2A20C' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 13 4 4 10-10'/%3E%3C/svg%3E");
  background-size: 11px; background-repeat: no-repeat; background-position: center;
}
.cta__actions { display: flex; gap: var(--s-2); flex-wrap: wrap; margin-top: var(--s-3); }

.cta__aside {
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--r); padding: var(--s-3); backdrop-filter: blur(8px);
  align-self: center;
}
.cta__aside-label { font-size: var(--fs-xs); letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.6); margin-bottom: .3rem; }
.cta__phone {
  display: block; font-family: var(--font-head); font-weight: 700;
  font-size: clamp(1.35rem, 1rem + 1.2vw, 1.75rem); color: var(--white);
  letter-spacing: -.01em; font-variant-numeric: tabular-nums;
}
.cta__phone:hover { color: var(--amber); }
.cta__person { font-size: var(--fs-xs); color: rgba(255,255,255,.62); margin-bottom: var(--s-3); }

.cta__whatsapp {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem; width: 100%;
  font-family: var(--font-head); font-weight: 600; font-size: var(--fs-sm);
  padding: .8rem 1.2rem; border-radius: var(--r-sm);
  background: #25D366; color: #0B2317;
  transition: background .2s var(--ease), transform .2s var(--ease);
}
.cta__whatsapp:hover { background: #4ae585; color: #0B2317; transform: translateY(-2px); }
/* The official WhatsApp glyph is a filled path, not a stroked outline. */
.cta__whatsapp svg { width: 19px; height: 19px; flex: none; fill: currentColor; stroke: none; }

.cta__meta { display: grid; gap: var(--s-2); margin: var(--s-3) 0 0; padding-top: var(--s-3); border-top: 1px solid rgba(255,255,255,.16); }
.cta__meta dt { font-size: var(--fs-xs); letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.5); margin-bottom: .15rem; }
.cta__meta dd { margin: 0; font-size: var(--fs-sm); color: var(--white); font-weight: 500; }

/* ---------- 21. Floating Actions ---------- */
.floating {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 100;
  display: flex; flex-direction: column; align-items: flex-end; gap: .7rem;
}

.to-top {
  width: 46px; height: 46px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--navy); color: var(--white); display: grid; place-items: center;
  box-shadow: var(--sh); opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s, background .2s;
}
.to-top svg { width: 20px; height: 20px; }
.to-top:hover { background: var(--blue); }
.to-top.is-shown { opacity: 1; visibility: visible; transform: translateY(0); }

/* WhatsApp floating button */
.wa {
  position: relative; display: inline-flex; align-items: center; gap: 0;
  height: 56px; padding: 0; border-radius: 999px;
  background: #25D366; color: #0B2317;
  box-shadow: 0 6px 18px rgba(37,211,102,.4), 0 14px 34px rgba(15,48,87,.18);
  transition: box-shadow .3s var(--ease), transform .3s var(--ease), background .2s var(--ease);
}
.wa:hover { background: #2ce874; color: #0B2317; transform: translateY(-3px); box-shadow: 0 10px 26px rgba(37,211,102,.5), 0 18px 44px rgba(15,48,87,.22); }

.wa__icon { width: 56px; height: 56px; flex: none; display: grid; place-items: center; }
.wa__icon svg { width: 30px; height: 30px; fill: currentColor; stroke: none; }

.wa__label {
  font-family: var(--font-head); font-weight: 600; font-size: var(--fs-sm);
  white-space: nowrap; max-width: 0; opacity: 0; overflow: hidden;
  transition: max-width .38s var(--ease), opacity .28s var(--ease), padding-right .38s var(--ease);
  padding-right: 0;
}
.wa:hover .wa__label, .wa:focus-visible .wa__label { max-width: 12rem; opacity: 1; padding-right: 1.35rem; }

.wa__pulse {
  position: absolute; inset: 0; border-radius: inherit; z-index: -1;
  box-shadow: 0 0 0 0 rgba(37,211,102,.55);
  animation: waPulse 2.6s var(--ease) infinite;
}
@keyframes waPulse {
  0%   { box-shadow: 0 0 0 0 rgba(37,211,102,.55); }
  70%  { box-shadow: 0 0 0 16px rgba(37,211,102,0); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}

/* ---------- 21b. Inner Page Header ---------- */
.pagehero {
  position: relative; isolation: isolate; overflow: hidden;
  padding-block: clamp(3.5rem, 2.5rem + 4vw, 6rem);
  color: var(--white);
  background:
    radial-gradient(900px 420px at 12% 0%, rgba(27,108,168,.34), transparent 62%),
    linear-gradient(150deg, var(--navy-deep), var(--navy) 62%, #123a68);
}
.pagehero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .3;
  background-image:
    linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px);
  background-size: 78px 78px;
  mask-image: radial-gradient(120% 90% at 20% 50%, #000 25%, transparent 78%);
}
.pagehero h1 { color: var(--white); font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3rem); max-width: 24ch; margin-bottom: var(--s-2); }
.pagehero p { color: rgba(255,255,255,.82); max-width: 62ch; font-size: var(--fs-lead); margin: 0; }

.crumbs { display: flex; flex-wrap: wrap; gap: .45rem; font-size: var(--fs-xs); margin-bottom: var(--s-2); }
.crumbs li { color: rgba(255,255,255,.6); }
.crumbs li + li::before { content: "/"; margin-right: .45rem; color: rgba(255,255,255,.35); }
.crumbs a { color: var(--amber); }
.crumbs a:hover { color: var(--white); }
.crumbs [aria-current] { color: rgba(255,255,255,.85); }

/* ---------- 21c. Timeline ---------- */
.timeline { position: relative; display: grid; gap: var(--s-3); padding-left: 1.9rem; }
.timeline::before {
  content: ""; position: absolute; left: .45rem; top: .4rem; bottom: .4rem; width: 2px;
  background: linear-gradient(var(--blue), var(--amber));
}
.timeline li { position: relative; }
.timeline li::before {
  content: ""; position: absolute; left: -1.72rem; top: .35rem;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--white); border: 2px solid var(--blue);
}
.timeline strong { display: block; font-family: var(--font-head); color: var(--navy); font-size: 1.05rem; }
.timeline span { font-size: var(--fs-sm); color: var(--body); }

/* ---------- 21d. Data Table ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); }
.dtable { width: 100%; border-collapse: collapse; min-width: 640px; font-size: var(--fs-sm); }
.dtable th, .dtable td { text-align: left; padding: .85rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.dtable thead th {
  font-size: var(--fs-xs); letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); font-weight: 600; background: var(--tint); white-space: nowrap;
}
.dtable tbody tr:last-child th, .dtable tbody tr:last-child td { border-bottom: none; }
.dtable tbody th { font-weight: 600; color: var(--ink); }
.dtable .num { text-align: right; font-family: var(--font-head); font-variant-numeric: tabular-nums; }

/* ---------- 21e. Forms ---------- */
.form { display: grid; gap: var(--s-3); }
.form__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--s-3); }
.field { display: grid; gap: .4rem; }
.field label { font-size: var(--fs-sm); font-weight: 600; color: var(--ink); }
.field label .req { color: #C0392B; }
.field input, .field select, .field textarea {
  font-family: inherit; font-size: var(--fs-sm); color: var(--ink);
  padding: .75rem .9rem; border: 1px solid var(--line); border-radius: var(--r-sm);
  background: var(--white); width: 100%;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field textarea { min-height: 8rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(27,108,168,.16);
}
.field input:invalid:not(:placeholder-shown) { border-color: #C0392B; }
.field__hint { font-size: var(--fs-xs); color: var(--muted); }
.form__note { font-size: var(--fs-xs); color: var(--muted); }

/* File input — the native control is kept, only its button is restyled, so
   keyboard access and the browser's own file dialog behave normally. */
.filefield { padding: .5rem .55rem; cursor: pointer; }
.filefield::file-selector-button {
  font-family: var(--font-head); font-weight: 600; font-size: var(--fs-xs);
  color: var(--navy); background: var(--tint);
  border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: .5rem .9rem; margin-right: .75rem; cursor: pointer;
  transition: background .2s var(--ease), border-color .2s var(--ease);
}
.filefield::file-selector-button:hover { background: #e8edf3; border-color: var(--blue); }
.filefield.is-bad { border-color: #C0392B; }

.field__error {
  font-size: var(--fs-xs); color: #C0392B; font-weight: 600;
}

.form__callout {
  font-size: var(--fs-sm); line-height: 1.5; margin: 0;
  padding: .9rem 1rem; border-radius: var(--r);
  border-left: 3px solid var(--amber); background: var(--tint); color: var(--body);
}
.form__callout strong { color: var(--ink); }

/* ---------- 21f. Split Panel ---------- */
.split { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,.85fr); gap: clamp(2rem, 1rem + 3vw, 3.5rem); align-items: start; }
.panel {
  border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s-3);
  background: var(--white);
}
.panel--tint { background: var(--tint); }

/* ---------- 22. Scroll Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s var(--ease) var(--d, 0s), transform .7s var(--ease) var(--d, 0s);
}
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- 23. Responsive ---------- */
@media (max-width: 1080px) {
  /* Below this width the caption spans past the centre of the banner and would
     sit on top of the centred scroll cue, so the cue is dropped. */
  .hero__scroll { display: none; }

  .nav > ul { gap: 1.1rem; }
  .nav a { font-size: .82rem; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .flow { grid-template-columns: repeat(4, 1fr); row-gap: var(--s-3); }
  .flow::before, .flow::after { display: none; }
  .finance, .office { grid-template-columns: 1fr; }
  .office__media img { aspect-ratio: 16/9; }
}

@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .nav {
    position: fixed; inset: 116px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); border-bottom: 1px solid var(--line);
    padding: var(--s-2) 1.25rem var(--s-3);
    box-shadow: var(--sh-lg);
    clip-path: inset(0 0 100% 0);
    transition: clip-path .4s var(--ease);
    max-height: calc(100vh - 116px); overflow-y: auto;
  }
  .nav.is-open { clip-path: inset(0 0 0 0); }
  .nav > ul { flex-direction: column; gap: 0; }
  .nav > ul a { display: block; padding: .9rem 0; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .nav a::after { display: none; }
  .nav__cta { margin-top: var(--s-2); width: 100%; }

  .about, .strength, .careers__inner, .cta, .split { grid-template-columns: 1fr; }
  .about__media { order: -1; }
  .about__badge { right: 1rem; bottom: -1rem; }
  .strength__side { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  html { scroll-padding-top: 80px; }

  .hero { min-height: clamp(430px, 58vh, 520px); }
  .hero__cap {
    right: clamp(1rem, .4rem + 2vw, 2.25rem);
    max-width: none; padding: .85rem 1rem;
    bottom: 3.6rem;
  }
  .hero__nav { width: 38px; height: 38px; }
  .hero__nav svg { width: 18px; height: 18px; }
  .hero__dots button { width: 26px; }
  .hero__dots button[aria-selected="true"] { width: 40px; }

  /* Keep the primary call to action above the fold on a phone. */

  .topbar__meta { display: none; }
  .topbar__inner { justify-content: center; }
  .nav { inset-block-start: 75px; max-height: calc(100vh - 75px); }
  .stats__grid { grid-template-columns: 1fr; }
  .flow { grid-template-columns: repeat(2, 1fr); }
  .strength__side { grid-template-columns: 1fr; }
  .roles { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }

  /* Lift list links to a comfortable thumb target on touch screens. */
  .footer__col ul a,
  .topbar a,
  .crumbs a { display: inline-block; padding-block: .45rem; }
  .footer__col ul { gap: .15rem; }
  .projects__foot { flex-direction: column; align-items: flex-start; }
  .btn { width: 100%; }
  .careers__actions .btn, .cta__actions .btn { flex: 1 1 100%; }

  .floating { right: .85rem; bottom: .85rem; gap: .55rem; }
  .to-top { width: 42px; height: 42px; }
  .wa { height: 52px; }
  .wa__icon { width: 52px; height: 52px; }
  .wa__icon svg { width: 27px; height: 27px; }
  .cta__meta { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 400px) {
  .flow { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .about__badge { position: static; margin-top: var(--s-2); max-width: none; }
}

/* ---------- 24. Motion & Print Preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .bar__fill { width: var(--w); }
  .wa__pulse { display: none; }
  .hero__scroll {
    animation: none !important; opacity: 1; transform: none;
  }
}

@media print {
  .topbar, .header, .floating, .hero__scroll, .scroll-progress { display: none; }
  .hero, .section--dark, .careers, .footer { background: none; color: #000; }
  .reveal { opacity: 1; transform: none; }
}
