/* ==========================================================================
   DG Modelling Ltd — site stylesheet
   Colour scheme retained from the original site:
   brand green #8CC63F, charcoal #303030, light greys #F4F4F4 / #F7F7F7.
   ========================================================================== */

/* Self-hosted variable fonts (SIL Open Font License, see fonts/) */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-latin-wght.woff2") format("woff2");
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/montserrat-latin-wght.woff2") format("woff2");
}

:root {
  --green: #8cc63f;
  --green-600: #78b02e;
  --green-ink: #4e7a17;          /* green for text on white (AA contrast) */
  --green-tint: #eef6e3;
  --charcoal: #303030;
  --charcoal-900: #242424;
  --charcoal-950: #1b1b1b;
  --ink: #303030;
  --body: #4a4a4a;
  --muted: #6b6b6b;
  --line: #e4e4e4;
  --grey-50: #f7f7f7;
  --grey-100: #f4f4f4;
  --white: #ffffff;

  --font-head: "Montserrat", "Century Gothic", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --radius: 6px;
  --radius-lg: 10px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.06), 0 1px 3px rgba(0,0,0,.05);
  --shadow: 0 10px 30px -12px rgba(0,0,0,.25);
  --shadow-lg: 0 24px 60px -20px rgba(0,0,0,.35);
  --container: 1200px;
  --gutter: 24px;
  --header-h: 76px;
  --ease: cubic-bezier(.2,.7,.2,1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--green-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--charcoal); }
h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.2;
  margin: 0 0 .6em;
  font-weight: 700;
  letter-spacing: -.01em;
}
h1 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 1.8vw, 1.45rem); }
h4 { font-size: 1.1rem; }
p { margin: 0 0 1.1em; }
ul, ol { margin: 0 0 1.1em; padding-left: 1.2em; }
strong, b { color: var(--ink); font-weight: 600; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; border-radius: 2px; }
::selection { background: var(--green); color: var(--charcoal-950); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 1000;
  background: var(--green); color: var(--charcoal-950); padding: 10px 16px;
  font-weight: 600; border-radius: var(--radius); text-decoration: none;
}
.skip-link:focus { top: 12px; }

.icon { width: 1.1em; height: 1.1em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -0.15em; }
.icon--fill { fill: currentColor; stroke: none; }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  font-family: var(--font-head); font-weight: 600; font-size: .95rem; letter-spacing: .01em;
  padding: .85em 1.5em; border-radius: var(--radius); border: 2px solid transparent;
  text-decoration: none; cursor: pointer; line-height: 1.2;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s var(--ease), box-shadow .2s;
}
.btn .icon { transition: transform .2s var(--ease); }
.btn:hover .icon--arrow { transform: translateX(3px); }
.btn--primary { background: var(--green); color: var(--charcoal-950); }
.btn--primary:hover { background: var(--green-600); color: var(--charcoal-950); box-shadow: 0 8px 20px -8px rgba(140,198,63,.7); }
.btn--dark { background: var(--charcoal); color: var(--white); }
.btn--dark:hover { background: var(--charcoal-950); color: var(--white); }
.btn--outline-light { border-color: rgba(255,255,255,.55); color: var(--white); }
.btn--outline-light:hover { border-color: var(--white); background: rgba(255,255,255,.08); color: var(--white); }
.btn--outline { border-color: var(--charcoal); color: var(--charcoal); }
.btn--outline:hover { background: var(--charcoal); color: var(--white); }
.btn--sm { padding: .6em 1.1em; font-size: .875rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .4em; font-family: var(--font-head);
  font-weight: 600; font-size: .92rem; color: var(--green-ink); text-decoration: none;
}
.link-arrow .icon { transition: transform .2s var(--ease); }
.link-arrow:hover { color: var(--charcoal); }
.link-arrow:hover .icon { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--charcoal);
  border-bottom: 1px solid rgba(255,255,255,.06);
  transition: background-color .3s, box-shadow .3s;
}
.site-header.is-scrolled { box-shadow: 0 6px 24px -10px rgba(0,0,0,.5); }
.home .site-header { position: fixed; left: 0; right: 0; background: transparent; border-bottom-color: transparent; }
.home .site-header.is-scrolled, .home .site-header.nav-open { background: var(--charcoal); border-bottom-color: rgba(255,255,255,.06); }

.header-inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 12px; flex: none; text-decoration: none; }
.brand img { width: auto; height: 42px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__text strong { font-family: var(--font-head); font-size: 1.12rem; font-weight: 700; color: var(--white); letter-spacing: -.01em; }
.brand__text small { font-size: .68rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.6); margin-top: 4px; }
.brand:hover .brand__text strong { color: var(--white); }

.main-nav { margin-left: auto; }
.nav-list { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav-list > li { position: relative; }
.nav-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-head); font-size: .9rem; font-weight: 500;
  color: rgba(255,255,255,.82); text-decoration: none;
  padding: 10px 14px; border-radius: var(--radius);
  background: none; border: 0; cursor: pointer; line-height: 1.2;
  transition: color .2s, background-color .2s;
}
.nav-link:hover, .nav-link[aria-expanded="true"] { color: var(--white); background: rgba(255,255,255,.06); }
.nav-link[aria-current="page"], .has-dropdown:has([aria-current="page"]) > .nav-link { color: var(--green); }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: rgba(255,255,255,.6); cursor: pointer; }
.linklike:hover { color: var(--green); }
.nav-link .chev { width: 12px; height: 12px; transition: transform .2s; }
.nav-link[aria-expanded="true"] .chev { transform: rotate(180deg); }

.dropdown {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translate(-50%, 6px);
  min-width: 300px; background: var(--white); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: 10px; list-style: none; margin: 0;
  opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s var(--ease), visibility .2s;
}
.dropdown::before { content: ""; position: absolute; top: -12px; left: 0; right: 0; height: 12px; }
.has-dropdown.is-open > .dropdown,
.has-dropdown:hover > .dropdown,
.has-dropdown:focus-within > .dropdown { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.dropdown a {
  display: block; padding: 10px 14px; border-radius: var(--radius);
  color: var(--ink); text-decoration: none; line-height: 1.35;
}
.dropdown a strong { display: block; font-family: var(--font-head); font-size: .92rem; font-weight: 600; }
.dropdown a span { display: block; font-size: .82rem; color: var(--muted); margin-top: 2px; }
.dropdown a:hover { background: var(--grey-100); }
.dropdown a[aria-current="page"] strong { color: var(--green-ink); }

.header-cta { display: flex; align-items: center; gap: 18px; margin-left: 12px; }
.header-phone {
  display: inline-flex; align-items: center; gap: 8px; color: rgba(255,255,255,.82);
  text-decoration: none; font-size: .9rem; font-weight: 500; white-space: nowrap;
}
.header-phone:hover { color: var(--green); }
.header-phone .icon { color: var(--green); }

.nav-toggle {
  display: none; margin-left: auto; width: 44px; height: 44px; border-radius: var(--radius);
  background: rgba(255,255,255,.06); border: 0; color: var(--white); cursor: pointer;
  align-items: center; justify-content: center;
}
.nav-toggle .icon { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
.nav-open .nav-toggle .icon-menu { display: none; }
.nav-open .nav-toggle .icon-close { display: block; }

@media (max-width: 1140px) {
  .header-phone span { display: none; }
}
@media (max-width: 980px) {
  :root { --header-h: 68px; }
  .brand img { height: 36px; }
  .brand__text strong { font-size: 1rem; }
  .nav-toggle { display: inline-flex; }
  .header-cta { display: none; }
  .main-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0;
    background: var(--charcoal); overflow-y: auto; padding: 12px var(--gutter) 32px;
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .25s, transform .25s var(--ease), visibility .25s;
  }
  .nav-open .main-nav { opacity: 1; visibility: visible; transform: none; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list > li { border-bottom: 1px solid rgba(255,255,255,.08); }
  .nav-link { width: 100%; justify-content: space-between; padding: 16px 4px; font-size: 1.05rem; border-radius: 0; }
  .nav-link:hover { background: none; }
  .dropdown {
    position: static; transform: none; box-shadow: none; background: transparent;
    min-width: 0; padding: 0 0 12px; display: none; opacity: 1; visibility: visible;
  }
  .has-dropdown:hover > .dropdown, .has-dropdown:focus-within > .dropdown { transform: none; }
  .has-dropdown.is-open > .dropdown { display: block; transform: none; }
  .dropdown a { color: rgba(255,255,255,.85); padding: 10px 12px; }
  .dropdown a span { color: rgba(255,255,255,.55); }
  .dropdown a:hover { background: rgba(255,255,255,.06); }
  .dropdown a[aria-current="page"] strong { color: var(--green); }
  .mobile-cta { display: grid !important; gap: 12px; margin-top: 24px; }
}
.mobile-cta { display: none !important; }
body.nav-locked { overflow: hidden; }

/* ---------- Home hero ---------- */
.hero {
  position: relative; min-height: min(92vh, 860px); display: flex; align-items: flex-end;
  color: var(--white); overflow: hidden; background: var(--charcoal-950);
  padding: calc(var(--header-h) + 72px) 0 0;
}
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(27,27,27,.94) 0%, rgba(27,27,27,.82) 38%, rgba(27,27,27,.35) 75%, rgba(27,27,27,.25) 100%),
    linear-gradient(0deg, rgba(27,27,27,.9) 0%, rgba(27,27,27,0) 40%);
}
.hero__content { position: relative; width: 100%; }
.hero__copy { max-width: 680px; padding-bottom: 56px; }
.hero h1 { color: var(--white); margin-bottom: .45em; }
.hero h1 em { font-style: normal; color: var(--green); }
.hero__lead { font-size: clamp(1.05rem, 1.5vw, 1.2rem); color: rgba(255,255,255,.82); max-width: 580px; margin-bottom: 2rem; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-size: .78rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--green-ink); margin-bottom: 1rem;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--green); }
.on-dark .eyebrow, .hero .eyebrow, .page-hero .eyebrow, .section--dark .eyebrow { color: var(--green); }

.hero__facts {
  position: relative; display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(255,255,255,.12);
}
.fact { padding: 26px 24px 30px 0; }
.fact + .fact { padding-left: 24px; border-left: 1px solid rgba(255,255,255,.12); }
.fact__value { font-family: var(--font-head); font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 700; color: var(--white); line-height: 1.1; }
.fact__value span { color: var(--green); }
.fact__label { font-size: .86rem; color: rgba(255,255,255,.66); margin-top: 6px; line-height: 1.45; }
@media (max-width: 860px) {
  .hero__facts { grid-template-columns: repeat(2, 1fr); }
  .fact:nth-child(3) { padding-left: 0; border-left: 0; }
  .fact:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.12); }
}

/* ---------- Inner page hero ---------- */
.page-hero {
  position: relative; color: var(--white); background: var(--charcoal-900);
  padding: 72px 0 64px; overflow: hidden; isolation: isolate;
}
.page-hero__bg { position: absolute; inset: 0; z-index: -1; }
.page-hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.page-hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(27,27,27,.95) 0%, rgba(27,27,27,.86) 45%, rgba(27,27,27,.6) 100%);
}
.page-hero h1 { color: var(--white); max-width: 860px; margin-bottom: .35em; }
.page-hero__lead { font-size: 1.12rem; color: rgba(255,255,255,.8); max-width: 700px; margin: 0; }
.page-hero__meta { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; margin-top: 22px; color: rgba(255,255,255,.72); font-size: .92rem; }
.page-hero .btn-row { margin-top: 28px; }

.breadcrumb { list-style: none; padding: 0; margin: 0 0 22px; display: flex; flex-wrap: wrap; gap: 6px; font-size: .85rem; color: rgba(255,255,255,.6); }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; color: rgba(255,255,255,.35); }
.breadcrumb a { color: rgba(255,255,255,.78); text-decoration: none; }
.breadcrumb a:hover { color: var(--green); }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section--tight { padding: 64px 0; }
.section--alt { background: var(--grey-100); }
.section--dark { background: var(--charcoal); color: rgba(255,255,255,.78); }
.section--dark h2, .section--dark h3, .section--dark h4, .section--dark strong { color: var(--white); }
.section--dark a:not(.btn) { color: var(--green); }
@media (max-width: 760px) { .section { padding: 64px 0; } .section--tight { padding: 48px 0; } }

.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head--center { text-align: center; margin-left: auto; margin-right: auto; }
.section-head--center .eyebrow { justify-content: center; }
.section-head p { font-size: 1.08rem; color: var(--muted); margin: 0; }
.section--dark .section-head p { color: rgba(255,255,255,.7); }
.section-head--row { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.section-head--row > div { max-width: 640px; }

.lead { font-size: 1.15rem; color: var(--ink); }

/* ---------- Grids ---------- */
.grid { display: grid; gap: 28px; }
.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: minmax(0, 1fr); } }

.split { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.split--reverse > :first-child { order: 2; }
.split--top { align-items: start; }
@media (max-width: 900px) {
  .split { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .split--reverse > :first-child { order: 0; }
}

/* ---------- Cards ---------- */
.card {
  position: relative; display: flex; flex-direction: column; background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.card__media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--grey-100); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .card__media img { transform: scale(1.04); }
.card__body { padding: 24px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.card__body h3 { font-size: 1.15rem; margin-bottom: .45em; }
.card__body h3 a { color: inherit; text-decoration: none; }
.card__body h3 a::after { content: ""; position: absolute; inset: 0; }
.card__body p { font-size: .95rem; color: var(--muted); margin-bottom: 1.1em; }
.card__body .link-arrow { margin-top: auto; }
.card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 12px; font-size: .82rem; color: var(--muted); }

.tag {
  display: inline-flex; align-items: center; font-family: var(--font-head); font-size: .7rem; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase; padding: 4px 9px; border-radius: 999px;
  background: var(--green-tint); color: var(--green-ink); line-height: 1.3;
}
.tag--dark { background: rgba(140,198,63,.16); color: var(--green); }
.tag--outline { background: transparent; border: 1px solid rgba(255,255,255,.3); color: rgba(255,255,255,.85); }

/* Service card with icon */
.service-card .card__body { padding-top: 22px; }
.service-card__icon {
  width: 46px; height: 46px; border-radius: 10px; display: grid; place-items: center;
  background: var(--charcoal); color: var(--green); margin: -45px 0 16px; position: relative;
  box-shadow: 0 0 0 4px var(--white);
}
.service-card__icon .icon { width: 22px; height: 22px; }

/* Feature tiles (no image) */
.feature { padding: 30px; border-radius: var(--radius-lg); background: var(--white); border: 1px solid var(--line); height: 100%; }
.section--alt .feature { border-color: transparent; box-shadow: var(--shadow-sm); }
.feature__icon { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--green-tint); color: var(--green-ink); margin-bottom: 18px; }
.feature__icon .icon { width: 22px; height: 22px; }
.feature h3 { font-size: 1.12rem; }
.feature p { font-size: .96rem; margin: 0; }
.section--dark .feature { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.08); }
.section--dark .feature__icon { background: rgba(140,198,63,.14); color: var(--green); }

/* ---------- Lists ---------- */
.check-list { list-style: none; padding: 0; margin: 0 0 1.4em; display: grid; gap: 12px; }
.check-list li { position: relative; padding-left: 34px; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: .28em; width: 22px; height: 22px; border-radius: 50%;
  background: var(--green-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234e7a17' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 13px no-repeat;
}
.section--dark .check-list li::before { background-color: rgba(140,198,63,.16); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238cc63f' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E"); }
.check-list--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 28px; }
@media (max-width: 640px) { .check-list--2 { grid-template-columns: minmax(0, 1fr); } }

.step-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; counter-reset: step; }
.step-list li { counter-increment: step; position: relative; padding-top: 64px; }
.step-list li::before {
  content: counter(step, decimal-leading-zero); position: absolute; top: 0; left: 0;
  font-family: var(--font-head); font-weight: 700; font-size: 1rem; color: var(--charcoal-950);
  width: 44px; height: 44px; border-radius: 50%; background: var(--green); display: grid; place-items: center;
}
.step-list li::after { content: ""; position: absolute; top: 22px; left: 56px; right: -12px; height: 1px; background: rgba(255,255,255,.18); }
.step-list li:last-child::after { display: none; }
.step-list h3 { font-size: 1.05rem; margin-bottom: .4em; }
.step-list p { font-size: .93rem; margin: 0; }
@media (max-width: 980px) {
  .step-list { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .step-list li { padding: 0 0 28px 64px; }
  .step-list li::after { top: 52px; bottom: 6px; left: 22px; right: auto; width: 1px; height: auto; }
}

/* ---------- Media ---------- */
.media-frame { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); background: var(--grey-100); }
.media-frame img, .media-frame video { width: 100%; }
.media-frame--accent::before {
  content: ""; position: absolute; z-index: -1; inset: auto -14px -14px auto; width: 55%; height: 55%;
  border-radius: var(--radius-lg); background: var(--green);
}
.media-stack { position: relative; isolation: isolate; }
.media-stack .media-frame--accent::before { z-index: -1; }
.media-stack .media-frame { overflow: visible; }
.media-stack .media-frame > a, .media-stack .media-frame > img { border-radius: var(--radius-lg); overflow: hidden; display: block; }

figure { margin: 0; }
figcaption { font-size: .86rem; color: var(--muted); margin-top: 10px; }

.zoom { position: relative; display: block; cursor: zoom-in; border-radius: inherit; overflow: hidden; }
.zoom::after {
  content: ""; position: absolute; right: 14px; bottom: 14px; width: 38px; height: 38px; border-radius: 50%;
  background: rgba(27,27,27,.75) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 3h6v6M9 21H3v-6M21 3l-7 7M3 21l7-7'/%3E%3C/svg%3E") center / 16px no-repeat;
  opacity: 0; transform: scale(.9); transition: opacity .2s, transform .2s;
}
.zoom:hover::after, .zoom:focus-visible::after { opacity: 1; transform: none; }

.video-frame { border-radius: var(--radius-lg); overflow: hidden; background: var(--charcoal-950); box-shadow: var(--shadow); }
.video-frame video { width: 100%; aspect-ratio: 16 / 9; background: var(--charcoal-950); }

/* ---------- Prose ---------- */
.prose { max-width: 72ch; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.6em; }
.prose > :first-child { margin-top: 0; }
.prose figure { margin: 2rem 0; }
.prose figure img { border-radius: var(--radius-lg); }

/* ---------- Stats strip ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--white); }
.stat { padding: 28px; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat__value { font-family: var(--font-head); font-size: 1.9rem; font-weight: 700; color: var(--ink); line-height: 1.1; }
.stat__value span { color: var(--green-ink); }
.stat__label { font-size: .9rem; color: var(--muted); margin-top: 6px; }
@media (max-width: 860px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* ---------- Callout / CTA ---------- */
.cta-band { position: relative; background: var(--charcoal); color: rgba(255,255,255,.8); overflow: hidden; isolation: isolate; }
.cta-band::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background:
    radial-gradient(600px 300px at 100% 0%, rgba(140,198,63,.35), transparent 70%),
    repeating-linear-gradient(90deg, rgba(255,255,255,.035) 0 1px, transparent 1px 64px),
    repeating-linear-gradient(0deg, rgba(255,255,255,.035) 0 1px, transparent 1px 64px);
}
.cta-band__inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 64px 0; flex-wrap: wrap; }
.cta-band h2 { color: var(--white); margin-bottom: .3em; }
.cta-band p { margin: 0; font-size: 1.08rem; max-width: 560px; }
.cta-band .btn-row { flex: none; }

.note {
  border-left: 3px solid var(--green); background: var(--grey-50); padding: 18px 22px;
  border-radius: 0 var(--radius) var(--radius) 0; margin: 0 0 1.4em;
}
.note p:last-child { margin: 0; }

.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; }
.panel h3 { font-size: 1.1rem; }
.panel--dark { background: var(--charcoal); border-color: var(--charcoal); color: rgba(255,255,255,.78); }
.panel--dark h3 { color: var(--white); }
.panel + .panel { margin-top: 20px; }

.sidebar { position: sticky; top: calc(var(--header-h) + 24px); }
.layout-sidebar { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 56px; align-items: start; }
@media (max-width: 980px) { .layout-sidebar { grid-template-columns: minmax(0, 1fr); } .sidebar { position: static; } }

.meta-list { list-style: none; padding: 0; margin: 0 0 1.4em; }
.meta-list li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: .94rem; }
.meta-list li:last-child { border-bottom: 0; }
.meta-list a { color: inherit; text-decoration-color: var(--green); text-underline-offset: 3px; }
.meta-list a:hover { color: var(--green-ink); }
.meta-list span:first-child { color: var(--muted); }
.meta-list span:last-child { color: var(--ink); font-weight: 600; text-align: right; }

/* ---------- Downloads ---------- */
.download-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.download {
  display: flex; align-items: center; gap: 16px; padding: 16px 18px; border: 1px solid var(--line);
  border-radius: var(--radius-lg); background: var(--white); text-decoration: none; color: var(--ink);
  transition: border-color .2s, box-shadow .2s, transform .2s var(--ease);
}
.download:hover { border-color: var(--green); box-shadow: var(--shadow-sm); transform: translateY(-1px); color: var(--ink); }
.download__icon { width: 44px; height: 44px; flex: none; border-radius: 10px; background: var(--green-tint); color: var(--green-ink); display: grid; place-items: center; font-family: var(--font-head); font-size: .7rem; font-weight: 700; letter-spacing: .04em; }
.download__text { flex: 1; min-width: 0; }
.download__text strong { display: block; font-family: var(--font-head); font-size: .98rem; }
.download__text span { display: block; font-size: .85rem; color: var(--muted); }
.download > .icon { color: var(--muted); }

/* ---------- LOD table ---------- */
.lod-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--white); -webkit-overflow-scrolling: touch; }
.lod-table { width: 100%; border-collapse: collapse; min-width: 820px; font-size: .9rem; line-height: 1.5; }
.lod-table th, .lod-table td { padding: 14px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.lod-table thead th { background: var(--charcoal); color: var(--white); font-family: var(--font-head); font-weight: 600; font-size: .85rem; letter-spacing: .04em; position: sticky; top: 0; }
.lod-table thead th:first-child { border-top-left-radius: var(--radius-lg); }
.lod-table thead th:last-child { border-top-right-radius: var(--radius-lg); }
.lod-table tbody th { font-family: var(--font-head); color: var(--ink); font-weight: 600; white-space: nowrap; background: var(--grey-50); }
.lod-table tbody tr:last-child td, .lod-table tbody tr:last-child th { border-bottom: 0; }
.lod-table td.na { color: #a0a0a0; }

/* ---------- Filters ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; }
.filter-btn {
  font-family: var(--font-head); font-size: .86rem; font-weight: 600; padding: 9px 16px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--white); color: var(--ink); cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.filter-btn:hover { border-color: var(--charcoal); }
.filter-btn[aria-pressed="true"] { background: var(--charcoal); border-color: var(--charcoal); color: var(--white); }
.filter-btn .count { opacity: .55; margin-left: 4px; font-weight: 500; }
[data-filter-item][hidden] { display: none !important; }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.gallery__item { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: var(--charcoal); aspect-ratio: 4 / 3; }
.gallery__item a.zoom { height: 100%; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease), opacity .3s; }
.gallery__item:hover img { transform: scale(1.05); opacity: .85; }
.gallery__caption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 18px 16px; pointer-events: none;
  background: linear-gradient(0deg, rgba(27,27,27,.88), rgba(27,27,27,0)); color: var(--white);
}
.gallery__caption strong { display: block; font-family: var(--font-head); font-size: .98rem; }
.gallery__caption span { font-size: .8rem; color: rgba(255,255,255,.7); }
.gallery__item .zoom::after { bottom: auto; top: 14px; }
@media (max-width: 900px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .gallery { grid-template-columns: minmax(0, 1fr); } }

.thumb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.thumb-grid a { display: block; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: var(--grey-100); }
.thumb-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.thumb-grid a:hover img { transform: scale(1.05); }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 500; background: rgba(15,15,15,.94);
  display: flex; align-items: center; justify-content: center; padding: 64px 72px;
  opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox figure { max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 160px); width: auto; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.lightbox figcaption { color: rgba(255,255,255,.8); text-align: center; margin-top: 14px; font-size: .92rem; }
.lightbox button {
  position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255,255,255,.1); color: var(--white); display: grid; place-items: center; transition: background-color .2s;
}
.lightbox button:hover { background: var(--green); color: var(--charcoal-950); }
.lightbox button .icon { width: 22px; height: 22px; }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 16px; top: 50%; transform: translateY(-50%); }
.lightbox[data-single] .lightbox__prev, .lightbox[data-single] .lightbox__next { display: none; }
@media (max-width: 640px) {
  .lightbox { padding: 64px 12px; }
  .lightbox__prev, .lightbox__next { top: auto; bottom: 14px; transform: none; }
}

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--white); transition: border-color .2s, box-shadow .2s; }
.faq details[open] { border-color: transparent; box-shadow: var(--shadow); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 60px 20px 24px; position: relative;
  font-family: var(--font-head); font-weight: 600; color: var(--ink); font-size: 1.02rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 22px; top: 50%; width: 24px; height: 24px; margin-top: -12px; border-radius: 50%;
  background: var(--green-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234e7a17' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 14px no-repeat;
  transition: transform .25s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .faq__body { padding: 0 24px 22px; }
.faq .faq__body p:last-child { margin: 0; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.field label { display: block; font-family: var(--font-head); font-size: .85rem; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.field label .req { color: var(--green-ink); }
.field input, .field textarea, .field select {
  width: 100%; font: inherit; font-size: .98rem; color: var(--ink); background: var(--white);
  border: 1px solid #cfcfcf; border-radius: var(--radius); padding: 12px 14px; transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 160px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--green-600); box-shadow: 0 0 0 3px rgba(140,198,63,.25); }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { display: none; padding: 14px 16px; border-radius: var(--radius); font-size: .95rem; }
.form-status.is-success { display: block; background: var(--green-tint); color: var(--green-ink); }
.form-status.is-error { display: block; background: #fdecec; color: #9b1c1c; }
.form-note { font-size: .85rem; color: var(--muted); margin: 0; }

.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list .icon-badge { width: 42px; height: 42px; flex: none; border-radius: 10px; background: rgba(140,198,63,.14); color: var(--green); display: grid; place-items: center; }
.contact-list .icon-badge .icon { width: 19px; height: 19px; }
.contact-list strong { display: block; font-family: var(--font-head); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.55); font-weight: 600; margin-bottom: 2px; }
.contact-list a { color: var(--white); text-decoration: none; overflow-wrap: anywhere; }
.contact-list li > div { min-width: 0; }
.footer-contact a, .footer-contact span { overflow-wrap: anywhere; }
.contact-list a:hover { color: var(--green); }
.contact-list span { color: var(--white); }

.map-frame { border: 0; width: 100%; height: 420px; display: block; filter: grayscale(.35); }

/* ---------- Project list (sign in) ---------- */
.project-files { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.project-files li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); flex-wrap: wrap; }
.project-files strong { font-family: var(--font-head); }

/* ---------- Tool docs ---------- */
.tool-index { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px; list-style: none; padding: 0; margin: 0; }
.tool-index a { display: block; padding: 10px 14px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-size: .92rem; font-weight: 500; }
.tool-index a:hover { border-color: var(--green); color: var(--green-ink); }
.tool { padding: 56px 0; border-top: 1px solid var(--line); }
.tool:first-of-type { border-top: 0; padding-top: 0; }
.tool__head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 22px; }
.tool__head h2 { font-size: 1.5rem; margin: 0; }
.tool__media { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 20px; margin-bottom: 26px; align-items: start; }
.tool__media .media-frame { box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
@media (max-width: 860px) { .tool__media { grid-template-columns: minmax(0, 1fr); } }
.tool ol { padding-left: 1.3em; display: grid; gap: 6px; }
.tool ol li::marker { color: var(--green-ink); font-weight: 700; font-family: var(--font-head); }
.tool .tip { font-size: .92rem; color: var(--muted); }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 600; font-family: var(--font-head); padding: 5px 11px; border-radius: 999px; background: var(--grey-100); color: var(--ink); }
.pill .icon { width: 14px; height: 14px; color: var(--green-ink); }

/* ---------- Footer ---------- */
.site-footer { background: var(--charcoal-950); color: rgba(255,255,255,.66); font-size: .94rem; }
.footer-main { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 48px; padding: 72px 0 56px; }
.footer-brand .brand { margin-bottom: 20px; }
.footer-brand p { max-width: 340px; }
.site-footer h2 { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--white); margin-bottom: 18px; font-weight: 600; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer a { color: rgba(255,255,255,.72); text-decoration: none; }
.site-footer a:hover { color: var(--green); }
.footer-contact { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.footer-contact li { display: flex; gap: 12px; }
.footer-contact .icon { color: var(--green); margin-top: 4px; }
.footer-recent { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.footer-recent a { display: block; color: var(--white); font-weight: 500; line-height: 1.4; }
.footer-recent span { font-size: .82rem; color: rgba(255,255,255,.5); }
.social { display: flex; gap: 10px; margin-top: 22px; }
.social a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.07); color: var(--white); transition: background-color .2s, color .2s; }
.social a:hover { background: var(--green); color: var(--charcoal-950); }
.social .icon { width: 18px; height: 18px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 22px 0; font-size: .84rem; color: rgba(255,255,255,.5); }
.footer-bottom .container { display: flex; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; }
.footer-bottom a { color: rgba(255,255,255,.6); }
@media (max-width: 980px) { .footer-main { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .footer-main { grid-template-columns: 1fr; gap: 36px; padding: 56px 0 40px; } }

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed; z-index: 400; left: 16px; right: 16px; bottom: 16px; max-width: 520px;
  background: var(--white); color: var(--body); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  padding: 22px 24px; border-top: 4px solid var(--green); font-size: .92rem;
  transform: translateY(20px); opacity: 0; visibility: hidden; transition: opacity .3s, transform .3s var(--ease), visibility .3s;
}
.cookie-banner.is-visible { opacity: 1; visibility: visible; transform: none; }
.cookie-banner h2 { font-size: 1rem; margin-bottom: .4em; }
.cookie-banner p { margin-bottom: 14px; }
.cookie-banner .btn-row { gap: 10px; }

/* ---------- Back to top ---------- */
.to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 90; width: 46px; height: 46px; border-radius: 50%;
  border: 0; background: var(--charcoal); color: var(--white); display: grid; place-items: center; cursor: pointer;
  box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .25s, transform .25s var(--ease), visibility .25s, background-color .2s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--green); color: var(--charcoal-950); }

/* ---------- 404 ---------- */
.error-page { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 96px 0; }
.error-page__code { font-family: var(--font-head); font-size: clamp(5rem, 14vw, 9rem); font-weight: 700; line-height: 1; color: var(--green); margin-bottom: 8px; }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .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; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.mt-lg { margin-top: 48px; }
.text-center { text-align: center; }
.muted { color: var(--muted); }
.stack > * + * { margin-top: 20px; }

/* ---------- Print ---------- */
@media print {
  .site-header, .site-footer, .cookie-banner, .to-top, .cta-band { display: none !important; }
  .page-hero { background: none; color: #000; padding: 0 0 20px; }
  .page-hero h1, .page-hero__lead { color: #000; }
  .page-hero__bg { display: none; }
}
