/* Flexidea redesign — layout modelled on hydrotypiki.gr, colours and fonts from the Flexidea site. */

@font-face {
  font-family: "Avenir Next Condensed";
  src: url("../assets/fonts/AvenirNextCondensed-UltraLight.woff2") format("woff2");
  font-weight: 200;
  font-display: swap;
}
@font-face {
  font-family: "Avenir Next Condensed";
  src: url("../assets/fonts/AvenirNextCondensed-Medium.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Avenir Next Condensed";
  src: url("../assets/fonts/AvenirNextCondensed-Bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "ZT Nature";
  src: url("../assets/fonts/ZT-Nature-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  /* Flexidea palette (logo and original stylesheet) */
  --ink: #3b4040;          /* logo charcoal: headings, primary buttons */
  --ink-deep: #1b1b1b;     /* dark bands and cards */
  --teal: #00ada7;         /* logo teal: accents */
  --teal-text: #007570;    /* darker teal for small text on light backgrounds */
  --teal-on-dark: #2ccbc5; /* lighter teal for small text on charcoal */
  --silver: #a6a8ab;       /* logo silver */
  --silver-text: #b4b6b9;  /* lighter silver for small text on charcoal */
  --text: #424242;
  --muted: #666666;
  --line: #dfdfdf;
  --surface: #fafafa;      /* page background */
  --surface-alt: #f3f3f3;  /* alternate sections, footer */
  --tile: #e9e9e9;
  --white: #fff;

  --font-head: "Avenir Next Condensed", "Arial Narrow", Arial, sans-serif;
  --font-ui: "ZT Nature", "Segoe UI", Arial, sans-serif;

  --container: 76rem;
  --gutter: 2rem;
  --header-h: 6rem;
  --radius: 0.75rem;
  --radius-sm: 0.375rem;
  --shadow: 0 1px 2px rgb(0 0 0 / 0.04), 0 8px 24px rgb(0 0 0 / 0.06);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 1.1875rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img, video { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--ink);
  color: var(--white);
  font-family: var(--font-ui);
  font-size: 0.875rem;
}
.skip-link:focus { top: 1rem; }

:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }

/* ---------- Type ---------- */

.eyebrow {
  display: block;
  margin-bottom: 1rem;
  font-family: var(--font-ui);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow--teal { color: var(--teal-text); }

.display {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.display--xl { font-size: clamp(2.75rem, 7vw, 5.25rem); }
.display--lg { font-size: clamp(2.375rem, 5vw, 3.75rem); }
.display--md { font-size: clamp(2rem, 3.6vw, 2.75rem); }
.display--sm { font-size: clamp(1.5rem, 2.4vw, 1.875rem); line-height: 1.15; }

.lead {
  font-weight: 200;
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  line-height: 1.45;
}

.prose p + p { margin-top: 1.25rem; }
.prose { color: var(--text); }

.accent { color: var(--teal); }

/* ---------- Buttons and links ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 3.25rem;
  padding: 0.75rem 1.75rem;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-family: var(--font-ui);
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}
.btn:hover { transform: translateY(-1px); }
.btn--light { background: var(--white); color: var(--ink); }
.btn--light:hover { background: var(--surface-alt); }
.btn--ghost { background: rgb(17 17 17 / 0.45); color: var(--white); border-color: rgb(255 255 255 / 0.35); }
.btn--ghost:hover { background: rgb(17 17 17 / 0.65); border-color: var(--white); }
.btn--dark { background: var(--ink); color: var(--white); }
.btn--dark:hover { background: var(--ink-deep); }
.btn--small { min-height: 2.5rem; padding: 0.5rem 1.1rem; font-size: 0.8125rem; }

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding-bottom: 0.25rem;
  border-bottom: 2px solid currentColor;
  font-family: var(--font-ui);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
}
.arrow-link svg { transition: transform 0.2s; }
.arrow-link:hover svg { transform: translateX(3px); }

.icon { width: 1.1em; height: 1.1em; flex: none; }

/* ---------- Header ---------- */

/* No header bar, as on the original Flexidea site: the logo box, the dark menu strip and the
   button float over the page, so videos and images stay visible behind them. No blur effects. */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  pointer-events: none;
}
.site-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  height: var(--header-h);
}
.site-header__bar > * { pointer-events: auto; }
/* Transparent logo: white lettering over dark areas, the original charcoal over light ones.
   js/site.js switches between them as the page scrolls under the header. */
.site-header__logo { display: block; flex: none; }
.site-header__logo img { width: auto; height: 4.25rem; }
.site-header__logo .logo-on-light,
.site-header.is-on-light .logo-on-dark { display: none; }
.site-header.is-on-light .logo-on-light { display: block; }

.site-nav { display: flex; align-items: center; gap: 1rem; }
.site-nav__list {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.3rem;
  border-radius: var(--radius-sm);
  background: rgb(27 27 27 / 0.78);
}
.site-nav__link {
  display: block;
  padding: 0.5rem 0.85rem;
  border-radius: 0.25rem;
  font-family: var(--font-ui);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--white);
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s;
}
.site-nav__link:hover { background: rgb(255 255 255 / 0.14); }
.site-nav__link[aria-current="page"] { background: var(--white); color: var(--ink); font-weight: 700; }
.site-nav .btn { box-shadow: 0 4px 16px rgb(0 0 0 / 0.12); }

.nav-toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 4px 16px rgb(0 0 0 / 0.15);
  cursor: pointer;
}
.nav-toggle svg { width: 1.25rem; height: 1.25rem; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

@media (max-width: 1060px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: absolute;
    top: var(--header-h);
    left: var(--gutter);
    right: var(--gutter);
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    padding: 0.75rem;
    border-radius: var(--radius);
    background: rgb(27 27 27 / 0.95);
    box-shadow: 0 16px 32px rgb(0 0 0 / 0.25);
  }
  .site-nav.is-open { display: flex; }
  .site-nav__list { flex-direction: column; align-items: stretch; padding: 0; background: none; }
  .site-nav__link { padding: 0.85rem 0.75rem; font-size: 1.0625rem; }
  .site-nav .btn { align-self: stretch; box-shadow: none; }
}

main { display: block; }

/* ---------- Sections ---------- */

.section { padding-block: clamp(4.5rem, 9vw, 7.5rem); }
.section--alt { background: var(--surface-alt); }
.section--white { background: var(--white); }
.section--tight { padding-block: clamp(3rem, 6vw, 4.5rem); }
.section--flush-top { padding-top: 0; }

.section-head { max-width: 46rem; margin-bottom: 3rem; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--row {
  display: flex;
  max-width: none;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.section-head .display + p,
.section-head .display + .lead { margin-top: 1.25rem; }

/* ---------- Home hero (full-bleed media) ---------- */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding-block: calc(var(--header-h) + 4rem) 5rem;
  overflow: hidden;
  color: var(--white);
  isolation: isolate;
}
.hero__media,
.hero__media video,
.hero__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgb(17 17 17 / 0.82) 0%, rgb(17 17 17 / 0.55) 50%, rgb(17 17 17 / 0.25) 100%),
    linear-gradient(0deg, rgb(17 17 17 / 0.45), transparent 40%);
}
.hero__content { max-width: 46rem; }
.hero .display { color: var(--white); text-transform: uppercase; letter-spacing: 0; }
.hero__lead { margin-top: 1.5rem; color: rgb(255 255 255 / 0.9); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.5rem; }

/* ---------- Inner page headers ---------- */

.page-hero {
  padding-block: calc(var(--header-h) + clamp(3rem, 6vw, 5rem)) clamp(3.5rem, 6vw, 5rem);
}
.page-hero--dark { background: var(--ink); color: var(--white); }
.page-hero--dark .display { color: var(--white); }
.page-hero--dark .lead,
.page-hero--dark .prose { color: rgb(255 255 255 / 0.85); }
.page-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: center;
}
.page-hero .display + .lead,
.page-hero .display + .prose { margin-top: 1.5rem; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.12);
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white);
}
.chip::before { content: ""; width: 0.45rem; height: 0.45rem; border-radius: 50%; background: var(--teal); }
.chip--light { background: var(--white); border: 1px solid var(--line); color: var(--ink); }

/* Overlapping image pair (What we do header) */
.media-stack { position: relative; padding: 0 0 18% 12%; }
.media-stack__main {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 0 30px 60px rgb(0 0 0 / 0.35);
}
.media-stack__inset {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 42%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border: 6px solid var(--ink);
  border-radius: var(--radius);
}

/* ---------- Split layout with mosaic (Who we are) ---------- */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(3rem, 6vw, 6rem);
  align-items: center;
}
.split .display + .prose,
.split .display + .lead { margin-top: 2rem; }
.split__label {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  font-family: var(--font-ui);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-text);
}
.split__label + .prose { margin-top: 0; }
.split .prose + .checklist { margin-top: 2rem; }
.split__media { overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow); }
.split__media img { width: 100%; height: auto; }

.mosaic {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  align-items: start;
}
.mosaic__col { display: grid; gap: 1rem; }
.mosaic__col:first-child { margin-top: 3rem; }
.tile {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  border-radius: var(--radius);
  background: var(--tile);
}
.tile > img,
.tile > video { width: 100%; height: 100%; object-fit: cover; }
.tile--landscape { aspect-ratio: 4 / 3; } /* photo shown whole, so the sign is never cropped */
.tile--dark {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.75rem;
  background: var(--ink);
  color: var(--white);
}
.tile__small {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal-on-dark);
}
.tile__big { margin-block: 0.25rem; font-weight: 700; font-size: 2.75rem; line-height: 1; }
.tile__text { font-size: 1.0625rem; line-height: 1.35; color: rgb(255 255 255 / 0.85); }

/* ---------- Image cards with overlay (bento) ---------- */

.bento {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-auto-rows: 15rem;
  gap: 1.5rem;
}
.bento > :nth-child(1) { grid-column: span 3; grid-row: span 2; }
.bento > :nth-child(2) { grid-column: span 3; }
.bento > :nth-child(3) { grid-column: span 3; }
.bento > :nth-child(4) { grid-column: span 3; }
.bento > :nth-child(5) { grid-column: span 3; }

.photo-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  padding: 1.75rem;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--white);
  isolation: isolate;
  box-shadow: var(--shadow);
}
.photo-card > img,
.photo-card > video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  transition: transform 0.6s ease;
}
.photo-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(0deg, rgb(17 17 17 / 0.9) 0%, rgb(17 17 17 / 0.55) 45%, rgb(17 17 17 / 0.05) 100%);
}
.photo-card:hover > img,
.photo-card:hover > video { transform: scale(1.04); }
.photo-card__title { font-weight: 700; font-size: 1.625rem; line-height: 1.1; }
.photo-card__text { margin-top: 0.5rem; font-size: 1.0625rem; line-height: 1.4; color: rgb(255 255 255 / 0.85); }
.photo-card--big .photo-card__title { font-size: 2.125rem; }

/* ---------- Stats ---------- */

.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.stat {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 15rem;
  padding: 2rem;
  border-radius: var(--radius);
  background: var(--tile);
  color: var(--ink);
}
.stat--dark { background: var(--ink); color: var(--white); }
.stat__number { font-weight: 700; font-size: clamp(3rem, 5vw, 4.25rem); line-height: 1; }
.stat__number span { color: var(--teal); }
.stat__label {
  margin-top: 0.75rem;
  font-family: var(--font-ui);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.5;
  text-transform: uppercase;
  color: var(--muted);
}
.stat--dark .stat__label { color: var(--silver-text); }

/* ---------- News (cards that open a dialog with the full story) ---------- */

.news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.news-grid > li { display: flex; }

.news-card {
  display: flex;
  flex: 1;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}
.news-card:hover { transform: translateY(-3px); box-shadow: 0 1px 2px rgb(0 0 0 / 0.04), 0 14px 32px rgb(0 0 0 / 0.1); }
.news-card__media { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface-alt); }
.news-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.news-card:hover .news-card__media img { transform: scale(1.03); }
.news-card__media--top img { object-position: top; } /* tall covers: show the headline */
.news-card__body { display: flex; flex: 1; flex-direction: column; gap: 0.5rem; padding: 1.25rem 1.5rem 1.5rem; }
.news-card__meta {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-text);
}
.news-card__title { font-weight: 700; font-size: 1.3125rem; line-height: 1.15; color: var(--ink); }
.news-card__text { font-size: 1rem; line-height: 1.45; color: var(--text); }
.news-card__more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 0.5rem;
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
}
.news-card__more svg { transition: transform 0.2s; }
.news-card:hover .news-card__more svg { transform: translateX(3px); }

/* Hidden until opened. With JavaScript it opens as a modal; without, the #id in the address shows it. */
.news-dialog {
  position: fixed;
  inset: 0;
  z-index: 60;
  width: min(52.5rem, 100% - 2rem);
  max-width: none;
  height: fit-content;
  max-height: calc(100dvh - 2rem);
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: var(--radius);
  background: var(--white);
  color: var(--text);
  box-shadow: 0 24px 64px rgb(0 0 0 / 0.3);
}
.news-dialog[open],
html:not(.has-news-dialogs) .news-dialog:target { display: flex; }
.news-dialog::backdrop { background: rgb(17 17 17 / 0.7); }
body:has(.news-dialog[open]) { overflow: hidden; }
.news-dialog__scroll { flex: 1; overflow-y: auto; overscroll-behavior: contain; }
.news-dialog__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 4px 16px rgb(0 0 0 / 0.2);
}
.news-dialog__close:hover { background: var(--ink); color: var(--white); }
.news-dialog__close svg { width: 1.25rem; height: 1.25rem; }
.news-dialog__cover { width: 100%; height: auto; }
.news-dialog__cover--portrait { padding: 2rem 2rem 0; background: var(--surface-alt); }
.news-dialog__cover--portrait img { width: auto; max-width: 100%; max-height: min(42rem, 75dvh); margin-inline: auto; border-radius: var(--radius-sm) var(--radius-sm) 0 0; }
.news-dialog__body { display: grid; gap: 1.5rem; padding: 2.25rem 2.5rem 2.75rem; }
.news-dialog__body > .news-card__meta { margin-bottom: -0.75rem; }
.news-dialog .prose h4 { margin: 1.75rem 0 0.5rem; font-size: 1.3125rem; line-height: 1.2; color: var(--ink); }
.news-dialog .prose h4:first-child { margin-top: 0; }
.news-dialog .prose h4 + p { margin-top: 0; }
.news-dialog .prose strong { color: var(--ink); }
.news-dialog .prose ul { margin-top: 0.75rem; padding-left: 1.25rem; list-style: disc; }
.news-dialog .prose li + li { margin-top: 0.25rem; }
.news-dialog .prose li::marker { color: var(--teal); }
.news-dialog .prose ul + p { margin-top: 1.25rem; }
.news-dialog .prose blockquote {
  margin: 1.75rem 0;
  padding: 0.25rem 0 0.25rem 1.5rem;
  border-left: 3px solid var(--teal);
  font-size: 1.25rem;
  line-height: 1.45;
  color: var(--ink);
}
.news-dialog .prose blockquote footer {
  margin-top: 0.75rem;
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-text);
}
.news-dialog__gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.news-dialog__gallery img,
.news-dialog__photo { width: 100%; height: auto; border-radius: var(--radius-sm); }
.news-dialog__cta { justify-self: start; }

.news-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin: 0; }
.news-facts > div { padding: 1.1rem 1.25rem; border-radius: var(--radius-sm); background: var(--surface-alt); }
.news-facts dt {
  font-family: var(--font-ui);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-text);
}
.news-facts dd { margin: 0.25rem 0 0; font-weight: 700; line-height: 1.25; color: var(--ink); }

.news-steps { display: grid; gap: 1rem; margin: -0.5rem 0 0; padding: 0; list-style: none; counter-reset: step; }
.news-steps li { position: relative; padding-left: 3.25rem; line-height: 1.4; counter-increment: step; }
.news-steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: 0.1rem;
  left: 0;
  font-family: var(--font-ui);
  font-size: 1rem;
  font-weight: 700;
  color: var(--teal-text);
}
.news-steps strong { display: block; color: var(--ink); }

/* ---------- Partner logos (looping marquee) ---------- */

/* White band under the home hero; partners' logos are made for light backgrounds. */
.partners-band { padding-block: clamp(1.75rem, 3.5vw, 2.75rem); border-bottom: 3px solid var(--teal); background: var(--white); }

/* The list is in the HTML twice; moving the track by half its width brings the copy
   exactly to where the original started, so the loop has no visible seam. */
.logo-marquee {
  --logo-gap: clamp(2.5rem, 5vw, 4.5rem);
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}
.logo-marquee__track { display: flex; width: max-content; animation: logo-marquee 45s linear infinite; }
.logo-marquee:hover .logo-marquee__track { animation-play-state: paused; }
.logo-marquee__list {
  display: flex;
  flex: none;
  align-items: center;
  gap: var(--logo-gap);
  padding-right: var(--logo-gap);
}
.logo-marquee__list img { width: auto; height: 3.25rem; max-width: 12rem; object-fit: contain; }
@keyframes logo-marquee {
  to { transform: translateX(-50%); }
}
@media (max-width: 640px) {
  .logo-marquee__list img { height: 2.5rem; max-width: 9rem; }
}
@media (prefers-reduced-motion: reduce) {
  .logo-marquee { mask-image: none; }
  .logo-marquee__track { width: auto; animation: none; }
  .logo-marquee__list { flex: auto; flex-wrap: wrap; justify-content: center; gap: 2rem var(--logo-gap); padding-right: 0; }
  .logo-marquee__list[aria-hidden] { display: none; }
}

/* ---------- Feature cards (image top, text, checklist) ---------- */

.cards-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; }

.card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}
.card__media { aspect-ratio: 16 / 9; background: var(--surface-alt); overflow: hidden; }
.card__media img,
.card__media video { width: 100%; height: 100%; object-fit: cover; }
.card__body { display: flex; flex: 1; flex-direction: column; padding: 2rem; }
.card__title { font-weight: 700; font-size: 1.75rem; line-height: 1.12; color: var(--ink); }
.card__text { margin-top: 0.85rem; color: var(--text); }
.card__text + .card__text { margin-top: 0.75rem; }

.checklist { display: grid; gap: 0.6rem; margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--surface-alt); }
.checklist li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  font-family: var(--font-ui);
  font-size: 0.875rem;
  line-height: 1.45;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
}
.checklist li::before {
  content: "";
  flex: none;
  width: 1.375rem;
  height: 1.375rem;
  margin-top: -0.05rem;
  border-radius: 50%;
  background: rgb(0 173 167 / 0.14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300807b' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 0.8rem no-repeat;
}

/* ---------- Numbered cards ---------- */

.numbered { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; }
.numbered__item {
  padding: 2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}
.numbered__badge {
  display: inline-grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  margin-bottom: 1.75rem;
  border-radius: var(--radius-sm);
  background: var(--ink);
  font-weight: 700;
  font-size: 1.375rem;
  color: var(--white);
}
.numbered__title { font-weight: 700; font-size: 1.5rem; line-height: 1.15; color: var(--ink); }
.numbered__text { margin-top: 0.75rem; font-size: 1.0625rem; color: var(--text); }

/* ---------- Pills (sector list) ---------- */

.pills { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.pills li {
  padding: 0.6rem 1.15rem;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--line);
  font-family: var(--font-ui);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
}

/* ---------- Benefit cards ---------- */

.benefit {
  display: flex;
  flex-direction: column;
  padding: clamp(2rem, 4vw, 3rem);
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--line);
}
.benefit--dark { background: var(--ink); border-color: var(--ink); color: var(--white); }
.benefit__title { font-weight: 700; font-size: clamp(2rem, 3.5vw, 2.75rem); line-height: 1; text-transform: uppercase; color: var(--ink); }
.benefit--dark .benefit__title { color: var(--white); }
.benefit__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  align-self: flex-start;
  margin-top: 1.5rem;
  padding: 0.55rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--surface-alt);
  font-family: var(--font-ui);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
}
.benefit--dark .benefit__link { background: rgb(255 255 255 / 0.1); color: var(--white); }
.plus-list { display: grid; gap: 1.1rem; margin-top: 2rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.benefit--dark .plus-list { border-color: rgb(255 255 255 / 0.15); }
.plus-list li { display: flex; gap: 0.9rem; align-items: flex-start; line-height: 1.4; }
.plus-list li::before {
  content: "+";
  flex: none;
  display: grid;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
  margin-top: 0.05rem;
  border-radius: var(--radius-sm);
  background: var(--teal);
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
  color: var(--ink-deep);
}

/* ---------- Video grid (Why) ---------- */

.video-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: clamp(11rem, 18vw, 16rem);
  gap: 1rem;
}
.video-grid > :first-child { grid-column: span 2; grid-row: span 2; }
.video-grid .tile { aspect-ratio: auto; }

/* ---------- Call to action band ---------- */

.cta-band {
  position: relative;
  overflow: hidden;
  padding: clamp(3rem, 7vw, 5.5rem);
  border-radius: var(--radius);
  color: var(--white);
  isolation: isolate;
}
.cta-band > video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgb(17 17 17 / 0.62); }
.cta-band .display { max-width: 40rem; color: var(--white); }
.cta-band .btn { margin-top: 2rem; }

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(2rem, 4vw, 3rem);
  align-items: start;
}
.form-card {
  padding: clamp(1.75rem, 4vw, 3rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem 2rem; }
.field { display: grid; gap: 0.5rem; }
.field--full { grid-column: 1 / -1; }
.field label {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
}
.field input,
.field textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: var(--surface-alt);
  font: inherit;
  font-size: 1.0625rem;
  color: var(--ink);
  transition: border-color 0.2s, background-color 0.2s;
}
.field textarea { min-height: 10rem; resize: vertical; }
.field input:focus,
.field textarea:focus { outline: none; border-color: var(--teal); background: var(--white); }
.form-actions { margin-top: 2rem; }
.form-honeypot { display: none; }
.form-note { margin-top: 1.5rem; font-family: var(--font-ui); font-size: 0.8125rem; color: var(--muted); }
.form-note a { color: var(--teal-text); }
.contact-aside { overflow: hidden; border-radius: var(--radius); }
.map-card {
  overflow: hidden;
  height: clamp(20rem, 38vw, 28rem);
  margin-top: clamp(2rem, 4vw, 3rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-alt);
}
.map-card iframe { display: block; width: 100%; height: 100%; border: 0; }
.contact-aside img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }

/* ---------- Footer ---------- */

.site-footer {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--surface-alt);
  border-top: 1px solid var(--line);
  color: var(--muted);
}
/* Faint watermark behind the footer content; takes up no space of its own.
   Two identical copies slide left in a slow loop; moving by one copy (-50%) makes the loop seamless. */
.footer-ticker {
  position: absolute;
  top: 50%;
  left: 0;
  z-index: -1;
  transform: translateY(-50%);
  white-space: nowrap;
  font-weight: 700;
  font-size: clamp(6rem, 16vw, 14rem);
  line-height: 1;
  color: rgb(0 0 0 / 0.045);
  pointer-events: none;
  user-select: none;
}
.footer-ticker__track { display: flex; width: max-content; animation: footer-ticker 60s linear infinite; }
.footer-ticker__item { flex: none; }
.footer-ticker__item span { padding-inline: 0.15em; }
@keyframes footer-ticker {
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .footer-ticker__track { animation: none; }
}
.footer-main {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 3rem;
  padding-block: 4.5rem 3rem;
}
.footer-brand__name { font-weight: 700; font-size: 1.5rem; color: var(--ink); }
.footer-brand__text { max-width: 28rem; margin-top: 1rem; font-size: 1.0625rem; line-height: 1.5; }
.footer-heading {
  margin-bottom: 1.25rem;
  font-family: var(--font-ui);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal-text);
}
.footer-links { display: grid; gap: 0.75rem; }
.footer-links a {
  font-family: var(--font-ui);
  font-size: 0.875rem;
  text-decoration: none;
  color: var(--muted);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--ink); }
.footer-address { margin-bottom: 1.5rem; font-style: normal; }
.footer-address a {
  display: inline-flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-family: var(--font-ui);
  font-size: 0.875rem;
  line-height: 1.6;
  text-decoration: none;
  color: var(--muted);
  transition: color 0.2s;
}
.footer-address a:hover { color: var(--ink); }
.footer-address svg { flex: none; width: 1.1rem; height: 1.1rem; margin-top: 0.2rem; color: var(--teal-text); }
.footer-social { display: flex; gap: 0.75rem; margin-top: 1.5rem; }
.footer-social a {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  color: var(--ink);
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.footer-social a:hover { background: var(--ink); border-color: var(--ink); color: var(--white); }
.footer-social svg { width: 1.15rem; height: 1.15rem; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  padding: 1.75rem 0 2.5rem;
  border-top: 1px solid var(--line);
  font-family: var(--font-ui);
  font-size: 0.8125rem;
}

.footer-bottom__link { text-decoration: underline; text-underline-offset: 0.2em; }
.footer-bottom__link:hover { color: var(--teal-text); }

/* ---------- Legal pages ---------- */

.legal-updated { margin-top: 1.5rem; font-family: var(--font-ui); font-size: 0.875rem; color: var(--muted); }
.legal { max-width: 46rem; font-size: 1.125rem; line-height: 1.6; color: var(--text); }
.legal h2 { margin: 3rem 0 1rem; font-size: clamp(1.5rem, 2.4vw, 1.875rem); line-height: 1.15; color: var(--ink); }
.legal h3 { margin: 1.75rem 0 0.5rem; font-size: 1.25rem; color: var(--ink); }
.legal p + p { margin-top: 1rem; }
.legal ul { margin: 1rem 0; padding-left: 1.25rem; list-style: disc; }
.legal li + li { margin-top: 0.5rem; }
.legal ul ul { margin: 0.5rem 0 0; list-style: circle; }
.legal a { color: var(--teal-text); }
.legal strong { color: var(--ink); }
/* Owner-supplied details still missing (see TODO.md). Remove the marks once filled in. */
.placeholder { padding: 0 0.2em; border-radius: 0.2em; background: #fff1b8; color: inherit; }

/* ---------- Responsive ---------- */

@media (max-width: 1060px) {
  .numbered,
  .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  :root { --gutter: 1.5rem; }
  .split,
  .page-hero__grid,
  .contact-grid,
  .footer-main { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .stat { min-height: 11rem; }
  .bento { grid-template-columns: 1fr 1fr; grid-auto-rows: 16rem; }
  .bento > :nth-child(n) { grid-column: span 1; grid-row: span 1; }
  .bento > :nth-child(1) { grid-column: span 2; }
  .media-stack { max-width: 36rem; }
  .contact-aside { display: none; }
}

@media (max-width: 640px) {
  :root { --gutter: 1.25rem; --header-h: 5rem; }
  body { font-size: 1.125rem; }
  .site-header__logo img { height: 3.25rem; }
  .cards-2,
  .numbered,
  .form-grid { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr; grid-auto-rows: 18rem; }
  .bento > :nth-child(n),
  .bento > :nth-child(1) { grid-column: span 1; }
  .video-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 9rem; }
  .video-grid > :first-child { grid-column: span 2; grid-row: span 2; }
  .video-grid > :last-child { grid-column: span 2; }
  .mosaic__col:first-child { margin-top: 1.5rem; }
  .tile--dark { padding: 1.1rem; }
  .tile__big { font-size: 2rem; }
  .tile__text { font-size: 0.9375rem; }
  .hero__actions .btn { flex: 1 1 100%; }
  .card__body { padding: 1.5rem; }
  .news-grid { grid-template-columns: 1fr; }
  .news-card__body { padding: 1.25rem; }
  .news-dialog { width: calc(100% - 1.5rem); max-height: calc(100dvh - 1.5rem); }
  .news-dialog__body { padding: 1.75rem 1.25rem 2rem; }
  .news-dialog__cover--portrait { padding: 1.25rem 1.25rem 0; }
  .news-facts { grid-template-columns: 1fr; }
}

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