/* ==========================================================================
   AMAS — Abu Muhannad Al Shamila Trad. & Cont. LLC
   Design system: warm cream ground, navy + amber, Space Grotesk / Inter.
   Square-cornered, editorial, photography-led.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */
:root {
  /* Brand palette */
  --navy: #071a2b;        /* primary dark, and the text colour on cream */
  --navy-deep: #04121e;   /* deepest ground: hero, header, closing bands */
  --petrol: #0a2236;      /* mid dark, used for lifted cards on navy */
  --gold: #c89032;        /* amber — buttons, rules, accents on dark */
  --gold-light: #e3bf7d;  /* amber text on dark grounds */
  /* Amber is 2.6:1 on cream, well under WCAG AA. Light grounds use this
     deeper bronze for accent *text*; buttons keep the bright amber, where
     it is a background rather than type. */
  --gold-deep: #8b5c14;
  --ivory: #faf8f2;       /* page base — warm cream */
  --ink: #071a2b;         /* body text on cream */
  --muted-ink: #59687c;   /* secondary text on cream */
  --border: #e2ddd2;      /* hairline on cream */
  --muted: #f5f2ea;       /* alternate cream band */
  --white: #ffffff;

  /* Translucent variants, derived from the cream */
  --ivory-70: rgba(250, 248, 242, 0.7);
  --ivory-55: rgba(250, 248, 242, 0.58);
  --ivory-12: rgba(250, 248, 242, 0.14);
  --ivory-08: rgba(250, 248, 242, 0.09);
  --gold-30: rgba(200, 144, 50, 0.32);
  --gold-15: rgba(200, 144, 50, 0.14);
  /* Continuation lines of a stacked heading sit back from the first line.
     Held at the lightest alpha that still clears WCAG AA for large text
     (3:1) — the reference dims these to roughly 1.9:1, which is not legible
     enough for text that is part of the heading. */
  --ivory-dim: rgba(250, 248, 242, 0.45);
  --ink-dim: rgba(7, 26, 43, 0.52);

  /* Type — Space Grotesk sets headings with a geometric, engineered character;
     Inter carries the body copy. */
  --font-display: "Space Grotesk", "Inter", ui-sans-serif, system-ui,
    -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI",
    sans-serif;

  /* Shape — near-square corners throughout */
  --radius: 2px;
  --radius-sm: 2px;

  /* Elevation */
  --shadow-soft: 0 1px 2px rgba(7, 26, 43, 0.06), 0 18px 40px -28px rgba(7, 26, 43, 0.35);

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  /* Rhythm */
  --header-h: 84px;
  --bar-h: 64px;   /* phone action bar */
  --container: 1400px;
  --gutter: 1.25rem;
  /* Reading measure. `ch` is the width of "0", which in Inter is wider than
     the average lowercase letter — 52ch measures out at ~71 characters a
     line, inside the 45-75 that reads comfortably. */
  --measure: 52ch;
  --measure-wide: 58ch;
}

/* Progressive enhancement: use the wider oklch gamut where supported. */
@supports (color: oklch(50% 0.1 250)) {
  :root {
    --navy: oklch(21.2% 0.042 247.8);
    --navy-deep: oklch(17.5% 0.033 240.5);
    --petrol: oklch(23.8% 0.043 244);
    --gold: oklch(67.5% 0.125 73);
    --gold-light: oklch(82% 0.093 78);
    --gold-deep: oklch(47% 0.098 66);
    --ivory: oklch(97.8% 0.01 85);
    --ink: oklch(21.2% 0.042 247.8);
    --muted-ink: oklch(50.5% 0.032 250);
    --border: oklch(90% 0.012 80);
    --muted: oklch(95.8% 0.012 83);
  }
}

/* --------------------------------------------------------------------------
   2. Reset & base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
  color: var(--ink);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.032em;
  line-height: 1.02;
  margin: 0;
}

h3,
h4 {
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

/* Figures in statistics and step numbers line up in columns. */
.stat__value,
.detail__num,
.cred__num,
.industry__num,
.step__num {
  font-variant-numeric: tabular-nums;
}

p {
  margin: 0;
  /* Avoids a single word stranded on the last line, and evens out the rag.
     Ignored by browsers that do not support it. */
  text-wrap: pretty;
}

li {
  text-wrap: pretty;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
}

::selection {
  background: var(--gold);
  color: var(--navy-deep);
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--gold);
  color: var(--navy-deep);
  padding: 0.75rem 1.25rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* --------------------------------------------------------------------------
   3. Layout primitives
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: 7rem;
  position: relative;
}

.section--tight {
  padding-block: 6rem;
}

.section--ivory {
  background: var(--ivory);
}

.section--white {
  background: var(--white);
}

.section--navy {
  background: var(--navy);
  color: var(--ivory);
  overflow: hidden;
}

.section--deep {
  background: var(--navy-deep);
  color: var(--ivory);
}

.section--petrol {
  background: var(--petrol);
  color: var(--ivory);
  overflow: hidden;
}

.section--navy h2,
.section--deep h2,
.section--petrol h2,
.section--navy h3,
.section--deep h3,
.section--petrol h3 {
  color: var(--ivory);
}

/* --------------------------------------------------------------------------
   4. Type helpers
   -------------------------------------------------------------------------- */
.eyebrow {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0;
}

.eyebrow::before {
  content: "";
  display: inline-block;
  height: 1px;
  width: 2.5rem;
  background: var(--gold);
  flex: none;
}

.section-title {
  font-size: clamp(2rem, 4.6vw, 3.95rem);
  line-height: 1.0;
  letter-spacing: -0.032em;
  margin-top: 1.25rem;
}

.section-title .accent {
  color: var(--ink-dim);
  display: block;
}

.section--navy .section-title .accent,
.section--deep .section-title .accent,
.section--petrol .section-title .accent {
  color: var(--ivory-dim);
}

/* --- Gold text sitting on a light ground uses the deeper bronze --- */
.section--ivory .eyebrow,
.section--white .eyebrow {
  color: var(--gold-deep);
}

.section--ivory .eyebrow::before,
.section--white .eyebrow::before {
  background: var(--gold-deep);
}

/* Continuation lines recede on light grounds too — the statement lands on the
   first line, the rest supports it. */
.section--ivory .section-title .accent,
.section--white .section-title .accent {
  color: var(--ink-dim);
}

.lede {
  font-size: 1.25rem;
  line-height: 1.65;
  color: var(--muted-ink);
  max-width: 46ch;
}

.section--navy .lede,
.section--deep .lede,
.section--petrol .lede {
  color: var(--ivory-70);
}

.gold-rule {
  height: 1px;
  width: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    var(--gold) 25%,
    var(--gold-light) 50%,
    var(--gold) 75%,
    transparent
  );
  transform-origin: left;
}

/* On a light ground the bright gold all but disappears; use the bronze. */
.page-banner .gold-rule,
.section--ivory .gold-rule,
.section--white .gold-rule {
  background: linear-gradient(
    90deg,
    var(--gold-deep),
    rgba(201, 169, 110, 0.55) 55%,
    transparent
  );
}

/* --------------------------------------------------------------------------
   5. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  padding: 1.0625rem 1.75rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.4s var(--ease), color 0.4s var(--ease),
    border-color 0.4s var(--ease), transform 0.4s var(--ease),
    box-shadow 0.4s var(--ease);
}

.btn svg {
  width: 14px;
  height: 14px;
  transition: transform 0.4s var(--ease);
}

.btn:hover svg {
  transform: translateX(4px);
}

.btn--gold {
  background: var(--gold);
  color: var(--navy-deep);
  border-color: var(--gold);
}

.btn--gold:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 18px 40px -22px rgba(201, 169, 110, 0.85);
}

.btn--ghost {
  background: transparent;
  color: var(--ivory);
  border-color: rgba(255, 255, 255, 0.3);
}

.btn--ghost:hover {
  background: rgba(250, 248, 242, 0.08);
  border-color: var(--ivory);
  color: var(--ivory);
  transform: translateY(-2px);
}

/* Solid navy button for use on cream grounds */
.btn--navy {
  background: var(--navy);
  color: var(--ivory);
  border-color: var(--navy);
}

.btn--navy:hover {
  background: var(--navy-deep);
  border-color: var(--navy-deep);
  transform: translateY(-2px);
}


.btn--block {
  width: 100%;
}

/* --------------------------------------------------------------------------
   6. Header / navigation
   -------------------------------------------------------------------------- */
.header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 100;
  transition: background 0.45s var(--ease), box-shadow 0.45s var(--ease),
    border-color 0.45s var(--ease);
  border-bottom: 1px solid transparent;
}

.header.is-stuck {
  background: rgba(2, 14, 28, 0.88);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom-color: var(--ivory-08);
  box-shadow: 0 12px 40px -28px rgba(0, 0, 0, 0.9);
}

/* Inner pages open on a light banner, so the header carries its own ground
   instead of floating transparently the way it does over the home hero. */
.page-inner .header {
  background: rgba(2, 14, 28, 0.97);
  border-bottom-color: var(--ivory-08);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  height: 84px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: none;
}

/* The supplied lockup is the light version, so it only ever sits on the
   navy header and footer. 384x121 native, of which the wordmark is the top
   71% and the tagline the bottom 16% — so the overall height has to stay
   generous or the tagline stops resolving. */
.brand__logo {
  height: 44px;
  width: auto;
  display: block;
}

/* `display: block` above outranks the UA rule for [hidden], so the broken
   image would otherwise sit next to the text fallback. */
.brand__logo[hidden] {
  display: none;
}

.brand--footer .brand__logo {
  height: 56px;
}

/* Text lockup, revealed by main.js only if the image fails to decode. */
.brand__text {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
}

.brand__text[hidden] {
  display: none;
}

.brand__mark {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.06em;
  color: var(--ivory);
}

.brand__sub {
  font-size: 0.5625rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  white-space: nowrap;
}

.nav {
  display: none;
  align-items: center;
  gap: 1.5rem;
}

.nav__link {
  position: relative;
  white-space: nowrap;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ivory-70);
  padding-block: 0.5rem;
  transition: color 0.3s var(--ease);
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 1px;
  width: 100%;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s var(--ease);
}

.nav__link:hover,
.nav__link.is-active {
  color: var(--ivory);
}

.nav__link:hover::after,
.nav__link.is-active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header .btn {
  padding: 0.8125rem 1.25rem;
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
}

.header__cta {
  display: none;
}

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 10px;
  background: transparent;
  border: 1px solid var(--ivory-12);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 1.5px;
  background: var(--ivory);
  transition: transform 0.4s var(--ease), opacity 0.3s var(--ease);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* Mobile drawer */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--navy-deep);
  padding: 96px var(--gutter) 3rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease),
    visibility 0.4s;
  overflow-y: auto;
}

.mobile-nav.is-open {
  opacity: 1;
  visibility: visible;
  transform: none;
}

/* `:not(.btn)` matters — without it this rule outranks `.btn` and turns the
   drawer's Request a Quote button into ivory serif text on gold. */
.mobile-nav a:not(.btn) {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--ivory);
  padding-block: 0.875rem;
  border-bottom: 1px solid var(--ivory-08);
  transition: color 0.3s var(--ease), padding-left 0.3s var(--ease);
}

.mobile-nav a:not(.btn):hover {
  color: var(--gold);
  padding-left: 0.5rem;
}

.mobile-nav .btn {
  margin-top: 2rem;
}

/* --------------------------------------------------------------------------
   7. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  background: var(--navy-deep);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* Clears the fixed header and the stamp strip at the bottom. Without this
     the vertically-centred content slides up behind the header on short
     phones and the eyebrow collides with the logo. */
  padding-top: calc(var(--header-h) + 1.5rem);
  padding-bottom: 6rem;
}

.hero__media {
  position: absolute;
  inset: 0;
  overflow: hidden;
  /* Reads correctly even before the photograph loads. */
  background-color: var(--navy-deep);
  background-image: radial-gradient(
      120% 80% at 78% 30%,
      rgba(201, 169, 110, 0.18),
      transparent 60%
    ),
    linear-gradient(160deg, #0b2138 0%, #020e1c 100%);
}

.hero__media img {
  width: 100%;
  height: 115%;
  object-fit: cover;
  animation: slow-zoom 24s ease-in-out infinite alternate;
}

.hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
      to right,
      rgba(2, 14, 28, 0.94) 0%,
      rgba(2, 14, 28, 0.72) 45%,
      rgba(2, 14, 28, 0.35) 100%
    ),
    linear-gradient(
      to bottom,
      rgba(2, 14, 28, 0.85) 0%,
      rgba(2, 14, 28, 0.25) 40%,
      rgba(2, 14, 28, 0.92) 100%
    );
}

.hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero__content {
  max-width: 76rem;
}

.hero__title {
  margin-top: 1.75rem;
  /* Capped so the two headline lines each stay on one line at desktop —
     our copy is a full sentence, not the reference's three short words. */
  font-size: clamp(2.5rem, 6.6vw, 6rem);
  line-height: 0.95;
  letter-spacing: -0.042em;
  color: var(--ivory);
}

/* The hero keeps both lines at full strength — the reference dims continuation
   lines on section headings, but its hero stays bright. The brand line stays
   amber so it still carries the emphasis. */
.hero__title .accent {
  color: var(--gold-light);
}

.hero .gold-rule {
  margin-top: 2rem;
  max-width: 36rem;
}

.hero__lede {
  margin-top: 2rem;
  max-width: 38rem;
  font-size: 1.1875rem;
  line-height: 1.7;
  color: var(--ivory-70);
}

.hero__actions {
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hero__foot {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  z-index: 2;
}

.hero__foot-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--ivory-12);
  padding-block: 1.25rem;
}

.hero__foot span {
  font-size: 0.6875rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ivory-55);
}

.hero__foot svg {
  width: 18px;
  height: 18px;
  color: var(--gold);
  animation: bob 2.4s ease-in-out infinite;
}

@keyframes slow-zoom {
  from {
    transform: scale(1) translateY(0);
  }
  to {
    transform: scale(1.12) translateY(-2%);
  }
}

@keyframes bob {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.6;
  }
  50% {
    transform: translateY(5px);
    opacity: 1;
  }
}

/* --------------------------------------------------------------------------
   8. About
   -------------------------------------------------------------------------- */
.about__grid {
  display: grid;
  gap: 3.5rem;
  align-items: start;
}

.about__body {
  display: grid;
  gap: 1.5rem;
}

.about__body p {
  color: var(--muted-ink);
  line-height: 1.85;
  max-width: var(--measure);
}

/* Numbered hairline grid — the signature block of this design: a bordered
   panel divided by thin rules, each cell led by an index and a short amber
   dash. Reused anywhere a set of credentials or commitments is listed. */
.creds {
  margin-top: 4rem;
  display: grid;
  gap: 0;
  border: 1px solid var(--border);
  background: var(--white);
}

.cred {
  display: grid;
  gap: 0.5rem;
  align-content: start;
  padding: 2rem 1.75rem 2.25rem;
  border-bottom: 1px solid var(--border);
  transition: background 0.4s var(--ease);
}

.cred:last-child {
  border-bottom: 0;
}

.cred:hover {
  background: var(--muted);
}

.cred__num {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--gold-deep);
}

/* the short amber dash under the index */
.cred__num::after {
  content: "";
  display: block;
  width: 1.5rem;
  height: 2px;
  margin-top: 0.75rem;
  background: var(--gold);
}

.cred__title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-top: 0.5rem;
}

.cred__meta {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--muted-ink);
}

.section--navy .creds,
.section--deep .creds {
  background: transparent;
  border-color: var(--ivory-12);
}

.section--navy .cred,
.section--deep .cred {
  border-color: var(--ivory-12);
}

.section--navy .cred:hover,
.section--deep .cred:hover {
  background: rgba(250, 248, 242, 0.04);
}

.section--navy .cred__num,
.section--deep .cred__num {
  color: var(--gold);
}

.section--navy .cred__title,
.section--deep .cred__title {
  color: var(--ivory);
}

.section--navy .cred__meta,
.section--deep .cred__meta {
  color: var(--ivory-55);
}

/* --------------------------------------------------------------------------
   9. Services
   -------------------------------------------------------------------------- */
.section--navy::before {
  content: "";
  position: absolute;
  top: -20%;
  right: -10%;
  width: 46rem;
  height: 46rem;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(201, 169, 110, 0.09),
    transparent 62%
  );
  pointer-events: none;
}

.services__head {
  display: grid;
  gap: 1.5rem;
  max-width: 52rem;
  position: relative;
  z-index: 1;
}

.services__grid {
  position: relative;
  z-index: 1;
  margin-top: 4.5rem;
  display: grid;
  gap: 1.25rem;
}

.service {
  position: relative;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.25rem 1.875rem;
  display: grid;
  gap: 1rem;
  align-content: start;
  transition: transform 0.45s var(--ease), border-color 0.45s var(--ease),
    box-shadow 0.45s var(--ease);
}

.service::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.55s var(--ease);
}

.service:hover {
  transform: translateY(-4px);
  border-color: var(--gold-30);
  box-shadow: var(--shadow-soft);
}

.service:hover::after {
  transform: scaleX(1);
}

.service__icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--muted);
  color: var(--gold-deep);
  transition: background 0.45s var(--ease), color 0.45s var(--ease),
    border-color 0.45s var(--ease);
}

.service__icon svg {
  width: 19px;
  height: 19px;
}

.service:hover .service__icon {
  background: var(--gold);
  color: var(--navy-deep);
  border-color: var(--gold);
}

.service__title {
  font-size: 1.1875rem;
  line-height: 1.35;
  color: var(--ink);
}

.service__text {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--muted-ink);
}

/* --------------------------------------------------------------------------
   10. Industries
   -------------------------------------------------------------------------- */
.industries__grid {
  margin-top: 4.5rem;
  display: grid;
  gap: 1.25rem;
}

.industry {
  position: relative;
  min-height: 17rem;
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  border: 1px solid var(--border);
  background: var(--petrol);
  isolation: isolate;
}

.industry img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(35%);
  transform: scale(1);
  transition: transform 0.9s var(--ease), filter 0.7s var(--ease);
  z-index: -2;
}

.industry::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    to top,
    rgba(2, 14, 28, 0.94) 12%,
    rgba(2, 14, 28, 0.55) 55%,
    rgba(2, 14, 28, 0.3) 100%
  );
  transition: background 0.6s var(--ease);
}

.industry:hover img {
  transform: scale(1.07);
  filter: grayscale(0%);
}

.industry:hover::before {
  background: linear-gradient(
    to top,
    rgba(2, 14, 28, 0.92) 8%,
    rgba(11, 45, 69, 0.5) 60%,
    rgba(11, 45, 69, 0.22) 100%
  );
}

.industry__body {
  padding: 1.75rem;
  display: grid;
  gap: 0.375rem;
}

.industry__num {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--gold);
}

.industry__title {
  font-size: 1.375rem;
  color: var(--ivory);
}

.industry__text {
  font-size: 0.875rem;
  color: var(--ivory-55);
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   11. Stats band
   -------------------------------------------------------------------------- */
.section--petrol::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    70% 120% at 50% 0%,
    rgba(201, 169, 110, 0.1),
    transparent 60%
  );
  pointer-events: none;
}

.stats {
  display: grid;
  gap: 3rem;
  position: relative;
  z-index: 1;
}

.stat {
  display: grid;
  gap: 0.75rem;
  justify-items: center;
  text-align: center;
}

.stat__value {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 6vw, 4rem);
  line-height: 1;
  color: var(--gold-light);
}

.stat__label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ivory-55);
}

/* --------------------------------------------------------------------------
   12. Why AMAS
   -------------------------------------------------------------------------- */
.why__grid {
  display: grid;
  gap: 3.5rem;
  align-items: start;
}

.pillars {
  display: grid;
  gap: 1.25rem;
}

.pillar {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  align-items: start;
  padding: 1.75rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease),
    border-color 0.45s var(--ease);
}

.pillar:hover {
  transform: translateY(-3px);
  border-color: var(--gold-30);
  box-shadow: var(--shadow-soft);
}

.pillar__icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-sm);
  background: var(--muted);
  color: var(--navy);
  transition: background 0.45s var(--ease), color 0.45s var(--ease);
}

.pillar__icon svg {
  width: 18px;
  height: 18px;
}

.pillar:hover .pillar__icon {
  background: var(--gold);
  color: var(--navy-deep);
}

.pillar__title {
  font-family: var(--font-display);
  font-size: 1.1875rem;
  color: var(--ink);
}

.pillar__text {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--muted-ink);
  margin-top: 0.25rem;
}

/* --------------------------------------------------------------------------
   13. Certifications
   -------------------------------------------------------------------------- */
.certs {
  margin-top: 4.5rem;
  display: grid;
  gap: 1.5rem;
}

.cert {
  display: grid;
  gap: 1.25rem;
  min-width: 0;
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--ivory);
  transition: border-color 0.45s var(--ease), box-shadow 0.45s var(--ease),
    transform 0.45s var(--ease);
}

.cert:hover {
  border-color: var(--gold-30);
  box-shadow: var(--shadow-soft);
  transform: translateY(-3px);
}

.cert__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--ink);
}

.cert__text {
  font-size: 0.875rem;
  color: var(--muted-ink);
  line-height: 1.6;
  margin-top: 0.25rem;
}

.cert__plate {
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  /* Grid and flex items default to min-width:auto, so a scan's intrinsic
     width (700px+) would otherwise push the card wider than its track. */
  min-width: 0;
  overflow: hidden;
  align-content: center;
  text-align: center;
  gap: 0.625rem;
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  background: repeating-linear-gradient(
      45deg,
      rgba(201, 169, 110, 0.045) 0 10px,
      transparent 10px 20px
    ),
    var(--white);
  color: var(--muted-ink);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.cert__plate svg {
  width: 26px;
  height: 26px;
  color: var(--gold-deep);
}

.cert__plate img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
  padding: 0.875rem;
}

/* A plate holding a real scan drops the dashed placeholder treatment. */
.cert__plate--scan {
  border-style: solid;
  border-color: var(--border);
  background: var(--white);
  padding: 0;
}

/* --- People band: three portraits of the workforce --- */
.people {
  margin-top: 4rem;
  display: grid;
  gap: 1.25rem;
}

.person {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--muted);
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: 22rem;
}

.person img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  transition: transform 0.9s var(--ease);
}

.person::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    to top,
    rgba(4, 18, 30, 0.92) 10%,
    rgba(4, 18, 30, 0.42) 55%,
    rgba(4, 18, 30, 0.12) 100%
  );
}

.person:hover img {
  transform: scale(1.06);
}

.person__body {
  padding: 1.75rem;
  display: grid;
  gap: 0.375rem;
}

.person__num {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--gold);
}

.person__title {
  font-size: 1.25rem;
  color: var(--ivory);
}

.person__text {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--ivory-70);
}

/* --- Wide feature image --- */
.feature-image {
  margin-top: 4rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--muted);
}

.feature-image img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 7;
  object-fit: cover;
  display: block;
}

.certs__note {
  margin-top: 2.5rem;
  font-size: 0.8125rem;
  color: var(--muted-ink);
  text-align: center;
  max-width: var(--measure);
  margin-inline: auto;
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   14. Process
   -------------------------------------------------------------------------- */
.process {
  margin-top: 4.5rem;
  display: grid;
  gap: 0;
}

.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem;
  padding-block: 2.25rem;
  border-top: 1px solid var(--border);
  align-items: start;
  transition: padding-left 0.5s var(--ease);
}

.step:last-child {
  border-bottom: 1px solid var(--border);
}

.step:hover {
  padding-left: 0.75rem;
}

.step__num {
  font-family: var(--font-display);
  font-size: 1.75rem;
  line-height: 1;
  color: var(--gold-deep);
  min-width: 3rem;
  padding-top: 0.125rem;
}

.step__title {
  font-family: var(--font-display);
  font-size: 1.375rem;
  color: var(--ink);
}

.step__text {
  font-size: 0.9375rem;
  line-height: 1.75;
  color: var(--muted-ink);
  margin-top: 0.5rem;
  max-width: var(--measure);
}

/* --------------------------------------------------------------------------
   15. CTA band
   -------------------------------------------------------------------------- */
.cta {
  position: relative;
  overflow: hidden;
  text-align: center;
}

.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    70% 130% at 50% 50%,
    rgba(201, 169, 110, 0.13),
    transparent 62%
  );
  pointer-events: none;
}

.cta__inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1.75rem;
  justify-items: center;
}

.cta__title {
  font-size: clamp(2rem, 4.6vw, 3.5rem);
  line-height: 1.14;
  color: var(--ivory);
}

.cta__title .accent {
  color: var(--gold-light);
  display: block;
}

.cta .lede {
  text-align: center;
  max-width: 52ch;
}

.cta__actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 0.75rem;
}

/* --------------------------------------------------------------------------
   16. Contact
   -------------------------------------------------------------------------- */
.contact__grid {
  display: grid;
  gap: 3.5rem;
  align-items: start;
}

.contact__block {
  display: grid;
  gap: 0.5rem;
  padding-block: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.contact__label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.contact__value {
  font-size: 0.9375rem;
  line-height: 1.75;
  color: var(--ink);
}

.contact__value a {
  /* inline-block so the vertical padding counts toward the tap target —
     these are the primary contact actions on a phone */
  display: inline-block;
  padding-block: 0.3125rem;
  transition: color 0.3s var(--ease);
}

.contact__value a:hover {
  color: var(--gold);
}

.contact__company {
  font-family: var(--font-display);
  font-size: 1.375rem;
  color: var(--ink);
}

.contact__list {
  margin-top: 2rem;
}

.whatsapp-cta {
  margin-top: 2rem;
}

.btn--whatsapp {
  background: #25d366;
  border-color: #25d366;
  color: #05331a;
}

.btn--whatsapp:hover {
  background: #1fbe5a;
  border-color: #1fbe5a;
  transform: translateY(-2px);
}

/* Form */
.form-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-soft);
}

.form-card__title {
  font-family: var(--font-display);
  font-size: 1.625rem;
  color: var(--ink);
}

.form-card .gold-rule {
  margin-block: 1.25rem 1.75rem;
  max-width: 8rem;
}

.form-grid {
  display: grid;
  gap: 1.25rem;
}

.field {
  display: grid;
  gap: 0.5rem;
}

.field label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted-ink);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 0.9375rem;
  color: var(--ink);
  background: var(--ivory);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.8125rem 1rem;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease),
    background 0.3s var(--ease);
}

.field textarea {
  resize: vertical;
  min-height: 7.5rem;
}

.field select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2366727d' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.875rem center;
  background-size: 16px;
  padding-right: 2.5rem;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  background: var(--white);
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-15);
}

.field input:user-invalid,
.field textarea:user-invalid {
  border-color: #c0453c;
}

.form-note {
  margin-top: 1rem;
  font-size: 0.75rem;
  color: var(--muted-ink);
  line-height: 1.6;
  max-width: var(--measure);
}

.form-status {
  margin-top: 1rem;
  padding: 0.875rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  border: 1px solid var(--gold-30);
  background: var(--gold-15);
  color: var(--ink);
}

/* --------------------------------------------------------------------------
   17. Footer
   -------------------------------------------------------------------------- */
.footer {
  background: var(--navy-deep);
  color: var(--ivory);
  padding-block: 4rem 2rem;
}

.footer__grid {
  display: grid;
  gap: 2.5rem;
}

.footer__brand {
  display: grid;
  gap: 1rem;
}

.footer__tag {
  font-size: 0.875rem;
  color: var(--ivory-55);
  line-height: 1.7;
  max-width: 34ch;
}

.footer__heading {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.footer__links {
  display: grid;
  gap: 0.625rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer__links a {
  font-size: 0.875rem;
  color: var(--ivory-55);
  transition: color 0.3s var(--ease);
}

.footer__links a:hover {
  color: var(--gold);
}

.footer__bottom {
  margin-top: 3rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--ivory-08);
  display: grid;
  gap: 0.75rem;
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  color: var(--ivory-55);
}

/* --------------------------------------------------------------------------
   18. Floating WhatsApp
   -------------------------------------------------------------------------- */
.wa-float {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 90;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  box-shadow: 0 14px 34px -14px rgba(37, 211, 102, 0.85);
  transition: transform 0.4s var(--ease);
}

.wa-float:hover {
  transform: scale(1.08);
}

.wa-float svg {
  width: 26px;
  height: 26px;
}

/* --------------------------------------------------------------------------
   18b. Mobile action bar
   -------------------------------------------------------------------------- */
.mobile-actions {
  display: none;
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 95;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--ivory-12);
  /* sits above the iOS home indicator */
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: var(--navy-deep);
}

.mobile-actions__btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  min-height: var(--bar-h);
  padding: 0.625rem 0.75rem;
  background: var(--navy-deep);
  color: var(--ivory);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: background 0.3s var(--ease);
}

.mobile-actions__btn svg {
  width: 19px;
  height: 19px;
}

.mobile-actions__btn:active {
  background: var(--petrol);
}

.mobile-actions__btn--primary {
  background: var(--gold);
  color: var(--navy-deep);
}

.mobile-actions__btn--primary:active {
  background: var(--gold-light);
}

/* --------------------------------------------------------------------------
   19. Scroll reveal
   -------------------------------------------------------------------------- */
/* Scoped to `.js` (set by an inline script in <head>) so that without
   JavaScript — no-JS crawlers, printing, a script that fails to load — the
   content renders normally instead of sitting invisibly at opacity 0. */
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
  will-change: opacity, transform;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Masked line reveal — each heading line sits in an overflow-hidden wrapper
   and slides up from below it. The wrappers stay in the accessibility tree
   (the site this is borrowed from marks them aria-hidden, which leaves every
   heading, including the h1, invisible to screen readers). */
.line {
  display: block;
  overflow: hidden;
  /* room for descenders so the mask does not clip a 'y' or 'g' */
  padding-bottom: 0.08em;
}

.js .reveal-lines .line__in {
  display: block;
  opacity: 0;
  transform: translateY(100%);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: calc(var(--i, 0) * 110ms);
  will-change: opacity, transform;
}

.js .reveal-lines.is-visible .line__in {
  opacity: 1;
  transform: none;
}

/* Children of a revealed grid arrive one after another rather than as a slab.
   `--i` is set by main.js; the cap keeps long grids from dragging. */
.js .reveal--stagger > * {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: calc(var(--i, 0) * 70ms);
}

.js .reveal--stagger.is-visible > * {
  opacity: 1;
  transform: none;
}

.js .reveal-rule {
  transform: scaleX(0);
  transition: transform 1.1s var(--ease);
}

.js .reveal-rule.is-visible {
  transform: scaleX(1);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .js .reveal,
  .js .reveal-rule,
  .js .reveal--stagger > *,
  .js .reveal-lines .line__in {
    opacity: 1;
    transform: none;
    transition-delay: 0s;
  }
  .hero__media img {
    transform: none !important;
  }
  .scroll-progress {
    display: none;
  }
}

/* --- Reading-progress bar, pinned under the fixed header --- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 101;
  height: 2px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  pointer-events: none;
}

/* --- Hero parallax ---
   main.js translates the media *wrapper*; the slow-zoom animation stays on the
   <img> inside it, so the two transforms never fight over the same property. */
.js .hero__media {
  will-change: transform;
}

/* --------------------------------------------------------------------------
   20. Print
   -------------------------------------------------------------------------- */
@media print {
  .header,
  .mobile-nav,
  .wa-float,
  .hero__foot,
  .nav-toggle,
  .skip-link {
    display: none !important;
  }

  .js .reveal,
  .js .reveal-rule,
  .js .reveal-lines .line__in {
    opacity: 1 !important;
    transform: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }

  .section {
    padding-block: 2rem;
    page-break-inside: avoid;
  }

  .section--navy,
  .section--deep,
  .section--petrol {
    background: #fff !important;
    color: #000 !important;
  }

  .section--navy h2,
  .section--deep h2,
  .section--petrol h2,
  .section--navy h3,
  .section--deep h3,
  .section--petrol h3,
  .service__title,
  .industry__title,
  .cta__title {
    color: #000 !important;
  }

  .service__text,
  .industry__text,
  .section--navy .lede,
  .section--deep .lede,
  .section--petrol .lede {
    color: #333 !important;
  }

  .hero {
    min-height: auto;
  }

  .hero__media,
  .hero__scrim {
    display: none;
  }

  .hero__title,
  .hero__lede {
    color: #000 !important;
  }

  a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 0.75em;
    color: #555;
  }
}

/* --------------------------------------------------------------------------
   21. Inner-page components
   -------------------------------------------------------------------------- */

/* --- Page banner: the compact hero on every page except home --- */
.page-banner {
  position: relative;
  background: var(--ivory);
  color: var(--ink);
  padding-block: 9.5rem 4.5rem;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.page-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
      80% 130% at 88% 0%,
      rgba(201, 169, 110, 0.22),
      transparent 62%
    ),
    linear-gradient(180deg, var(--muted) 0%, var(--ivory) 72%);
  pointer-events: none;
}

.page-banner > .container {
  position: relative;
  z-index: 1;
}

.page-banner .eyebrow {
  margin-top: 1.75rem;
}

.page-banner__title {
  margin-top: 1.25rem;
  font-size: clamp(2.125rem, 4.6vw, 3.5rem);
  line-height: 1.1;
  color: var(--ink);
}

.page-banner__title .accent {
  color: var(--gold-deep);
}

.page-banner .gold-rule {
  margin-top: 1.75rem;
  max-width: 28rem;
}

.page-banner__lede {
  margin-top: 1.5rem;
  max-width: var(--measure-wide);
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--muted-ink);
}

.page-banner .eyebrow {
  color: var(--gold-deep);
}

.page-banner .eyebrow::before {
  background: var(--gold-deep);
}

/* --- Breadcrumb --- */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-ink);
}

.breadcrumb a {
  color: var(--muted-ink);
  transition: color 0.3s var(--ease);
}

.breadcrumb a:hover {
  color: var(--gold-deep);
}

.breadcrumb [aria-current] {
  color: var(--gold-deep);
}

/* --- Inline "read more" link --- */
.section-link {
  margin-top: 0.5rem;
}

.section-link a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-deep);
  border-bottom: 1px solid var(--gold-30);
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.section-link a svg {
  width: 14px;
  height: 14px;
  transition: transform 0.35s var(--ease);
}

.section-link a:hover {
  border-color: var(--gold-deep);
}

.section-link a:hover svg {
  transform: translateX(4px);
}

.section--navy .section-link a,
.section--deep .section-link a,
.section--petrol .section-link a {
  color: var(--gold);
}

.section--navy .section-link a:hover,
.section--deep .section-link a:hover,
.section--petrol .section-link a:hover {
  color: var(--gold-light);
  border-color: var(--gold);
}

/* --- Mission / vision / values --- */
.mvv {
  position: relative;
  z-index: 1;
  margin-top: 4.5rem;
  display: grid;
  gap: 1.25rem;
}

.mvv__card {
  display: grid;
  gap: 1rem;
  align-content: start;
  padding: 2.25rem 2rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.45s var(--ease), border-color 0.45s var(--ease),
    box-shadow 0.45s var(--ease);
}

.mvv__card:hover {
  transform: translateY(-4px);
  border-color: var(--gold-30);
  box-shadow: var(--shadow-soft);
}

.mvv__card .service__icon {
  width: 44px;
  height: 44px;
}

.mvv__title {
  font-size: 1.25rem;
  color: var(--ink);
}

.mvv__text {
  font-size: 0.9375rem;
  line-height: 1.75;
  color: var(--muted-ink);
}

/* --- Anchor chips (services index) --- */
.chiplist {
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 0.6875rem 1.125rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--white);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink);
  transition: border-color 0.35s var(--ease), color 0.35s var(--ease),
    background 0.35s var(--ease), transform 0.35s var(--ease);
}

.chip:hover {
  border-color: var(--gold);
  background: var(--gold-15);
  color: var(--navy);
  transform: translateY(-2px);
}

/* --- Detail list: numbered long-form entries --- */
.detail-list {
  margin-top: 4rem;
  display: grid;
  gap: 0;
}

.detail {
  display: grid;
  gap: 1.25rem;
  padding-block: 3rem;
  border-top: 1px solid var(--border);
  scroll-margin-top: 7rem;
}

.detail:last-child {
  border-bottom: 1px solid var(--border);
}

.section--navy .detail,
.section--deep .detail {
  border-color: var(--ivory-08);
}

.detail__head {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.detail__num {
  font-family: var(--font-display);
  font-size: 1.75rem;
  line-height: 1;
  color: var(--gold-deep);
}

.section--navy .detail__num,
.section--deep .detail__num {
  color: var(--gold);
}

.detail__icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--gold-30);
  border-radius: var(--radius-sm);
  color: var(--gold-deep);
  flex: none;
}

.detail__icon svg {
  width: 19px;
  height: 19px;
}

.detail__title {
  font-family: var(--font-display);
  font-size: clamp(1.375rem, 2.4vw, 1.75rem);
  line-height: 1.25;
  color: var(--ink);
}

.section--navy .detail__title,
.section--deep .detail__title {
  color: var(--ivory);
}

.detail__text {
  margin-top: 0.875rem;
  font-size: 1rem;
  line-height: 1.85;
  color: var(--muted-ink);
  max-width: var(--measure);
}

.section--navy .detail__text,
.section--deep .detail__text {
  color: var(--ivory-70);
}

.detail__points {
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.75rem;
  max-width: var(--measure);
}

.detail__points li {
  position: relative;
  padding-left: 1.75rem;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--muted-ink);
}

.detail__points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.625rem;
  width: 0.5rem;
  height: 0.5rem;
  border: 1px solid var(--gold-deep);
  transform: rotate(45deg);
}

.section--navy .detail__points li,
.section--deep .detail__points li {
  color: var(--ivory-70);
}

.section--navy .detail__points li::before,
.section--deep .detail__points li::before {
  border-color: var(--gold);
}

/* --- "Where to next" cards --- */
.nextcards {
  margin-top: 4rem;
  display: grid;
  gap: 1.25rem;
}

.nextcard {
  display: grid;
  gap: 0.75rem;
  align-content: start;
  padding: 2rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.45s var(--ease), border-color 0.45s var(--ease),
    box-shadow 0.45s var(--ease);
}

.nextcard:hover {
  transform: translateY(-3px);
  border-color: var(--gold-30);
  box-shadow: var(--shadow-soft);
}

.nextcard__title {
  font-family: var(--font-display);
  font-size: 1.375rem;
  color: var(--ink);
}

.nextcard__text {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--muted-ink);
}

.nextcard__go {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.nextcard__go svg {
  width: 14px;
  height: 14px;
  transition: transform 0.35s var(--ease);
}

.nextcard:hover .nextcard__go svg {
  transform: translateX(4px);
}

/* --- Quick contact cards --- */
.quickcontact {
  display: grid;
  gap: 1.25rem;
}

.quickcard {
  display: grid;
  gap: 0.5rem;
  justify-items: start;
  padding: 1.75rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.45s var(--ease), border-color 0.45s var(--ease),
    box-shadow 0.45s var(--ease);
}

.quickcard:hover {
  transform: translateY(-3px);
  border-color: var(--gold-30);
  box-shadow: var(--shadow-soft);
}

.quickcard__icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-sm);
  background: var(--muted);
  color: var(--navy);
  margin-bottom: 0.375rem;
  transition: background 0.45s var(--ease), color 0.45s var(--ease);
}

.quickcard__icon svg {
  width: 18px;
  height: 18px;
}

.quickcard:hover .quickcard__icon {
  background: var(--gold);
  color: var(--navy-deep);
}

.quickcard__label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.quickcard__value {
  font-family: var(--font-display);
  font-size: 1.125rem;
  color: var(--ink);
  overflow-wrap: anywhere;
}

/* --- Certification note --- */
.cert__note {
  margin-top: 0.75rem;
  font-size: 0.8125rem;
  line-height: 1.7;
  color: var(--muted-ink);
}

/* --- Footer additions --- */
.footer__wa {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  transition: color 0.3s var(--ease);
}

.footer__wa svg {
  width: 16px;
  height: 16px;
}

.footer__wa:hover {
  color: var(--gold-light);
}

.footer__address {
  margin-top: 1.25rem;
  font-style: normal;
  font-size: 0.8125rem;
  line-height: 1.8;
  color: var(--ivory-55);
}

/* Centred eyebrow for full-width intro blocks */
.eyebrow--center {
  justify-content: center;
}

/* --------------------------------------------------------------------------
   22. Responsive
   -------------------------------------------------------------------------- */
/* Phones get the pinned Call / Request bar; everything that sits at the
   bottom of the viewport has to move up out of its way. */
@media (max-width: 767px) {
  .mobile-actions {
    display: grid;
  }
  /* so the last of the page is not trapped under the bar */
  body {
    padding-bottom: var(--bar-h);
  }
  .wa-float {
    bottom: calc(var(--bar-h) + 1rem);
  }
  .mobile-nav {
    padding-bottom: calc(var(--bar-h) + 3rem);
  }
  /* the drawer covers the screen, so the bar would only compete with it */
  body.nav-open .mobile-actions {
    display: none;
  }
  .hero__foot {
    display: none;
  }
  /* The bar overlays the bottom of the viewport. Padding (not a height
     calculation) keeps the hero's content out of its way however tall the
     headline wraps. */
  .hero {
    padding-bottom: calc(var(--bar-h) + 2rem);
  }
}

/* Narrow phones: the button labels were wrapping to two lines, and the
   eyebrow to three. Tighter tracking and padding keep both to one. */
@media (max-width: 400px) {
  .btn {
    padding: 1rem 1.125rem;
    letter-spacing: 0.06em;
    font-size: 0.75rem;
  }
  .eyebrow {
    letter-spacing: 0.1em;
    gap: 0.625rem;
  }
  .eyebrow::before {
    width: 1.5rem;
  }
}

/* A short phone cannot hold a full-viewport hero plus this much copy — 551px
   of content into 366px of usable space. Let the hero size to its content
   there and scroll, rather than trapping the buttons under the action bar. */
@media (max-width: 767px) and (max-height: 700px) {
  .hero {
    min-height: auto;
    padding-top: calc(var(--header-h) + 1.25rem);
  }
}

/* The hero stack has to fit between the header and the stamp strip on a
   360x640 phone, so the rhythm tightens and the headline floor drops. */
@media (max-width: 639px) {
  .hero__title {
    font-size: clamp(1.875rem, 8.2vw, 2.75rem);
    margin-top: 1rem;
  }
  .hero .gold-rule {
    margin-top: 1.25rem;
  }
  .hero__lede {
    margin-top: 1.25rem;
    font-size: 1.0625rem;
  }
  .hero__actions {
    margin-top: 1.75rem;
  }
}

/* Comfortable thumb targets for the footer link lists on phones. */
@media (max-width: 639px) {
  .footer__links {
    gap: 0.875rem;
  }
  .footer__links a {
    display: inline-block;
    padding-block: 0.25rem;
  }
}

@media (min-width: 640px) {
  :root {
    --gutter: 2rem;
  }
  .hero__actions,
  .cta__actions {
    flex-direction: row;
  }
  .cta__actions {
    justify-content: center;
  }
  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .industries__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .certs {
    grid-template-columns: repeat(2, 1fr);
  }
  .creds {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 3rem;
  }
  .footer__bottom {
    grid-template-columns: 1fr auto;
    align-items: center;
  }
  .form-grid--split {
    grid-template-columns: repeat(2, 1fr);
  }
  .form-card {
    padding: 2.5rem;
  }
  .mvv {
    grid-template-columns: repeat(2, 1fr);
  }
  .nextcards {
    grid-template-columns: repeat(2, 1fr);
  }
  .quickcontact,
  .people {
    grid-template-columns: repeat(2, 1fr);
  }
  .detail {
    grid-template-columns: 6rem 1fr;
    gap: 2rem;
  }
  .detail__head {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
}

@media (min-width: 1024px) {
  :root {
    --gutter: 2.5rem;
  }
  .section {
    padding-block: 10rem;
  }
  .section--tight {
    padding-block: 8rem;
  }
  html {
    scroll-padding-top: 96px;
  }

  .about__grid,
  .why__grid {
    grid-template-columns: 0.85fr 1.15fr;
    gap: 5rem;
  }
  .contact__grid {
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
  }

  .services__grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .industries__grid {
    grid-template-columns: repeat(4, 1fr);
  }
  /* Seven cards over four columns: widening only the first fills two clean
     rows (2+1+1, then 1+1+1+1) instead of stranding the last card alone. */
  .industries__grid > :nth-child(1) {
    grid-column: span 2;
  }
  .stats {
    grid-template-columns: repeat(4, 1fr);
  }
  .certs {
    grid-template-columns: repeat(3, 1fr);
  }
  .creds {
    grid-template-columns: repeat(5, 1fr);
    column-gap: 0;
  }
  .creds .cred {
    border-bottom: 0;
    border-right: 1px solid var(--border);
    padding: 2.5rem 1.75rem 2.75rem;
  }
  .creds .cred:last-child {
    border-right: 0;
  }
  .section--navy .creds .cred,
  .section--deep .creds .cred {
    border-right-color: var(--ivory-12);
  }

  .pillars {
    grid-template-columns: repeat(2, 1fr);
  }
  /* Brand block plus the configured link columns and the contact column. */
  .footer__grid {
    grid-template-columns: 1.6fr repeat(4, 1fr);
    gap: 2.5rem;
  }
  .wa-float {
    right: 2rem;
    bottom: 2rem;
    width: 58px;
    height: 58px;
  }

  .page-banner {
    padding-block: 13rem 6.5rem;
  }
  .mvv,
  .nextcards,
  .quickcontact,
  .people {
    grid-template-columns: repeat(3, 1fr);
  }
  .detail {
    grid-template-columns: 8rem 1fr;
    gap: 3rem;
  }
}



/* Eight nav items plus the quote button need roughly 1015px of header width.
   Below this the drawer is the better experience, so the inline nav only
   appears from 1200px up. */
@media (min-width: 1200px) {
  .nav {
    display: flex;
  }
  .header__cta {
    display: inline-flex;
  }
  .nav-toggle {
    display: none;
  }
}
