/* ==========================================================================
   GreenD Fab – main stylesheet
   Industrial / premium B2B. Charcoal + white + light grey, restrained green.
   No framework, no build step. Mobile-first.
   ========================================================================== */

/* ---------- Fonts (self-hosted, GDPR-friendly: no third-party requests) ---- */
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-var.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-ext-var.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Plex Mono";
  src: url("../fonts/plexmono-latin-500.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Plex Mono";
  src: url("../fonts/plexmono-latin-ext-500.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+2020, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Tokens ---------- */
:root {
  --ink-950: #0A0D0C;
  --ink-900: #0E1211;
  --ink-850: #131816;
  --ink-800: #19201D;
  --ink-750: #202825;
  --ink-700: #2A3430;
  --ink-600: #3B4642;
  --grey-500: #66716C;
  --grey-400: #8C9691;
  --grey-300: #B6BEBA;
  --grey-200: #D9DEDB;
  --grey-150: #E5E9E7;
  --grey-100: #EEF1EF;
  --grey-50:  #F6F7F6;
  --white: #FFFFFF;

  --green-200: #BFE3A0;
  --green-300: #9CD067;
  --green-400: #6CC24A;   /* accent on dark */
  --green-500: #3E9A45;
  --green-600: #2C7A3A;   /* accent on light (AA with white text) */
  --green-700: #22612F;
  --green-900: #163E24;

  --danger-500: #D9534F;
  --danger-100: #FBEAEA;
  --danger-on-dark: #FF8A80;
  --success-100: #E8F4E4;

  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-mono: "Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --container: 1240px;
  --gutter: 16px;
  --radius-sm: 4px;
  --radius: 8px;
  --radius-lg: 14px;
  --header-h: 68px;
  --section-y: clamp(64px, 9vw, 128px);
  --shadow-lg: 0 24px 60px -24px rgba(10, 13, 12, .35);
  --ease: cubic-bezier(.2, .7, .2, 1);

  /* illustration colours (inline SVG) */
  --i-obj-a: #4EA84B;
  --i-obj-b: #3C8D42;
  --i-obj-edge: #2A6A35;
  --i-obj-inner: #183A22;
}
@media (min-width: 768px) { :root { --gutter: 32px; --header-h: 76px; } }

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; background: var(--white); color: var(--ink-850);
  font-family: var(--font-sans); font-size: 1rem; line-height: 1.65;
  font-feature-settings: "cv11", "ss01"; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: var(--green-600); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--green-700); }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.12; font-weight: 650; letter-spacing: -0.025em; color: inherit; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 1.4rem + 4.6vw, 4.9rem); letter-spacing: -0.04em; line-height: 1.02; font-weight: 680; }
h2 { font-size: clamp(1.85rem, 1.25rem + 2.3vw, 3.1rem); letter-spacing: -0.035em; }
h3 { font-size: clamp(1.15rem, 1rem + .5vw, 1.4rem); letter-spacing: -0.02em; line-height: 1.25; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
strong { font-weight: 620; }
small { font-size: .875rem; }
hr { border: 0; border-top: 1px solid var(--grey-150); margin: 2rem 0; }
::selection { background: var(--green-300); color: var(--ink-950); }
:focus-visible { outline: 2px solid var(--green-400); outline-offset: 3px; border-radius: 2px; }
main:focus { outline: none; }
[hidden] { display: none !important; }
.sr-only { 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: 12px; top: -60px; z-index: 200; background: var(--green-400); color: var(--ink-950); padding: 10px 16px; border-radius: var(--radius-sm); font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 12px; }
.icon { width: 1.25em; height: 1.25em; flex: none; }

/* placeholder for data the company still has to provide */
.todo { background: repeating-linear-gradient(-45deg, rgba(255, 196, 0, .16) 0 6px, rgba(255, 196, 0, .28) 6px 12px); color: inherit; padding: 0 .3em; border-radius: 3px; font-family: var(--font-mono); font-size: .85em; white-space: normal; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.container--narrow { max-width: calc(860px + 2 * var(--gutter)); }
.section { padding: var(--section-y) 0; position: relative; }
.section--tight { padding: clamp(48px, 6vw, 80px) 0; }
.section--light { background: var(--grey-50); }
.section--dark { background: var(--ink-900); color: var(--grey-200); }
.section--dark h1, .section--dark h2, .section--dark h3 { color: var(--white); }
.section--dark a:not(.btn) { color: var(--green-300); }
.section--border-top { border-top: 1px solid var(--grey-150); }
.section--dark.section--border-top { border-top-color: var(--ink-750); }

.grid { display: grid; gap: clamp(20px, 2.4vw, 32px); }
@media (min-width: 640px) { .grid--2 { grid-template-columns: repeat(2, 1fr); } .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } .grid--4 { grid-template-columns: repeat(4, 1fr); } }

.split { display: grid; gap: clamp(32px, 5vw, 80px); align-items: center; }
@media (min-width: 960px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--wide-left { grid-template-columns: 1.15fr .85fr; }
  .split--wide-right { grid-template-columns: .85fr 1.15fr; }
  .split--top { align-items: start; }
}

.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head--row { max-width: none; display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: end; justify-content: space-between; }
.section-head--row > div { max-width: 720px; }
.lead { font-size: clamp(1.08rem, 1rem + .35vw, 1.3rem); line-height: 1.6; color: var(--grey-500); }
.section--dark .lead { color: var(--grey-300); }
.muted { color: var(--grey-500); }
.section--dark .muted { color: var(--grey-400); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px;
  font-family: var(--font-mono); font-size: .75rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase;
  color: var(--green-600);
}
.eyebrow::before { content: ""; width: 8px; height: 8px; background: currentColor; border-radius: 1px; }
.section--dark .eyebrow, .hero .eyebrow, .page-hero .eyebrow { color: var(--green-400); }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--ink-900); --btn-fg: var(--white); --btn-bd: var(--btn-bg);
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: 12px 22px; border-radius: var(--radius-sm);
  background: var(--btn-bg); color: var(--btn-fg); border: 1px solid var(--btn-bd);
  font: 600 .975rem/1.2 var(--font-sans); letter-spacing: -0.005em; text-decoration: none; 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 .icon { width: 1.1em; height: 1.1em; transition: transform .2s var(--ease); }
.btn:hover { color: var(--btn-fg); }
.btn:hover .icon { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }
.btn--primary { --btn-bg: var(--green-600); --btn-fg: var(--white); }
.btn--primary:hover { --btn-bg: var(--green-700); }
.section--dark .btn--primary, .hero .btn--primary, .page-hero .btn--primary, .site-header .btn--primary, .site-footer .btn--primary, .cta-band .btn--primary, .mobile-cta .btn--primary {
  --btn-bg: var(--green-400); --btn-fg: var(--ink-950);
}
.section--dark .btn--primary:hover, .hero .btn--primary:hover, .page-hero .btn--primary:hover, .site-header .btn--primary:hover, .site-footer .btn--primary:hover, .cta-band .btn--primary:hover, .mobile-cta .btn--primary:hover { --btn-bg: var(--green-300); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink-900); --btn-bd: var(--grey-300); }
.btn--ghost:hover { --btn-bd: var(--ink-900); --btn-fg: var(--ink-900); }
.section--dark .btn--ghost, .hero .btn--ghost, .page-hero .btn--ghost, .cta-band .btn--ghost { --btn-fg: var(--white); --btn-bd: var(--ink-600); }
.section--dark .btn--ghost:hover, .hero .btn--ghost:hover, .page-hero .btn--ghost:hover, .cta-band .btn--ghost:hover { --btn-bd: var(--white); --btn-fg: var(--white); }
.btn--lg { min-height: 56px; padding: 16px 28px; font-size: 1.05rem; }
.btn--block { width: 100%; }
.btn[disabled], .btn.is-loading { opacity: .65; cursor: progress; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.link-arrow { display: inline-flex; align-items: center; gap: .4em; font-weight: 600; text-decoration: none; }
.link-arrow .icon { width: 1.05em; height: 1.05em; transition: transform .2s var(--ease); }
.link-arrow:hover .icon { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; height: var(--header-h);
  background: transparent; border-bottom: 1px solid rgba(255, 255, 255, .06);
  color: var(--grey-200);
}
.site-header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: block; flex: none; }
.brand img { height: 30px; width: auto; }
@media (min-width: 768px) { .brand img { height: 34px; } }
.nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; margin-right: -8px; background: none; border: 0; color: var(--white); cursor: pointer; border-radius: var(--radius-sm); }
.nav-toggle .icon { width: 26px; height: 26px; }
.nav-toggle__close { display: none; }
.nav-open .nav-toggle__open { display: none; }
.nav-open .nav-toggle__close { display: inline-flex; }

.main-nav {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 99;
  background: var(--ink-900); padding: 24px var(--gutter) 40px;
  display: flex; flex-direction: column; gap: 24px; overflow-y: auto;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility 0s linear .2s;
}
.nav-open .main-nav { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.main-nav__list { list-style: none; margin: 0; padding: 0; }
.main-nav__link { display: block; padding: 14px 0; color: var(--white); text-decoration: none; font-size: 1.35rem; font-weight: 560; letter-spacing: -0.02em; border-bottom: 1px solid var(--ink-750); }
.main-nav__link.is-active { color: var(--green-400); }
.main-nav__cta { min-height: 54px; font-size: 1.05rem; }
.main-nav__mobile-extra a { display: inline-flex; gap: 10px; align-items: center; color: var(--grey-300); text-decoration: none; }
body.nav-open { overflow: hidden; }

@media (min-width: 1100px) {
  .nav-toggle { display: none; }
  .main-nav { position: static; inset: auto; padding: 0; background: none; flex-direction: row; align-items: center; gap: 28px; opacity: 1; visibility: visible; transform: none; overflow: visible; }
  .main-nav__list { display: flex; gap: 4px; }
  .main-nav__link { padding: 8px 12px; font-size: .94rem; font-weight: 500; color: var(--grey-300); border: 0; border-radius: var(--radius-sm); letter-spacing: -0.005em; transition: color .15s; }
  .main-nav__link:hover { color: var(--white); }
  .main-nav__link.is-active { color: var(--white); box-shadow: inset 0 -2px 0 var(--green-400); border-radius: 0; }
  .main-nav__cta { min-height: 42px; padding: 10px 18px; font-size: .92rem; }
  .main-nav__mobile-extra { display: none; }
}

/* ---------- Hero (home) ---------- */
.hero {
  position: relative; overflow: hidden; background: var(--ink-900); color: var(--grey-200);
  padding: clamp(40px, 6vw, 72px) 0 0;
}
.hero::before { /* engineering grid */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 48px 48px; background-position: -1px -1px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 40%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 70% at 70% 40%, #000 30%, transparent 75%);
}
.hero__grid { position: relative; display: grid; gap: 24px; align-items: center; }
@media (min-width: 1024px) { .hero__grid { grid-template-columns: 1.05fr .95fr; gap: 40px; min-height: min(calc(100vh - var(--header-h) - 150px), 680px); } }
.hero h1 { color: var(--white); margin-bottom: 24px; }
.hero h1 .accent { color: var(--green-400); }
.hero__lead { font-size: clamp(1.1rem, 1rem + .45vw, 1.35rem); color: var(--grey-300); max-width: 34em; margin-bottom: 32px; }
.hero__visual { position: relative; margin: 0 -8px; }
.hero__visual .illus { width: 100%; max-height: 640px; margin: 0 auto; }
@media (min-width: 1024px) { .hero__visual { margin: 0; } }
.hero__specs {
  position: relative; margin-top: clamp(32px, 5vw, 56px);
  display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--ink-750);
}
@media (min-width: 900px) { .hero__specs { grid-template-columns: repeat(4, 1fr); } }
.hero__spec { padding: 22px 16px 26px 0; border-bottom: 1px solid var(--ink-750); }
.hero__spec:nth-child(odd) { padding-right: 16px; }
@media (min-width: 900px) { .hero__spec { border-bottom: 0; padding: 26px 24px 30px 0; } .hero__spec + .hero__spec { padding-left: 24px; border-left: 1px solid var(--ink-750); } }
.hero__spec-value { display: block; color: var(--white); font-size: clamp(1.05rem, .95rem + .5vw, 1.35rem); font-weight: 620; letter-spacing: -0.02em; line-height: 1.25; }
.hero__spec-label { display: block; margin-top: 6px; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--grey-400); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { position: relative; overflow: hidden; background: var(--ink-900); color: var(--grey-300); padding: clamp(56px, 8vw, 112px) 0 clamp(48px, 7vw, 96px); }
.page-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, .03) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .03) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: linear-gradient(100deg, transparent 30%, #000 85%); mask-image: linear-gradient(100deg, transparent 30%, #000 85%);
}
.page-hero .container { position: relative; }
.page-hero h1 { color: var(--white); font-size: clamp(2.2rem, 1.3rem + 3.6vw, 4.2rem); max-width: 16em; }
.page-hero .lead { color: var(--grey-300); max-width: 40em; margin-bottom: 0; }
.page-hero__actions { margin-top: 32px; }
.breadcrumb { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0 0 28px; font-size: .85rem; color: var(--grey-400); }
.breadcrumb a { color: var(--grey-400); text-decoration: none; }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; color: var(--ink-600); }

/* ---------- Cards ---------- */
.card {
  position: relative; display: flex; flex-direction: column; gap: 10px;
  padding: clamp(24px, 2.5vw, 32px); background: var(--white); border: 1px solid var(--grey-150); border-radius: var(--radius);
  transition: border-color .2s var(--ease), box-shadow .25s var(--ease), transform .25s var(--ease);
}
.card h3 { margin: 6px 0 2px; }
.card p { margin: 0; color: var(--grey-500); }
.card__icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: var(--radius-sm); background: var(--grey-100); color: var(--green-600); }
.card__icon .icon { width: 26px; height: 26px; }
.card__num { font-family: var(--font-mono); font-size: .78rem; color: var(--grey-400); letter-spacing: .08em; }
.card__link { margin-top: auto; padding-top: 12px; }
a.card { text-decoration: none; color: inherit; }
a.card:hover, .card--hover:hover { border-color: var(--grey-300); box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.section--light .card { border-color: var(--grey-150); }
.section--dark .card { background: var(--ink-850); border-color: var(--ink-750); }
.section--dark .card p { color: var(--grey-400); }
.section--dark .card__icon { background: var(--ink-750); color: var(--green-400); }
.section--dark a.card:hover { border-color: var(--ink-600); box-shadow: none; }
.card ul { margin: 6px 0 0; padding: 0; list-style: none; color: var(--grey-500); font-size: .95rem; }
.card ul li { position: relative; padding-left: 20px; margin: 4px 0; }
.card ul li::before { content: ""; position: absolute; left: 2px; top: .7em; width: 8px; height: 2px; background: var(--green-500); }

/* feature list (icon left) */
.features { display: grid; gap: 0; border-top: 1px solid var(--grey-150); }
.feature { display: grid; grid-template-columns: 44px 1fr; gap: 18px; padding: 24px 0; border-bottom: 1px solid var(--grey-150); }
.feature h3 { margin: 0 0 6px; font-size: 1.12rem; }
.feature p { margin: 0; color: var(--grey-500); }
.feature .icon { width: 28px; height: 28px; color: var(--green-600); margin-top: 2px; }
.section--dark .features, .section--dark .feature { border-color: var(--ink-750); }
.section--dark .feature p { color: var(--grey-400); }
.section--dark .feature .icon { color: var(--green-400); }
@media (min-width: 768px) { .features--2 { grid-template-columns: 1fr 1fr; column-gap: 48px; } }

/* numbered big stats / specs */
.spec-table { width: 100%; border-collapse: collapse; font-size: .98rem; }
.spec-table th, .spec-table td { text-align: left; padding: 16px 0; border-bottom: 1px solid var(--grey-150); vertical-align: top; }
.spec-table th { width: 42%; padding-right: 20px; font-family: var(--font-mono); font-weight: 500; font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; color: var(--grey-500); padding-top: 19px; }
.spec-table td { font-weight: 560; color: var(--ink-900); }
.section--dark .spec-table th, .section--dark .spec-table td { border-color: var(--ink-750); }
.section--dark .spec-table th { color: var(--grey-400); }
.section--dark .spec-table td { color: var(--white); }
.spec-table .big { font-size: 1.35rem; letter-spacing: -0.02em; color: var(--green-600); }
.section--dark .spec-table .big { color: var(--green-400); }

/* comparison table */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--grey-150); border-radius: var(--radius); background: var(--white); }
.compare { width: 100%; min-width: 620px; border-collapse: collapse; font-size: .95rem; }
.compare th, .compare td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--grey-150); vertical-align: top; }
.compare thead th { background: var(--grey-50); font-size: .8rem; font-family: var(--font-mono); font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--grey-500); }
.compare thead th.is-highlight { color: var(--green-600); }
.compare tbody th { font-weight: 600; color: var(--ink-900); width: 24%; }
.compare td.is-highlight { background: rgba(108, 194, 74, .07); }
.compare tr:last-child th, .compare tr:last-child td { border-bottom: 0; }

/* callout */
.callout { display: grid; grid-template-columns: auto 1fr; gap: 16px; padding: 22px 24px; border-radius: var(--radius); background: var(--grey-50); border: 1px solid var(--grey-150); border-left: 3px solid var(--green-500); }
.callout .icon { width: 24px; height: 24px; color: var(--green-600); margin-top: 2px; }
.callout p:last-child { margin-bottom: 0; }
.callout h3 { font-size: 1.05rem; margin-bottom: 6px; }
.callout--warn { border-left-color: #C9A227; }
.callout--warn .icon { color: #9C7B12; }
.section--dark .callout { background: var(--ink-850); border-color: var(--ink-750); border-left-color: var(--green-400); }
.section--dark .callout .icon { color: var(--green-400); }

.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-family: var(--font-mono); font-size: .7rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; background: var(--grey-100); color: var(--grey-500); border: 1px solid var(--grey-150); }
.badge--green { background: rgba(108, 194, 74, .12); color: var(--green-700); border-color: rgba(108, 194, 74, .35); }
.section--dark .badge--green, .page-hero .badge--green { color: var(--green-300); background: rgba(108, 194, 74, .1); }
.badge--outline { background: transparent; }

/* ---------- Process steps ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: step; }
.step { position: relative; padding: 0 0 32px 64px; counter-increment: step; }
.step::before {
  content: counter(step, decimal-leading-zero); position: absolute; left: 0; top: 0;
  width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid var(--grey-300); font-family: var(--font-mono); font-size: .82rem; color: var(--ink-900); background: var(--white);
}
.step::after { content: ""; position: absolute; left: 22px; top: 48px; bottom: 4px; width: 1px; background: var(--grey-200); }
.step:last-child::after { display: none; }
.step h3 { font-size: 1.12rem; margin: 9px 0 6px; }
.step p { color: var(--grey-500); margin: 0; }
.section--light .step::before { background: var(--grey-50); }
.section--dark .step::before { background: var(--ink-900); color: var(--white); border-color: var(--ink-600); }
.section--dark .step::after { background: var(--ink-700); }
.section--dark .step p { color: var(--grey-400); }
@media (min-width: 1024px) {
  .steps--row { grid-template-columns: repeat(5, 1fr); gap: 24px; }
  .steps--row .step { padding: 64px 0 0; }
  .steps--row .step::after { left: 52px; right: -20px; top: 22px; bottom: auto; width: auto; height: 1px; }
}

/* ---------- Applications / tiles ---------- */
.tiles { display: grid; gap: 1px; background: var(--grey-150); border: 1px solid var(--grey-150); border-radius: var(--radius); overflow: hidden; }
@media (min-width: 640px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .tiles { grid-template-columns: repeat(3, 1fr); } }
.tile { background: var(--white); padding: clamp(24px, 2.6vw, 36px); display: flex; flex-direction: column; gap: 8px; }
.tile .icon { width: 30px; height: 30px; color: var(--green-600); margin-bottom: 10px; }
.tile h3 { margin: 0; font-size: 1.12rem; }
.tile p { margin: 0; color: var(--grey-500); font-size: .96rem; }
.section--dark .tiles { background: var(--ink-750); border-color: var(--ink-750); }
.section--dark .tile { background: var(--ink-900); }
.section--dark .tile p { color: var(--grey-400); }
.section--dark .tile .icon { color: var(--green-400); }

/* ---------- Media / illustrations ---------- */
.media-frame { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: var(--ink-900); border: 1px solid var(--ink-750); }
.media-frame--light { background: var(--grey-50); border-color: var(--grey-150); }
.media-frame--pad { padding: clamp(20px, 3vw, 40px); }
.media-caption { margin-top: 12px; font-size: .85rem; color: var(--grey-500); }
.section--dark .media-caption { color: var(--grey-400); }

/* hero printer */
.illus--printer .i-base { stroke: #2D3834; stroke-width: .8; }
.illus--printer .i-base--0 { fill: #1D2522; }
.illus--printer .i-base--1 { fill: #151B19; }
.illus--printer .i-base--2 { fill: #111614; }
.illus--printer .i-grid { stroke: #2C3733; stroke-width: .6; }
.illus--printer .i-vol { stroke: var(--green-400); stroke-width: 1; stroke-dasharray: 4 5; opacity: .55; fill: none; }
.illus--printer [class*="i-post"], .illus--printer [class*="i-rail"], .illus--printer [class*="i-beam"] { stroke: #3A4642; stroke-width: .7; stroke-linejoin: round; }
.illus--printer .i-post--0, .illus--printer .i-rail--0, .illus--printer .i-beam--0 { fill: #46524E; }
.illus--printer .i-post--1, .illus--printer .i-rail--1, .illus--printer .i-beam--1 { fill: #2E3835; }
.illus--printer .i-post--2, .illus--printer .i-rail--2, .illus--printer .i-beam--2 { fill: #232B28; }
.illus--printer [class*="i-head"], .illus--printer [class*="i-ram"] { stroke: #4D5955; stroke-width: .7; stroke-linejoin: round; }
.illus--printer .i-head--0, .illus--printer .i-ram--0 { fill: #8D9893; }
.illus--printer .i-head--1, .illus--printer .i-ram--1 { fill: #6A7570; }
.illus--printer .i-head--2, .illus--printer .i-ram--2 { fill: #525C58; }
.illus--printer [class*="i-heater"] { stroke: #8a4f2a; stroke-width: .5; }
.illus--printer .i-heater--0 { fill: #D98A4E; }
.illus--printer .i-heater--1 { fill: #B86D36; }
.illus--printer .i-heater--2 { fill: #96552A; }
.illus--printer .i-nozzle { fill: #B7C0BC; stroke: #6F7975; stroke-width: .6; }
.illus--printer .i-glow { fill: var(--green-300); filter: drop-shadow(0 0 6px rgba(156, 208, 103, .9)); animation: glow 2.4s ease-in-out infinite; }
.illus--printer [class*="i-hopper"] { stroke: #56625D; stroke-width: .7; stroke-linejoin: round; }
.illus--printer .i-hopper--0 { fill: #5C6763; }
.illus--printer .i-hopper--1 { fill: #47514D; }
.illus--printer .i-hopper--2 { fill: #26302C; }
.illus--printer .i-pellet { fill: var(--green-400); }
.illus--printer .i-bead { fill: none; stroke: var(--green-200); stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 22 200; animation: bead 3.2s linear infinite; filter: drop-shadow(0 0 4px rgba(191, 227, 160, .8)); }
.illus--printer .i-dim { stroke: var(--grey-500); stroke-width: .8; }
.illus--printer .i-dim-end { fill: var(--grey-400); }
.illus--printer .i-label { fill: var(--grey-300); font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; }
@keyframes bead { from { stroke-dashoffset: 222; } to { stroke-dashoffset: 0; } }
@keyframes glow { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }

/* scale illustration */
.illus--scale { width: 100%; max-width: 420px; margin: 0 auto; }
.illus--scale .s-grid { stroke: var(--grey-200); stroke-width: .6; }
.illus--scale .s-vol { fill: rgba(108, 194, 74, .07); stroke: var(--green-500); stroke-width: 1.4; stroke-dasharray: 5 4; }
.illus--scale .s-person { fill: var(--grey-400); }
.illus--scale .s-ground { stroke: var(--grey-400); stroke-width: 1; }
.illus--scale .s-dim { stroke: var(--green-600); stroke-width: 1; }
.illus--scale .s-dim--muted { stroke: var(--grey-400); }
.illus--scale .s-label { fill: var(--ink-850); font-family: var(--font-mono); font-size: 15px; letter-spacing: .06em; }
.illus--scale .s-label--muted { fill: var(--grey-500); }
.section--dark .illus--scale .s-grid { stroke: var(--ink-700); }
.section--dark .illus--scale .s-person { fill: var(--grey-500); }
.section--dark .illus--scale .s-label { fill: var(--grey-200); }

/* generic diagram styles (extruder, loop) */
.diagram { width: 100%; }
.diagram text { font-family: var(--font-mono); }
.d-line { stroke: var(--grey-400); stroke-width: 1.4; fill: none; }
.d-metal { fill: #C9D0CC; stroke: #8E9893; stroke-width: 1.2; }
.d-metal-dark { fill: #8E9893; stroke: #6B7570; stroke-width: 1.2; }
.d-heat { fill: #E2945A; stroke: #B86D36; stroke-width: 1; }
.d-screw { fill: none; stroke: #5A6560; stroke-width: 2.2; stroke-linejoin: round; }
.d-pellet { fill: var(--green-500); }
.d-pellet-2 { fill: var(--green-300); }
.d-melt { fill: var(--green-500); }
.d-layer { fill: var(--green-500); stroke: var(--green-700); stroke-width: 1; }
.d-layer-2 { fill: #57AE52; stroke: var(--green-700); stroke-width: 1; }
.d-bed { fill: var(--grey-300); }
.d-num { fill: var(--ink-900); }
.d-num-text { fill: var(--white); font-size: 13px; font-weight: 500; }
.d-arrow { stroke: var(--green-600); stroke-width: 1.6; fill: none; }
.d-arrow-head { fill: var(--green-600); }
.section--dark .d-num { fill: var(--green-400); }
.section--dark .d-num-text { fill: var(--ink-950); }

.legend { list-style: none; margin: 0; padding: 0; counter-reset: lg; display: grid; gap: 14px; }
.legend li { position: relative; padding-left: 44px; counter-increment: lg; }
.legend li::before { content: counter(lg); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--ink-900); color: var(--white); font-family: var(--font-mono); font-size: .8rem; display: grid; place-items: center; }
.legend strong { display: block; color: var(--ink-900); }
.legend span { color: var(--grey-500); font-size: .95rem; }

/* process chain (filament vs pellet) */
.chain { display: grid; gap: 18px; }
.chain__row { display: grid; gap: 10px; padding: 20px; border: 1px solid var(--grey-150); border-radius: var(--radius); background: var(--white); }
.chain__title { font-family: var(--font-mono); font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; color: var(--grey-500); }
.chain__row--hl { border-color: rgba(62, 154, 69, .45); background: linear-gradient(0deg, rgba(108, 194, 74, .05), rgba(108, 194, 74, .05)), var(--white); }
.chain__row--hl .chain__title { color: var(--green-600); }
.chain__steps { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.chain__steps li { display: inline-flex; align-items: center; gap: 8px; font-weight: 560; font-size: .95rem; }
.chain__steps li span { padding: 8px 12px; border-radius: var(--radius-sm); background: var(--grey-100); }
.chain__row--hl .chain__steps li span { background: rgba(108, 194, 74, .14); color: var(--green-900); }
.chain__steps li + li::before { content: "→"; color: var(--grey-400); }

/* loop (circular concept) */
.loop { position: relative; display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .loop { grid-template-columns: minmax(260px, 420px) 1fr; gap: 64px; } }
.loop__ring { width: 100%; max-width: 420px; margin: 0 auto; }
.loop__ring .r-track { fill: none; stroke: var(--ink-700); stroke-width: 2; }
.loop__ring .r-arc { fill: none; stroke: var(--green-400); stroke-width: 3; stroke-linecap: round; }
.loop__ring .r-head { fill: var(--green-400); }
.loop__ring .r-node { fill: var(--ink-850); stroke: var(--green-400); stroke-width: 2; }
.loop__ring .r-icon { stroke: var(--green-300); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.loop__ring .r-num { fill: var(--grey-400); font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; }
.loop__ring .r-center { fill: var(--white); font-family: var(--font-sans); font-weight: 650; font-size: 22px; letter-spacing: -0.02em; }
.loop__ring .r-center-sub { fill: var(--grey-400); font-family: var(--font-mono); font-size: 10px; letter-spacing: .12em; }
.section:not(.section--dark) .loop__ring .r-track { stroke: var(--grey-200); }
.section:not(.section--dark) .loop__ring .r-node { fill: var(--white); stroke: var(--green-600); }
.section:not(.section--dark) .loop__ring .r-arc, .section:not(.section--dark) .loop__ring .r-head { stroke: var(--green-600); }
.section:not(.section--dark) .loop__ring .r-head { fill: var(--green-600); }
.section:not(.section--dark) .loop__ring .r-icon { stroke: var(--green-600); }
.section:not(.section--dark) .loop__ring .r-center { fill: var(--ink-900); }
.loop__steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.loop__steps li { display: grid; grid-template-columns: 44px 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--ink-750); }
.loop__steps li:first-child { border-top: 1px solid var(--ink-750); }
.loop__steps .n { font-family: var(--font-mono); font-size: .8rem; color: var(--green-400); padding-top: 3px; }
.loop__steps h3 { font-size: 1.08rem; margin: 0 0 4px; }
.loop__steps p { margin: 0; color: var(--grey-400); font-size: .96rem; }
.section:not(.section--dark) .loop__steps li { border-color: var(--grey-150); }
.section:not(.section--dark) .loop__steps .n { color: var(--green-600); }
.section:not(.section--dark) .loop__steps p { color: var(--grey-500); }

/* ---------- Projects / gallery ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.filter-btn { min-height: 40px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--grey-200); background: var(--white); color: var(--ink-850); font: 500 .9rem/1 var(--font-sans); cursor: pointer; transition: all .15s; }
.filter-btn:hover { border-color: var(--ink-900); }
.filter-btn[aria-pressed="true"] { background: var(--ink-900); border-color: var(--ink-900); color: var(--white); }
.gallery { display: grid; gap: clamp(16px, 2vw, 28px); }
@media (min-width: 640px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
.project { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--grey-150); border-radius: var(--radius); overflow: hidden; }
.project[hidden] { display: none; }
.project__media { position: relative; aspect-ratio: 4 / 3; background: var(--ink-900); overflow: hidden; }
.project__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.project:hover .project__media img { transform: scale(1.03); }
.project__tag { position: absolute; left: 14px; top: 14px; }
.project__tag .badge { background: rgba(14, 18, 17, .78); color: var(--grey-200); border-color: rgba(255, 255, 255, .12); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.project__body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.project__cat { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--green-600); }
.project__body h3 { margin: 0; font-size: 1.12rem; }
.project__body p { margin: 0; color: var(--grey-500); font-size: .95rem; }
.project__facts { margin: 10px 0 0; padding: 12px 0 0; border-top: 1px solid var(--grey-150); display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .84rem; color: var(--grey-500); list-style: none; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; background: var(--ink-900); color: var(--grey-300); border-radius: var(--radius-lg); padding: clamp(36px, 6vw, 72px); }
.cta-band::after { content: ""; position: absolute; right: -80px; bottom: -120px; width: 420px; height: 420px; border-radius: 50%; border: 1px solid rgba(108, 194, 74, .18); box-shadow: 0 0 0 40px rgba(108, 194, 74, .03), 0 0 0 80px rgba(108, 194, 74, .02); pointer-events: none; }
.cta-band h2 { color: var(--white); max-width: 18em; }
.cta-band p { max-width: 38em; }
.cta-band__inner { position: relative; z-index: 1; display: grid; gap: 28px; align-items: end; }
@media (min-width: 960px) { .cta-band__inner { grid-template-columns: 1fr auto; } }
.section--dark .cta-band { background: var(--ink-850); border: 1px solid var(--ink-750); }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--grey-150); }
.faq details { border-bottom: 1px solid var(--grey-150); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 44px 22px 0; position: relative; font-weight: 600; font-size: 1.06rem; color: var(--ink-900); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px; margin-top: -8px; border-right: 1.6px solid var(--grey-500); border-bottom: 1.6px solid var(--grey-500); transform: rotate(45deg); transition: transform .2s var(--ease); }
.faq details[open] summary::after { transform: rotate(225deg); margin-top: -2px; }
.faq details > div { padding: 0 0 22px; color: var(--grey-500); max-width: 60em; }
.faq details > div p:last-child { margin: 0; }

/* ---------- Prose (legal pages) ---------- */
.prose { max-width: 760px; }
.prose h2 { font-size: clamp(1.4rem, 1.2rem + .8vw, 1.8rem); margin-top: 2.2em; }
.prose h3 { margin-top: 1.8em; }
.prose p, .prose li { color: var(--ink-750); }
.prose li { margin: .35em 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 1em 0 1.5em; font-size: .95rem; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border: 1px solid var(--grey-150); vertical-align: top; }
.prose th { background: var(--grey-50); font-weight: 600; }
.legal-note { margin-bottom: 2rem; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 28px; }
.form-section { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 18px; }
.form-section > legend { padding: 0; margin-bottom: 4px; display: flex; align-items: center; gap: 12px; font-size: 1.15rem; font-weight: 650; letter-spacing: -0.015em; color: var(--ink-900); width: 100%; }
.form-section > legend .n { font-family: var(--font-mono); font-size: .75rem; font-weight: 500; color: var(--green-600); letter-spacing: .08em; }
.form-row { display: grid; gap: 18px; }
@media (min-width: 640px) { .form-row--2 { grid-template-columns: 1fr 1fr; } .form-row--3 { grid-template-columns: repeat(3, 1fr); } }
.field { display: grid; gap: 7px; min-width: 0; align-content: start; }
.field label, .field .label { font-size: .92rem; font-weight: 580; color: var(--ink-900); }
.field .req { color: var(--green-600); margin-left: 2px; }
.field .opt { font-weight: 400; color: var(--grey-500); font-size: .85rem; margin-left: 4px; }
.field .hint { font-size: .84rem; color: var(--grey-500); margin: 0; }
.input, .select, .textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid var(--grey-200); border-radius: var(--radius-sm);
  background: var(--white); color: var(--ink-900); font: 400 1rem/1.4 var(--font-sans);
  transition: border-color .15s, box-shadow .15s; -webkit-appearance: none; appearance: none;
}
.textarea { min-height: 140px; resize: vertical; line-height: 1.55; }
.select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2366716C' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; padding-right: 40px; }
.input:hover, .select:hover, .textarea:hover { border-color: var(--grey-300); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--green-500); box-shadow: 0 0 0 3px rgba(62, 154, 69, .18); }
.input::placeholder, .textarea::placeholder { color: var(--grey-400); }
.field.has-error .input, .field.has-error .select, .field.has-error .textarea { border-color: var(--danger-500); }
.field.has-error .input:focus, .field.has-error .textarea:focus { box-shadow: 0 0 0 3px rgba(217, 83, 79, .15); }
.field-error { display: flex; gap: 6px; align-items: flex-start; font-size: .86rem; color: #B23B37; margin: 0; }
.field-error:empty { display: none; }
.check { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; font-size: .95rem; color: var(--ink-850); cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--green-600); cursor: pointer; }
.hp-field { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* dropzone */
.dropzone {
  position: relative; display: grid; justify-items: center; gap: 10px; text-align: center;
  padding: 36px 20px; border: 1.5px dashed var(--grey-300); border-radius: var(--radius); background: var(--grey-50);
  transition: border-color .15s, background-color .15s; cursor: pointer;
}
.dropzone:hover, .dropzone:focus-within { border-color: var(--green-500); }
.dropzone.is-dragover { border-color: var(--green-500); background: rgba(108, 194, 74, .08); border-style: solid; }
.dropzone__icon { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--white); border: 1px solid var(--grey-200); color: var(--green-600); }
.dropzone__icon .icon { width: 24px; height: 24px; }
.dropzone__title { font-weight: 620; color: var(--ink-900); margin: 4px 0 0; }
.dropzone__title button { background: none; border: 0; padding: 0; font: inherit; color: var(--green-600); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.dropzone__meta { font-size: .84rem; color: var(--grey-500); margin: 0; max-width: 44em; }
.dropzone input[type="file"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.js .dropzone input[type="file"] { pointer-events: none; }
.no-js-files { margin-top: 8px; }
.js .no-js-files { display: none; }

.file-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.file-list:empty { display: none; }
.file-item { display: grid; grid-template-columns: 36px 1fr auto; gap: 12px; align-items: center; padding: 10px 10px 10px 12px; border: 1px solid var(--grey-150); border-radius: var(--radius-sm); background: var(--white); }
.file-item__icon { width: 36px; height: 36px; border-radius: var(--radius-sm); display: grid; place-items: center; background: var(--grey-100); color: var(--grey-500); font-family: var(--font-mono); font-size: .62rem; font-weight: 500; text-transform: uppercase; letter-spacing: .02em; }
.file-item__name { font-size: .93rem; font-weight: 560; color: var(--ink-900); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.file-item__meta { font-size: .8rem; color: var(--grey-500); }
.file-item__main { min-width: 0; display: grid; }
.file-item.is-invalid { border-color: rgba(217, 83, 79, .5); background: var(--danger-100); }
.file-item.is-invalid .file-item__meta { color: #B23B37; }
.file-item__remove { width: 36px; height: 36px; display: grid; place-items: center; border: 0; background: none; color: var(--grey-500); border-radius: var(--radius-sm); cursor: pointer; }
.file-item__remove:hover { background: var(--grey-100); color: var(--ink-900); }
.file-summary { font-size: .84rem; color: var(--grey-500); margin: 0; }

.progress { display: grid; gap: 8px; }
.progress[hidden] { display: none; }
.progress__bar { height: 6px; border-radius: 99px; background: var(--grey-150); overflow: hidden; }
.progress__fill { height: 100%; width: 0; background: var(--green-500); border-radius: 99px; transition: width .2s linear; }
.progress__label { font-size: .86rem; color: var(--grey-500); display: flex; justify-content: space-between; gap: 12px; }

.alert { display: grid; grid-template-columns: 24px 1fr; gap: 14px; padding: 18px 20px; border-radius: var(--radius); font-size: .97rem; }
.alert[hidden] { display: none; }
.alert .icon { width: 22px; height: 22px; margin-top: 1px; }
.alert p { margin: 0; }
.alert--error { background: var(--danger-100); color: #7A2421; border: 1px solid rgba(217, 83, 79, .3); }
.alert--success { background: var(--success-100); color: var(--green-900); border: 1px solid rgba(62, 154, 69, .35); }

.form-success { text-align: center; padding: clamp(32px, 5vw, 64px) clamp(16px, 4vw, 48px); display: grid; justify-items: center; gap: 14px; }
.form-success[hidden] { display: none; }
.form-success__icon { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: var(--success-100); color: var(--green-600); }
.form-success__icon .icon { width: 36px; height: 36px; }
.form-success h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem); margin: 8px 0 0; }
.form-success p { color: var(--grey-500); max-width: 34em; margin: 0; }

/* quote page layout */
.quote-layout { display: grid; gap: clamp(32px, 4vw, 56px); align-items: start; }
@media (min-width: 1024px) { .quote-layout { grid-template-columns: minmax(0, 1fr) 360px; } }
.form-card { background: var(--white); border: 1px solid var(--grey-150); border-radius: var(--radius-lg); padding: clamp(20px, 4vw, 48px); box-shadow: 0 1px 0 rgba(10, 13, 12, .02); }
.quote-aside { display: grid; gap: 20px; }
@media (min-width: 1024px) { .quote-aside { position: sticky; top: calc(var(--header-h) + 24px); } }
.aside-card { padding: 26px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--grey-150); }
.aside-card--dark { background: var(--ink-900); border-color: var(--ink-900); color: var(--grey-300); }
.aside-card--dark h3 { color: var(--white); }
.aside-card h3 { font-size: 1.05rem; margin-bottom: 14px; }
.aside-card ol { margin: 0; padding: 0; list-style: none; counter-reset: a; display: grid; gap: 14px; }
.aside-card ol li { counter-increment: a; display: grid; grid-template-columns: 28px 1fr; gap: 12px; font-size: .94rem; }
.aside-card ol li::before { content: counter(a, decimal-leading-zero); font-family: var(--font-mono); font-size: .75rem; color: var(--green-400); padding-top: 2px; }
.aside-card ul.ticks { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: .94rem; color: var(--grey-500); }
.aside-card ul.ticks li { display: grid; grid-template-columns: 20px 1fr; gap: 8px; }
.aside-card ul.ticks .icon { width: 18px; height: 18px; color: var(--green-600); margin-top: 3px; }
.form-actions { display: grid; gap: 14px; }
@media (min-width: 640px) { .form-actions { grid-template-columns: auto 1fr; align-items: center; } }
.form-actions .muted { font-size: .85rem; margin: 0; }

/* contact */
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.contact-list li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; }
.contact-list .icon { width: 20px; height: 20px; margin-top: 3px; color: var(--green-600); }
.contact-cards { display: grid; gap: 16px; }
.contact-card { display: grid; grid-template-columns: 48px 1fr; gap: 16px; padding: 22px; border: 1px solid var(--grey-150); border-radius: var(--radius); background: var(--white); }
.contact-card .card__icon { width: 48px; height: 48px; }
.contact-card h3 { font-size: .8rem; margin: 2px 0 4px; font-family: var(--font-mono); font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--grey-500); }
.contact-card p { margin: 0; font-size: 1.05rem; font-weight: 560; color: var(--ink-900); word-break: break-word; }
.contact-card a { color: var(--ink-900); text-decoration: none; }
.contact-card a:hover { color: var(--green-600); }
.map-placeholder { display: grid; place-items: center; text-align: center; padding: 40px 24px; min-height: 220px; border-radius: var(--radius); border: 1px dashed var(--grey-300); background: var(--grey-50); color: var(--grey-500); font-size: .92rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink-950); color: var(--grey-400); padding: clamp(56px, 7vw, 96px) 0 calc(28px + env(safe-area-inset-bottom)); font-size: .95rem; }
.site-footer a { color: var(--grey-300); text-decoration: none; }
.site-footer a:not(.btn):hover { color: var(--white); }
.site-footer__top { display: grid; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid var(--ink-750); }
@media (min-width: 768px) { .site-footer__top { grid-template-columns: 1.4fr 1fr 1fr; } .site-footer__brand { grid-column: 1 / -1; } }
@media (min-width: 1100px) { .site-footer__top { grid-template-columns: 1.6fr 1fr 1.3fr 1fr; } .site-footer__brand { grid-column: auto; } }
.site-footer__brand img { width: 210px; height: auto; margin-bottom: 20px; }
.site-footer__brand p { max-width: 26em; margin-bottom: 24px; }
.site-footer__title { font-family: var(--font-mono); font-size: .74rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--grey-500); margin: 0 0 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer .contact-list .icon { color: var(--green-400); }
.site-footer__domains { margin: 16px 0 0; font-family: var(--font-mono); font-size: .76rem; color: var(--grey-500); }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 24px; font-size: .84rem; color: var(--grey-500); }
.site-footer__bottom p { margin: 0; }

/* ---------- Mobile sticky CTA ---------- */
.mobile-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); background: rgba(14, 18, 17, .94); border-top: 1px solid var(--ink-750); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transform: translateY(110%); transition: transform .3s var(--ease); }
.mobile-cta.is-visible { transform: none; }
@media (min-width: 1100px) { .mobile-cta { display: none; } }
@media (max-width: 1099px) { body:not(.page-quote) .site-footer { padding-bottom: calc(96px + env(safe-area-inset-bottom)); } }

/* ---------- 404 ---------- */
.error-page { min-height: 60vh; display: grid; align-items: center; }
.error-code { font-family: var(--font-mono); color: var(--green-400); letter-spacing: .1em; }

/* ---------- Reveal animation ---------- */
.reveal.is-armed { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-armed.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal.is-armed { opacity: 1; transform: none; }
}

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.mt-1 { margin-top: 12px; } .mt-2 { margin-top: 24px; } .mt-3 { margin-top: 40px; } .mt-4 { margin-top: 64px; }
.text-center { text-align: center; }
.stack > * + * { margin-top: 16px; }
.nowrap { white-space: nowrap; }
.kbd-list { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0; }
.kbd-list li { font-family: var(--font-mono); font-size: .78rem; padding: 4px 9px; border-radius: var(--radius-sm); background: var(--grey-100); color: var(--ink-750); border: 1px solid var(--grey-150); }
.section--dark .kbd-list li { background: var(--ink-800); border-color: var(--ink-700); color: var(--grey-300); }

@media print {
  .site-header, .mobile-cta, .site-footer, .btn { display: none !important; }
  body { color: #000; }
  .section--dark, .page-hero { background: #fff; color: #000; }
}
.d-shaft { stroke: #5A6560; stroke-width: 3; fill: none; }
.d-leader { stroke: var(--grey-400); stroke-width: 1; fill: none; }
.hero__specs dd { margin: 0; }
.hero__spec { display: flex; flex-direction: column-reverse; justify-content: flex-end; }
.h3-like { font-size: clamp(1.15rem, 1rem + .5vw, 1.4rem); letter-spacing: -0.02em; line-height: 1.25; margin: 6px 0 2px; }
.map-embed { width: 100%; height: 380px; border: 0; border-radius: var(--radius); display: block; }
.map-placeholder .icon { width: 28px; height: 28px; margin: 0 auto; color: var(--grey-400); }
@media (max-width: 1023px) { .hero__visual .illus { max-height: 440px; } }
@media (max-width: 639px) { .page-quote .section--light { padding-top: 24px; } .form-card { border-radius: var(--radius); } }

/* ---------- Compact footer ---------- */
.site-footer { padding: 40px 0 calc(24px + env(safe-area-inset-bottom)); }
.sf-row { display: grid; gap: 22px; padding-bottom: 24px; border-bottom: 1px solid var(--ink-750); }
@media (min-width: 1024px) { .sf-row { grid-template-columns: auto 1fr auto; align-items: center; gap: 40px; } }
.sf-brand img { height: 28px; width: auto; }
.sf-nav { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: .92rem; }
@media (min-width: 1024px) { .sf-nav { justify-content: center; } }
.sf-contact { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: .92rem; }
.sf-contact a { display: inline-flex; align-items: center; gap: 8px; }
.sf-contact .icon { width: 16px; height: 16px; color: var(--green-400); }
.sf-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 24px; padding-top: 18px; font-size: .82rem; color: var(--grey-500); }
.sf-bottom p { margin: 0; }
.sf-legal { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.site-footer .sf-legal a { color: var(--grey-400); }

/* ---------- Scroll story (home): full-screen sticky 3D stage, text cards scroll over it ---------- */
.story { --stage-h: calc(100vh - var(--header-h)); position: relative; background: var(--ink-900); color: var(--grey-300); overflow-x: clip; }
@supports (height: 100svh) { .story { --stage-h: calc(100svh - var(--header-h)); } }
.story::before { /* engineering grid */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, .03) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .03) 1px, transparent 1px);
  background-size: 48px 48px; background-position: -1px -1px;
}
.story h1 { color: var(--white); margin-bottom: 24px; }
.story h1 .accent { color: var(--green-400); }
.story h2 { color: var(--white); font-size: clamp(1.6rem, 1.15rem + 1.8vw, 2.5rem); }
.story .eyebrow { color: var(--green-400); }
.story .btn--primary { --btn-bg: var(--green-400); --btn-fg: var(--ink-950); --btn-bd: var(--green-400); }
.story .btn--primary:hover { --btn-bg: var(--green-300); }
.story .btn--ghost { --btn-fg: var(--white); --btn-bd: var(--ink-600); }
.story .btn--ghost:hover { --btn-bd: var(--white); }
.story strong { color: var(--white); }

.story__stage { position: sticky; top: var(--header-h); z-index: 0; height: var(--stage-h); min-height: 420px; }
.story__stage::after { /* keeps the text cards readable on phones */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(14, 18, 17, .97) 0%, rgba(14, 18, 17, .86) 36%, rgba(14, 18, 17, 0) 60%); }
@media (max-width: 1023px) {
  .story .spec-table--compact, .story .story__card--hero .btn--ghost, .story .story__scroll-hint { display: none; }
  .story .story__step { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
  .story .story__card--hero h1 { font-size: clamp(2rem, 1.4rem + 3vw, 2.8rem); margin-bottom: 14px; }
  .story .story__card--hero .hero__lead { font-size: 1.02rem; margin-bottom: 20px; }
  .story .story__card--hero .eyebrow { margin-bottom: 10px; letter-spacing: .06em; font-size: .7rem; }
}
.story__sticky { position: relative; width: 100%; height: 100%; overflow: hidden; }
.story__sticky > .illus { position: absolute; inset: 8px 8px 45%; width: calc(100% - 16px); height: auto; max-height: none; }
.story__sticky.is-3d > .illus { display: none; }
.hero3d__canvas { position: absolute; top: 0; left: 0; width: 100%; height: 100% !important; display: block; animation: hero3dIn .9s ease both; }
@keyframes hero3dIn { from { opacity: 0; } to { opacity: 1; } }

.story__text { position: relative; z-index: 1; margin-top: calc(-1 * max(var(--stage-h), 420px)); pointer-events: none; }
.story__step { min-height: calc(var(--stage-h) * 1.15); display: flex; align-items: flex-end; justify-content: center; padding: 32px 0 calc(28px + env(safe-area-inset-bottom)); }
.story__step:first-child { min-height: var(--stage-h); }
.story__card { pointer-events: auto; width: 100%; max-width: 34rem; transition: opacity .55s var(--ease), transform .55s var(--ease); }
.story.is-live .story__step:not(.is-active) .story__card { opacity: 0; transform: translateY(28px); }
.story__card p { font-size: 1.04rem; }
.story__card > :last-child { margin-bottom: 0; }
.story__card--hero h1 { font-size: clamp(2.1rem, 1.3rem + 3.4vw, 4.4rem); }
.story__num { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; font-family: var(--font-mono); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--green-400); }
.story__num::after { content: ""; flex: 0 0 48px; height: 1px; background: var(--ink-600); order: 1; }
.story__num span { order: 2; color: var(--grey-400); }
.spec-table--compact { margin-top: 12px; }
.story .spec-table th, .story .spec-table td { border-color: var(--ink-750); padding: 12px 0; }
.story .spec-table th { color: var(--grey-400); padding-top: 14px; }
.story .spec-table td { color: var(--white); }
.story__scroll-hint { display: flex; align-items: center; gap: 12px; margin: 28px 0 0; font-size: .9rem !important; color: var(--grey-400); }
.story__scroll-hint span { position: relative; width: 22px; height: 34px; border: 1.5px solid var(--ink-600); border-radius: 12px; flex: none; }
.story__scroll-hint span::after { content: ""; position: absolute; left: 50%; top: 7px; width: 4px; height: 7px; margin-left: -2px; border-radius: 2px; background: var(--green-400); animation: scrollHint 1.8s var(--ease) infinite; }
@keyframes scrollHint { 0% { transform: translateY(0); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateY(12px); opacity: 0; } }

.story__legend { position: absolute; z-index: 1; left: var(--gutter); top: 14px; display: flex; flex-direction: column; gap: 6px; font-family: var(--font-mono); font-size: .68rem; letter-spacing: .04em; color: var(--grey-300);
  opacity: 0; transform: translateY(6px); transition: opacity .5s var(--ease), transform .5s var(--ease); pointer-events: none; }
.story__legend span { display: flex; align-items: center; gap: 8px; }
.story__legend i { display: inline-block; flex: none; }
.story__legend-box { width: 16px; height: 0; border-top: 2px dashed var(--green-400); }
.story__legend-human { width: 10px; height: 10px; border-radius: 50%; background: #e9efe9; }
[data-chapter="4"] .story__legend { opacity: 1; transform: none; }
.story__progress { position: absolute; z-index: 1; right: 10px; top: 38%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 8px; }
.story__progress span { width: 4px; height: 16px; border-radius: 2px; background: var(--ink-700); transition: background .3s, height .3s; }
[data-chapter="0"] .story__progress span:nth-child(1), [data-chapter="1"] .story__progress span:nth-child(2), [data-chapter="2"] .story__progress span:nth-child(3),
[data-chapter="3"] .story__progress span:nth-child(4), [data-chapter="4"] .story__progress span:nth-child(5), [data-chapter="5"] .story__progress span:nth-child(6) { background: var(--green-400); height: 28px; }
.story__specs { position: relative; z-index: 1; }
.story .hero__specs { margin-top: 0; }

@media (min-width: 1024px) {
  .story__stage::after { background: linear-gradient(90deg, rgba(14, 18, 17, .55) 0%, rgba(14, 18, 17, 0) 38%); }
  .story__sticky > .illus { inset: 24px 4% 24px 48%; width: auto; height: auto; }
  .story__step { min-height: calc(var(--stage-h) * 1.25); align-items: center; padding: 48px 0; }
  .story__step--left, .story__step--hero { justify-content: flex-start; }
  .story__step--right { justify-content: flex-end; }
  .story__step--center { align-items: flex-end; padding-bottom: 40px; }
  .story__step--center .story__card { max-width: 46rem; text-align: center; }
  .story__step--center .story__num { justify-content: center; }
  .story__step--center .story__num::after { display: none; }
  .story__step--center .btn-row { justify-content: center; }
  .story__card:not(.story__card--hero) { max-width: 27rem; padding: 28px 30px; background: rgba(14, 18, 17, .72); border: 1px solid rgba(255, 255, 255, .08); border-radius: 16px;
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 20px 60px rgba(0, 0, 0, .35); }
  .story__step--center .story__card { max-width: 44rem; }
  .story__card--hero { max-width: 36rem; }
  .story__legend { top: auto; bottom: 28px; left: auto; right: 48px; font-size: .74rem; }
  .story__progress { right: 20px; top: 50%; }
}
@media (prefers-reduced-motion: reduce) {
  .story.is-live .story__step:not(.is-active) .story__card { opacity: 1; transform: none; }
  .story__scroll-hint span::after { animation: none; }
}

/* Header blur lives on a pseudo-element: a backdrop-filter on the header itself
   would become the containing block of the fixed mobile menu and squeeze it
   into the 68px header strip. */
.site-header::before { content: ""; position: absolute; inset: 0 0 -1px 0; z-index: -1; background: rgba(14, 18, 17, .92);
  -webkit-backdrop-filter: saturate(140%) blur(12px); backdrop-filter: saturate(140%) blur(12px); }
.nav-open .site-header::before { background: var(--ink-900); }
@media (max-width: 1099px) {
  .main-nav { height: calc(100vh - var(--header-h)); height: calc(100dvh - var(--header-h)); bottom: auto; padding-bottom: calc(40px + env(safe-area-inset-bottom)); }
}

/* Linked application tiles (home) */
.tiles--links .tile { text-decoration: none; color: inherit; transition: background .2s var(--ease); }
.tiles--links .tile:hover { background: var(--grey-50); }
.tiles--links .tile:hover h3 { color: var(--green-600); }

/* ---------- Showreel (home) ---------- */
.showreel__frame { position: relative; margin: 0; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--ink-750); background: var(--ink-950); aspect-ratio: 854 / 366; box-shadow: 0 30px 80px rgba(0, 0, 0, .35); }
.showreel__video { display: block; width: 100%; height: 100%; object-fit: cover; }
.showreel__frame { max-width: 980px; margin-inline: auto; }
.showreel__credit { max-width: 980px; margin: 12px auto 0; font-size: .82rem; color: var(--grey-400); }
