/* H2E Enterprise — site styles
   Concept: an engineering drawing brought into the field.
   Tokens: aubergine ink (dominant), brand purple (actions), leaf green (sparse accent),
   concrete grey (surfaces), white. Archivo for structure/UI, Source Serif 4 for reading. */

:root {
  --ink: #26143d;          /* aubergine — headings, dark bands */
  --purple: #4a2a82;       /* brand purple — actions, links */
  --purple-soft: #e9e3f4;
  --green: #4f8f17;        /* leaf green — accents, text-safe */
  --green-bright: #7cc242; /* leaf green on dark */
  --concrete: #ebeae7;     /* precast concrete surface */
  --concrete-line: #d6d4cf;
  --text: #2a2533;
  --muted: #5f596b;
  --white: #ffffff;
  --line-on-dark: #b7a5dc; /* drawing lines on aubergine */
  --amber-bg: #fff4d1;
  --amber: #8a5a00;

  --font-ui: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --font-read: "Source Serif 4", Georgia, serif;

  --r: 4px;                /* square-cut, like a cast panel */
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-read);
  font-size: 18px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--purple); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--green-bright); outline-offset: 2px; }

h1, h2, h3, h4 {
  font-family: var(--font-ui);
  color: var(--ink);
  margin: 0 0 .45em;
  line-height: 1.08;
  font-stretch: 112%;
}
h1 { font-size: clamp(2.3rem, 5.4vw, 4rem); font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); font-weight: 800; letter-spacing: -.015em; }
h3 { font-size: 1.2rem; font-weight: 700; line-height: 1.25; font-stretch: 100%; }
h4 { font-size: 1rem; font-weight: 700; font-stretch: 100%; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; }
li { margin-bottom: .4em; }
p, li { max-width: 68ch; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--white); padding: 8px 12px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--concrete-line);
  font-family: var(--font-ui);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; min-height: 70px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo-mark {
  font-family: var(--font-ui); font-weight: 900; font-stretch: 115%; font-size: 30px; letter-spacing: -.02em;
  color: var(--ink); line-height: 1; display: inline-flex; align-items: flex-end;
}
.logo-mark .two { color: var(--green); position: relative; }
.logo-mark .two svg { position: absolute; width: 13px; top: -8px; right: -5px; }
.logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.logo-text strong { font-size: 14px; font-weight: 700; color: var(--ink); }
.logo-text span { font-size: 13px; color: var(--muted); }

.nav { margin-left: auto; }
.nav ul { list-style: none; display: flex; gap: 2px; margin: 0; padding: 0; }
.nav li { margin: 0; }
.nav a {
  display: block; padding: 8px 12px; font-size: 15px; font-weight: 500; color: var(--text); text-decoration: none;
  border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--purple); }
.nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--green); font-weight: 600; }
.nav-toggle {
  display: none; margin-left: auto; background: none; border: 1px solid var(--concrete-line);
  border-radius: var(--r); padding: 8px 10px; cursor: pointer; color: var(--ink);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 22px; border-radius: var(--r);
  font-family: var(--font-ui); font-weight: 600; font-size: 16px; text-decoration: none;
  border: 2px solid transparent; cursor: pointer; transition: background-color .15s ease, color .15s ease;
}
.btn-primary { background: var(--purple); color: var(--white); }
.btn-primary:hover { background: var(--ink); color: var(--white); }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: var(--white); }
.btn-light { background: var(--white); color: var(--ink); }
.btn-light:hover { background: var(--green-bright); color: var(--ink); }
.btn-outline-light { border-color: rgba(255, 255, 255, .55); color: var(--white); background: transparent; }
.btn-outline-light:hover { background: var(--white); color: var(--ink); }
.nav-cta { margin-left: 8px; padding: 9px 16px; font-size: 15px; }

/* ---------- Sections ---------- */
section { padding: clamp(56px, 7vw, 96px) 0; }
.section-tint { background: var(--concrete); }
.section-purple { background: var(--ink); color: #e4dcf1; }
.section-purple h2, .section-purple h3 { color: var(--white); }
.section-purple a:not(.btn) { color: var(--green-bright); }
.eyebrow {
  display: block; font-family: var(--font-ui); font-size: 16px; font-weight: 600;
  color: var(--green); margin-bottom: 10px;
}
.section-purple .eyebrow { color: var(--green-bright); }
.section-head { max-width: 780px; margin-bottom: 40px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center p { margin-left: auto; margin-right: auto; }
.lead { font-size: 1.2rem; color: var(--muted); }
.section-purple .lead { color: #cfc3e6; }

/* ---------- Home hero: the drawing ---------- */
.hero {
  background-color: var(--ink);
  background-image:
    linear-gradient(rgba(183, 165, 220, .08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(183, 165, 220, .08) 1px, transparent 1px),
    linear-gradient(rgba(183, 165, 220, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(183, 165, 220, .04) 1px, transparent 1px);
  background-size: 96px 96px, 96px 96px, 24px 24px, 24px 24px;
  color: #ddd3ee;
  padding: clamp(48px, 7vw, 96px) 0 0;
  overflow: hidden;
}
.hero .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.hero h1 { color: var(--white); }
.hero .lead { color: #cfc3e6; max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 0; }
.hero-drawing { width: 100%; max-width: 560px; justify-self: end; }
.hero-drawing svg { width: 100%; height: auto; overflow: visible; }
.hero-drawing .ln { fill: none; stroke: var(--line-on-dark); stroke-width: 1.6; }
.hero-drawing .ln-strong { fill: none; stroke: #ffffff; stroke-width: 2.2; }
.hero-drawing .ln-green { fill: none; stroke: var(--green-bright); stroke-width: 2.2; }
.hero-drawing .fill-panel { fill: rgba(183, 165, 220, .10); stroke: var(--line-on-dark); stroke-width: 1.4; }
.hero-drawing .fill-slab { fill: rgba(124, 194, 66, .22); stroke: var(--green-bright); stroke-width: 1.6; }
.hero-drawing .dim { stroke: #8f7cb8; stroke-width: 1; fill: none; }
.hero-drawing .lbl { font-family: var(--font-ui); font-size: 13px; fill: #ffffff; font-weight: 600; }
.hero-drawing .lbl-sub { font-family: var(--font-ui); font-size: 11.5px; fill: #b7a5dc; }
.hero-drawing .ground { stroke: #8f7cb8; stroke-width: 1; }
@media (prefers-reduced-motion: no-preference) {
  .hero-drawing .draw { stroke-dasharray: 1400; stroke-dashoffset: 1400; animation: draw 1.8s ease forwards; }
  .hero-drawing .d2 { animation-delay: .35s; }
  .hero-drawing .d3 { animation-delay: .7s; }
  .hero-drawing .fade { opacity: 0; animation: fadein .6s ease forwards; animation-delay: 1.5s; }
  .hero-drawing .fade.d4 { animation-delay: 1.8s; }
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fadein { to { opacity: 1; } }

.hero-strip {
  margin-top: clamp(40px, 6vw, 72px);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px;
}
.hero-strip figure { margin: 0; position: relative; }
.hero-strip img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.hero-strip figcaption {
  position: absolute; left: 0; bottom: 0; background: var(--ink); color: var(--white);
  font-family: var(--font-ui); font-size: 13px; font-weight: 600; padding: 6px 10px;
}

/* Page hero (inner pages) */
.page-hero {
  background-color: var(--ink);
  background-image:
    linear-gradient(rgba(183, 165, 220, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(183, 165, 220, .07) 1px, transparent 1px);
  background-size: 48px 48px;
  color: #ddd3ee; padding: clamp(56px, 8vw, 96px) 0;
}
.page-hero h1 { color: var(--white); max-width: 18ch; }
.page-hero .lead { color: #cfc3e6; max-width: 40em; }
.breadcrumb { font-family: var(--font-ui); font-size: 14px; margin-bottom: 18px; color: #a996cf; }
.breadcrumb a { color: var(--green-bright); }

/* ---------- Grids & cards ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card { background: var(--white); display: flex; flex-direction: column; }
.card-media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--concrete); }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 18px 0 8px; display: flex; flex-direction: column; flex: 1; }
.card-body p { color: var(--muted); font-size: 17px; }
.card-body .more { margin-top: auto; font-family: var(--font-ui); font-weight: 600; font-size: 16px; }
.card-plain { padding: 24px 24px 22px; border-top: 3px solid var(--ink); background: var(--white); }
.section-tint .card-plain { background: var(--white); }
.card-plain p { color: var(--muted); font-size: 17px; margin-bottom: 0; }
.section-tint .card { background: transparent; }
.section-tint .card.card-plain { background: var(--white); }

.icon { width: 40px; height: 40px; display: grid; place-items: center; color: var(--green); margin-bottom: 12px; }
.icon svg { width: 30px; height: 30px; }
.icon.purple { color: var(--purple); }

/* Service areas on the home page */
.area-card { border-top: 3px solid var(--ink); padding-top: 20px; }
.area-card .card-media { margin-bottom: 4px; }
.area-card ul { color: var(--muted); font-size: 17px; margin: 0 0 16px; }

/* Stage labels encode maturity */
.stage {
  display: inline-block; font-family: var(--font-ui); font-size: 13px; font-weight: 700;
  padding: 3px 9px; border-radius: 2px; margin-bottom: 12px; align-self: flex-start;
}
.stage-proven { background: #dff0cd; color: #2f5e0a; }
.stage-tested { background: #dbeaf3; color: #1b5575; }
.stage-pilot { background: var(--amber-bg); color: var(--amber); }
.stage-rnd { background: var(--purple-soft); color: var(--purple); }

/* ---------- Split / feature rows ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.split.reverse .split-media { order: 2; }
.split-media img { width: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.check-list { list-style: none; padding: 0; margin: 18px 0 0; }
.check-list li { position: relative; padding-left: 30px; margin-bottom: 12px; }
.check-list li::before {
  content: ""; position: absolute; left: 2px; top: .55em; width: 14px; height: 8px;
  border-left: 2.5px solid var(--green); border-bottom: 2.5px solid var(--green); transform: rotate(-45deg);
}
.section-purple .check-list li::before { border-color: var(--green-bright); }

/* Before / after */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; background: var(--concrete-line); }
.compare-col { padding: 32px; background: var(--white); }
.compare-col h3 { font-size: 1.35rem; }
.compare-col.before h3 { color: #7a2b2b; }
.compare-col.after h3 { color: var(--green); }
.compare-col ul { margin: 0; padding-left: 1.1em; }
.compare-figs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin: -32px -32px 24px; }
.compare-figs img { aspect-ratio: 1; object-fit: cover; width: 100%; }
.compare-col.before .compare-figs img { filter: saturate(.55); }

/* ---------- Approach steps (a real sequence, so numbered) ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: step; border-top: 1px solid rgba(255, 255, 255, .2); }
.step { position: relative; padding: 24px 24px 8px 0; }
.step + .step { padding-left: 24px; border-left: 1px solid rgba(255, 255, 255, .2); }
.step::before {
  counter-increment: step; content: counter(step);
  font-family: var(--font-ui); font-weight: 800; font-stretch: 115%; font-size: 44px; line-height: 1;
  color: var(--green-bright); display: block; margin-bottom: 14px;
}
.step p { font-size: 17px; margin-bottom: 0; }
.section-purple .step p { color: #cfc3e6; }

/* Detailed phases (approach page) */
.phase { display: grid; grid-template-columns: 80px 1.1fr .9fr; gap: 32px; padding: 44px 0; border-top: 1px solid var(--concrete-line); align-items: start; }
.phase:first-child { border-top: 0; padding-top: 0; }
.phase-num { font-family: var(--font-ui); font-weight: 900; font-stretch: 115%; font-size: 56px; line-height: .9; color: var(--green); }
.phase img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }

/* Flow chain: production and finance tracks */
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; list-style: none; padding: 0; margin: 0; counter-reset: flow; }
.flow li {
  margin: 0; max-width: none; background: var(--white); padding: 16px 28px 16px 18px; position: relative;
  font-family: var(--font-ui); font-weight: 700; font-size: 16px; color: var(--ink);
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 50%, calc(100% - 16px) 100%, 0 100%, 16px 50%);
}
.flow li:first-child { clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 50%, calc(100% - 16px) 100%, 0 100%); }
.flow li + li { margin-left: -10px; padding-left: 30px; }
.flow li small { display: block; font-family: var(--font-read); font-weight: 400; color: var(--muted); font-size: 15px; margin-top: 2px; }
.flow.green li { border-top: 3px solid var(--green); }
.flow.purple li { border-top: 3px solid var(--purple); }
.flow-label { font-family: var(--font-ui); font-size: 16px; font-weight: 700; color: var(--ink); margin: 0 0 10px; }

/* ---------- Stats & placeholders ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 3px solid var(--ink); }
.stat { padding: 22px 22px 18px 0; }
.stat + .stat { padding-left: 22px; border-left: 1px solid var(--concrete-line); }
.stat .num { font-family: var(--font-ui); font-weight: 800; font-stretch: 112%; font-size: 1.9rem; color: var(--ink); line-height: 1.1; }
.stat .label { color: var(--muted); font-size: 16px; margin-top: 6px; }
.section-purple .stats { border-top-color: var(--green-bright); }
.section-purple .stat + .stat { border-left-color: rgba(255, 255, 255, .18); }
.section-purple .stat .num { color: var(--white); }
.section-purple .stat .label { color: #cfc3e6; }

/* Content still to be supplied by H2E — remove when filled in */
.ph {
  display: inline-block; border: 2px dashed #d9a200; background: var(--amber-bg); color: var(--amber);
  border-radius: 3px; padding: 0 7px; font-size: .8em; font-weight: 600; font-family: var(--font-ui); line-height: 1.55;
}
.ph-block {
  border: 2px dashed #d9a200; background: var(--amber-bg); color: var(--amber);
  border-radius: var(--r); padding: 18px 22px; font-size: 16px; font-family: var(--font-ui);
}
.ph-block strong { display: block; margin-bottom: 4px; }

/* ---------- Recognition ---------- */
.recog { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.recog-card { background: var(--white); }
.section-tint .recog-card { background: var(--white); }
.recog-card img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.recog-card .card-body { padding: 22px 24px 24px; }
.medal { display: block; font-family: var(--font-ui); font-size: 15px; font-weight: 700; color: var(--green); margin-bottom: 6px; }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.gallery figure { margin: 0; position: relative; background: var(--concrete); }
.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.gallery figcaption {
  position: absolute; left: 0; bottom: 0; background: var(--ink); color: var(--white);
  font-family: var(--font-ui); font-size: 13px; font-weight: 600; padding: 6px 10px;
}
.gallery .wide { grid-column: span 2; }
.gallery .wide img { aspect-ratio: 2 / 1; }

figure.photo { margin: 0; }
figure.photo img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
figure.photo figcaption { font-family: var(--font-ui); font-size: 14px; color: var(--muted); margin-top: 8px; }

/* ---------- Audience ---------- */
.audience { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.audience .card-plain h3 { font-size: 1.1rem; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--ink); color: #e4dcf1; padding: clamp(36px, 5vw, 56px);
  display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center;
  border-left: 8px solid var(--green-bright);
}
.cta-band h2 { color: var(--white); margin-bottom: 8px; }
.cta-band p { margin: 0; color: #cfc3e6; }

/* ---------- Quote ---------- */
.quote {
  font-family: var(--font-ui); font-stretch: 105%; font-size: clamp(1.35rem, 2.6vw, 1.9rem); line-height: 1.3;
  color: var(--ink); font-weight: 700; margin: 0; max-width: 32ch;
}

/* ---------- Forms ---------- */
.form { display: grid; gap: 18px; font-family: var(--font-ui); }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 6px; color: var(--ink); }
.form input, .form select, .form textarea {
  width: 100%; font: inherit; font-size: 16px; padding: 12px 14px; border: 1px solid #bdb7c7; border-radius: var(--r);
  background: var(--white); color: var(--text);
}
.form input:focus, .form select:focus, .form textarea:focus { outline: 3px solid var(--purple-soft); border-color: var(--purple); }
.form textarea { min-height: 150px; resize: vertical; }
.form .note { font-size: 15px; color: var(--muted); }
.contact-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 48px; align-items: start; }
.contact-info { background: var(--concrete); padding: 28px; border-top: 3px solid var(--ink); }
.contact-info dl { margin: 0; }
.contact-info dt { font-family: var(--font-ui); font-weight: 700; color: var(--ink); margin-top: 18px; font-size: 15px; }
.contact-info dt:first-child { margin-top: 0; }
.contact-info dd { margin: 4px 0 0; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #b9abd6; padding: 64px 0 28px; font-size: 16px; font-family: var(--font-ui); }
.site-footer a { color: #e7e0f4; text-decoration: none; }
.site-footer a:hover { color: var(--green-bright); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.site-footer h4 { color: var(--white); font-size: 15px; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer p { font-family: var(--font-read); }
.site-footer .logo-mark { color: var(--white); }
.site-footer .logo-mark .two { color: var(--green-bright); }
.site-footer .logo-text strong { color: var(--white); }
.site-footer .logo-text span { color: #b9abd6; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .14); margin-top: 44px; padding-top: 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 14px; }

/* ---------- Utilities ---------- */
.mt-lg { margin-top: 48px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.stack-sm > * + * { margin-top: 18px; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav-toggle { display: inline-flex; }
  .nav { position: absolute; top: 70px; left: 0; right: 0; background: var(--white); border-bottom: 1px solid var(--concrete-line); display: none; margin: 0; }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; padding: 8px var(--gutter) 16px; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--concrete); }
  .nav a[aria-current="page"] { border-bottom-color: var(--green); }
  .nav-cta { display: none; }
  .audience, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .steps, .stats { grid-template-columns: repeat(2, 1fr); }
  .step:nth-child(3), .stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .flow { grid-template-columns: repeat(2, 1fr); row-gap: 8px; }
  .flow li:nth-child(3) { margin-left: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .hero .wrap, .split, .compare, .recog, .contact-grid { grid-template-columns: 1fr; }
  .hero-drawing { justify-self: center; max-width: 460px; }
  .hero-strip { grid-template-columns: repeat(2, 1fr); }
  .split.reverse .split-media { order: 0; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .phase { grid-template-columns: 1fr; gap: 14px; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .cta-band { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  body { font-size: 17px; }
  .grid-2, .grid-3, .grid-4, .audience, .form .row, .footer-grid { grid-template-columns: 1fr; }
  .steps, .stats { grid-template-columns: 1fr; }
  .step + .step, .stat + .stat { border-left: 0; padding-left: 0; border-top: 1px solid rgba(127, 127, 127, .25); }
  .flow { grid-template-columns: 1fr; }
  .flow li, .flow li:first-child { clip-path: none; margin-left: 0; padding-left: 18px; }
  .logo-text span { display: none; }
  .compare-col { padding: 24px; }
  .compare-figs { margin: -24px -24px 20px; }
}

/* Photo credit for licensed third-party images (e.g. CAWST, CC BY-SA 4.0) */
.credit, figcaption .credit { font-family: var(--font-ui); font-size: 13px; color: var(--muted); margin: 6px 0 0; }
.credit a { color: inherit; }
.card-media.top img { object-position: 50% 6%; }
.hero .wrap { grid-template-columns: 1fr 1.05fr; }
.hero h1 { font-size: clamp(2.2rem, 4.4vw, 3.3rem); }
.card-media.contain { background: var(--white); }
.card-media.contain img { object-fit: contain; padding: 12px; }
figure.photo.diagram img { aspect-ratio: auto; object-fit: contain; background: var(--white); padding: 16px; max-height: 520px; }
.split.top { align-items: start; }

/* ---------- Solution families ---------- */
.families-nav { padding: 48px 0; background: var(--concrete); }
.family-card { display: flex; flex-direction: column; text-decoration: none; background: var(--white); border-top: 3px solid var(--ink); }
.family-card img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.family-card .family-name { font-family: var(--font-ui); font-weight: 800; font-stretch: 110%; font-size: 1.3rem; color: var(--ink); padding: 16px 20px 4px; line-height: 1.15; }
.family-card .family-items { font-family: var(--font-ui); font-size: 15px; color: var(--muted); padding: 0 20px 20px; }
.family-card:hover .family-name { color: var(--purple); }
.family-head {
  background-color: var(--ink); color: #e4dcf1; padding: clamp(40px, 5vw, 64px) 0;
  background-image: linear-gradient(rgba(183,165,220,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(183,165,220,.07) 1px, transparent 1px);
  background-size: 48px 48px; border-left: 0;
}
.family-head h2 { color: var(--white); max-width: 22ch; }
.family-head .lead { color: #cfc3e6; max-width: 44em; }
.family-links { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.family-links li { margin: 0; }
.family-links a { display: inline-block; font-family: var(--font-ui); font-weight: 600; font-size: 15px; color: var(--white); border: 1px solid rgba(255,255,255,.35); padding: 7px 14px; border-radius: var(--r); text-decoration: none; }
.family-links a:hover { background: var(--green-bright); color: var(--ink); border-color: var(--green-bright); }
.family-list { list-style: none; padding: 0; margin: 4px 0 0; }
.family-list li { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; padding: 8px 0; border-top: 1px solid var(--concrete-line); margin: 0; max-width: none; font-family: var(--font-ui); font-size: 16px; color: var(--ink); font-weight: 600; }
.family-list .stage { margin: 0; flex-shrink: 0; }
figure.photo.schematic svg { width: 100%; height: auto; background: var(--white); padding: 12px; }
.schematic .sx { font-family: var(--font-ui); font-size: 15px; font-weight: 700; fill: #26143d; }
.schematic .sx-sub { font-family: var(--font-ui); font-size: 13px; fill: #5f596b; }

.page-hero .family-links { margin-top: 22px; }
.news h3 { margin-bottom: 10px; }
.news ul { list-style: none; padding: 0; margin: 0; border-top: 3px solid var(--ink); }
.news li { padding: 12px 0; border-bottom: 1px solid var(--concrete-line); margin: 0; max-width: none; font-family: var(--font-ui); }
.news li a { font-weight: 600; margin-right: 8px; }
.news li .muted { font-size: 15px; }

/* ---------- Home hero slider ---------- */
.hero-slider { display: block; }
.hero-slider .slides { display: grid; }
.hero-slider .slide {
  grid-area: 1 / 1; display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(24px, 4vw, 56px); align-items: center;
  opacity: 0; visibility: hidden; transition: opacity .6s ease, visibility 0s linear .6s;
}
.hero-slider .slide[hidden] { display: grid; }
.hero-slider .slide.is-active { opacity: 1; visibility: visible; transition: opacity .6s ease; }
.slide-title { color: var(--white); font-size: clamp(2.1rem, 4.2vw, 3.2rem); font-weight: 800; letter-spacing: -.02em; margin-bottom: .45em; }
.slide-kicker { font-family: var(--font-ui); font-weight: 700; color: var(--green-bright); margin: 0 0 12px; font-size: 17px; }
.slide-figures { display: grid; gap: 0; border-top: 3px solid var(--green-bright); }
.slide-figures > div { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: baseline; padding: 18px 0; border-bottom: 1px solid rgba(255,255,255,.16); }
.fig-num { font-family: var(--font-ui); font-weight: 800; font-stretch: 112%; font-size: clamp(1.8rem, 3.4vw, 2.6rem); color: var(--white); line-height: 1; min-width: 6.2ch; }
.fig-lab { color: #d7cdea; font-size: 17px; }
.fig-src { font-family: var(--font-ui); font-size: 13px; color: #a996cf; margin: 12px 0 0; }
.fig-src a { color: #cfe8b4; }
.slide-pillars { list-style: none; padding: 0; margin: 0; border-top: 3px solid var(--green-bright); }
.slide-pillars li { padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,.16); margin: 0; color: #d7cdea; font-size: 18px; max-width: none; }
.slide-pillars strong { font-family: var(--font-ui); color: var(--white); font-size: 20px; margin-right: 6px; }
.slide-photos { display: grid; grid-template-columns: 1.3fr 1fr; gap: 4px; }
.slide-photos figure { margin: 0; position: relative; }
.slide-photos img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.slide-photos figcaption { position: absolute; left: 0; bottom: 0; background: var(--ink); color: var(--white); font-family: var(--font-ui); font-size: 13px; font-weight: 600; padding: 6px 10px; }
.slider-controls { display: flex; justify-content: space-between; align-items: center; margin-top: clamp(28px, 4vw, 44px); }
.slider-dots { display: flex; gap: 10px; }
.slider-dots button { width: 34px; height: 6px; border: 0; padding: 0; border-radius: 3px; background: rgba(255,255,255,.28); cursor: pointer; }
.slider-dots button[aria-selected="true"] { background: var(--green-bright); }
.slider-arrows { display: flex; gap: 8px; }
.slider-arrows button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.4); background: transparent; color: var(--white); cursor: pointer; display: grid; place-items: center; }
.slider-arrows button:hover { background: var(--white); color: var(--ink); }
@media (max-width: 860px) {
  .hero-slider .slide { grid-template-columns: 1fr; align-items: start; }
  .slide-photos img { aspect-ratio: 4 / 3; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-slider .slide, .hero-slider .slide.is-active { transition: none; }
}

.hero .wrap.hero-slider { display: block; }


/* ---------- Climate ---------- */
.climate-band { background: #eef5e6; }
.climate-pair .card-plain { border-top-color: var(--green); }
.climate-table { border-top: 3px solid var(--ink); }
.ct-row { display: grid; grid-template-columns: 1fr 1.6fr 1.6fr; gap: 24px; padding: 14px 0; border-bottom: 1px solid var(--concrete-line); font-size: 16.5px; }
.ct-row strong { font-family: var(--font-ui); color: var(--ink); }
.ct-head { font-family: var(--font-ui); font-weight: 700; color: var(--muted); font-size: 15px; }
.ct-group { font-family: var(--font-ui); font-weight: 800; color: var(--white); background: var(--ink); padding: 8px 12px; margin-top: 14px; font-size: 15px; }
.resource-cover { display: block; max-width: 360px; box-shadow: 0 10px 30px rgba(38,20,61,.25); }
.resource-card .resource-cover { max-width: none; box-shadow: none; border-bottom: 1px solid var(--concrete-line); }
.resource-cover img { width: 100%; height: auto; }
@media (max-width: 860px) { .ct-row { grid-template-columns: 1fr; gap: 4px; } .ct-head { display: none; } }

/* ---------- What we do: three points ---------- */
.three-points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 28px; }
.three-points a { display: grid; grid-template-columns: auto 1fr; column-gap: 14px; text-decoration: none; color: #d7cdea;
  border: 1px solid rgba(255,255,255,.25); padding: 16px 18px; border-radius: var(--r); }
.three-points a:hover { background: rgba(255,255,255,.08); border-color: var(--green-bright); }
.three-points .tp-num { grid-row: span 2; font-family: var(--font-ui); font-weight: 800; font-size: 34px; line-height: 1; color: var(--green-bright); }
.three-points strong { font-family: var(--font-ui); color: var(--white); font-size: 18px; }
.three-points span:last-child { font-size: 15px; }
@media (max-width: 860px) { .three-points { grid-template-columns: 1fr; } }

.fig-num.fig-word { color: var(--green-bright); font-size: clamp(1.4rem, 2.6vw, 2rem); }

.fig-num.fig-alert { color: #ffb4a8; }
.slide-figures > div { padding: 14px 0; }


/* ---------- Partnership packages ---------- */
.packages { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.package { background: var(--white); border-top: 3px solid var(--green); padding: 24px 26px 18px; box-shadow: 0 1px 0 var(--concrete-line); }
.package h3 { font-size: 1.3rem; margin-bottom: 14px; }
.pk-cols { display: grid; grid-template-columns: 1.35fr 1fr; gap: 22px; }
.pk-h { font-family: var(--font-ui); font-weight: 700; color: var(--green); font-size: 15px; margin: 0 0 6px; }
.package ol, .package ul { padding-left: 1.1em; margin: 0; font-size: 16px; }
.package li { margin-bottom: 8px; }
@media (max-width: 960px) { .packages, .pk-cols { grid-template-columns: 1fr; } }

.offer-strip { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap;
  background: #eef5e6; border-left: 6px solid var(--green); padding: 22px 26px; margin-bottom: 48px; }
.offer-strip h3 { margin-bottom: 4px; }
.offer-strip p { margin: 0; color: var(--muted); }

/* ---------- Customer journey and who pays ---------- */
.journey { display: grid; gap: 14px; }
.lane { background: var(--white); border: 1px solid var(--concrete-line); border-left: 6px solid var(--green); padding: 18px 20px 14px; }
.lane:nth-child(2) { border-left-color: var(--purple); }
.lane:nth-child(3) { border-left-color: var(--ink); }
.lane-name { font-family: var(--font-ui); font-weight: 800; font-size: 1.15rem; color: var(--ink); margin: 0 0 10px; display: flex; align-items: center; gap: 10px; }
.lane-name span { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: var(--white); font-size: 15px; }
.lane-steps { list-style: none; counter-reset: ls; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.lane-steps li { counter-increment: ls; position: relative; margin: 0; padding: 10px 26px 10px 14px; background: var(--concrete); font-size: 15px; color: var(--muted); max-width: none;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 0 100%, 14px 50%); }
.lane-steps li:first-child { clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 0 100%); }
.lane-steps li + li { margin-left: -8px; padding-left: 26px; }
.lane-steps b { display: block; font-family: var(--font-ui); color: var(--ink); font-size: 16px; }
.lane-drop { margin: 10px 0 0; font-size: 15px; color: var(--muted); }
.lane-drop::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: #9b2c2c; margin-right: 8px; }
.who-pays { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 3px solid var(--ink); }
.who-pays > div { padding: 16px 18px 6px 0; }
.who-pays > div + div { padding-left: 18px; border-left: 1px solid var(--concrete-line); }
.who-pays h3 { font-size: 1.05rem; margin-bottom: 6px; }
.who-pays p { color: var(--muted); font-size: 16px; }
@media (max-width: 960px) {
  .lane-steps, .who-pays { grid-template-columns: 1fr 1fr; row-gap: 6px; }
  .lane-steps li:nth-child(3) { margin-left: 0; }
  .who-pays > div:nth-child(3) { border-left: 0; padding-left: 0; }
}
@media (max-width: 600px) {
  .lane-steps, .who-pays { grid-template-columns: 1fr; }
  .lane-steps li, .lane-steps li:first-child { clip-path: none; margin-left: 0; padding-left: 14px; }
  .who-pays > div + div { border-left: 0; padding-left: 0; border-top: 1px solid var(--concrete-line); }
}

figure.photo.top-crop img { object-position: 50% 15%; }


.split-media.natural img { aspect-ratio: auto; height: auto; }


.split-media.portrait { max-width: 420px; justify-self: center; }
.split-media.portrait img { aspect-ratio: 3 / 4; object-position: 50% 65%; }


.compare-figs img[src*='artisan-assembly'] { object-position: 50% 25%; }


.stats.stats-2 { grid-template-columns: repeat(2, 1fr); max-width: 760px; }
@media (max-width: 600px) { .stats.stats-2 { grid-template-columns: 1fr; } }


/* Two images side by side in a split (design + built) */
.split-media.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-self: center; }
.split-media figure { margin: 0; }
.split-media.pair img { aspect-ratio: 1 / 1; }
.split-media figcaption { font-family: var(--font-ui); font-size: 14px; color: var(--muted); margin-top: 8px; }

/* Show the whole sketch, no cropping */
.phase-sketch img { aspect-ratio: auto; height: auto; }

/* Gallery tile that shows a whole wide drawing instead of cropping it */
.gallery .contain { background: #dcdad5; }
.gallery .contain img { object-fit: contain; }

/* Download form dialog */
.dl-dialog { border: 0; border-top: 6px solid var(--green); border-radius: var(--r); padding: 32px; width: min(560px, calc(100vw - 32px)); color: var(--text); }
.dl-dialog::backdrop { background: rgba(38, 20, 61, .6); }
.dl-dialog h2 { font-family: var(--font-ui); font-size: 26px; line-height: 1.2; margin: 0 0 8px; color: var(--ink); }
.dl-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.dl-dialog .dl-small { font-size: 13px; margin: 0; }
