/* ============================================================
   Valence Operations Group — Core Stylesheet
   Design tokens
   ============================================================ */

:root {
  /* Color */
  --forest: #17332A;
  --forest-deep: #0F241D;
  --charcoal: #23262B;
  --stone: #F3EEE3;
  --stone-dim: #EAE3D3;
  --white: #FFFFFF;
  --bronze: #A87B4C;
  --bronze-dim: #C7A374;
  --sage: #4F6B58;
  --line: #D7CFBC;
  --line-on-dark: rgba(243, 238, 227, 0.22);
  --ink: #1C1F22;
  --ink-soft: #4A4F53;

  /* Type */
  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;

  /* Layout */
  --max-width: 1200px;
  --gutter: clamp(20px, 5vw, 64px);
  --radius: 2px;
  --focus: 3px solid var(--bronze);
}

/* ============================================================
   Reset
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--stone);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font-family: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 500; line-height: 1.15; margin: 0 0 0.5em; color: var(--forest-deep); }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
:focus-visible { outline: var(--focus); outline-offset: 3px; }

/* ============================================================
   Skip link
   ============================================================ */

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--forest-deep);
  color: var(--stone);
  padding: 12px 20px;
  z-index: 1000;
  font-family: var(--font-mono);
  font-size: 14px;
}
.skip-link:focus {
  left: var(--gutter);
  top: 12px;
}

/* ============================================================
   Layout helpers
   ============================================================ */

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.section { padding: clamp(56px, 9vw, 112px) 0; }
.section-tight { padding: clamp(40px, 6vw, 72px) 0; }
.section--forest { background: var(--forest-deep); color: var(--stone); }
.section--forest h1, .section--forest h2, .section--forest h3 { color: var(--stone); }
.section--stone-dim { background: var(--stone-dim); }
.grid {
  display: grid;
  gap: clamp(24px, 4vw, 40px);
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

/* Eyebrow / mono labels */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bronze);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--bronze);
}
.section--forest .eyebrow { color: var(--bronze-dim); }

/* ============================================================
   Survey-corner signature motif
   corner tick marks, like parcel-pin markers on a plat drawing
   ============================================================ */

.tick-frame {
  position: relative;
}
.tick-frame::before,
.tick-frame::after,
.tick-frame .tick-br,
.tick-frame .tick-bl {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border-color: var(--bronze);
  opacity: 0.75;
}
.tick-frame::before { top: -1px; left: -1px; border-top: 1.5px solid; border-left: 1.5px solid; }
.tick-frame::after { top: -1px; right: -1px; border-top: 1.5px solid; border-right: 1.5px solid; }
.tick-frame .tick-bl { bottom: -1px; left: -1px; border-bottom: 1.5px solid; border-left: 1.5px solid; }
.tick-frame .tick-br { bottom: -1px; right: -1px; border-bottom: 1.5px solid; border-right: 1.5px solid; }

/* ============================================================
   Header / nav
   ============================================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(243, 238, 227, 0.94);
  backdrop-filter: saturate(140%) blur(6px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px var(--gutter);
  max-width: var(--max-width);
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--forest-deep);
}
.brand-mark { width: 30px; height: 30px; flex-shrink: 0; }
.brand-word {
  font-family: var(--font-display);
  font-size: 19px;
  letter-spacing: 0.01em;
  font-weight: 600;
}
.brand-word small {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sage);
  font-weight: 400;
}
.primary-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}
.primary-nav a {
  text-decoration: none;
  font-size: 14.5px;
  padding: 9px 13px;
  color: var(--charcoal);
  border-radius: var(--radius);
}
.primary-nav a:hover { color: var(--forest); background: var(--stone-dim); }
.primary-nav a[aria-current="page"] {
  color: var(--forest-deep);
  font-weight: 600;
  box-shadow: inset 0 -2px 0 var(--bronze);
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14.5px;
  text-decoration: none;
  padding: 11px 20px;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary { background: var(--forest-deep); color: var(--stone); }
.btn-primary:hover { background: var(--forest); }
.btn-outline { background: transparent; border-color: var(--forest-deep); color: var(--forest-deep); }
.btn-outline:hover { background: var(--forest-deep); color: var(--stone); }
.btn-outline-light { background: transparent; border-color: var(--line-on-dark); color: var(--stone); }
.btn-outline-light:hover { border-color: var(--stone); }
.btn-bronze { background: var(--bronze); color: var(--forest-deep); }
.btn-bronze:hover { background: var(--bronze-dim); }
.header-cta { display: flex; align-items: center; gap: 10px; }

.nav-toggle {
  display: none;
  background: none;
  border: 1.5px solid var(--forest-deep);
  border-radius: var(--radius);
  width: 42px;
  height: 40px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.nav-toggle svg { width: 20px; height: 20px; }

.mobile-nav { display: none; }

@media (max-width: 940px) {
  .primary-nav { display: none; }
  .header-cta .btn-outline { display: none; }
  .nav-toggle { display: flex; }
  .mobile-nav {
    flex-direction: column;
    background: var(--stone);
    border-top: 1px solid var(--line);
    padding: 10px var(--gutter) 20px;
  }
  .mobile-nav.is-open { display: flex; }
  .mobile-nav a {
    text-decoration: none;
    color: var(--charcoal);
    padding: 13px 4px;
    border-bottom: 1px solid var(--line);
    font-size: 16px;
  }
  .mobile-nav a[aria-current="page"] { color: var(--forest-deep); font-weight: 700; }
  .mobile-nav .btn { margin-top: 14px; justify-content: center; }
}

/* ============================================================
   Hero
   ============================================================ */

.hero {
  position: relative;
  background: var(--forest-deep);
  color: var(--stone);
  overflow: hidden;
}
.hero-lines {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  pointer-events: none;
}
.hero-inner {
  position: relative;
  padding: clamp(64px, 11vw, 132px) 0 clamp(48px, 8vw, 96px);
  max-width: 840px;
}
.hero h1 {
  color: var(--stone);
  font-size: clamp(34px, 5.4vw, 58px);
  letter-spacing: -0.01em;
  margin-bottom: 0.4em;
}
.hero .lede {
  font-size: clamp(17px, 2vw, 20px);
  color: rgba(243, 238, 227, 0.82);
  max-width: 640px;
  margin-bottom: 2em;
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

/* ============================================================
   Cards / pillars
   ============================================================ */

.card {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 32px 28px;
  position: relative;
}
.card .num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--bronze);
  letter-spacing: 0.08em;
}
.card h3 { font-size: 21px; margin-top: 10px; }
.card p:last-child { margin-bottom: 0; }

.pillar-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 18px;
  color: var(--sage);
}

/* ============================================================
   Process steps
   ============================================================ */

.process {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.process-step {
  background: var(--stone);
  padding: 26px 22px;
  position: relative;
}
.process-step .step-index {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--bronze);
  letter-spacing: 0.1em;
}
.process-step h3 { font-size: 17px; margin-top: 10px; margin-bottom: 8px; }
.process-step p { font-size: 14.5px; color: var(--ink-soft); margin-bottom: 0; }
@media (max-width: 940px) {
  .process { grid-template-columns: 1fr; }
}

/* ============================================================
   Lists / audiences
   ============================================================ */

.audience-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.audience-list li {
  background: var(--white);
  padding: 20px 24px;
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 18px;
  align-items: baseline;
}
.audience-list .who {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--forest);
  letter-spacing: 0.02em;
}
@media (max-width: 700px) {
  .audience-list li { grid-template-columns: 1fr; gap: 4px; }
}

/* ============================================================
   Callout / CTA band
   ============================================================ */

.callout {
  background: var(--sage);
  color: var(--stone);
  padding: clamp(36px, 6vw, 56px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.callout h2, .callout h3 { color: var(--stone); margin-bottom: 6px; }
.callout p { margin-bottom: 0; color: rgba(243,238,227,0.88); }

/* ============================================================
   Footer
   ============================================================ */

.site-footer {
  background: var(--forest-deep);
  color: rgba(243, 238, 227, 0.82);
  padding: 56px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
  gap: 32px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--line-on-dark);
}
.footer-grid h4 {
  color: var(--stone);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a { text-decoration: none; color: rgba(243,238,227,0.82); font-size: 14.5px; }
.footer-grid a:hover { color: var(--stone); text-decoration: underline; }
.footer-brand .brand-word { color: var(--stone); }
.footer-disclosure {
  font-size: 13px;
  line-height: 1.65;
  color: rgba(243,238,227,0.68);
  padding-top: 28px;
}
.footer-disclosure p { margin-bottom: 12px; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 20px;
  font-size: 13px;
  color: rgba(243,238,227,0.55);
}
@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   Forms
   ============================================================ */

.form-section-title {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--forest);
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
  margin: 44px 0 22px;
}
.form-section-title:first-of-type { margin-top: 0; }
.field {
  margin-bottom: 22px;
}
.field label {
  display: block;
  font-weight: 600;
  font-size: 14.5px;
  margin-bottom: 6px;
  color: var(--forest-deep);
}
.field .hint {
  font-size: 13px;
  color: var(--ink-soft);
  margin-bottom: 8px;
}
.field .optional-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--sage);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 400;
  margin-left: 8px;
}
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="number"],
.field select,
.field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 16px;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  background: var(--white);
  border-radius: var(--radius);
  color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--forest);
  outline: var(--focus);
  outline-offset: 1px;
}
.field textarea { resize: vertical; min-height: 120px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 640px) { .field-row { grid-template-columns: 1fr; } }
.radio-group, .checkbox-group { display: flex; flex-direction: column; gap: 10px; }
.radio-group label, .checkbox-group label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 400;
  font-size: 15px;
  cursor: pointer;
}
.radio-group input, .checkbox-group input { margin-top: 4px; flex-shrink: 0; width: 17px; height: 17px; }
.ack-block {
  background: var(--stone-dim);
  border: 1px solid var(--line);
  padding: 22px 24px;
  margin: 28px 0;
}
.file-field {
  border: 1.5px dashed var(--line);
  padding: 20px;
  text-align: center;
  background: var(--white);
}
.form-error {
  border-left: 3px solid #A3392C;
  background: #FBEEEC;
  color: #7A2A1F;
  padding: 16px 18px;
  margin-bottom: 24px;
  font-size: 14.5px;
  display: none;
}
.form-error.is-visible { display: block; }
.field-error {
  color: #A3392C;
  font-size: 13px;
  margin-top: 6px;
  display: none;
}
.field.has-error input, .field.has-error select, .field.has-error textarea {
  border-color: #A3392C;
}
.field.has-error .field-error { display: block; }
/* honeypot */
.hp-field { position: absolute; left: -9999px; top: -9999px; }

/* ============================================================
   Prose (articles, legal pages)
   ============================================================ */

.prose { max-width: 760px; }
.prose h2 { font-size: 26px; margin-top: 1.6em; }
.prose h3 { font-size: 20px; margin-top: 1.4em; }
.prose p, .prose li { color: var(--ink-soft); font-size: 16.5px; }
.prose strong { color: var(--ink); }
.article-meta {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--sage);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 18px;
}
.article-card {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 28px;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.article-card h3 { font-size: 19px; }
.article-card a.card-link { text-decoration: none; color: var(--forest-deep); }
.article-card a.card-link:hover { text-decoration: underline; }
.read-more { margin-top: auto; font-family: var(--font-mono); font-size: 13px; color: var(--bronze); }

/* Definition-style rows for disclosures */
.dl-rows dt { font-weight: 700; color: var(--forest-deep); margin-top: 20px; }
.dl-rows dd { margin: 4px 0 0; color: var(--ink-soft); }

.divider {
  height: 1px;
  background: var(--line);
  border: none;
  margin: 48px 0;
}
.section--forest .divider { background: var(--line-on-dark); }

.small-print { font-size: 13.5px; color: var(--ink-soft); }

.table-wrap { overflow-x: auto; }
table.plain { width: 100%; border-collapse: collapse; font-size: 15px; }
table.plain th, table.plain td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); }
table.plain th { font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--sage); }

.confirmation-box {
  background: var(--white);
  border: 1px solid var(--line);
  padding: clamp(28px, 5vw, 48px);
  text-align: left;
}
.confirmation-icon { width: 44px; height: 44px; color: var(--sage); margin-bottom: 20px; }
