/* ==========================================================================
   Natrobo — homepage styles
   Brand palette and type follow the Natrobo brand guidelines.
   Accessibility note: botanical green (#83A63B) and signal teal (#2DAA9C) do
   not reach 4.5:1 on ivory, so they are used for graphics, rules and marks —
   never for body text on light backgrounds.
   ========================================================================== */

:root {
  /* Core palette */
  --forest: #153F2E;
  --botanical: #83A63B;
  --teal: #2DAA9C;
  --earth: #9B5B36;
  --ivory: #F5F3EC;
  --charcoal: #343C35;

  /* Derived tints (ivory/forest mixes, used for surfaces and rules) */
  --ivory-deep: #EDE9DD;
  --sand: #E4DDCB;
  --rule: rgba(21, 63, 46, 0.14);
  --rule-strong: rgba(21, 63, 46, 0.28);
  --muted: #5B635C;              /* 5.9:1 on ivory */

  /* Text-only shades of brand accents, so small text meets WCAG AA (4.5:1).
     The core colours stay unchanged for fills, rules and graphics. */
  --earth-text: #87502F;         /* 5.4:1 on ivory-deep, 5.9:1 on ivory */
  --botanical-text: #9DBE57;     /* 5.6:1 on forest */
  --teal-text: #1A6B61;          /* 5.2:1 on ivory-deep */
  --forest-deep: #0B2419;        /* 5.7:1 on teal and botanical discs */
  --ivory-80: rgba(245, 243, 236, 0.82);
  --ivory-60: rgba(245, 243, 236, 0.64);
  --ivory-rule: rgba(245, 243, 236, 0.16);

  /* Type */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --step--1: 0.8125rem;
  --step-0: 1.0625rem;
  --step-1: clamp(1.15rem, 1.05rem + 0.4vw, 1.375rem);
  --step-2: clamp(1.35rem, 1.15rem + 0.8vw, 1.75rem);
  --step-3: clamp(1.75rem, 1.35rem + 1.6vw, 2.5rem);
  --step-4: clamp(2.25rem, 1.6rem + 2.8vw, 3.75rem);
  --step-5: clamp(2.85rem, 1.8rem + 4.6vw, 5.6rem);

  /* Space */
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section: clamp(5rem, 10vw, 9.5rem);
  --radius: 6px;
  --max: 1240px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ------------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ivory);
  color: var(--charcoal);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--forest);
  margin: 0;
  font-optical-sizing: auto;
  text-wrap: balance;
}
h1 { font-size: var(--step-5); line-height: 1.02; letter-spacing: -0.025em; }
h2 { font-size: var(--step-4); line-height: 1.06; letter-spacing: -0.02em; }
h3 { font-size: var(--step-2); line-height: 1.2; letter-spacing: -0.01em; }
h4 { font-family: var(--font-display); font-weight: 400; color: var(--forest); font-size: var(--step-1); line-height: 1.25; margin: 0; }
em { font-style: italic; }

:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 2px; }

.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  background: var(--forest); color: var(--ivory); padding: .75rem 1rem; border-radius: var(--radius);
  text-decoration: none; font-weight: 500;
}
.skip-link:focus { top: 1rem; }

/* ------------------------------------------------------------------ shared pieces */
.eyebrow {
  display: flex; align-items: center; gap: .75rem;
  font-size: var(--step--1); font-weight: 500; letter-spacing: .12em; text-transform: uppercase;
  color: var(--earth-text);
  margin-bottom: 1.5rem;
}
.eyebrow-num {
  font-family: var(--font-display); font-style: italic; font-size: 1rem; letter-spacing: 0;
  text-transform: none; color: var(--forest);
  padding-right: .75rem; border-right: 1px solid var(--rule-strong);
}
.eyebrow--light { color: var(--botanical-text); }
.eyebrow--light .eyebrow-num { color: var(--ivory); border-color: var(--ivory-rule); }

.lead { font-size: var(--step-1); line-height: 1.55; color: var(--charcoal); }

.section { padding-block: var(--section); position: relative; }
.section-head { max-width: 46rem; margin-bottom: clamp(3rem, 6vw, 5rem); }
.section-head h2 + .lead { margin-top: 1.75rem; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head--split {
  max-width: none; display: grid; grid-template-columns: 1fr 1fr; gap: 2rem 5rem; align-items: end;
}

.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .95rem 1.5rem; border-radius: 999px;
  font-family: var(--font-body); font-size: .975rem; font-weight: 500; line-height: 1;
  text-decoration: none; border: 1px solid transparent;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.btn span { transition: transform .25s var(--ease); }
.btn:hover span { transform: translateX(3px); }
.btn-primary { background: var(--forest); color: var(--ivory); }
.btn-primary:hover { background: #0F3022; }
.btn-secondary { color: var(--forest); border-color: var(--rule-strong); }
.btn-secondary:hover { border-color: var(--forest); }
.btn-light { background: var(--ivory); color: var(--forest); }
.btn-light:hover { background: #fff; }
.btn-ghost-light { color: var(--ivory); border-color: var(--ivory-rule); }
.btn-ghost-light:hover { border-color: var(--ivory); }
.cta-row { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 2.5rem; }

/* ------------------------------------------------------------------ header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(245, 243, 236, 0.92);
  backdrop-filter: saturate(140%) blur(6px);
  -webkit-backdrop-filter: saturate(140%) blur(6px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--rule); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 80px; }

.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; }
.brand-emblem { width: 46px; height: auto; }
.brand-wordmark { width: auto; height: 22px; }

.site-nav ul { display: flex; align-items: center; gap: 2.25rem; }
.site-nav a {
  font-size: .95rem; font-weight: 500; color: var(--charcoal); text-decoration: none;
  position: relative; padding-block: .25rem;
}
.site-nav a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px;
  background: var(--forest); transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease);
}
.site-nav a:not(.nav-cta):hover::after,
.site-nav a[aria-current="true"]::after { transform: scaleX(1); }
.site-nav .nav-cta {
  padding: .6rem 1.1rem; border-radius: 999px; background: var(--forest); color: var(--ivory);
  transition: background-color .25s var(--ease);
}
.site-nav .nav-cta:hover { background: #0F3022; }

.nav-toggle { display: none; }

/* ------------------------------------------------------------------ hero */
.hero { padding-top: clamp(2.5rem, 6vw, 5rem); padding-bottom: clamp(4rem, 8vw, 7rem); }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: clamp(2.5rem, 6vw, 6rem); align-items: center;
}
.hero h1 em { color: var(--forest); font-weight: 300; }
.hero-sub {
  font-family: var(--font-display); font-size: var(--step-2); font-weight: 300; line-height: 1.3;
  color: var(--forest); margin-top: 1.75rem; max-width: 30ch;
}
.hero-body { margin-top: 1.75rem; max-width: 36rem; color: var(--charcoal); }

/* illustrated / photographic figures */
.illus { margin: 0; }
.illus-frame { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--ivory-deep); }
.illus-frame img { width: 100%; height: 100%; object-fit: cover; }
.illus figcaption,
.offline-figure figcaption,
.loop-caption {
  margin-top: .9rem; font-size: var(--step--1); line-height: 1.5; color: var(--muted);
  display: flex; gap: .6rem; align-items: baseline;
}
.illus figcaption::before,
.offline-figure figcaption::before,
.loop-caption::before {
  content: ""; flex: none; width: 18px; height: 1px; background: currentColor; transform: translateY(-3px);
}
.hero-figure .illus-frame { aspect-ratio: 4 / 5; }

.illus-labels { position: absolute; inset: 0; pointer-events: none; }
.tag {
  position: absolute; transform: translate(28px, -50%);
  font-size: .75rem; font-weight: 500; letter-spacing: .04em; white-space: nowrap;
  color: var(--ivory); background: rgba(21, 63, 46, 0.78);
  padding: .3rem .6rem; border-radius: 999px; border: 1px solid rgba(45, 170, 156, .5);
}
.tag[data-side="left"] { transform: translate(calc(-100% - 28px), -50%); }
.tag[data-side="below"] { transform: translate(-50%, 34px); }
.tag-light { background: var(--ivory); color: var(--forest); border-color: transparent; }
.tag-ink { color: var(--charcoal); background: rgba(245, 243, 236, .92); border-color: var(--rule-strong); }

/* three ideas */
.ideas {
  margin-top: clamp(4rem, 8vw, 6.5rem); padding-top: 2.5rem; border-top: 1px solid var(--rule);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem 3rem;
}
.ideas li { display: grid; grid-template-columns: auto 1fr; column-gap: 1rem; }
.idea-mark { width: 12px; height: 12px; border-radius: 50%; margin-top: .55rem; grid-row: span 2; }
.idea-mark--botanical { background: var(--botanical); }
.idea-mark--forest { background: var(--forest); }
.idea-mark--teal { background: var(--teal); }
.idea-title { font-size: var(--step-1); margin-bottom: .4rem; }
.ideas p { color: var(--muted); font-size: .975rem; }

/* ------------------------------------------------------------------ split layout */
.split {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(3rem, 7vw, 7rem); align-items: center;
}
.split-copy h2 { margin-bottom: 2rem; }
.prose p { max-width: 38rem; }

/* ------------------------------------------------------------------ challenge */
.challenge { background: var(--ivory); border-top: 1px solid var(--rule); }
.challenge .illus-frame { aspect-ratio: 5 / 4; }
.contrast {
  margin-top: 2.75rem; display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem;
  padding-top: 2rem; border-top: 1px solid var(--rule);
}
.contrast-title {
  font-family: var(--font-body); font-size: var(--step--1); font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 1rem;
}
.contrast-title--nature { color: var(--forest); }
.contrast li {
  position: relative; padding-left: 1.25rem; font-size: .95rem; margin-bottom: .55rem; color: var(--charcoal);
}
.contrast li::before {
  content: ""; position: absolute; left: 0; top: .7em; width: 7px; height: 7px; border-radius: 50%;
  border: 1.5px solid var(--muted);
}
.contrast > div:last-child li::before { border: 0; background: var(--botanical); }

/* ------------------------------------------------------------------ philosophy */
.philosophy { background: var(--ivory-deep); }
.roles {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem;
  margin-bottom: clamp(3.5rem, 7vw, 6rem);
}
.role {
  background: var(--ivory); border-radius: var(--radius); padding: 2rem 2rem 2.25rem;
  border: 1px solid var(--rule);
}
.role-label {
  display: flex; align-items: center; gap: .6rem;
  font-size: var(--step--1); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--charcoal);
  margin-bottom: 1.1rem;
}
.role h3 { font-size: var(--step-1); line-height: 1.35; font-weight: 400; }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.dot--forest { background: var(--forest); }
.dot--botanical { background: var(--botanical); }
.dot--teal { background: var(--teal); }

.loop {
  margin: 0; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(2rem, 5vw, 5rem); align-items: center;
}
.loop-diagram svg { width: 100%; max-width: 640px; margin-inline: auto; overflow: visible; }
.loop-centre { font-family: var(--font-display); font-style: italic; font-size: 26px; fill: var(--forest); font-weight: 300; }
.loop-label { font-family: var(--font-body); font-size: 17px; font-weight: 500; fill: var(--charcoal); }
.loop-num { font-family: var(--font-display); font-size: 20px; fill: var(--forest-deep); font-weight: 500; }
.loop-num--light { fill: var(--ivory); }

.loop-steps { counter-reset: step; }
.loop-steps li {
  display: grid; grid-template-columns: auto 1fr; gap: 1.1rem; padding: 1.15rem 0;
  border-bottom: 1px solid var(--rule);
}
.loop-steps li:first-child { border-top: 1px solid var(--rule); }
.loop-steps h3 { font-size: var(--step-1); margin-bottom: .25rem; }
.loop-steps p { font-size: .95rem; color: var(--muted); }
.loop-step-num {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--font-display); font-size: .95rem; margin-top: .1rem;
}
.loop-step-num--forest { background: var(--forest); color: var(--ivory); }
.loop-step-num--teal { background: var(--teal); color: var(--forest-deep); }
.loop-step-num--botanical { background: var(--botanical); color: var(--forest-deep); }
.loop-step-num--earth { background: var(--earth); color: var(--ivory); }
.loop-caption { grid-column: 1 / -1; justify-content: center; margin-top: 1rem; }

/* ------------------------------------------------------------------ technology (dark) */
.technology, .contact {
  background-color: var(--forest);
  color: var(--ivory-80);
  isolation: isolate;
  overflow: hidden;
}
.technology::before, .contact::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: url("../assets/illustrations/contours-ivory.svg") center / cover no-repeat;
  opacity: .07;
}
.technology h2, .technology h3, .contact h2, .contact h3 { color: var(--ivory); }
.technology .lead, .contact .lead { color: var(--ivory-80); }

.pillars {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--ivory-rule);
}
.pillar { padding: 2.5rem 2.5rem 2.75rem 0; }
.pillar + .pillar { padding-left: 2.5rem; border-left: 1px solid var(--ivory-rule); }
.pillar-icon { width: 56px; height: 56px; margin-bottom: 2rem; }
.pillar-num { font-size: var(--step--1); letter-spacing: .12em; text-transform: uppercase; color: var(--botanical-text); margin-bottom: .6rem; font-weight: 500; }
.pillar h3 { margin-bottom: 1rem; }
.pillar p:last-child { font-size: .975rem; color: var(--ivory-80); }

.offline {
  margin-top: clamp(4rem, 8vw, 6.5rem);
  display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
  padding: clamp(2rem, 4vw, 3.5rem);
  border: 1px solid var(--ivory-rule); border-radius: var(--radius);
  background: rgba(10, 36, 25, 0.35);
}
.offline-copy h3 { font-size: var(--step-3); line-height: 1.12; margin-bottom: 1.5rem; }
.offline-copy p:not(.eyebrow) { color: var(--ivory-80); }
.offline-copy p:last-child { font-family: var(--font-display); font-style: italic; font-size: var(--step-1); color: var(--ivory); }
.offline-figure { margin: 0; }
.offline-figure figcaption { color: var(--ivory-60); }
.mesh-label { font-family: var(--font-body); font-size: 14px; font-weight: 500; fill: var(--ivory); }
.mesh-label--muted { fill: rgba(245, 243, 236, .7); font-size: 13px; }
.mesh-label--botanical { fill: var(--botanical); font-size: 13px; letter-spacing: .04em; }

/* ------------------------------------------------------------------ real world */
.principles {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 3rem;
}
.principle { padding: 2rem 0 2.5rem; border-top: 1px solid var(--rule-strong); position: relative; }
.principle::before {
  content: ""; position: absolute; top: -1px; left: 0; width: 48px; height: 2px; background: var(--botanical);
  transform: scaleX(0); transform-origin: left; transition: transform .8s var(--ease) .2s;
}
.principle.is-visible::before, html:not(.js) .principle::before { transform: scaleX(1); }
.principle-num { font-family: var(--font-display); font-style: italic; color: var(--earth-text); font-size: 1rem; display: block; margin-bottom: 1rem; }
.principle h3 { margin-bottom: .6rem; }
.principle p { color: var(--muted); font-size: .975rem; max-width: 30ch; }

/* ------------------------------------------------------------------ agriculture */
.agriculture { background: var(--ivory-deep); }
.agriculture .illus-frame { aspect-ratio: 4 / 3; }
.reasons { margin-top: 2rem; display: grid; gap: 1.5rem; }
.reasons li { padding-left: 1.5rem; border-left: 2px solid var(--botanical); }
.reasons h3 { font-size: var(--step-1); margin-bottom: .35rem; }
.reasons p { color: var(--muted); font-size: .975rem; }
.callout {
  margin-top: 2.5rem; font-family: var(--font-display); font-size: var(--step-2); line-height: 1.3;
  color: var(--forest); font-weight: 300; font-style: italic; max-width: 28ch;
}

/* ------------------------------------------------------------------ vision */
.vision { text-align: center; }
.vision-inner { max-width: 56rem; margin-inline: auto; position: relative; }
.vision .eyebrow { justify-content: center; }
.vision-ring { width: 88px; margin: 0 auto 2.5rem; }
.vision-statement {
  margin: 2.5rem auto 0; max-width: 24ch;
  font-family: var(--font-display); font-weight: 300; font-size: var(--step-3); line-height: 1.22;
  color: var(--forest);
}
.vision-points {
  margin-top: clamp(3.5rem, 7vw, 5.5rem); display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem 3rem;
  text-align: left; border-top: 1px solid var(--rule); padding-top: 2.5rem;
}
.vision-points h3 { font-size: var(--step-1); margin-bottom: .5rem; }
.vision-points p { color: var(--muted); font-size: .975rem; }
.vision-close { margin: clamp(3rem, 6vw, 4.5rem) auto 0; max-width: 42rem; font-size: var(--step-1); line-height: 1.55; }

/* ------------------------------------------------------------------ contact (dark) */
.contact .section-head { max-width: 52rem; }
.audiences { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.audience {
  padding: 1.75rem; border: 1px solid var(--ivory-rule); border-radius: var(--radius);
  transition: border-color .3s var(--ease), background-color .3s var(--ease);
}
.audience:hover { border-color: rgba(131, 166, 59, .6); background: rgba(245, 243, 236, .03); }
.audience h3 { font-size: var(--step-1); margin-bottom: .6rem; }
.audience p { font-size: .95rem; color: var(--ivory-80); }
.cta-row--contact { margin-top: 3rem; }

/* Contact form, on the dark contact band. Errors use a light earth tint (7.1:1 on forest). */
.enquiry {
  --error-on-dark: #F2BFA1;
  margin-top: clamp(3rem, 6vw, 4.5rem); max-width: 52rem;
  padding: clamp(1.5rem, 4vw, 2.5rem); border: 1px solid var(--ivory-rule); border-radius: var(--radius);
  background: rgba(245, 243, 236, .03);
}
.enquiry[hidden] { display: none; }
.enquiry h3 { font-size: var(--step-2); margin: 0 0 1.75rem; }
.enquiry-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem 1.5rem; }
.field--wide { grid-column: 1 / -1; }
.field label { display: block; margin-bottom: .45rem; font-size: .9375rem; font-weight: 500; color: var(--ivory); }
.field .optional { font-weight: 400; color: var(--ivory-60); }
.field input, .field select, .field textarea {
  width: 100%; padding: .8rem .95rem; border: 1px solid var(--ivory-rule); border-radius: var(--radius);
  background: rgba(245, 243, 236, .06); color: var(--ivory);
  font: inherit; font-size: 1rem; line-height: 1.4;
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.field select option { color: var(--charcoal); background: var(--ivory); }
.field textarea { resize: vertical; min-height: 8rem; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: rgba(245, 243, 236, .4); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--botanical); background: rgba(245, 243, 236, .09); }
.field [aria-invalid="true"] { border-color: var(--error-on-dark); }
.field-error { margin: .4rem 0 0; font-size: .875rem; color: var(--error-on-dark); }
.field-error:empty { display: none; }
.enquiry-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.enquiry .cta-row--contact { margin-top: 2rem; }
.enquiry button[disabled] { opacity: .65; cursor: progress; }
.enquiry-status { margin: 1.25rem 0 0; font-size: 1rem; color: var(--ivory-80); }
.enquiry-status:empty { display: none; }
.enquiry-status.is-sent { color: var(--botanical-text); font-weight: 500; }
.enquiry-status.is-error { color: var(--error-on-dark); }
.enquiry-noscript { margin-top: 3rem; color: var(--ivory-80); }

/* ------------------------------------------------------------------ footer */
.site-footer { background: var(--ivory); padding-top: clamp(3.5rem, 7vw, 5.5rem); }
.footer-grid {
  display: grid; grid-template-columns: auto 1fr auto; gap: 2.5rem 4rem; align-items: center;
  padding-bottom: 3rem;
}
.footer-brand img { width: 150px; }
.footer-statement { font-family: var(--font-display); font-size: var(--step-2); color: var(--forest); line-height: 1.2; margin-bottom: .4rem; }
.footer-tagline p:last-child { color: var(--muted); font-size: .95rem; }
.footer-nav ul { display: grid; grid-template-columns: repeat(2, auto); gap: .5rem 2.5rem; }
.footer-nav a { font-size: .925rem; text-decoration: none; color: var(--charcoal); }
.footer-nav a:hover { color: var(--forest); text-decoration: underline; text-underline-offset: 3px; }
.footer-base {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem;
  padding-block: 1.5rem 2rem; font-size: var(--step--1); color: var(--muted);
  background: linear-gradient(var(--rule), var(--rule)) top / 100% 1px no-repeat content-box;
}


/* ------------------------------------------------------------------ shared: placeholders & subheads */
.placeholder {
  display: inline; -webkit-box-decoration-break: clone; box-decoration-break: clone;
  font-family: var(--font-body); font-size: .85em; font-weight: 500; line-height: 2;
  color: var(--earth-text); background: rgba(155, 91, 54, .07);
  border: 1px dashed rgba(155, 91, 54, .55); border-radius: 4px; padding: .1em .5em;
}
.placeholder::before { content: "[ "; } .placeholder::after { content: " ]"; }
.subhead { font-size: var(--step-3); line-height: 1.12; }

/* ------------------------------------------------------------------ platform */
.platform { background: var(--ivory); }
.platform-grid {
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: clamp(2.5rem, 6vw, 5.5rem); align-items: start;
}
.platform-figure { margin: 0; }
.concept-badge {
  display: inline-flex; align-items: center; gap: .55rem; margin-bottom: 1rem;
  font-size: var(--step--1); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--forest);
  border: 1px dashed var(--rule-strong); border-radius: 999px; padding: .35rem .85rem;
}
.stack { background: var(--ivory-deep); border-radius: var(--radius); padding: clamp(1rem, 2.5vw, 1.75rem); }
.layer { border-radius: var(--radius); padding: 1.25rem 1.4rem 1.4rem; }
.layer--human, .layer--devices { background: var(--ivory); border: 1px solid var(--rule); }
.layer--intelligence { background: var(--forest); color: var(--ivory-80); position: relative; overflow: hidden; isolation: isolate; }
.layer--intelligence::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .08;
  background: url("../assets/illustrations/contours-ivory.svg") center / cover no-repeat;
}
.layer-name {
  display: flex; align-items: center; gap: .7rem; margin-bottom: 1rem;
  font-size: var(--step--1); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--forest);
}
.layer--intelligence .layer-name { color: var(--ivory); }
.layer-num {
  font-family: var(--font-display); font-style: italic; font-weight: 400; text-transform: none; letter-spacing: 0;
  font-size: .95rem; color: var(--earth-text); white-space: nowrap;
}
.layer--intelligence .layer-num { color: var(--botanical-text); }

.layer-human-body { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.actor { display: flex; align-items: center; gap: .8rem; flex: 1 1 14rem; }
.actor svg { width: 40px; height: 40px; flex: none; }
.actor span { font-size: .875rem; color: var(--muted); line-height: 1.4; }
.actor strong { display: block; font-family: var(--font-display); font-weight: 400; font-size: 1.1rem; color: var(--forest); }
.actor-link { flex: 0 0 36px; height: 0; border-top: 2px dotted var(--teal); }

.flow { display: flex; justify-content: center; gap: clamp(2rem, 8vw, 6rem); padding: .55rem 0; }
.flow-item { display: inline-flex; align-items: center; gap: .45rem; font-size: .8125rem; font-weight: 500; letter-spacing: .03em; }
.flow-item svg { width: 14px; height: 26px; }
.flow-item--down { color: var(--forest); }
.flow-item--up { color: var(--teal-text); }

.modules { display: grid; grid-template-columns: repeat(2, 1fr); gap: .7rem; }
.modules li { border: 1px solid var(--ivory-rule); border-radius: 4px; padding: .85rem 1rem; background: rgba(245, 243, 236, .03); }
.modules strong { display: block; font-family: var(--font-display); font-weight: 400; font-size: 1.1rem; color: var(--ivory); margin-bottom: .2rem; }
.modules span { font-size: .85rem; line-height: 1.45; color: var(--ivory-80); }

.devices { display: grid; grid-template-columns: repeat(4, 1fr); gap: .7rem; position: relative; }
.devices::before {
  content: ""; position: absolute; left: 12%; right: 12%; top: 38px; border-top: 2px dotted var(--teal); opacity: .8;
}
.devices li {
  position: relative; background: var(--ivory); border: 1px solid var(--rule); border-radius: 4px;
  padding: .9rem .75rem; text-align: center;
}
.devices svg { width: 44px; height: 44px; margin: 0 auto .5rem; }
.devices strong { display: block; font-family: var(--font-display); font-weight: 400; color: var(--forest); font-size: 1rem; }
.devices span { font-size: .78rem; color: var(--muted); line-height: 1.4; display: block; }
.devices .device--more { border-style: dashed; border-color: var(--rule-strong); }
.mesh-note { margin-top: 1rem; font-size: .85rem; color: var(--muted); }
.platform-caption {
  margin-top: .9rem; font-size: var(--step--1); line-height: 1.5; color: var(--muted);
  display: flex; gap: .6rem; align-items: baseline;
}
.platform-caption::before { content: ""; flex: none; width: 18px; height: 1px; background: currentColor; transform: translateY(-3px); }

.platform-components > h3 { font-size: var(--step-2); margin-bottom: 1.5rem; }
.components li { padding: 1.1rem 0 1.2rem; border-top: 1px solid var(--rule); }
.components h4 { margin: .5rem 0 .3rem; }
.components p { font-size: .95rem; color: var(--muted); }
.comp-tag {
  display: inline-block; font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  border-radius: 999px; padding: .2rem .6rem; line-height: 1.3;
}
.comp-tag--l1 { border: 1px solid var(--forest); color: var(--forest); }
.comp-tag--l2 { background: var(--forest); color: var(--ivory); }
.comp-tag--l3 { background: rgba(131, 166, 59, .22); color: var(--forest); }
.comp-tag--all { border: 1px dashed var(--teal-text); color: var(--teal-text); }

/* ------------------------------------------------------------------ use case */
.usecase { background: var(--ivory-deep); }
.usecase-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.usecase-figure { position: sticky; top: 104px; }
.usecase-figure .illus-frame {
  aspect-ratio: 8 / 9; width: min(100%, calc((100vh - 240px) * 8 / 9)); min-width: min(100%, 380px);
}
.marker {
  position: absolute; transform: translate(-50%, -50%);
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--font-display); font-size: 1rem; line-height: 1;
  box-shadow: 0 0 0 4px rgba(233, 228, 212, .92);
  transition: transform .4s var(--ease), opacity .4s var(--ease);
}
.marker--forest { background: var(--forest); color: var(--ivory); }
.marker--teal { background: var(--teal); color: var(--forest-deep); }
.marker--botanical { background: var(--botanical); color: var(--forest-deep); }
.marker--earth { background: var(--earth); color: var(--ivory); }
.legend { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin-top: 1rem; font-size: var(--step--1); color: var(--charcoal); }
.legend li { display: inline-flex; align-items: center; gap: .5rem; }
.key { width: 18px; height: 18px; border-radius: 50%; flex: none; }
.key--machine { background: var(--teal); box-shadow: inset 0 0 0 4px var(--ivory-deep), 0 0 0 1px var(--teal); }
.key--flag { border: 2.5px solid var(--earth); }
.key--zone {
  border-radius: 3px; border: 1px dashed var(--charcoal);
  background: repeating-linear-gradient(55deg, rgba(155, 91, 54, .45) 0 1.5px, transparent 1.5px 6px);
}

.story-steps li { padding: 2rem 0 2.25rem; border-top: 1px solid var(--rule-strong); transition: opacity .4s var(--ease); }
.story-steps li:last-child { border-bottom: 1px solid var(--rule-strong); }
.step-kicker {
  display: flex; align-items: center; gap: .75rem; margin-bottom: .9rem;
  font-size: var(--step--1); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--charcoal);
}
.step-num {
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--font-display); font-size: .95rem; letter-spacing: 0;
}
.step-num--forest { background: var(--forest); color: var(--ivory); }
.step-num--teal { background: var(--teal); color: var(--forest-deep); }
.step-num--botanical { background: var(--botanical); color: var(--forest-deep); }
.step-num--earth { background: var(--earth); color: var(--ivory); }
.story-steps h3 { margin-bottom: .75rem; }
.story-steps p:last-child { color: var(--charcoal); max-width: 34rem; }

/* scroll-linked emphasis: desktop + JS only, and never for reduced motion users' comfort beyond opacity */
@media (min-width: 1001px) {
  .story-steps li { min-height: 46vh; display: flex; flex-direction: column; justify-content: center; }
  .js .usecase.has-active .story-steps li:not(.is-active) { opacity: .4; }
  .js .usecase.has-active .marker:not(.is-active) { opacity: .35; }
  .js .usecase .marker.is-active { transform: translate(-50%, -50%) scale(1.25); }
}

/* ------------------------------------------------------------------ opportunity / funding */
.opportunity { background: var(--ivory-deep); border-top: 1px solid var(--rule); }
.case { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 4rem; }
.case li {
  display: grid; grid-template-columns: 3rem 1fr; column-gap: 1rem;
  padding: 1.75rem 0 2rem; border-top: 1px solid var(--rule-strong);
}
.case-num { font-family: var(--font-display); font-style: italic; color: var(--earth-text); font-size: 1.05rem; grid-row: span 2; padding-top: .2rem; }
.case h3 { font-size: var(--step-1); margin-bottom: .5rem; }
.case p { font-size: .975rem; color: var(--muted); }

.aims-block { margin-top: clamp(4rem, 8vw, 6rem); }
.aims-block > .subhead { margin-bottom: 2rem; }
.aims { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.aims li { background: var(--ivory); border-radius: var(--radius); padding: 1.6rem 1.5rem 1.75rem; border-top: 3px solid var(--botanical); }
.aims h4 { margin-bottom: .5rem; }
.aims p { font-size: .95rem; color: var(--muted); }

.pathway { margin: 3rem 0 0; }
.pathway ol { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; position: relative; }
.pathway ol::before {
  content: ""; position: absolute; left: 9px; right: 12%; top: 9px; height: 2px;
  background: linear-gradient(90deg, var(--forest) 0 60%, transparent 60%) 0 0 / 14px 2px repeat-x;
}
.pathway li { position: relative; padding-top: 2.1rem; }
.pathway-node {
  position: absolute; top: 0; left: 0; width: 20px; height: 20px; border-radius: 50%;
  background: var(--ivory-deep); border: 2px solid var(--forest);
}
.pathway h4 { font-size: 1.1rem; margin-bottom: .5rem; }
.pathway figcaption {
  margin-top: 1.5rem; font-size: var(--step--1); color: var(--muted);
  display: flex; flex-wrap: wrap; gap: .4rem .6rem; align-items: baseline;
}

.seeking {
  margin-top: clamp(4rem, 8vw, 6rem); background: var(--ivory); border-radius: var(--radius);
  padding: clamp(1.5rem, 4vw, 3.25rem); border: 1px solid var(--rule);
}
.seeking-head { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 4rem; align-items: end; margin-bottom: 2rem; }
.seeking-head p { color: var(--muted); }
.seeking-table { width: 100%; border-collapse: collapse; text-align: left; }
.seeking-table thead th {
  font-size: var(--step--1); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
  padding: 0 1rem .85rem 0; border-bottom: 1px solid var(--rule-strong);
}
.seeking-table tbody th, .seeking-table td { padding: 1.25rem 1.5rem 1.25rem 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.seeking-table tbody th {
  font-family: var(--font-display); font-weight: 400; font-size: var(--step-1); color: var(--forest); width: 28%; line-height: 1.3;
}
.seeking-table td { font-size: .95rem; color: var(--charcoal); }
.seeking-table td:last-child { width: 28%; padding-right: 0; }
.seeking .cta-row { margin-top: 2rem; }

/* ------------------------------------------------------------------ reveal motion (subtle) */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .principle::before { transition: none; }
  .marker, .story-steps li { transition: none; }
  .js .usecase .marker.is-active { transform: translate(-50%, -50%); }
}

/* ------------------------------------------------------------------ responsive */
@media (max-width: 1080px) {
  .site-nav ul { gap: 1.5rem; }
  .audiences { grid-template-columns: repeat(2, 1fr); }
  .pillars { grid-template-columns: 1fr; }
  .pillar, .pillar + .pillar { padding: 2.25rem 0; border-left: 0; }
  .pillar + .pillar { border-top: 1px solid var(--ivory-rule); }
  .pillar { display: grid; grid-template-columns: 80px 1fr; column-gap: 1.5rem; }
  .pillar-icon { grid-row: span 3; margin-bottom: 0; }
  .loop { grid-template-columns: 1fr; }
  .loop-diagram svg { max-width: 560px; }
}

@media (max-width: 1000px) {
  .nav-toggle {
    display: inline-grid; place-items: center; width: 44px; height: 44px; margin-right: -10px;
    background: none; border: 0; cursor: pointer; color: var(--forest);
  }
  .nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
    display: block; width: 22px; height: 1.5px; background: currentColor; position: relative;
    transition: transform .3s var(--ease), background-color .3s var(--ease);
  }
  .nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
  .nav-toggle-bars::before { top: -7px; }
  .nav-toggle-bars::after { top: 7px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-7px) rotate(-45deg); }

  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--ivory); border-bottom: 1px solid var(--rule);
    display: none;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: .5rem var(--gutter) 1.5rem; }
  .site-nav li a { display: block; padding: .9rem 0; border-bottom: 1px solid var(--rule); font-size: 1.05rem; }
  .site-nav li a::after { display: none; }
  .site-nav .nav-cta { margin-top: 1rem; text-align: center; border-bottom: 0; padding: .9rem 1rem; }

}

@media (max-width: 1000px) {
  .platform-grid, .usecase-grid { grid-template-columns: 1fr; }
  .usecase-figure { position: static; max-width: 560px; }
  .usecase-figure .illus-frame { width: 100%; min-width: 0; }
  .aims { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 880px) {
  .hero-grid, .split, .section-head--split { grid-template-columns: 1fr; }
  .case, .seeking-head { grid-template-columns: 1fr; }
  .pathway ol { grid-template-columns: 1fr 1fr; row-gap: 2rem; }
  .pathway ol::before { display: none; }
  .seeking-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .seeking-table, .seeking-table tbody, .seeking-table tr, .seeking-table th, .seeking-table td { display: block; width: auto !important; }
  .seeking-table tr { padding: 1.25rem 0; border-bottom: 1px solid var(--rule); }
  .seeking-table tbody th, .seeking-table td { border: 0; padding: 0 0 .6rem; }
  .seeking-table td::before {
    content: attr(data-label); display: block; font-size: .72rem; font-weight: 600; letter-spacing: .08em;
    text-transform: uppercase; color: var(--muted); margin-bottom: .2rem;
  }
  .split--media-first .illus { order: 0; }
  .hero-figure .illus-frame { aspect-ratio: 4 / 4.2; }
  .ideas, .roles, .vision-points { grid-template-columns: 1fr; }
  .principles { grid-template-columns: 1fr 1fr; }
  .offline { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; align-items: start; }
}

@media (max-width: 560px) {
  .header-inner { height: 68px; }
  .brand-emblem { width: 38px; }
  .brand-wordmark { height: 19px; }
  .principles, .audiences, .contrast, .aims, .pathway ol, .modules, .enquiry-grid { grid-template-columns: 1fr; }
  .devices { grid-template-columns: 1fr 1fr; }
  .devices::before { display: none; }
  .flow { gap: 1.5rem; }
  .actor-link { display: none; }
  .tag { font-size: .6875rem; padding: .22rem .5rem; transform: translate(18px, -50%); }
  .tag[data-side="left"] { transform: translate(calc(-100% - 18px), -50%); }
  .tag[data-side="below"] { transform: translate(-80%, 24px); }
  .pillar { grid-template-columns: 1fr; }
  .pillar-icon { margin-bottom: 1.5rem; }
  .btn { width: 100%; justify-content: center; }
  .loop-label { font-size: 19px; }
}

@media print {
  .site-header, .nav-toggle { position: static; }
  .js .reveal { opacity: 1; transform: none; }
  .story-steps li, .marker { opacity: 1 !important; }
  .usecase-figure { position: static; }
}
