/* ==========================================================================
   NETBUILD — Landing page styles
   Brand Book Vol. 01 · Mobile-first
   Breakpoints: tablet ≥ 768px · desktop ≥ 1024px
   ========================================================================== */

/* ---------- 1. Design tokens ---------- */
:root {
  /* Brand colors */
  --c-graphite: #171C1F;          /* NET Graphite · primary 60% */
  --c-graphite-2: #20262A;        /* raised graphite surface */
  --c-graphite-3: #2F3539;        /* lines on graphite */
  --c-gold: #C79A4E;              /* BUILD Gold · accent 20% */
  --c-gold-light: #E3BC72;
  --c-gold-deep: #9B6D22;
  --c-gold-text: #7A5418;         /* gold for small text on light (AA) */
  --c-ivory: #F5F1EA;             /* Warm Ivory · base 20% */
  --c-ivory-2: #EAE4D9;           /* ivory line / hover */
  --c-stone: #686660;             /* secondary text */
  --c-white: #FFFFFF;
  --c-ink-soft: #3F4447;          /* body text on light */
  --c-on-dark-soft: #CFC9BE;      /* body text on graphite */
  --c-error: #B3261E;
  --c-success: #2F6B3A;

  --g-gold: linear-gradient(135deg, #E3BC72 0%, #9B6D22 100%);

  /* Typography */
  --f-display: "Outfit", Arial, sans-serif;
  --f-body: "Inter", Arial, sans-serif;
  --fs-xs: 0.8125rem;   /* 13 */
  --fs-sm: 0.9375rem;   /* 15 */
  --fs-md: 1.0625rem;   /* 17 */
  --fs-lg: 1.25rem;     /* 20 */
  --fs-xl: clamp(1.75rem, 1.2rem + 2.2vw, 2.75rem);
  --fs-hero: clamp(2.5rem, 1.6rem + 4.4vw, 4.5rem);
  --tracking-logo: 0.1em;
  --tracking-label: 0.16em;

  /* Shape & depth */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(23, 28, 31, 0.06), 0 2px 8px rgba(23, 28, 31, 0.06);
  --shadow-md: 0 10px 30px rgba(23, 28, 31, 0.12);
  --shadow-lg: 0 24px 60px rgba(23, 28, 31, 0.22);

  /* Layout */
  --container: 1200px;
  --gutter: 20px;
  --section-y: clamp(4rem, 3rem + 4vw, 7rem);
  --header-h: 68px;

  /* Motion */
  --t: 0.25s ease;
}

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

* { margin: 0; padding: 0; }

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

body {
  min-height: 100vh;
  font-family: var(--f-body);
  font-size: var(--fs-md);
  line-height: 1.6;
  color: var(--c-graphite);
  background: var(--c-ivory);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
a { color: inherit; }
ul[role="list"], ol[role="list"] { list-style: none; }
h1, h2, h3 { font-family: var(--f-display); line-height: 1.1; text-wrap: balance; }
p { text-wrap: pretty; }
[hidden] { display: none !important; }

:focus-visible {
  outline: 3px solid var(--c-gold);
  outline-offset: 3px;
  border-radius: 4px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 16px; top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--c-gold);
  color: var(--c-graphite);
  font-weight: 600;
  border-radius: var(--r-sm);
  text-decoration: none;
  transition: top var(--t);
}
.skip-link:focus { top: 12px; }

/* ---------- 3. Layout ---------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); }
.section--ivory { background: var(--c-ivory); }
.section--white { background: var(--c-white); }

.section-head {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 720px;
  margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.5rem);
}

.eyebrow {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--c-gold-text);
}
.eyebrow--gold { color: var(--c-gold); }

.section-title {
  font-size: var(--fs-xl);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.section-lead {
  font-size: var(--fs-md);
  color: var(--c-ink-soft);
  max-width: 62ch;
}

/* ---------- 4. Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 26px;
  border: 2px solid transparent;
  border-radius: 999px;
  font-family: var(--f-body);
  font-size: var(--fs-sm);
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: transform var(--t), background var(--t), color var(--t), border-color var(--t), box-shadow var(--t);
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn--sm { min-height: 40px; padding: 8px 20px; }
.btn--block { width: 100%; }

.btn--gold {
  background: var(--c-gold);
  color: var(--c-graphite);
}
.btn--gold:hover {
  background: var(--g-gold);
  box-shadow: 0 8px 24px rgba(199, 154, 78, 0.35);
}

.btn--dark {
  background: var(--c-graphite);
  color: var(--c-ivory);
}
.btn--dark:hover { background: var(--c-graphite-2); box-shadow: var(--shadow-md); }

.btn--outline-light {
  border-color: var(--c-ivory);
  color: var(--c-ivory);
}
.btn--outline-light:hover { background: var(--c-ivory); color: var(--c-graphite); }

.btn[disabled],
.btn[aria-busy="true"] { cursor: progress; opacity: 0.85; }

.spinner {
  display: none;
  width: 18px; height: 18px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
.btn[aria-busy="true"] .spinner { display: inline-block; }

@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- 5. Header & navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(23, 28, 31, 0.96);
  color: var(--c-ivory);
  padding-top: env(safe-area-inset-top, 0px);
  border-bottom: 1px solid transparent;
  transition: box-shadow var(--t), border-color var(--t), background var(--t);
}
@supports (backdrop-filter: blur(8px)) {
  .site-header { background: rgba(23, 28, 31, 0.86); backdrop-filter: blur(10px); }
}
.site-header.is-scrolled {
  border-bottom-color: var(--c-graphite-3);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--c-ivory);
}
.brand__mark { width: 64px; height: auto; }
.brand__mark .logo-dark { fill: currentColor; }
.brand__mark .logo-gold { fill: var(--c-gold); }

.wordmark {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: var(--tracking-logo);
  text-transform: uppercase;
  line-height: 1;
}
.wordmark__build { color: var(--c-gold); }

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  padding: 10px;
  border-radius: var(--r-sm);
}
.nav-toggle__bar {
  display: block;
  height: 2px;
  background: var(--c-ivory);
  border-radius: 2px;
  transition: transform var(--t), opacity var(--t);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu (default) */
.site-nav {
  position: fixed;
  inset: calc(var(--header-h) + env(safe-area-inset-top, 0px)) 0 auto 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 24px var(--gutter) 32px;
  background: var(--c-graphite);
  border-bottom: 1px solid var(--c-graphite-3);
  box-shadow: var(--shadow-lg);
  transform: translateY(-8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--t), transform var(--t), visibility var(--t);
}
.site-nav.is-open { opacity: 1; transform: none; visibility: visible; }

.site-nav__list { list-style: none; display: flex; flex-direction: column; }
.site-nav__link {
  display: block;
  padding: 14px 4px;
  font-size: var(--fs-lg);
  font-weight: 500;
  text-decoration: none;
  color: var(--c-on-dark-soft);
  border-bottom: 1px solid var(--c-graphite-3);
  transition: color var(--t);
}
.site-nav__link:hover,
.site-nav__link.is-active { color: var(--c-gold); }

body.nav-open { overflow: hidden; }

/* ---------- 6. Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 80% at 85% 20%, #2A2F31 0%, rgba(42, 47, 49, 0) 70%),
    var(--c-graphite);
  color: var(--c-ivory);
  padding-block: clamp(3rem, 2rem + 5vw, 6.5rem) clamp(3.5rem, 2rem + 5vw, 7rem);
}
.hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 6px;
  background: var(--g-gold);
}

.hero__inner {
  display: grid;
  gap: 48px;
  align-items: center;
}

.hero__copy { display: flex; flex-direction: column; gap: 20px; min-width: 0; }

.hero__title {
  font-size: var(--fs-hero);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.02;
}
.hero__accent {
  display: block;
  color: var(--c-gold);
}
@supports (-webkit-background-clip: text) {
  .hero__accent {
    background: var(--g-gold);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
}

.hero__lead {
  font-size: var(--fs-lg);
  color: var(--c-on-dark-soft);
  max-width: 34ch;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }

.badges {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--c-graphite-3);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--c-ivory);
}
.badge__icon { width: 16px; height: 16px; color: var(--c-gold); }

.hero__visual {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
.hero__mark { width: 100%; max-width: 460px; height: auto; filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.35)); }
.hero__slogan {
  font-family: var(--f-display);
  font-weight: 300;
  font-size: var(--fs-lg);
  letter-spacing: 0.04em;
  color: var(--c-gold-light);
}

/* ---------- 7. Network flow ---------- */
.flow {
  display: grid;
  gap: 16px;
  counter-reset: flow;
}
.flow__step {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 28px 24px;
  background: var(--c-white);
  border: 1px solid var(--c-ivory-2);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  transition: transform var(--t), box-shadow var(--t);
}
.flow__step:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.flow__step--dark { background: var(--c-graphite); color: var(--c-ivory); border-color: var(--c-graphite); }
.flow__step--dark .flow__text { color: var(--c-on-dark-soft); }

.flow__num {
  position: absolute;
  top: 18px; right: 20px;
  font-family: var(--f-display);
  font-size: 2.25rem;
  font-weight: 300;
  line-height: 1;
  color: var(--c-gold);
}
.flow__icon { width: 32px; height: 32px; color: var(--c-gold-deep); }
.flow__step--dark .flow__icon { color: var(--c-gold); }
.flow__title { font-size: 1.5rem; font-weight: 600; }
.flow__text { color: var(--c-ink-soft); font-size: var(--fs-sm); }

/* Connector arrows between steps (mobile: downward) */
.flow__step:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -14px;
  width: 12px; height: 12px;
  border-right: 2px solid var(--c-gold);
  border-bottom: 2px solid var(--c-gold);
  transform: translateX(-50%) rotate(45deg);
  background: transparent;
  z-index: 1;
}

/* ---------- 8. Pipeline (tabs + forms) ---------- */
.pipeline { display: grid; gap: 40px; }
.pipeline__head { margin-bottom: 0; }

.checklist { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }
.checklist li {
  position: relative;
  padding-left: 30px;
  font-weight: 500;
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.3em;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--g-gold);
}
.checklist li::after {
  content: "";
  position: absolute;
  left: 6px; top: calc(0.3em + 4px);
  width: 5px; height: 9px;
  border-right: 2px solid var(--c-graphite);
  border-bottom: 2px solid var(--c-graphite);
  transform: rotate(45deg);
}

.pipeline__panel {
  background: var(--c-ivory);
  border: 1px solid var(--c-ivory-2);
  border-radius: var(--r-lg);
  padding: 8px;
  box-shadow: var(--shadow-md);
  min-width: 0;
}

.tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 6px;
  background: var(--c-ivory-2);
  border-radius: var(--r-md);
}
.tabs__tab {
  min-height: 48px;
  padding: 10px 12px;
  border-radius: var(--r-sm);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--c-stone);
  transition: background var(--t), color var(--t), box-shadow var(--t);
}
.tabs__tab:hover { color: var(--c-graphite); }
.tabs__tab[aria-selected="true"] {
  background: var(--c-graphite);
  color: var(--c-ivory);
  box-shadow: var(--shadow-sm);
}
.tabs__tab[aria-selected="true"]::after {
  content: "";
  display: block;
  width: 28px; height: 3px;
  margin: 6px auto 0;
  border-radius: 2px;
  background: var(--c-gold);
}
.tabs__panel { padding: 20px 14px 14px; border-radius: var(--r-md); }
.tabs__panel:focus-visible { outline-offset: -3px; }
.tabs__panel.is-entering { animation: fadeUp 0.3s ease both; }

/* ---------- 9. Forms ---------- */
.form { display: flex; flex-direction: column; gap: 18px; }
.form__intro { color: var(--c-ink-soft); font-size: var(--fs-sm); }
.form__grid { display: grid; gap: 14px; }

.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.fieldset { border: 0; }

.field__label {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-stone);
}
.field__optional { text-transform: none; letter-spacing: 0; font-weight: 400; }

.field__input {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  background: var(--c-white);
  border: 1.5px solid #D9D2C5;
  border-radius: var(--r-sm);
  font-size: 1rem;
  color: var(--c-graphite);
  transition: border-color var(--t), box-shadow var(--t);
}
.field__input::placeholder { color: #8C887F; }
.field__input:hover { border-color: #BFB6A6; }
.field__input:focus {
  outline: none;
  border-color: var(--c-gold);
  box-shadow: 0 0 0 4px rgba(199, 154, 78, 0.22);
}
.field__input--area { min-height: 112px; resize: vertical; }
.field__input--select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--c-stone) 50%), linear-gradient(135deg, var(--c-stone) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%;
  background-size: 6px 6px;
  background-repeat: no-repeat;
  padding-right: 40px;
}

.field.is-invalid .field__input { border-color: var(--c-error); }
.field.is-invalid .field__input:focus { box-shadow: 0 0 0 4px rgba(179, 38, 30, 0.15); }
.field.is-valid .field__input { border-color: #9DB89F; }

.field__error {
  min-height: 0;
  font-size: var(--fs-xs);
  font-weight: 500;
  color: var(--c-error);
}
.field__error:empty { display: none; }

.field--check {
  display: grid;
  grid-template-columns: 22px 1fr;
  align-items: start;
  column-gap: 10px;
  font-size: var(--fs-xs);
  color: var(--c-ink-soft);
  line-height: 1.5;
}
.field--check .field__error { grid-column: 2; }
.check {
  width: 20px; height: 20px;
  margin-top: 1px;
  accent-color: var(--c-gold-deep);
}

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 16px;
  border: 1.5px solid #D9D2C5;
  border-radius: 999px;
  background: var(--c-white);
  font-size: var(--fs-sm);
  font-weight: 500;
  transition: background var(--t), border-color var(--t), color var(--t);
}
.chip input:checked + span { background: var(--c-graphite); border-color: var(--c-graphite); color: var(--c-ivory); }
.chip input:focus-visible + span { outline: 3px solid var(--c-gold); outline-offset: 2px; }

/* Honeypot */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
/* Cloudflare Turnstile: invisible unless a challenge is shown */
.turnstile:empty { display: none; }
.turnstile iframe { max-width: 100%; }

/* ---------- 10. Purpose band ---------- */
.purpose {
  background: var(--c-graphite);
  color: var(--c-ivory);
  padding-block: clamp(3rem, 2rem + 4vw, 5.5rem);
}
.purpose__quote {
  max-width: 24ch;
  font-family: var(--f-display);
  font-weight: 300;
  font-size: clamp(1.75rem, 1.2rem + 2.6vw, 3.25rem);
  line-height: 1.2;
  text-wrap: balance;
}
.purpose__quote::before {
  content: "";
  display: block;
  width: 56px; height: 4px;
  margin-bottom: 24px;
  border-radius: 2px;
  background: var(--g-gold);
}

/* ---------- 11. Values ---------- */
.values { display: grid; gap: 14px; }
.value {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 26px 24px;
  background: var(--c-white);
  border: 1px solid var(--c-ivory-2);
  border-radius: var(--r-lg);
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.value:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--c-gold); }
.value--feature { background: var(--c-graphite); color: var(--c-ivory); border-color: var(--c-graphite); }
.value--feature .value__text { color: var(--c-on-dark-soft); }
.value__title { font-size: 1.375rem; font-weight: 600; }
.value__title::before {
  content: "";
  display: block;
  width: 32px; height: 3px;
  margin-bottom: 14px;
  border-radius: 2px;
  background: var(--c-gold);
}
.value__text { color: var(--c-ink-soft); font-size: var(--fs-sm); }

/* ---------- 12. Homes ---------- */
.homes { display: grid; gap: 40px; align-items: start; }
.homes__copy { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.homes__copy .btn { margin-top: 8px; }

.standard {
  border-top: 2px solid var(--c-graphite);
}
.standard__item {
  display: grid;
  gap: 4px;
  padding: 18px 0;
  border-bottom: 1px solid var(--c-ivory-2);
}
.standard__key {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: var(--fs-lg);
}
.standard__val { color: var(--c-ink-soft); font-size: var(--fs-sm); }

/* ---------- 13. CTA band ---------- */
.cta-band {
  background: var(--g-gold);
  color: var(--c-graphite);
  padding-block: clamp(2.5rem, 2rem + 2vw, 4rem);
}
.cta-band__inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}
.cta-band__title { font-size: var(--fs-xl); font-weight: 700; }
.cta-band .btn--gold { background: var(--c-graphite); color: var(--c-ivory); }
.cta-band .btn--gold:hover { background: var(--c-graphite-2); box-shadow: var(--shadow-md); }

/* ---------- 14. Footer ---------- */
.site-footer {
  background: var(--c-graphite);
  color: var(--c-on-dark-soft);
  padding-top: clamp(3rem, 2.5rem + 2vw, 4.5rem);
  padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  font-size: var(--fs-sm);
}
.site-footer__grid {
  display: grid;
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--c-graphite-3);
}
.site-footer__brand { display: flex; flex-direction: column; gap: 14px; }
.brand--footer .brand__img { width: 88px; height: auto; }
.site-footer__slogan { font-family: var(--f-display); font-weight: 300; color: var(--c-gold-light); }
.site-footer__heading {
  margin-bottom: 12px;
  font-family: var(--f-body);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--c-gold);
}
.site-footer__list { display: flex; flex-direction: column; gap: 8px; }
.site-footer a { text-decoration: none; transition: color var(--t); }
.site-footer a:hover { color: var(--c-gold); }

.social { display: flex; gap: 10px; }
.social__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border: 1px solid var(--c-graphite-3);
  border-radius: 50%;
  color: var(--c-ivory);
  transition: background var(--t), border-color var(--t), color var(--t);
}
.social__link svg { width: 20px; height: 20px; }
.social__link:hover { background: var(--c-gold); border-color: var(--c-gold); color: var(--c-graphite) !important; }

.site-footer__legal {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 20px;
  font-size: var(--fs-xs);
  color: #A39E94;
}
.site-footer__legal-links { display: flex; gap: 18px; }

.noscript {
  padding: 16px var(--gutter);
  background: var(--c-gold);
  color: var(--c-graphite);
  text-align: center;
}

/* ---------- 15. Toast ---------- */
.toast {
  position: fixed;
  left: 16px; right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  z-index: 80;
  display: grid;
  grid-template-columns: 36px 1fr 32px;
  gap: 12px;
  align-items: start;
  max-width: 440px;
  margin-inline: auto;
  padding: 16px;
  background: var(--c-graphite);
  color: var(--c-ivory);
  border-left: 4px solid var(--c-gold);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  animation: toastIn 0.3s ease both;
}
.toast--error { border-left-color: var(--c-error); }
.toast__icon {
  width: 36px; height: 36px;
  padding: 7px;
  border-radius: 50%;
  background: var(--g-gold);
  color: var(--c-graphite);
}
.toast--error .toast__icon { background: var(--c-error); color: var(--c-white); }
.toast__title { font-family: var(--f-display); font-weight: 600; font-size: var(--fs-md); }
.toast__text { font-size: var(--fs-sm); color: var(--c-on-dark-soft); }
.toast__close {
  width: 32px; height: 32px;
  border-radius: 50%;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--c-on-dark-soft);
}
.toast__close:hover { background: var(--c-graphite-2); color: var(--c-ivory); }

/* ---------- 16. Motion ---------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
@keyframes toastIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

/* Reveal: content is visible by default; JS adds .reveal-ready only when it can animate */
.reveal-ready [data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal-ready [data-reveal].is-visible { opacity: 1; transform: none; }

@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-ready [data-reveal] { opacity: 1; transform: none; }
}

/* ---------- 17. Tablet ≥ 768px ---------- */
@media (min-width: 768px) {
  :root { --gutter: 32px; }

  .flow { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .flow__step:not(:last-child)::after { display: none; }

  .form__grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .field--full { grid-column: 1 / -1; }

  .tabs__panel { padding: 28px 24px 24px; }

  .values { grid-template-columns: repeat(2, 1fr); }
  .value--feature { grid-column: 1 / -1; }

  .standard__item { grid-template-columns: 180px 1fr; gap: 24px; align-items: baseline; }

  .cta-band__inner { flex-direction: row; align-items: center; justify-content: space-between; }

  .site-footer__grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .site-footer__brand { grid-column: 1 / -1; }
  .site-footer__legal { flex-direction: row; justify-content: space-between; align-items: center; }

  .toast { left: auto; right: 24px; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); }
}

/* ---------- 18. Desktop ≥ 1024px ---------- */
@media (min-width: 1024px) {
  :root { --header-h: 76px; }

  .nav-toggle { display: none; }

  .site-nav {
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 28px;
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
    transform: none;
    opacity: 1;
    visibility: visible;
  }
  .site-nav__list { flex-direction: row; gap: 28px; }
  .site-nav__link {
    position: relative;
    padding: 6px 0;
    font-size: var(--fs-sm);
    border: 0;
  }
  .site-nav__link::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: -2px;
    height: 2px;
    background: var(--c-gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--t);
  }
  .site-nav__link:hover::after,
  .site-nav__link.is-active::after { transform: scaleX(1); }

  .brand__mark { width: 72px; }

  .hero__inner { grid-template-columns: 1.15fr 1fr; gap: 64px; }
  .hero__visual { display: flex; }

  .flow { grid-template-columns: repeat(4, 1fr); gap: 28px; }
  .flow__step:not(:last-child)::after {
    display: block;
    left: auto;
    right: -21px;
    top: 50%;
    bottom: auto;
    transform: translateY(-50%) rotate(-45deg);
  }

  .pipeline { grid-template-columns: 0.85fr 1.15fr; gap: 64px; align-items: start; }
  .pipeline__head { position: sticky; top: calc(var(--header-h) + 32px); }

  .values { grid-template-columns: repeat(5, 1fr); }
  .value--feature { grid-column: auto; }

  .homes { grid-template-columns: 0.9fr 1.1fr; gap: 72px; }

  .site-footer__grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; }
  .site-footer__brand { grid-column: auto; }
}
