/* colors */
:root{
  /* ---------- Brand green ramp (sampled from the THERMAXIS logo + reference landing page) ---------- */
  --green-950:#04150F; /* footer, deepest ground */
  --green-900:#0A2418; /* forest — dark panels, hero overlay */
  --green-800:#10331F;
  --green-700:#1D4A2A; /* logo dark band */
  --green-600:#2E6B34; /* logo "THERM" */
  --green-500:#4A9C39; /* BRAND ACCENT — buttons, kickers, logo "AXIS" */
  --green-400:#6BBA4A;
  --green-300:#97DB53; /* lime — highlighted words on dark, underlines */
  --green-200:#C6EBA3;
  --green-100:#E6F5DB;
  --green-50:#F2FAEC;

  /* ---------- Neutrals (cool, slightly slate — matches reference body copy) ---------- */
  --neutral-0:#FFFFFF;
  --neutral-25:#FAFBFB;
  --neutral-50:#F6F8F7; /* section ground */
  --neutral-100:#EDF1F0;
  --neutral-200:#E2E6E6; /* hairlines, card borders */
  --neutral-300:#C8CFD0;
  --neutral-400:#98A3A6;
  --neutral-500:#5E6B70; /* body copy */
  --neutral-600:#475257;
  --neutral-700:#333C40;
  --neutral-800:#23292B; /* anthracite */
  --neutral-900:#14181A;

  /* ---------- Semantic / status ---------- */
  --status-success:#4A9C39;
  --status-success-soft:#E6F5DB;
  --status-warning:#C9821B;
  --status-warning-soft:#FBF0DC;
  --status-danger:#B4382F;
  --status-danger-soft:#FAE9E7;
  --status-info:#2E6B34;
  --status-info-soft:#F2FAEC;

  /* ---------- Surfaces ---------- */
  --surface-page:#FFFFFF;
  --surface-muted:var(--neutral-50);
  --surface-card:#FFFFFF;
  --surface-card-muted:var(--neutral-25);
  --surface-inverse:var(--green-900);
  --surface-inverse-deep:var(--green-950);
  --surface-accent-soft:var(--green-50);
  --surface-overlay:rgba(10,36,24,.62);

  /* ---------- Text ---------- */
  --text-strong:var(--green-900);   /* headings */
  --text-body:var(--neutral-500);   /* paragraphs */
  --text-muted:var(--neutral-400);  /* captions, meta */
  --text-accent:var(--green-500);   /* highlighted words on light */
  --text-on-dark:#FFFFFF;
  --text-on-dark-soft:rgba(255,255,255,.78);
  --text-on-dark-accent:var(--green-300);

  /* ---------- Borders ---------- */
  --border-subtle:var(--neutral-200);
  --border-strong:var(--neutral-300);
  --border-accent:var(--green-500);
  --border-on-dark:rgba(255,255,255,.18);

  /* ---------- Interactive ---------- */
  --action-primary:var(--green-500);
  --action-primary-hover:#3E8930;
  --action-primary-active:#356F2A;
  --action-primary-text:#FFFFFF;
  --action-disabled-bg:var(--neutral-200);
  --action-disabled-text:var(--neutral-400);
  --focus-ring:rgba(74,156,57,.34);

  /* ---------- Signature gradients ---------- */
  --gradient-primary:linear-gradient(100deg,#3E9330 0%,#59A840 100%); /* @kind color */
  --gradient-cta-band:linear-gradient(96deg,#2C6B33 0%,#4A9C39 46%,#79BF47 100%); /* @kind color */
  --gradient-hero-overlay:linear-gradient(90deg,rgba(4,21,15,.96) 0%,rgba(6,29,20,.88) 32%,rgba(8,34,23,.55) 58%,rgba(10,36,24,.12) 88%); /* @kind color */
  --gradient-image-scrim:linear-gradient(180deg,rgba(4,21,15,0) 40%,rgba(4,21,15,.72) 100%); /* @kind color */
}

/* typography */
:root{
  /* Families */
  --font-core:"Figtree","Helvetica Neue",Arial,sans-serif;   /* headings AND body — one family, weight does the work */
  --font-script:"Caveat","Segoe Script",cursive;             /* handwritten brand accent only */
  --font-mono:ui-monospace,"SFMono-Regular",Menlo,monospace; /* specs, references, never in marketing copy */

  /* Weights */
  --weight-regular:400; /* @kind font */
  --weight-medium:500; /* @kind font */
  --weight-semibold:600; /* @kind font */
  --weight-bold:700; /* @kind font */
  --weight-extrabold:800; /* @kind font */

  /* Type scale — desktop (1440) */
  --size-display:4rem;    /* 64 — page-opening statements only */
  --size-h1:3.5rem;       /* 56 — hero */
  --size-h2:2.5rem;       /* 40 — section titles */
  --size-h3:1.75rem;      /* 28 — sub-section, dark panel titles */
  --size-h4:1.25rem;      /* 20 — card titles */
  --size-h5:1.0625rem;    /* 17 — list/label titles */
  --size-stat:2.125rem;   /* 34 — figures (+100, 100%) */
  --size-lead:1.125rem;   /* 18 — intro paragraph */
  --size-body:1rem;       /* 16 — default paragraph */
  --size-body-sm:.9375rem;/* 15 — card copy, dense lists */
  --size-caption:.8125rem;/* 13 — meta, legal */
  --size-kicker:.75rem;   /* 12 — uppercase eyebrow */

  /* Line heights */
  --leading-tight:1.08; /* @kind font */   /* display / h1 */
  --leading-snug:1.18; /* @kind font */    /* h2 / h3 */
  --leading-heading:1.3; /* @kind font */  /* h4 / h5 */
  --leading-body:1.65; /* @kind font */    /* paragraphs — generous, per reference */
  --leading-compact:1.45; /* @kind font */ /* dense card copy */

  /* Letter spacing */
  --tracking-display:-.022em; /* @kind font */
  --tracking-heading:-.014em; /* @kind font */
  --tracking-body:0em; /* @kind font */
  --tracking-kicker:.14em; /* @kind font */ /* uppercase eyebrows */
  --tracking-button:.005em; /* @kind font */

  /* Measure */
  --measure-narrow:38ch; /* @kind font */
  --measure-body:62ch; /* @kind font */
  --measure-wide:74ch; /* @kind font */
}
@media (max-width:1024px){
  :root{
    --size-display:3.25rem; --size-h1:2.75rem; --size-h2:2rem; --size-h3:1.5rem;
    --size-h4:1.1875rem; --size-stat:1.875rem; --size-lead:1.0625rem;
  }
}
@media (max-width:640px){
  :root{
    --size-display:2.375rem; --size-h1:2.125rem; --size-h2:1.75rem; --size-h3:1.375rem;
    --size-h4:1.125rem; --size-stat:1.75rem; --size-lead:1rem; --size-body:1rem;
  }
}

/* spacing */
:root{
  /* 4px base grid. Names are t-shirt-free on purpose: the number IS the step. */
  --space-0:0;
  --space-1:4px;
  --space-2:8px;
  --space-3:12px;
  --space-4:16px;
  --space-5:20px;  /* card grid gap on the reference */
  --space-6:24px;  /* card interior padding */
  --space-8:32px;
  --space-10:40px;
  --space-12:48px;
  --space-16:64px;
  --space-20:80px;
  --space-24:96px; /* desktop section rhythm */
  --space-30:120px;
  --space-40:160px;

  /* Section rhythm (responsive, set once here) */
  --section-y:var(--space-24);
  --section-y-tight:var(--space-16);
  --section-y-loose:var(--space-30);

  /* Component interior spacing */
  --pad-card:var(--space-6);
  --pad-panel:var(--space-10);
  --pad-input-y:13px;
  --pad-input-x:16px;
  --pad-btn-y:14px;
  --pad-btn-x:26px;

  /* Stack rhythm inside a section header */
  --gap-kicker-title:var(--space-4);
  --gap-title-lead:var(--space-5);
  --gap-grid:var(--space-5);
  --gap-grid-loose:var(--space-8);
}
@media (max-width:1024px){:root{--section-y:var(--space-16);--section-y-loose:var(--space-20);--pad-panel:var(--space-8)}}
@media (max-width:640px){:root{--section-y:var(--space-12);--section-y-tight:var(--space-10);--section-y-loose:var(--space-16);--pad-panel:var(--space-6)}}

/* radius */
:root{
  --radius-xs:4px;
  --radius-sm:8px;
  --radius-md:10px;  /* buttons, inputs, badges */
  --radius-lg:14px;  /* cards, media */
  --radius-xl:20px;  /* large panels, image blocks */
  --radius-2xl:28px;
  --radius-pill:999px; /* phone button, filter chips, step numbers */

  --border-width:1px;
  --border-width-strong:2px;
  --border-accent-bar:3px; /* the short green dash before a kicker */
}

/* elevation */
:root{
  /* Shadows are quiet: THERMAXIS separates with whitespace and hairlines first, elevation second. */
  --shadow-none:none;
  --shadow-xs:0 1px 2px rgba(10,36,24,.05);
  --shadow-card:0 1px 2px rgba(10,36,24,.04), 0 10px 24px -14px rgba(10,36,24,.14);
  --shadow-card-hover:0 2px 4px rgba(10,36,24,.05), 0 18px 36px -16px rgba(10,36,24,.20);
  --shadow-panel:0 24px 60px -28px rgba(10,36,24,.28);
  --shadow-nav:0 1px 0 rgba(10,36,24,.06);
  --shadow-nav-scrolled:0 6px 20px -12px rgba(10,36,24,.18);
  --shadow-button:0 8px 18px -8px rgba(74,156,57,.55);
  --shadow-button-hover:0 12px 24px -10px rgba(74,156,57,.62);
  --shadow-focus:0 0 0 3px var(--focus-ring);
}

/* motion */
:root{
  --duration-instant:80ms; /* @kind other */
  --duration-fast:150ms; /* @kind other */   /* colour + border changes */
  --duration-base:220ms; /* @kind other */   /* default hover/lift */
  --duration-slow:400ms; /* @kind other */   /* panel + accordion open */
  --duration-reveal:700ms; /* @kind other */  /* scroll-in fade + rise */

  --ease-standard:cubic-bezier(.4,0,.2,1); /* @kind other */
  --ease-out:cubic-bezier(.16,1,.3,1); /* @kind other */   /* the house easing: confident, no bounce */
  --ease-in:cubic-bezier(.5,0,.75,0); /* @kind other */

  --transition-color:color var(--duration-fast) var(--ease-standard),background-color var(--duration-fast) var(--ease-standard),border-color var(--duration-fast) var(--ease-standard);
  --transition-lift:transform var(--duration-base) var(--ease-out),box-shadow var(--duration-base) var(--ease-out);

  --lift-hover:-3px; /* @kind other */  /* cards rise this much on hover */
  --press-scale:.985; /* @kind other */ /* buttons compress, never bounce */
  --media-zoom:1.045; /* @kind other */ /* photo scale on card hover */
}
@media (prefers-reduced-motion:reduce){
  :root{--duration-base:1ms; /* @kind other */--duration-slow:1ms; /* @kind other */--duration-reveal:1ms; /* @kind other */--lift-hover:0px; /* @kind other */--media-zoom:1 /* @kind other */}
}

/* layout */
:root{
  --container-max:1200px;     /* default content width */
  --container-max-wide:1360px;/* gallery / full-bleed-ish rows */
  --container-max-text:760px; /* article + legal measure */
  --container-pad:24px;
  --container-pad-lg:40px;

  --grid-columns:12; /* @kind other */
  --grid-gutter:var(--space-5);

  /* Breakpoints (documented; CSS media queries repeat the literals) */
  --bp-mobile:640px; /* @kind other */
  --bp-tablet:1024px; /* @kind other */
  --bp-desktop:1280px; /* @kind other */

  --nav-height:76px;
  --nav-height-mobile:64px;
  --footer-pad-y:var(--space-16);

  /* Media aspect ratios used across the system */
  --ratio-card:4/3; /* @kind other */
  --ratio-hero:16/9; /* @kind other */
  --ratio-gallery:3/2; /* @kind other */
  --ratio-portrait:4/5; /* @kind other */
}

/* base */
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--surface-page);color:var(--text-body);font-family:var(--font-core);font-size:var(--size-body);font-weight:var(--weight-regular);line-height:var(--leading-body);letter-spacing:var(--tracking-body);-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
h1,h2,h3,h4,h5,h6{margin:0;color:var(--text-strong);font-family:var(--font-core);font-weight:var(--weight-extrabold);letter-spacing:var(--tracking-heading);text-wrap:balance}
h1{font-size:var(--size-h1);line-height:var(--leading-tight);letter-spacing:var(--tracking-display)}
h2{font-size:var(--size-h2);line-height:var(--leading-snug)}
h3{font-size:var(--size-h3);line-height:var(--leading-snug)}
h4{font-size:var(--size-h4);line-height:var(--leading-heading);font-weight:var(--weight-bold)}
h5{font-size:var(--size-h5);line-height:var(--leading-heading);font-weight:var(--weight-bold)}
p{margin:0;text-wrap:pretty}
p+p{margin-top:var(--space-4)}
strong{font-weight:var(--weight-bold);color:var(--text-strong)}
small{font-size:var(--size-caption)}
img,svg,video{display:block;max-width:100%}
ul,ol{margin:0;padding:0;list-style:none}
a{color:var(--green-600);text-decoration:none;font-weight:var(--weight-semibold);transition:var(--transition-color)}
a:hover{color:var(--action-primary-hover)}
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,[tabindex]:focus-visible{outline:2px solid var(--action-primary);outline-offset:2px;border-radius:var(--radius-xs)}
::selection{background:var(--green-200);color:var(--green-900)}
button,input,select,textarea{font:inherit;color:inherit}

/* --- Layout primitives (also available as React components) --- */
.thx-container{width:100%;max-width:var(--container-max);margin-inline:auto;padding-inline:var(--container-pad)}
.thx-container--wide{max-width:var(--container-max-wide)}
.thx-container--text{max-width:var(--container-max-text)}
.thx-section{padding-block:var(--section-y)}
.thx-section--muted{background:var(--surface-muted)}
.thx-section--inverse{background:var(--surface-inverse);color:var(--text-on-dark-soft)}
.thx-section--inverse h1,.thx-section--inverse h2,.thx-section--inverse h3,.thx-section--inverse h4{color:var(--text-on-dark)}
.thx-grid{display:grid;gap:var(--gap-grid);grid-template-columns:repeat(12,minmax(0,1fr))}
.thx-grid--cards{grid-template-columns:repeat(auto-fit,minmax(210px,1fr))}
@media (max-width:1024px){.thx-grid{grid-template-columns:repeat(6,minmax(0,1fr))}}
@media (max-width:640px){.thx-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
.thx-script{font-family:var(--font-script);font-weight:var(--weight-bold);color:var(--text-on-dark);font-size:1.75rem;line-height:1.1}

