/* Hex Informatica — site styles
   Implements the design canvas "Hex Informatica.dc.html". */

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-body);
  color: var(--color-text-900);
  background: var(--surface-page);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--color-primary); text-decoration: none; transition: color 150ms ease; }
a:hover { color: var(--color-primary-hover); }

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

[hidden] { display: none !important; }

::selection { background: var(--selection-bg); color: var(--selection-text); }

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--color-ink-900);
  margin: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 12px 20px;
  background: var(--color-primary);
  color: #fff;
  border-radius: 0 0 var(--radius-md) 0;
  font-weight: 600;
}
.skip-link:focus { left: 0; color: #fff; }

.eyebrow {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-eyebrow);
  font-weight: 700;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--color-primary);
}
.eyebrow--muted { color: var(--color-text-400); }
.eyebrow--on-dark { color: var(--color-text-on-dark-accent); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease;
  text-align: center;
}
.btn--primary { background: var(--color-primary); color: #fff; }
.btn--primary:hover { background: var(--color-primary-hover); color: #fff; }
.btn--secondary { background: transparent; border-color: var(--border-pill); color: var(--color-text-900); }
.btn--secondary:hover { border-color: var(--color-primary); color: var(--color-primary); }
.btn--on-dark { background: transparent; border-color: rgba(255, 255, 255, 0.4); color: #fff; }
.btn--on-dark:hover { border-color: #fff; color: #fff; }
.btn--lg { padding: 15px 32px; font-size: 16px; }
.btn--sm { padding: 10px 22px; font-size: 14px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  padding: 18px var(--gutter);
  background: rgba(250, 251, 251, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-default);
}

.brand { display: flex; align-items: center; gap: var(--space-3); }
.brand:hover { color: inherit; }
.brand img { height: 34px; width: auto; }
.brand__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: var(--tracking-normal);
  color: var(--color-ink-900);
  white-space: nowrap;
}

.site-nav { display: flex; align-items: center; gap: 36px; }
.site-nav a {
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text-700);
}
.site-nav a:hover { color: var(--color-primary); }

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--border-pill);
  border-radius: var(--radius-pill);
  background: #fff;
  cursor: pointer;
  color: var(--color-ink-900);
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  position: relative;
  width: 16px;
  height: 1.5px;
  margin: 0 auto;
  background: currentColor;
  transition: transform 150ms ease, opacity 150ms ease;
}
.nav-toggle span::before { content: ''; position: absolute; top: -5px; }
.nav-toggle span::after  { content: ''; position: absolute; top: 5px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after  { transform: translateY(-5px) rotate(-45deg); }

/* ---------- Sections ---------- */
.section { padding: 110px var(--gutter); }
/* The articles band alone, per the design canvas. Deliberately tighter
   than .section so the carousel sits closer to the sections either side. */
.section--tight { padding: 64px var(--gutter); }
.section__inner { max-width: var(--measure); margin: 0 auto; }
.section__intro { max-width: 640px; margin: 0 0 var(--space-14); }
.section__intro h2 { margin: var(--space-3) 0 0; }
.section__intro p {
  font-size: 16px;
  line-height: var(--leading-relaxed);
  color: var(--color-text-500);
  margin: var(--space-4) 0 0;
}
.section h2 {
  font-size: var(--text-h2);
  font-weight: 700;
  letter-spacing: var(--tracking-normal);
}

/* ---------- Media placeholders ----------
   The design uses <image-slot> drop targets; no photography exists yet.
   .media renders a branded panel in the meantime — drop an <img> inside
   a .media element and the placeholder is hidden automatically. */
.media {
  position: relative;
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background:
    radial-gradient(120% 120% at 15% 10%, rgba(90, 167, 172, 0.22) 0%, rgba(90, 167, 172, 0) 60%),
    linear-gradient(160deg, var(--surface-muted) 0%, var(--color-primary-tint) 100%);
  border: 1px solid var(--border-default);
}
.media::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../img/logo.png');
  background-repeat: no-repeat;
  background-position: center;
  background-size: 34% auto;
  opacity: 0.12;
}
.media > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media:has(> img) { background: var(--surface-muted); }
.media:has(> img)::after { display: none; }
.media--r20 { border-radius: var(--radius-xl); }
.media--r24 { border-radius: 24px; }
.media--r8  { border-radius: var(--radius-sm); }

/* ---------- Hero ----------
   A dark band with a slow node-and-link network drawn behind the copy.
   The canvas is decorative: it is painted by site.js, skipped entirely
   under prefers-reduced-motion, and the ink background alone carries the
   section if JS never runs. */
.hero {
  position: relative;
  padding: 110px var(--gutter);
  overflow: hidden;
  background: var(--color-ink-900);
}
.hero__network {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}
.hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 35, 42, 0.55) 0%, rgba(6, 35, 42, 0.85) 100%);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 900px;
  margin: 0 auto;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 7px 16px;
  border: 1px solid var(--border-pill);
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  color: var(--color-primary);
  background: #fff;
  margin-bottom: 28px;
}
.hero h1 {
  font-size: var(--text-h1);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: var(--tracking-tight);
  color: var(--color-text-on-dark-100);
  margin: 0 0 26px;
}
/* :not(.badge) — the badge is a white pill and keeps its own teal ink. */
.hero p:not(.badge) {
  font-size: var(--text-body-lg);
  line-height: var(--leading-normal);
  color: var(--color-text-on-dark-300);
  margin: 0 0 var(--space-4);
}
.hero p:last-of-type { margin-bottom: var(--space-10); }
.hero__actions { display: flex; gap: var(--space-4); flex-wrap: wrap; }

/* ---------- Industries ---------- */
.industries {
  border-top: 1px solid var(--border-default);
  border-bottom: 1px solid var(--border-default);
  padding: 64px var(--gutter);
  background: var(--surface-muted);
}
.industries h2 {
  font-size: var(--text-h2-sm);
  font-weight: 700;
  letter-spacing: var(--tracking-normal);
  margin: var(--space-3) 0 var(--space-5);
  max-width: 720px;
}
.industries p {
  font-size: 16px;
  line-height: var(--leading-relaxed);
  color: var(--color-text-500);
  max-width: 720px;
  margin: 0 0 var(--space-2);
}
.industries p:last-of-type { margin-bottom: 0; }
.industries__head {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 48px;
  align-items: center;
  margin-bottom: var(--space-10);
}
.industries__media { aspect-ratio: 16 / 9; }
.industry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}
.card {
  background: var(--surface-card);
  border: 1px solid var(--border-default);
  border-radius: 18px;
  padding: 38px 32px;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.card h3 {
  font-weight: 600;
  font-size: 21px;
  margin: 0;
}
.card p {
  font-size: var(--text-body);
  line-height: var(--leading-normal);
  color: var(--color-text-400);
  margin: 0;
}

/* ---------- Services ---------- */
/* Overrides .section, per the design canvas. Same 64px band as the
   articles section; .contact keeps .section's roomier 110px. */
.services {
  padding: 64px var(--gutter);
  background: var(--surface-muted);
  border-top: 1px solid var(--border-default);
  border-bottom: 1px solid var(--border-default);
}
.services__panel {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  overflow: hidden;
  min-height: 360px;
}
.services__list {
  background: var(--surface-muted);
  border-right: 1px solid var(--border-default);
  display: flex;
  flex-direction: column;
}
.services__tab {
  display: block;
  width: 100%;
  text-align: left;
  padding: 22px 28px;
  cursor: pointer;
  border: 0;
  border-bottom: 1px solid var(--border-default);
  border-left: 3px solid transparent;
  background: transparent;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  color: var(--color-text-700);
  transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease;
}
.services__tab:hover { background: var(--color-primary-tint); }
.services__tab[aria-selected="true"] {
  background: var(--surface-card);
  border-left-color: var(--color-primary);
  color: var(--color-primary);
}
.services__detail {
  background: var(--surface-card);
  padding: 44px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-4);
}
.services__detail h3 { font-weight: 600; font-size: 22px; margin: 0; }
.services__detail p {
  font-size: 16px;
  line-height: var(--leading-relaxed);
  color: var(--color-text-600);
  margin: 0;
}
.services__detail .services__includes {
  font-size: var(--text-body-sm);
  line-height: var(--leading-normal);
  color: var(--color-text-400);
}

/* ---------- Articles ---------- */
.articles__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-6);
  margin-bottom: var(--space-10);
  flex-wrap: wrap;
}
.articles__head h2 { margin: var(--space-3) 0 0; }
.carousel-controls { display: flex; gap: 10px; }
.carousel-btn {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-pill);
  background: var(--surface-card);
  color: var(--color-primary);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  transition: border-color 150ms ease, opacity 150ms ease;
}
.carousel-btn:hover { border-color: var(--color-primary); }
.carousel-btn[disabled] { opacity: 0.35; cursor: default; }
.carousel-btn[disabled]:hover { border-color: var(--border-pill); }

.articles__track {
  display: flex;
  gap: var(--space-6);
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x proximity;
  padding-bottom: var(--space-2);
  scrollbar-width: thin;
}
.article-card {
  flex: 0 0 300px;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  scroll-snap-align: start;
}
.article-card:hover h3 { color: var(--color-primary); }
.article-card .media { aspect-ratio: 4 / 3; }
.article-card__meta {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-primary);
}
.article-card h3 {
  font-weight: 600;
  font-size: 18px;
  margin: 0;
  transition: color 150ms ease;
}
.article-card p {
  font-size: var(--text-body-sm);
  line-height: var(--leading-normal);
  color: var(--color-text-400);
  margin: 0;
}
.article-card__text { display: flex; flex-direction: column; gap: var(--space-2); }

/* ---------- About ---------- */
.about {
  background: var(--color-ink-800);
  padding: 110px var(--gutter);
  color: var(--color-text-on-dark-200);
}
.about__inner {
  max-width: var(--measure);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 64px;
  align-items: center;
}
.about h2 {
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 700;
  letter-spacing: var(--tracking-normal);
  color: var(--color-text-on-dark-100);
  margin: 14px 0 22px;
}
.about p {
  font-size: 17px;
  line-height: var(--leading-relaxed);
  color: var(--color-text-on-dark-300);
  margin: 0 0 18px;
}
.about p:last-child { margin-bottom: 0; }
.about__media {
  width: 80%;
  aspect-ratio: 6 / 7;
  margin-left: auto;
}
.about__media::after { opacity: 0.16; }
.about__pillars {
  max-width: var(--measure);
  margin: var(--space-5) auto 0;
}
/* The dividers are drawn by each pillar on its own top and left edge rather
   than by a 1px grid gap over a lighter parent. With five pillars the row is
   rarely full, and a gap-and-parent-background panel renders those leftover
   cells as visibly lighter blocks. Rules offset by -1px fall outside the
   rounded clip on the first row and column, so no outer edge is drawn. */
.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  background: var(--color-ink-700);
  border-radius: var(--radius-xl);
  overflow: hidden;
}
.pillar { position: relative; background: var(--color-ink-700); padding: 30px 26px; }
.pillar::before,
.pillar::after {
  content: '';
  position: absolute;
  background: rgba(255, 255, 255, 0.12);
}
.pillar::before { top: 0; bottom: 0; left: -1px; width: 1px; }
.pillar::after { left: 0; right: 0; top: -1px; height: 1px; }
.pillar h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text-on-dark-100);
  margin: 0 0 var(--space-2);
}
.pillar p {
  font-size: var(--text-body-sm);
  line-height: var(--leading-normal);
  color: var(--color-text-on-dark-400);
  margin: 0;
}

/* ---------- Contact ---------- */
.contact__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 48px;
  align-items: stretch;
  max-width: var(--measure);
  margin: 0 auto;
}
.contact h2 {
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 700;
  letter-spacing: var(--tracking-normal);
  margin: 14px 0 22px;
}
.contact__lede {
  font-size: 16px;
  line-height: var(--leading-relaxed);
  color: var(--color-text-500);
  margin: 0 0 var(--space-3);
  max-width: 460px;
}
.contact__lede:last-of-type { margin-bottom: 30px; }
.contact__detail { display: flex; align-items: center; gap: var(--space-3); }
.contact__detail-icon {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border-radius: 10px;
  background: var(--color-primary-tint);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  color: var(--color-primary);
}
.contact__detail a { font-size: 15px; color: var(--color-text-700); }
.contact__detail a:hover { color: var(--color-primary); }
.contact__media { min-height: 260px; }

.enquiry-form {
  background: var(--surface-muted);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  padding: var(--space-10);
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 30px;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
.field label {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-700);
}
.field input,
.field textarea {
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--border-input);
  font-family: var(--font-body);
  font-size: 15px;
  background: var(--surface-card);
  color: var(--color-text-900);
  transition: border-color 150ms ease;
}
.field input:hover,
.field textarea:hover { border-color: var(--color-accent-light); }
.field textarea { resize: vertical; min-height: 110px; }
.enquiry-form button[type="submit"] {
  padding: 14px;
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 150ms ease;
}
.enquiry-form button[type="submit"]:hover { background: var(--color-primary-hover); }
.enquiry-form button[type="submit"][disabled] { opacity: 0.6; cursor: default; }
.form-status {
  padding: var(--space-5);
  background: var(--surface-success);
  border-radius: var(--radius-md);
  color: var(--color-success-text);
  font-weight: 600;
  text-align: center;
}
.form-status--error { background: #FBECEC; color: var(--color-error-text); }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border-default);
  padding: 48px var(--gutter) 36px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.site-footer__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-8);
}
.site-footer .brand img { height: 26px; }
.site-footer .brand__name {
  font-weight: 600;
  font-size: 15px;
  color: var(--color-text-600);
}
.site-footer__legal {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  font-size: 13px;
  line-height: var(--leading-relaxed);
  color: var(--color-text-400);
  text-align: right;
}
.site-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-4);
  padding-top: var(--space-5);
  border-top: 1px solid var(--border-hairline);
}
.site-footer__bottom span { font-size: 13px; color: var(--color-text-300); }
.site-footer__bottom a { font-size: 13px; color: var(--color-text-400); }
.site-footer__bottom a:hover { color: var(--color-primary); }

/* ---------- Article page ---------- */
.article-banner { padding: 70px var(--gutter) 0; }
.article-banner__inner {
  max-width: var(--measure-narrow);
  margin: 0 auto;
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 5.5;
  border-radius: var(--radius-xl);
  overflow: hidden;
}
.article-banner__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 35, 42, 0) 40%, rgba(6, 35, 42, 0.75) 100%);
  pointer-events: none;
}
.article-banner__caption {
  position: absolute;
  left: 0;
  bottom: 0;
  padding: var(--space-10);
  max-width: 700px;
}
.article-banner__caption span {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-on-dark-accent-2);
}
.article-banner__caption h1 {
  font-size: clamp(26px, 4vw, 42px);
  font-weight: 700;
  line-height: var(--leading-snug);
  letter-spacing: var(--tracking-normal);
  color: #fff;
  margin: 10px 0 0;
}

.article-layout {
  padding: 64px var(--gutter) 100px;
  max-width: var(--measure-narrow);
  margin: 0 auto;
}
.article-layout__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 64px;
  align-items: start;
}
.article-body {
  display: flex;
  flex-direction: column;
  gap: 28px;
  font-size: 20px;
  line-height: var(--leading-relaxed);
  color: var(--color-text-800);
  max-width: 640px;
}
.article-body > * { margin: 0; }
.article-body__lead {
  font-size: 24px;
  color: var(--color-text-900);
  font-weight: 500;
  line-height: 1.5;
}
.article-body h2 {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: var(--tracking-normal);
  margin-top: var(--space-2);
}
.article-body ul,
.article-body ol { padding-left: 1.2em; display: flex; flex-direction: column; gap: var(--space-3); }
.article-body ol { padding-left: 1.5em; }

.article-aside {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  position: sticky;
  top: 100px;
}
.article-aside h2 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: var(--tracking-normal);
  margin: 0 0 var(--space-5);
  padding-bottom: var(--space-4);
  border-bottom: 2px solid var(--color-ink-900);
}
.aside-item {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border-default);
}
.aside-item .media { width: 84px; height: 84px; }
.aside-item span {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-primary);
}
.aside-item h3 {
  font-weight: 600;
  font-size: 15px;
  line-height: 1.35;
  margin: 0;
  transition: color 150ms ease;
}
.aside-item:hover h3 { color: var(--color-primary); }
.aside-item__text { display: flex; flex-direction: column; gap: var(--space-1); }

/* ---------- Responsive ----------
   The design canvas is a desktop artboard; these breakpoints are the
   implementation's own reflow of it. */

@media (max-width: 1100px) {
  .industries__head,
  .about__inner,
  .contact__inner { grid-template-columns: minmax(0, 1fr); gap: var(--space-10); }
  .hero { padding: 80px var(--gutter); }
  .industries__media { max-height: 420px; }
  .about__media { width: 100%; aspect-ratio: 16 / 10; max-height: 400px; }
  .about { padding: 90px var(--gutter); }
  .contact__media { min-height: 220px; aspect-ratio: 16 / 9; }
  .article-layout__inner { grid-template-columns: minmax(0, 1fr); gap: var(--space-10); }
  .article-aside { position: static; max-width: 640px; }
  .article-body { font-size: 18px; }
  .article-body__lead { font-size: 21px; }
}

@media (max-width: 900px) {
  .services__panel { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .services__list { border-right: 0; border-bottom: 1px solid var(--border-default); }
  .services__list { flex-direction: row; overflow-x: auto; scrollbar-width: thin; }
  .services__tab {
    white-space: nowrap;
    border-bottom: 0;
    border-left: 0;
    border-top: 3px solid transparent;
    padding: 18px 22px;
    font-size: 15px;
  }
  .services__tab[aria-selected="true"] { border-left-color: transparent; border-top-color: var(--color-primary); }
  .services__detail { padding: 32px 26px; }
  .article-banner__inner { aspect-ratio: 4 / 3; }
  .article-banner__caption { padding: var(--space-6); }
}

@media (max-width: 780px) {
  .about, .contact { padding-top: 72px; padding-bottom: 72px; }
  .hero { padding: 56px var(--gutter) 72px; }
  .site-header { position: relative; flex-wrap: wrap; padding: 14px var(--gutter); }
  .nav-toggle { display: block; }
  .header-cta { display: none; }
  .site-nav {
    display: none;
    order: 3;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
    padding-top: var(--space-4);
    margin-top: var(--space-3);
    border-top: 1px solid var(--border-default);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a {
    padding: 14px 2px;
    font-size: 16px;
    border-bottom: 1px solid var(--border-hairline);
  }
  .site-nav__cta {
    display: inline-flex;
    align-self: flex-start;
    margin-top: var(--space-4);
    border-bottom: 0;
    color: #fff;
  }
  .site-nav__cta:hover { color: #fff; }
  .section__intro { margin-bottom: var(--space-10); }
  .card { padding: 30px 26px; }
  .enquiry-form { padding: 26px 22px; }
  .pillars { grid-template-columns: 1fr; }
  .pillar { padding: 24px 22px; }
  .site-footer__legal { text-align: left; }
  .article-banner { padding-top: 40px; }
  .article-layout { padding: 48px var(--gutter) 72px; }
  .aside-item { grid-template-columns: 64px 1fr; }
  .aside-item .media { width: 64px; height: 64px; }
}

@media (max-width: 560px) {
  .field-row { grid-template-columns: 1fr; }
  .hero__actions { width: 100%; }
  .hero__actions .btn { flex: 1 1 auto; }
  .brand__name { font-size: 16px; }
  .brand img { height: 28px; }
  .article-card { flex-basis: 260px; }
  .article-body { font-size: 17px; }
  .article-body__lead { font-size: 19px; }
}

/* Desktop: the in-menu CTA duplicate stays hidden */
@media (min-width: 781px) {
  .site-nav__cta { display: none; }
}

@media print {
  .site-header, .carousel-controls, .enquiry-form, .hero__network, .hero__scrim { display: none; }
  body { background: #fff; }
  .hero { background: #fff; padding-top: 24px; }
  .hero h1 { color: var(--color-text-900); }
  .hero p:not(.badge) { color: var(--color-text-600); }
}

/* Small placeholders read as texture, not repeated logos */
.article-card .media::after,
.aside-item .media::after { display: none; }

/* Article banner placeholder: dark, so the white title and tag stay legible
   the way they would over a real photo with the scrim on top. */
.article-banner__inner.media {
  background: linear-gradient(150deg, var(--color-ink-700) 0%, var(--color-ink-900) 100%);
  border-color: transparent;
}
.article-banner__inner.media::after { opacity: 0.10; }
