/* ==========================================================================
   IRES — Innovative Rammed Earth Solutions
   Design direction: "Strata". Rammed earth is laid in horizontal lifts, so the
   page is built from horizontal bands — the same device as the brand mark.
   Palette and mark are taken from the IRES brand guide.
   ========================================================================== */

/* ---------- Fonts (self-hosted, latin subset) ---------- */
@font-face {
  font-family: "Fraunces";
  src: url("assets/fonts/fraunces-300-900.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("assets/fonts/fraunces-300-900i.woff2") format("woff2");
  font-weight: 300 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("assets/fonts/poppins-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("assets/fonts/poppins-600.woff2") format("woff2");
  font-weight: 500 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("assets/fonts/poppins-800.woff2") format("woff2");
  font-weight: 700 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  /* Brand */
  --deep-earth: #6b4e2e;
  --clay: #9c5b34;
  --sage: #3d5a47;
  --cream: #fdfbf7;

  /* Derived neutrals — the extra range the page needs for contrast */
  --basalt: #191310;
  --basalt-soft: #241b15;
  --earth-deep: #3f2c19;
  --sand: #f2e8da;
  --sand-deep: #e5d6c1;
  --clay-hot: #c2703c;
  --sun: #d9a154;
  --sage-deep: #23392c;

  /* Roles */
  --ink: var(--basalt);
  --text: #40301f;
  --text-soft: #6b5742;
  --text-on-dark: #f6efe4;
  --text-on-dark-soft: rgba(246, 239, 228, 0.72);
  --rule: rgba(107, 78, 46, 0.18);
  --rule-dark: rgba(246, 239, 228, 0.18);

  --shadow-sm: 0 2px 10px rgba(63, 44, 25, 0.07);
  --shadow: 0 22px 60px rgba(63, 44, 25, 0.14);
  --shadow-lg: 0 40px 110px rgba(25, 19, 16, 0.34);

  --radius: 4px;
  --radius-lg: 6px;
  --shell: clamp(1.15rem, 5vw, 5.5rem);
  --measure: 46rem;

  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Poppins", "Segoe UI", system-ui, sans-serif;

  color-scheme: light;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: clip;
  background: var(--cream);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
picture,
svg {
  display: block;
  max-width: 100%;
}

/* <picture> wrappers must carry the size so the inner img's 100% height resolves */
.hero-media picture,
.material-backdrop picture,
.tile picture {
  display: block;
  width: 100%;
  height: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
p,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

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

.skip-link {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 100;
  padding: 0.7rem 1.2rem;
  background: var(--basalt);
  color: var(--text-on-dark);
  font-weight: 700;
  transform: translate(-50%, -120%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translate(-50%, 0);
}

/* Keep anchor targets clear of the fixed header */
[id] {
  scroll-margin-top: 6rem;
}

/* ---------- Type ---------- */
h1,
h2 {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 600;
  letter-spacing: -0.022em;
  line-height: 0.98;
  color: var(--earth-deep);
}

h1 {
  font-size: clamp(2.5rem, 7.6vw, 6.4rem);
  line-height: 0.94;
}

h2 {
  font-size: clamp(1.9rem, 4.6vw, 3.65rem);
}

h3 {
  font-family: var(--font-body);
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  font-weight: 600;
  line-height: 1.25;
  color: var(--earth-deep);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.15rem;
  color: var(--clay);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  line-height: 1.3;
  text-transform: uppercase;
}

.eyebrow-mark {
  width: 1.9rem;
  height: 0.6rem;
  flex: none;
  background:
    linear-gradient(var(--clay), var(--clay)) 0 0 / 100% 34% no-repeat,
    linear-gradient(var(--sage), var(--sage)) 0 100% / 100% 34% no-repeat;
}

.eyebrow-light {
  color: var(--sun);
}

.lead {
  font-size: clamp(1.05rem, 1.55vw, 1.24rem);
  line-height: 1.72;
  color: var(--text);
}

.section-note {
  max-width: 30rem;
  color: var(--text-soft);
  font-size: 0.95rem;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.85rem var(--shell);
  color: var(--text-on-dark);
  background: linear-gradient(rgba(25, 19, 16, 0.5), rgba(25, 19, 16, 0));
  transition: background 260ms ease, color 260ms ease, box-shadow 260ms ease;
}

.site-header.is-stuck {
  color: var(--earth-deep);
  background: rgba(253, 251, 247, 0.9);
  backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 1px 0 var(--rule), 0 12px 34px rgba(63, 44, 25, 0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}

.brand-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  flex: none;
  overflow: hidden;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  max-width: 2.25rem;
  max-height: 2.25rem;
  object-fit: contain;
  display: block;
}

.band {
  display: block;
  height: 0.5rem;
  border-radius: 999px 3px 3px 999px;
}

.band-earth {
  background: var(--deep-earth);
}
.band-clay {
  background: var(--clay);
}
.band-sage {
  background: var(--sage);
}

.brand-word {
  display: grid;
  line-height: 1;
}

.brand-word strong {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand-word small {
  margin-top: 0.22rem;
  font-size: 0.42rem;
  font-weight: 800;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  opacity: 0.76;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(0.6rem, 1.6vw, 1.7rem);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.site-nav a {
  position: relative;
  padding-bottom: 0.25rem;
}

.site-nav a::after {
  position: absolute;
  inset: auto 0 0;
  height: 2px;
  background: currentColor;
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 220ms ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
}

.nav-cta {
  flex: none;
  padding: 0.58rem 1.1rem;
  border: 1px solid currentColor;
  border-radius: var(--radius);
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  transition: background 200ms ease, border-color 200ms ease, color 200ms ease;
}

.site-header.is-stuck .nav-cta {
  border-color: var(--earth-deep);
  background: var(--earth-deep);
  color: var(--cream);
}

.nav-cta:hover,
.nav-cta:focus-visible {
  background: var(--clay-hot);
  border-color: var(--clay-hot);
  color: var(--cream);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.55rem;
  height: 2.55rem;
  flex: none;
  padding: 0;
  border: 1px solid currentColor;
  border-radius: var(--radius);
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.nav-toggle-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.nav-toggle-icon,
.nav-toggle-icon::before,
.nav-toggle-icon::after {
  display: block;
  width: 1rem;
  height: 1.5px;
  border-radius: 1px;
  background: currentColor;
}

.nav-toggle-icon {
  position: relative;
}

.nav-toggle-icon::before,
.nav-toggle-icon::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle-icon::before {
  top: -6px;
}

.nav-toggle-icon::after {
  top: 6px;
}

.site-header.is-open .nav-toggle-icon {
  background: transparent;
}

.site-header.is-open .nav-toggle-icon::before,
.site-header.is-open .nav-toggle-icon::after {
  top: 0;
}

.site-header.is-open .nav-toggle-icon::before {
  transform: rotate(45deg);
}

.site-header.is-open .nav-toggle-icon::after {
  transform: rotate(-45deg);
}

/* Scroll progress: the strata bar refilling */
.scroll-progress {
  position: absolute;
  inset: auto 0 0;
  height: 3px;
  background: rgba(246, 239, 228, 0.16);
}

.is-stuck .scroll-progress {
  background: rgba(107, 78, 46, 0.12);
}

.scroll-progress i {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--deep-earth), var(--clay) 46%, var(--sage));
  transform: scaleX(0);
  transform-origin: left;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 100svh;
  padding: clamp(7rem, 16vh, 11rem) var(--shell) 0;
  color: var(--text-on-dark);
  background: var(--basalt);
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 52% 46%;
  animation: hero-push 2.6s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}

@keyframes hero-push {
  from {
    transform: scale(1.09);
  }
  to {
    transform: scale(1);
  }
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(25, 19, 16, 0.72) 0%, rgba(25, 19, 16, 0.2) 32%, rgba(25, 19, 16, 0.86) 88%),
    linear-gradient(100deg, rgba(25, 19, 16, 0.72) 0%, rgba(25, 19, 16, 0.16) 62%);
  content: "";
}

.hero-inner {
  max-width: 62rem;
}

.hero-inner h1 {
  color: var(--cream);
  text-wrap: balance;
}

.hero-lead {
  max-width: 40rem;
  margin-top: clamp(1.2rem, 2.4vh, 1.9rem);
  color: var(--text-on-dark-soft);
  font-size: clamp(1rem, 1.5vw, 1.24rem);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: clamp(1.6rem, 3.4vh, 2.6rem);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3.15rem;
  padding: 0.9rem 1.5rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: transform 200ms ease, background 200ms ease, border-color 200ms ease, color 200ms ease;
}

.button-solid {
  background: var(--clay-hot);
  border-color: var(--clay-hot);
  color: #fff;
  box-shadow: 0 14px 34px rgba(194, 112, 60, 0.32);
}

.button-solid:hover {
  background: var(--sun);
  border-color: var(--sun);
  transform: translateY(-2px);
}

.button-ghost {
  border-color: rgba(246, 239, 228, 0.42);
  color: var(--text-on-dark);
}

.button-ghost:hover {
  background: rgba(246, 239, 228, 0.12);
  border-color: rgba(246, 239, 228, 0.8);
  transform: translateY(-2px);
}

/* The strata rail — hero signature element */
.strata-intro {
  margin-top: clamp(2.4rem, 6vh, 4rem);
  padding: 0.9rem 0 0.5rem;
  color: var(--sun);
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1.8vw, 1.45rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  border-top: 1px solid rgba(246, 239, 228, 0.2);
}

.strata-rail {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: clamp(2.4rem, 6vh, 4.2rem);
  border-top: 1px solid rgba(246, 239, 228, 0.2);
}

.strata-rail-3 {
  grid-template-columns: repeat(3, 1fr);
  margin-top: 0;
  border-top: none;
}

.strata {
  padding: 1.4rem 1.4rem 1.6rem 0;
  border-top: 5px solid var(--deep-earth);
  border-right: 1px solid rgba(246, 239, 228, 0.14);
}

.strata:not(:first-child) {
  padding-left: clamp(1.4rem, 2.6vw, 2.6rem);
}

.strata:last-child {
  border-right: 0;
}

.strata-earth {
  border-top-color: var(--deep-earth);
}
.strata-clay {
  border-top-color: var(--clay);
}
.strata-sage {
  border-top-color: var(--sage);
}
.strata-deep {
  border-top-color: var(--sun);
}

.strata-key {
  display: block;
  margin-bottom: 0.5rem;
  color: rgba(246, 239, 228, 0.55);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.strata strong {
  display: block;
  margin-bottom: 0.4rem;
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1.8vw, 1.5rem);
  font-weight: 600;
}

.strata span:last-child {
  display: block;
  max-width: 22rem;
  color: rgba(246, 239, 228, 0.66);
  font-size: 0.83rem;
  line-height: 1.55;
}

/* ---------- Section shell ---------- */
.section {
  padding: clamp(3.6rem, 8vw, 7.5rem) var(--shell);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(1rem, 4vw, 4rem);
  align-items: end;
  margin-bottom: clamp(2.2rem, 5vw, 4rem);
  padding-bottom: clamp(1.4rem, 3vw, 2.2rem);
  border-bottom: 1px solid var(--rule);
}

.section-head :is(h1, h2) {
  grid-column: 1;
  max-width: 20ch;
}

.section-head .eyebrow {
  grid-column: 1;
}

.section-head .section-note {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: end;
}

/* ---------- Foundation ---------- */
.foundation {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 6vw, 6rem);
  background: var(--cream);
}

.foundation :is(h1, h2) {
  max-width: 14ch;
}

.foundation-body .lead {
  max-width: 34rem;
}

.spec-list {
  margin-top: clamp(1.8rem, 4vw, 2.8rem);
  border-top: 1px solid var(--rule);
}

.spec-list > div {
  display: grid;
  grid-template-columns: minmax(7rem, 0.36fr) minmax(0, 1fr);
  gap: 0.6rem 1.4rem;
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--rule);
}

.spec-list dt {
  color: var(--earth-deep);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.spec-list dd {
  color: var(--text-soft);
  font-size: 0.94rem;
  line-height: 1.55;
}

/* ---------- Environments ---------- */
.work {
  background: var(--sand);
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(0.6rem, 1.4vw, 1.1rem);
}

.tile {
  position: relative;
  grid-column: span 4;
  aspect-ratio: 4 / 3;
  height: 100%;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--sand-deep);
  box-shadow: var(--shadow-sm);
}

.tile-wide {
  grid-column: span 7;
  aspect-ratio: 16 / 11;
}

.tile-tall {
  grid-column: span 5;
  aspect-ratio: 4 / 3;
}

.tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 900ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.tile::after {
  position: absolute;
  inset: auto 0 0;
  height: 62%;
  background: linear-gradient(transparent, rgba(25, 19, 16, 0.86));
  content: "";
  opacity: 0.92;
  transition: opacity 400ms ease;
}

.tile:hover img {
  transform: scale(1.045);
}

.tile figcaption {
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 1.1rem 1.2rem 1.15rem;
  color: var(--text-on-dark);
}

.tile figcaption strong {
  padding-top: 0.6rem;
  border-top: 3px solid var(--clay-hot);
  font-family: var(--font-display);
  font-size: 1.06rem;
  font-weight: 600;
}

.tile figcaption span {
  color: var(--text-on-dark-soft);
  font-size: 0.8rem;
  line-height: 1.5;
}

.tile:nth-child(3) figcaption strong {
  border-top-color: var(--sun);
}
.tile:nth-child(4) figcaption strong {
  border-top-color: var(--deep-earth);
}
.tile:nth-child(5) figcaption strong {
  border-top-color: var(--sage);
}

.work-note {
  margin-top: 1.4rem;
  color: var(--text-soft);
  font-size: 0.76rem;
  letter-spacing: 0.06em;
}

/* ---------- Material ---------- */
.material {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.05fr);
  gap: clamp(2rem, 6vw, 5.5rem);
  align-items: center;
  background: var(--basalt);
  color: var(--text-on-dark);
  isolation: isolate;
  overflow: hidden;
}

.material-backdrop {
  position: absolute;
  inset: 0;
  z-index: -1;
}

/* Legacy link targets must not consume a cell in the content grid. */
.material > .anchor-alias {
  position: absolute;
}

.material-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.13;
  filter: saturate(0.6) brightness(0.9);
}

.material::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(25, 19, 16, 0.86), rgba(25, 19, 16, 0.62) 55%, rgba(25, 19, 16, 0.9));
  content: "";
}

.material :is(h1, h2) {
  max-width: 17ch;
  color: var(--cream);
}

.material-copy p {
  max-width: 36rem;
  margin-top: 1.2rem;
  color: var(--text-on-dark-soft);
  font-size: clamp(1rem, 1.4vw, 1.14rem);
  line-height: 1.72;
}

.material-media {
  border: 1px solid var(--rule-dark);
  border-radius: var(--radius);
  padding: 0.7rem;
}

.material-media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 2px;
}

.tick-list {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.8rem;
}

.tick-list li {
  position: relative;
  padding-left: 1.7rem;
  color: var(--text-on-dark);
  font-size: 0.97rem;
  line-height: 1.6;
}

.tick-list li::before {
  position: absolute;
  top: 0.5rem;
  left: 0;
  width: 1rem;
  height: 0.34rem;
  background: linear-gradient(90deg, var(--clay-hot) 0 42%, var(--sage) 42% 100%);
  content: "";
}

.material-foot {
  margin-top: 2rem !important;
  padding-top: 1.4rem;
  border-top: 1px solid var(--rule-dark);
  color: var(--sun) !important;
  font-family: var(--font-display);
  font-size: 1.1rem !important;
  font-style: italic;
}

/* ---------- Systems ---------- */
.systems {
  background: var(--cream);
}

.systems-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(0.6rem, 1.4vw, 1rem);
}

.system-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 20rem;
  padding: 1.7rem 1.5rem 1.9rem;
  background: var(--sand);
  border-radius: var(--radius);
  transition: transform 300ms ease, box-shadow 300ms ease, background 300ms ease;
}

.system-card:hover {
  background: var(--cream);
  box-shadow: var(--shadow);
  transform: translateY(-6px);
}

.card-band {
  display: block;
  width: 100%;
  height: 0.55rem;
  margin-bottom: 1.6rem;
  border-radius: 999px;
}

.system-card-earth .card-band {
  background: var(--deep-earth);
}
.system-card-clay .card-band {
  background: var(--clay);
}
.system-card-sage .card-band {
  background: var(--sage);
}
.system-card-deep .card-band {
  background: var(--sun);
}

.card-index {
  margin-bottom: clamp(1.8rem, 3.4vw, 2.6rem);
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 6vw, 5.2rem);
  font-weight: 500;
  line-height: 0.85;
  color: rgba(107, 78, 46, 0.32);
}

.system-card-clay .card-index {
  color: rgba(156, 91, 52, 0.42);
}

.system-card-sage .card-index {
  color: rgba(61, 90, 71, 0.4);
}

.system-card-deep .card-index {
  color: rgba(194, 112, 60, 0.46);
}

.system-card h3 {
  margin-bottom: 0.6rem;
}

.system-card p {
  color: var(--text-soft);
  font-size: 0.93rem;
  line-height: 1.62;
}

/* ---------- Process ---------- */
.process {
  background: var(--sand);
}

.process-track {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(0.9rem, 2vw, 1.6rem);
}

.process-track li {
  position: relative;
  padding-top: 2.6rem;
}

.step-rail {
  position: absolute;
  top: 0.55rem;
  left: 0;
  right: calc(-1 * clamp(0.9rem, 2vw, 1.6rem));
  height: 3px;
  background: var(--clay);
}

.process-track li:nth-child(2) .step-rail {
  background: var(--deep-earth);
}

.process-track li:nth-child(3) .step-rail {
  background: var(--sage);
}

.process-track li:nth-child(4) .step-rail {
  right: 0;
  background: var(--sun);
}

.process-track li::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 0.85rem;
  height: 0.85rem;
  border: 3px solid var(--clay);
  border-radius: 50%;
  background: var(--sand);
  content: "";
}

.process-track li:nth-child(2)::before {
  border-color: var(--deep-earth);
}
.process-track li:nth-child(3)::before {
  border-color: var(--sage);
}
.process-track li:nth-child(4)::before {
  border-color: var(--sun);
}

.step-num {
  display: block;
  margin-bottom: 0.7rem;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.4vw, 3.4rem);
  font-weight: 500;
  line-height: 0.9;
  color: var(--clay);
}

.process-track li:nth-child(2) .step-num {
  color: var(--deep-earth);
}
.process-track li:nth-child(3) .step-num {
  color: var(--sage);
}
.process-track li:nth-child(4) .step-num {
  color: #b5813a;
}

.process-track h3 {
  margin-bottom: 0.5rem;
}

.process-track p {
  color: var(--text-soft);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* ---------- Why ---------- */
.why {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.75fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
  background: var(--sage-deep);
  color: var(--text-on-dark);
}

.why h2 {
  max-width: 16ch;
  color: var(--cream);
}

.why-copy > p {
  max-width: 34rem;
  margin-top: 1.2rem;
  color: var(--text-on-dark-soft);
  font-size: clamp(1rem, 1.4vw, 1.14rem);
  line-height: 1.72;
}

.why-quote {
  margin-top: clamp(1.8rem, 4vw, 2.6rem);
  padding: 1.4rem 0 1.4rem 1.5rem;
  border-left: 4px solid var(--sun);
}

.why-quote p {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.4vw, 1.85rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1.28;
  color: var(--cream);
}

.why-media {
  position: relative;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.why-media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

/* ---------- Contact ---------- */
.contact {
  background: var(--basalt-soft);
}

.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
  padding: clamp(3.6rem, 8vw, 7.5rem) var(--shell);
  color: var(--text-on-dark);
}

.contact :is(h1, h2) {
  max-width: 16ch;
  color: var(--cream);
}

.contact-copy > p {
  max-width: 32rem;
  margin-top: 1.2rem;
  color: var(--text-on-dark-soft);
  font-size: clamp(1rem, 1.4vw, 1.12rem);
  line-height: 1.7;
}

.next-steps {
  display: grid;
  gap: 0.9rem;
  margin-top: clamp(1.8rem, 4vw, 2.6rem);
  padding-top: 1.6rem;
  border-top: 1px solid var(--rule-dark);
}

.next-steps li {
  display: flex;
  align-items: baseline;
  gap: 0.85rem;
  color: var(--text-on-dark-soft);
  font-size: 0.95rem;
}

.next-steps span {
  flex: none;
  width: 1.6rem;
  color: var(--sun);
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
}

.contact-form {
  display: grid;
  gap: 1.05rem;
  padding: clamp(1.3rem, 3vw, 2.1rem);
  background: var(--cream);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.field {
  display: grid;
  gap: 0.4rem;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.05rem;
}

label {
  color: var(--earth-deep);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

input,
select,
textarea {
  width: 100%;
  min-height: 2.9rem;
  padding: 0.7rem 0.85rem;
  background: #fff;
  border: 1px solid rgba(107, 78, 46, 0.28);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 0.95rem;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

textarea {
  resize: vertical;
  min-height: 6rem;
}

input::placeholder {
  color: rgba(107, 87, 66, 0.55);
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--clay-hot);
  box-shadow: 0 0 0 3px rgba(194, 112, 60, 0.18);
}

.field.has-error input,
.field.has-error textarea,
.field.has-error select {
  border-color: #b23c2a;
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.45;
  text-transform: none;
}

.consent input {
  width: 1.05rem;
  min-height: 1.05rem;
  margin-top: 0.2rem;
  flex: none;
}

.consent a {
  color: var(--earth-deep);
}

.hp-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.legal {
  max-width: 42rem;
  margin: 0 auto;
  padding: clamp(7rem, 14vw, 9rem) var(--shell) clamp(3rem, 8vw, 5rem);
}

.legal h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
}

.legal p,
.legal li {
  color: var(--text);
  font-size: 1rem;
  line-height: 1.7;
}

.legal ul {
  padding-left: 1.2rem;
  list-style: disc;
}

.text-button,
.contact-form .text-button {
  display: inline;
  min-height: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--earth-deep);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.contact-form .text-button:hover {
  background: none;
  border-color: transparent;
  color: var(--clay-hot);
  transform: none;
}

.legal .contact-form {
  margin-top: 1.5rem;
}

.legal .button {
  margin-right: 0.75rem;
}

.field-error {
  min-height: 0;
  color: #a3361f;
  font-size: 0.78rem;
  font-weight: 600;
}

.contact-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.15rem;
  padding: 0.95rem 1.5rem;
  background: var(--earth-deep);
  border: 1px solid var(--earth-deep);
  border-radius: var(--radius);
  color: var(--cream);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 200ms ease, transform 200ms ease;
}

.contact-form button:hover {
  background: var(--clay-hot);
  border-color: var(--clay-hot);
  transform: translateY(-2px);
}

.form-status {
  color: var(--sage);
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.5;
}

.form-status.is-error {
  color: #a3361f;
}

.form-status:focus {
  outline: 2px solid var(--clay-hot);
  outline-offset: 4px;
}

.form-status-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
  padding: 0.6rem 1.1rem;
  background: #25d366;
  color: #fff;
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.9rem;
  transition: background 200ms ease;
}

.form-status-whatsapp:hover {
  background: #1eb956;
}

.anchor-alias {
  display: block;
  position: relative;
  top: -90px;
  visibility: hidden;
  height: 0;
}

/* ---------- Footer ---------- */
.site-footer {
  padding: clamp(2.2rem, 5vw, 3.4rem) var(--shell) clamp(1.6rem, 3vw, 2.4rem);
  background: var(--basalt);
  color: var(--text-on-dark);
}

.footer-bands {
  display: block;
  width: 3.25rem;
  height: 3.25rem;
  margin-bottom: clamp(1.4rem, 3vw, 2.2rem);
}

.footer-bands img {
  width: 100%;
  height: 100%;
  max-width: 3.25rem;
  max-height: 3.25rem;
  object-fit: contain;
  display: block;
}

.footer-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-mark {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.4rem;
  font-size: 0.85rem;
  font-weight: 600;
}

.site-footer nav a {
  color: var(--text-on-dark-soft);
  transition: color 180ms ease;
}

.site-footer nav a:hover {
  color: var(--sun);
}

.footer-line {
  margin-top: 1.2rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--rule-dark);
  color: rgba(246, 239, 228, 0.55);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

/* ---------- Reveals ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 800ms cubic-bezier(0.22, 0.61, 0.36, 1), transform 800ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.tile.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 700ms cubic-bezier(0.22, 0.61, 0.36, 1), transform 700ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.tile.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Values strip ---------- */
.values-strip {
  margin-top: clamp(1.8rem, 3.5vw, 2.8rem);
  padding-top: 1.4rem;
  border-top: 1px solid var(--rule);
}

.values-title {
  display: block;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--clay);
  margin-bottom: 0.5rem;
}

.values-items {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.8rem;
  color: var(--earth-deep);
  font-weight: 600;
  font-size: 0.92rem;
  line-height: 1.6;
}

.values-items span:not(:last-child)::after {
  content: "·";
  margin-left: 0.8rem;
  color: var(--clay-hot);
}

/* ---------- Problems We Solve ---------- */
.problems-section {
  background: var(--cream);
}

.problems-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
}

.problem-card {
  display: flex;
  flex-direction: column;
  padding: 1.6rem 1.6rem;
  background: var(--sand);
  border-radius: var(--radius);
  border-left: 4px solid var(--clay);
  transition: transform 220ms ease, box-shadow 220ms ease, background 220ms ease;
}

.problem-card:hover {
  background: #fff;
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.problem-card:nth-child(2n) {
  border-left-color: var(--deep-earth);
}
.problem-card:nth-child(3n) {
  border-left-color: var(--sage);
}
.problem-card:nth-child(4n) {
  border-left-color: var(--sun);
}

.problem-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--clay-hot);
  margin-bottom: 0.4rem;
}

.problem-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--earth-deep);
  margin-bottom: 0.65rem;
  line-height: 1.3;
}

.problem-answer {
  color: var(--text);
  font-size: 0.94rem;
  line-height: 1.62;
}

/* ---------- Why Rammed Earth Benefits ---------- */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.4rem);
  margin-top: 2.2rem;
}

.benefit-card {
  padding: 1.6rem 1.5rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--rule-dark);
  border-radius: var(--radius);
  transition: transform 220ms ease, background 220ms ease;
}

.benefit-card:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-3px);
}

.benefit-card h3 {
  font-family: var(--font-display);
  font-size: 1.18rem;
  color: var(--sun);
  margin-bottom: 0.6rem;
}

.benefit-card p {
  color: var(--text-on-dark-soft);
  font-size: 0.91rem;
  line-height: 1.62;
}

/* ---------- Solutions 8 Cards & Details ---------- */
.solutions-grid-8 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(0.7rem, 1.4vw, 1.1rem);
}

.solution-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 15rem;
  padding: 1.5rem 1.35rem 1.6rem;
  background: var(--sand);
  border-radius: var(--radius);
  transition: transform 260ms ease, box-shadow 260ms ease, background 260ms ease;
}

.solution-card:hover {
  background: var(--cream);
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.solution-card .card-index {
  margin-bottom: 0.8rem;
  font-size: clamp(2.4rem, 4vw, 3.2rem);
  line-height: 1;
}

.solution-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.solution-card p {
  color: var(--text-soft);
  font-size: 0.88rem;
  line-height: 1.58;
}

.solution-details {
  margin-top: clamp(2.8rem, 6vw, 4.5rem);
  padding-top: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid var(--rule);
}

.detail-block-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.2rem, 2.4vw, 2rem);
  margin-top: 1.8rem;
}

.detail-block {
  padding: 2rem 1.8rem;
  background: var(--sand);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(107, 78, 46, 0.12);
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.detail-block-full {
  grid-column: 1 / -1;
}

.detail-tag {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--clay);
}

.detail-block h4 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--earth-deep);
  line-height: 1.25;
  margin: 0;
}

.detail-lead {
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.65;
  margin: 0;
}

.detail-features {
  display: grid;
  gap: 0.65rem;
  margin-top: 0.4rem;
}

.detail-feature {
  padding: 0.85rem 1.1rem;
  background: var(--cream);
  border-radius: var(--radius);
  font-size: 0.9rem;
  line-height: 1.55;
  border-left: 3px solid var(--clay-hot);
  color: var(--text);
}

.detail-feature strong {
  color: var(--earth-deep);
}

.detail-checklist {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  padding: 0.9rem 1.1rem;
  background: var(--cream);
  border-radius: var(--radius);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--earth-deep);
}

.detail-checklist span:not(:last-child)::after {
  content: "·";
  margin-left: 1rem;
  color: var(--clay);
}

/* ---------- Who We Build For ---------- */
.audiences-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.8rem);
}

.audience-card {
  display: flex;
  flex-direction: column;
  padding: 2.2rem 1.8rem;
  background: var(--sand);
  border-radius: var(--radius-lg);
  border-top: 5px solid var(--deep-earth);
  transition: transform 240ms ease, box-shadow 240ms ease, background 240ms ease;
}

.audience-card:nth-child(2) { border-top-color: var(--clay); }
.audience-card:nth-child(3) { border-top-color: var(--sage); }

.audience-card:hover {
  background: var(--cream);
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.audience-badge {
  display: block;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--clay);
  margin-bottom: 0.8rem;
}

.audience-card h3 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  margin-bottom: 0.8rem;
  color: var(--earth-deep);
}

.audience-card p {
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* ---------- Finance ---------- */
.finance-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(0.8rem, 1.6vw, 1.4rem);
}

.finance-card {
  display: flex;
  flex-direction: column;
  padding: 1.8rem 1.5rem;
  background: var(--sand);
  border-radius: var(--radius);
  border-top: 4px solid var(--clay-hot);
  transition: transform 220ms ease, box-shadow 220ms ease, background 220ms ease;
}

.finance-card:hover {
  background: var(--cream);
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.finance-card:nth-child(2) { border-top-color: var(--deep-earth); }
.finance-card:nth-child(3) { border-top-color: var(--sage); }
.finance-card:nth-child(4) { border-top-color: var(--sun); }

.finance-badge {
  display: inline-block;
  align-self: flex-start;
  padding: 0.25rem 0.65rem;
  background: rgba(107, 78, 46, 0.12);
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--earth-deep);
  margin-bottom: 0.9rem;
}

.finance-card h3 {
  font-family: var(--font-display);
  font-size: 1.22rem;
  margin-bottom: 0.6rem;
}

.finance-card p {
  color: var(--text-soft);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* ---------- Heritage & Ghana ---------- */
.heritage-timeline {
  display: grid;
  gap: 0.9rem;
  margin-top: 2rem;
}

.timeline-row {
  display: grid;
  grid-template-columns: 12rem 14rem 1fr;
  gap: 1.2rem;
  align-items: baseline;
  padding: 1.1rem 1.4rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--rule-dark);
  border-radius: var(--radius);
  transition: background 200ms ease;
}

.timeline-row:hover {
  background: rgba(255, 255, 255, 0.08);
}

.timeline-period {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sun);
}

.timeline-where {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--cream);
}

.timeline-desc {
  color: var(--text-on-dark-soft);
  font-size: 0.92rem;
  line-height: 1.55;
}

.ghana-section {
  margin-top: clamp(3rem, 6vw, 4.5rem);
  padding-top: clamp(2.5rem, 5vw, 3.5rem);
  border-top: 1px solid var(--rule-dark);
}

.ghana-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.9rem, 1.8vw, 1.4rem);
  margin-top: 2rem;
}

.ghana-card {
  padding: 1.5rem 1.4rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--rule-dark);
  border-left: 4px solid var(--sun);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  transition: background 200ms ease, transform 200ms ease;
}

.ghana-card:hover {
  background: rgba(255, 255, 255, 0.09);
  transform: translateY(-2px);
}

.ghana-place {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--cream);
  margin-bottom: 0.25rem;
}

.ghana-region {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sun);
}

/* ---------- Closing Summary ---------- */
.summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.6rem);
  margin-top: 2.5rem;
}

.summary-card {
  padding: 1.6rem 1.4rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--rule-dark);
  border-radius: var(--radius);
  transition: transform 220ms ease;
}

.summary-card:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.09);
}

.summary-title {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sun);
  margin-bottom: 0.5rem;
}

.summary-desc {
  color: var(--cream);
  font-size: 0.94rem;
  line-height: 1.55;
}

/* ---------- Contact Direct ---------- */
.contact-direct {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule-dark);
  display: grid;
  gap: 1rem;
}

.contact-direct-item {
  display: flex;
  flex-direction: column;
}

.contact-direct-label {
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sun);
  margin-bottom: 0.2rem;
}

.contact-direct-value {
  color: var(--text-on-dark);
  font-size: 0.94rem;
  font-weight: 500;
}

.contact-direct-value a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.contact-direct-value a:hover {
  color: var(--sun);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px) {
  .foundation,
  .material,
  .why,
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .material-media {
    order: 2;
    max-width: 30rem;
  }

  .material-media img {
    aspect-ratio: 5 / 4;
  }

  .why-media {
    max-width: 28rem;
  }

  .systems-grid,
  .process-track,
  .solutions-grid-8,
  .finance-grid,
  .ghana-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .detail-block-grid,
  .audiences-grid,
  .benefits-grid,
  .summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .timeline-row {
    grid-template-columns: 10rem 12rem 1fr;
  }

  .section-head {
    grid-template-columns: 1fr;
  }

  .section-head :is(h1, h2),
  .section-head .eyebrow,
  .section-head .section-note {
    grid-column: 1;
    grid-row: auto;
  }

  .section-head .section-note {
    margin-top: 0.9rem;
  }

  .system-card {
    min-height: 16rem;
  }

  .tile,
  .tile-wide,
  .tile-tall {
    grid-column: span 6;
    aspect-ratio: 4 / 3;
  }
}

@media (max-width: 1100px) {
  .site-header {
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.55rem;
    row-gap: 0;
    padding-top: 0.7rem;
    padding-bottom: 0.7rem;
  }

  .site-header.is-open {
    flex-wrap: wrap;
  }

  .brand {
    order: 1;
    flex: 0 0 auto;
    min-width: 0;
  }

  .brand-word {
    min-width: 0;
  }

  .brand-word small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .nav-cta {
    order: 2;
    margin-left: auto;
  }

  .nav-toggle {
    display: inline-flex;
    order: 3;
    margin-left: 0;
  }

  .site-header.is-open {
    color: var(--earth-deep);
    background: rgba(253, 251, 247, 0.97);
    backdrop-filter: blur(14px) saturate(140%);
    box-shadow: 0 1px 0 var(--rule), 0 12px 34px rgba(63, 44, 25, 0.08);
  }

  .site-header.is-open .nav-cta {
    border-color: var(--earth-deep);
    background: var(--earth-deep);
    color: var(--cream);
  }

  .site-nav {
    display: none;
    order: 4;
    flex: 1 1 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    min-width: 0;
    margin-top: 0.75rem;
    padding-top: 0.15rem;
    overflow: visible;
    font-size: 0.95rem;
  }

  .site-header.is-open .site-nav {
    display: flex;
  }

  .site-nav a {
    padding: 0.8rem 0;
    border-top: 1px solid var(--rule);
  }

  .site-nav a::after {
    display: none;
  }
}

@media (max-width: 520px) {
  .brand-word small {
    display: none;
  }

  .nav-cta {
    padding: 0.5rem 0.7rem;
    font-size: 0.74rem;
  }
}

@media (max-width: 360px) {
  .site-header .nav-cta {
    display: none;
  }
}

@media (max-width: 900px) {
  .hero {
    padding-top: clamp(8rem, 18vh, 11rem);
  }

  .strata-rail {
    grid-template-columns: repeat(2, 1fr);
  }

  .strata-rail-3 {
    grid-template-columns: 1fr;
  }

  .strata-rail-3 .strata:not(:first-child) {
    padding-left: 0;
  }

  .strata {
    padding-bottom: 1.2rem;
  }

  .strata:nth-child(2) {
    border-right: 0;
  }

  .timeline-row {
    grid-template-columns: 1fr;
    gap: 0.4rem;
  }
}

@media (max-width: 640px) {
  h1 {
    font-size: clamp(2.15rem, 10vw, 3rem);
  }

  .hero-media img {
    object-position: 58% 42%;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }

  .strata-rail,
  .strata-rail-3 {
    grid-template-columns: 1fr;
  }

  .strata,
  .strata:not(:first-child) {
    padding: 0.9rem 0 1rem;
    border-right: 0;
    border-bottom: 1px solid rgba(246, 239, 228, 0.14);
  }

  .systems-grid,
  .process-track,
  .field-row,
  .problems-grid,
  .benefits-grid,
  .solutions-grid-8,
  .detail-block-grid,
  .audiences-grid,
  .finance-grid,
  .ghana-grid,
  .summary-grid {
    grid-template-columns: 1fr;
  }

  .tile,
  .tile-wide,
  .tile-tall {
    grid-column: span 12;
    aspect-ratio: 5 / 4;
  }

  .spec-list > div {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .step-rail {
    right: 0;
    background: linear-gradient(90deg, var(--clay) 0 40%, rgba(107, 78, 46, 0.16) 40% 100%);
  }

  .footer-row {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal,
  .tile.reveal {
    opacity: 1;
    transform: none;
    clip-path: none;
  }
}

/* ---------- Standalone content pages ---------- */
.inner-page main {
  padding-top: 5rem;
}

.inner-page h1 {
  font-size: clamp(1.9rem, 4.6vw, 3.65rem);
  line-height: 0.98;
}

.inner-page .site-header {
  color: var(--earth-deep);
  background: var(--cream);
  box-shadow: 0 1px 0 var(--rule);
}

.inner-page .nav-cta {
  border-color: var(--earth-deep);
  background: var(--earth-deep);
  color: var(--cream);
}

.site-nav a[aria-current="page"] {
  color: var(--clay);
}

.site-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}
