/* ============================================================
   NS Adamson Development and Consulting LLC — design tokens
   ============================================================ */
:root {
  --ink: #eceae2;
  --ink-soft: #a8afba;
  --paper: #0d0f14;
  --paper-raised: #171a21;
  --line: #2c3038;
  --divider: color-mix(in srgb, var(--ink) 22%, transparent);
  --hex-pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='90' height='51.96'%3E%3Cg fill='none' stroke='%233d5a78' stroke-width='1' stroke-opacity='0.12'%3E%3Cpath d='M60,25.98 L45,51.96 L15,51.96 L0,25.98 L15,0 L45,0 Z'/%3E%3Cpath d='M105,0 L90,25.98 L60,25.98 L45,0 L60,-25.98 L90,-25.98 Z'/%3E%3Cpath d='M15,0 L0,25.98 L-30,25.98 L-45,0 L-30,-25.98 L0,-25.98 Z'/%3E%3Cpath d='M105,51.96 L90,77.94 L60,77.94 L45,51.96 L60,25.98 L90,25.98 Z'/%3E%3Cpath d='M15,51.96 L0,77.94 L-30,77.94 L-45,51.96 L-30,25.98 L0,25.98 Z'/%3E%3C/g%3E%3Cg fill='%23f0b93d' fill-opacity='0.2'%3E%3Ccircle cx='60' cy='25.98' r='1.4'/%3E%3Ccircle cx='45' cy='51.96' r='1.4'/%3E%3Ccircle cx='15' cy='51.96' r='1.4'/%3E%3Ccircle cx='0' cy='25.98' r='1.4'/%3E%3Ccircle cx='90' cy='25.98' r='1.4'/%3E%3Ccircle cx='15' cy='0' r='1.4'/%3E%3Ccircle cx='45' cy='0' r='1.4'/%3E%3C/g%3E%3C/svg%3E");
  --blueprint: #6ea3cc;
  --accent: #e0a35c;
  --accent-ink: #14181f;
  --focus: #6ea3cc;

  --font-heading: -apple-system, "Segoe UI Semibold", "Segoe UI", Roboto, sans-serif;
  --font-body: -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, "Cascadia Code", "Consolas", "SFMono-Regular", Menlo, monospace;

  --max-width: 1120px;
  --measure: 62ch;
}

/* Dark is now the site's permanent default (see :root above) — this
   block exists only so DevTools "prefers-color-scheme: light" emulation
   and future manual toggles still fall back to the same dark tokens. */
:root[data-theme="dark"] {
  --ink: #eceae2;
  --ink-soft: #a8afba;
  --paper: #0d0f14;
  --paper-raised: #171a21;
  --line: #2c3038;
  --divider: color-mix(in srgb, var(--ink) 22%, transparent);
  --hex-pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='90' height='51.96'%3E%3Cg fill='none' stroke='%233d5a78' stroke-width='1' stroke-opacity='0.12'%3E%3Cpath d='M60,25.98 L45,51.96 L15,51.96 L0,25.98 L15,0 L45,0 Z'/%3E%3Cpath d='M105,0 L90,25.98 L60,25.98 L45,0 L60,-25.98 L90,-25.98 Z'/%3E%3Cpath d='M15,0 L0,25.98 L-30,25.98 L-45,0 L-30,-25.98 L0,-25.98 Z'/%3E%3Cpath d='M105,51.96 L90,77.94 L60,77.94 L45,51.96 L60,25.98 L90,25.98 Z'/%3E%3Cpath d='M15,51.96 L0,77.94 L-30,77.94 L-45,51.96 L-30,25.98 L0,25.98 Z'/%3E%3C/g%3E%3Cg fill='%23f0b93d' fill-opacity='0.2'%3E%3Ccircle cx='60' cy='25.98' r='1.4'/%3E%3Ccircle cx='45' cy='51.96' r='1.4'/%3E%3Ccircle cx='15' cy='51.96' r='1.4'/%3E%3Ccircle cx='0' cy='25.98' r='1.4'/%3E%3Ccircle cx='90' cy='25.98' r='1.4'/%3E%3Ccircle cx='15' cy='0' r='1.4'/%3E%3Ccircle cx='45' cy='0' r='1.4'/%3E%3C/g%3E%3C/svg%3E");
  --blueprint: #6ea3cc;
  --accent: #e0a35c;
  --accent-ink: #14181f;
  --focus: #6ea3cc;
}
:root[data-theme="light"] {
  --ink: #14181f;
  --ink-soft: #4c5563;
  --paper: #f6f6f3;
  --paper-raised: #ececE6;
  --line: #dcdcd3;
  --divider: color-mix(in srgb, var(--ink) 15%, transparent);
  --hex-pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='90' height='51.96'%3E%3Cg fill='none' stroke='%23d9a63e' stroke-width='1' stroke-opacity='0.08'%3E%3Cpath d='M60,25.98 L45,51.96 L15,51.96 L0,25.98 L15,0 L45,0 Z'/%3E%3Cpath d='M105,0 L90,25.98 L60,25.98 L45,0 L60,-25.98 L90,-25.98 Z'/%3E%3Cpath d='M15,0 L0,25.98 L-30,25.98 L-45,0 L-30,-25.98 L0,-25.98 Z'/%3E%3Cpath d='M105,51.96 L90,77.94 L60,77.94 L45,51.96 L60,25.98 L90,25.98 Z'/%3E%3Cpath d='M15,51.96 L0,77.94 L-30,77.94 L-45,51.96 L-30,25.98 L0,25.98 Z'/%3E%3C/g%3E%3Cg fill='%23c17a2e' fill-opacity='0.16'%3E%3Ccircle cx='60' cy='25.98' r='1.3'/%3E%3Ccircle cx='45' cy='51.96' r='1.3'/%3E%3Ccircle cx='15' cy='51.96' r='1.3'/%3E%3Ccircle cx='0' cy='25.98' r='1.3'/%3E%3Ccircle cx='90' cy='25.98' r='1.3'/%3E%3Ccircle cx='15' cy='0' r='1.3'/%3E%3Ccircle cx='45' cy='0' r='1.3'/%3E%3C/g%3E%3C/svg%3E");
  --blueprint: #2c5f8a;
  --accent: #c17a2e;
  --accent-ink: #ffffff;
  --focus: #2c5f8a;
}

/* ============================================================
   Base
   ============================================================ */
* { box-sizing: border-box; }

html { scroll-behavior: auto; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background-color: var(--paper);
  background-image: var(--hex-pattern);
  background-size: 90px 51.96px;
  background-repeat: repeat;
  background-attachment: fixed;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.01em;
  text-wrap: balance;
  margin: 0;
}

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

a { color: var(--focus); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin: 0 0 0.9rem;
}

.measure { max-width: var(--measure); }

/* ============================================================
   Header / nav
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 0;
}

.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.logo img {
  display: block;
  height: 92px;
  width: auto;
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 2rem;
  margin: 0;
  padding: 0;
  font-family: var(--font-mono);
  font-size: 0.85rem;
}
.nav-links a {
  color: var(--ink-soft);
  text-decoration: none;
  padding: 0.3rem 0;
  border-bottom: 1px solid transparent;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--ink);
  border-bottom-color: var(--accent);
}
.nav-links .btn { font-family: var(--font-body); }
.nav-links .btn-primary { color: #14181f; }
.nav-links .btn-primary:hover { color: #14181f; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}
.nav-toggle span { width: 22px; height: 2px; background: var(--ink); }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.3rem;
  border-radius: 3px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: var(--font-body);
}
.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
}
.btn-primary:hover { filter: brightness(1.08); }
.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  padding: 5.5rem 0 4.5rem;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}
.hero h1 {
  font-size: clamp(2rem, 1.5rem + 2vw, 3.1rem);
  line-height: 1.12;
  margin-bottom: 1.1rem;
}
.hero .lede {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 46ch;
  margin-bottom: 2rem;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.9rem; }

.schematic { width: 100%; height: auto; }
.schematic line, .schematic path { stroke: var(--blueprint); }
.schematic path { fill: none; stroke-width: 1.5; }
.schematic path.dashed { stroke-dasharray: 4 3; }
.schematic rect.term { fill: var(--paper); stroke: var(--blueprint); stroke-width: 1.2; }
.schematic rect.hub-back, .schematic rect.hub-mid { fill: var(--paper); stroke: var(--blueprint); stroke-width: 1.2; }
.schematic rect.hub-front { fill: var(--accent); stroke: var(--accent); }
.schematic circle.via, .schematic rect.pad { fill: var(--blueprint); }
.schematic text { fill: var(--ink-soft); font-family: var(--font-mono); font-size: 11px; }
.schematic text.hub-label { fill: var(--accent-ink); font-size: 9px; }

/* ============================================================
   Sections
   ============================================================ */
.section {
  padding: 4.5rem 0;
  border-top: 2px solid var(--divider);
}
.section-raised {
  background: color-mix(in srgb, var(--paper-raised) 72%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.section-head { margin-bottom: 2.5rem; max-width: 60ch; }
.section-head h2 { font-size: clamp(1.5rem, 1.3rem + 0.8vw, 2rem); margin-bottom: 0.75rem; }
.section-head .sub { color: var(--ink-soft); font-size: 1.05rem; }

/* Service / value cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1.75rem;
}
.card .icon { color: var(--blueprint); margin-bottom: 1rem; }
.card h3 { font-size: 1.1rem; margin-bottom: 0.6rem; }
.card p { color: var(--ink-soft); font-size: 0.95rem; }

/* Process steps */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.step .mark {
  font-family: var(--font-mono);
  color: var(--accent);
  font-size: 0.85rem;
  display: block;
  margin-bottom: 0.6rem;
}
.step h3 { font-size: 1rem; margin-bottom: 0.4rem; }
.step p { color: var(--ink-soft); font-size: 0.92rem; }

/* Who-it's-for list */
.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.check-list li {
  display: grid;
  grid-template-columns: 1.4rem 1fr;
  gap: 0.7rem;
  align-items: baseline;
}
.check-list li::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  background: var(--accent);
  align-self: center;
  border-radius: 1px;
}

/* CTA band */
.cta-band {
  background: color-mix(in srgb, var(--paper-raised) 72%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.cta-band .sub { color: var(--ink-soft); }
.cta-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1.5rem; }

/* ============================================================
   Comparison table
   ============================================================ */
.table-scroll { overflow-x: auto; }
table.compare {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
  font-size: 0.92rem;
  background: var(--paper);
}
table.compare caption { text-align: left; margin-bottom: 0.75rem; color: var(--ink-soft); font-size: 0.85rem; }
table.compare th, table.compare td {
  border: 1px solid var(--line);
  padding: 0.85rem 1rem;
  text-align: left;
  vertical-align: top;
}
table.compare thead th {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
  background: var(--paper-raised);
}
table.compare thead th.highlight {
  color: var(--accent);
}
table.compare tbody th {
  font-weight: 600;
  background: var(--paper-raised);
  white-space: nowrap;
}
table.compare td.highlight {
  background: color-mix(in srgb, var(--accent) 10%, var(--paper));
  font-weight: 600;
}
table.compare tfoot td, table.compare tfoot th {
  border: none;
}

/* Risk / benefit lists */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}
.two-col h3 { font-size: 1.1rem; margin-bottom: 1rem; }
.plain-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.9rem; }
.plain-list li { padding-left: 1.1rem; border-left: 2px solid var(--line); color: var(--ink-soft); font-size: 0.95rem; }
.plain-list.risk li { border-left-color: var(--blueprint); }
.plain-list.benefit li { border-left-color: var(--accent); }

/* ============================================================
   About / contact
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 3rem;
  align-items: start;
}
.headshot {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 4px;
  background: var(--paper-raised);
  border: 1px solid var(--line);
  object-fit: cover;
}
.headshot-placeholder {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 4px;
  background: var(--paper-raised);
  border: 1px dashed var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-align: center;
  padding: 1rem;
}

#contact { scroll-margin-top: 8rem; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
}
.contact-info dt {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  margin-top: 1.4rem;
}
.contact-info dt:first-child { margin-top: 0; }
.contact-info dd { margin: 0.25rem 0 0; font-size: 1.02rem; }

form.contact-form { display: grid; gap: 1.2rem; }
.form-row { display: grid; gap: 1.2rem; grid-template-columns: 1fr 1fr; }
.field { display: grid; gap: 0.4rem; }
.field label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
}
.field input, .field textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--paper);
  color: var(--ink);
}
.field input:focus, .field textarea:focus { outline: 2px solid var(--focus); outline-offset: 1px; }
.field textarea { resize: vertical; min-height: 130px; }
.hp-field { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.form-status {
  font-size: 0.9rem;
  padding: 0.85rem 1rem;
  border-radius: 3px;
  display: none;
}
.form-status.visible { display: block; }
.form-status.success { background: color-mix(in srgb, var(--blueprint) 15%, var(--paper-raised)); color: var(--ink); }
.form-status.error { background: color-mix(in srgb, #a3352f 15%, var(--paper-raised)); color: var(--ink); }

/* ============================================================
   Legal page
   ============================================================ */
.legal-shell { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 3rem; align-items: start; }
nav.legal-toc { position: sticky; top: 6rem; display: flex; flex-direction: column; gap: 0.15rem; }
nav.legal-toc a {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--ink-soft);
  text-decoration: none;
  padding: 0.4rem 0.6rem;
  border-left: 2px solid transparent;
}
nav.legal-toc a:hover { color: var(--accent); border-left-color: var(--accent); }

.legal-doc { max-width: var(--measure); margin-bottom: 4rem; scroll-margin-top: 6rem; }
.legal-doc h2 { font-size: 1.4rem; padding-bottom: 0.9rem; border-bottom: 1px solid var(--line); margin-bottom: 0.5rem; }
.legal-effective { color: var(--ink-soft); font-size: 0.85rem; margin: 0.75rem 0 1.75rem; font-family: var(--font-mono); }
.clause { margin-bottom: 1.5rem; scroll-margin-top: 6rem; }
.clause h3 { display: flex; gap: 0.6rem; align-items: baseline; font-size: 1rem; margin-bottom: 0.4rem; }
.clause h3 .mark { font-family: var(--font-mono); color: var(--accent); font-size: 0.85rem; }
.clause p { color: var(--ink-soft); font-size: 0.97rem; }

.fillin {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: color-mix(in srgb, var(--accent) 18%, var(--paper-raised));
  color: var(--accent);
  padding: 0.05em 0.4em;
  border-radius: 3px;
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 3rem 0 2rem;
  color: var(--ink-soft);
  font-size: 0.9rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer-grid h4 {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  margin: 0 0 0.9rem;
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.footer-grid a { color: var(--ink-soft); text-decoration: none; }
.footer-grid a:hover { color: var(--accent); }
.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.82rem;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .two-col { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .about-grid .headshot, .about-grid .headshot-placeholder { max-width: 260px; }
  .contact-grid { grid-template-columns: 1fr; }
  .legal-shell { grid-template-columns: 1fr; }
  nav.legal-toc {
    position: static;
    flex-direction: row;
    overflow-x: auto;
    border-bottom: 1px solid var(--line);
    padding-bottom: 0.75rem;
    margin-bottom: 1.5rem;
  }
  nav.legal-toc a { border-left: none; border-bottom: 2px solid transparent; flex: 0 0 auto; }
  nav.legal-toc a:hover { border-left-color: transparent; border-bottom-color: var(--accent); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 1.25rem 1.5rem;
    gap: 1rem;
  }
  .nav-links.open { display: flex; }
  .card-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-row { flex-direction: column; align-items: flex-start; }
}
