:root {
  --bg: #f4f1eb;
  --paper: #fffaf1;
  --ink: #15201b;
  --muted: #667068;
  --quiet: #8b9289;
  --line: rgba(21, 32, 27, 0.14);
  --line-strong: rgba(21, 32, 27, 0.28);
  --green: #10895f;
  --teal: #287f88;
  --clay: #b45e45;
  --gold: #b3892f;
  --night: #101815;
  --max: 1160px;
  --gutter: clamp(18px, 4vw, 48px);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(16, 137, 95, 0.08), transparent 340px),
    var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

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

.site-header {
  position: sticky;
  top: 0;
  inset-block-start: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(244, 241, 235, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.header-inner,
main,
.site-footer {
  width: min(100%, calc(var(--max) + var(--gutter) * 2));
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.header-inner {
  position: relative;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
  flex: 0 0 auto;
}

.brand-mark img {
  width: 32px;
  height: auto;
}

.brand-text {
  display: block;
  font-weight: 760;
  letter-spacing: 0;
  white-space: nowrap;
}

.brand-sub,
.eyebrow,
.kicker,
.metric-label,
.price-label,
dt {
  color: var(--muted);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.desktop-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  flex-wrap: wrap;
}

.desktop-nav a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 640;
}

.desktop-nav a:hover {
  color: var(--ink);
}

.mobile-menu-toggle,
.mobile-nav {
  display: none;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

main {
  padding-top: 46px;
  padding-bottom: 72px;
}

.hero {
  min-height: calc(100vh - 72px);
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.65fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  width: fit-content;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 12px;
  background: rgba(255, 250, 241, 0.68);
}

h1,
h2,
h3,
p {
  margin: 0;
  overflow-wrap: break-word;
}

h1 {
  max-width: 880px;
  margin-top: 22px;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  font-size: clamp(30px, 4.5vw, 50px);
  line-height: 1.04;
  letter-spacing: 0;
}

h3 {
  font-size: 21px;
  line-height: 1.16;
  letter-spacing: 0;
}

p {
  color: var(--muted);
}

.lede {
  max-width: 760px;
  margin-top: 22px;
  color: #4f5b53;
  font-size: 19px;
  line-height: 1.55;
}

.button-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  padding: 10px 16px;
  color: var(--ink);
  font-weight: 720;
}

.button-primary {
  background: var(--night);
  color: var(--paper);
  border-color: var(--night);
}

.button-secondary {
  background: var(--paper);
}

.proposal-panel,
.statement-card,
.work-card,
.metric,
.evidence-card,
.process-step,
.timeline article,
.price-card,
.assumption-list article,
.auth-panel,
.quote {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 250, 241, 0.84);
}

.proposal-panel {
  padding: 28px;
  box-shadow: 0 24px 60px rgba(21, 32, 27, 0.12);
}

.partner-logos {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 16px;
  align-items: center;
  margin-bottom: 28px;
}

.partner-logo {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #ffffff;
}

.partner-logo-adapt img {
  width: 72%;
  height: auto;
}

.partner-logo-os img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.partner-amp {
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 34px;
  line-height: 1;
  font-weight: 700;
}

.summary-list {
  margin: 0;
}

.summary-list div {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 14px;
  padding: 15px 0;
  border-top: 1px solid var(--line);
  align-items: start;
}

dd {
  margin: 0;
  font-weight: 730;
  text-align: left;
}

.section {
  min-height: calc(100vh - 72px);
  display: grid;
  align-content: center;
  padding: 72px 0;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(260px, 0.6fr);
  gap: 28px;
  align-items: end;
  margin-bottom: 26px;
}

.section-heading h2 {
  margin-top: 14px;
}

.grid {
  display: grid;
  gap: 16px;
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(260px, 0.55fr);
  gap: 16px;
  align-items: stretch;
}

.statement-card,
.work-card,
.evidence-card,
.assumption-list article {
  padding: 24px;
}

.evidence-card {
  padding-block: 32px;
}

.evidence-card h3 {
  margin-bottom: 18px;
}

.evidence-card p {
  line-height: 1.72;
}

.statement-card h2 {
  margin-top: 14px;
  margin-bottom: 18px;
}

.muted-card {
  background: #e8ede7;
}

.process-map {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.process-step {
  min-height: 280px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.process-step span {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--paper);
  background: var(--green);
  font-weight: 780;
}

.process-step:nth-child(2) span,
.process-step:nth-child(5) span {
  background: var(--teal);
}

.process-step:nth-child(3) span {
  background: var(--gold);
}

.process-step:nth-child(4) span {
  background: var(--clay);
}

.timeline-section {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.timeline {
  display: grid;
  gap: 14px;
}

.timeline article {
  display: grid;
  grid-template-columns: 140px 260px 1fr;
  gap: 22px;
  align-items: start;
  padding: 22px;
}

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

.metric {
  padding: 22px;
}

.metric-value {
  margin-top: 8px;
  color: var(--ink);
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1;
  font-weight: 810;
  letter-spacing: 0;
}

.quote {
  margin-top: 18px;
  padding: 28px;
  border-left: 6px solid var(--green);
}

.quote p {
  max-width: 920px;
  color: var(--ink);
  font-size: 22px;
  line-height: 1.42;
}

.assumption-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.assumption-list strong {
  display: block;
  margin-bottom: 10px;
  font-size: 18px;
}

.commercial {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.45fr);
  gap: 24px;
  align-items: stretch;
  padding-top: 72px;
  padding-bottom: 72px;
}

.commercial-copy {
  padding: 34px;
  border-radius: 8px;
  border: 1px solid var(--line);
  border-left: 8px solid var(--green);
  background: var(--paper);
}

.commercial-copy h2,
.commercial-copy p {
  color: var(--ink);
}

.commercial-copy h2 {
  margin-top: 14px;
}

.commercial-copy p {
  max-width: 760px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 18px;
}

.commercial-copy .eyebrow {
  background: var(--night);
  color: var(--paper);
  border-color: var(--night);
}

.commercial-note {
  font-weight: 720;
}

.quote-cta {
  min-height: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  margin-bottom: 0;
  padding: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.quote-cta h2 {
  margin-top: 14px;
  font-size: clamp(28px, 4vw, 44px);
}

.quote-cta p {
  max-width: 720px;
  margin-top: 12px;
  font-size: 18px;
}

.price-card {
  padding: 28px;
  display: grid;
  align-content: center;
  background: var(--night);
  color: var(--paper);
}

.price-card .price-label,
.price-card p {
  color: rgba(255, 250, 241, 0.72);
}

.price {
  margin: 8px 0 10px;
  color: var(--paper);
  font-size: clamp(34px, 4.8vw, 58px);
  line-height: 0.95;
  font-weight: 820;
  letter-spacing: 0;
}

.site-footer {
  width: 100%;
  max-width: none;
  padding: 0;
  background: var(--night);
}

.footer-brand {
  width: min(100%, calc(var(--max) + var(--gutter) * 2));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  padding: 34px var(--gutter);
}

.footer-brand img {
  width: 96px;
  height: 96px;
  border-radius: 8px;
  object-fit: cover;
}

.footer-brand p {
  color: rgba(255, 250, 241, 0.82);
}

.auth-page {
  min-height: 100vh;
  display: grid;
}

.auth-shell {
  width: min(720px, 100%);
  min-height: 100vh;
  display: grid;
  place-items: center;
}

.auth-panel {
  width: 100%;
  padding: clamp(24px, 5vw, 42px);
}

.auth-panel h1 {
  margin-top: 16px;
  font-size: clamp(42px, 7vw, 70px);
}

.auth-panel .button {
  margin-top: 28px;
}

.login-actions {
  display: grid;
  gap: 18px;
  margin-top: 28px;
}

.login-actions .button {
  margin-top: 0;
}

.code-login {
  display: grid;
  gap: 8px;
}

.code-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.code-row input {
  min-height: 44px;
  flex: 1 1 220px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: #ffffff;
  color: var(--ink);
  padding: 10px 12px;
  font: inherit;
}

.admin-badge-wrap {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  display: grid;
  justify-items: end;
  gap: 8px;
}

.admin-badge {
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--night);
  color: var(--paper);
  padding: 8px 10px;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 16px 38px rgba(16, 24, 21, 0.18);
  cursor: pointer;
}

.admin-badge:hover,
.admin-badge[aria-expanded="true"] {
  background: #24372f;
}

.admin-menu[hidden] {
  display: none;
}

.admin-menu {
  order: -1;
  min-width: 178px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--paper);
  padding: 6px;
  box-shadow: 0 18px 44px rgba(16, 24, 21, 0.2);
}

.admin-menu button {
  width: 100%;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--ink);
  padding: 9px 10px;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.admin-menu button:hover {
  background: rgba(39, 75, 58, 0.1);
}

.comment-modal[hidden] {
  display: none;
}

.comment-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(16, 24, 21, 0.56);
}

.comment-dialog {
  width: min(620px, 100%);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--paper);
  padding: 22px;
  box-shadow: 0 24px 70px rgba(16, 24, 21, 0.28);
}

.comment-dialog-header,
.comment-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.comment-close {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
}

.comment-input {
  width: 100%;
  margin-top: 16px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  padding: 12px;
  font: inherit;
}

.comment-actions {
  margin-top: 14px;
  justify-content: flex-end;
}

.comment-existing {
  margin-top: 12px;
}

.comment-existing-title {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 720;
}

.comment-existing-item {
  border-top: 1px solid var(--line);
  padding: 10px 0;
}

.comment-existing-item time {
  color: var(--quiet);
  font-size: 12px;
}

.comment-toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 60;
  transform: translateY(12px);
  opacity: 0;
  border-radius: 6px;
  background: var(--night);
  color: var(--paper);
  padding: 10px 14px;
  transition: 0.18s ease;
}

.comment-toast.visible {
  transform: translateY(0);
  opacity: 1;
}

.has-comments {
  outline: 2px solid rgba(16, 137, 95, 0.3);
  outline-offset: 3px;
}

@media (max-width: 980px) {
  .hero,
  .section-heading,
  .intro-grid,
  .commercial {
    grid-template-columns: 1fr;
  }

  .process-map,
  .metric-grid,
  .assumption-list,
  .grid.three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .timeline article {
    grid-template-columns: 1fr;
  }

  .quote-cta {
    grid-template-columns: 1fr;
    align-items: start;
  }
}

@media (max-width: 680px) {
  html,
  body {
    max-width: 100%;
  }

  .header-inner,
  main,
  .site-footer {
    width: 100%;
    max-width: 100%;
  }

  .header-inner {
    min-height: 64px;
    align-items: center;
    flex-direction: row;
    gap: 12px;
    padding-block: 10px;
  }

  .desktop-nav {
    display: none;
  }

  .mobile-menu-toggle {
    width: 42px;
    height: 42px;
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    border: 1px solid var(--line-strong);
    border-radius: 6px;
    background: var(--paper);
    color: var(--ink);
    cursor: pointer;
  }

  .mobile-menu-toggle svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
  }

  .mobile-menu-toggle[aria-expanded="true"] {
    background: var(--night);
    color: var(--paper);
    border-color: var(--night);
  }

  .mobile-nav {
    position: absolute;
    top: calc(100% + 8px);
    right: var(--gutter);
    z-index: 30;
    width: min(260px, calc(100vw - var(--gutter) * 2));
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    background: var(--paper);
    box-shadow: 0 20px 44px rgba(16, 24, 21, 0.2);
    padding: 8px;
  }

  .mobile-nav:not([hidden]) {
    display: grid;
  }

  .mobile-nav a {
    border-radius: 6px;
    padding: 12px 14px;
    color: var(--ink);
    font-size: 16px;
    font-weight: 720;
  }

  .mobile-nav a:hover,
  .mobile-nav a:focus-visible {
    background: rgba(16, 137, 95, 0.1);
    outline: none;
  }

  .brand-text {
    overflow: hidden;
    font-size: 15px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .brand-sub {
    overflow: hidden;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .brand {
    flex: 1 1 auto;
    overflow: hidden;
  }

  .brand > span:last-child {
    min-width: 0;
    overflow: hidden;
  }

  .hero {
    min-height: auto;
    padding-top: 28px;
    padding-bottom: 42px;
    gap: 36px;
  }

  .section {
    min-height: auto;
    display: block;
    padding: 64px 0;
  }

  .intro-grid,
  .commercial {
    display: grid;
    gap: 28px;
  }

  .section-heading {
    margin-bottom: 34px;
  }

  h1 {
    max-width: 100%;
    font-size: 34px;
    line-height: 1.02;
  }

  .lede {
    max-width: 100%;
    font-size: 18px;
  }

  .hero-copy,
  .proposal-panel,
  .summary-list,
  .summary-list div,
  .summary-list dd {
    min-width: 0;
  }

  .hero-copy,
  .proposal-panel {
    width: 100%;
    max-width: none;
  }

  .summary-list div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .process-map,
  .metric-grid,
  .assumption-list,
  .grid.two,
  .grid.three {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .process-step {
    min-height: auto;
  }

  .quote-cta {
    margin-top: 20px;
    padding: 28px;
    gap: 28px;
  }

  .footer-brand {
    grid-template-columns: 1fr;
  }
}

@media print {
  .site-header,
  .mobile-menu-toggle,
  .mobile-nav,
  .button-row,
  .admin-badge-wrap,
  .comment-modal,
  .comment-toast {
    display: none !important;
  }

  body {
    background: #ffffff;
  }

  main {
    padding-top: 0;
  }

  .section,
  .hero {
    break-inside: avoid;
    padding-block: 24px;
  }
}
