/* ==========================================================================
   Blu Montez Oil & Gas Security — stylesheet
   Static site. No build step. Plain CSS, organised as:
     1. Fonts
     2. Design tokens
     3. Reset & base
     4. Layout primitives
     5. Components
     6. Sections
     7. Motion
     8. Responsive
   ========================================================================== */

/* 1. Fonts ---------------------------------------------------------------- */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* 2. Design tokens -------------------------------------------------------- */

:root {
  /* Brand — sampled directly from the Blu Montez logo */
  --brand-navy: #131b5c;
  --brand-orange: #f5821f;
  --brand-orange-soft: #ff9c45;
  /* Darker orange for small text on light backgrounds (WCAG AA: 5.0:1). */
  --brand-orange-ink: #a85207;

  /* Surfaces */
  --ink-900: #060c18;
  --ink-800: #0a1322;
  --ink-700: #0f1d31;
  --ink-600: #16293f;
  --paper: #f4f7fa;
  --paper-2: #e7edf4;

  /* Text */
  --text-bright: #ffffff;
  --text: #d6e0ec;
  --text-muted: #93a5bc;
  --text-dark: #0b1424;
  --text-dark-muted: #4e6076;

  /* Lines */
  --line: rgba(147, 187, 235, 0.16);
  --line-strong: rgba(147, 187, 235, 0.3);
  --line-dark: rgba(11, 20, 36, 0.12);

  /* Accessible green for the WhatsApp button (white text, 5.4:1). */
  --whatsapp: #0f7a34;
  --whatsapp-hover: #0b6e2e;

  /* Type */
  --font-display: "Archivo", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", "Consolas", monospace;

  --step--1: 0.8125rem;
  --step-0: 1rem;
  --step-1: 1.125rem;
  --step-2: clamp(1.25rem, 0.4vw + 1.15rem, 1.5rem);
  --step-3: clamp(1.75rem, 1.4vw + 1.4rem, 2.375rem);
  --step-4: clamp(2.125rem, 3vw + 1.3rem, 3.5rem);
  --step-5: clamp(2.75rem, 5.6vw + 1rem, 5.75rem);

  /* Space */
  --space-2xs: 0.5rem;
  --space-xs: 0.75rem;
  --space-s: 1rem;
  --space-m: 1.5rem;
  --space-l: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: clamp(4.5rem, 8vw, 8rem);

  /* Shell */
  --shell: 1240px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --radius: 4px;

  --header-h: 84px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* 3. Reset & base --------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  margin: 0;
  background: var(--ink-900);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img,
picture,
svg {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.032em;
  margin: 0;
  color: var(--text-bright);
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

a {
  color: inherit;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

:focus-visible {
  outline: 3px solid var(--brand-orange);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: var(--gutter);
  z-index: 200;
  padding: 0.75rem 1.25rem;
  background: var(--brand-orange);
  color: var(--text-dark);
  font-weight: 700;
  text-decoration: none;
  transition: top 0.2s var(--ease);
}

.skip-link:focus {
  top: 1rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* 4. Layout primitives ---------------------------------------------------- */

.shell {
  width: min(var(--shell), 100% - var(--gutter) * 2);
  margin-inline: auto;
}

.section {
  padding-block: var(--space-2xl);
}

.section--paper {
  background: var(--paper);
  color: var(--text-dark);
}

.section--paper h2,
.section--paper h3 {
  color: var(--text-dark);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: var(--space-l);
  align-items: end;
  margin-bottom: var(--space-xl);
}

.section-head__lede {
  color: var(--text-muted);
  font-size: var(--step-1);
  line-height: 1.7;
  max-width: 46ch;
}

.section--paper .section-head__lede {
  color: var(--text-dark-muted);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: var(--space-s);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand-orange);
}

.section--paper .eyebrow {
  color: var(--brand-orange-ink);
}

.section--paper .eyebrow::before {
  background: var(--brand-orange-ink);
}

.eyebrow::before {
  content: "";
  width: 32px;
  height: 2px;
  background: var(--brand-orange);
  flex: none;
}

h2 {
  font-size: var(--step-4);
}

.accent {
  color: var(--brand-orange);
}

/* 5. Components ----------------------------------------------------------- */

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1.0625rem 1.75rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.22s var(--ease), background-color 0.22s var(--ease),
    border-color 0.22s var(--ease), color 0.22s var(--ease);
}

.btn svg {
  flex: none;
  transition: transform 0.22s var(--ease);
}

.btn:hover svg {
  transform: translate(3px, -3px);
}

.btn--primary {
  background: var(--brand-orange);
  color: var(--text-dark);
}

.btn--primary:hover {
  background: var(--brand-orange-soft);
  transform: translateY(-2px);
}

.btn--ghost {
  border-color: var(--line-strong);
  color: var(--text-bright);
}

.btn--ghost:hover {
  border-color: var(--brand-orange);
  color: var(--brand-orange);
  transform: translateY(-2px);
}

.btn--dark {
  background: var(--ink-900);
  color: var(--text-bright);
}

.btn--dark:hover {
  background: var(--brand-navy);
  transform: translateY(-2px);
}

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease),
    height 0.3s var(--ease);
}

.site-header.is-stuck {
  height: 68px;
  background: rgba(6, 12, 24, 0.92);
  border-bottom-color: var(--line);
  box-shadow: 0 12px 40px -24px rgba(0, 0, 0, 0.9);
}

/* While the mobile menu is open the bar must be solid, whatever is behind it. */
.site-header.nav-open,
.site-header.nav-open.is-stuck {
  background: var(--ink-900);
  border-bottom-color: var(--line);
  backdrop-filter: none;
}

@supports (backdrop-filter: blur(10px)) {
  .site-header.is-stuck {
    background: rgba(6, 12, 24, 0.72);
    backdrop-filter: blur(14px) saturate(1.4);
  }
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-m);
  width: min(var(--shell), 100% - var(--gutter) * 2);
  margin-inline: auto;
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex: none;
}

.brand img {
  width: auto;
  height: 34px;
  transition: height 0.3s var(--ease);
}

.is-stuck .brand img {
  height: 28px;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 2.6vw, 2.5rem);
}

.primary-nav a {
  position: relative;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--text);
  padding-block: 0.5rem;
  transition: color 0.2s var(--ease);
}

.primary-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--brand-orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s var(--ease);
}

.primary-nav a:hover,
.primary-nav a[aria-current="true"] {
  color: var(--text-bright);
}

.primary-nav a:hover::after,
.primary-nav a[aria-current="true"]::after {
  transform: scaleX(1);
}

.header-cta {
  padding: 0.8125rem 1.25rem;
  font-size: 0.8125rem;
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 0;
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--text-bright);
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  transition: transform 0.25s var(--ease), opacity 0.2s var(--ease);
}

.nav-toggle span {
  margin: 0 auto;
  position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle span::before {
  top: -6px;
}

.nav-toggle span::after {
  top: 6px;
}

.nav-toggle[aria-expanded="true"] span {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] span::before {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span::after {
  transform: translateY(-6px) rotate(-45deg);
}

/* Cards */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--ink-800);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}

.card:hover {
  transform: translateY(-6px);
  border-color: var(--line-strong);
}

.card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--ink-700);
}

/* <picture> is only a wrapper — it must pass the box height through to the
   <img>, otherwise height:100% below resolves against an auto-height parent. */
.card__media picture,
.hero__media picture {
  display: block;
  width: 100%;
  height: 100%;
}

.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.card:hover .card__media img {
  transform: scale(1.05);
}

.card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(6, 12, 24, 0.85) 0%,
    rgba(6, 12, 24, 0.15) 55%,
    rgba(6, 12, 24, 0) 100%
  );
}

.card__index {
  position: absolute;
  z-index: 2;
  left: 1.25rem;
  top: 1.25rem;
  padding: 0.4rem 0.6rem;
  background: var(--brand-orange);
  color: var(--text-dark);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  border-radius: 2px;
}

.card__body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
}

.card__body h3 {
  font-size: var(--step-2);
}

.card__body p {
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.7;
}

/* Facts strip */
.facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(
    140deg,
    rgba(19, 27, 92, 0.35),
    rgba(10, 19, 34, 0.6)
  );
}

.facts > div {
  padding: 1.75rem;
  border-left: 1px solid var(--line);
}

.facts > div:first-child {
  border-left: 0;
}

.facts dt {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.facts dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-bright);
}

/* WhatsApp float */
.whatsapp {
  position: fixed;
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.875rem 1.25rem;
  background: var(--whatsapp);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 999px;
  box-shadow: 0 18px 40px -18px rgba(15, 122, 52, 0.95);
  transition: transform 0.22s var(--ease), background-color 0.22s var(--ease);
}

.whatsapp:hover {
  background: var(--whatsapp-hover);
  transform: translateY(-3px);
}

.whatsapp svg {
  flex: none;
}

/* 6. Sections ------------------------------------------------------------- */

/* Hero */
.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: min(92svh, 900px);
  padding-top: calc(var(--header-h) + var(--space-xl));
  padding-bottom: var(--space-xl);
  overflow: hidden;
  isolation: isolate;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 45%;
}

.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
      100deg,
      rgba(6, 12, 24, 0.96) 0%,
      rgba(6, 12, 24, 0.86) 34%,
      rgba(6, 12, 24, 0.5) 62%,
      rgba(6, 12, 24, 0.72) 100%
    ),
    linear-gradient(to top, rgba(6, 12, 24, 0.98) 2%, rgba(6, 12, 24, 0) 45%);
}

.hero__inner {
  display: grid;
  gap: var(--space-l);
}

.hero h1 {
  font-size: var(--step-5);
  max-width: 17ch;
}

.hero__lede {
  max-width: 54ch;
  font-size: clamp(1.0625rem, 0.5vw + 0.95rem, 1.25rem);
  color: var(--text);
  line-height: 1.72;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-s);
  align-items: center;
}

.hero__note {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
  padding-left: 1rem;
  border-left: 2px solid var(--brand-orange);
}

.hero__note strong {
  display: block;
  color: var(--text-bright);
  font-weight: 700;
}

.hero__facts {
  margin-top: var(--space-m);
}

/* Capabilities grid: 3 up, then 2 wide */
.capability-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.25rem;
}

.capability-grid > :nth-child(1),
.capability-grid > :nth-child(2),
.capability-grid > :nth-child(3) {
  grid-column: span 2;
}

.capability-grid > :nth-child(4),
.capability-grid > :nth-child(5) {
  grid-column: span 3;
}

/* Advantage (light) */
.advantage {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}

.advantage__intro p {
  color: var(--text-dark-muted);
  font-size: var(--step-1);
  line-height: 1.75;
  margin-top: var(--space-m);
  max-width: 42ch;
}

.advantage__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  margin-top: var(--space-l);
  padding-bottom: 0.25rem;
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--text-dark);
  text-decoration: none;
  border-bottom: 2px solid var(--brand-orange);
  transition: gap 0.22s var(--ease), color 0.22s var(--ease);
}

.advantage__cta:hover {
  gap: 1rem;
  color: var(--brand-orange-ink);
}

.advantage__list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line-dark);
  border: 1px solid var(--line-dark);
}

.advantage__list li {
  background: var(--paper);
  padding: clamp(1.5rem, 2.6vw, 2.25rem);
}

.advantage__list small {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--brand-orange-ink);
  margin-bottom: 1rem;
}

.advantage__list h3 {
  font-size: var(--step-2);
  margin-bottom: 0.625rem;
}

.advantage__list p {
  color: var(--text-dark-muted);
  font-size: 0.9375rem;
  line-height: 1.7;
}

/* Purpose (vision / mission) */
.purpose {
  position: relative;
  overflow: hidden;
  background: var(--ink-800);
}

.purpose::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
      70% 90% at 12% 0%,
      rgba(19, 27, 92, 0.75),
      transparent 70%
    ),
    radial-gradient(
      50% 70% at 92% 100%,
      rgba(245, 130, 31, 0.14),
      transparent 70%
    );
  pointer-events: none;
}

.purpose__grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.purpose__grid > div {
  background: var(--ink-800);
  padding: clamp(2rem, 4vw, 3.25rem);
}

.purpose__grid small {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brand-orange);
  margin-bottom: 1.25rem;
}

.purpose__grid h3 {
  font-size: var(--step-3);
  margin-bottom: 1.125rem;
}

.purpose__grid p {
  color: var(--text-muted);
  line-height: 1.8;
}

/* Contact */
.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
  gap: clamp(2.5rem, 6vw, 4.5rem);
  align-items: start;
}

.contact h2 {
  font-size: var(--step-4);
  max-width: 15ch;
}

.contact__lede {
  margin-top: var(--space-m);
  color: var(--text-muted);
  font-size: var(--step-1);
  line-height: 1.75;
  max-width: 46ch;
}

.contact__details {
  margin-top: var(--space-l);
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.contact__details > div {
  background: var(--ink-900);
  padding: 1.375rem 1.5rem;
}

.contact__details dt {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand-orange);
  margin-bottom: 0.5rem;
}

.contact__details dd {
  margin: 0;
  color: var(--text);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.contact__details a {
  text-decoration: none;
  border-bottom: 1px solid var(--line-strong);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.contact__details a:hover {
  color: var(--brand-orange);
  border-color: var(--brand-orange);
}

/* Form */
.form {
  padding: clamp(1.75rem, 3.5vw, 2.5rem);
  background: var(--ink-800);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.form h3 {
  font-size: var(--step-2);
  margin-bottom: 0.5rem;
}

.form__hint {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: var(--space-m);
}

.field {
  display: block;
  margin-bottom: 1.125rem;
}

.field span {
  display: block;
  margin-bottom: 0.4375rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.8125rem 0.9375rem;
  background: var(--ink-900);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--text-bright);
  font-family: inherit;
  font-size: 0.9375rem;
  transition: border-color 0.2s var(--ease);
}

.field textarea {
  min-height: 120px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--brand-orange);
  outline: none;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #78899e;
}

.form .btn {
  width: 100%;
}

.form__legal {
  margin-top: 1rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.form__status {
  padding: 0.875rem 1rem;
  margin-bottom: var(--space-m);
  border-radius: var(--radius);
  font-size: 0.875rem;
  border: 1px solid;
}

.form__status--ok {
  border-color: rgba(31, 175, 84, 0.5);
  background: rgba(31, 175, 84, 0.12);
  color: #7fe0a4;
}

.form__status--error {
  border-color: rgba(245, 130, 31, 0.5);
  background: rgba(245, 130, 31, 0.12);
  color: var(--brand-orange-soft);
}

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Footer */
.site-footer {
  padding-block: var(--space-xl) var(--space-l);
  border-top: 1px solid var(--line);
  background: var(--ink-900);
}

.site-footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) repeat(2, minmax(0, 1fr));
  gap: var(--space-l);
  padding-bottom: var(--space-xl);
}

.site-footer img {
  height: 32px;
  width: auto;
  margin-bottom: var(--space-s);
}

.site-footer__blurb {
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.7;
  max-width: 34ch;
}

.site-footer h4 {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand-orange);
  margin-bottom: 1rem;
}

.site-footer li {
  margin-bottom: 0.625rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.site-footer li a {
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

.site-footer li a:hover {
  color: var(--brand-orange);
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-s);
  padding-top: var(--space-m);
  border-top: 1px solid var(--line);
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* 7. Motion --------------------------------------------------------------- */

/* Reveal only runs when JS is present, so no-JS visitors see everything. */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@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 [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

/* 8. Responsive ----------------------------------------------------------- */

@media (max-width: 1080px) {
  .capability-grid > :nth-child(n) {
    grid-column: span 3;
  }

  /* Five cards in two columns leaves an orphan — give it the full row. */
  .capability-grid > :nth-child(5) {
    grid-column: span 6;
  }

  .section-head {
    grid-template-columns: 1fr;
    align-items: start;
    gap: var(--space-m);
  }

  .advantage,
  .contact__grid {
    grid-template-columns: 1fr;
  }

  .facts {
    grid-template-columns: repeat(2, 1fr);
  }

  .facts > div:nth-child(3) {
    border-left: 0;
  }

  .facts > div:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 860px) {
  :root {
    --header-h: 72px;
  }

  .nav-toggle {
    display: block;
  }

  .primary-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: var(--space-s) var(--gutter) var(--space-l);
    /* Fully opaque: a translucent panel lets the hero headline show through. */
    background: var(--ink-900);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 32px 60px -24px rgba(0, 0, 0, 0.85);
    transform: translateY(-14px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease),
      visibility 0.25s;
  }

  .primary-nav.is-open {
    transform: none;
    opacity: 1;
    visibility: visible;
  }

  .primary-nav a {
    padding: 1rem 0;
    font-size: 1.0625rem;
    border-bottom: 1px solid var(--line);
  }

  .primary-nav a::after {
    display: none;
  }

  .header-cta {
    margin-top: var(--space-m);
    padding: 1rem;
    font-size: 0.9375rem;
  }

  .purpose__grid,
  .advantage__list {
    grid-template-columns: 1fr;
  }

  .site-footer__top {
    grid-template-columns: 1fr 1fr;
  }

  .site-footer__top > :first-child {
    grid-column: 1 / -1;
  }
}

/* Tablet only: the full-width fifth card gets a wider, shallower image. */
@media (min-width: 641px) and (max-width: 1080px) {
  .capability-grid > :nth-child(5) .card__media {
    aspect-ratio: 24 / 9;
  }
}

@media (max-width: 640px) {
  .capability-grid > :nth-child(n) {
    grid-column: 1 / -1;
  }

  .hero {
    min-height: auto;
    padding-block: calc(var(--header-h) + var(--space-l)) var(--space-l);
  }

  .hero__media img {
    object-position: 62% 32%;
  }

  /* On a tall narrow hero a diagonal scrim reads as a hard seam.
     A single vertical fade keeps the photograph legible instead. */
  .hero__scrim {
    background:
      /* keeps the logo and menu button legible over a bright sky */
      linear-gradient(
        to bottom,
        rgba(6, 12, 24, 0.8) 0%,
        rgba(6, 12, 24, 0) 16%
      ),
      linear-gradient(
        to bottom,
        rgba(6, 12, 24, 0.4) 0%,
        rgba(6, 12, 24, 0.78) 34%,
        rgba(6, 12, 24, 0.95) 62%,
        var(--ink-900) 100%
      );
  }

  .hero__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .facts {
    grid-template-columns: 1fr;
  }

  .facts > div {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .facts > div:first-child {
    border-top: 0;
  }

  .whatsapp span {
    display: none;
  }

  .whatsapp {
    padding: 0.9375rem;
  }

  .site-footer__top {
    grid-template-columns: 1fr;
  }
}
