/* ==========================================================================
   NESOL — Numerical Engineering Solutions
   Design system — derived from NESOL_company_presentation_25.pptx
   Source: src/css/style.css  (copied to assets/ and to the WP theme by build.py)
   ========================================================================== */

/* ------------------------------- Tokens --------------------------------- */
:root {
  /* Brand palette — exact values from the company presentation */
  --forest-900: #10261b;   /* dark slides / hero background            */
  --forest-800: #1a3a2a;   /* cards on dark backgrounds                */
  --forest-700: #234a36;   /* hover on dark cards (derived)            */
  --green-800: #006633;    /* NESOL dark green — headings accents, T/H */
  --green-600: #008e36;    /* NESOL green — eyebrows, links, buttons   */
  --lime-500: #94c11f;     /* NESOL lime — numbers, highlights         */
  --lime-400: #a9d13a;     /* lime hover (derived)                     */

  --ink: #1d1d1b;          /* headings & body on light                 */
  --muted: #5e6b63;        /* body copy                                */
  --muted-2: #9aa69f;      /* captions, meta                           */
  --line: #dce3da;         /* borders                                  */
  --line-2: #c9d6ce;       /* stronger borders                         */
  --surface: #f3f6f1;      /* light panels / alternating sections      */
  --white: #ffffff;

  --on-dark: #ffffff;
  --on-dark-muted: #b9c6bd;

  /* Type — the deck is set in Arial */
  --font: Arial, "Helvetica Neue", Helvetica, "Liberation Sans", sans-serif;

  /* Rhythm */
  --container: 1200px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --section-y: clamp(2.25rem, 4.5vw, 3.5rem);
  --radius: 4px;
  --radius-lg: 8px;
  --shadow-sm: 0 1px 2px rgba(16, 38, 27, .06), 0 4px 14px rgba(16, 38, 27, .05);
  --shadow-md: 0 14px 34px rgba(16, 38, 27, .10);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ------------------------------- Reset ---------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--muted);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--green-600); text-decoration: none; }
a:hover { color: var(--green-800); }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { color: var(--ink); font-weight: 700; line-height: 1.15; margin: 0 0 .6em; letter-spacing: -.012em; }
h1 { font-size: clamp(2.3rem, 5.2vw, 3.9rem); letter-spacing: -.022em; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.45rem); }
h3 { font-size: 1.2rem; letter-spacing: -.005em; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--lime-500); outline-offset: 3px; border-radius: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); }
.skip-link { position: absolute; left: 1rem; top: -3rem; z-index: 200; background: var(--forest-900); color: #fff; padding: .6rem 1rem; border-radius: var(--radius); }
.skip-link:focus { top: 1rem; color: #fff; }
.ico { width: 1.25em; height: 1.25em; flex: none; }

/* ------------------------------ Layout ---------------------------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); position: relative; }
.section--surface { background: var(--surface); }
.section--dark { background: var(--forest-900); color: var(--on-dark-muted); }
.section--dark h2, .section--dark h3 { color: var(--on-dark); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.grid { display: grid; gap: clamp(1rem, 2vw, 1.5rem); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 980px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* --------------------------- Typography bits ---------------------------- */
.eyebrow {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--green-600);
  margin-bottom: 1rem;
}
.eyebrow--lime { color: var(--lime-500); }
.eyebrow .sep, .kicker .sep { opacity: .6; padding-inline: .25em; }
.lead { font-size: clamp(1.08rem, 1.5vw, 1.22rem); line-height: 1.6; color: var(--muted); }
.section-head { margin-bottom: clamp(1.25rem, 2.2vw, 1.8rem); }
.section-head .lead { max-width: 900px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { margin-bottom: .45em; }
.label {
  display: block;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin: 0 0 .8rem;
}
.prose p { color: var(--muted); }
.prose h2 { margin-top: 1.6em; }
.prose ul { padding-left: 1.2em; margin-bottom: 1em; }
.prose a { text-decoration: underline; text-underline-offset: 2px; }

/* ------------------------------ Buttons --------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .85rem 1.4rem;
  font-size: .95rem; font-weight: 700; line-height: 1.2;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
  white-space: nowrap;
}
.btn .ico { width: 1.1em; height: 1.1em; transition: transform .2s var(--ease); }
.btn:hover .ico { transform: translateX(3px); }
.btn--sm { padding: .6rem 1.05rem; font-size: .88rem; }
.btn--primary { background: var(--green-600); color: #fff; }
.btn--primary:hover { background: var(--green-800); color: #fff; }
.btn--lime { background: var(--lime-500); color: var(--forest-900); }
.btn--lime:hover { background: var(--lime-400); color: var(--forest-900); }
.btn--ghost { border-color: var(--line-2); color: var(--ink); background: transparent; }
.btn--ghost:hover { border-color: var(--green-600); color: var(--green-600); }
.btn--ghost-light { border-color: rgba(255, 255, 255, .28); color: #fff; background: transparent; }
.btn--ghost-light:hover { border-color: var(--lime-500); color: var(--lime-500); }
.arrow-link { display: inline-flex; align-items: center; gap: .45rem; font-weight: 700; font-size: .92rem; color: var(--green-600); }
.arrow-link .ico { width: 1.05em; height: 1.05em; transition: transform .2s var(--ease); }
a:hover .arrow-link .ico, .arrow-link:hover .ico { transform: translateX(4px); }

/* ------------------------------ Header ---------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
.site-header.scrolled { border-color: var(--line); box-shadow: 0 6px 20px rgba(16, 38, 27, .06); }
.nav { display: flex; align-items: center; gap: 1.5rem; min-height: 76px; }
.brand { display: inline-flex; align-items: center; flex: none; }
.brand__logo { height: 44px; width: auto; }
.nav__menu { display: flex; align-items: center; gap: .25rem; margin-left: auto; }
.nav__link {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .55rem .85rem;
  font-size: .95rem; font-weight: 700; color: var(--ink);
  border-radius: var(--radius);
  position: relative;
}
.nav__link .ico { width: .95em; height: .95em; transition: transform .2s; }
.nav__link:hover { color: var(--green-600); }
.nav__link[aria-current="page"] { color: var(--green-600); }
.nav__link[aria-current="page"]::after {
  content: ""; position: absolute; left: .85rem; right: .85rem; bottom: .15rem; height: 2px; background: var(--lime-500);
}
.nav__actions { display: flex; align-items: center; gap: .75rem; }
.nav__mobile-cta { display: none; }
.has-dropdown { position: relative; }
.dropdown {
  position: absolute; top: calc(100% + .4rem); left: 50%; transform: translate(-50%, 6px);
  width: 360px; padding: .5rem;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden; transition: opacity .18s, transform .18s, visibility .18s;
}
.dropdown::before { content: ""; position: absolute; left: 0; right: 0; top: -.6rem; height: .6rem; }
.has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.has-dropdown:hover .dropdown__toggle .ico { transform: rotate(180deg); }
.dropdown a { display: flex; gap: .8rem; align-items: flex-start; padding: .7rem .75rem; border-radius: var(--radius); color: var(--ink); }
.dropdown a:hover { background: var(--surface); }
.dropdown__ico { width: 1.35rem; height: 1.35rem; color: var(--green-600); margin-top: .1rem; flex: none; }
.dropdown__t { display: block; font-weight: 700; font-size: .93rem; line-height: 1.3; }
.dropdown__d { display: block; font-size: .82rem; color: var(--muted); line-height: 1.35; }
.dropdown a.dropdown__all { border-top: 1px solid var(--line); border-radius: 0; margin-top: .3rem; padding-top: .8rem; font-weight: 700; font-size: .88rem; color: var(--green-600); align-items: center; }
.dropdown__all .ico { width: 1em; height: 1em; }
.nav__toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; padding: 10px; }
.nav__toggle span { display: block; height: 2px; background: var(--ink); margin: 5px 0; transition: transform .25s, opacity .25s; }
.menu-open .nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-open .nav__toggle span:nth-child(2) { opacity: 0; }
.menu-open .nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1040px) {
  /* backdrop-filter would make the header the containing block of the fixed menu */
  .site-header { backdrop-filter: none; background: #fff; }
  .nav { min-height: 66px; }
  .brand__logo { height: 38px; }
  .nav__toggle { display: block; }
  .nav__cta { display: none; }
  .nav__actions { margin-left: auto; }
  .nav__menu {
    position: fixed; inset: 66px 0 0 0; z-index: 99;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 1rem var(--gutter) 2rem;
    background: #fff; overflow-y: auto;
    transform: translateX(100%); transition: transform .3s var(--ease);
    visibility: hidden;
  }
  .admin-bar .nav__menu { top: calc(66px + 46px); }
  .menu-open .nav__menu { transform: none; visibility: visible; }
  .menu-open { overflow: hidden; }
  .nav__link { padding: .95rem 0; font-size: 1.1rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav__link[aria-current="page"]::after { display: none; }
  .dropdown { position: static; transform: none; width: auto; opacity: 1; visibility: visible; box-shadow: none; border: 0; padding: .3rem 0 .6rem; }
  .has-dropdown:hover .dropdown { transform: none; }
  .dropdown__toggle .ico { display: none; }
  .dropdown a { padding: .55rem 0; }
  .dropdown__d { display: none; }
  .nav__mobile-cta { display: inline-flex; margin-top: 1.5rem; }
}

/* ------------------------------- Heroes --------------------------------- */
.hero, .page-hero, .cta-band, .bg-cubes {
  position: relative;
  background-color: var(--forest-900);
  background-image: url("../img/cube-pattern.png");
  background-repeat: no-repeat;
  background-size: 1800px auto;   /* fixed scale 0.5 of the 3600x1900 pattern: same (small) cube size on every banner */
  background-position: right center;
  color: var(--on-dark-muted);
  isolation: isolate;
}
.hero { padding-block: clamp(4.5rem, 11vw, 9rem) clamp(4rem, 9vw, 7.5rem); }
.hero h1 { color: #fff; max-width: 13ch; margin-bottom: .45em; }
.hero__sub { font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: #d8e0da; margin-bottom: 1.4rem; }
.hero__sub span { opacity: .55; padding-inline: .45em; }
.hero__lead { max-width: 760px; font-size: 1.08rem; color: var(--on-dark-muted); }
.hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.hero__place { margin-top: clamp(2.5rem, 6vw, 4.5rem); font-size: .85rem; color: #8fa196; display: flex; align-items: center; gap: .45rem; }
.hero__place .ico { width: 1rem; height: 1rem; color: var(--lime-500); }
@media (max-width: 760px) {
  .hero, .page-hero, .cta-band, .bg-cubes { background-position: 70% center; }
  .hero::before, .page-hero::before, .cta-band::before { content: ""; position: absolute; inset: 0; background: rgba(16, 38, 27, .62); z-index: -1; }
}

.page-hero { padding-block: clamp(3.5rem, 8vw, 6rem) clamp(3rem, 6vw, 4.5rem); }
.page-hero h1 { color: #fff; max-width: 20ch; font-size: clamp(2.1rem, 4.4vw, 3.3rem); }
.page-hero .lead { color: var(--on-dark-muted); max-width: 760px; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: .5rem; font-size: .84rem; color: #8fa196; margin-bottom: 1.8rem; }
.breadcrumb a { color: #c9d4cc; }
.breadcrumb a:hover { color: var(--lime-500); }
.breadcrumb span[aria-current] { color: #fff; }
.page-hero .tags { margin-top: 1.5rem; }
.page-hero .tags li { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .18); color: #e3ebe5; }

/* ------------------------------- About band ------------------------------ */
.split { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.split--flip > :first-child { order: 2; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .split--flip > :first-child { order: 0; } }
.split__media { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); }
.split__media img { width: 100%; height: 100%; object-fit: cover; }
.split__media--tall { aspect-ratio: 4 / 4.6; }
.split__media figcaption { position: absolute; left: 1rem; bottom: .8rem; font-size: .75rem; font-style: italic; color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, .6); }
.facts-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; margin-top: 2rem; }
.facts-row div::before { content: ""; display: block; width: 14px; height: 14px; background: var(--lime-500); margin-bottom: .8rem; }
.facts-row div:nth-child(2)::before { background: var(--green-600); }
.facts-row div:nth-child(3)::before { background: var(--green-800); }
.facts-row strong { display: block; color: var(--ink); font-size: .92rem; }
.facts-row span { display: block; font-size: .85rem; color: var(--muted); line-height: 1.45; }
@media (max-width: 520px) { .facts-row { grid-template-columns: 1fr; } }

/* ---------------------------------- Stats -------------------------------- */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1rem, 3vw, 2.2rem); }
.stat { border-top: 3px solid var(--lime-500); padding-top: 1.4rem; }
.stat:nth-child(2) { border-color: var(--green-600); }
.stat:nth-child(3) { border-color: var(--green-800); }
.stat:nth-child(4) { border-color: var(--ink); }
.stat__n { display: block; font-size: clamp(2.6rem, 5vw, 3.8rem); font-weight: 700; line-height: 1; color: var(--green-800); letter-spacing: -.03em; margin-bottom: .9rem; }
.stat p { font-size: .92rem; line-height: 1.5; margin: 0; }
.outreach { margin-top: 2.5rem; font-size: .88rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 1.2rem; }
.outreach strong { color: var(--ink); }
@media (max-width: 860px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 460px) { .stats { grid-template-columns: 1fr; } }

/* ------------------------------ Discipline cards ------------------------- */
.disc-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.2rem);
  color: var(--muted);
  border: 1px solid transparent;
  transition: border-color .2s, transform .25s var(--ease), box-shadow .25s var(--ease);
}
.section--surface .disc-card { background: #fff; }
a.disc-card:hover { border-color: var(--line-2); transform: translateY(-3px); box-shadow: var(--shadow-md); color: var(--muted); }
.disc-card__top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 2.2rem; }
.disc-card__top .ico { width: 2.4rem; height: 2.4rem; color: var(--green-600); stroke-width: 1.5; }
.disc-card__n { font-size: 2rem; font-weight: 700; color: var(--lime-500); line-height: 1; }
.disc-card h3 { font-size: 1.35rem; margin-bottom: .7rem; }
.disc-card p { font-size: .95rem; }
.disc-card .arrow-link { margin-top: auto; padding-top: .6rem; }
.disc-card ul.mini { list-style: none; margin: .2rem 0 1.2rem; }
.disc-card ul.mini li { position: relative; padding-left: 1.1rem; font-size: .9rem; margin-bottom: .35rem; }
.disc-card ul.mini li::before { content: ""; position: absolute; left: 0; top: .55em; width: 6px; height: 6px; background: var(--lime-500); }

/* ------------------------------ Application tiles ------------------------ */
.app-tile {
  display: flex; flex-direction: column; gap: .35rem;
  background: var(--forest-800); border-radius: var(--radius);
  padding: 1.6rem 1.5rem 1.5rem;
  color: var(--on-dark-muted);
  transition: background-color .2s, transform .25s var(--ease);
  min-height: 170px;
}
a.app-tile:hover { background: var(--forest-700); transform: translateY(-2px); color: var(--on-dark-muted); }
.app-tile .ico { width: 2rem; height: 2rem; color: var(--lime-500); margin-bottom: 1rem; stroke-width: 1.6; }
.app-tile h3 { font-size: 1.1rem; margin: 0; color: #fff; }
.app-tile p { font-size: .87rem; margin: 0; line-height: 1.5; }

/* -------------------------------- Coupling ------------------------------- */
.coupling svg { width: 100%; max-width: 460px; margin-inline: auto; }
.coupling text { font-family: var(--font); }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.5rem; }

/* -------------------------------- Tags ----------------------------------- */
.tags { display: flex; flex-wrap: wrap; gap: .45rem; list-style: none; }
.tags li {
  font-size: .75rem; font-weight: 700; color: var(--green-800);
  border: 1px solid var(--line-2); border-radius: 999px;
  padding: .28rem .8rem; background: #fff; line-height: 1.35;
}

/* -------------------------------- Workflow ------------------------------- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; position: relative; counter-reset: step; }
.steps::before { content: ""; position: absolute; top: 18px; left: 18px; right: 25%; height: 2px; background: var(--green-600); }
.step { position: relative; }
.step__n {
  position: relative; z-index: 1;
  display: grid; place-items: center;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--green-600); color: #fff; font-weight: 700; font-size: .95rem;
  box-shadow: 0 0 0 6px var(--surface);
  margin-bottom: 1.4rem;
}
.step:last-child .step__n { background: var(--lime-500); color: var(--forest-900); }
.step h3 { font-size: 1.12rem; margin-bottom: .45rem; }
.step p { font-size: .92rem; margin: 0; }
.example {
  display: flex; gap: .9rem; align-items: center;
  margin-top: 2.5rem; background: #fff; border-radius: var(--radius);
  padding: 1rem 1.3rem; font-size: .92rem;
}
.example .ico { width: 1.6rem; height: 1.6rem; color: var(--green-600); }
.example strong { color: var(--ink); }
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr 1fr; row-gap: 2.2rem; }
  .steps::before { display: none; }
}
@media (max-width: 480px) { .steps { grid-template-columns: 1fr; } }

/* -------------------------------- Toolbox -------------------------------- */
.toolbox { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.toolbox__visual img { width: 100%; }
.toolbox__labels { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; font-size: .8rem; color: var(--muted-2); margin-top: .6rem; }
.tool-list { list-style: none; }
.tool-list li { border-top: 1px solid var(--line); padding: 1rem 0; }
.tool-list li:last-child { border-bottom: 1px solid var(--line); }
.tool-list strong { display: block; color: var(--ink); font-size: 1rem; }
.tool-list span { font-size: .88rem; }
@media (max-width: 900px) { .toolbox { grid-template-columns: 1fr; } }

/* ------------------------------- Lifecycle ------------------------------- */
.lifecycle { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .5rem; }
.lifecycle__head {
  display: flex; align-items: center;
  min-height: 58px; padding: .5rem 1.6rem .5rem 1.4rem;
  font-size: .86rem; font-weight: 700; color: #fff; line-height: 1.2;
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 50%, calc(100% - 16px) 100%, 0 100%, 16px 50%);
  margin-bottom: .8rem;
}
.lifecycle > div:first-child .lifecycle__head { clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 50%, calc(100% - 16px) 100%, 0 100%); padding-left: 1rem; }
.lifecycle > div:nth-child(1) .lifecycle__head { background: var(--lime-500); color: var(--forest-900); }
.lifecycle > div:nth-child(2) .lifecycle__head { background: #6fb12a; }
.lifecycle > div:nth-child(3) .lifecycle__head { background: var(--green-600); }
.lifecycle > div:nth-child(4) .lifecycle__head { background: #007a35; }
.lifecycle > div:nth-child(5) .lifecycle__head { background: var(--green-800); }
.lifecycle ul { list-style: none; display: grid; gap: .45rem; }
.lifecycle li a, .lifecycle li span {
  display: block; background: var(--surface); padding: .6rem .75rem; font-size: .8rem; line-height: 1.35; color: var(--ink); border-radius: 2px;
}
.lifecycle li a:hover { background: #e7eee4; color: var(--green-800); }
.why-note { margin-top: 1.8rem; font-size: .92rem; }
.why-note strong { color: var(--green-800); }
@media (max-width: 900px) {
  .lifecycle { grid-template-columns: 1fr 1fr; gap: 1.2rem .6rem; }
}
@media (max-width: 520px) { .lifecycle { grid-template-columns: 1fr; } .lifecycle__head { clip-path: none !important; border-radius: 2px; } }

/* ----------------------------- Project cards ----------------------------- */
.pcard {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; color: var(--muted);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .2s;
}
.pcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--line-2); color: var(--muted); }
.pcard__media { aspect-ratio: 16 / 10; background: var(--surface); display: grid; place-items: center; padding: 1.1rem; overflow: hidden; }
.pcard__media img { max-height: 100%; width: auto; object-fit: contain; transition: transform .5s var(--ease); }
.pcard__media--photo { padding: 0; }
.pcard__media--photo img { width: 100%; height: 100%; object-fit: cover; }
.pcard:hover .pcard__media img { transform: scale(1.03); }
.pcard__body { display: flex; flex-direction: column; flex: 1; padding: 1.4rem 1.4rem 1.5rem; }
.kicker { font-size: .68rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--green-600); margin-bottom: .6rem; }
.pcard h3 { font-size: 1.12rem; margin-bottom: .55rem; }
.pcard p { font-size: .9rem; line-height: 1.55; }
.pcard .tags { margin-bottom: 1.1rem; }
.pcard .tags li { font-size: .7rem; padding: .2rem .65rem; }
.pcard .arrow-link { margin-top: auto; }
.pcard.is-hidden { display: none; }

.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.chip {
  border: 1px solid var(--line-2); background: #fff; color: var(--ink);
  border-radius: 999px; padding: .5rem 1rem; font-size: .85rem; font-weight: 700; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.chip:hover { border-color: var(--green-600); color: var(--green-600); }
.chip.is-active { background: var(--forest-900); color: #fff; border-color: var(--forest-900); }
.filters__sep { width: 1px; align-self: stretch; background: var(--line-2); margin-inline: .35rem; }
@media (max-width: 760px) { .filters__sep { flex-basis: 100%; height: 0; background: none; margin: 0; } }
.filters__empty { text-align: center; padding: 2rem 0; }

/* -------------------------------- Matrix --------------------------------- */
.matrix-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-top: 1px solid var(--line); }
.matrix { width: 100%; min-width: 820px; border-collapse: collapse; font-size: .85rem; }
.matrix th, .matrix td { padding: .65rem .6rem; border-bottom: 1px solid var(--line); text-align: center; vertical-align: middle; }
.matrix thead th { font-size: .66rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--green-600); line-height: 1.3; }
.matrix thead th:nth-child(-n+3) { color: var(--muted-2); letter-spacing: .2em; text-align: left; }
.matrix tbody th { text-align: left; font-weight: 400; }
.matrix tbody th a { color: var(--ink); font-weight: 700; }
.matrix tbody th a:hover { color: var(--green-600); }
.matrix td.m-client, .matrix td.m-year { text-align: left; color: var(--muted); white-space: nowrap; }
.matrix tbody tr:hover { background: var(--surface); }
.matrix .dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: var(--green-600); }
.matrix .m-lab .dot { background: var(--lime-500); }
.matrix .m-thm .dot { background: var(--green-800); }
.matrix .m-const .dot { background: var(--ink); }

/* --------------------------------- Case ---------------------------------- */
.case { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(2rem, 6vw, 4.5rem); align-items: start; }
.case__block { margin-bottom: 2.4rem; }
.case__challenge { font-size: 1.2rem; line-height: 1.55; color: var(--ink); }
.sq-list { list-style: none; display: grid; gap: .7rem; }
.sq-list li { position: relative; padding-left: 1.5rem; }
.sq-list li::before { content: ""; position: absolute; left: 0; top: .5em; width: 9px; height: 9px; background: var(--lime-500); }
.impact-list { list-style: none; display: grid; gap: .75rem; }
.impact-list li { display: flex; gap: .7rem; align-items: flex-start; font-weight: 700; color: var(--green-800); }
.impact-list .ico { width: 1.35rem; height: 1.35rem; color: var(--green-600); margin-top: .05rem; }
.case__side { position: sticky; top: 100px; display: grid; gap: 1.4rem; }
.case__figure { margin: 0; background: var(--surface); border-radius: var(--radius-lg); padding: 1.4rem; }
.case__figure img { width: 100%; max-height: 380px; object-fit: contain; margin-inline: auto; }
.case__figure--photo { padding: 0; overflow: hidden; }
.case__figure--photo img { max-height: none; object-fit: cover; }
.case__figure--photo figcaption { padding: .9rem 1.2rem 1rem; }
.case__figure figcaption { font-size: .8rem; font-style: italic; color: var(--muted-2); text-align: center; margin-top: .8rem; }
.facts { margin: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.facts div { display: grid; grid-template-columns: 7.5rem 1fr; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.facts dt { font-size: .68rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--muted-2); padding-top: .2rem; }
.facts dd { margin: 0; color: var(--ink); }
.side-card { background: var(--surface); border-radius: var(--radius-lg); padding: 1.3rem 1.4rem; }
.link-list { list-style: none; display: grid; gap: .4rem; }
.link-list a { font-weight: 700; font-size: .93rem; }
.case__pubs { margin-top: 1rem; }
.case-nav { display: grid; grid-template-columns: 1fr auto 1fr; gap: 1rem; align-items: center; margin-top: clamp(2rem, 5vw, 3.5rem); padding-top: 1.6rem; border-top: 1px solid var(--line); }
.case-nav a { display: flex; flex-direction: column; color: var(--ink); font-weight: 700; }
.case-nav a:hover { color: var(--green-600); }
.case-nav .label { margin-bottom: .3rem; }
.case-nav__next { text-align: right; }
.case-nav__all { border: 1px solid var(--line-2); border-radius: var(--radius); padding: .6rem 1rem; font-size: .88rem; }
@media (max-width: 900px) {
  .case { grid-template-columns: 1fr; }
  .case__side { position: static; }
}
@media (max-width: 560px) {
  .case-nav { grid-template-columns: 1fr 1fr; }
  .case-nav__all { display: none !important; }
}

/* ------------------------------- Service page ---------------------------- */
.svc-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(2rem, 6vw, 4.5rem); align-items: start; }
.info-card { background: var(--surface); border-radius: var(--radius-lg); padding: clamp(1.4rem, 3vw, 2rem); position: sticky; top: 100px; }
.info-card h2, .info-card h3 { font-size: 1.15rem; }
.check-list { list-style: none; display: grid; gap: .65rem; margin: 1rem 0 1.5rem; }
.check-list li { display: flex; gap: .6rem; align-items: flex-start; font-size: .95rem; color: var(--ink); }
.check-list .ico { width: 1.15rem; height: 1.15rem; color: var(--green-600); margin-top: .2rem; }
.info-card .btn { width: 100%; }
.cap-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.5rem; }
.cap-card .ico { width: 1.9rem; height: 1.9rem; color: var(--green-600); margin-bottom: 1rem; stroke-width: 1.5; }
.cap-card h3 { font-size: 1.05rem; margin-bottom: .45rem; }
.cap-card p { font-size: .9rem; margin: 0; }
@media (max-width: 900px) { .svc-layout { grid-template-columns: 1fr; } .info-card { position: static; } }

/* ------------------------------- Why cards ------------------------------- */
.why-card { background: var(--forest-800); border-radius: var(--radius); padding: 1.6rem 1.5rem; }
.why-card .ico { width: 2rem; height: 2rem; color: var(--lime-500); margin-bottom: 1.2rem; stroke-width: 1.6; }
.why-card h3 { color: #fff; font-size: 1.08rem; margin-bottom: .8rem; }
.why-card p { font-size: .88rem; margin: 0; line-height: 1.55; }
.pub-strip { margin-top: 2rem; font-size: .86rem; color: var(--on-dark-muted); }
.pub-strip strong { color: #fff; }

/* ---------------------------- Publications ------------------------------- */
.pubs { list-style: none; display: grid; gap: 0; border-top: 1px solid var(--line); }
.pub { display: grid; grid-template-columns: 11rem 1fr; gap: 1.5rem; padding: 1.3rem 0; border-bottom: 1px solid var(--line); }
.pub p { margin: 0; font-size: .95rem; }
.pub em { color: var(--ink); font-style: normal; font-weight: 700; }
.pub__meta { display: flex; flex-direction: column; gap: .2rem; }
.pub__year { font-size: 1.4rem; font-weight: 700; color: var(--green-800); line-height: 1; }
.pub__kind { font-size: .7rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--muted-2); }
.pub__link { word-break: break-all; font-size: .88rem; }
.pubs--compact .pub { grid-template-columns: 1fr; gap: .5rem; }
.pubs--compact .pub__meta { flex-direction: row; align-items: baseline; gap: .8rem; }
.pubs--compact .pub__year { font-size: 1rem; }
@media (max-width: 640px) { .pub { grid-template-columns: 1fr; gap: .5rem; } .pub__meta { flex-direction: row; align-items: baseline; gap: .8rem; } }

/* ------------------------------ People / clients ------------------------- */
.person { display: flex; gap: 1.5rem; align-items: center; background: var(--surface); border-radius: var(--radius-lg); padding: 1.6rem; }
.person__avatar { width: 84px; height: 84px; border-radius: 50%; background: var(--forest-900); display: grid; place-items: center; flex: none; }
.person__avatar img { width: 46px; }
.person h3 { margin: 0 0 .2rem; }
.person .role { font-size: .85rem; font-weight: 700; color: var(--green-600); margin-bottom: .5rem; }
.person p { font-size: .92rem; margin: 0; }
.clients { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.client { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.3rem 1.2rem; background: #fff; }
.client strong { display: block; color: var(--ink); font-size: 1.15rem; margin-bottom: .25rem; }
.client span { font-size: .84rem; line-height: 1.45; display: block; }
@media (max-width: 860px) { .clients { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .clients { grid-template-columns: 1fr; } .person { flex-direction: column; align-items: flex-start; } }
.value-card { border-top: 3px solid var(--lime-500); padding-top: 1.2rem; }
.value-card:nth-child(2) { border-color: var(--green-600); }
.value-card:nth-child(3) { border-color: var(--green-800); }
.value-card h3 { font-size: 1.1rem; }
.value-card p { font-size: .93rem; margin: 0; }

/* --------------------------------- CTA band ------------------------------ */
.cta-band { padding-block: clamp(3.5rem, 8vw, 5.5rem); }
.cta-band__inner { display: flex; flex-direction: column; align-items: flex-start; gap: 1.8rem; }
.cta-band h2 { color: #fff; font-size: clamp(1.9rem, 4vw, 2.9rem); }
.cta-band p { max-width: 900px; margin: 0; }
.cta-band__actions { display: flex; gap: .8rem; flex-wrap: wrap; }

/* ------------------------------ Contact ---------------------------------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(2rem, 6vw, 4.5rem); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-size: .85rem; font-weight: 700; color: var(--ink); margin-bottom: .4rem; }
.field input, .field select, .field textarea {
  width: 100%; padding: .8rem .95rem;
  border: 1px solid var(--line-2); border-radius: var(--radius);
  background: #fff; color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 150px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--green-600); box-shadow: 0 0 0 3px rgba(148, 193, 31, .3); }
.field--hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consent { display: flex; gap: .6rem; align-items: flex-start; font-size: .86rem; margin: .3rem 0 1.4rem; cursor: pointer; }
.consent input { margin-top: .25rem; accent-color: var(--green-600); }
.form-status { padding: .9rem 1.1rem; border-radius: var(--radius); background: var(--surface); color: var(--ink); font-size: .92rem; margin-top: 1rem; }
.form-status--ok { background: #e8f3dc; border-left: 4px solid var(--lime-500); }
.form-status--err { background: #fbeaea; border-left: 4px solid #c0392b; }
.contact-rows { display: grid; gap: 1.2rem; margin-top: 1.2rem; }
.contact-row { display: flex; gap: .9rem; align-items: flex-start; }
.contact-row .ico { width: 1.3rem; height: 1.3rem; color: var(--green-600); margin-top: .15rem; }
.contact-row .t { font-size: .68rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--muted-2); }
.contact-row span, .contact-row a { color: var(--ink); }
.map { margin-top: 1.4rem; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); }
.map iframe { display: block; width: 100%; height: 280px; border: 0; }

/* -------------------------------- Footer --------------------------------- */
.site-footer { background: var(--forest-900); color: #9fb0a5; padding-top: clamp(3rem, 6vw, 4.5rem); font-size: .92rem; }
.site-footer a { color: #d3ddd6; }
.site-footer a:hover { color: var(--lime-500); }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.1fr; gap: 2rem; padding-bottom: 2.5rem; }
.footer__brand .brand__logo { height: 48px; margin-bottom: 1.2rem; }
.footer__brand p { max-width: 330px; font-size: .9rem; }
.footer__social { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .2); }
.footer__social .ico { width: 1rem; height: 1rem; }
.footer__col h2 { font-size: .7rem; letter-spacing: .24em; text-transform: uppercase; color: var(--lime-500); margin-bottom: 1.1rem; }
.footer__col ul { list-style: none; display: grid; gap: .55rem; }
.footer__contact li { display: flex; gap: .6rem; align-items: flex-start; }
.footer__contact .ico { width: 1.1rem; height: 1.1rem; color: var(--lime-500); margin-top: .2rem; }
.footer__bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-block: 1.3rem; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .82rem; }
@media (max-width: 860px) { .footer__grid { grid-template-columns: 1fr 1fr; } .footer__brand { grid-column: 1 / -1; } }
@media (max-width: 460px) { .footer__grid { grid-template-columns: 1fr; } }

/* ------------------------------ WordPress bits --------------------------- */
.alignleft { float: left; margin: 0 1.5rem 1rem 0; }
.alignright { float: right; margin: 0 0 1rem 1.5rem; }
.aligncenter { margin-inline: auto; }
.wp-caption-text, .wp-element-caption { font-size: .82rem; color: var(--muted-2); }
.wp-block-image img { border-radius: var(--radius-lg); }
.nav-links { display: flex; gap: .5rem; flex-wrap: wrap; }
.nav-links .page-numbers { padding: .45rem .8rem; border: 1px solid var(--line); border-radius: var(--radius); }
.nav-links .current { background: var(--forest-900); color: #fff; border-color: var(--forest-900); }
.post-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.5rem; }

/* ------------------------------- Motion ---------------------------------- */
/* Content is only hidden once main.js has flagged <html class="js">, so it
   stays visible without JavaScript. */
.js [data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
}

/* ------------------------------- Print ----------------------------------- */
@media print {
  .site-header, .site-footer, .cta-band, .filters { display: none; }
  .hero, .page-hero { background: none; color: #000; }
  .hero h1, .page-hero h1 { color: #000; }
  [data-reveal] { opacity: 1; transform: none; }
}

/* ------------------------------ Applications ----------------------------- */
section[id] { scroll-margin-top: 90px; }
.theme .split { align-items: start; }
.theme .case__figure { position: sticky; top: 100px; }
.theme .label { margin-top: 1.4rem; }
.theme__svc { margin-top: 1.8rem; }
.theme__svc .tags a { color: inherit; }
.theme__svc .tags li:hover { border-color: var(--green-600); }
a.chip { display: inline-block; }
a.chip:hover { color: var(--green-600); }
@media (max-width: 900px) { .theme .case__figure { position: static; } }

/* ------------------------------ v4 additions ----------------------------- */
.stats--2x2 { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2rem; }
.edge-figure { margin: 0; background: var(--surface); border-radius: var(--radius-lg); padding: clamp(1rem, 3vw, 2.2rem); }
.edge-figure img { width: 100%; max-width: 980px; margin-inline: auto; }
.tool-grid { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 2rem; margin-top: 2rem; }
.tool-grid li { border-top: 1px solid var(--line); padding: .9rem 0; }
.tool-grid strong { display: block; color: var(--ink); }
.tool-grid span { font-size: .88rem; }
.split__media--fig { background: #fff; border: 1px solid var(--line); padding: clamp(1rem, 2.5vw, 1.8rem); }
.split__media--fig img { object-fit: contain; max-height: 520px; margin-inline: auto; }
.section--surface .split__media--fig { border-color: transparent; }
@media (max-width: 860px) { .tool-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .stats--2x2, .tool-grid { grid-template-columns: 1fr; } }

/* ---------------------------- Language switch ---------------------------- */
.lang-switch { display: flex; align-items: center; border: 1px solid var(--line-2); border-radius: 999px; padding: 2px; }
.lang-switch a { font-size: .75rem; font-weight: 700; letter-spacing: .06em; color: var(--muted); padding: .3rem .6rem; border-radius: 999px; line-height: 1; }
.lang-switch a:hover { color: var(--green-600); }
.lang-switch a[aria-current] { background: var(--forest-900); color: #fff; }
.nowrap { white-space: nowrap; }

/* ------------------------------ v4.1 tweaks ------------------------------ */
.footer__name { color: #fff; font-size: 1.05rem; font-weight: 700; letter-spacing: -.005em; margin-bottom: .45rem; }
.footer__blurb { font-size: .86rem; color: #8fa196; }
.nav__cta[aria-current] { background: var(--green-800); box-shadow: inset 0 -3px 0 var(--lime-500); }
.map-link { margin-top: .7rem; font-size: .88rem; }
.map-link a { display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; }
.map-link .ico { width: 1em; height: 1em; }
.stat__n { font-variant-numeric: tabular-nums; }
.contact-grid .info-card { position: static; }

/* --------------------------- Rock photo band ----------------------------- */
.bg-rock {
  background-color: var(--forest-900);
  background-image: linear-gradient(100deg, rgba(16, 38, 27, .92) 0%, rgba(16, 38, 27, .72) 45%, rgba(16, 38, 27, .48) 100%), url("../img/rock-background.jpg");
  background-size: cover;
  background-position: center 40%;
}
.bg-rock .eyebrow { color: var(--lime-500); }
.bg-rock .lead { color: #c9d4cc; }
.bg-rock .arrow-link { color: var(--lime-500); }
.bg-rock .stat__n { color: #fff; }
.bg-rock .stat p { color: #c9d4cc; }
.bg-rock .stat:nth-child(4) { border-color: #fff; }
@media (min-width: 1100px) { .bg-rock { background-attachment: fixed; } }
.bg-rock .stat p { text-shadow: 0 1px 2px rgba(0,0,0,.5); }

/* Page hero with a photo background (gradient + photo set inline on the element,
   so the image URL resolves relative to the page, not to this stylesheet) */
.page-hero--photo {
  background-size: cover;
  background-position: center;
}

/* ------------------------- Expertise page layout ------------------------- */
.svc-layout { align-items: center; }
.svc-layout .info-card { position: static; }
.cover-grid { margin-bottom: .5rem; }
.cover-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.4rem 1.4rem 1.3rem; }
.section--surface .cover-card { border-color: transparent; }
.cover-card::before { content: ""; display: block; width: 12px; height: 12px; background: var(--lime-500); margin-bottom: 1rem; }
.cover-card h3 { font-size: 1.05rem; margin-bottom: .45rem; }
.cover-card p { font-size: .9rem; margin: 0; line-height: 1.55; }
.cover-subhead { font-size: 1.15rem; margin: 2rem 0 1rem; }

/* ------------------------------ Consent ---------------------------------- */
.consent-banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 150; background: var(--forest-900); color: #d3ddd6; border-top: 3px solid var(--lime-500); box-shadow: 0 -10px 30px rgba(0, 0, 0, .25); }
.consent-banner[hidden] { display: none; }
.consent-banner__inner { display: flex; gap: 1.5rem; align-items: center; justify-content: space-between; padding-block: 1.1rem; }
.consent-banner strong { color: #fff; display: block; margin-bottom: .2rem; }
.consent-banner p { margin: 0; font-size: .88rem; max-width: 760px; }
.consent-banner a { color: var(--lime-500); text-decoration: underline; }
.consent-banner__actions { display: flex; gap: .6rem; flex: none; }
@media (max-width: 760px) { .consent-banner__inner { flex-direction: column; align-items: stretch; } .consent-banner__actions { justify-content: flex-end; } }
.footer__legal { display: inline-flex; gap: 1.2rem; flex-wrap: wrap; }
.footer__link-btn { background: none; border: 0; padding: 0; color: #d3ddd6; cursor: pointer; font: inherit; }
.footer__link-btn:hover { color: var(--lime-500); }
.map { position: relative; min-height: 280px; background: var(--surface); }
.map__placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .9rem; min-height: 280px; padding: 1.5rem; text-align: center; font-size: .88rem; color: var(--muted); }
.map__placeholder[hidden], .map iframe[hidden] { display: none; }
.map__placeholder p { margin: 0; max-width: 320px; }
.consent a { text-decoration: underline; }
/* Privacy / legal page */
.legal { max-width: 820px; }
.legal h2 { font-size: 1.35rem; margin-top: 2.2rem; }
.legal h2:first-child { margin-top: 0; }
.legal h3 { font-size: 1.05rem; margin-top: 1.4rem; }
.legal__address { background: var(--surface); border-radius: var(--radius); padding: 1rem 1.2rem; color: var(--ink); }
.legal code { font-size: .88em; background: var(--surface); padding: .1rem .35rem; border-radius: 3px; }
.todo { background: #fff3b0; color: #6b5400; padding: 0 .2rem; border-radius: 2px; font-weight: 700; }

/* Expertise banners: identical height on the three expertise pages, content centred */
.page-hero--photo { display: flex; align-items: center; min-height: 560px; }
.page-hero--photo > .container { width: 100%; }
@media (max-width: 900px) { .page-hero--photo { min-height: 640px; } }
@media (max-width: 480px) { .page-hero--photo { min-height: 600px; } }

/* Big faint expertise number, flush right, spanning the full banner height.
   Arial digits are 0.716 em tall; with line-height 1 the digit top sits 0.1305 em below the line top. */
.page-hero--photo { position: relative; overflow: hidden; }
.page-hero--photo > .container { position: relative; z-index: 1; }
.page-hero--photo[data-num]::after {
  content: attr(data-num);
  position: absolute; right: -.041em; top: -.1305em;  /* negative right offset cancels each digit's side-bearing */
  font-size: 782px; line-height: 1; font-weight: 700;
  color: rgba(255, 255, 255, .16);
  pointer-events: none; user-select: none;
}
.page-hero--photo[data-num="1"]::after { right: -.15em; }
@media (max-width: 900px) { .page-hero--photo[data-num]::after { font-size: 894px; } }
@media (max-width: 760px) { .page-hero--photo[data-num]::after { display: none; } }

/* ---------------------- Applications: big section letters --------------------
   Same idea as the expertise banner numbers: one faint letter, full section height,
   flush to the edge on the text side. Font size is set by main.js (height / 0.719). */
.theme[data-letter] { position: relative; overflow: hidden; overflow: clip; }
.theme[data-letter] > .container { position: relative; z-index: 1; }
.theme[data-letter]::before {
  content: attr(data-letter);
  position: absolute; top: -.1275em;
  font-size: var(--letter-size, 700px); line-height: 1; font-weight: 700;
  color: rgba(0, 102, 51, .045);
  pointer-events: none; user-select: none;
}
.theme--left::before { left: -.063em; }
.theme--right::before { right: -.05em; }
.theme--left[data-letter="A"]::before { left: 0; }
.theme--left[data-letter="C"]::before { left: -.047em; }
.theme--right[data-letter="F"]::before { right: -.033em; }
.theme--right[data-letter="B"]::before, .theme--right[data-letter="D"]::before { right: -.05em; }
@media (max-width: 760px) { .theme[data-letter]::before { display: none; } }
/* quick links inside the Applications banner */
.page-hero .filters { margin: 2rem 0 0; }
.page-hero .chip { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .2); color: #e3ebe5; }
.page-hero .chip:hover { border-color: var(--lime-500); color: var(--lime-500); }
.chip__l { display: inline-block; font-weight: 700; color: rgba(255, 255, 255, .38); margin-right: .45rem; }

/* Lime-cube arrangements: a different one per banner (see CUBES in build.py) */
.cubes-1 { background-image: url("../img/cubes-1.jpg"); }
.cubes-2 { background-image: url("../img/cubes-2.jpg"); }
.cubes-3 { background-image: url("../img/cubes-3.jpg"); }
.cubes-4 { background-image: url("../img/cubes-4.jpg"); }
.cubes-5 { background-image: url("../img/cubes-5.jpg"); }
.cubes-6 { background-image: url("../img/cubes-6.jpg"); }
.cubes-7 { background-image: url("../img/cubes-7.jpg"); }
.cubes-8 { background-image: url("../img/cubes-8.jpg"); }
.cubes-9 { background-image: url("../img/cubes-9.jpg"); }
.cubes-10 { background-image: url("../img/cubes-10.jpg"); }

/* Animated cubes (home banner): clean grid behind, cubes on their own layer */
.cubes-live { background-image: url("../img/cube-grid.jpg") !important; }
.cube-layer { position: absolute; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; }
.cube-layer img { position: absolute; width: var(--cube-w); height: var(--cube-h); max-width: none; opacity: 0; transition: opacity 1.4s ease-in-out; }
.cube-layer img.on { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .cube-layer img { transition-duration: 1.4s !important; } }
.footer__social-row { margin-top: .4rem; }
.cube-layer--instant img { transition: none !important; }

/* =========================================================================
   V2 LAYOUT ("cinematic"): full-screen heroes, full-screen menu, big type.
   Everything below overrides / extends the V1 design system above.
   ========================================================================= */
:root { --xpad: clamp(1.25rem, 3.4vw, 2.9rem); --xh: 84px; }
.xwrap { width: 100%; max-width: 1440px; margin-inline: auto; padding-inline: var(--xpad); }
.xhero .container, .xscreen .container { max-width: 1440px; padding-inline: var(--xpad); }

/* ---- Header: transparent over the hero, solid once scrolled ---- */
.site-header.xh { position: fixed; top: 0; left: 0; right: 0; z-index: 100; background: transparent; border: 0; box-shadow: none; backdrop-filter: none; transition: background .4s var(--ease); }
.admin-bar .site-header.xh { top: 32px; }
.xh.scrolled { background: rgba(16, 38, 27, .95); box-shadow: none; }
.xh__bar { height: var(--xh); display: flex; align-items: center; justify-content: space-between; padding-inline: var(--xpad); position: relative; z-index: 2; transition: height .4s var(--ease); }
.xh.scrolled .xh__bar { height: 66px; }
.xh .brand__logo { height: 34px; width: auto; }
.xh__right { display: flex; align-items: center; gap: clamp(.9rem, 2vw, 1.8rem); }
.xh .lang-switch { display: flex; gap: .2rem; }
.xh .lang-switch a { color: #c9d4cc; font-size: .82rem; font-weight: 700; letter-spacing: .14em; padding: .2rem .25rem; border: 0; background: none; }
.xh .lang-switch a[aria-current] { color: #fff; }
.xh .lang-switch a:hover { color: var(--lime-500); }
.xh__cta { color: #fff; font-size: .82rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; border-bottom: 2px solid var(--lime-500); padding-bottom: 3px; }
.xh__cta:hover { color: var(--lime-500); }
.xh__toggle { display: inline-flex; align-items: center; gap: .8rem; background: none; border: 0; padding: .4rem 0; color: #fff; cursor: pointer; font-size: .82rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.xh__burger { display: inline-grid; gap: 7px; width: 30px; }
.xh__burger i { display: block; height: 2px; background: currentColor; transition: transform .35s var(--ease); }
.menu-open .xh__burger i:first-child { transform: translateY(4.5px) rotate(45deg); }
.menu-open .xh__burger i:last-child { transform: translateY(-4.5px) rotate(-45deg); }
.xh__toggle:hover { color: var(--lime-500); }
@media (max-width: 640px) { .xh__cta, .xh__label { display: none; } }

/* ---- Full-screen menu ---- */
.xmenu { position: fixed; inset: 0; z-index: 1; background: var(--forest-900) url("../img/cube-grid.jpg") right center / 1800px auto no-repeat; opacity: 0; visibility: hidden; transition: opacity .45s var(--ease), visibility 0s .45s; overflow-y: auto; }
.menu-open .xmenu { opacity: 1; visibility: visible; transition: opacity .45s var(--ease); }
.menu-open .xh, .menu-open .xh.scrolled { background: transparent; }
body.menu-open { overflow: hidden; }
.xmenu__inner { min-height: 100%; display: grid; grid-template-columns: 1.6fr 1fr; gap: 4vw; align-items: end; padding: calc(var(--xh) + 4vh) var(--xpad) 9vh; }
.xmenu__main { list-style: none; padding: 0; margin: 0; }
.xmenu__main > li { opacity: 0; transform: translateY(24px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.menu-open .xmenu__main > li { opacity: 1; transform: none; }
.menu-open .xmenu__main > li:nth-child(2) { transition-delay: .05s; }
.menu-open .xmenu__main > li:nth-child(3) { transition-delay: .1s; }
.menu-open .xmenu__main > li:nth-child(4) { transition-delay: .15s; }
.menu-open .xmenu__main > li:nth-child(5) { transition-delay: .2s; }
.xmenu__link { display: flex; align-items: baseline; gap: 1.4rem; color: #fff; font-size: clamp(2.2rem, 5.6vw, 5rem); font-weight: 700; letter-spacing: -.025em; line-height: 1.12; transition: color .25s, padding .3s var(--ease); }
.xmenu__link:hover, .xmenu__link[aria-current] { color: var(--lime-500); }
.xmenu__link:hover { padding-left: .3em; }
.xmenu__n { font-size: .8rem; letter-spacing: .14em; color: var(--lime-500); font-weight: 700; min-width: 2.4rem; }
.xmenu__sub { list-style: none; display: flex; flex-wrap: wrap; gap: .3rem 1.6rem; padding: .3rem 0 .9rem 3.8rem; }
.xmenu__sub a { color: #c9d4cc; font-size: clamp(1rem, 1.3vw, 1.15rem); }
.xmenu__sub a:hover { color: var(--lime-500); }
.xmenu__side { color: #b9c6bd; font-size: 1rem; line-height: 1.6; border-left: 1px solid rgba(255,255,255,.18); padding-left: 2rem; }
.xmenu__side a { color: #fff; }
.xmenu__side a:hover { color: var(--lime-500); }
@media (max-width: 860px) { .xmenu__inner { grid-template-columns: 1fr; align-items: start; } .xmenu__side { border: 0; padding: 0; } .xmenu__sub { padding-left: 0; } }

/* ---- Full-screen hero ---- */
.xhero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end;
  padding: calc(var(--xh) + 6vh) 0 12vh;
  background-color: var(--forest-900); background-image: url("../img/cube-pattern.png");
  background-repeat: no-repeat; background-size: 1800px auto; background-position: right center;
  color: var(--on-dark-muted);
}
.xhero > .container { width: 100%; position: relative; z-index: 1; }
.xhero h1 { color: #fff; font-size: clamp(3rem, 7.6vw, 7.6rem); line-height: .97; letter-spacing: -.03em; max-width: 11ch; margin: .2em 0 .35em; }
.xhero--wide h1 { max-width: 15ch; font-size: clamp(2.6rem, 6vw, 6rem); }
.xhero .lead, .xhero__sub { color: #d3ddd6; font-size: clamp(1.05rem, 1.45vw, 1.35rem); max-width: 50ch; line-height: 1.5; }
.xhero__sub span { opacity: .55; padding-inline: .45em; }
.xhero .tags { margin-top: 1.8rem; }
.xhero .tags li { background: transparent; border-color: rgba(255, 255, 255, .3); color: #e3ebe5; }
.xhero .breadcrumb { margin-bottom: 1.4rem; }
.xhero--short { min-height: 70vh; min-height: 70svh; }
.xhero--auto { min-height: 0; padding-top: calc(var(--xh) + 14vh); }
.xhero--photo::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(16,38,27,.9) 0%, rgba(16,38,27,.5) 55%, rgba(16,38,27,.12) 100%); }
/* backgrounds: slow zoom-out on entry (scale) + parallax set by main.js (translate) */
.xhero__bg, .xscreen__bg { position: absolute; inset: -12% 0; z-index: -2; background-size: cover; background-position: center; scale: 1.08; transition: scale 2.4s var(--ease); will-change: translate; }
.xhero.in .xhero__bg, .xscreen.in .xscreen__bg { scale: 1; }
.xhero[data-num]::after { content: attr(data-num); position: absolute; right: 4vw; bottom: 3vh; z-index: 0; font-size: 70vh; line-height: .8; font-weight: 700; color: rgba(255, 255, 255, .12); pointer-events: none; }
.xscroll { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 2; color: #fff; opacity: .7; font-size: .7rem; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; display: flex; flex-direction: column; align-items: center; gap: .6rem; }
.xscroll::after { content: ""; width: 1px; height: 34px; background: currentColor; animation: xscroll 2s infinite; transform-origin: top; }
.xscroll:hover { color: var(--lime-500); opacity: 1; }
@keyframes xscroll { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
@media (max-width: 760px) {
  .xhero[data-num]::after { display: none; }
  .xhero::before { content: ""; position: absolute; inset: 0; background: rgba(16,38,27,.55); z-index: -1; }
  .xhero.xhero--photo::before { background: rgba(16,38,27,.72); }
}

/* ---- Full-screen panels (home) ---- */
.xscreen { position: relative; isolation: isolate; overflow: hidden; min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end; padding: calc(var(--xh) + 4vh) 0 11vh; background: var(--forest-900); color: #d3ddd6; }
.xscreen--center { align-items: center; }
.xscreen::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(16,38,27,.9) 0%, rgba(16,38,27,.45) 55%, rgba(16,38,27,.08) 100%); }
.xscreen--plain::before { display: none; }
.xscreen--grid { background: var(--forest-900) url("../img/cube-grid.jpg") right center / 1800px auto no-repeat; }
.xscreen__num { position: absolute; right: 4vw; bottom: 3vh; z-index: -1; font-size: 52vh; line-height: .8; font-weight: 700; color: rgba(255,255,255,.12); pointer-events: none; }
.xscreen h2 { color: #fff; font-size: clamp(2.5rem, 5.6vw, 5.4rem); line-height: 1; letter-spacing: -.025em; max-width: 14ch; margin: .2em 0 .4em; }
.xscreen p { font-size: clamp(1.05rem, 1.35vw, 1.3rem); line-height: 1.55; max-width: 48ch; }
.xlink { display: inline-flex; align-items: center; gap: .55rem; margin-top: 1.4rem; color: #fff; font-weight: 700; border-bottom: 2px solid var(--lime-500); padding-bottom: 5px; }
.xlink .ico { transition: transform .25s var(--ease); }
.xlink:hover { color: var(--lime-500); }
.xlink:hover .ico { transform: translateX(4px); }
.xlink--dark { color: var(--ink); }
.xlink--dark:hover { color: var(--green-800); }
.xstats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 7vh; }
.xstats > div { border-left: 1px solid rgba(255,255,255,.22); padding: 0 1.6rem; }
.xstats .stat__n { display: block; font-size: clamp(3rem, 6vw, 6rem); font-weight: 700; color: var(--lime-500); letter-spacing: -.03em; line-height: 1; }
.xscreen .xstats p { font-size: 1rem; color: #c7d3cb; margin: 1rem 0 0; max-width: 24ch; }
.xscreen--apps .xrows { margin-top: 1rem; }
.xsplit--apps { display: grid; grid-template-columns: 1fr 1.6fr; gap: 5vw; align-items: center; width: 100%; }
@media (max-width: 960px) { .xsplit--apps { grid-template-columns: 1fr; } }
@media (max-width: 860px) { .xstats { grid-template-columns: 1fr 1fr; row-gap: 2rem; } .xscreen__num { display: none; } }

/* Home on desktop: every panel is exactly one viewport high; main.js moves one screen per
   wheel gesture / key press. Small or short screens scroll freely. */
@media (min-width: 861px) and (min-height: 640px) {
  html.snap section[id] { scroll-margin-top: 0; }
  html.snap main > section { min-height: 100vh; }
  html.snap .xstatement, html.snap .xsection { display: flex; flex-direction: column; justify-content: center; padding-block: calc(var(--xh) + 2vh) 6vh; }
  html.snap .xstatement > .xwrap, html.snap .xsection > .xwrap { width: 100%; }
  html.snap .xtrio__item { min-height: 100vh; }
  html.snap .xcta { display: flex; align-items: center; padding-block: var(--xh) 0; }
  html.snap .xcta > .xwrap { width: 100%; }
}
.xdots { position: fixed; right: 26px; top: 50%; transform: translateY(-50%); z-index: 90; display: grid; gap: 14px; }
.xdots a { width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid #fff; opacity: .55; transition: all .3s; }
.xdots a.on { background: var(--lime-500); border-color: var(--lime-500); opacity: 1; transform: scale(1.3); }
.menu-open .xdots { display: none; }
@media (max-width: 860px) { .xdots { display: none; } }

/* ---- Statement ---- */
.xstatement { padding-block: clamp(5rem, 14vh, 10rem); }
.xstatement__big { font-size: clamp(1.7rem, 3.3vw, 3.2rem); line-height: 1.16; letter-spacing: -.018em; font-weight: 700; color: var(--ink); max-width: 30ch; margin: 0; }
.xstatement__big em { font-style: normal; color: var(--green-800); }
.xstatement__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 5vw; margin-top: clamp(2rem, 6vh, 4rem); }
.xstatement__cols p { font-size: 1.08rem; line-height: 1.65; color: var(--muted); margin: 0; }
@media (max-width: 760px) { .xstatement__cols { grid-template-columns: 1fr; gap: 1rem; } }

/* ---- Half image / half text band ---- */
.xband { display: grid; grid-template-columns: 1fr 1fr; min-height: 80vh; position: relative; overflow: hidden; }
.xband--flip .xband__media { order: 2; }
.xband__media { position: relative; background: var(--surface) center / cover no-repeat; display: flex; flex-direction: column; justify-content: center; gap: 1.5rem; overflow: hidden; }
.xband__media--contain { padding: clamp(1.5rem, 4vw, 4rem); background-color: var(--surface); }
.xband__media figure { margin: 0; }
.xband__media img { width: 100%; height: auto; display: block; }
.xband--theme .xband__media { padding: clamp(1.5rem, 4vw, 4rem); background: #fff; }
.xband--theme.xband--surface .xband__media { background: var(--surface); }
.xband__txt { padding: clamp(3.5rem, 11vh, 7rem) var(--xpad); display: flex; flex-direction: column; justify-content: center; }
.xband__txt h2 { font-size: clamp(2rem, 3.6vw, 3.5rem); line-height: 1.04; letter-spacing: -.022em; margin: .1em 0 .5em; max-width: 16ch; }
.xband__txt .lead { max-width: 46ch; }
.xband__txt .label { margin-top: 1.8rem; }
.xband--dark { background: var(--forest-900); color: #c7d3cb; }
.xband--dark h2 { color: #fff; }
.xband--dark .eyebrow { color: var(--lime-500); }
.xband--dark .lead { color: #c7d3cb; }
.xband--surface { background: var(--surface); }
.xband[data-letter]::after { display: none; content: attr(data-letter); position: absolute; right: 1.5vw; top: 50%; transform: translateY(-50%); font-size: min(70vh, 640px); font-weight: 700; line-height: .75; color: rgba(16,38,27,.045); pointer-events: none; z-index: 0; }
.xband--flip[data-letter]::after { right: auto; left: 1.5vw; }
.xband > * { position: relative; z-index: 1; }
@media (max-width: 900px) { .xband { grid-template-columns: 1fr; min-height: 0; } .xband--flip .xband__media { order: 0; } .xband__media { min-height: 44vh; } .xband[data-letter]::after { display: none; } }

/* ---- Lists ---- */
.xlist { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line-2); max-width: 620px; }
.xlist li { padding: .95rem 0; border-bottom: 1px solid var(--line-2); font-size: 1.02rem; color: var(--ink); display: flex; gap: 1rem; line-height: 1.45; }
.xlist li::before { content: ""; flex: none; width: 9px; height: 9px; background: var(--lime-500); margin-top: .45em; }
.xlist strong { display: block; }
.xlist span { color: var(--muted); }
.xband--dark .xlist, .xband--dark .xlist li { border-color: rgba(255,255,255,.16); }
.xband--dark .xlist li { color: #fff; }
.xband--dark .xlist span { color: #b9c6bd; }
.xnum { list-style: none; padding: 0; margin: 0; counter-reset: x; display: grid; grid-template-columns: 1fr 1fr; column-gap: 4vw; border-top: 1px solid var(--line-2); }
.xnum li { counter-increment: x; display: flex; gap: 1.4rem; padding: 1.25rem 0; border-bottom: 1px solid var(--line-2); font-size: clamp(1.05rem, 1.4vw, 1.3rem); font-weight: 700; letter-spacing: -.01em; color: var(--ink); line-height: 1.3; }
.xnum li::before { content: counter(x, decimal-leading-zero); font-size: .78rem; letter-spacing: .14em; color: var(--green-600); padding-top: .4em; }
@media (max-width: 760px) { .xnum { grid-template-columns: 1fr; } }
.xsection { padding-block: clamp(4.5rem, 13vh, 9rem); }
.xsection--surface { background: var(--surface); }
.xtitle { font-size: clamp(2.1rem, 4.2vw, 4rem); line-height: 1.02; letter-spacing: -.025em; max-width: 18ch; margin: .15em 0 clamp(2rem, 6vh, 3.5rem); }
.xsplit { display: grid; grid-template-columns: 1fr 1.5fr; gap: 5vw; align-items: start; }
.xsplit .xtitle { margin-bottom: 0; }
@media (max-width: 900px) { .xsplit { grid-template-columns: 1fr; gap: 1.5rem; } }

/* ---- Big rows (applications) ---- */
.xrows { border-top: 1px solid var(--line-2); }
.xrow { display: grid; grid-template-columns: clamp(3rem, 6vw, 6rem) minmax(0, 1.2fr) minmax(0, 1fr) 2.6rem; gap: 1.5rem; align-items: center; padding: 1.7rem 0; border-bottom: 1px solid var(--line-2); color: var(--ink); transition: padding .35s var(--ease), color .25s; }
.xrow__l { font-size: clamp(2.4rem, 4.6vw, 4.4rem); font-weight: 700; line-height: .9; letter-spacing: -.03em; color: var(--green-600); }
.xrow__t { font-size: clamp(1.5rem, 2.8vw, 2.6rem); font-weight: 700; letter-spacing: -.02em; line-height: 1.08; }
.xrow__t small { display: block; font-size: .82rem; font-weight: 400; letter-spacing: .02em; color: var(--muted); margin-top: .55rem; }
.xrow__d { color: var(--muted); font-size: 1rem; line-height: 1.55; }
.xrow__a { color: var(--green-800); justify-self: end; }
.xrow__a .ico { width: 1.6rem; height: 1.6rem; transition: transform .3s var(--ease); }
a.xrow:hover { padding-left: 1rem; color: var(--green-800); }
a.xrow:hover .xrow__a .ico { transform: translateX(6px); }
.xrows--dark, .xrows--dark .xrow { border-color: rgba(255,255,255,.18); }
.xrows--dark .xrow { color: #fff; }
.xrows--dark .xrow__l, .xrows--dark .xrow__a { color: var(--lime-500); }
.xrows--dark .xrow__d, .xrows--dark .xrow__t small { color: #b9c6bd; }
.xrows--dark a.xrow:hover { color: var(--lime-500); }
.xscreen .xrow, .xhero .xrow { grid-template-columns: clamp(2.8rem, 5vw, 4.8rem) minmax(0, 1fr) 2.4rem; padding: 1.3rem 0; }
.xscreen .xrow__d, .xhero .xrow__d { display: none; }
.xscreen .xrow__t, .xhero .xrow__t { font-size: clamp(1.4rem, 2.4vw, 2.3rem); }
.xhero .xrows { margin-top: 2.6rem; max-width: 980px; }
@media (max-width: 860px) { .xrow, .xscreen .xrow, .xhero .xrow { grid-template-columns: 2.8rem minmax(0, 1fr) 2rem; } .xrow__l { font-size: 2.2rem; } .xrow__d { display: none; } }

/* ---- Dark steps ---- */
.xsteps { background: var(--forest-900) url("../img/cube-grid.jpg") right center / 1800px auto no-repeat; color: #c7d3cb; }
.xsteps .eyebrow { color: var(--lime-500); }
.xsteps .xtitle { color: #fff; }
.xsteps__row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid rgba(255,255,255,.2); }
.xsteps__row--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.xsteps__row > div { padding: 1.8rem 2rem 0 0; }
.xsteps__row b { display: block; font-size: clamp(3rem, 4.6vw, 4.6rem); color: var(--lime-500); line-height: 1; letter-spacing: -.03em; }
.xsteps__row h3 { color: #fff; font-size: 1.3rem; margin: 1.2rem 0 .6rem; }
.xsteps__row p { font-size: 1rem; line-height: 1.55; margin: 0; max-width: 30ch; }
@media (max-width: 860px) { .xsteps__row, .xsteps__row--3 { grid-template-columns: 1fr 1fr; row-gap: 1rem; } }
@media (max-width: 520px) { .xsteps__row, .xsteps__row--3 { grid-template-columns: 1fr; } }

/* ---- Expertise trio (Expertise page): three tall photo panels ---- */
.xtrio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.xtrio__item { position: relative; isolation: isolate; overflow: hidden; min-height: 88vh; display: flex; flex-direction: column; justify-content: flex-end; padding: calc(var(--xh) + 2rem) clamp(1.5rem, 2.6vw, 2.6rem) 3rem; color: #d3ddd6; }
.xtrio__item .xscreen__bg { inset: 0; scale: 1.03; transition: scale 1.4s var(--ease); }
.xtrio__item:hover .xscreen__bg { scale: 1.09; }
.xtrio__item::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(16,38,27,.3) 0%, rgba(16,38,27,.93) 66%); }
.xtrio__n { font-size: 7rem; font-weight: 700; line-height: .8; color: rgba(255,255,255,.18); margin-bottom: auto; }
.xtrio__item h2 { color: #fff; font-size: clamp(1.7rem, 2.4vw, 2.4rem); line-height: 1.05; margin: 0 0 .7rem; }
.xtrio__item p { font-size: 1rem; line-height: 1.55; }
.xtrio__item ul { list-style: none; padding: 0; margin: .3rem 0 0; border-top: 1px solid rgba(255,255,255,.2); }
.xtrio__item li { padding: .55rem 0; border-bottom: 1px solid rgba(255,255,255,.14); font-size: .95rem; }
@media (max-width: 960px) { .xtrio { grid-template-columns: 1fr; } .xtrio__item { min-height: 70vh; } }

/* ---- CTA ---- */
.xcta { position: relative; isolation: isolate; background: var(--forest-900) url("../img/cube-pattern.png") right center / 1800px auto no-repeat; color: #c7d3cb; padding-block: clamp(5rem, 16vh, 10rem); }
.xcta h2 { color: #fff; font-size: clamp(2.6rem, 6vw, 6rem); line-height: 1; letter-spacing: -.028em; max-width: 13ch; margin: .2em 0 .45em; }
.xcta p { font-size: clamp(1.05rem, 1.35vw, 1.25rem); max-width: 46ch; }
.xcta__actions { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 2.2rem; }
@media (max-width: 760px) { .xcta::before { content: ""; position: absolute; inset: 0; background: rgba(16,38,27,.6); z-index: -1; } }

/* ---- Facts row (About) ---- */
.xfacts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line-2); margin-top: clamp(2.5rem, 7vh, 4.5rem); }
.xfacts > div { padding: 1.6rem 1.6rem 0 0; }
.xfacts strong { display: block; font-size: clamp(1.4rem, 2.2vw, 2rem); letter-spacing: -.015em; color: var(--green-800); }
.xfacts span { color: var(--muted); }
@media (max-width: 760px) { .xfacts { grid-template-columns: 1fr; } }

/* ---- Contact / legal pages under a short hero ---- */
.xsection .contact-grid { margin-top: 0; }
.site-footer { background: #0b1c13; }

/* Big visible letter heading each application field */
.xband__letter { display: block; font-size: clamp(4.5rem, 8vw, 7.5rem); font-weight: 700; line-height: .8; letter-spacing: -.04em; color: var(--lime-500); margin-bottom: 1.4rem; }
.xscreen .xrow__l, .xhero .xrow__l { font-size: clamp(2rem, 3.6vw, 3.4rem); }
/* Stats screen: wider, smaller title so title + figures fit one screen */
.xscreen--center h2 { max-width: 22ch; font-size: clamp(2.3rem, 4.4vw, 4.2rem); }

/* Home: last screen = applications + contact strip along its bottom edge */
.xscreen--apps { padding-bottom: calc(11vh + 120px); }
.xscreen__foot { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem 3rem; flex-wrap: wrap; padding: 1.6rem var(--xpad); background: rgba(26, 58, 42, .94); border-top: 1px solid rgba(148, 193, 31, .45); }
.xscreen__foot .eyebrow { display: block; margin-bottom: .35rem; }
.xscreen__foot strong { color: #fff; font-size: clamp(1.3rem, 2vw, 1.9rem); letter-spacing: -.015em; }
.xscreen__foot-actions { display: flex; gap: .8rem; flex-wrap: wrap; }
@media (max-width: 860px) { .xscreen__foot { position: static; margin-top: 3rem; } .xscreen--apps { padding-bottom: 0; flex-direction: column; justify-content: center; } }

/* Home hero: larger cubes, pattern reaching further left */
.xhero[data-snap] { background-size: 2400px auto; }
.xscreen--apps .xrows { margin-right: 28px; }   /* clear of the position dots */

/* Floating "Get in touch" button: shown after the first screen, hidden where a contact block is visible */
.xfab { position: fixed; right: clamp(1rem, 2.4vw, 2rem); bottom: clamp(1rem, 2.4vw, 2rem); z-index: 95; display: inline-flex; align-items: center; gap: .55rem; padding: .85rem 1.3rem; background: var(--lime-500); color: var(--forest-900); font-weight: 700; font-size: .95rem; border-radius: 999px; box-shadow: 0 10px 28px rgba(0, 0, 0, .28); opacity: 0; transform: translateY(16px); pointer-events: none; transition: opacity .35s var(--ease), transform .35s var(--ease), background .2s; }
.xfab.on { opacity: 1; transform: none; pointer-events: auto; }
.xfab:hover { background: var(--lime-400); color: var(--forest-900); }
.xfab .ico { width: 1.1em; height: 1.1em; }
.menu-open .xfab { opacity: 0; pointer-events: none; }
body:has(.consent-banner:not([hidden])) .xfab { opacity: 0; pointer-events: none; }
html.snap .xfab { right: 56px; }   /* home: clear of the position dots */

/* Cube pattern always covers the full hero height, whatever its content (no plain bands above/below) */
.xhero { background-size: auto max(100%, 950px); }
.xhero[data-snap] { background-size: 2400px auto; }
/* Expertise number: top-left, clearly visible */
.xhero[data-num]::after { left: var(--xpad); right: auto; top: calc(var(--xh) + 3vh); bottom: auto; font-size: clamp(8rem, 25vh, 15rem); line-height: .75; color: var(--lime-500); opacity: .9; }
/* Expertise number: in the text column, above the breadcrumb (never overlaps the text) */
.xhero[data-num]::after { display: none; }
.xhero__num { display: block; font-size: clamp(6rem, 17vh, 11rem); font-weight: 700; line-height: .74; letter-spacing: -.04em; color: var(--lime-500); margin-bottom: clamp(1.5rem, 4vh, 2.6rem); }
.xhero--wide h1 { max-width: 22ch; }
@media (max-width: 480px) { .xhero h1 { font-size: 2.5rem; hyphens: auto; } .xhero__num { font-size: 5.5rem; } }

/* Contact strip on the last screen of every paged page */
.has-strip { position: relative; }
html.snap .has-strip { padding-bottom: calc(6vh + 120px); }
html.snap .xband.has-strip { padding-bottom: 104px; }
.xscreen--apps { padding-bottom: 11vh; }
html.snap .xscreen--apps { padding-bottom: calc(11vh + 120px); }
.xsection--surface .xscreen__foot, .xband .xscreen__foot { background: var(--forest-900); }
@media (max-width: 860px) { .xscreen__foot { position: static; margin-top: 3rem; } .xband .xscreen__foot { grid-column: 1 / -1; margin-top: 0; } }
/* Statement screen of the expertise pages also carries the deliverables */
.xdeliv { margin-top: clamp(2rem, 6vh, 3.5rem); padding-top: clamp(1.5rem, 4vh, 2.5rem); border-top: 1px solid var(--line); align-items: start; }
.xtitle--sm { font-size: clamp(1.6rem, 2.6vw, 2.4rem); }
html.snap .xstatement__big { font-size: clamp(1.6rem, 2.7vw, 2.7rem); }

/* Paged pages: keep every screen within one window height */
@media (min-width: 861px) and (min-height: 640px) {
  html.snap .xhero { padding-bottom: 8vh; }
  html.snap .xhero h1 { font-size: clamp(2.8rem, 6vw, 6.2rem); }
  html.snap .xhero__num { font-size: clamp(5.5rem, 14vh, 9rem); margin-bottom: 3vh; }
  html.snap .xhero .tags { margin-top: 1.2rem; }
  html.snap .xstats { margin-top: 4vh; }
  html.snap .xsection .xtitle { margin-bottom: 3vh; }
  html.snap .xsection .xrow { padding: 1.2rem 0; }
  /* application fields: compact text, figures limited to the window */
  html.snap .xband--theme .xband__txt { padding-block: calc(var(--xh) + 1vh) 3vh; }
  html.snap .xband--theme .xband__letter { font-size: clamp(3.5rem, 9vh, 5.5rem); margin-bottom: .8rem; }
  html.snap .xband--theme h2 { font-size: clamp(1.8rem, 3vw, 2.8rem); margin-bottom: .35em; }
  html.snap .xband--theme .lead { font-size: 1.02rem; margin-bottom: .4rem; }
  html.snap .xband--theme .label { margin: 1.1rem 0 .5rem; }
  html.snap .xband--theme .xlist li { padding: .45rem 0; font-size: .95rem; }
  html.snap .xband--theme .impact-list { gap: .35rem; }
  html.snap .xband--theme .impact-list li { font-size: .92rem; }
  html.snap .xband--theme .theme__svc { margin-top: 1rem; }
  html.snap .xband--theme .xband__media { padding: calc(var(--xh) + 1vh) 3vw 3vh; gap: 2vh; }
  html.snap .xband--theme .xband__media img { max-height: 38vh; width: auto; max-width: 100%; margin-inline: auto; }
}

/* Home: big transparent expertise numbers, bottom-right, clearly visible */
.xscreen__num { font-size: 62vh; color: rgba(255, 255, 255, .26); right: 3vw; bottom: 2vh; }
/* Expertise page: numbers on the three photo panels, larger and more contrasted */
.xtrio__n { font-size: clamp(9rem, 26vh, 15rem); color: rgba(255, 255, 255, .42); line-height: .75; }

/* "Scroll" indicator: fixed at the bottom centre on paged pages, hidden on the last screen */
.xscroll { position: fixed; z-index: 90; left: 50%; bottom: 22px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: .35rem; color: var(--lime-500); opacity: 1; font-size: .74rem; font-weight: 700; letter-spacing: .26em; text-transform: uppercase; text-shadow: 0 1px 6px rgba(0, 0, 0, .55); transition: opacity .4s var(--ease); }
.xscroll::after { display: none; }
.xscroll .ico { width: 30px; height: 30px; padding: 5px; border: 1.5px solid currentColor; border-radius: 50%; animation: xbounce 1.8s infinite var(--ease); }
.xscroll:hover { color: #fff; }
.xscroll.off, .menu-open .xscroll { opacity: 0; pointer-events: none; }
@keyframes xbounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }
@media (max-width: 860px), (max-height: 639px) { .xscroll { display: none; } }
.xscroll { background: none; border: 0; padding: 0; cursor: pointer; font-family: inherit; }
html.snap .xtrio__item { padding-bottom: 6.5rem; }

/* Menu: plain forest background, larger numbers and expertise sub-links */
.xmenu { background: var(--forest-900); }
.xmenu__n { font-size: clamp(1.1rem, 1.6vw, 1.5rem); letter-spacing: .06em; min-width: 3.4rem; }
.xmenu__sub { padding-left: 4.8rem; gap: .5rem 2.2rem; }
.xmenu__sub a { font-size: clamp(1.25rem, 1.9vw, 1.7rem); font-weight: 700; color: #d3ddd6; }
@media (max-width: 860px) { .xmenu__sub { padding-left: 0; } }

/* Scroll indicator, discreet version: small label + thin line with a travelling lime dot */
.xscroll { bottom: 18px; gap: .55rem; color: rgba(255, 255, 255, .85); font-size: .66rem; letter-spacing: .3em; text-shadow: 0 1px 4px rgba(0, 0, 0, .5); }
.xscroll .ico { display: none; }
.xscroll::after { display: block; content: ""; width: 1px; height: 38px; animation: none; transform: none;
  background: linear-gradient(var(--lime-500), var(--lime-500)) center top / 3px 9px no-repeat, rgba(255, 255, 255, .45);
  background-origin: border-box; animation: xdot 2s infinite var(--ease); }
@keyframes xdot { 0% { background-position: center -9px, 0 0; } 80%, 100% { background-position: center 38px, 0 0; } }
.xscroll:hover { color: var(--lime-500); }
.xscroll::after { width: 3px; background:
  linear-gradient(var(--lime-500), var(--lime-500)) center -9px / 3px 9px no-repeat,
  linear-gradient(rgba(255, 255, 255, .5), rgba(255, 255, 255, .5)) center / 1px 100% no-repeat; }
@keyframes xdot { 0% { background-position: center -9px, center; } 80%, 100% { background-position: center 38px, center; } }
/* Home numbers: stronger on the light photos (screens 2 and 3) */
.xscreen__num { color: rgba(255, 255, 255, .38); text-shadow: 0 0 60px rgba(16, 38, 27, .55); }
/* light photos (home screens 2 and 3): more transparent numbers */
main > section:nth-of-type(3) .xscreen__num, main > section:nth-of-type(4) .xscreen__num { color: rgba(255, 255, 255, .2); text-shadow: none; }
main > section:nth-of-type(3) .xscreen__num, main > section:nth-of-type(4) .xscreen__num { color: rgba(16, 38, 27, .42); }
.xtrio__n { font-size: clamp(12rem, 36vh, 21rem); color: rgba(255, 255, 255, .5); margin-top: -1vh; }
/* Scroll hint, larger */
.xscroll { bottom: 20px; gap: .7rem; font-size: .9rem; letter-spacing: .32em; color: rgba(255, 255, 255, .92); }
.xscroll::after { width: 5px; height: 62px; background:
  linear-gradient(var(--lime-500), var(--lime-500)) center -14px / 5px 14px no-repeat,
  linear-gradient(rgba(255, 255, 255, .6), rgba(255, 255, 255, .6)) center / 2px 100% no-repeat;
  animation: xdot2 2s infinite var(--ease); }
@keyframes xdot2 { 0% { background-position: center -14px, center; } 80%, 100% { background-position: center 62px, center; } }
/* Menu numbers, larger */
.xmenu__n { font-size: clamp(1.6rem, 2.6vw, 2.5rem); letter-spacing: 0; min-width: 4.4rem; }
.xmenu__sub { padding-left: 5.8rem; }
@media (max-width: 860px) { .xmenu__n { min-width: 3rem; } .xmenu__sub { padding-left: 0; } }

/* ===== Round of 21 Oct: layout refinements ===== */
/* Scroll hint: a little smaller */
.xscroll { font-size: .76rem; gap: .5rem; }
.xscroll::after { height: 46px; width: 4px; background:
  linear-gradient(var(--lime-500), var(--lime-500)) center -11px / 4px 11px no-repeat,
  linear-gradient(rgba(255, 255, 255, .6), rgba(255, 255, 255, .6)) center / 1.5px 100% no-repeat;
  animation: xdot3 2s infinite var(--ease); }
@keyframes xdot3 { 0% { background-position: center -11px, center; } 80%, 100% { background-position: center 46px, center; } }

/* Contact: compact title band */
.xhero--compact { min-height: 0 !important; padding: calc(var(--xh) + 7vh) 0 6vh; }
.xhero--compact h1 { font-size: clamp(2.4rem, 4.6vw, 4.4rem); margin-bottom: .3em; }

/* Light steps (Expertise "How we work", About "What guides us") */
.xsteps--light { background: var(--surface); color: var(--muted); }
.xsteps--light .eyebrow { color: var(--green-600); }
.xsteps--light .xtitle { color: var(--ink); }
.xsteps--light .xsteps__row { border-color: var(--line-2); }
.xsteps--light .xsteps__row b { color: var(--green-800); }
.xsteps--light .xsteps__row h3 { color: var(--ink); }
.xsteps--light .xsteps__row p { color: var(--muted); }
.xsteps--light .xdeliv { border-color: var(--line-2); }

/* Expertise trio: no colour change on hover; stronger, larger text instead */
.xtrio__item, .xtrio__item:hover { color: #e3ebe5; }
.xtrio__item h2 { font-size: clamp(1.9rem, 2.7vw, 2.7rem); transition: transform .35s var(--ease); transform-origin: left bottom; }
.xtrio__item p { font-size: 1.08rem; }
.xtrio__item li { font-size: 1.02rem; font-weight: 700; color: #fff; }
.xtrio__item:hover h2 { transform: scale(1.05); }
.xtrio__item:hover .xlink { color: var(--lime-500); }
.xtrio__item:hover .xlink .ico { transform: translateX(6px); }

/* Applications hero: title left, field list right, vertically centred */
.xhero:has(.xhero__split) { align-items: center; padding-bottom: 10vh; }
.xhero__split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 5vw; align-items: center; }
.xhero__split h1 { font-size: clamp(2.6rem, 4.8vw, 5rem); max-width: 12ch; }
.xhero__split .xrows { margin-top: 0; }
.xhero .xrow { grid-template-columns: clamp(3.4rem, 6vw, 6rem) minmax(0, 1fr) 2.4rem; }
.xhero .xrow__l { font-size: clamp(3rem, 5.4vw, 5.4rem); }
@media (max-width: 960px) { .xhero__split { grid-template-columns: 1fr; } }

/* Application fields: wider text column, lists side by side, one figure column */
.xband--theme { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); }
.xband__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 2.4rem; }
.xband__cols .label { margin-top: 1.2rem; }
@media (max-width: 1100px) { .xband__cols { grid-template-columns: 1fr; } }
@media (min-width: 861px) and (min-height: 640px) {
  html.snap .has-strip .xtitle { font-size: clamp(1.8rem, 3.2vw, 3rem); margin-bottom: 2.5vh; }
  html.snap .xsteps.has-strip .xsteps__row > div { padding-top: 1.1rem; }
  html.snap .xsteps.has-strip .xsteps__row b { font-size: clamp(2.4rem, 3.4vw, 3.4rem); }
  html.snap .xsteps.has-strip .xsteps__row h3 { margin: .7rem 0 .4rem; }
  html.snap .xsteps.has-strip .xdeliv { margin-top: 3vh; padding-top: 2.5vh; }
  html.snap .xsteps.has-strip .xnum li { padding: .8rem 0; }
  html.snap .xband--theme .xband__letter { font-size: clamp(3rem, 7vh, 4.4rem); margin-bottom: .5rem; }
  html.snap .xband--theme .xband__txt { padding-top: calc(var(--xh) - 6px); }
  html.snap .xband--theme .lead { font-size: .98rem; line-height: 1.5; }
}
/* Scroll hint readable on light screens too */
.xscroll { background: rgba(16, 38, 27, .62); padding: .55rem 1rem .6rem 1.25rem; border-radius: 999px; bottom: 16px; text-shadow: none; }
.xscroll::after { height: 34px; }
@keyframes xdot3 { 0% { background-position: center -11px, center; } 80%, 100% { background-position: center 34px, center; } }
/* Contact strip: always solid */
.xscreen__foot { background: var(--forest-900); }
/* Applications hero title: wider, shorter */
.xhero__split h1 { max-width: 15ch; font-size: clamp(2.4rem, 4.2vw, 4.3rem); }
/* Scroll hint: no pill; dark variant over light screens (set by main.js) */
.xscroll { background: none; padding: 0; border-radius: 0; bottom: 18px; text-shadow: 0 1px 4px rgba(0, 0, 0, .45); }
.xscroll.on-light { color: var(--forest-900); text-shadow: none; }
.xscroll.on-light::after { background:
  linear-gradient(var(--green-600), var(--green-600)) center -11px / 4px 11px no-repeat,
  linear-gradient(rgba(16, 38, 27, .55), rgba(16, 38, 27, .55)) center / 1.5px 100% no-repeat; }
html.snap .xhero__split h1 { max-width: 15ch; font-size: clamp(2.4rem, 4.2vw, 4.3rem); }

/* ===== How we work: enriched flow ===== */
.xflow__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4vw; align-items: end; margin-bottom: clamp(1.8rem, 4.5vh, 3rem); }
.xflow__head .xtitle { margin-bottom: 0; }
.xflow__head .lead { margin: 0; color: var(--muted); }
.xflow { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.4rem; counter-reset: none; }
.xflow > li { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.4rem 1.4rem 1.2rem; }
.xflow > li:not(:last-child)::after { content: ""; position: absolute; right: -1.15rem; top: 2.3rem; width: .9rem; height: .9rem; border-top: 2px solid var(--lime-500); border-right: 2px solid var(--lime-500); transform: rotate(45deg); z-index: 1; }
.xflow__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: .9rem; }
.xflow__top b { font-size: clamp(2.6rem, 3.6vw, 3.4rem); line-height: .85; color: var(--green-800); letter-spacing: -.03em; }
.xflow__top .ico { width: 2.2rem; height: 2.2rem; color: var(--lime-500); }
.xflow h3 { font-size: 1.25rem; margin: 0 0 .35rem; color: var(--ink); }
.xflow p { font-size: .98rem; color: var(--muted); margin: 0 0 .8rem; line-height: 1.5; }
.xflow ul { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.xflow ul li { font-size: .92rem; color: var(--ink); padding: .5rem 0 .5rem 1.1rem; border-bottom: 1px solid var(--line); position: relative; line-height: 1.4; }
.xflow ul li::before { content: ""; position: absolute; left: 0; top: .95em; width: 6px; height: 6px; background: var(--lime-500); }
.xflow__loop { display: flex; align-items: center; gap: .8rem; margin: clamp(1.4rem, 3.5vh, 2.2rem) 0 0; color: var(--green-800); font-weight: 700; font-size: 1.02rem; }
.xflow__loop .ico { width: 1.8rem; height: 1.8rem; color: var(--lime-500); }
@media (max-width: 960px) { .xflow__head { grid-template-columns: 1fr; } .xflow { grid-template-columns: 1fr 1fr; } .xflow > li::after { display: none; } }
@media (max-width: 560px) { .xflow { grid-template-columns: 1fr; } }

/* ===== About, last screen: principles (left) + sectors (right) ===== */
.xabout__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 5vw; align-items: start; }
.xprinciples { list-style: none; padding: 0; margin: 0; }
.xprinciples li { display: grid; grid-template-columns: 4.2rem minmax(0, 1fr); gap: 1rem; padding: 1.1rem 0; border-top: 1px solid var(--line-2); }
.xprinciples li:last-child { border-bottom: 1px solid var(--line-2); }
.xprinciples b { font-size: clamp(2.8rem, 4vw, 3.8rem); line-height: .8; color: var(--green-800); letter-spacing: -.03em; }
.xprinciples h3 { font-size: 1.2rem; margin: 0 0 .3rem; color: var(--ink); }
.xprinciples p { margin: 0; color: var(--muted); font-size: .98rem; line-height: 1.5; }
.xabout__sectors { padding-left: 4vw; border-left: 1px solid var(--line-2); }
.xsectors { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.xsectors li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.3rem 1.2rem; display: flex; flex-direction: column; gap: .9rem; font-weight: 700; color: var(--ink); line-height: 1.35; min-height: 9.5rem; }
.xsectors .ico { width: 2.1rem; height: 2.1rem; color: var(--green-600); }
.xsectors li:nth-child(2), .xsectors li:nth-child(3) { background: var(--forest-900); color: #fff; border-color: var(--forest-900); }
.xsectors li:nth-child(2) .ico, .xsectors li:nth-child(3) .ico { color: var(--lime-500); }
@media (max-width: 960px) { .xabout__grid { grid-template-columns: 1fr; } .xabout__sectors { padding-left: 0; border-left: 0; } }

/* ===== Application fields: figure column always the narrow one; balanced figures ===== */
.xband--theme.xband--flip { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
.xband--theme .xband__media figure { width: 100%; display: flex; justify-content: center; }
html.snap .xband--theme .xband__media img { width: 100%; max-height: 34vh; object-fit: contain; }

/* Position dots: dark on light screens (class set by main.js) */
.xdots.on-light a { border-color: var(--forest-900); opacity: .55; }
.xdots.on-light a.on { background: var(--green-600); border-color: var(--green-600); opacity: 1; }
/* Home applications screen: light, no cubes */
.xscreen--light { background: var(--surface); color: var(--muted); }
.xscreen--light h2 { color: var(--ink); }
.xscreen--light .eyebrow { color: var(--green-600); }
.xscreen--light p { color: var(--muted); }
.xscreen--light .xlink { color: var(--ink); }
.xscreen--light .xlink:hover { color: var(--green-800); }
.xscreen--light .xscreen__foot .eyebrow { color: var(--lime-500); }
@media (min-width: 861px) and (min-height: 640px) { html.snap .xhero:not(:has(.xhero__split)) h1 { max-width: 15ch; } }

/* ===== Publications ===== */
.xpubs-sec .xsplit { align-items: start; }
.xpubs { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line-2); }
.xpubs li { display: grid; gap: .3rem; padding: 1.15rem 0; border-bottom: 1px solid var(--line-2); scroll-margin-top: 100px; }
.xpubs li:target { background: linear-gradient(90deg, rgba(148, 193, 31, .14), transparent 70%); }
.xpubs__meta { font-size: .72rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--green-600); }
.xpubs__title { font-size: 1.08rem; font-weight: 700; color: var(--ink); line-height: 1.35; }
.xpubs__ref { font-size: .9rem; color: var(--muted); line-height: 1.5; }
.xpubs__ref em { font-style: italic; }
.xpubs__doi { color: var(--green-800); text-decoration: underline; text-underline-offset: 2px; margin-left: .2rem; }
.xpubs__field { display: inline-flex; align-items: center; gap: .4rem; font-size: .88rem; font-weight: 700; color: var(--ink); margin-top: .2rem; justify-self: start; }
.xpubs__field b { color: var(--lime-500); font-size: 1.1rem; }
.xpubs__field .ico { width: 1rem; height: 1rem; color: var(--green-600); transition: transform .25s var(--ease); }
.xpubs__field:hover { color: var(--green-800); }
.xpubs__field:hover .ico { transform: translateX(4px); }
.xfacts a { color: inherit; text-decoration: underline; text-decoration-color: var(--lime-500); text-underline-offset: 4px; }
/* "Publication" link inside an example of our work */
.xpub-link { display: inline-flex; align-items: center; gap: .25rem; margin-left: .4rem; padding: .05rem .5rem; border: 1px solid var(--lime-500); border-radius: 999px; font-size: .74rem; font-weight: 700; color: var(--green-800); white-space: nowrap; vertical-align: 1px; }
.xpub-link .ico { width: .85em; height: .85em; }
.xpub-link:hover { background: var(--lime-500); color: var(--forest-900); }

/* ===== News (blog cards) ===== */
.xnews { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.6rem; }
.xnews__card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.xnews__card > a { display: flex; flex-direction: column; height: 100%; color: inherit; }
.xnews__card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.xnews__img { aspect-ratio: 16 / 9; background: var(--surface) center / cover no-repeat; border-bottom: 1px solid var(--line); }
.xnews__body { padding: 1.4rem 1.5rem 1.5rem; display: flex; flex-direction: column; gap: .55rem; flex: 1; }
.xnews__meta { font-size: .72rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--green-600); }
.xnews__body h3 { font-size: 1.25rem; line-height: 1.25; margin: 0; color: var(--ink); }
.xnews__body p { color: var(--muted); font-size: .98rem; line-height: 1.55; margin: 0 0 .4rem; }
.xnews__body .xlink { margin-top: auto; align-self: flex-start; }
.xnews__card:first-child { grid-column: span 2; display: block; }
.xnews__card:first-child > a { display: grid; grid-template-columns: 1.2fr 1fr; }
.xnews__card:first-child .xnews__img { aspect-ratio: auto; min-height: 320px; border-bottom: 0; border-right: 1px solid var(--line); }
.xnews__card:first-child h3 { font-size: 1.7rem; }
@media (max-width: 1000px) { .xnews { grid-template-columns: 1fr 1fr; } }
@media (max-width: 680px) { .xnews { grid-template-columns: 1fr; } .xnews__card:first-child { grid-column: auto; } .xnews__card:first-child > a { grid-template-columns: 1fr; } }

/* Single post (WordPress) */
.xpost { max-width: 760px; margin-inline: auto; }
.xpost__img { margin: 0 0 2rem; border-radius: var(--radius-lg); overflow: hidden; }
.xpost__img img { width: 100%; height: auto; display: block; }
.xpost .prose p, .xpost .prose li { font-size: 1.08rem; line-height: 1.75; }
.xnews__card:first-child { grid-column: 1 / -1; }
.xnews__card:first-child > a { grid-template-columns: 1.3fr 1fr; }
.xnews__card:first-child .xnews__img { min-height: 360px; background-size: cover; }
.xnews__card:first-child .xnews__body { padding: 2.2rem 2.4rem; justify-content: center; }

/* ===== Comments round (Comments_Website.pptx) ===== */
/* Logo: larger at the top of the page, smaller once scrolled */
.xh .brand__logo { height: 52px; transition: height .4s var(--ease); }
.xh.scrolled .brand__logo { height: 34px; }
@media (max-width: 640px) { .xh .brand__logo { height: 40px; } }
/* Menu: no numbers; LinkedIn as icon (as in the footer) */
.xmenu__n { display: none; }
.xmenu__sub { padding-left: 0; }
.xmenu__social { display: inline-flex; width: 42px; height: 42px; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,.3); border-radius: 50%; }
.xmenu__social .ico { width: 20px; height: 20px; }
.xmenu__social:hover { border-color: var(--lime-500); }
/* How we work: closing line in a larger font */
.xflow__loop { font-size: clamp(1.15rem, 1.6vw, 1.4rem); }
.xflow__loop .ico { width: 2.1rem; height: 2.1rem; }
/* Workflow figure in the half panels: shown in full within one screen */
html.snap .xband__media--contain { padding-block: calc(var(--xh) + 1vh) 3vh; }
html.snap .xband__media--contain img { max-height: calc(100vh - var(--xh) - 8vh); width: auto; max-width: 100%; margin-inline: auto; display: block; }

/* ===== Publications page ===== */
.xpubs-group + .xpubs-group { margin-top: clamp(2.5rem, 6vh, 4rem); }
.xpubs-group__h { font-size: clamp(1.4rem, 2.2vw, 2rem); margin: 0 0 1.2rem; }
.xpubs { border-top: 0; display: grid; gap: 1.2rem; }
.xpubs li.xpub { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: 1.8rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.6rem 1.8rem; }
.xpub__year { font-size: clamp(2rem, 3vw, 2.6rem); font-weight: 700; color: var(--green-800); letter-spacing: -.02em; line-height: 1; }
.xpubs__title { font-size: 1.25rem; line-height: 1.3; margin: .4rem 0 .5rem; color: var(--ink); }
.xpubs__ref { font-size: .95rem; color: var(--muted); line-height: 1.55; margin: 0 0 .7rem; }
.xpubs__field { font-size: .95rem; color: var(--muted); margin: 0 0 1rem; }
.xpubs__field a { font-weight: 700; color: var(--ink); display: inline-flex; align-items: center; gap: .35rem; }
.xpubs__field a:hover { color: var(--green-800); }
.xpubs__field .ico, .xpubs__more .ico { width: 1rem; height: 1rem; color: var(--green-600); }
.xpub__links { display: flex; gap: 1.2rem; align-items: center; flex-wrap: wrap; }
.xpubs__more { display: inline-flex; align-items: center; gap: .35rem; font-weight: 700; color: var(--ink); border-bottom: 2px solid var(--lime-500); padding-bottom: 2px; }
@media (max-width: 640px) { .xpubs li.xpub { grid-template-columns: 1fr; gap: .4rem; } }

/* ===== News article page ===== */
.xpost__img--fig { background: var(--surface); border: 1px solid var(--line); display: flex; justify-content: center; }
.xpost__img--fig img { max-height: 380px; width: auto; max-width: 100%; object-fit: contain; }
.xpost .lead { font-size: 1.25rem; color: var(--ink); margin-bottom: 1.4rem; }
.xpost__links { list-style: none; padding: 1.2rem 0 0; margin: 2rem 0; border-top: 1px solid var(--line-2); display: grid; gap: .7rem; }
.xpost__links a { display: inline-flex; align-items: center; gap: .45rem; font-weight: 700; color: var(--green-800); }
.xpost__links .ico { width: 1rem; height: 1rem; }

/* Logo: even larger on the first screen */
.xh .brand__logo { height: 68px; }
.xh__bar { height: 104px; }
.xh.scrolled .brand__logo { height: 34px; }
@media (max-width: 640px) { .xh .brand__logo { height: 44px; } .xh__bar { height: 84px; } }
:root { --xh: 100px; }
.xmenu__inner { padding-top: calc(var(--xh) + 6vh); }
@media (min-width: 861px) and (min-height: 640px) {
  html.snap .xstatement, html.snap .xsection { padding-block: calc(var(--xh) - 4px) 4vh; }
  html.snap .has-strip { padding-bottom: calc(4vh + 110px); }
  html.snap .xscreen { padding-bottom: 8vh; }
  html.snap .xhero { padding-top: calc(var(--xh) + 3vh); padding-bottom: 7vh; }
  html.snap .xhero--wide h1 { font-size: clamp(2.4rem, 5vw, 5.2rem); }
  html.snap .xband--theme .xband__txt { padding-top: var(--xh); padding-bottom: 2vh; }
}
/* "May we help you" strip as a standalone closing band (pages without full screens) */
.xstrip .xscreen__foot { position: static; }
@media (min-width: 861px) and (min-height: 640px) { html.snap main > section.xstrip { min-height: 0; } }
/* Contact: slim title band */
.xhero--slim { padding: calc(var(--xh) + 2.5vh) 0 4vh; }
.xhero--slim .breadcrumb { margin-bottom: .8rem; }
.xhero--slim h1 { font-size: clamp(2rem, 3.6vw, 3.3rem); margin: .1em 0 .3em; }
.xhero--slim .lead { font-size: 1.05rem; }
.xhero--slim { padding: calc(var(--xh) + 1.5vh) 0 3vh; }
.xhero--slim h1, html.snap .xhero--slim h1 { max-width: none; font-size: clamp(2rem, 3.4vw, 3.1rem); }
.xhero--slim .lead { max-width: 70ch; margin-bottom: 0; }
.xhero--slim + .xsection { padding-top: clamp(2.5rem, 6vh, 4rem); }
/* Menu sub-links: same highlight as the main links (lime + slight shift) */
.xmenu__sub { gap: .6rem 2.6rem; padding-top: .5rem; padding-bottom: 1.1rem; }
.xmenu__sub a { display: inline-block; transition: color .25s, transform .3s var(--ease); }
.xmenu__sub a:hover, .xmenu__sub a:focus-visible, .xmenu__sub a[aria-current] { color: var(--lime-500); transform: translateX(.35em); }

/* ===== News article in a dialog over the News page ===== */
.xmodal { width: min(860px, calc(100vw - 2rem)); max-height: calc(100vh - 4rem); padding: 0; border: 0; border-radius: var(--radius-lg); box-shadow: 0 30px 80px rgba(0, 0, 0, .35); overflow: hidden; }
.xmodal[open] { display: flex; animation: xmodal-in .35s var(--ease); }
.xmodal::backdrop { background: rgba(16, 38, 27, .72); backdrop-filter: blur(3px); }
@keyframes xmodal-in { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.xmodal__body { overflow-y: auto; padding: 2.4rem 2.6rem 2rem; }
.xmodal__body h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); line-height: 1.15; margin: .5rem 0 .9rem; }
.xmodal__body .lead { color: var(--ink); font-size: 1.12rem; }
.xmodal__body .prose p { color: var(--muted); line-height: 1.7; }
.xmodal__img { margin: -2.4rem -2.6rem 1.6rem; background: var(--surface); display: flex; justify-content: center; border-bottom: 1px solid var(--line); }
.xmodal__img img { max-height: 280px; width: auto; max-width: 100%; display: block; }
.xmodal__close { position: absolute; top: 14px; right: 14px; z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--forest-900); cursor: pointer; }
.xmodal__close span { position: absolute; left: 12px; right: 12px; top: 21px; height: 2px; background: #fff; transform: rotate(45deg); }
.xmodal__close span + span { transform: rotate(-45deg); }
.xmodal__close:hover { background: var(--green-600); }
.xmodal { position: fixed; }
@media (max-width: 640px) { .xmodal__body { padding: 1.8rem 1.4rem; } .xmodal__img { margin: -1.8rem -1.4rem 1.2rem; } }
body.modal-open { overflow: hidden; }
@media (min-width: 861px) and (min-height: 640px) {
  html.snap .xscreen .xstats p { font-size: .94rem; margin-top: .7rem; }
  html.snap .has-strip .xrow { padding-block: 1rem; }
}
@media (min-width: 861px) and (min-height: 640px) {
  html.snap .has-strip .xtitle { max-width: 28ch; }
  html.snap .xscreen--center .xstats { margin-top: 3vh; }
}
