/* ==========================================================================
   Cadence Environmental — site stylesheet
   Palette and typefaces per brand-redesign-2026 (Benchmark identity).
   Amber is an accent only — never a field.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=IBM+Plex+Mono:wght@400;500&family=Source+Serif+4:ital,opsz,wght@0,8..60,400;0,8..60,600;1,8..60,400&display=swap');

:root {
  --evergreen-deep: #0A1F19;
  --evergreen:      #14312A;
  --evergreen-mid:  #1d4438;
  --amber:          #C97C2C;
  --amber-bright:   #E0913C;
  --paper:          #F2F4EF;
  --paper-warm:     #E8EBE3;
  --rule:           #c6cdc2;
  --rule-soft:      #d9ded5;
  --ink:            #14312A;
  --ink-soft:       #4a5d54;
  --white:          #ffffff;

  --display: 'Space Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --mono:    'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --body:    'Source Serif 4', Georgia, 'Times New Roman', serif;

  --wrap: 1120px;
  --gutter: clamp(20px, 5vw, 56px);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

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

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* --------------------------------------------------------- typography --- */

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.1rem, 5.2vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.35rem); }

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

.lede {
  font-size: clamp(1.1rem, 2.1vw, 1.3rem);
  line-height: 1.55;
  color: var(--ink-soft);
}

.eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber);
  margin: 0 0 1.1rem;
  display: block;
}

.eyebrow--dim { color: var(--ink-soft); }

a { color: inherit; }

.textlink {
  color: var(--evergreen);
  text-decoration: none;
  border-bottom: 2px solid var(--amber);
  padding-bottom: 1px;
  font-weight: 600;
  transition: background 0.15s ease;
}
.textlink:hover { background: rgba(201, 124, 44, 0.12); }

/* -------------------------------------------------------------- header --- */

.site-header {
  background: var(--evergreen-deep);
  color: var(--paper);
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgba(242, 244, 239, 0.12);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 76px;
  flex-wrap: wrap;
  padding-block: 17px;
}

/* Horizontal lockup, reversed variant — the header sits on deep evergreen.
   Clear space is half the mark's diameter; the header's padding and nav gap
   carry it. Regenerate the asset from mark.py rather than editing the SVG. */
.lockup {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  padding-inline-end: 18px;
}
.lockup img {
  height: 34px;
  width: auto;
  display: block;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.4vw, 30px);
  flex-wrap: wrap;
}

.nav a {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: rgba(242, 244, 239, 0.82);
  text-decoration: none;
  padding-block: 4px;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.nav a:hover { color: var(--paper); border-bottom-color: var(--amber); }
.nav a[aria-current="page"] { color: var(--paper); border-bottom-color: var(--amber); }

.nav .nav-cta {
  background: var(--amber);
  color: var(--evergreen-deep);
  font-weight: 500;
  padding: 8px 15px;
  border-bottom: none;
  border-radius: 2px;
}
.nav .nav-cta:hover { background: var(--amber-bright); color: var(--evergreen-deep); }

/* ---------------------------------------------------------------- hero --- */

.hero {
  background: var(--evergreen-deep);
  color: var(--paper);
  position: relative;
  overflow: hidden;
  padding-block: clamp(56px, 10vw, 104px);
}

.hero::after {
  /* graduation ring — the cadence of the survey disc */
  content: "";
  position: absolute;
  right: -190px;
  top: 50%;
  transform: translateY(-50%);
  width: 620px;
  height: 620px;
  background:
    repeating-conic-gradient(from 0deg,
      rgba(242, 244, 239, 0.10) 0deg 0.55deg,
      transparent 0.55deg 6deg);
  border-radius: 50%;
  mask-image: radial-gradient(circle, transparent 54%, #000 56%, #000 76%, transparent 78%);
  -webkit-mask-image: radial-gradient(circle, transparent 54%, #000 56%, #000 76%, transparent 78%);
  pointer-events: none;
}

.hero .wrap { position: relative; z-index: 1; }
.hero-inner { max-width: 44rem; }

.hero h1 { color: var(--paper); margin-bottom: 0.55em; }
.hero .lede { color: rgba(242, 244, 239, 0.80); max-width: 36rem; }

.hero-meta {
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(242, 244, 239, 0.55);
  margin-top: 2.2rem;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(242, 244, 239, 0.16);
}

/* ------------------------------------------------------------- buttons --- */

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 2rem;
}

.btn {
  font-family: var(--mono);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-decoration: none;
  padding: 14px 24px;
  border-radius: 2px;
  display: inline-block;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn--primary { background: var(--amber); color: var(--evergreen-deep); font-weight: 500; }
.btn--primary:hover { background: var(--amber-bright); }

.btn--ghost { border: 1px solid rgba(242, 244, 239, 0.4); color: var(--paper); }
.btn--ghost:hover { border-color: var(--paper); background: rgba(242, 244, 239, 0.07); }

.btn--dark { background: var(--evergreen); color: var(--paper); font-weight: 500; }
.btn--dark:hover { background: var(--evergreen-mid); }

.btn--outline { border: 1px solid var(--rule); color: var(--evergreen); }
.btn--outline:hover { border-color: var(--evergreen); background: var(--paper-warm); }

/* ------------------------------------------------------------ sections --- */

section { padding-block: clamp(50px, 8vw, 88px); }
.section--tight { padding-block: clamp(38px, 5vw, 58px); }
.section--warm { background: var(--paper-warm); }
.section--dark { background: var(--evergreen); color: var(--paper); }
.section--dark h2 { color: var(--paper); }
.section--dark .lede { color: rgba(242, 244, 239, 0.78); }

.section-head { max-width: 40rem; margin-bottom: 2.6rem; }

/* ------------------------------------------------------- independence --- */

.stance {
  background: var(--evergreen);
  color: var(--paper);
  padding-block: clamp(44px, 6vw, 72px);
}

.stance-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: start;
}

.stance h2 {
  color: var(--paper);
  font-size: clamp(1.7rem, 3.6vw, 2.5rem);
  margin: 0;
}
.stance h2 em { font-style: normal; color: var(--amber); }
.stance p { color: rgba(242, 244, 239, 0.82); margin-bottom: 1em; }
.stance p:last-child { margin-bottom: 0; }

/* ----------------------------------------------------------- audiences --- */

.doors {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
  gap: 2px;
  background: var(--rule);
  border: 1px solid var(--rule);
}

.door {
  background: var(--paper);
  padding: clamp(24px, 3.2vw, 34px);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: background 0.15s ease;
}
.door:hover { background: var(--white); }

.door h3 { margin-bottom: 0.45em; }
.door p { font-size: 0.95rem; color: var(--ink-soft); flex-grow: 1; }

.door-go {
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--amber);
  margin-top: 1.3rem;
}
.door:hover .door-go { color: var(--evergreen); }

/* ------------------------------------------------------------ services --- */

.svc-list { border-top: 1px solid var(--rule); }

.svc {
  display: grid;
  grid-template-columns: minmax(0, 16rem) minmax(0, 1fr);
  gap: clamp(14px, 2.4vw, 32px);
  padding-block: 1.7rem;
  border-bottom: 1px solid var(--rule);
  align-items: baseline;
}

.svc h3 { margin: 0; }
.svc p { margin: 0; font-size: 0.97rem; color: var(--ink-soft); }

/* ----------------------------------------------------------- creds/bio --- */

.creds {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: clamp(20px, 3vw, 38px);
  margin-top: 2rem;
}

.cred {
  border-left: 2px solid var(--amber);
  padding-left: 20px;
}
.cred .k {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  display: block;
  margin-bottom: 0.45rem;
}
.cred .v { font-family: var(--display); font-weight: 600; font-size: 1.02rem; line-height: 1.3; }

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}

/* ------------------------------------------------------------ callouts --- */

.note {
  border: 1px solid var(--rule);
  border-left: 3px solid var(--amber);
  background: var(--white);
  padding: clamp(20px, 3vw, 28px);
  font-size: 0.97rem;
}
.note h3 { font-size: 1.05rem; margin-bottom: 0.4em; }
.note p { color: var(--ink-soft); }

.prose { max-width: 42rem; }
.prose h2 { margin-top: 2.2em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.8em; }
.prose ul { padding-left: 1.15em; margin: 0 0 1.2em; }
.prose li { margin-bottom: 0.5em; }
.prose li::marker { color: var(--amber); }

/* ------------------------------------------------------------- tables --- */

.table-scroll { overflow-x: auto; margin-bottom: 1.6em; }

table {
  border-collapse: collapse;
  width: 100%;
  min-width: 520px;
  font-size: 0.93rem;
}
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--rule); vertical-align: top; }
th {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  border-bottom-color: var(--evergreen);
}
td:first-child { font-family: var(--display); font-weight: 600; }

/* --------------------------------------------------------------- form --- */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}

.field { margin-bottom: 1.05rem; }

label {
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  display: block;
  margin-bottom: 0.4rem;
}

input, select, textarea {
  width: 100%;
  font-family: var(--body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 2px;
  padding: 11px 13px;
}
input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--amber);
  outline-offset: -1px;
  border-color: var(--amber);
}
textarea { min-height: 128px; resize: vertical; }

button[type="submit"] {
  font-family: var(--mono);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  background: var(--evergreen);
  color: var(--paper);
  border: none;
  border-radius: 2px;
  padding: 14px 26px;
  cursor: pointer;
  transition: background 0.15s ease;
}
button[type="submit"]:hover { background: var(--evergreen-mid); }

.contact-direct { border-top: 1px solid var(--rule); padding-top: 1.4rem; margin-top: 1.6rem; }
.contact-direct dt {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 0.25rem;
}
.contact-direct dd {
  margin: 0 0 1.1rem;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.08rem;
}
.contact-direct dd a { text-decoration: none; border-bottom: 2px solid var(--amber); }

/* ------------------------------------------------------------- footer --- */

.site-footer {
  background: var(--evergreen-deep);
  color: rgba(242, 244, 239, 0.62);
  padding-block: clamp(40px, 6vw, 58px);
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: clamp(22px, 4vw, 44px);
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(242, 244, 239, 0.14);
}

.site-footer h4 {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(242, 244, 239, 0.45);
  margin-bottom: 0.9rem;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.5rem; }
.site-footer a { color: rgba(242, 244, 239, 0.78); text-decoration: none; }
.site-footer a:hover { color: var(--paper); }

.footer-base {
  padding-top: 1.6rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: rgba(242, 244, 239, 0.42);
}

/* --------------------------------------------------------- responsive --- */

@media (max-width: 860px) {
  .stance-grid,
  .split,
  .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .svc { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .hero::after { right: -300px; opacity: 0.6; }
}

@media (max-width: 620px) {
  body { font-size: 17px; }

  /* Sticky costs 160px of a 780px phone screen — a fifth of the viewport,
     permanently. Full nav stays visible at the top instead, and the footer
     carries every link. Each page has its own call to action. */
  .site-header { position: static; }
  .site-header .wrap { min-height: 0; padding-block: 12px; gap: 10px; }
  .lockup img { height: 26px; }
  .lockup { padding-inline-end: 0; }

  .nav { gap: 2px 14px; width: 100%; }
  .nav a { padding-block: 11px; }          /* ~44px touch target */
  .nav .nav-cta { padding: 12px 18px; margin-top: 4px; }

  .actions .btn { width: 100%; text-align: center; }

  /* footer links sit in tight lists — give them a real tap area */
  .site-footer li { margin-bottom: 0; }
  .site-footer li a { display: inline-block; padding-block: 10px; }
  .contact-direct dd { margin-bottom: 0.7rem; }
  .contact-direct dd a { display: inline-block; padding-block: 6px; }
}

/* ------------------------------------------------------------- pricing --- */

.price-hero {
  max-width: 54rem;
  background: var(--evergreen);
  color: var(--paper);
  padding: clamp(24px, 4vw, 34px);
  border-radius: 2px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px 24px;
  margin-bottom: 2rem;
}
.price-hero .what { max-width: 30rem; }
.price-hero h3 { color: var(--paper); margin-bottom: 0.3em; }
.price-hero p { color: rgba(242, 244, 239, 0.78); font-size: 0.95rem; margin: 0; }
.price-hero .amount {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.2rem, 6vw, 3rem);
  color: var(--amber);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.price-list { max-width: 54rem; border-top: 1px solid var(--rule); margin-bottom: 1.6rem; }

.price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 24px;
  padding-block: 1.05rem;
  border-bottom: 1px solid var(--rule);
}
.price-row .label { font-family: var(--display); font-weight: 600; font-size: 1.02rem; }
.price-row .detail { font-size: 0.9rem; color: var(--ink-soft); display: block; font-family: var(--body); font-weight: 400; margin-top: 0.15rem; }
.price-row .amount {
  font-family: var(--mono);
  font-size: 1.02rem;
  color: var(--evergreen);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.price-row .amount.quoted { color: var(--ink-soft); font-size: 0.86rem; letter-spacing: 0.04em; text-transform: uppercase; }

.price-foot { max-width: 54rem; font-size: 0.92rem; color: var(--ink-soft); }

/* --------------------------------------------------------------- steps --- */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: clamp(20px, 3vw, 36px);
  counter-reset: step;
}
.step { counter-increment: step; }
.step::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--amber);
  display: block;
  padding-bottom: 0.7rem;
  margin-bottom: 0.9rem;
  border-bottom: 1px solid var(--rule);
}
.step h3 { margin-bottom: 0.35em; }
.step p { font-size: 0.95rem; color: var(--ink-soft); margin: 0; }

/* ----------------------------------------------------------------- faq --- */

.faq { max-width: 54rem; border-top: 1px solid var(--rule); }
.faq-item { padding-block: 1.5rem; border-bottom: 1px solid var(--rule); }
.faq-item h3 { margin-bottom: 0.4em; }
.faq-item p { max-width: 62ch; font-size: 0.97rem; color: var(--ink-soft); margin: 0 0 0.8em; }
.faq-item p:last-child { margin-bottom: 0; }

@media (max-width: 620px) {
  .price-hero { flex-direction: column; align-items: flex-start; }
}
