/* ==========================================================================
   NUSLUME™ — Off-Grid & Hybrid Energy Solution Platform
   Design system aligned to Nusfun Pty Ltd (nusfun.com)
   Corporate teal primary + restrained NUSLUME energy accent
   ========================================================================== */

/* ---------- 1. Tokens ---------------------------------------------------- */
:root {
  /* Nusfun corporate palette */
  --brand:          #0f766e;
  --brand-600:      #0d6a63;
  --brand-700:      #0b5b55;
  --brand-800:      #0a4a45;
  --brand-900:      #073b37;
  --brand-tint:     #eef8f6;
  --brand-tint-2:   #dcefec;

  /* NUSLUME accent — taken from the brand graphics, secondary use only */
  --accent:         #1a4f8f;
  --accent-deep:    #0e2f5e;
  --accent-tint:    #eff4fb;
  --accent-line:    #cfdcee;

  /* Neutrals */
  --ink:            #0f1e26;
  --ink-2:          #253742;
  --body:           #4a5b66;
  --muted:          #6b7c87;
  --line:           #e3e9ec;
  --line-strong:    #cfd8dd;
  --surface:        #ffffff;
  --surface-alt:    #f6f9f9;
  --surface-deep:   #0b3b38;

  /* Typography */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
               "Liberation Mono", monospace;

  /* Layout */
  --container: 1180px;
  --gutter: 24px;
  --header-h: 76px;

  /* Shape */
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 14px;

  /* Elevation — restrained */
  --shadow-sm: 0 1px 2px rgba(15, 30, 38, .06);
  --shadow:    0 2px 10px rgba(15, 30, 38, .07);
  --shadow-md: 0 8px 26px rgba(15, 30, 38, .10);
}

/* ---------- 2. Reset & base --------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--body);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-700); text-decoration: underline; }

h1, h2, h3, h4 {
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.018em;
  line-height: 1.2;
  margin: 0 0 .6em;
}

h1 { font-size: clamp(2.05rem, 1.35rem + 2.6vw, 3.25rem); letter-spacing: -0.028em; }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.3rem); }
h3 { font-size: clamp(1.12rem, 1.03rem + .35vw, 1.3rem); line-height: 1.3; }
h4 { font-size: 1.02rem; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

ul { margin: 0 0 1.1em; padding-left: 1.15em; }
li { margin-bottom: .35em; }

strong { color: var(--ink-2); font-weight: 650; }

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

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--brand); color: #fff; padding: 12px 18px;
  border-radius: 0 0 var(--radius-sm) 0; font-weight: 600;
}
.skip-link:focus { left: 0; text-decoration: none; }

.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;
}

/* ---------- 3. Layout primitives ---------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section { padding: 88px 0; }
.section--tight { padding: 64px 0; }
.section--alt { background: var(--surface-alt); }
.section--line { border-top: 1px solid var(--line); }

.section-head { max-width: 760px; margin-bottom: 44px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }

.eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 14px;
}
.eyebrow--accent { color: var(--accent); }

.lede { font-size: 1.08rem; color: var(--body); }

.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* ---------- 4. Buttons --------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 24px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: .97rem;
  font-weight: 600;
  letter-spacing: .005em;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}
.btn:hover { text-decoration: none; }

.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-700); color: #fff; }

.btn--secondary {
  background: #fff;
  color: var(--brand-800);
  border-color: var(--line-strong);
}
.btn--secondary:hover { border-color: var(--brand); color: var(--brand-700); background: var(--brand-tint); }

.btn--ghost-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, .45);
}
.btn--ghost-light:hover { background: rgba(255, 255, 255, .12); color: #fff; border-color: #fff; }

.btn--light { background: #fff; color: var(--brand-800); }
.btn--light:hover { background: var(--brand-tint); color: var(--brand-900); }

.btn--sm { min-height: 40px; padding: 9px 18px; font-size: .9rem; }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

.link-arrow { font-weight: 600; }
.link-arrow::after { content: " \203A"; font-weight: 400; }

/* ---------- 5. Header ---------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header.is-scrolled { box-shadow: var(--shadow-sm); }

.header-inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Brand lockup: NUSFUN parent → NUSLUME platform */
.brand-lockup { display: flex; align-items: center; gap: 14px; min-width: 0; }

.brand-parent {
  display: inline-flex;
  align-items: center;
  padding: 2px 2px;
  border-radius: 4px;
}
.brand-parent:hover { text-decoration: none; opacity: .82; }
.brand-parent img { height: 30px; width: auto; }

.brand-divider {
  width: 1px;
  height: 34px;
  background: var(--line-strong);
  flex: 0 0 auto;
}

.brand-platform { display: block; min-width: 0; }
.brand-platform:hover { text-decoration: none; }
.brand-platform .brand-name {
  display: block;
  font-size: 1.16rem;
  font-weight: 750;
  letter-spacing: .012em;
  color: var(--ink);
  line-height: 1.15;
}
.brand-platform .brand-name sup { font-size: .5em; top: -.7em; position: relative; font-weight: 600; }
.brand-platform .brand-descriptor {
  display: block;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--muted);
  line-height: 1.3;
  margin-top: 1px;
}

/* Navigation */
.site-nav {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: auto;
}
.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-list a {
  display: block;
  padding: 9px 11px;
  border-radius: var(--radius-sm);
  font-size: .93rem;
  white-space: nowrap;
  font-weight: 550;
  color: var(--ink-2);
}
.nav-list a:hover { background: var(--brand-tint); color: var(--brand-800); text-decoration: none; }
.nav-list a.is-active { color: var(--brand); }

.header-actions { display: flex; align-items: center; gap: 12px; }

.header-parent-link {
  font-size: .82rem;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}
.header-parent-link:hover { color: var(--brand); }

/* Hide the secondary parent-site link when the header gets tight;
   it remains in the mobile menu and in the footer. */
@media (max-width: 1180px) and (min-width: 961px) {
  .header-parent-link { display: none; }
}

/* Mobile toggle */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  margin-left: auto;
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.nav-toggle span {
  position: relative;
  display: block;
  width: 18px; height: 2px;
  background: var(--ink);
  transition: background-color .15s ease;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: ""; position: absolute; left: 0;
  width: 18px; height: 2px; background: var(--ink);
  transition: transform .2s ease, top .2s ease;
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after  { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after  { top: 0; transform: rotate(-45deg); }

/* ---------- 6. Hero ------------------------------------------------------ */
.hero {
  position: relative;
  background:
    linear-gradient(180deg, #0b3b38 0%, #0a4a45 55%, #0f5f59 100%);
  color: #eaf3f2;
  padding: 92px 0 84px;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(120% 90% at 78% 18%, #000 0%, transparent 72%);
  -webkit-mask-image: radial-gradient(120% 90% at 78% 18%, #000 0%, transparent 72%);
  pointer-events: none;
}
.hero > .container { position: relative; z-index: 1; }
.hero-inner { max-width: 780px; }

.platform-tag {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 14px 6px 10px;
  margin-bottom: 22px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 999px;
  background: rgba(255,255,255,.07);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: #d7ebe8;
}
.platform-tag .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent); flex: 0 0 auto;
}
.platform-tag a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }

.hero h1 { color: #fff; margin-bottom: .35em; }
.hero .hero-brand {
  display: block;
  font-size: .42em;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #8fd0c8;
  margin-bottom: .5em;
}
.hero-tagline {
  font-size: clamp(1.12rem, 1rem + .55vw, 1.42rem);
  font-weight: 600;
  color: #c9e6e2;
  margin-bottom: .9em;
}
.hero p { color: #b9d6d2; font-size: 1.05rem; max-width: 66ch; }
.hero .btn-row { margin-top: 30px; }

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin-top: 40px;
  padding-top: 26px;
  border-top: 1px solid rgba(255,255,255,.16);
  font-size: .88rem;
  color: #9fc4bf;
}
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta span::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%;
  background: rgba(255,255,255,.4);
}

/* ---------- 7. Cards ----------------------------------------------------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.card:hover { border-color: var(--line-strong); box-shadow: var(--shadow); }
.card h3 { margin-bottom: .45em; }
.card p { color: var(--body); font-size: .97rem; margin-bottom: 0; }

.card__index {
  display: block;
  font-family: var(--font-mono);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .08em;
  color: var(--brand);
  margin-bottom: 12px;
}

.card__icon {
  width: 40px; height: 40px;
  margin-bottom: 16px;
  color: var(--brand);
}
.card__icon svg { width: 100%; height: 100%; stroke: currentColor; fill: none; stroke-width: 1.5; }

.card--flat { background: var(--surface-alt); border-color: transparent; }
.card--flat:hover { border-color: var(--line); box-shadow: none; }

/* Statement band */
.statement {
  border-left: 3px solid var(--accent);
  background: var(--accent-tint);
  padding: 22px 26px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin-top: 34px;
}
.statement p {
  margin: 0;
  font-size: 1.06rem;
  font-weight: 650;
  color: var(--ink);
  letter-spacing: -.01em;
}

/* ---------- 8. Positioning split ---------------------------------------- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}
.split--narrow { gap: 44px; }

.fact-list { list-style: none; margin: 0; padding: 0; }
.fact-list li {
  position: relative;
  padding: 14px 0 14px 30px;
  border-bottom: 1px solid var(--line);
  font-size: .97rem;
  margin: 0;
}
.fact-list li:last-child { border-bottom: 0; }
.fact-list li::before {
  content: "";
  position: absolute;
  left: 4px; top: 24px;
  width: 8px; height: 8px;
  border-radius: 2px;
  background: var(--brand);
}

/* ---------- 9. Brand & architecture figures ------------------------------ */
.figure {
  margin: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--shadow-sm);
}
.figure img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius-sm);
}
.figure--concept { max-width: 1100px; margin: 0 auto; }
.figure--arch { max-width: 1250px; margin: 0 auto; }

.figure a { display: block; border-radius: var(--radius-sm); }
.figure a:hover { text-decoration: none; }

.figure figcaption {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 20px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: .86rem;
  color: var(--muted);
}
.figure figcaption .expand { font-weight: 600; white-space: nowrap; }

.architecture { background: var(--surface-alt); }

.note {
  margin-top: 22px;
  font-size: .92rem;
  color: var(--muted);
}
.note--rule {
  max-width: 78ch;
  padding-left: 16px;
  border-left: 3px solid var(--accent-line);
}

.arch-detail {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 34px;
}
.arch-detail .card { padding: 20px; }
.arch-detail h3 { font-size: 1rem; }
.arch-detail p { font-size: .92rem; }

/* ---------- 10. Process (How we work) ----------------------------------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
}
.step {
  padding: 28px 26px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.step:nth-child(3n) { border-right: 0; }
.step:nth-child(n+4) { border-bottom: 0; }
.step__num {
  display: block;
  font-family: var(--font-mono);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .1em;
  color: var(--brand);
  margin-bottom: 12px;
}
.step h3 { font-size: 1.05rem; margin-bottom: .4em; }
.step p { font-size: .93rem; margin: 0; }

/* ---------- 11. Bilateral collaboration --------------------------------- */
.collab-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.collab-card {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 3px solid var(--brand);
  border-radius: var(--radius);
  padding: 30px;
}
.collab-card--cn { border-top-color: var(--accent); }
.collab-card__role {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
  display: block;
}
.collab-card h3 { font-size: 1.16rem; margin-bottom: .3em; }
.collab-card__sub { font-size: .95rem; color: var(--body); margin-bottom: 20px; }
.collab-card ul {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 18px;
}
.collab-card li {
  position: relative;
  padding-left: 18px;
  font-size: .93rem;
  margin: 0;
}
.collab-card li::before {
  content: "";
  position: absolute; left: 0; top: .62em;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--line-strong);
}

.bridge {
  margin-top: 24px;
  padding: 22px 26px;
  background: var(--brand-tint);
  border-radius: var(--radius);
  text-align: center;
}
.bridge p { margin: 0; color: var(--brand-900); font-weight: 600; font-size: 1.02rem; }

/* ---------- 12. Hierarchy ladder ---------------------------------------- */
.ladder { display: grid; gap: 12px; margin-top: 8px; }
.ladder__row {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 22px;
  align-items: baseline;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}
.ladder__row strong {
  font-size: 1.02rem;
  letter-spacing: .01em;
  color: var(--ink);
}
.ladder__row span { font-size: .95rem; color: var(--body); }
.ladder__row--lead { background: var(--brand-tint); border-color: var(--brand-tint-2); }

/* ---------- 13. Resources ------------------------------------------------ */
.resource-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.resource {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}
.resource__icon { color: var(--muted); flex: 0 0 auto; margin-top: 2px; }
.resource__icon svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.6; }
.resource h3 { font-size: 1rem; margin-bottom: .25em; }
.resource p { font-size: .9rem; margin: 0 0 8px; }
.badge {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--surface-alt);
  border: 1px solid var(--line);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Multi-page solution-site additions */
.card-link { margin-top: 18px !important; }
.card-link a { font-weight: 650; }
.resource { min-height: 190px; }
.resource__icon {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 42px; height: 28px; padding: 0 8px;
  border-radius: 4px; background: var(--accent-tint); color: var(--accent);
  font-family: var(--font-mono); font-size: .72rem; font-weight: 700;
}
.download-link { display: inline-block; margin-top: 8px; font-weight: 650; }
.check-list { columns: 2; column-gap: 48px; max-width: 920px; }
.check-list li { break-inside: avoid; margin: 0 0 12px; }

.project-form { max-width: 940px; }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px 24px; }
.project-form label { display: grid; gap: 7px; color: var(--ink-2); font-weight: 650; font-size: .94rem; }
.project-form label span { color: var(--muted); font-weight: 450; }
.project-form input,.project-form select,.project-form textarea {
  width: 100%; min-height: 48px; padding: 11px 13px; border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm); background: #fff; color: var(--ink); font: inherit;
}
.project-form textarea { resize: vertical; min-height: 150px; }
.project-form input:focus,.project-form select:focus,.project-form textarea:focus { outline: 3px solid rgba(15,118,110,.18); border-color: var(--brand); }
.form-wide { grid-column: 1 / -1; }
.form-note { margin: 22px 0; color: var(--muted); font-size: .9rem; }
.form-status { margin-top: 14px; color: var(--brand-800); font-weight: 600; }

@media (max-width: 720px) {
  .form-grid { grid-template-columns: 1fr; }
  .form-wide { grid-column: auto; }
  .check-list { columns: 1; }
  .resource { min-height: 0; }
}

/* ---------- 14. Closing CTA --------------------------------------------- */
.cta-band {
  background: var(--surface-deep);
  color: #d9eae7;
  padding: 76px 0;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #b5d2ce; max-width: 62ch; }
.cta-band .eyebrow { color: #8fd0c8; }
.cta-band .btn-row { margin-top: 28px; }
.cta-band a:not(.btn) { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 15. Footer --------------------------------------------------- */
.site-footer {
  background: #fff;
  border-top: 1px solid var(--line);
  padding: 60px 0 32px;
  font-size: .93rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 40px;
}
.footer-brand img { height: 28px; margin-bottom: 16px; }
.footer-brand p { font-size: .92rem; color: var(--body); }
.footer-platform {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.footer-platform strong { display: block; color: var(--ink); font-size: 1rem; }
.footer-platform span { color: var(--muted); font-size: .88rem; }

.site-footer h2, .footer-col-title {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 14px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 9px; }
.site-footer a { color: var(--body); }
.site-footer a:hover { color: var(--brand); }

.footer-contact dl { margin: 0; }
.footer-contact dt {
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--muted);
  margin-top: 12px;
}
.footer-contact dt:first-child { margin-top: 0; }
.footer-contact dd { margin: 2px 0 0; color: var(--ink-2); }

.footer-legal {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  justify-content: space-between;
  align-items: flex-start;
}
.footer-legal p { margin: 0; font-size: .86rem; color: var(--muted); }
.footer-disclaimer {
  flex-basis: 100%;
  margin-top: 6px;
  font-size: .82rem;
  color: var(--muted);
  line-height: 1.6;
  max-width: 95ch;
}

/* ---------- 16. Sub-pages ------------------------------------------------ */
.page-head {
  background: var(--surface-alt);
  border-bottom: 1px solid var(--line);
  padding: 56px 0 46px;
}
.page-head h1 { font-size: clamp(1.8rem, 1.4rem + 1.6vw, 2.5rem); margin-bottom: .3em; }
.page-head p { max-width: 70ch; margin: 0; }

.prose { max-width: 74ch; }
.prose h2 { margin-top: 1.8em; font-size: 1.35rem; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.5em; font-size: 1.08rem; }
.prose ul { padding-left: 1.2em; }

/* ---------- 17. Responsive ---------------------------------------------- */
@media (max-width: 1080px) {
  .arch-detail { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1.2fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 960px) {
  :root { --header-h: 66px; }

  .nav-toggle { display: inline-flex; }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }
  .site-nav.is-open { display: block; }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gutter) 20px;
  }
  .nav-list li { border-bottom: 1px solid var(--line); }
  .nav-list a { padding: 15px 4px; border-radius: 0; font-size: 1rem; }

  .header-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 18px var(--gutter) 22px;
  }
  .header-actions .btn { width: 100%; }
  .header-parent-link { text-align: center; }

  .split, .collab-grid { grid-template-columns: minmax(0, 1fr); gap: 34px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .step:nth-child(3n) { border-right: 1px solid var(--line); }
  .step:nth-child(2n) { border-right: 0; }
  .step:nth-child(n+4) { border-bottom: 1px solid var(--line); }
  .step:nth-child(n+5) { border-bottom: 0; }

  .resource-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ladder__row { grid-template-columns: minmax(0, 1fr); gap: 6px; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .section { padding: 56px 0; }
  .section--tight { padding: 44px 0; }
  .section-head { margin-bottom: 32px; }
  .hero { padding: 60px 0 56px; }
  .cta-band { padding: 56px 0; }

  .grid-2, .grid-3, .arch-detail, .resource-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .step { border-right: 0 !important; border-bottom: 1px solid var(--line) !important; }
  .step:last-child { border-bottom: 0 !important; }

  .collab-card ul { grid-template-columns: minmax(0, 1fr); }

  .brand-platform .brand-descriptor { display: none; }
  .brand-divider { height: 28px; }
  .brand-parent img { height: 24px; }
  .brand-platform .brand-name { font-size: 1.02rem; }

  .figure { padding: 10px; }
  .figure figcaption { margin-top: 12px; padding-top: 10px; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .btn-row .btn { width: 100%; }
  .hero .btn-row .btn { width: 100%; }
}

@media (max-width: 380px) {
  .brand-platform .brand-name { font-size: .95rem; }
}

/* ---------- 18. Print ---------------------------------------------------- */
@media print {
  .site-header, .nav-toggle, .cta-band .btn-row { display: none; }
  .hero, .cta-band { background: #fff; color: #000; }
  .hero h1, .cta-band h2 { color: #000; }
}
