/* =========================================================
   AEST — Appropriate Energy Saving Technologies
   Design system
   Palette extracted from the AEST logo artwork:
     orange  #FC6C24   (primary)
     amber   #FCB424
     yellow  #FCCC0C
     green   #0C9C54   #3CB454   #6CB43C
   Typeface: Montserrat
   ========================================================= */

:root {
  /* ---- brand (from logo) ---- */
  --orange:      #FC6C24;
  --orange-600:  #E2541A;
  --orange-700:  #C4460F;
  --orange-200:  #FFD3BC;
  --orange-100:  #FFF1E8;
  --orange-050:  #FFF8F4;

  --amber:       #FCB424;
  --amber-100:   #FFF5E0;
  --yellow:      #FCCC0C;

  --green:       #0C9C54;
  --green-mid:   #3CB454;
  --green-lime:  #6CB43C;
  --green-050:   #F1FAF4;

  /* ---- neutrals (from the reference design) ---- */
  --ink:         #1B2430;
  --ink-2:       #2B3745;
  --ink-soft:    #58657A;
  --ink-mute:    #8895A6;

  --paper:       #FFFFFF;
  --cream:       #FAF8F5;
  --line:        #ECE6DF;
  --line-cool:   #E5EBF1;

  /* ---- shape ---- */
  --r-s: 8px;
  --r:   14px;
  --r-l: 22px;
  --r-pill: 999px;

  --sh-s: 0 2px 10px rgba(27, 36, 48, .05);
  --sh:   0 12px 34px rgba(27, 36, 48, .09);
  --sh-l: 0 26px 60px rgba(27, 36, 48, .16);

  --container: 1180px;
  --header-h: 78px;
  --topbar-h: 42px;

  --font: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

/* ---------------- reset ---------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + var(--topbar-h) + 8px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 15.5px;
  line-height: 1.72;
  font-weight: 400;
  color: var(--ink-soft);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
p { margin: 0 0 1.05em; }
button { font: inherit; cursor: pointer; }
svg { fill: currentColor; width: 1em; height: 1em; flex: none; }

.container { width: min(100% - 2.6rem, var(--container)); margin-inline: auto; }
/* the header carries a lot of items, so it gets a wider track than the body grid */
.topbar .container,
.header .container { width: min(100% - 2.6rem, 1320px); }
.narrow { max-width: 760px; }
.center { text-align: center; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--orange); color: #fff; padding: .7rem 1.2rem; border-radius: 0 0 var(--r-s) 0;
}
.skip-link:focus { left: 0; }

/* ---------------- typography ---------------- */
h1, h2, h3, h4, h5 { margin: 0 0 .5em; color: var(--ink); font-weight: 700; line-height: 1.22; letter-spacing: -.01em; }

.h1 { font-size: clamp(1.9rem, 3.6vw, 2.85rem); font-weight: 800; }
.h2 { font-size: clamp(1.5rem, 2.5vw, 2.05rem); font-weight: 800; }
h3 { font-size: 1.09rem; font-weight: 700; }
h4 { font-size: 1rem; font-weight: 700; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--orange); margin-bottom: .85rem;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--orange); border-radius: 2px; }
.section__head .eyebrow { justify-content: center; }

.lead { font-size: 1rem; color: var(--ink-soft); }
.date { font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--orange); margin-bottom: .5rem; }
.role { font-size: .78rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--orange); margin: 0; }

/* ---------------- buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .78rem 1.6rem;
  border: 2px solid transparent; border-radius: var(--r-pill);
  font-family: var(--font); font-size: .875rem; font-weight: 700; letter-spacing: .02em;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn--lg { padding: .95rem 2rem; font-size: .92rem; }
.btn--block { width: 100%; }

.btn--primary { background: var(--orange); color: #fff; box-shadow: 0 10px 24px rgba(252, 108, 36, .3); }
.btn--primary:hover { background: var(--orange-600); transform: translateY(-2px); box-shadow: 0 16px 32px rgba(226, 84, 26, .36); }

.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: var(--ink-2); transform: translateY(-2px); }

.btn--outline { background: transparent; color: var(--ink); border-color: var(--line-cool); }
.btn--outline:hover { border-color: var(--orange); color: var(--orange); transform: translateY(-2px); }

.btn--ghost { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.55); backdrop-filter: blur(4px); }
.btn--ghost:hover { background: #fff; color: var(--ink); transform: translateY(-2px); }

.btn--ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn--ghost-light:hover { background: #fff; color: var(--orange-700); transform: translateY(-2px); }

.link-arrow { display: inline-flex; align-items: center; gap: .4rem; color: var(--orange); font-weight: 700; font-size: .875rem; }
.link-arrow svg { width: 1.05em; height: 1.05em; transition: transform .2s ease; }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------------- topbar ---------------- */
.topbar { background: var(--ink); color: #A9B4C2; font-size: .78rem; }
.topbar__inner { display: flex; align-items: center; gap: 1.4rem; min-height: var(--topbar-h); }
.topbar__item { display: inline-flex; align-items: center; gap: .45rem; white-space: nowrap; }
.topbar__item svg { width: 14px; height: 14px; color: var(--orange); flex: none; }
.topbar__right { margin-left: auto; display: inline-flex; align-items: center; gap: 1.4rem; }
.topbar a:hover { color: #fff; }

/* ---------------- header ---------------- */
.header {
  position: sticky; top: 0; z-index: 90;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s ease;
}
.header.is-scrolled { box-shadow: var(--sh-s); }
.header__inner { display: flex; align-items: center; gap: 1.4rem; min-height: var(--header-h); }
.brand img { height: 44px; width: auto; }

.nav { display: flex; align-items: center; gap: .1rem; margin-left: auto; }
.nav__link {
  position: relative; padding: .55rem .8rem; border-radius: var(--r-pill);
  font-size: .875rem; font-weight: 600; color: var(--ink-2);
  white-space: nowrap;
  transition: color .2s ease, background .2s ease;
}
.nav__link:hover { color: var(--orange); background: var(--orange-050); }
.nav__link.is-active { color: var(--orange); }
.nav__link.is-active::after {
  content: ""; position: absolute; left: 50%; bottom: 1px; transform: translateX(-50%);
  width: 16px; height: 2.5px; border-radius: 2px; background: var(--orange);
}
.nav__cta { margin-left: .7rem; padding: .62rem 1.35rem; font-size: .84rem; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; padding: 8px; }
.nav-toggle span { width: 24px; height: 2.5px; border-radius: 3px; background: var(--ink); transition: transform .25s ease, opacity .25s ease; }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------------- page hero + breadcrumbs ---------------- */
.page-hero { position: relative; overflow: hidden; isolation: isolate; }
.page-hero__bg {
  position: absolute; inset: 0; z-index: -2;
  background-size: cover; background-position: center;
  transform: scale(1.04);
}
.page-hero__overlay {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(105deg, rgba(20, 27, 36, .93) 0%, rgba(27, 36, 48, .84) 45%, rgba(196, 70, 15, .55) 100%);
}
.page-hero__inner { padding: clamp(3rem, 6vw, 4.6rem) 0 clamp(2.6rem, 5vw, 3.6rem); }
.page-hero__title { color: #fff; font-size: clamp(1.75rem, 3.3vw, 2.6rem); font-weight: 800; margin: 0 0 .55rem; }
.page-hero__lede { color: #C6D0DC; max-width: 46rem; margin: 0; font-size: .98rem; }

.breadcrumbs { margin-bottom: 1rem; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; font-size: .78rem; font-weight: 600; }
.breadcrumbs li { color: #97A5B6; display: inline-flex; align-items: center; gap: .5rem; }
.breadcrumbs li + li::before { content: "/"; color: rgba(255,255,255,.35); }
.breadcrumbs a { color: var(--amber); }
.breadcrumbs a:hover { color: #fff; }
.breadcrumbs li[aria-current] { color: #fff; }

/* ---------------- home hero ---------------- */
.hero { position: relative; overflow: hidden; isolation: isolate; color: #fff; }
.hero__slides { position: absolute; inset: 0; z-index: -2; }
.hero__slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1.1s ease, transform 8s ease;
  transform: scale(1.05);
}
.hero__slide.is-active { opacity: 1; transform: scale(1); }
.hero__overlay {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgba(17, 23, 31, .94) 0%, rgba(27, 36, 48, .8) 48%, rgba(196, 70, 15, .42) 100%);
}
.hero__inner { padding: clamp(3.6rem, 7vw, 6.2rem) 0 clamp(3rem, 6vw, 5rem); max-width: 46rem; }
.hero__eyebrow {
  display: inline-block; margin-bottom: 1rem;
  background: rgba(252, 108, 36, .16); border: 1px solid rgba(252, 180, 36, .45);
  color: var(--amber); padding: .4rem 1rem; border-radius: var(--r-pill);
  font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
}
.hero__title { color: #fff; font-size: clamp(1.95rem, 4.4vw, 3.15rem); font-weight: 800; line-height: 1.14; margin-bottom: .8rem; }
.hero__sub { color: #C9D3DE; font-size: 1rem; max-width: 40rem; margin-bottom: 1.8rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; }

.hero__badges {
  display: flex; flex-wrap: wrap; gap: 2.4rem;
  margin-top: clamp(2.2rem, 4vw, 3.2rem); padding-top: 1.6rem;
  border-top: 1px solid rgba(255,255,255,.16); max-width: 46rem;
}
.hero__badge strong { display: block; font-size: 1.7rem; font-weight: 800; color: var(--amber); line-height: 1.1; }
.hero__badge span { font-size: .78rem; color: #A9B6C4; }

.hero__nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.35); color: #fff;
  backdrop-filter: blur(4px);
  transition: background .2s ease, color .2s ease;
}
.hero__nav svg { width: 20px; height: 20px; }
.hero__nav:hover { background: var(--orange); border-color: var(--orange); }
.hero__nav--prev { left: 18px; }
.hero__nav--next { right: 18px; }

.hero__dots { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 3; display: flex; gap: .5rem; }
.hero__dots button {
  width: 9px; height: 9px; padding: 0; border-radius: 50%; border: 0;
  background: rgba(255,255,255,.4); transition: background .2s ease, width .2s ease;
}
.hero__dots button.is-active { background: var(--orange); width: 26px; border-radius: 5px; }

/* ---------------- quick contact strip ---------------- */
.quick { background: var(--paper); }
.quick__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border-bottom: 1px solid var(--line); }
.quick__card {
  display: flex; align-items: center; gap: 1rem;
  background: var(--paper); padding: 1.6rem 1.5rem;
  transition: background .2s ease;
}
.quick__card:hover { background: var(--orange-050); }
.quick__icon {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: var(--r-s);
  background: var(--orange); color: #fff; flex: none;
}
.quick__icon svg { width: 20px; height: 20px; }
.quick__text { display: flex; flex-direction: column; line-height: 1.4; min-width: 0; }
.quick__text small { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--orange); }
.quick__text strong { font-size: .88rem; color: var(--ink); font-weight: 600; overflow-wrap: anywhere; }

/* ---------------- section shell ---------------- */
.section { padding: clamp(3.2rem, 6.5vw, 5.2rem) 0; }
.section--tint { background: var(--cream); }
.section__head { max-width: 44rem; margin: 0 auto clamp(2rem, 4vw, 3rem); text-align: center; }
.section__intro { color: var(--ink-soft); margin: 0; }
.section__foot { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; margin-top: clamp(2rem, 4vw, 2.8rem); }
.section__foot--center { justify-content: center; }

.grid { display: grid; gap: 1.5rem; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* ---------------- split (image + copy) ---------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.8rem, 4vw, 3.4rem); align-items: center; }
.split__media { position: relative; border-radius: var(--r-l); overflow: hidden; box-shadow: var(--sh); }
.split__media img { width: 100%; aspect-ratio: 4/3.1; object-fit: cover; }
.split__badge {
  position: absolute; left: 1.1rem; bottom: 1.1rem;
  background: var(--orange); color: #fff; padding: .85rem 1.15rem; border-radius: var(--r);
  display: flex; flex-direction: column; box-shadow: var(--sh);
}
.split__badge strong { font-size: 1.45rem; font-weight: 800; line-height: 1; }
.split__badge span { font-size: .72rem; color: rgba(255,255,255,.85); }
.split__copy .btn { margin-top: .6rem; }

.pillars { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1.5rem 0; }
.pillar { background: var(--orange-050); border: 1px solid var(--line); border-radius: var(--r); padding: 1.1rem 1.2rem; }
.pillar h4 { margin-bottom: .35rem; color: var(--ink); font-size: .9rem; text-transform: uppercase; letter-spacing: .06em; }
.pillar p { margin: 0; font-size: .88rem; }

/* ---------------- cards ---------------- */
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-l);
  overflow: hidden; box-shadow: var(--sh-s);
  display: flex; flex-direction: column;
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--sh); border-color: var(--orange-200); }
.card__img { height: 190px; overflow: hidden; background: var(--cream); }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.card:hover .card__img img { transform: scale(1.06); }
.card__body { padding: 1.5rem 1.45rem 1.65rem; flex: 1; display: flex; flex-direction: column; }
.card__body h3 { margin-bottom: .5rem; }
.card__body p { font-size: .9rem; margin-bottom: 0; }
.card__body .link-arrow { margin-top: auto; padding-top: 1rem; }
.card__icon {
  display: inline-grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--orange-100);
  color: var(--orange);
  margin-bottom: 1rem;
}
.card__icon svg { width: 28px; height: 28px; fill: currentColor; }
.card--featured .card__icon { background: rgba(255, 255, 255, .22); color: #fff; }

/* generic inline icon */
.icon { width: 1em; height: 1em; fill: currentColor; display: inline-block; vertical-align: middle; }

.num {
  display: inline-block; font-size: 1.5rem; font-weight: 800; line-height: 1;
  color: var(--orange); opacity: .35; margin-bottom: .55rem;
}

/* featured (orange) card — mirrors the reference design */
.card--featured { background: var(--orange); border-color: var(--orange); }
.card--featured .card__body h3,
.card--featured .card__body p,
.card--featured .num { color: #fff; }
.card--featured .num { opacity: .6; }
.card--featured .card__body p { color: rgba(255,255,255,.92); }
.card--featured .link-arrow { color: #fff; }
.card--featured:hover { border-color: var(--orange-600); }
.card--featured .ticks li { color: rgba(255,255,255,.95); }
.card--featured .ticks li::before { background: #fff; }

.card--plain { box-shadow: none; }
.card--award .card__logo { height: 96px; display: grid; place-items: center; padding: 1.4rem 1.4rem 0; }
.card--award .card__logo img { max-height: 82px; max-width: 100%; object-fit: contain; }
.card--award .card__body { padding-top: 1.1rem; }

.card--team .card__img { aspect-ratio: 1/1; height: auto; }
.card--team .card__img img { object-position: top center; }
.card--team .card__body { text-align: center; padding-bottom: 1.4rem; }

.card--impact .card__body { padding: 1.8rem 1.5rem; }

.card--news .card__body h3 { font-size: 1rem; }

/* ---------------- ticks ---------------- */
.ticks { display: flex; flex-direction: column; gap: .6rem; margin-top: .9rem; }
.ticks li { position: relative; padding-left: 1.45rem; font-size: .875rem; line-height: 1.6; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .55em;
  width: 7px; height: 7px; border-radius: 50%; background: var(--orange);
}
.ticks--tight { gap: .45rem; margin-top: .8rem; }

/* ---------------- stats ---------------- */
.stats { background: var(--ink); color: #fff; padding: clamp(2.4rem, 5vw, 3.6rem) 0; position: relative; overflow: hidden; }
.stats::before {
  content: ""; position: absolute; right: -90px; top: -90px; width: 340px; height: 340px;
  background: radial-gradient(circle, rgba(252, 108, 36, .3), transparent 70%);
}
.stats__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem 2rem; position: relative; }
.stat { text-align: center; padding: .5rem; }
.stat strong { display: block; font-size: clamp(1.6rem, 3.4vw, 2.4rem); font-weight: 800; color: var(--orange); line-height: 1.1; }
.stat span { font-size: .82rem; color: #A6B3C1; }

/* ---------------- rows (alternating) ---------------- */
.rows { display: flex; flex-direction: column; gap: clamp(2.2rem, 5vw, 3.6rem); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.6rem, 4vw, 3rem); align-items: center; }
.row--reverse .row__media { order: 2; }
.row__media { border-radius: var(--r-l); overflow: hidden; box-shadow: var(--sh); background: var(--cream); }
.row__media > img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.row__index {
  display: inline-block; font-size: .74rem; font-weight: 700; letter-spacing: .14em;
  color: var(--orange); margin-bottom: .6rem;
}
.row__body h3 { font-size: clamp(1.25rem, 2.2vw, 1.6rem); font-weight: 800; margin-bottom: .6rem; }
.row__body .btn { margin-top: 1.1rem; }

/* gallery */
.gallery__main { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.gallery__thumbs { display: flex; gap: .55rem; padding: .8rem; background: var(--paper); }
.gallery__thumb {
  width: 58px; height: 58px; padding: 0; border: 2px solid var(--line); border-radius: var(--r-s);
  overflow: hidden; background: none; transition: border-color .2s ease, transform .2s ease;
}
.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumb:hover { transform: translateY(-2px); }
.gallery__thumb.is-active { border-color: var(--orange); }

/* ---------------- values ---------------- */
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.values-grid--tight { margin-top: 2.4rem; }
.value {
  display: flex; align-items: center; gap: .9rem;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r);
  padding: 1.1rem 1.2rem; box-shadow: var(--sh-s);
  transition: transform .25s ease, border-color .25s ease;
}
.value:hover { transform: translateY(-3px); border-color: var(--orange); }
.value__num { font-size: 1.1rem; font-weight: 800; color: var(--orange); opacity: .5; }
.value__label { font-weight: 600; color: var(--ink); font-size: .92rem; }

/* ---------------- steps ---------------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.step { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-l); padding: 1.6rem 1.4rem; position: relative; }
.step__num {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  background: var(--orange-100); color: var(--orange); font-weight: 800; font-size: .82rem;
  margin-bottom: .9rem;
}
.step h4 { margin-bottom: .35rem; }
.step p { font-size: .86rem; margin: 0; }

/* ---------------- people ---------------- */
.people { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.6rem; }
.person {
  display: grid; grid-template-columns: 190px 1fr; gap: 1.3rem;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-l);
  overflow: hidden; box-shadow: var(--sh-s);
  transition: transform .28s ease, box-shadow .28s ease;
}
.person:hover { transform: translateY(-4px); box-shadow: var(--sh); }
.person__photo { overflow: hidden; background: var(--cream); }
.person__photo img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.person__body { padding: 1.4rem 1.4rem 1.4rem 0; }
.person__body h3 { margin-bottom: .2rem; }
.person__index { font-size: .74rem; font-weight: 800; color: var(--orange); opacity: .5; display: block; margin-bottom: .3rem; }
.person__body p { font-size: .875rem; margin: .6rem 0 0; }

/* ---------------- feature (news lead) ---------------- */
.feature {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 0;
  border: 1px solid var(--line); border-radius: var(--r-l); overflow: hidden;
  box-shadow: var(--sh-s); margin-bottom: 2.4rem; background: var(--paper);
}
.feature__media img { width: 100%; height: 100%; min-height: 280px; object-fit: cover; }
.feature__body { padding: clamp(1.6rem, 3vw, 2.4rem); display: flex; flex-direction: column; justify-content: center; }
.feature__body h3 { font-size: clamp(1.2rem, 2.2vw, 1.6rem); font-weight: 800; }
.feature__body p { margin: 0; font-size: .92rem; }

/* ---------------- banner ---------------- */
.banner { position: relative; border-radius: var(--r-l); overflow: hidden; box-shadow: var(--sh); }
.banner img { width: 100%; max-height: 460px; object-fit: cover; }
.banner__caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to top, rgba(17, 23, 31, .94), rgba(17, 23, 31, .55) 60%, transparent);
  padding: clamp(1.6rem, 4vw, 2.6rem); color: #fff;
}
.banner__caption h3 { color: #fff; font-size: clamp(1.2rem, 2.2vw, 1.6rem); font-weight: 800; }
.banner__caption p { color: #C9D3DE; max-width: 40rem; font-size: .92rem; }
.banner__caption .btn { margin-top: .4rem; }

/* ---------------- marquee (partner logos) ---------------- */
.marquee { padding: clamp(2.4rem, 4.5vw, 3.4rem) 0; background: var(--paper); border-top: 1px solid var(--line); }
.marquee__label {
  text-align: center; font-size: .72rem; font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase; color: var(--ink-mute); margin-bottom: 1.8rem;
}
.marquee__viewport {
  overflow: hidden; position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.marquee__track {
  display: flex; align-items: center; width: max-content;
  animation: marquee-scroll 34s linear infinite;
  will-change: transform;
}
.marquee__item { margin-right: 3.6rem; flex: none; }
.marquee__item img {
  height: 42px; width: auto; max-width: 150px; object-fit: contain;
  filter: grayscale(1); opacity: .55;
  transition: filter .3s ease, opacity .3s ease;
}
.marquee__item:hover img { filter: none; opacity: 1; }
.marquee__viewport:hover .marquee__track { animation-play-state: paused; }

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------------- CTA band ---------------- */
.cta-band {
  background: linear-gradient(112deg, var(--orange-700) 0%, var(--orange) 52%, var(--amber) 130%);
  color: #fff; padding: clamp(2.4rem, 5vw, 3.6rem) 0;
}
.cta-band__inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.cta-band__copy { max-width: 40rem; }
.cta-band__copy h2 { color: #fff; font-size: clamp(1.35rem, 2.5vw, 1.9rem); font-weight: 800; margin-bottom: .4rem; }
.cta-band__copy p { color: rgba(255,255,255,.92); margin: 0; font-size: .94rem; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: .8rem; }

/* ---------------- contact form ---------------- */
.split--form { grid-template-columns: 1fr 1.05fr; align-items: start; }
.split__form { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-l); padding: clamp(1.5rem, 3vw, 2.2rem); box-shadow: var(--sh); }
.note-card { margin-top: 1.6rem; background: var(--amber-100); border-left: 3px solid var(--amber); border-radius: var(--r-s); padding: 1rem 1.1rem; }
.note-card strong { display: block; color: var(--ink); font-size: .9rem; margin-bottom: .25rem; }
.note-card p { margin: 0; font-size: .875rem; }
.note-card a { color: var(--orange-600); font-weight: 700; }

.contact-cards .card__body h3 { font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-mute); margin-bottom: .4rem; }
.contact-cards .card__body p { font-size: .9rem; color: var(--ink); font-weight: 600; overflow-wrap: anywhere; }
.contact-icon {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: var(--r-s);
  background: var(--orange-100); color: var(--orange); margin-bottom: .9rem;
}
.contact-icon svg { width: 19px; height: 19px; }
.hours { display: flex; justify-content: space-between; gap: .6rem; font-size: .84rem; font-weight: 600; color: var(--ink); margin: 0 0 .3rem; }
.hours span { color: var(--ink-soft); font-weight: 500; }

.form .field { margin-bottom: 1.05rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field label { display: block; font-size: .78rem; font-weight: 700; color: var(--ink); margin-bottom: .35rem; letter-spacing: .02em; }
.req { color: var(--orange); }
.field input, .field textarea, .field select {
  width: 100%; padding: .78rem 1rem; border: 1.5px solid var(--line-cool); border-radius: var(--r-s);
  font-family: var(--font); font-size: .9rem; color: var(--ink); background: var(--paper);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field select { appearance: none; background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2358657A'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .8rem center; background-size: 18px; padding-right: 2.4rem; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(252, 108, 36, .14);
}
.field textarea { resize: vertical; }
.form-note { font-size: .78rem; margin: .8rem 0 0; color: var(--ink-mute); }

.alert { border-radius: var(--r); padding: 1rem 1.15rem; margin-bottom: 1.3rem; font-size: .875rem; }
.alert strong { display: block; margin-bottom: .25rem; }
.alert p { margin: 0; }
.alert ul { margin: 0; padding-left: 1.1rem; list-style: disc; }
.alert--ok { background: var(--green-050); border-left: 3px solid var(--green); }
.alert--ok strong { color: var(--green); }
.alert--err { background: var(--orange-050); border-left: 3px solid var(--orange); }
.alert--err strong { color: var(--orange-700); }

/* ---------------- footer ---------------- */
.footer { background: var(--ink); color: #9DAAB8; padding: clamp(2.6rem, 5vw, 3.6rem) 0 1.5rem; }
.footer__grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1.3fr; gap: 2.2rem; }
.footer__brand img { height: 42px; background: #fff; padding: 6px 10px; border-radius: var(--r-s); margin-bottom: 1.1rem; }
.footer__brand p { font-size: .85rem; max-width: 30rem; }
.footer__tagline { color: var(--amber) !important; font-weight: 600; font-size: .82rem !important; }
.footer__col h4 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 1.1rem; }
.footer__col ul { display: flex; flex-direction: column; gap: .6rem; font-size: .86rem; }
.footer__col a { transition: color .2s ease; }
.footer__col a:hover { color: var(--orange); }
.footer__contact li { color: #8B99A8; }
.footer__hours { font-size: .8rem; color: #7A8896; }
.footer__bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem;
  border-top: 1px solid rgba(255,255,255,.09); margin-top: 2.2rem; padding-top: 1.3rem;
  font-size: .78rem; color: #78868F;
}
.footer__bottom p { margin: 0; }

/* ---------------- back to top ---------------- */
.to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--orange); color: #fff; box-shadow: var(--sh);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s ease, background .2s ease;
}
.to-top svg { width: 20px; height: 20px; }
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--orange-600); }

/* ---------------- reveal ---------------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .65s ease, transform .65s ease; }
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee__track { animation: none; }
  .hero__slide { transition: opacity .3s ease; }
  html { scroll-behavior: auto; }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1080px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .people { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .nav-toggle { display: flex; margin-left: auto; }
  /* anchored to the sticky header itself, so it stays put once the top bar scrolls away */
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0; margin: 0;
    background: var(--paper); padding: .8rem 1.4rem 1.4rem;
    border-bottom: 1px solid var(--line); box-shadow: var(--sh);
    transform: translateY(-130%); opacity: 0; pointer-events: none;
    transition: transform .3s ease, opacity .3s ease;
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  }
  .nav.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav__link { padding: .85rem .4rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav__link.is-active::after { display: none; }
  .nav__cta { margin: 1rem 0 0; }

  .split, .split--form { grid-template-columns: 1fr; }
  .grid--3 { grid-template-columns: 1fr; }
  .row { grid-template-columns: 1fr; }
  .row--reverse .row__media { order: 0; }
  .quick__grid { grid-template-columns: 1fr; }
  .feature { grid-template-columns: 1fr; }
  .feature__media img { min-height: 220px; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .person { grid-template-columns: 150px 1fr; }
  .topbar { font-size: .74rem; }
}

@media (max-width: 620px) {
  body { font-size: 15px; }
  .grid--4, .values-grid, .steps { grid-template-columns: 1fr; }
  .stats__grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .container { width: min(100% - 1.8rem, var(--container)); }
  /* the top bar gets too cramped to carry all three details on a phone */
  .topbar__right { display: none; }
  .topbar__inner { justify-content: center; text-align: center; }
  .topbar__item { white-space: normal; }
  .topbar { font-size: .72rem; }
  .hero__badges { gap: 1.4rem 2rem; }
  .hero__badge strong { font-size: 1.45rem; }
  .hero__nav { display: none; }
  .person { grid-template-columns: 1fr; }
  .person__photo { aspect-ratio: 1/1; }
  .person__body { padding: 0 1.3rem 1.4rem; }
  .footer__bottom { flex-direction: column; }
  .cta-band__inner { flex-direction: column; align-items: flex-start; }
}

/* =========================================================
   3D GLASS EFFECT
   Applied to image frames across the site. The tilt is driven
   by --gx / --gy, which public/js/main.js sets from the pointer.
   ========================================================= */
.glass {
  position: relative;
  overflow: hidden;
  transform: perspective(1100px) rotateX(var(--gx, 0deg)) rotateY(var(--gy, 0deg)) scale(var(--gs, 1));
  transition: transform .5s cubic-bezier(.2, .8, .3, 1), box-shadow .5s ease;
  box-shadow: 0 10px 26px rgba(27, 36, 48, .13);
  will-change: transform;
  backface-visibility: hidden;
}
/* while the pointer is moving, follow it closely */
.glass.is-tilting { transition: transform .1s linear, box-shadow .5s ease; }

/* frosted rim + inner shading — this is what reads as "glass" */
.glass::after {
  content: "";
  position: absolute; inset: 0; z-index: 3; pointer-events: none;
  border: 1px solid rgba(255, 255, 255, .45);
  border-radius: inherit;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .62),
    inset 0 -20px 36px rgba(27, 36, 48, .18);
}
/* travelling sheen on hover */
.glass::before {
  content: "";
  position: absolute; top: -20%; bottom: -20%; left: 0; width: 42%; z-index: 4;
  pointer-events: none;
  background: linear-gradient(100deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.55) 50%, rgba(255,255,255,0) 100%);
  transform: translateX(-160%) skewX(-18deg);
  opacity: 0;
  transition: transform .9s ease, opacity .3s ease;
}
.glass:hover::before { transform: translateX(300%) skewX(-18deg); opacity: 1; }
.glass:hover { box-shadow: 0 22px 48px rgba(27, 36, 48, .24); }

@media (prefers-reduced-motion: reduce) {
  .glass { transform: none !important; }
  .glass::before { display: none; }
}

/* =========================================================
   NEWS ARTICLE + SIDEBAR
   ========================================================= */
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: clamp(1.8rem, 4vw, 3rem);
  align-items: start;
}
.article { min-width: 0; }

.article__meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 1.1rem;
  margin-bottom: 1.2rem; font-size: .8rem; font-weight: 600; color: var(--ink-mute);
}
.article__date {
  display: inline-flex; align-items: center; gap: .45rem;
  color: var(--orange); font-size: .74rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
}
.article__date svg { width: 15px; height: 15px; }

.article__figure { margin: 0 0 1.9rem; border-radius: var(--r-l); overflow: hidden; }
.article__figure img { width: 100%; max-height: 470px; object-fit: cover; }

.article__foot { margin-top: 2.4rem; padding-top: 1.6rem; border-top: 1px solid var(--line); }

/* --- rich text output (Quill) --- */
.prose { font-size: 1rem; line-height: 1.82; color: var(--ink-soft); }
.prose > * + * { margin-top: 1.05em; }
.prose p { margin: 0; }
.prose h1, .prose h2, .prose h3, .prose h4 { color: var(--ink); margin: 1.5em 0 .5em; }
.prose h1 { font-size: 1.5rem; }
.prose h2 { font-size: 1.32rem; }
.prose h3 { font-size: 1.14rem; }
.prose h4 { font-size: 1rem; }
.prose strong, .prose b { color: var(--ink); font-weight: 700; }
.prose ul, .prose ol { padding-left: 1.35rem; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin-bottom: .45rem; }
.prose a { color: var(--orange-600); text-decoration: underline; text-underline-offset: 2px; }
.prose a:hover { color: var(--orange-700); }
.prose blockquote {
  border-left: 3px solid var(--orange);
  padding: .35rem 0 .35rem 1.15rem;
  font-style: italic; color: var(--ink);
}
.prose img { border-radius: var(--r); height: auto; }
.prose hr { border: 0; border-top: 1px solid var(--line); }
.prose iframe, .prose video {
  width: 100%; height: auto; aspect-ratio: 16 / 9;
  border: 0; border-radius: var(--r); display: block;
}
.prose pre {
  background: var(--ink); color: #E6EDF3; padding: 1rem 1.1rem;
  border-radius: var(--r); overflow-x: auto; font-size: .85rem;
}
.prose code { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; }
.prose table { width: 100%; border-collapse: collapse; }
.prose th, .prose td { border: 1px solid var(--line); padding: .55rem .7rem; text-align: left; }

.article__gallery { margin-top: 2.6rem; }
.article__gallery h3 { font-size: 1.05rem; margin-bottom: .9rem; }
.article__gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; }
.article__gallery-grid a { display: block; border-radius: var(--r); overflow: hidden; }
.article__gallery-grid img { width: 100%; aspect-ratio: 1/1; object-fit: cover; transition: transform .5s ease; }
.article__gallery-grid a:hover img { transform: scale(1.08); }

/* --- sidebar widgets --- */
.sidebar {
  display: flex; flex-direction: column; gap: 1.4rem;
  position: sticky; top: calc(var(--header-h) + 18px);
}
.widget {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r-l); overflow: hidden; box-shadow: var(--sh-s);
}
.widget__title { font-size: .95rem; font-weight: 800; margin: 0; padding: 1.15rem 1.2rem 1rem; position: relative; }
.widget__title::after {
  content: ""; position: absolute; left: 1.2rem; bottom: .55rem;
  width: 34px; height: 2.5px; border-radius: 2px; background: var(--orange);
}
.widget__gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; padding: 0 1.2rem 1.25rem; }
.widget__thumb { display: block; border-radius: var(--r-s); overflow: hidden; }
.widget__thumb img { width: 100%; aspect-ratio: 1/1; object-fit: cover; transition: transform .5s ease; }
.widget__thumb:hover img { transform: scale(1.12); }
.widget__media img { width: 100%; height: 152px; object-fit: cover; }
.widget__body { padding: 1.15rem 1.2rem 1.3rem; }
.widget__body .widget__title { padding: 0 0 .7rem; }
.widget__body p { font-size: .88rem; margin-bottom: 1rem; }
.widget__contact {
  display: flex; flex-direction: column; gap: .6rem;
  margin-top: 1.1rem; padding-top: 1.1rem; border-top: 1px solid var(--line);
}
.widget__contact li { display: flex; align-items: center; gap: .55rem; font-size: .85rem; }
.widget__contact svg { width: 15px; height: 15px; color: var(--orange); flex: none; }
.widget__list { padding: 0 1.2rem 1.25rem; display: flex; flex-direction: column; gap: .9rem; }
.widget__list a { display: flex; align-items: center; gap: .75rem; }
.widget__list-img { width: 58px; height: 58px; border-radius: var(--r-s); overflow: hidden; flex: none; }
.widget__list-img img { width: 100%; height: 100%; object-fit: cover; }
.widget__list-text { display: flex; flex-direction: column; min-width: 0; }
.widget__list-text strong { font-size: .85rem; font-weight: 600; color: var(--ink); line-height: 1.35; }
.widget__list-text small { font-size: .72rem; color: var(--ink-mute); }
.widget__list a:hover strong { color: var(--orange); }

@media (max-width: 1000px) {
  .article-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .widget__gallery { grid-template-columns: repeat(6, 1fr); }
}

@media (max-width: 620px) {
  .widget__gallery { grid-template-columns: repeat(3, 1fr); }
  .article__gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

/* =========================================================
   Font + size classes produced by the admin rich-text editor
   (Quill emits ql-font-* / ql-size-* / ql-align-* classes)
   ========================================================= */
.ql-font-montserrat { font-family: "Montserrat", system-ui, sans-serif; }
.ql-font-georgia { font-family: Georgia, "Times New Roman", serif; }
.ql-font-arial { font-family: Arial, Helvetica, sans-serif; }
.ql-font-times { font-family: "Times New Roman", Times, serif; }
.ql-font-courier { font-family: "Courier New", Courier, monospace; }
.ql-font-verdana { font-family: Verdana, Geneva, sans-serif; }
.ql-font-tahoma { font-family: Tahoma, Verdana, sans-serif; }

.ql-size-small { font-size: .82em; }
.ql-size-large { font-size: 1.35em; }
.ql-size-huge { font-size: 1.85em; }

.ql-align-center { text-align: center; }
.ql-align-right { text-align: right; }
.ql-align-justify { text-align: justify; }

/* =========================================================
   VIDEO BLOCK
   ========================================================= */
.video-section .section__head { margin-bottom: clamp(1.6rem, 3vw, 2.4rem); }
.video-frame {
  position: relative;
  width: 100%;
  max-width: 920px;
  margin-inline: auto;
  aspect-ratio: 16 / 9;
  border-radius: var(--r-l);
  overflow: hidden;
  background: var(--ink);
  box-shadow: var(--sh-l);
}
.video-frame iframe,
.video-frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  object-fit: cover;
}

@media (max-width: 620px) {
  .video-frame { border-radius: var(--r); }
}

/* =========================================================
   PRODUCT DETAIL
   ========================================================= */
.gallery__frame {
  border-radius: var(--r-l);
  overflow: hidden;
  margin-bottom: .8rem;
}
.gallery__frame .gallery__main {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}
.product-features {
  margin-top: 2.2rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
}
.product-features h3 { font-size: 1.05rem; margin-bottom: .6rem; }
.article .gallery + .prose { margin-top: 1.8rem; }

@media (max-width: 620px) {
  .gallery__frame { border-radius: var(--r); }
}

/* =========================================================
   CUSTOM PAGE BLOCKS
   ========================================================= */
.block-figure { margin: 0; border-radius: var(--r-l); overflow: hidden; }
.block-figure img { width: 100%; max-height: 560px; object-fit: cover; }
.block-caption { text-align: center; font-size: .85rem; color: var(--ink-mute); margin: 1rem 0 0; }

.block-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.block-gallery a { display: block; border-radius: var(--r); overflow: hidden; }
.block-gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .5s ease; }
.block-gallery a:hover img { transform: scale(1.06); }

.block-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  background: linear-gradient(112deg, var(--orange-700), var(--orange) 55%, var(--amber) 135%);
  color: #fff;
  border-radius: var(--r-l);
  padding: clamp(1.8rem, 4vw, 2.8rem);
}
.block-cta h2 { color: #fff; margin-bottom: .35rem; }
.block-cta p { color: rgba(255, 255, 255, .92); margin: 0; }
.block-cta .btn { background: #fff; color: var(--orange-700); box-shadow: none; }
.block-cta .btn:hover { background: var(--ink); color: #fff; }

@media (max-width: 900px) {
  .block-gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .block-gallery { grid-template-columns: 1fr; }
  .block-cta { flex-direction: column; align-items: flex-start; }
}
