/* ==========================================================================
   LONO — Healthspan Infrastructure for Places
   styles.css
   Palette: forest / brass / sage / warm paper
   Type: Fraunces (display serif) + Hanken Grotesk (text/UI), self-hosted
   Signature: a continuous brass "protocol spine" threading numbered sections
   ========================================================================== */

/* ---------- Fonts (self-hosted, latin + latin-ext) ----------------------- */
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url("../fonts/fraunces-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191,
    U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url("../fonts/fraunces-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Hanken Grotesk";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/hanken-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191,
    U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Hanken Grotesk";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/hanken-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Tokens ------------------------------------------------------- */
:root {
  --forest: #15231b;
  --forest-2: #1f3328;
  --forest-3: #2a4234;
  --ink: #25302a;
  --ink-soft: #44504a;
  --paper: #f3eee4;
  --paper-2: #ece5d7;
  --paper-3: #e2d9c8;
  --line: #d6cbb6;
  --line-soft: #e3dac9;
  --brass: #9a7637;
  --brass-deep: #836229;
  --brass-2: #c1a064; /* lighter brass for dark backgrounds */
  --sage: #7c8c73;
  --sage-deep: #5f6e58;
  --muted: #6b6357;
  --muted-light: #a39a8a; /* captions on dark */

  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia,
    serif;
  --sans: "Hanken Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    system-ui, sans-serif;

  --gutter: clamp(20px, 5vw, 56px);
  --maxw: 1200px;
  --rail-w: 0px; /* expanded at desktop */
  --radius: 3px;

  --shadow-card: 0 1px 0 var(--line), 0 18px 40px -28px rgba(21, 35, 27, 0.35);

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

/* ---------- Reset / base ------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.075rem);
  line-height: 1.62;
  font-weight: 400;
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
}
h1,
h2,
h3,
h4 {
  font-family: var(--serif);
  font-weight: 360;
  line-height: 1.14;
  letter-spacing: 0;
  margin: 0;
  text-wrap: balance;
}
p {
  margin: 0 0 1em;
  text-wrap: pretty;
}
:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
  border-radius: 2px;
}

/* skip link */
.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 1000;
  background: var(--forest);
  color: var(--paper);
  padding: 10px 16px;
  border-radius: var(--radius);
  transition: top 0.2s var(--ease);
}
.skip:focus {
  top: 12px;
}

/* ---------- Layout helpers ---------------------------------------------- */
.wrap {
  width: min(100% - (var(--gutter) * 2), var(--maxw));
  margin-inline: auto;
}
.section {
  padding-block: clamp(56px, 8vw, 116px);
  position: relative;
}
.eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brass);
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  margin: 0 0 1.1rem;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--brass);
  flex: none;
}
.lead {
  font-size: clamp(1.12rem, 1rem + 0.6vw, 1.45rem);
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 44ch;
}

/* ---------- Buttons ------------------------------------------------------ */
.btn {
  --bg: var(--brass);
  --fg: #fff7ea;
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  line-height: 1;
  padding: 0.95em 1.5em;
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--fg);
  border: 1px solid var(--bg);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
}
.btn:hover {
  background: var(--brass-deep);
  border-color: var(--brass-deep);
  transform: translateY(-1px);
}
.btn .arrow {
  transition: transform 0.25s var(--ease);
}
.btn:hover .arrow {
  transform: translateX(3px);
}
.btn--ghost {
  --bg: transparent;
  --fg: var(--ink);
  border-color: var(--line);
}
.btn--ghost:hover {
  background: var(--paper-2);
  border-color: var(--brass);
  color: var(--ink);
}
.btn--on-dark {
  --fg: #fff7ea;
}
.btn--ghost.btn--on-dark {
  --fg: #f4eee2;
  border-color: rgba(244, 238, 226, 0.4);
}
.btn--ghost.btn--on-dark:hover {
  background: rgba(244, 238, 226, 0.08);
  border-color: var(--brass-2);
  color: #fff7ea;
}

/* text link with brass underline reveal */
.tlink {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  color: var(--brass-deep);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: border-color 0.2s var(--ease), gap 0.2s var(--ease);
}
.tlink:hover {
  border-color: var(--brass);
  gap: 0.7em;
}

/* ==========================================================================
   Header / navigation
   ========================================================================== */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: clamp(12px, 1.6vw, 20px) var(--gutter);
  color: var(--paper);
  transition: background 0.3s var(--ease), color 0.3s var(--ease),
    box-shadow 0.3s var(--ease), padding 0.3s var(--ease);
}
.site-header.is-solid {
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--line);
}
.brand {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.4rem;
  letter-spacing: 0.16em;
  text-decoration: none;
  color: currentColor;
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
}
.brand b {
  font-weight: 500;
}
.brand .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brass-2);
  display: inline-block;
}
.is-solid .brand .dot {
  background: var(--brass);
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(0.8rem, 1.6vw, 1.9rem);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(0.8rem, 1.5vw, 1.7rem);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  color: currentColor;
  opacity: 0.92;
  padding: 4px 0;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s var(--ease), opacity 0.2s var(--ease);
}
.nav-links a:hover {
  opacity: 1;
  border-color: currentColor;
}
.nav .btn {
  padding: 0.7em 1.15em;
  font-size: 0.85rem;
}

.nav-toggle {
  display: none;
  flex: none;
  width: 44px;
  height: 44px;
  border: 1px solid currentColor;
  border-radius: var(--radius);
  background: transparent;
  color: currentColor;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  display: block;
  width: 18px;
  height: 1.5px;
  background: currentColor;
  position: relative;
  transition: transform 0.25s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle span::before {
  position: absolute;
  top: -6px;
}
.nav-toggle span::after {
  position: absolute;
  top: 6px;
}
body.menu-open .nav-toggle span {
  background: transparent;
}
body.menu-open .nav-toggle span::before {
  transform: translateY(6px) rotate(45deg);
}
body.menu-open .nav-toggle span::after {
  transform: translateY(-6px) rotate(-45deg);
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: clamp(580px, 88vh, 900px);
  display: flex;
  align-items: flex-end;
  color: var(--paper);
  isolation: isolate;
  overflow: hidden;
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 46%;
}
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
      180deg,
      rgba(15, 25, 19, 0.42) 0%,
      rgba(15, 25, 19, 0.18) 32%,
      rgba(15, 25, 19, 0.46) 72%,
      rgba(13, 22, 17, 0.86) 100%
    ),
    linear-gradient(90deg, rgba(13, 22, 17, 0.72) 0%, rgba(13, 22, 17, 0) 62%);
}
.hero__inner {
  width: min(100% - (var(--gutter) * 2), var(--maxw));
  margin-inline: auto;
  padding-block: clamp(110px, 14vh, 180px) clamp(40px, 6vw, 76px);
  position: relative;
}
/* measurement frame — the "place" instrumented (signature detail) */
.hero__frame {
  position: absolute;
  inset: clamp(86px, 11vh, 150px) 0 clamp(30px, 4vw, 54px) 0;
  border: 1px solid rgba(244, 238, 226, 0.16);
  pointer-events: none;
}
.hero__frame i {
  position: absolute;
  width: 14px;
  height: 14px;
  border: 1px solid var(--brass-2);
}
.hero__frame i:nth-child(1) {
  top: -1px;
  left: -1px;
  border-right: 0;
  border-bottom: 0;
}
.hero__frame i:nth-child(2) {
  top: -1px;
  right: -1px;
  border-left: 0;
  border-bottom: 0;
}
.hero__frame i:nth-child(3) {
  bottom: -1px;
  left: -1px;
  border-right: 0;
  border-top: 0;
}
.hero__frame i:nth-child(4) {
  bottom: -1px;
  right: -1px;
  border-left: 0;
  border-top: 0;
}
.hero__tag {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass-2);
  display: flex;
  align-items: center;
  gap: 0.8em;
  margin-bottom: 1.6rem;
}
.hero__tag::before {
  content: "";
  width: 30px;
  height: 1px;
  background: var(--brass-2);
}
.hero h1 {
  font-weight: 340;
  font-size: clamp(2.35rem, 1.4rem + 4.2vw, 4.9rem);
  line-height: 1.08;
  letter-spacing: 0;
  max-width: 18ch;
  margin-bottom: 1.1rem;
}
.hero h1 em {
  font-style: italic;
  color: var(--brass-2);
}
.hero__sub {
  font-size: clamp(1.05rem, 0.95rem + 0.55vw, 1.3rem);
  line-height: 1.5;
  color: rgba(244, 238, 226, 0.9);
  max-width: 52ch;
  margin-bottom: 2rem;
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1rem;
  align-items: center;
}
.hero__meta {
  margin-top: clamp(1.8rem, 4vw, 2.8rem);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5em 1.6em;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: rgba(244, 238, 226, 0.66);
}
.hero__meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
}
.hero__meta span::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  border: 1px solid var(--brass-2);
}

/* ==========================================================================
   Railed sections (continuity spine + numbered sequence)
   ========================================================================== */
.railed > .wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.4rem, 3vw, 2.4rem);
}
.rail {
  display: flex;
  align-items: baseline;
  gap: 0.9rem;
  position: relative;
}
.rail .num {
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--brass);
  font-feature-settings: "tnum";
}
.rail .rail-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ==========================================================================
   Section: Problem (system grid)
   ========================================================================== */
.problem {
  background: var(--forest);
  color: var(--paper);
}
.problem h2 {
  color: var(--paper);
}
.problem .rail .rail-label {
  color: var(--muted-light);
}
.problem .lead {
  color: rgba(244, 238, 226, 0.82);
}
.split {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
}
.split__head h2 {
  font-size: clamp(1.75rem, 1.2rem + 2.4vw, 3.05rem);
  max-width: 16ch;
  margin-bottom: 1.2rem;
}
.sysgrid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: rgba(244, 238, 226, 0.14);
  border: 1px solid rgba(244, 238, 226, 0.14);
  border-radius: var(--radius);
  overflow: hidden;
}
.sysgrid div {
  background: var(--forest);
  padding: clamp(0.9rem, 2vw, 1.4rem);
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  min-height: 92px;
}
.sysgrid .k {
  font-family: var(--serif);
  font-size: 1.12rem;
  color: var(--brass-2);
}
.sysgrid .v {
  font-size: 0.82rem;
  color: rgba(244, 238, 226, 0.7);
  line-height: 1.4;
}

/* ==========================================================================
   Section: What LONO is (split text + image + layer diagram)
   ========================================================================== */
.feature-split {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.feature-split__media {
  position: relative;
}
.feature-split__media img {
  width: 100%;
  height: 100%;
  max-height: 560px;
  object-fit: cover;
  border-radius: var(--radius);
}
.feature-split__media .cap {
  position: absolute;
  left: 12px;
  bottom: 12px;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: #fff;
  background: rgba(15, 25, 19, 0.6);
  padding: 5px 9px;
  border-radius: 2px;
}
.feature-split h2 {
  font-size: clamp(1.8rem, 1.2rem + 2.6vw, 3.2rem);
  max-width: 14ch;
  margin-bottom: 1.2rem;
}

.layers {
  margin-top: clamp(2.2rem, 5vw, 3.4rem);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.layers .layer {
  background: var(--paper-2);
  padding: clamp(1rem, 2.2vw, 1.5rem);
  position: relative;
}
.layers .layer .ix {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--brass);
}
.layers .layer h3 {
  font-size: 1.18rem;
  margin: 0.4rem 0 0.35rem;
}
.layers .layer p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.45;
}

/* ==========================================================================
   Section: Audience routes
   ========================================================================== */
.routes {
  background: var(--paper-2);
}
.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1rem, 2.4vw, 1.6rem);
}
.route {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.route:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}
.route__media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.route__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.route:hover .route__media img {
  transform: scale(1.04);
}
.route__body {
  padding: clamp(1.2rem, 2.4vw, 1.7rem);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  flex: 1;
}
.route__body h3 {
  font-size: 1.35rem;
}
.route dl {
  margin: 0;
  display: grid;
  gap: 0.55rem;
}
.route dt {
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage-deep);
  margin-bottom: 1px;
}
.route dd {
  margin: 0 0 0.5rem;
  font-size: 0.92rem;
  color: var(--ink-soft);
  line-height: 1.45;
}
.route .tlink {
  margin-top: auto;
}

/* ==========================================================================
   Section: Market shift
   ========================================================================== */
.market {
  background: var(--forest);
  color: var(--paper);
}
.market h2 {
  color: var(--paper);
}
.market .rail .rail-label {
  color: var(--muted-light);
}
.market__grid {
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
}
.market h2 {
  font-size: clamp(1.8rem, 1.2rem + 2.6vw, 3.1rem);
  max-width: 16ch;
}
.market h2 em {
  font-style: italic;
  color: var(--brass-2);
}
.trajectory {
  display: grid;
  gap: 1.4rem;
}
.figure {
  position: relative;
  padding: 1.3rem 0;
  border-top: 1px solid rgba(244, 238, 226, 0.18);
}
.figure:last-child {
  border-bottom: 1px solid rgba(244, 238, 226, 0.18);
}
.figure .big {
  font-family: var(--serif);
  font-weight: 340;
  font-size: clamp(2.6rem, 1.6rem + 4vw, 4.4rem);
  line-height: 1;
  color: var(--brass-2);
  letter-spacing: 0;
}
.figure .lab {
  margin-top: 0.5rem;
  font-size: 0.84rem;
  letter-spacing: 0.03em;
  color: rgba(244, 238, 226, 0.78);
  max-width: 34ch;
}
.figure .yr {
  position: absolute;
  top: 1.3rem;
  right: 0;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  color: var(--muted-light);
}
.market__note {
  font-size: 0.78rem;
  color: rgba(244, 238, 226, 0.55);
  margin-top: 1rem;
}
.market__msg {
  font-family: var(--serif);
  font-size: clamp(1.2rem, 0.95rem + 1vw, 1.55rem);
  line-height: 1.4;
  color: var(--paper);
  max-width: 30ch;
}

/* ==========================================================================
   Section: B2B integration office
   ========================================================================== */
.integrator {
  position: relative;
}
.integrator .feature-split__media img {
  max-height: 600px;
}
.boundaries {
  margin-top: 1.6rem;
  display: grid;
  gap: 0.7rem;
}
.boundaries .b {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-size: 0.95rem;
}
.boundaries .b .mark {
  flex: none;
  width: 1.4em;
  font-family: var(--serif);
  color: var(--brass);
  text-align: center;
}
.boundaries .b.no .mark {
  color: var(--muted);
}
.boundaries .b.no {
  color: var(--muted);
}

/* ==========================================================================
   Section: Service scopes
   ========================================================================== */
.services {
  background: var(--paper-2);
}
.scope {
  border-top: 1px solid var(--line);
  padding-block: clamp(1.8rem, 4vw, 2.8rem);
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem;
}
.scope:last-child {
  border-bottom: 1px solid var(--line);
}
.scope__head {
  display: flex;
  align-items: baseline;
  gap: 1rem;
}
.scope__num {
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--brass);
  font-feature-settings: "tnum";
  flex: none;
}
.scope__head h3 {
  font-size: clamp(1.4rem, 1.1rem + 1.1vw, 1.95rem);
}
.scope__q {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.05rem, 0.95rem + 0.6vw, 1.3rem);
  color: var(--ink);
  line-height: 1.4;
  max-width: 50ch;
}
.scope__q b {
  font-style: normal;
  font-weight: 600;
  color: var(--sage-deep);
  display: block;
  font-family: var(--sans);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}
.scope__detail {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem 2rem;
}
.scope__detail .col h4 {
  font-family: var(--sans);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage-deep);
  margin: 0 0 0.5rem;
}
.scope__detail ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.4rem;
}
.scope__detail li {
  font-size: 0.9rem;
  color: var(--ink-soft);
  line-height: 1.4;
  padding-left: 1rem;
  position: relative;
}
.scope__detail li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 5px;
  height: 1px;
  background: var(--brass);
}

/* ==========================================================================
   Section: Method / proof
   ========================================================================== */
.method__flow {
  margin-bottom: clamp(2rem, 5vw, 3.4rem);
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.6rem;
  counter-reset: flow;
}
.node {
  position: relative;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.9rem;
}
.node .ring {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--brass);
  color: var(--brass);
  display: grid;
  place-items: center;
  font-size: 0.8rem;
  font-family: var(--serif);
}
.node b {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.05rem;
}
.node span {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
}
.modules {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.modules .m {
  background: var(--paper);
  padding: clamp(1.1rem, 2.4vw, 1.6rem);
}
.modules .m h4 {
  font-size: 1.1rem;
  margin: 0 0 0.4rem;
}
.modules .m p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.45;
}

/* ==========================================================================
   Section: Partner ecosystem
   ========================================================================== */
.partners {
  background: var(--forest);
  color: var(--paper);
}
.partners h2 {
  color: var(--paper);
}
.partners .rail .rail-label {
  color: var(--muted-light);
}
.partners .lead {
  color: rgba(244, 238, 226, 0.82);
}
.eco {
  margin-top: clamp(1.6rem, 4vw, 2.6rem);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: rgba(244, 238, 226, 0.14);
  border: 1px solid rgba(244, 238, 226, 0.14);
  border-radius: var(--radius);
  overflow: hidden;
}
.eco .cat {
  background: var(--forest);
  padding: clamp(1rem, 2.2vw, 1.5rem);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-height: 110px;
}
.eco .cat .ix {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--brass-2);
  font-feature-settings: "tnum";
}
.eco .cat b {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.12rem;
}
.eco .cat span {
  font-size: 0.82rem;
  color: rgba(244, 238, 226, 0.68);
  line-height: 1.4;
}

/* ==========================================================================
   Section: Founders
   ========================================================================== */
.founders__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.2rem, 2.6vw, 1.8rem);
}
.founder {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.4rem, 2.8vw, 2rem);
  background: var(--paper-2);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.founder__mono {
  width: 58px;
  height: 58px;
  border-radius: var(--radius);
  background: var(--forest);
  color: var(--brass-2);
  font-family: var(--serif);
  font-size: 1.4rem;
  letter-spacing: 0.04em;
  display: grid;
  place-items: center;
}
.founder__photo {
  width: 58px;
  height: 58px;
  border-radius: var(--radius);
  object-fit: cover;
  object-position: center;
  background: var(--forest);
  box-shadow: inset 0 0 0 1px rgba(21, 35, 27, 0.08);
}
.founder h3 {
  font-size: 1.5rem;
  margin-bottom: 0.1rem;
}
.founder .role {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage-deep);
}
.founder ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.4rem;
}
.founder li {
  font-size: 0.92rem;
  color: var(--ink-soft);
  padding-left: 1rem;
  position: relative;
  line-height: 1.4;
}
.founder li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 5px;
  height: 1px;
  background: var(--brass);
}
.founders__why {
  margin-top: clamp(1.4rem, 3vw, 2rem);
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.15rem, 0.95rem + 0.9vw, 1.5rem);
  line-height: 1.45;
  color: var(--ink);
  max-width: 40ch;
}

/* ==========================================================================
   Section: Sprint
   ========================================================================== */
.sprint {
  background: var(--forest-2);
  color: var(--paper);
}
.sprint h2 {
  color: var(--paper);
}
.sprint .rail .rail-label {
  color: var(--muted-light);
}
.sprint h2 {
  font-size: clamp(1.8rem, 1.2rem + 2.6vw, 3.1rem);
  max-width: 16ch;
}
.sprint h2 em {
  font-style: italic;
  color: var(--brass-2);
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--forest);
  background: var(--brass-2);
  padding: 0.5em 0.9em;
  border-radius: 100px;
  margin-bottom: 1.4rem;
}
.outputs {
  margin: clamp(1.6rem, 4vw, 2.4rem) 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: rgba(244, 238, 226, 0.16);
  border: 1px solid rgba(244, 238, 226, 0.16);
  border-radius: var(--radius);
  overflow: hidden;
  counter-reset: out;
}
.outputs li {
  list-style: none;
  background: var(--forest-2);
  padding: 0.95rem 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  font-size: 0.95rem;
}
.outputs li::before {
  counter-increment: out;
  content: counter(out, decimal-leading-zero);
  font-family: var(--serif);
  color: var(--brass-2);
  font-size: 0.95rem;
  flex: none;
}
.sprint__after {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.4rem;
}
.sprint__after .col h4 {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass-2);
  margin: 0 0 0.5rem;
}
.sprint__after .col p {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(244, 238, 226, 0.84);
  line-height: 1.5;
}

/* ==========================================================================
   Section: Contact
   ========================================================================== */
.contact {
  background: var(--paper);
}
.contact__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 3.6rem);
}
.contact h2 {
  font-size: clamp(1.9rem, 1.3rem + 2.6vw, 3.3rem);
  max-width: 13ch;
  margin-bottom: 1.1rem;
}
.contact__email {
  font-family: var(--serif);
  font-size: clamp(1.2rem, 1rem + 0.9vw, 1.6rem);
  color: var(--brass-deep);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 3px;
  display: inline-block;
  margin-bottom: 1.6rem;
}
.contact__email:hover {
  border-color: var(--brass);
}
.contact__boundary {
  font-size: 0.84rem;
  color: var(--muted);
  border-left: 2px solid var(--line);
  padding-left: 1rem;
  max-width: 42ch;
  line-height: 1.5;
}
.form {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.3rem, 3vw, 2.1rem);
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.field.col-2 {
  grid-column: 1 / -1;
}
.field label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.field label .opt {
  color: var(--muted);
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
}
.field input,
.field select,
.field textarea {
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.7em 0.8em;
  width: 100%;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field textarea {
  resize: vertical;
  min-height: 96px;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--brass);
  box-shadow: 0 0 0 3px rgba(154, 118, 55, 0.16);
}
.consent {
  grid-column: 1 / -1;
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
  line-height: 1.45;
}
.consent input {
  margin-top: 0.25em;
  accent-color: var(--brass);
  flex: none;
}
.form__submit {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: 0.3rem;
}
.form__hint {
  font-size: 0.78rem;
  color: var(--muted);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--forest);
  color: rgba(244, 238, 226, 0.78);
  padding: clamp(3rem, 6vw, 5rem) var(--gutter) 2rem;
}
.footer__inner {
  width: min(100%, var(--maxw));
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.4rem;
}
.footer__brand .brand {
  color: var(--paper);
  font-size: 1.6rem;
  margin-bottom: 1rem;
}
.footer__brand p {
  font-size: 0.9rem;
  max-width: 34ch;
  line-height: 1.5;
}
.footer__cols {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}
.footer__col h5 {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass-2);
  margin: 0 0 0.9rem;
}
.footer__col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}
.footer__col a {
  font-size: 0.9rem;
  text-decoration: none;
  color: rgba(244, 238, 226, 0.78);
  transition: color 0.2s var(--ease);
}
.footer__col a:hover {
  color: var(--brass-2);
}
.footer__base {
  width: min(100%, var(--maxw));
  margin: 2.6rem auto 0;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(244, 238, 226, 0.14);
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.6rem;
  justify-content: space-between;
  font-size: 0.74rem;
  color: rgba(244, 238, 226, 0.5);
}
.footer__base p {
  margin: 0;
  max-width: 60ch;
}

/* ==========================================================================
   Scroll reveal
   ========================================================================== */
/* Reveal is opt-in via the .js class added by main.js. Without JavaScript the
   class is never present, so all content renders fully visible. */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  will-change: opacity, transform;
}
.js .reveal.in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ==========================================================================
   Mobile menu drawer
   ========================================================================== */
@media (max-width: 979px) {
  .nav-links,
  .nav .btn {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(86vw, 360px);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 1.4rem;
    background: var(--forest);
    color: var(--paper);
    padding: 96px var(--gutter) var(--gutter);
    transform: translateX(110%);
    transition: transform 0.35s var(--ease);
    box-shadow: -30px 0 60px -30px rgba(0, 0, 0, 0.6);
    z-index: 90;
  }
  .nav .btn {
    inset: auto 0 0 auto;
    width: min(86vw, 360px);
    height: auto;
    padding: var(--gutter);
    transform: translateX(110%);
    justify-content: center;
  }
  body.menu-open .nav-links {
    transform: none;
  }
  body.menu-open .nav .btn {
    transform: none;
    inset: auto;
    position: fixed;
    right: var(--gutter);
    bottom: var(--gutter);
    left: auto;
    width: min(86vw - (var(--gutter) * 2), 312px);
    padding: 1em 1.4em;
  }
  .nav-links a {
    font-size: 1.15rem;
    opacity: 1;
    color: var(--paper);
  }
  .nav-toggle {
    display: inline-flex;
    z-index: 95;
  }
  body.menu-open .site-header {
    color: var(--paper);
  }
  .nav-drawer-scrim {
    position: fixed;
    inset: 0;
    background: rgba(13, 22, 17, 0.5);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s var(--ease);
    z-index: 80;
  }
  body.menu-open .nav-drawer-scrim {
    opacity: 1;
    pointer-events: auto;
  }
}

/* ==========================================================================
   Breakpoints — tablet
   ========================================================================== */
@media (min-width: 600px) {
  .sysgrid,
  .eco {
    grid-template-columns: repeat(2, 1fr);
  }
  .form-grid {
    grid-template-columns: 1fr 1fr;
  }
  .scope__detail {
    grid-template-columns: repeat(3, 1fr);
  }
  .sprint__after {
    grid-template-columns: repeat(3, 1fr);
  }
  .modules {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
  .layers {
    grid-template-columns: repeat(3, 1fr);
  }
  .sysgrid {
    grid-template-columns: repeat(4, 1fr);
  }
  .eco {
    grid-template-columns: repeat(2, 1fr);
  }
  .founders__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .method__flow {
    grid-template-columns: repeat(3, 1fr);
  }
  .outputs {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ==========================================================================
   Breakpoints — laptop & up: railed layout, native desktop composition
   ========================================================================== */
@media (min-width: 1024px) {
  :root {
    --rail-w: 168px;
  }
  /* two-column railed sections: number rail + content, with continuity spine */
  .railed > .wrap {
    grid-template-columns: var(--rail-w) minmax(0, 1fr);
    column-gap: clamp(2rem, 4vw, 4rem);
    align-items: start;
  }
  .rail {
    position: sticky;
    top: 96px;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    padding-right: 1.4rem;
    border-right: 1px solid var(--line);
    min-height: 80px;
  }
  /* continuity spine: brass node sitting on the rail's right edge */
  .rail::after {
    content: "";
    position: absolute;
    right: -4px;
    top: 6px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--brass);
  }
  .problem .rail,
  .market .rail,
  .partners .rail,
  .sprint .rail {
    border-right-color: rgba(244, 238, 226, 0.2);
  }
  .rail .num {
    font-size: 1.7rem;
  }

  .feature-split {
    grid-template-columns: 1.05fr 1fr;
  }
  .integrator .feature-split {
    grid-template-columns: 1fr 1.05fr;
  }
  .integrator .feature-split__media {
    order: -1;
  }
  .split {
    grid-template-columns: 1fr 1.15fr;
    align-items: start;
  }
  .market__grid {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
  .scope {
    grid-template-columns: 0.9fr 1.4fr;
    column-gap: clamp(2rem, 4vw, 3.5rem);
    align-items: start;
  }
  .scope__head {
    grid-column: 1;
  }
  .scope__q {
    grid-column: 1;
    grid-row: 2;
  }
  .scope__detail {
    grid-column: 2;
    grid-row: 1 / 3;
  }
  .cards {
    grid-template-columns: repeat(4, 1fr);
  }
  .modules {
    grid-template-columns: repeat(3, 1fr);
  }
  .eco {
    grid-template-columns: repeat(4, 1fr);
  }
  .layers {
    grid-template-columns: repeat(3, 1fr);
  }
  .method__flow {
    grid-template-columns: repeat(6, 1fr);
  }
  .node {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    min-height: 150px;
  }
  .outputs {
    grid-template-columns: repeat(3, 1fr);
  }
  .contact__grid {
    grid-template-columns: 0.85fr 1.15fr;
    align-items: start;
  }
  .footer__inner {
    grid-template-columns: 1.2fr 1.8fr;
  }
  .footer__cols {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ==========================================================================
   Breakpoints — wide desktop: more air, larger scale
   ========================================================================== */
@media (min-width: 1600px) {
  :root {
    --maxw: 1320px;
    --rail-w: 200px;
  }
  body {
    font-size: 1.1rem;
  }
  .section {
    padding-block: clamp(96px, 7vw, 150px);
  }
  .cards {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ==========================================================================
   Print
   ========================================================================== */
@media print {
  .site-header,
  .nav-toggle,
  .hero__cta,
  .form {
    display: none !important;
  }
  body {
    color: #000;
    background: #fff;
  }
}
