/* ============================================================
   AZ Engineers & Partners L.L.C. — public site stylesheet (v2)
   Direction: cinematic construction — photography dominates,
   bold display type over dark overlays, steel dark + amber.
   Type: Archivo (one family, heavy weight contrast)
   ============================================================ */

:root {
  --dark:   #10151a;   /* steel at dusk — hero/footer/bands */
  --dark-2: #1a2129;
  --paper:  #f5f5f2;   /* light concrete */
  --white:  #ffffff;
  --ink:    #161b20;   /* body text on light */
  --muted:  #5d6770;
  --line:   #dcddd8;
  --line-d: #2c353e;
  --amber:  #f2a71b;   /* construction amber — the accent */
  --amber-d:#d88f06;

  --font: "Archivo", "Segoe UI", Arial, sans-serif;
  --w: 1240px;
  --gx: 28px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }

.wrap { max-width: var(--w); margin: 0 auto; padding: 0 var(--gx); }

h1, h2, h3, h4 { line-height: 1.08; letter-spacing: -0.015em; }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 700; letter-spacing: 0; }

p { max-width: 68ch; }
.lede { font-size: 1.15rem; color: var(--muted); }

/* body paragraphs are justified on tablets and computers; on narrow phone
   screens justification opens wide gaps between words, so it is left-aligned */
@media (min-width: 700px) {
  .prose p, .split p, .page-banner p, .hero .lede, .section-head p, .cta p {
    text-align: justify;
    hyphens: auto;
  }
}

/* short amber rule above section headings */
.rule { width: 56px; height: 5px; background: var(--amber); margin-bottom: 22px; }
.kicker { font-weight: 700; font-size: 1rem; color: var(--amber-d); margin-bottom: 10px; }
.on-dark .kicker { color: var(--amber); }

.btn {
  display: inline-block;
  font-weight: 700;
  font-size: 1rem;
  padding: 15px 30px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.btn:hover { text-decoration: none; }
.btn-amber { background: var(--amber); color: var(--dark); }
.btn-amber:hover { background: var(--amber-d); }
.btn-dark { background: var(--dark); color: #fff; }
.btn-dark:hover { background: #000; }
.btn-line { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-line:hover { background: var(--ink); color: #fff; }
.btn-line-w { border-color: rgba(255,255,255,.85); color: #fff; background: transparent; }
.btn-line-w:hover { background: #fff; color: var(--dark); }
.btn-sm { padding: 10px 18px; font-size: .92rem; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--amber); color: var(--dark); padding: 10px 16px; font-weight: 700;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ---------- media placeholders (when a photo is missing) ---------- */
.media { display: block; position: relative; overflow: hidden; background: var(--dark-2); }
.media.noimg::before {
  content: "";
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(135deg, rgba(242,167,27,.14) 0 12px, transparent 12px 34px),
    linear-gradient(160deg, #222c36 0%, #10151a 70%);
}
.media.noimg::after {
  content: "AZEP";
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 2rem; letter-spacing: .25em;
  color: rgba(255,255,255,.14);
}

/* ---------- header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .25s, box-shadow .25s;
  background: transparent;
}
.site-header.solid,
body.no-hero .site-header {
  background: var(--dark);
  box-shadow: 0 1px 0 var(--line-d);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 84px; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 13px; color: #fff; }
.brand img { height: 48px; width: auto; }
/* the company logo has dark lettering, so it sits on a white plate in the dark header */
.brand-logo { height: 52px !important; background: #fff; padding: 6px 12px; border-radius: 2px; }
@media (max-width: 560px) { .brand-logo { height: 42px !important; padding: 5px 9px; } }
.brand-name { font-weight: 800; font-size: 1.28rem; line-height: 1; }
.brand-name small { display: block; font-weight: 500; font-size: .72rem; letter-spacing: .14em; color: #b7c0c7; margin-top: 4px; }

.nav { display: flex; align-items: center; gap: 30px; }
.nav a { color: #e8ebed; font-weight: 600; font-size: 1.02rem; padding: 8px 0; position: relative; }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0;
  height: 3px; background: var(--amber); transition: right .2s;
}
.nav a:hover::after, .nav a[aria-current="page"]::after { right: 0; }
.nav .nav-cta {
  background: var(--amber); color: var(--dark); padding: 11px 20px; font-weight: 700;
}
.nav .nav-cta::after { display: none; }
.nav .nav-cta:hover { background: var(--amber-d); }

.nav-toggle {
  display: none; background: none; border: 2px solid rgba(255,255,255,.6);
  color: #fff; font-weight: 700; font-size: 1rem; padding: 9px 14px; cursor: pointer;
}

@media (max-width: 920px) {
  .nav-toggle { display: block; }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--dark); border-top: 1px solid var(--line-d); padding-bottom: 10px;
  }
  .nav.open { display: flex; }
  .nav a { padding: 15px var(--gx); border-bottom: 1px solid var(--line-d); }
  .nav a::after { display: none; }
  .nav a[aria-current="page"] { color: var(--amber); }
  .nav .nav-cta { margin: 12px var(--gx) 0; text-align: center; }
}

/* ---------- hero slider ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: flex-end;
  background: var(--dark); color: #fff; overflow: hidden;
}
.hero-slide {
  position: absolute; inset: 0; opacity: 0;
  transition: opacity 1.1s ease;
}
.hero-slide.on { opacity: 1; }
.hero-slide img, .hero-slide video {
  width: 100%; height: 100%; object-fit: cover;
  animation: heroZoom 9s ease-out forwards;
}
@keyframes heroZoom { from { transform: scale(1.06); } to { transform: scale(1); } }
.hero-shade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(16,21,26,.55) 0%, rgba(16,21,26,.15) 45%, rgba(16,21,26,.88) 100%);
}
.hero-inner { position: relative; width: 100%; padding-top: 170px; padding-bottom: 56px; }
.hero h1 {
  font-size: clamp(2.6rem, 6.4vw, 5.2rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .005em;
  max-width: 14ch;
  text-wrap: balance;
}
.hero h1 .accent { color: var(--amber); }
.hero .lede { color: #d6dce0; max-width: 56ch; margin-top: 20px; font-size: 1.18rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 34px; }

.hero-meta {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  margin-top: 56px; padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.28);
  flex-wrap: wrap;
}
.hero-caption { font-size: .98rem; color: #cfd6db; min-height: 1.4em; }
.hero-caption strong { color: #fff; font-weight: 700; }
.hero-caption .cat { color: var(--amber); font-weight: 700; }
.hero-dots { display: flex; gap: 10px; }
.hero-dots button {
  width: 34px; height: 5px; border: 0; background: rgba(255,255,255,.35); cursor: pointer;
  transition: background .2s;
}
.hero-dots button[aria-current="true"] { background: var(--amber); }

/* ---------- stats band ---------- */
.stats { background: var(--dark); color: #fff; padding: 72px 0 66px; }
.stats .wrap {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 36px;
}
.stat { border-left: 4px solid var(--amber); padding-left: 20px; }
.stat b {
  display: block; font-weight: 900; line-height: .95;
  font-size: clamp(3rem, 6vw, 5rem);
}
.stat b sup { font-size: 45%; color: var(--amber); top: -.75em; position: relative; display: inline; }
.stat b .count { display: inline; }
.stat > span { display: block; margin-top: 10px; color: #aeb8c0; font-size: .98rem; max-width: 24ch; }
@media (max-width: 860px) {
  .stats .wrap { grid-template-columns: 1fr 1fr; gap: 40px 24px; }
}

/* ---------- sections ---------- */
.section { padding: 100px 0; }
.section-white { background: var(--white); }
.section-dark { background: var(--dark); color: #e3e8eb; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-head { margin-bottom: 48px; display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.section-head p { margin-top: 14px; color: var(--muted); }
.section-dark .section-head p { color: #a9b3bb; }

/* intro split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split .media { aspect-ratio: 4 / 3; }
.split .media img { width: 100%; height: 100%; object-fit: cover; }
.split .media .badge {
  position: absolute; left: 0; bottom: 0;
  background: var(--amber); color: var(--dark);
  font-weight: 900; font-size: 1.6rem; line-height: 1.1;
  padding: 18px 24px;
}
.split .media .badge small { display: block; font-weight: 600; font-size: .78rem; }
.split p + p { margin-top: 15px; }
.split .btn { margin-top: 30px; }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; gap: 36px; } }

/* ---------- sectors (photo tiles) ---------- */
.sectors { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.sector {
  position: relative; aspect-ratio: 4 / 3.1; display: block; overflow: hidden;
  background: var(--dark-2); color: #fff;
}
.sector img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s ease;
}
.sector:hover img { transform: scale(1.05); }
.sector::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(16,21,26,0) 35%, rgba(16,21,26,.9) 100%);
}
.sector-body {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
  padding: 22px 24px;
  transform: translateY(14px); transition: transform .3s ease;
}
.sector:hover .sector-body { transform: translateY(0); }
.sector-body::before {
  content: ""; display: block; width: 40px; height: 4px; background: var(--amber); margin-bottom: 12px;
}
.sector-body h3 { font-size: 1.3rem; font-weight: 800; }
.sector-body p {
  font-size: .92rem; color: #cfd6db; margin-top: 8px;
  max-height: 0; opacity: 0; overflow: hidden; transition: max-height .3s ease, opacity .3s ease;
}
.sector:hover .sector-body p, .sector:focus-visible .sector-body p { max-height: 90px; opacity: 1; }
@media (max-width: 980px) { .sectors { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px)  { .sectors { grid-template-columns: 1fr; } .sector { aspect-ratio: 16/9; } .sector-body p { max-height: none; opacity: 1; } .sector-body { transform: none; } }

/* ---------- project cards ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.filters button, .filters a {
  font-family: var(--font); font-weight: 700; font-size: .95rem;
  padding: 9px 18px; border: 2px solid var(--line); background: transparent; color: var(--ink);
  cursor: pointer; transition: border-color .15s, background .15s, color .15s;
}
.filters .on { background: var(--dark); border-color: var(--dark); color: #fff; }
.filters button:hover, .filters a:hover { border-color: var(--dark); }

.proj-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.proj { position: relative; display: block; background: var(--white); border: 1px solid var(--line); }
.proj .media { aspect-ratio: 16 / 10; }
.proj .media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.proj:hover .media img { transform: scale(1.05); }
.proj-tag {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  background: var(--amber); color: var(--dark);
  font-weight: 800; font-size: .78rem; letter-spacing: .04em; text-transform: uppercase;
  padding: 5px 10px;
}
.proj-tag.ongoing { background: #fff; }
.proj-body { display: block; padding: 20px 22px 22px; }
.proj-body h3 { font-size: 1.1rem; line-height: 1.3; min-height: 2.6em; }
.proj-body .client { display: block; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); font-size: .9rem; color: var(--muted); }
.proj-body .client strong { color: var(--ink); font-weight: 600; }
.proj .go {
  position: absolute; right: 0; bottom: 0; width: 46px; height: 46px;
  background: var(--dark); color: var(--amber); font-size: 1.3rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .2s;
}
.proj:hover .go { opacity: 1; }
@media (max-width: 980px) { .proj-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px)  { .proj-grid { grid-template-columns: 1fr; } .proj-body h3 { min-height: 0; } }
.section-foot { margin-top: 48px; }

/* ---------- client marquee ---------- */
.clients-band { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 34px 0; overflow: hidden; }
.marquee { display: flex; width: max-content; animation: marquee 50s linear infinite; }
.clients-band:hover .marquee { animation-play-state: paused; }
.marquee ul { display: flex; list-style: none; align-items: center; }
.marquee li {
  white-space: nowrap; font-weight: 800; font-size: 1.25rem; color: #9aa3ab;
  padding: 0 34px; position: relative;
}
.marquee li::after {
  content: ""; position: absolute; right: -4px; top: 50%; transform: translateY(-50%);
  width: 8px; height: 8px; background: var(--amber);
}
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .marquee { animation: none; flex-wrap: wrap; width: auto; }
  .marquee ul { flex-wrap: wrap; row-gap: 12px; }
}

/* ---------- news cards ---------- */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.news-card { display: block; background: var(--white); border: 1px solid var(--line); }
.section-dark .news-card { background: var(--dark-2); border-color: var(--line-d); }
.news-card .media { aspect-ratio: 16 / 9; }
.news-card .media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.news-card:hover .media img { transform: scale(1.05); }
.news-body { display: block; padding: 20px 22px 24px; }
.news-date { display: block; font-size: .85rem; font-weight: 700; color: var(--amber-d); }
.section-dark .news-date { color: var(--amber); }
.news-body h3 { margin-top: 8px; font-size: 1.12rem; line-height: 1.35; color: inherit; }
.news-body p { margin-top: 10px; font-size: .95rem; color: var(--muted); }
.section-dark .news-body p { color: #a9b3bb; }
@media (max-width: 980px) { .news-grid { grid-template-columns: 1fr; } }

/* ---------- CTA band ---------- */
.cta {
  position: relative; background: var(--dark); color: #fff; overflow: hidden;
}
.cta::before {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(135deg, rgba(242,167,27,.07) 0 14px, transparent 14px 40px);
}
.cta .wrap {
  position: relative;
  display: flex; align-items: center; justify-content: space-between; gap: 34px; flex-wrap: wrap;
  padding-top: 76px; padding-bottom: 76px;
}
.cta h2 { max-width: 20ch; }
.cta p { color: #b7c0c7; margin-top: 10px; }
.cta-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------- page banner (inner pages) ---------- */
.page-banner {
  position: relative; background: var(--dark); color: #fff;
  padding: 190px 0 70px;
}
.page-banner .media-bg { position: absolute; inset: 0; }
.page-banner .media-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .38; }
.page-banner .wrap { position: relative; }
.page-banner h1 { font-size: clamp(2.3rem, 5vw, 4rem); font-weight: 900; text-transform: uppercase; }
.page-banner p { color: #c3cbd1; margin-top: 16px; max-width: 62ch; font-size: 1.1rem; }
.page-banner .rule { margin-bottom: 18px; }

/* ---------- project detail ---------- */
.detail-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 56px; align-items: start; }
.detail-facts { border: 1px solid var(--line); background: var(--white); padding: 8px 26px; }
.detail-facts dl div { padding: 16px 0; border-bottom: 1px solid var(--line); }
.detail-facts dl div:last-child { border-bottom: 0; }
.detail-facts dt { font-size: .85rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.detail-facts dd { font-weight: 600; margin-top: 3px; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 40px; }
.gallery .media { aspect-ratio: 4/3; cursor: zoom-in; }
.gallery .media img, .gallery .media video { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 880px) { .detail-grid { grid-template-columns: 1fr; gap: 30px; } .gallery { grid-template-columns: 1fr 1fr; } }

/* lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 300; background: rgba(10,13,16,.93);
  display: none; align-items: center; justify-content: center; padding: 4vmin;
}
.lightbox.open { display: flex; }
.lightbox img, .lightbox video { max-width: 92vw; max-height: 88vh; width: auto; height: auto; }
.lightbox .close {
  position: absolute; top: 18px; right: 22px; background: none; border: 0;
  color: #fff; font-size: 2.2rem; cursor: pointer; line-height: 1;
}

/* ---------- about / prose ---------- */
.prose { max-width: 76ch; }
.prose p + p { margin-top: 16px; }
.prose h2 { margin-bottom: 20px; }
.signoff { margin-top: 24px; font-weight: 800; }
.signoff small { display: block; font-weight: 500; color: var(--muted); }
.mv-list { list-style: none; margin-top: 14px; }
.mv-list li { padding: 15px 0 15px 34px; border-bottom: 1px solid var(--line); position: relative; max-width: 76ch; }
.mv-list li::before {
  content: ""; position: absolute; left: 0; top: 24px; width: 18px; height: 5px; background: var(--amber);
}

/* timeline strip */
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 4px solid var(--amber); margin-top: 44px; }
.tl { padding: 22px 26px 0 0; }
.tl b { font-weight: 900; font-size: 1.9rem; display: block; }
.tl span { color: var(--muted); font-size: .95rem; display: block; margin-top: 6px; max-width: 26ch; }
@media (max-width: 860px) { .timeline { grid-template-columns: 1fr 1fr; row-gap: 26px; } }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; }
.contact-rows { border-top: 4px solid var(--amber); }
.contact-rows > div { display: grid; grid-template-columns: 140px 1fr; gap: 18px; padding: 19px 0; border-bottom: 1px solid var(--line); }
.contact-rows dt { font-weight: 800; }
.contact-rows dd span { display: block; }
.contact-rows dd a:hover { color: var(--amber-d); }
.map-frame { border: 1px solid var(--line); background: var(--white); padding: 10px; }
.map-frame iframe { width: 100%; height: 400px; border: 0; display: block; }
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; gap: 34px; } }
@media (max-width: 560px) { .contact-rows > div { grid-template-columns: 1fr; gap: 4px; } }

/* ---------- news article ---------- */
.article { max-width: 820px; }
.article .media { margin: 30px 0; }
.article .news-date { font-size: .95rem; }
.article p + p { margin-top: 16px; }

/* ---------- footer ---------- */
.site-footer { background: var(--dark); color: #aeb8c0; font-size: .97rem; border-top: 5px solid var(--amber); }
.footer-top {
  display: grid; grid-template-columns: 1.6fr 1fr 1.15fr 1.45fr; gap: 48px;
  padding-top: 66px; padding-bottom: 54px;
}
.footer-logo { display: inline-block; background: #fff; padding: 8px 14px; border-radius: 2px; margin-bottom: 20px; }
.footer-logo img { height: 52px; width: auto; display: block; }
.footer-brand { font-weight: 900; font-size: 1.45rem; color: #fff; margin-bottom: 14px; }
.footer-brand i { font-style: normal; color: var(--amber); }
.footer-about p { max-width: 42ch; }
.footer-follow { margin-top: 24px; margin-bottom: 10px; color: #fff; font-weight: 700; font-size: .92rem; }
.site-footer h4 {
  color: #fff; font-size: 1.02rem; font-weight: 800; margin-bottom: 18px;
  padding-bottom: 12px; position: relative;
}
.site-footer h4::after { content: ""; position: absolute; left: 0; bottom: 0; width: 32px; height: 3px; background: var(--amber); }
.site-footer a { color: #d5dce1; }
.site-footer a:hover { color: var(--amber); }
.footer-links { list-style: none; }
.footer-links li { padding: 5px 0; }
.footer-links a { display: inline-block; transition: transform .15s ease, color .15s ease; }
.footer-links a:hover { transform: translateX(3px); }

/* contact rows with icons */
.contact-list { list-style: none; }
.contact-list li { display: flex; gap: 12px; align-items: flex-start; padding: 7px 0; line-height: 1.5; }
.contact-list .ico { flex: 0 0 auto; margin-top: 2px; color: var(--amber); }
.cl-label { display: inline-block; min-width: 34px; color: #8a97a1; font-size: .86rem; font-weight: 600; margin-right: 4px; }

/* round social icons */
.social { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.social a {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-d);
  display: flex; align-items: center; justify-content: center; color: #d5dce1;
  transition: background .15s, color .15s, border-color .15s;
}
.social a:hover { background: var(--amber); border-color: var(--amber); color: var(--dark); }
.social .ico { width: 18px; height: 18px; }

.footer-bottom-band { background: #0b0f13; }
.footer-bottom {
  padding-top: 20px; padding-bottom: 20px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px;
  font-size: .87rem; color: #7d8891;
}
.to-top { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: #d5dce1 !important; }
.to-top .ico { width: 16px; height: 16px; }
.to-top:hover { color: var(--amber) !important; }

@media (max-width: 1100px) { .footer-top { grid-template-columns: 1fr 1fr; gap: 40px 48px; } }
@media (max-width: 620px)  { .footer-top { grid-template-columns: 1fr; gap: 34px; } }

.mt-1 { margin-top: 10px; } .mt-2 { margin-top: 22px; } .mt-3 { margin-top: 36px; }

/* ============================================================
   News & Media — editorial (newspaper-style) layout
   ============================================================ */
.news-banner { padding-bottom: 56px; }
.news-page { padding-top: 56px; }
.news-filters { margin-bottom: 30px; }

.news-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  font-size: .86rem; color: var(--muted); margin-bottom: 10px; max-width: none;
}
.nm-cat { color: var(--amber-d); font-weight: 800; }
.nm-sep { width: 4px; height: 4px; background: var(--line); display: inline-block; }
.news-source { font-size: .86rem; color: var(--muted); }
.news-source strong { color: var(--ink); font-weight: 700; }
.news-source .ext { color: var(--amber-d); font-weight: 800; }

/* lead story: big photo + headline, ruled top and bottom like a front page */
.news-lead {
  display: grid; grid-template-columns: 7fr 5fr; gap: 40px; align-items: start;
  border-top: 4px solid var(--ink); border-bottom: 1px solid var(--line);
  padding: 28px 0 36px;
}
.news-lead-media { display: block; aspect-ratio: 16 / 10; }
.news-lead-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.news-lead:hover .news-lead-media img { transform: scale(1.03); }
.news-lead h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); line-height: 1.12; }
.news-lead h2 a:hover, .news-item h3 a:hover { color: var(--amber-d); }
.news-lead .news-summary { margin-top: 16px; font-size: 1.06rem; color: #3c454d; }
.news-lead-foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px;
  margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line);
}

/* further stories: three newspaper columns separated by hairline rules */
.news-subhead {
  font-size: 1.1rem; font-weight: 800; letter-spacing: 0;
  margin: 44px 0 0; padding-bottom: 12px; border-bottom: 2px solid var(--ink);
}
.news-columns { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0 -24px; }
.news-item { padding: 24px 24px 28px; border-bottom: 1px solid var(--line); border-left: 1px solid var(--line); }
.news-item:nth-child(3n+1) { border-left: 0; }
.news-item-media { display: block; aspect-ratio: 16 / 10; margin-bottom: 16px; }
.news-item-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.news-item:hover .news-item-media img { transform: scale(1.04); }
.news-item h3 { font-size: 1.18rem; line-height: 1.3; }
.news-item .news-summary { margin-top: 10px; font-size: .95rem; color: var(--muted); }
.news-item .news-source { margin-top: 12px; }

@media (max-width: 980px) {
  .news-lead { grid-template-columns: 1fr; gap: 22px; }
  .news-columns { grid-template-columns: 1fr 1fr; margin: 0 -20px; }
  .news-item { padding: 22px 20px 26px; border-left: 1px solid var(--line); }
  .news-item:nth-child(3n+1) { border-left: 1px solid var(--line); }
  .news-item:nth-child(2n+1) { border-left: 0; }
}
@media (max-width: 640px) {
  .news-columns { grid-template-columns: 1fr; margin: 0; }
  .news-item, .news-item:nth-child(n) { border-left: 0; padding: 22px 0 26px; }
}

/* media-enquiries strip */
.media-contact { background: var(--white); border-top: 1px solid var(--line); }
.media-contact .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap;
  padding-top: 56px; padding-bottom: 56px;
}
.media-contact h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.media-contact p { color: var(--muted); margin-top: 8px; }

.news-card-source { margin-top: 10px !important; font-size: .85rem !important; font-weight: 700; color: var(--amber) !important; }

/* videos in News & Media */
.media.is-video { background: #000; }
.media.is-video video { width: 100%; height: 100%; object-fit: contain; background: #000; display: block; }
.article-video { aspect-ratio: 16 / 9; }
.media.has-play::after {
  content: "\25B6"; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 58px; height: 58px; border-radius: 50%; background: rgba(16,21,26,.72); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 1.3rem; padding-left: 4px;
  pointer-events: none;
}

.hero-caption a { color: inherit; }
.hero-caption a:hover strong { color: var(--amber); }

/* photo slider for posts with several photos */
.photo-carousel { position: relative; overflow: hidden; background: var(--dark-2); }
.photo-carousel .pc-track {
  display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory;
  scroll-behavior: smooth; scrollbar-width: none;
}
.photo-carousel .pc-track::-webkit-scrollbar { display: none; }
.photo-carousel .pc-track img {
  flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; scroll-snap-align: start;
}
.pc-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 42px; height: 42px; border: 0; border-radius: 50%;
  background: rgba(16,21,26,.68); color: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center; padding-bottom: 3px;
}
.pc-btn:hover { background: var(--amber); color: var(--dark); }
.pc-prev { left: 10px; } .pc-next { right: 10px; }
.pc-count {
  position: absolute; right: 10px; bottom: 10px; background: rgba(16,21,26,.72); color: #fff;
  font-size: .8rem; font-weight: 700; padding: 3px 9px;
}
.photo-badge {
  position: absolute; right: 10px; bottom: 10px; background: rgba(16,21,26,.75); color: #fff;
  font-size: .78rem; font-weight: 700; padding: 3px 9px;
}
@media (prefers-reduced-motion: reduce) { .photo-carousel .pc-track { scroll-behavior: auto; } }

/* contact page icons */
.contact-rows dt { display: flex; align-items: center; gap: 10px; }
.contact-rows dt .ico { color: var(--amber-d); }
.contact-rows dt.no-ico { padding-left: 30px; }
.contact-social a { border-color: var(--line); color: var(--ink); }
.contact-social a:hover { color: var(--dark); }

/* ============================================================
   ISO certification badges
   ============================================================ */
.iso-badge {
  display: flex; align-items: center; gap: 14px;
  background: var(--white); border: 1px solid var(--line); border-left: 5px solid var(--amber);
  padding: 16px 20px; min-width: 0;
}
.iso-ico {
  flex: 0 0 auto; width: 48px; height: 48px; border-radius: 50%;
  background: var(--dark); color: var(--amber);
  display: flex; align-items: center; justify-content: center;
}
.iso-ico .ico { width: 26px; height: 26px; }
.iso-text { display: flex; flex-direction: column; line-height: 1.15; }
.iso-std { font-weight: 900; font-size: 1.35rem; color: var(--ink); white-space: nowrap; }
.iso-std small { font-size: .7em; font-weight: 700; color: var(--muted); }
.iso-name { font-size: .9rem; font-weight: 600; color: var(--muted); margin-top: 3px; }
.iso-badge-lg { border: 0; border-left: 5px solid var(--amber); padding: 0 0 0 16px; background: transparent; }
.iso-badge-lg .iso-ico { width: 56px; height: 56px; }
.iso-badge-lg .iso-std { font-size: 1.6rem; }

/* homepage band */
.cert-band { background: var(--paper); padding: 70px 0; border-bottom: 1px solid var(--line); }
.cert-band .wrap { display: grid; grid-template-columns: 1fr 1.25fr; gap: 50px; align-items: center; }
.cert-band h2 { font-size: clamp(1.6rem, 2.8vw, 2.3rem); }
.cert-band-text p:not(.kicker) { color: var(--muted); margin-top: 12px; }
.cert-band .btn { margin-top: 22px; }
.cert-badges { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 1100px) { .cert-badges { grid-template-columns: repeat(3, 1fr); } .cert-badges .iso-badge { flex-direction: column; align-items: flex-start; } }
@media (max-width: 880px) { .cert-band .wrap { grid-template-columns: 1fr; gap: 30px; } }

/* about page */
.cert-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.cert-card { background: var(--white); border: 1px solid var(--line); padding: 26px 26px 22px; }
.cert-card h3 { margin-top: 18px; font-size: 1.12rem; line-height: 1.3; min-height: 2.6em; }
.cert-card dl { margin-top: 14px; border-top: 1px solid var(--line); }
.cert-card dl div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: .93rem; }
.cert-card dt { color: var(--muted); }
.cert-card dd { font-weight: 700; }
.cert-facts { margin-top: 28px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 40px; border-top: 4px solid var(--amber); }
.cert-facts div { padding: 14px 0; border-bottom: 1px solid var(--line); }
.cert-facts dt { font-size: .85rem; font-weight: 700; color: var(--muted); }
.cert-facts dd { margin-top: 3px; font-weight: 600; }
@media (max-width: 980px) { .cert-cards { grid-template-columns: 1fr; } .cert-card h3 { min-height: 0; } }
@media (max-width: 640px) { .cert-facts { grid-template-columns: 1fr; } }

/* footer line */
.footer-iso { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; font-weight: 700; font-size: .9rem; color: #fff !important; }
.footer-iso .ico { color: var(--amber); width: 18px; height: 18px; }
.footer-iso:hover span { color: var(--amber); }

/* in-page links (e.g. about.php#certifications) stop below the fixed header */
section[id] { scroll-margin-top: 96px; }

/* ---------- Projects: facts line on cards ---------- */
.proj-facts { display: block; margin-top: 8px; font-size: .84rem; color: var(--muted); }
.proj-facts i { font-style: normal; margin: 0 7px; color: var(--amber-d); }

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

/* ---------- Projects: complete project record ---------- */
.record-open { margin-top: 48px; padding-top: 36px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.record-open p { color: var(--muted); font-size: .95rem; }
.record-open .btn[aria-expanded="true"] { background: var(--amber); color: var(--dark); }

.record { margin-top: 34px; }
.record-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 18px 30px; margin-bottom: 20px; }
.record-head h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.15; }
.record-note { margin-top: 8px; color: var(--muted); font-size: .92rem; max-width: 620px; }
.record-search input {
  width: min(360px, 100%); padding: 12px 16px; font: inherit; font-size: .95rem;
  border: 1px solid var(--line); border-radius: 2px; background: var(--white); color: var(--ink);
}
.record-search input:focus { outline: 2px solid var(--amber); outline-offset: 1px; border-color: var(--amber); }

.record-scroll { border: 1px solid var(--line); background: var(--white); }
.record-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.record-table thead th {
  position: sticky; top: 0; z-index: 1;
  background: var(--dark); color: #fff; text-align: left; font-weight: 700; font-size: .78rem;
  letter-spacing: .06em; text-transform: uppercase; padding: 13px 14px; white-space: nowrap;
}
.record-table thead th button {
  font: inherit; color: inherit; letter-spacing: inherit; text-transform: inherit;
  background: none; border: 0; cursor: pointer; padding: 0; display: inline-flex; align-items: center; gap: 6px;
}
.record-table thead th button::after { content: "↕"; opacity: .45; font-size: .9em; }
.record-table thead th button.sorted-asc::after { content: "↑"; opacity: 1; color: var(--amber); }
.record-table thead th button.sorted-desc::after { content: "↓"; opacity: 1; color: var(--amber); }
.record-table tbody td { padding: 14px; border-top: 1px solid var(--line); vertical-align: top; line-height: 1.45; }
.record-table tbody tr:nth-child(even) td { background: #fafaf8; }
.record-table tbody tr:hover td { background: #fff7e6; }
.record-table thead th.rn { color: #fff; }
.record-table tbody .rn { color: var(--muted); }
.record-table .rn { width: 1%; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.record-table td:nth-child(2) { min-width: 280px; }
.record-table td:nth-child(2) strong { display: block; font-weight: 600; color: var(--ink); }
.record-table td:nth-child(3), .record-table td:nth-child(4) { color: var(--muted); min-width: 150px; }
.record-table td:nth-child(5), .record-table td:nth-child(6) { white-space: nowrap; }
.record-table td small { color: var(--muted); font-size: .78rem; }
.record-table .num { text-align: right; white-space: nowrap; }
.record-table thead .num button { flex-direction: row-reverse; }
.record-sector { display: block; margin-top: 4px; font-size: .78rem; color: var(--muted); }
.record-ongoing { font-style: normal; font-weight: 700; color: var(--dark); background: var(--amber); padding: 1px 7px; margin-left: 6px; font-size: .72rem; letter-spacing: .03em; }
.record-table .na { color: #a3a9ae; }
.record-empty { padding: 26px; text-align: center; color: var(--muted); border: 1px solid var(--line); border-top: 0; background: var(--white); }
.record-foot { margin-top: 12px; font-size: .85rem; color: var(--muted); }

@media (min-width: 901px) {
  .record-scroll { max-height: 78vh; overflow: auto; }
}
@media (max-width: 900px) {
  /* each project becomes a compact card */
  .record-scroll { border: 0; background: none; }
  .record-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
  .record-table, .record-table tbody, .record-table tr, .record-table td { display: block; width: 100%; }
  .record-table tbody tr { background: var(--white); border: 1px solid var(--line); border-left: 3px solid var(--amber); margin-bottom: 12px; padding: 14px 16px; }
  .record-table tbody tr:nth-child(even) td, .record-table tbody tr:hover td { background: none; }
  .record-table tbody td { border: 0; padding: 3px 0; min-width: 0 !important; display: flex; gap: 12px; text-align: left; white-space: normal; }
  .record-table tbody td::before { content: attr(data-label); flex: 0 0 118px; font-size: .74rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); padding-top: 2px; }
  .record-table tbody td.rn { display: block; width: auto; text-align: left; font-size: .74rem; font-weight: 700; color: var(--amber-d); padding: 0 0 2px; }
  .record-table tbody td.rn::before { display: inline; content: "No. "; flex: none; font-size: inherit; color: inherit; padding: 0; letter-spacing: 0; text-transform: none; }
  .record-table tbody td:nth-child(2) { display: block; padding-bottom: 8px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
  .record-table tbody td:nth-child(2)::before { display: none; }
  .record-table td.num { text-align: left; font-weight: 600; }
  .record-empty { border-top: 1px solid var(--line); }
}
