/* ==========================================================================
   ATET website styles
   Colours and fonts live in :root only. Navy + yellow from the ATET logo.
   ========================================================================== */

/* Inter (self-hosted, SIL OFL, see assets/fonts/Inter-OFL.txt) so every device shows the same font. */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-latin.woff2") format("woff2");
}

:root {
  /* Brand colours */
  --brand: #1b2445;          /* ATET navy: header, dark bands, headings */
  --brand-strong: #111830;   /* deeper navy for hover and footer */
  --brand-soft: #eef0f6;     /* pale navy tint for light sections */
  --accent: #ffc72c;         /* ATET yellow: buttons, highlights */
  --accent-strong: #f2b400;  /* yellow hover */
  --accent-ink: #8a6200;     /* yellow-family text that passes contrast on white */

  /* Neutrals */
  --ink: #161a26;
  --ink-soft: #4b5163;
  --line: #d9dce5;
  --paper: #ffffff;
  --surface: #f6f7fa;

  /* Type */
  --font-heading: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Layout */
  --max: 74rem;
  --gutter: clamp(1rem, 4vw, 2rem);
  --radius: 4px;
  --section: clamp(3.5rem, 8vw, 6.5rem);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
}

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

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 0.6em;
  text-wrap: balance;
  color: var(--brand);
}
h1 { font-size: clamp(2.3rem, 5.6vw, 4rem); }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.25rem; letter-spacing: -0.01em; }

p { margin: 0 0 1em; text-wrap: pretty; }
a { color: var(--brand); text-underline-offset: 0.18em; }
a:hover { color: var(--brand-strong); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

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

.skip-link {
  position: absolute; left: 1rem; top: -3rem; z-index: 100;
  background: var(--brand); color: #fff; padding: 0.5rem 1rem; border-radius: var(--radius);
}
.skip-link:focus { top: 1rem; color: #fff; }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  min-height: 3rem; padding: 0.75rem 1.4rem;
  border: 2px solid var(--accent); border-radius: var(--radius);
  background: var(--accent); color: var(--brand-strong);
  font: 700 1rem/1 var(--font-body); text-decoration: none; cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.btn:hover { background: var(--accent-strong); border-color: var(--accent-strong); color: var(--brand-strong); }
.btn--ghost { background: transparent; border-color: currentColor; color: var(--brand); }
.btn--ghost:hover { background: var(--brand); border-color: var(--brand); color: #fff; }
.on-dark .btn--ghost { color: #fff; }
.on-dark .btn--ghost:hover { background: #fff; border-color: #fff; color: var(--brand); }
.btn[disabled] { opacity: 0.6; cursor: progress; }
.btn svg { width: 1.15em; height: 1.15em; flex: none; }

/* ---------- Top bar + header ---------- */
.topbar { background: var(--brand-strong); color: #c9cee0; font-size: 0.875rem; }
.topbar__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.25rem 1.5rem; padding-block: 0.45rem; }
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { text-decoration: underline; color: #fff; }
.topbar__urgent strong { color: var(--accent); font-weight: 700; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--brand);
  border-bottom: 3px solid var(--accent);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.5rem; }

.logo { display: block; flex: none; }
.logo img { width: 9.5rem; height: auto; }

.nav-toggle {
  display: none; background: none; border: 1px solid rgba(255,255,255,0.35); border-radius: var(--radius);
  min-height: 2.75rem; padding: 0 0.9rem; font: 600 0.95rem var(--font-body); color: #fff; cursor: pointer;
}

.site-nav ul { display: flex; align-items: center; gap: 0.15rem; list-style: none; margin: 0; padding: 0; }
.site-nav a {
  display: block; padding: 0.6rem 0.8rem;
  color: #e4e7f1; text-decoration: none; font-weight: 600;
}
.site-nav a:hover { color: var(--accent); }
.site-nav a[aria-current="page"] { color: var(--accent); box-shadow: inset 0 -2px 0 var(--accent); }
.site-nav .btn { margin-left: 0.6rem; color: var(--brand-strong); padding: 0.6rem 1.1rem; min-height: 2.75rem; box-shadow: none; }
.site-nav .btn:hover { color: var(--brand-strong); }

@media (max-width: 56rem) {
  .js .nav-toggle { display: inline-flex; align-items: center; }
  .js .site-nav { display: none; position: absolute; inset: 100% 0 auto; background: var(--brand); border-bottom: 3px solid var(--accent); }
  .js .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; padding: 0.5rem var(--gutter) 1rem; }
  .site-nav a { padding: 0.85rem 0.5rem; }
  .site-nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--accent); padding-left: 0.85rem; }
  .site-nav .btn { margin: 0.5rem 0 0; }
  html:not(.js) .site-header__inner { flex-wrap: wrap; padding-block: 0.5rem; }
  html:not(.js) .site-nav ul { flex-direction: row; flex-wrap: wrap; padding: 0; }
  .topbar__hours { display: none; }
}

/* ---------- Sections ---------- */
.section { padding-block: var(--section); }
.section--tint { background: var(--surface); }
.section--dark { background: var(--brand); color: #dfe3ef; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--dark a:not(.btn) { color: #fff; }

.eyebrow {
  display: block; margin-bottom: 0.9rem;
  font-size: 0.8rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-ink);
}
.on-dark .eyebrow, .section--dark .eyebrow { color: var(--accent); }

.lead { font-size: clamp(1.125rem, 2vw, 1.3rem); color: var(--ink-soft); max-width: 40rem; }
.on-dark .lead { color: #d3d8e8; }
.section-head { max-width: 44rem; margin-bottom: clamp(2rem, 5vw, 3rem); }
.section-head--row { max-width: none; display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem 2rem; }
.section-head--row > div { max-width: 44rem; }

/* ---------- Home hero ---------- */
.hero { position: relative; background: var(--brand); color: #fff; overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.15fr 0.85fr; min-height: min(78vh, 44rem); }
.hero__copy { padding-block: clamp(3rem, 8vw, 6rem); padding-right: clamp(1.5rem, 4vw, 3.5rem); align-self: center; }
.hero h1 { color: #fff; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.hero__media { position: relative; margin-right: calc(-1 * max(var(--gutter), (100vw - var(--max)) / 2)); }
.hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; }
.hero__media::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 10px; z-index: 1;
  background: repeating-linear-gradient(-45deg, var(--accent) 0 14px, var(--brand-strong) 14px 28px);
}
.hero__proof { display: flex; flex-wrap: wrap; gap: 0.6rem 1.75rem; margin: 2.5rem 0 0; padding: 0; list-style: none; color: #c9cee0; font-size: 0.95rem; }
.hero__proof li { display: flex; align-items: center; gap: 0.5rem; }
.hero__proof svg { width: 1.1rem; height: 1.1rem; color: var(--accent); flex: none; }

@media (max-width: 56rem) {
  .hero__grid { grid-template-columns: 1fr; min-height: 0; }
  .hero__copy { padding-right: 0; padding-bottom: 2.5rem; }
  .hero__media { margin-inline: calc(-1 * var(--gutter)); aspect-ratio: 4 / 3; }
  .hero__media::before { width: auto; height: 8px; right: 0; bottom: auto; }
}

/* ---------- Inner page hero ---------- */
.page-hero { position: relative; background: var(--brand); color: #fff; padding-block: clamp(3rem, 7vw, 5rem); overflow: hidden; }
.page-hero h1 { color: #fff; margin-bottom: 0.4em; }
.page-hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.18; }
.page-hero .container { position: relative; }
.page-hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px;
  background: repeating-linear-gradient(-45deg, var(--accent) 0 14px, var(--brand-strong) 14px 28px);
}

/* ---------- Stat strip ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.stats div { padding: 1.5rem clamp(1rem, 2.5vw, 1.75rem); border-left: 1px solid var(--line); }
.stats div:first-child { border-left: 0; }
.stats strong { display: block; font: 800 clamp(1.6rem, 3vw, 2.2rem)/1 var(--font-heading); color: var(--brand); }
.stats span { display: block; margin-top: 0.45rem; color: var(--ink-soft); font-size: 0.95rem; }
@media (max-width: 48rem) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stats div:nth-child(3) { border-left: 0; }
  .stats div:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* ---------- Service cards ---------- */
.services { display: grid; gap: 1.25rem; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 60rem) { .services { grid-template-columns: 1fr 1fr; } }
@media (max-width: 38rem) { .services { grid-template-columns: 1fr; } }

.svc { position: relative; display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: border-color 0.15s, transform 0.15s; }
.svc:hover { border-color: var(--brand); }
.svc__img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--brand-soft); }
.svc__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.svc:hover .svc__img img { transform: scale(1.04); }
@media (prefers-reduced-motion: reduce) { .svc__img img { transition: none; } .svc:hover .svc__img img { transform: none; } }
.svc__body { display: flex; flex-direction: column; flex: 1; padding: 1.4rem 1.4rem 1.5rem; }
.svc__num { font: 800 0.8rem var(--font-body); letter-spacing: 0.12em; color: var(--accent-ink); margin-bottom: 0.4rem; }
.svc h3 { margin-bottom: 0.45rem; }
.svc p { color: var(--ink-soft); font-size: 0.98rem; }
.svc a { margin-top: auto; font-weight: 700; text-decoration: none; }
.svc a::after { content: ""; position: absolute; inset: 0; }
.svc a span { border-bottom: 2px solid var(--accent); }

/* ---------- Why / split ---------- */
.split { display: grid; gap: clamp(2rem, 5vw, 4.5rem); grid-template-columns: 1fr 1fr; align-items: center; }
.split--top { align-items: start; }
@media (max-width: 56rem) { .split { grid-template-columns: 1fr; } }

.media-frame { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--brand-soft); aspect-ratio: 4 / 5; }
.media-frame--wide { aspect-ratio: 4 / 3; }
.media-frame img { width: 100%; height: 100%; object-fit: cover; }
.media-frame figcaption { position: absolute; left: 0; bottom: 0; background: var(--brand); color: #fff; font-size: 0.85rem; padding: 0.45rem 0.8rem; }

.ticks { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: 1rem; }
.ticks li { display: grid; grid-template-columns: 2.25rem 1fr; gap: 0.9rem; align-items: start; }
.ticks .ic { display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: var(--radius); background: var(--accent); color: var(--brand-strong); }
.ticks .ic svg { width: 1.2rem; height: 1.2rem; }
.ticks strong { display: block; color: var(--brand); }
.ticks span { color: var(--ink-soft); font-size: 0.98rem; }
.section--dark .ticks strong { color: #fff; }
.section--dark .ticks span:not(.ic) { color: #c9cee0; }

/* ---------- Projects ---------- */
.projects { display: grid; gap: 1rem; grid-template-columns: repeat(12, 1fr); grid-auto-rows: clamp(16rem, 27vw, 24rem); }
.proj { position: relative; margin: 0; overflow: hidden; border-radius: var(--radius); background: var(--brand); grid-column: span 4; }
.proj--wide { grid-column: span 8; }
.proj img { width: 100%; height: 100%; object-fit: cover; }
.proj figcaption {
  position: absolute; inset: auto 0 0 0; padding: 2.5rem 1.1rem 1rem; color: #fff;
  background: linear-gradient(to top, rgba(17,24,48,0.92), rgba(17,24,48,0));
}
.proj figcaption strong { display: block; font-size: 1.05rem; }
.proj figcaption span { font-size: 0.875rem; color: #d3d8e8; }
@media (max-width: 56rem) {
  .projects { grid-auto-rows: 18rem; }
  .proj, .proj--wide { grid-column: span 6; }
}
@media (max-width: 34rem) {
  .projects { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .proj, .proj--wide { grid-column: auto; aspect-ratio: 4 / 3; }
}

/* ---------- Steps ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.5rem 2rem; grid-template-columns: repeat(4, 1fr); counter-reset: step; }
@media (max-width: 56rem) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 34rem) { .steps { grid-template-columns: 1fr; } }
.steps li { counter-increment: step; border-top: 3px solid var(--accent); padding-top: 1.1rem; }
.steps li::before { content: counter(step, decimal-leading-zero); display: block; margin-bottom: 0.35rem; font: 800 0.85rem var(--font-body); letter-spacing: 0.1em; color: var(--accent-ink); }
.section--dark .steps li::before { color: var(--accent); }
.steps h3 { font-size: 1.1rem; margin-bottom: 0.35rem; }
.steps p { color: var(--ink-soft); font-size: 0.98rem; margin: 0; }
.section--dark .steps p { color: #c9cee0; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.1rem 0; cursor: pointer; list-style: none; font-weight: 700; color: var(--brand);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 1.75rem; height: 1.75rem; border-radius: 50%; background: var(--brand-soft); font-size: 1.2rem; line-height: 1; }
.faq details[open] summary::after { content: "\2212"; background: var(--accent); }
.faq details p { color: var(--ink-soft); margin: 0 0 1.2rem; max-width: 46rem; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--accent); color: var(--brand-strong); padding-block: clamp(2.5rem, 6vw, 4rem); }
.cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; }
.cta h2 { margin: 0 0 0.3rem; color: var(--brand-strong); max-width: 34rem; }
.cta p { margin: 0; max-width: 34rem; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.cta .btn { background: var(--brand); border-color: var(--brand); color: #fff; }
.cta .btn:hover { background: var(--brand-strong); border-color: var(--brand-strong); color: #fff; }
.cta .btn--ghost { background: transparent; color: var(--brand-strong); border-color: var(--brand-strong); }
.cta .btn--ghost:hover { background: var(--brand-strong); color: #fff; }

/* ---------- Services page ---------- */
.service { display: grid; gap: 1.5rem clamp(2rem, 5vw, 4rem); grid-template-columns: 1fr 1fr; align-items: center; padding-block: clamp(2rem, 5vw, 3.5rem); border-top: 1px solid var(--line); scroll-margin-top: 6rem; }
.service:first-child { border-top: 0; padding-top: 0; }
.service:nth-child(even) .media-frame { order: 2; }
.service .media-frame { aspect-ratio: 4 / 3; }
.service ul { margin: 0 0 1.5rem; padding: 0; list-style: none; display: grid; gap: 0.5rem; }
.service li { position: relative; padding-left: 1.5rem; color: var(--ink-soft); }
.service li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 0.6rem; height: 0.6rem; background: var(--accent); }
@media (max-width: 56rem) {
  .service { grid-template-columns: 1fr; }
  .service:nth-child(even) .media-frame { order: 0; }
}

/* ---------- People ---------- */
.people { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); }
.person { background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--radius); padding: 1.5rem; }
.person h3 { margin-bottom: 0.15rem; }
.person .role { display: block; font-size: 0.9rem; font-weight: 700; color: var(--accent-ink); margin-bottom: 0.8rem; }
.person p { color: var(--ink-soft); margin: 0; }

/* ---------- Contact ---------- */
.contact-cards { display: grid; gap: 1rem; margin-bottom: 1.5rem; }
.contact-card { display: grid; grid-template-columns: 2.75rem 1fr; gap: 1rem; align-items: center; padding: 1rem 1.1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); }
a.contact-card:hover { border-color: var(--brand); color: var(--ink); }
.contact-card .ic { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: var(--radius); background: var(--brand); color: var(--accent); }
.contact-card .ic svg { width: 1.3rem; height: 1.3rem; }
.contact-card small { display: block; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); }
.contact-card strong { font-size: 1.08rem; color: var(--brand); word-break: break-word; }

.form { display: grid; gap: 1.1rem; background: var(--paper); border: 1px solid var(--line); border-top: 4px solid var(--accent); border-radius: var(--radius); padding: clamp(1.5rem, 4vw, 2.5rem); box-shadow: 0 18px 40px -28px rgba(17,24,48,0.45); }
.form h2 { font-size: 1.6rem; margin-bottom: 0; }
.field { display: grid; gap: 0.35rem; }
.field label { font-weight: 600; }
.field .hint { font-size: 0.9rem; font-weight: 400; color: var(--ink-soft); }
.field input, .field textarea, .field select {
  width: 100%; min-height: 3rem; padding: 0.7rem 0.85rem;
  border: 1px solid #a9aebd; border-radius: var(--radius); background: #fff; color: var(--ink); font: inherit;
}
.field textarea { min-height: 9rem; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 3px solid color-mix(in srgb, var(--accent) 70%, transparent); border-color: var(--brand); }
.field [aria-invalid="true"] { border-color: #b42318; }
.field-error { color: #b42318; font-size: 0.9rem; margin: 0; }
.field-error:empty { display: none; }
.field-row { display: grid; gap: 1.1rem; grid-template-columns: 1fr 1fr; }
@media (max-width: 34rem) { .field-row { grid-template-columns: 1fr; } }

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.form-status { padding: 0.9rem 1rem; border-radius: var(--radius); font-weight: 500; margin: 0; }
.form-status:empty { display: none; }
.form-status--ok { background: #e7f4ec; color: #14532d; border: 1px solid #9fd0b1; }
.form-status--error { background: #fdecea; color: #8a1c12; border: 1px solid #f1b0a8; }

/* ---------- Footer ---------- */
.site-footer { background: var(--brand-strong); color: #c3c8d9; padding-block: 3.5rem 2rem; font-size: 0.95rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--accent); }
.site-footer a[href^="https://fexflow"] { text-decoration: underline; text-underline-offset: 3px; }
/* Keep the floating WhatsApp button from covering the last footer line on phones */
@media (max-width: 38rem) { .site-footer { padding-bottom: 6rem; } }
.site-footer__grid { display: grid; gap: 2rem; grid-template-columns: 1.4fr 1fr 1fr 1fr; }
.site-footer h2 { font-size: 0.85rem; font-family: var(--font-body); letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.9rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem; }
.site-footer .logo img { width: 10rem; margin-bottom: 1rem; }
.site-footer__bottom { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid #2a3355; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; color: #8f96ad; }
@media (max-width: 56rem) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 34rem) { .site-footer__grid { grid-template-columns: 1fr; } }

/* ---------- Floating WhatsApp ---------- */
.wa-float {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 60;
  display: grid; place-items: center; width: 3.5rem; height: 3.5rem; border-radius: 50%;
  background: #1f8a4c; color: #fff; box-shadow: 0 8px 24px -8px rgba(0,0,0,0.45);
}
.wa-float:hover { background: #18703d; color: #fff; }
.wa-float svg { width: 1.75rem; height: 1.75rem; }

/* ---------- 404 + prose ---------- */
.not-found { min-height: 60vh; display: grid; place-items: center; text-align: center; }
.not-found .hero__actions { justify-content: center; }
.not-found .lead { margin-inline: auto; }
.prose { max-width: 44rem; }
.prose h2 { font-size: 1.5rem; margin-top: 2.25rem; }
.prose .hint { font-size: 0.9rem; color: var(--ink-soft); border-left: 3px solid var(--accent); padding-left: 0.85rem; }

/* ---------- Stats band (home) ---------- */
.stats-band { background: var(--surface); padding-block: clamp(1.5rem, 4vw, 2.5rem); border-bottom: 1px solid var(--line); }

/* ---------- Sectors ---------- */
.sectors { display: grid; gap: 1.25rem; grid-template-columns: repeat(4, 1fr); }
@media (max-width: 60rem) { .sectors { grid-template-columns: 1fr 1fr; } }
@media (max-width: 34rem) { .sectors { grid-template-columns: 1fr; } }
.sector { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.sector img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.sector > div { padding: 1.1rem 1.2rem 1.3rem; border-top: 3px solid var(--accent); }
.sector h3 { margin-bottom: 0.35rem; font-size: 1.15rem; }
.sector p { margin: 0; color: var(--ink-soft); font-size: 0.97rem; }

/* ---------- Build stages ---------- */
.stages { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.5rem; grid-template-columns: repeat(4, 1fr); counter-reset: stage; }
@media (max-width: 56rem) { .stages { grid-template-columns: 1fr 1fr; } }
@media (max-width: 34rem) { .stages { grid-template-columns: 1fr; } }
.stages li { counter-increment: stage; position: relative; }
.stages img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--radius); margin-bottom: 1rem; }
.stages li::before {
  content: counter(stage); position: absolute; top: 0.75rem; left: 0.75rem; z-index: 1;
  display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 50%;
  background: var(--accent); color: var(--brand-strong); font: 800 1rem var(--font-body);
}
.stages h3 { font-size: 1.1rem; margin-bottom: 0.3rem; }
.stages p { margin: 0; color: var(--ink-soft); font-size: 0.97rem; }

/* ---------- Team gallery ---------- */
.gallery { display: grid; gap: 1rem; grid-template-columns: repeat(4, 1fr); }
@media (max-width: 56rem) { .gallery { grid-template-columns: 1fr 1fr; } }
.gallery figure { margin: 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 3 / 4; background: var(--brand-strong); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.gallery figure:hover img { transform: scale(1.04); }

/* ---------- Motion (classes added by main.js) ---------- */
.reveal { opacity: 0; transition: opacity 0.5s ease; }
.reveal.is-in { opacity: 1; }
@media print { .reveal { opacity: 1 !important; transform: none !important; } }

@media (prefers-reduced-motion: no-preference) {
  .reveal { transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
  .reveal.is-in { transform: none; }

  .hero__media img { animation: hero-zoom 14s ease-out both; }
  .page-hero__bg { animation: hero-zoom 14s ease-out both; }
  .hero__copy > *, .page-hero .container > * { animation: rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .hero__copy > :nth-child(2), .page-hero .container > :nth-child(2) { animation-delay: 0.08s; }
  .hero__copy > :nth-child(3), .page-hero .container > :nth-child(3) { animation-delay: 0.16s; }
  .hero__copy > :nth-child(4) { animation-delay: 0.24s; }
  .hero__copy > :nth-child(5) { animation-delay: 0.32s; }

  .wa-float { animation: wa-pop 0.5s 1.2s cubic-bezier(0.2, 0.9, 0.3, 1.3) both; }
  .btn { transition: background-color 0.15s, border-color 0.15s, color 0.15s, transform 0.15s; }
  .btn:hover { transform: translateY(-2px); }
  .btn:active { transform: translateY(0) scale(0.98); }
}
@keyframes hero-zoom { from { transform: scale(1.1); } to { transform: scale(1); } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes wa-pop { from { opacity: 0; transform: scale(0.6); } to { opacity: 1; transform: none; } }

/* ---------- Video clips ---------- */
.clips { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; max-width: 30rem; margin-inline: auto; }
.clip { margin: 0; position: relative; border-radius: 14px; overflow: hidden; background: var(--brand-strong); aspect-ratio: 9 / 16; box-shadow: 0 20px 40px -24px rgba(0,0,0,0.7); border: 3px solid rgba(255,255,255,0.12); }
.clip:nth-child(2) { margin-top: 2.5rem; }
.clip video { width: 100%; height: 100%; object-fit: cover; display: block; }
.clip figcaption { position: absolute; left: 0.6rem; bottom: 0.6rem; background: var(--accent); color: var(--brand-strong); font-size: 0.8rem; font-weight: 700; padding: 0.3rem 0.6rem; border-radius: 3px; }
