/* ==========================================================================
   DFSN.com global stylesheet
   Dynamic Frontier Solutions Network (DFSN LLC)
   Mobile-first. No external dependencies. No inline styles are used on any
   page, so this file is compatible with a strict Content Security Policy.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Self-hosted fonts (SIL Open Font License; see fonts/LICENSES.txt).
   font-display: optional means the page never re-flows when a font arrives:
   a font that is not ready at first paint is used from the next page view.
   -------------------------------------------------------------------------- */
@font-face {
  font-family: "Anton";
  src: url("fonts/anton.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: optional;
}

@font-face {
  font-family: "Inter";
  src: local("Inter"), url("fonts/inter-400.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: optional;
}

@font-face {
  font-family: "Inter";
  src: local("Inter Bold"), local("Inter-Bold"), url("fonts/inter-700.woff") format("woff");
  font-weight: 600 800;
  font-style: normal;
  font-display: optional;
}

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */
:root {
  --bg: #0F1115;
  --surface: #181C23;
  --surface-raised: #1F242D;
  --border: #2A303C;
  --border-control: #64748B;   /* 3:1+ against bg and surface for form controls */
  --text: #F1F5F9;
  --text-muted: #94A3B8;
  --green: #3B5E47;
  --green-hover: #4D7A5D;
  --amber: #D97706;
  --error: #FCA5A5;
  --success: #86EFAC;

  /* Inter and JetBrains Mono are used when installed or self-hosted.
     The system fallbacks render immediately, so no web-font swap occurs. */
  --font-sans: "Inter", "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI",
    Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", "Cascadia Mono",
    Menlo, Consolas, "Liberation Mono", monospace;

  --max-width: 72rem;
  --radius: 4px;
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4.5rem;
}

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

html {
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 var(--space-3);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

h1 { font-size: clamp(1.75rem, 6.5vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2rem); }
h3 { font-size: 1.1875rem; }
h4 { font-size: 1rem; }

p {
  margin: 0 0 var(--space-4);
}

ul,
ol {
  margin: 0 0 var(--space-4);
  padding-left: 1.25rem;
}

a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--amber);
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--amber);
}

:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
  border-radius: 2px;
}

[hidden] {
  display: none !important;
}

.mono {
  font-family: var(--font-mono);
  font-size: 0.875em;
  letter-spacing: 0;
}

.muted {
  color: var(--text-muted);
}

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

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-4);
}

.skip-link {
  position: absolute;
  left: var(--space-4);
  top: -4rem;
  z-index: 100;
  padding: var(--space-2) var(--space-4);
  background: var(--amber);
  color: var(--bg);
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--radius);
}

.skip-link:focus {
  top: var(--space-2);
  color: var(--bg);
}

/* --------------------------------------------------------------------------
   3. Header and navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: var(--space-3);
  min-height: 4rem;
  padding-top: var(--space-2);
  padding-bottom: var(--space-2);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  min-height: 2.75rem;
  color: var(--text);
  text-decoration: none;
}

.brand:hover {
  color: var(--text);
}

.brand-emblem {
  width: 2.5rem;
  height: 2.5rem;
  flex: none;
  margin-right: var(--space-3);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-name {
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: -0.005em;
}

.brand-entity {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: var(--space-2);
  min-height: 2.75rem;
  padding: 0 var(--space-3);
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-control);
  border-radius: var(--radius);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
}

.nav-toggle-icon {
  width: 1.125rem;
  height: 1.125rem;
}

.site-nav {
  grid-column: 1 / -1;
  width: 100%;
}

.site-nav ul {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: block;
  padding: var(--space-3) var(--space-2);
  color: var(--text);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover {
  color: var(--amber);
}

.site-nav a[aria-current="page"] {
  color: var(--amber);
  border-bottom-color: var(--amber);
}

/* The menu collapses below 80rem when JavaScript is available. init.js adds
   the class "js" to <html> before the page is painted, so the header does
   not change size after load. Without JavaScript the link list stays open. */
.js .nav-toggle {
  display: inline-flex;
}

.js .site-nav {
  display: none;
}

.js .site-nav.is-open {
  display: block;
}

@media (min-width: 80rem) {
  .header-inner {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .js .nav-toggle {
    display: none;
  }

  .site-nav,
  .js .site-nav {
    display: block;
    grid-column: auto;
    justify-self: end;
    width: auto;
  }

  .site-nav ul {
    flex-direction: row;
    align-items: center;
  }

  .site-nav a {
    padding: 0.75rem 0.5rem;
    font-size: 0.875rem;
  }
}

@media (min-width: 90rem) {
  .site-nav a {
    padding: 0.75rem;
  }
}

/* --------------------------------------------------------------------------
   4. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: var(--space-2) var(--space-5);
  border: 1px solid transparent;
  border-radius: var(--radius);
  font: inherit;
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--green);
  color: var(--text);
  border-color: var(--green-hover);
}

.btn-primary:hover {
  background: var(--green-hover);
  color: var(--text);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-control);
}

.btn-ghost:hover {
  border-color: var(--text);
  color: var(--text);
}

.btn[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

/* --------------------------------------------------------------------------
   5. Sections and shared components
   -------------------------------------------------------------------------- */
.section {
  padding: var(--space-7) 0;
  border-bottom: 1px solid var(--border);
}

.section-alt {
  background: #12151A;
}

.section-head {
  max-width: 46rem;
  margin-bottom: var(--space-6);
}

.eyebrow {
  display: block;
  margin-bottom: var(--space-3);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber);
}

.lede {
  font-size: 1.125rem;
  color: var(--text-muted);
}

.grid {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: 1fr;
}

@media (min-width: 48rem) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .section { padding: var(--space-8) 0; }
}

.card {
  display: flex;
  flex-direction: column;
  padding: var(--space-5);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.card > :last-child {
  margin-bottom: 0;
}

.card-index {
  margin-bottom: var(--space-3);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
}

.card p {
  color: var(--text-muted);
}

.notice {
  padding: var(--space-4) var(--space-5);
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--green);
  border-radius: var(--radius);
}

.notice > :last-child {
  margin-bottom: 0;
}

.tag {
  display: inline-block;
  padding: 0.125rem var(--space-2);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 2px;
  overflow-wrap: anywhere;
}

/* Definition-list fact tables used on entity cards and the hero. */
.facts {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-1) var(--space-4);
  margin: 0 0 var(--space-4);
}

.facts dt {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.facts dd {
  margin: 0 0 var(--space-3);
  color: var(--text);
}

@media (min-width: 30rem) {
  .facts {
    grid-template-columns: 8.5rem 1fr;
  }

  .facts dt {
    padding-top: 0.25rem;
  }
}

/* --------------------------------------------------------------------------
   6. Homepage
   -------------------------------------------------------------------------- */
.hero {
  padding: var(--space-7) 0;
  border-bottom: 1px solid var(--border);
}

.hero-inner {
  display: grid;
  gap: var(--space-6);
  grid-template-columns: 1fr;
  align-items: end;
}

.hero h1 {
  margin-bottom: var(--space-4);
}

.hero .lede {
  max-width: 48rem;
  margin-bottom: var(--space-5);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.hero-facts {
  padding: var(--space-5);
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 3px solid var(--green);
  border-radius: var(--radius);
}

.hero-facts .facts {
  margin: 0;
}

.hero-facts .facts dd:last-child {
  margin-bottom: 0;
}

@media (min-width: 60rem) {
  .hero {
    padding: var(--space-8) 0;
  }

  .hero-inner {
    grid-template-columns: 1.5fr 1fr;
  }
}

.entity-card {
  border-top: 3px solid var(--green);
}

.entity-card h3 {
  font-size: 1.25rem;
}

.entity-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin: auto 0 0;
  padding: var(--space-4) 0 0;
  list-style: none;
  border-top: 1px solid var(--border);
}

.entity-links a {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  overflow-wrap: anywhere;
}

.companion-list {
  display: grid;
  gap: var(--space-3);
  grid-template-columns: 1fr;
  margin: 0;
  padding: 0;
  list-style: none;
}

.companion-list li {
  padding: var(--space-4);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.companion-list .companion-name {
  display: block;
  margin-bottom: var(--space-1);
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 700;
}

.companion-list .companion-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
}

@media (min-width: 48rem) {
  .companion-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

.founder {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: 1fr;
}

.founder-id {
  padding: var(--space-5);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.founder-photo {
  display: block;
  width: 100%;
  height: auto;
  margin-bottom: var(--space-4);
  border-radius: 2px;
}

.founder-id .founder-name {
  margin-bottom: var(--space-1);
  font-size: 1.25rem;
}

.founder-id .founder-role {
  margin-bottom: var(--space-4);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--amber);
}

.plain-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.plain-list li {
  padding: var(--space-2) 0;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.9375rem;
}

@media (min-width: 48rem) {
  .founder {
    grid-template-columns: 20rem 1fr;
  }
}

/* --------------------------------------------------------------------------
   7. Page header for interior pages
   -------------------------------------------------------------------------- */
.page-head {
  padding: var(--space-7) 0 var(--space-6);
  border-bottom: 1px solid var(--border);
}

.page-head h1 {
  font-size: clamp(1.875rem, 5vw, 2.75rem);
}

.page-head .lede {
  max-width: 46rem;
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   8. Legal page
   -------------------------------------------------------------------------- */
.legal-layout > *,
.contact-layout > *,
.hero-inner > *,
.founder > *,
.grid > * {
  min-width: 0;
}

.legal-layout {
  display: grid;
  gap: var(--space-6);
  grid-template-columns: 1fr;
  padding: var(--space-6) 0 var(--space-7);
}

.toc {
  padding: var(--space-4) var(--space-5);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  align-self: start;
}

.toc h2 {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.toc ol {
  margin: 0;
  padding-left: 1.25rem;
}

.toc li {
  padding: var(--space-1) 0;
  font-size: 0.9375rem;
}

.legal-body section {
  padding-bottom: var(--space-6);
  margin-bottom: var(--space-6);
  border-bottom: 1px solid var(--border);
}

.legal-body section:last-child {
  border-bottom: 0;
  margin-bottom: 0;
}

.legal-body h3 {
  margin-top: var(--space-5);
}

.legal-body p,
.legal-body li {
  max-width: 46rem;
}

.legal-body li {
  margin-bottom: var(--space-2);
}

.updated {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.table-wrap {
  overflow-x: auto;
  margin-bottom: var(--space-4);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

table {
  width: 100%;
  min-width: 34rem;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

caption {
  padding: var(--space-3) var(--space-4);
  text-align: left;
  font-weight: 600;
  background: var(--surface-raised);
  border-bottom: 1px solid var(--border);
}

th,
td {
  padding: var(--space-3) var(--space-4);
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
}

thead th {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--surface-raised);
}

tbody tr:last-child th,
tbody tr:last-child td {
  border-bottom: 0;
}

tbody th {
  font-weight: 600;
}

@media (min-width: 60rem) {
  .legal-layout {
    grid-template-columns: 16rem 1fr;
  }

  .toc {
    position: sticky;
    top: 5.5rem;
  }
}

/* --------------------------------------------------------------------------
   9. Contact page and forms
   -------------------------------------------------------------------------- */
.contact-layout {
  display: grid;
  gap: var(--space-6);
  grid-template-columns: 1fr;
  padding: var(--space-6) 0 var(--space-7);
}

@media (min-width: 60rem) {
  .contact-layout {
    grid-template-columns: 1.4fr 1fr;
  }
}

.field {
  margin-bottom: var(--space-5);
}

.field label,
.field .label {
  display: block;
  margin-bottom: var(--space-2);
  font-weight: 600;
  font-size: 0.9375rem;
}

.field .hint {
  display: block;
  margin-bottom: var(--space-2);
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.required-mark {
  color: var(--amber);
}

input[type="text"],
input[type="email"],
input[type="search"],
select,
textarea {
  display: block;
  width: 100%;
  min-height: 2.75rem;
  padding: var(--space-2) var(--space-3);
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border-control);
  border-radius: var(--radius);
  font: inherit;
}

textarea {
  min-height: 9rem;
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: var(--text-muted);
  opacity: 1;
}

input[aria-invalid="true"],
select[aria-invalid="true"],
textarea[aria-invalid="true"] {
  border-color: var(--error);
  border-width: 2px;
}

.field-error {
  display: block;
  margin-top: var(--space-2);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--error);
}

.form-status {
  margin-bottom: var(--space-5);
  padding: var(--space-4) var(--space-5);
  background: var(--surface);
  border: 1px solid var(--border-control);
  border-left-width: 4px;
  border-radius: var(--radius);
}

.form-status.is-error {
  border-left-color: var(--error);
}

.form-status.is-success {
  border-left-color: var(--success);
}

.form-status > :last-child {
  margin-bottom: 0;
}

.routing-note {
  margin-top: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--green);
  border-radius: var(--radius);
  font-size: 0.9375rem;
}

.routing-note > :last-child {
  margin-bottom: 0;
}

/* Spam-screening field. Kept out of view and out of the tab order. */
.field-screen {
  position: absolute;
  left: -100vw;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.routing-table {
  margin: 0;
  padding: 0;
  list-style: none;
}

.routing-table li {
  padding: var(--space-3) 0;
  border-top: 1px solid var(--border);
}

.routing-table li:first-child {
  border-top: 0;
  padding-top: 0;
}

.routing-table .routing-topic {
  display: block;
  font-weight: 600;
}

.routing-table .routing-dest {
  display: block;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.aside-stack {
  display: grid;
  gap: var(--space-4);
  align-content: start;
}

address {
  font-style: normal;
}

/* --------------------------------------------------------------------------
   Institutional components: metrics strip, division grid, status tags,
   regulatory callouts
   -------------------------------------------------------------------------- */
.metrics {
  padding: var(--space-5) 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.metrics-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-5) var(--space-4);
  margin: 0;
}

.metric {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  padding-left: var(--space-4);
  border-left: 3px solid var(--green);
}

.metric dd {
  margin: 0 0 var(--space-1);
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.1;
}

.metric dt {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

@media (min-width: 48rem) {
  .metrics-list { grid-template-columns: repeat(4, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 72rem) {
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.tag-amber {
  align-self: flex-start;
  margin-bottom: var(--space-3);
  color: var(--amber);
  border-color: var(--amber);
  letter-spacing: 0.08em;
}

.strip-title {
  margin: var(--space-6) 0 var(--space-3);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.track-audience {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
}

.facts.facts-stacked {
  grid-template-columns: 1fr;
}

.callout {
  margin: 0 0 var(--space-4);
  padding: var(--space-4) var(--space-5);
  background: var(--surface);
  border: 1px solid var(--amber);
  border-left-width: 4px;
  border-radius: var(--radius);
}

.callout > :last-child {
  margin-bottom: 0;
}

.callout-title {
  margin: 0 0 var(--space-2);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--amber);
}

.regulatory-box {
  display: flex;
  flex-direction: column;
  padding: var(--space-5);
  background: #12151A;
  border: 2px solid var(--amber);
  border-radius: var(--radius);
}

.regulatory-box > :last-child {
  margin-bottom: 0;
}

.notice-spaced {
  margin-top: var(--space-5);
}

/* --------------------------------------------------------------------------
   Graphics: hero and page-header backgrounds, division icons, map
   A dark overlay sits between each background image and the text so the
   text keeps its contrast ratio.
   -------------------------------------------------------------------------- */
@media (min-width: 48rem) {
  .hero {
    background-color: var(--bg);
    background-image:
      linear-gradient(90deg, #0F1115 0%, rgba(15, 17, 21, 0.94) 45%, rgba(15, 17, 21, 0.45) 100%),
      url("img/hero.webp");
    background-size: cover;
    background-position: right center;
    background-repeat: no-repeat;
  }

  .page-head {
    background-color: var(--bg);
    background-image:
      linear-gradient(90deg, #0F1115 0%, rgba(15, 17, 21, 0.9) 50%, rgba(15, 17, 21, 0.55) 100%),
      url("img/contours.webp");
    background-size: cover;
    background-position: center;
  }
}

.entity-logo {
  align-self: flex-start;
  width: auto;
  height: 5rem;
  margin-bottom: var(--space-4);
  border-radius: var(--radius);
}

.division-icon {
  width: 3.5rem;
  height: 3.5rem;
  margin-bottom: var(--space-4);
}

.intl-top {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: 1fr;
  align-items: center;
  margin-bottom: var(--space-6);
}

.intl-top .section-head {
  margin-bottom: 0;
}

.map-figure {
  max-width: 20rem;
  margin: 0;
  padding: var(--space-3);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.map-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 2px;
}

.photo-row {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: 1fr;
  align-items: start;
  margin-top: var(--space-6);
}

@media (min-width: 48rem) {
  .photo-row {
    grid-template-columns: 3fr 2fr;
  }
}

.photo-figure {
  margin: 0;
  padding: var(--space-3);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.photo-wide {
  margin-top: var(--space-4);
}

.dist-map {
  margin-bottom: var(--space-5);
}

.dist-map figcaption {
  max-width: 60rem;
}

.photo-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 2px;
}

.photo-figure figcaption,
.map-figure figcaption {
  margin-top: var(--space-2);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  line-height: 1.5;
  color: var(--text-muted);
}

@media (min-width: 60rem) {
  .intl-top {
    grid-template-columns: 1fr 18rem;
    gap: var(--space-7);
  }
}

/* --------------------------------------------------------------------------
   10. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  padding: var(--space-6) 0;
  background: #0B0D10;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.footer-grid {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: 1fr;
}

.footer-grid h2 {
  margin-bottom: var(--space-2);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
}

.footer-grid p {
  margin-bottom: var(--space-2);
}

.footer-links {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links li {
  padding: var(--space-1) 0;
}

.footer-links a {
  display: inline-block;
  padding: var(--space-1) 0;
  color: var(--text);
}

.footer-links a:hover {
  color: var(--amber);
}

.footer-base {
  margin-top: var(--space-5);
  padding-top: var(--space-4);
  border-top: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

.footer-base p {
  margin: 0;
}

@media (min-width: 48rem) {
  .footer-grid {
    grid-template-columns: 1.4fr 1.4fr 1fr;
  }
}

/* --------------------------------------------------------------------------
   Responsive and compatibility layer
   Phone: below 40rem. Tablet: 40rem to 63.9375rem. Desktop: 64rem and wider.
   Spacing between flex items uses margins, not the flex "gap" property, so
   older browsers lay the items out the same way.
   -------------------------------------------------------------------------- */
body {
  overflow-wrap: break-word;
  word-wrap: break-word;
}

p,
li,
dd,
figcaption {
  text-wrap: pretty;
}

img {
  max-width: 100%;
}

.cell-line {
  display: block;
}

/* Space for the notch and rounded corners on phones held sideways. */
.container {
  padding-left: max(1rem, env(safe-area-inset-left));
  padding-right: max(1rem, env(safe-area-inset-right));
}

@media (min-width: 48rem) {
  .container {
    padding-left: max(1.5rem, env(safe-area-inset-left));
    padding-right: max(1.5rem, env(safe-area-inset-right));
  }
}

/* Focus ring for browsers without :focus-visible. */
:focus {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
}

:focus:not(:focus-visible) {
  outline: none;
}

/* A sticky header leaves too little room on a phone held sideways. */
@media (max-height: 30rem) {
  .site-header {
    position: static;
  }

  html {
    scroll-padding-top: 1rem;
  }
}

/* Touch targets: every standalone link and control is at least 44px tall. */
.skip-link {
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
}

.nav-toggle-icon {
  margin-right: var(--space-2);
}

.nav-toggle {
  gap: 0;
}

.site-nav a {
  min-height: 2.75rem;
  display: flex;
  align-items: center;
}

.site-nav ul {
  gap: 0;
}

.entity-links {
  gap: 0;
}

.entity-links li {
  margin-right: var(--space-5);
}

.entity-links a,
.companion-name a,
.footer-links a,
.toc a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding-top: 0;
  padding-bottom: 0;
}

.footer-links li,
.toc li {
  padding: 0;
}

.toc a {
  line-height: 1.3;
  padding-top: var(--space-2);
  padding-bottom: var(--space-2);
}

.cta-row {
  gap: 0;
  margin: calc(var(--space-3) / -2);
}

.cta-row > * {
  margin: calc(var(--space-3) / 2);
}

@media (max-width: 29.9375rem) {
  .cta-row .btn {
    flex: 1 1 100%;
  }
}

/* Minimum text size: 12px for labels and captions. */
.eyebrow,
.facts dt,
.card-index,
.strip-title,
.footer-grid h2,
.toc h2,
thead th,
.photo-figure figcaption,
.map-figure figcaption,
.brand-entity,
.footer-base,
.tag {
  font-size: 0.75rem;
}

/* Card grids */
@media (max-width: 59.9375rem) {
  .grid-2 {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 39.9375rem) {
  .grid-3,
  .grid-4 {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (min-width: 40rem) and (max-width: 63.9375rem) {
  .grid-3,
  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid-3 > :last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
}

@media (min-width: 64rem) and (max-width: 71.9375rem) {
  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 40rem) {
  .companion-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.founder-photo {
  max-width: 24rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  margin-bottom: var(--space-3);
  font-size: 0.9375rem;
  font-weight: 600;
}

.social-link img {
  width: 1.5rem;
  height: 1.5rem;
  margin-right: var(--space-2);
  border-radius: 3px;
}

.founder-headline {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--amber);
}

.map-figure {
  justify-self: start;
}

/* Metrics strip: one column on phones so the labels do not overflow. */
.metrics-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 29.9375rem) {
  .metrics-list {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-3);
  }

  .metric {
    flex-direction: row-reverse;
    justify-content: flex-end;
    align-items: baseline;
  }

  .metric dd {
    min-width: 5.5rem;
    margin: 0;
    font-size: 1.5rem;
  }
}

@media (min-width: 48rem) {
  .metrics-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Line icons drawn inline. Decorative: hidden from screen readers. */
.ui-icon,
.h-icon {
  fill: none;
  stroke: var(--text);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

.ui-icon .acc,
.h-icon .acc {
  stroke: var(--amber);
}

.ui-icon {
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: var(--space-4);
}

.h-icon {
  width: 1.25em;
  height: 1.25em;
  margin-right: 0.45em;
  vertical-align: -0.22em;
}

/* Marker on links that leave dfsn.com. */
a[rel~="noopener"]::after {
  content: "";
  display: inline-block;
  width: 0.65em;
  height: 0.65em;
  margin-left: 0.3em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 9l6-6M4.500 3H9v4.500' fill='none' stroke='%2394A3B8' stroke-width='1.500'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* Phones: smaller images. Photographs are cropped to a wide 16:9 frame,
   the map and the founder photograph are reduced, and logos and icons
   are scaled down. */
@media (max-width: 39.9375rem) {
  .photo-figure {
    padding: var(--space-2);
  }

  .photo-figure img {
    aspect-ratio: 16 / 9;
    object-fit: cover;
    object-position: center 45%;
  }

  .photo-row {
    margin-top: var(--space-5);
    gap: var(--space-3);
  }

  .photo-wide {
    margin-top: var(--space-3);
  }

  .map-figure {
    max-width: 11rem;
    padding: var(--space-2);
  }

  .founder-photo {
    max-width: 8.5rem;
  }

  .entity-logo {
    height: 3.25rem;
    margin-bottom: var(--space-3);
  }

  .division-icon {
    width: 2.5rem;
    height: 2.5rem;
    margin-bottom: var(--space-3);
  }

  .ui-icon {
    width: 2rem;
    height: 2rem;
    margin-bottom: var(--space-3);
  }
}

/* Tables: stacked rows on phones, a normal table from 40rem. */
table {
  min-width: 0;
}

@media (max-width: 39.9375rem) {
  .table-wrap {
    overflow-x: visible;
  }

  table,
  tbody,
  tr,
  th,
  td {
    display: block;
    width: auto;
  }

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

  tbody tr {
    padding: var(--space-3) var(--space-4);
    border-bottom: 1px solid var(--border);
  }

  tbody tr:last-child {
    border-bottom: 0;
  }

  tbody th,
  tbody td {
    padding: 0;
    border-bottom: 0;
  }

  tbody th {
    margin-bottom: var(--space-2);
    font-size: 1rem;
  }

  tbody td {
    margin-bottom: var(--space-2);
  }

  tbody td::before {
    content: attr(data-label);
    display: block;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
  }
}

@media (min-width: 40rem) {
  table {
    min-width: 34rem;
  }
}

/* --------------------------------------------------------------------------
   Field theme
   Heavy condensed uppercase headings, square corners, thick rules, solid
   status tags. Colors are unchanged from the design tokens.
   -------------------------------------------------------------------------- */
:root {
  --radius: 0;
  --font-display: "Anton", Impact, Haettenschweiler, "DIN Condensed", "Avenir Next Condensed",
    "HelveticaNeue-CondensedBlack", "Roboto Condensed", sans-serif-condensed, "Arial Narrow", sans-serif;
}

h1,
h2,
.card h3,
.comp h3,
.ops-list h3,
.founder-name,
.metric dd,
.callout-title {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.08;
}

h1 {
  font-size: clamp(2.25rem, 8.5vw, 4.75rem);
}

.page-head h1 {
  font-size: clamp(2rem, 7vw, 3.5rem);
}

h2 {
  font-size: clamp(1.5rem, 5vw, 2.75rem);
}

.card h3,
.comp h3,
.ops-list h3,
.entity-card h3 {
  font-size: 1.375rem;
  letter-spacing: 0.025em;
}

.founder-id .founder-name {
  font-size: 1.625rem;
}

.callout-title {
  font-size: 1.0625rem;
  letter-spacing: 0.05em;
}

/* Section headings carry a thick rule on the left. */
.section-head {
  padding-left: var(--space-4);
  border-left: 6px solid var(--green);
}

.intl-top .section-head {
  align-self: center;
}

.eyebrow {
  font-weight: 700;
  letter-spacing: 0.14em;
}

/* Header and footer rules */
.site-header {
  border-bottom: 2px solid var(--green);
}

.site-nav a {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

@media (min-width: 80rem) {
  .site-nav a {
    font-size: 0.75rem;
    white-space: nowrap;
  }
}

.site-header .container {
  max-width: 84rem;
}

@media (min-width: 90rem) {
  .site-nav a {
    font-size: 0.8125rem;
  }
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.125rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.site-footer {
  border-top: 4px solid var(--green);
}

/* Hero */
.hero {
  padding: var(--space-7) 0 var(--space-7);
  border-bottom: 0;
}

.hero .lede {
  font-size: 1.1875rem;
  color: var(--text);
}

@media (min-width: 60rem) {
  .hero {
    padding: 6rem 0 5.5rem;
  }
}

/* Buttons: square, uppercase, heavier */
.btn {
  min-height: 3rem;
  padding: var(--space-3) var(--space-5);
  border-width: 2px;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.btn-ghost {
  border-color: var(--text);
}

.btn-ghost:hover {
  background: var(--text);
  color: var(--bg);
}

/* Metrics strip */
.metrics {
  border-top: 4px solid var(--amber);
  border-bottom: 1px solid var(--border);
}

.metric {
  border-left-width: 4px;
}

.metric dd {
  font-size: 2.75rem;
  line-height: 1;
}

.metric dt {
  font-weight: 600;
  font-size: 0.8125rem;
}

@media (max-width: 29.9375rem) {
  .metric dd {
    min-width: 5.75rem;
    font-size: 2rem;
  }
}

/* Cards */
.card {
  border-top: 4px solid var(--green);
}

.entity-card {
  border-top-width: 4px;
}

.tag-amber {
  background: var(--amber);
  color: var(--bg);
  border-color: var(--amber);
  font-weight: 700;
  letter-spacing: 0.1em;
}

.card-index {
  color: var(--amber);
  font-weight: 700;
}

.facts dt {
  font-weight: 700;
}

.notice,
.routing-note {
  border-left-width: 6px;
}

.callout {
  border-width: 2px;
  border-left-width: 6px;
}

/* Core competencies */
.comp {
  padding: var(--space-5) 0 0;
  border-top: 2px solid var(--border-control);
}

.comp p {
  margin: 0;
  color: var(--text-muted);
}

.comp .ui-icon {
  margin-bottom: var(--space-3);
}

/* Wilderness operations: numbered list */
.ops-list {
  margin: 0 0 var(--space-6);
  padding: 0;
  list-style: none;
  counter-reset: ops;
  border-top: 2px solid var(--border-control);
}

.ops-list li {
  position: relative;
  padding: var(--space-5) 0 var(--space-5) 4rem;
  border-bottom: 1px solid var(--border);
  counter-increment: ops;
}

.ops-list li::before {
  content: "0" counter(ops);
  position: absolute;
  left: 0;
  top: var(--space-5);
  font-family: var(--font-display);
  font-size: 2rem;
  line-height: 1;
  color: var(--amber);
}

.ops-list h3 {
  margin-bottom: var(--space-2);
}

.ops-list p {
  max-width: 48rem;
  margin: 0;
  color: var(--text-muted);
}

@media (min-width: 60rem) {
  .ops-list li {
    display: grid;
    grid-template-columns: 20rem minmax(0, 1fr);
    column-gap: var(--space-6);
    align-items: start;
    padding-left: 5rem;
  }

  .ops-list h3 {
    margin: 0;
  }
}

/* Long legal text keeps normal-case subheadings for readability. */
.legal-body h3 {
  font-family: var(--font-sans);
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
}

/* --------------------------------------------------------------------------
   Commercial layout layer
   Hero fact sheet, proof strip, operating thesis, brand plates, corridor
   ledger, field documentation grid, hover states, tabular numerals.
   -------------------------------------------------------------------------- */
.proof-figure,
.facts dd,
.ledger dd,
.updated,
.footer-base,
.ops-list li::before {
  font-variant-numeric: tabular-nums;
}

@media (min-width: 60rem) {
  .section {
    padding: 5.5rem 0;
  }
}

@media (min-width: 60rem) {
  .hero h1 {
    font-size: clamp(2.5rem, 5.2vw, 4.5rem);
  }
}

/* Hero fact sheet */
.hero-inner {
  align-items: center;
}

.hero-facts {
  background: rgba(24, 28, 35, 0.92);
  border: 1px solid var(--border);
  border-top: 4px solid var(--amber);
}

.factsheet-title {
  margin: 0 0 var(--space-4);
  font-family: var(--font-display);
  font-size: 1.125rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero-facts .facts {
  grid-template-columns: 1fr;
}

.hero-facts .facts dd {
  margin-bottom: var(--space-3);
  font-weight: 600;
}

@media (min-width: 60rem) {
  .hero-inner {
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    gap: var(--space-7);
  }
}

/* Proof strip */
.proof-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-5);
  margin: 0;
  padding: 0;
  list-style: none;
}

.proof {
  display: flex;
  flex-direction: column;
  padding-left: var(--space-4);
  border-left: 4px solid var(--green);
}

.proof-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber);
}

.proof-figure {
  margin: var(--space-1) 0 var(--space-2);
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 7.5vw, 2.25rem);
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.proof-text {
  font-size: 0.875rem;
  color: var(--text-muted);
}

@media (min-width: 40rem) {
  .proof-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 72rem) {
  .proof-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Operating thesis */
.thesis-body {
  max-width: 52rem;
}

.thesis-body p {
  font-size: 1.1875rem;
  line-height: 1.6;
}

.thesis-body p + p {
  font-size: 1rem;
  color: var(--text-muted);
}

/* Portfolio cards: one brand plate per business */
.plate {
  display: flex;
  align-items: center;
  min-height: 4.5rem;
  margin: calc(var(--space-5) * -1) calc(var(--space-5) * -1) var(--space-5);
  padding: var(--space-3) var(--space-5);
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.plate-mark {
  width: clamp(2.75rem, 13vw, 3.75rem);
  height: clamp(2.75rem, 13vw, 3.75rem);
  flex: none;
  margin-right: var(--space-4);
}

.plate-name {
  min-width: 0;
  font-family: var(--font-display);
  font-size: clamp(1.125rem, 5.4vw, 1.75rem);
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.entity-card h3 {
  font-family: var(--font-sans);
  font-size: clamp(0.9375rem, 3.6vw, 1.0625rem);
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
  line-height: 1.3;
}

.entity-cta {
  margin-top: auto;
  padding-top: var(--space-2);
}

.entity-cta .btn {
  width: 100%;
}

.entity-links {
  margin-top: var(--space-4);
  padding-top: var(--space-2);
}

.companion-list li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: var(--space-4);
  align-items: center;
}

.companion-mark {
  grid-row: 1 / span 2;
  width: 3rem;
  height: 3rem;
}

/* An odd last portfolio card spans the full row instead of leaving a gap. */
@media (min-width: 60rem) {
  #portfolio .grid-2 > .entity-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
}

/* Corridor: map beside the trade and deployment ledger */
.corridor {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-4);
  margin-bottom: var(--space-5);
}

.corridor .dist-map {
  margin: 0;
}

.ledger-panel {
  padding: var(--space-5);
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 4px solid var(--amber);
}

.ledger-panel h3 {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.ledger {
  margin: 0;
}

.ledger dt {
  padding-top: var(--space-3);
  border-top: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber);
}

.ledger dd {
  margin: var(--space-1) 0 var(--space-3);
  font-size: 0.9375rem;
}

@media (min-width: 60rem) {
  .corridor {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    align-items: start;
  }
}

/* Field documentation: three photographs in one frame size */
.field-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-4);
}

.field-grid .photo-figure {
  padding: 0;
  border: 1px solid var(--border);
}

.field-grid .photo-figure img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center 40%;
  border-radius: 0;
}

.field-grid .photo-figure img.pos-low {
  object-position: center 62%;
}

.field-grid figcaption {
  margin: 0;
  padding: var(--space-3);
}

.cap-head {
  display: block;
  margin-bottom: var(--space-1);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--amber);
}

@media (min-width: 48rem) {
  .field-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Hover states: border and surface change only, no glow */
.card,
.comp,
.photo-figure,
.ledger-panel,
.companion-list li {
  transition: border-color 150ms ease, background-color 150ms ease;
}

.card:hover,
.companion-list li:hover,
.field-grid .photo-figure:hover {
  background-color: var(--surface-raised);
  border-color: var(--green);
}

.entity-links a,
.companion-name a,
.footer-links a {
  transition: color 150ms ease;
}

/* --------------------------------------------------------------------------
   Texture and depth layer
   Textures: film grain (inline SVG noise), diagonal hatching, and the
   topographic contour image. Depth: graded surfaces, layered shadows, an
   inner highlight on raised elements, and a small lift on hover.
   All textures sit behind the text, and the contour image is always under
   a dark overlay, so text contrast is unchanged.
   -------------------------------------------------------------------------- */
:root {
  --tex-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --tex-hatch: repeating-linear-gradient(135deg, rgba(241, 245, 249, 0.035) 0, rgba(241, 245, 249, 0.035) 1px, transparent 1px, transparent 7px);
  --shadow-raised: inset 0 1px 0 rgba(241, 245, 249, 0.06), 0 1px 2px rgba(0, 0, 0, 0.5), 0 16px 32px -14px rgba(0, 0, 0, 0.75);
  --shadow-lifted: inset 0 1px 0 rgba(241, 245, 249, 0.09), 0 2px 4px rgba(0, 0, 0, 0.5), 0 26px 44px -16px rgba(0, 0, 0, 0.85);
  --shadow-inset: inset 0 18px 28px -18px rgba(0, 0, 0, 0.8), inset 0 -18px 28px -18px rgba(0, 0, 0, 0.8);
}

body {
  background-image: var(--tex-grain);
}

/* Header floats above the page. */
.site-header {
  background-image: var(--tex-grain), linear-gradient(180deg, #14171C 0%, #0F1115 100%);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.55);
}

/* Hero: more of the contour image shows, with a vignette at the edges. */
.hero {
  position: relative;
  box-shadow: inset 0 -30px 40px -30px rgba(0, 0, 0, 0.85);
}

@media (min-width: 48rem) {
  .hero {
    background-image:
      var(--tex-grain),
      radial-gradient(ellipse at 30% 45%, rgba(15, 17, 21, 0) 0%, rgba(8, 9, 12, 0.55) 100%),
      linear-gradient(90deg, #0F1115 0%, rgba(15, 17, 21, 0.93) 42%, rgba(15, 17, 21, 0.3) 100%),
      url("img/hero.webp");
  }

  .page-head {
    background-image:
      var(--tex-grain),
      linear-gradient(90deg, #0F1115 0%, rgba(15, 17, 21, 0.9) 45%, rgba(15, 17, 21, 0.4) 100%),
      url("img/contours.webp");
    box-shadow: inset 0 -24px 32px -24px rgba(0, 0, 0, 0.8);
  }
}

.hero h1,
.page-head h1 {
  text-shadow: 0 3px 0 rgba(0, 0, 0, 0.55);
}

/* Recessed bands: hatched proof strip, contour-textured alternate sections. */
.metrics {
  background-color: var(--surface);
  background-image: var(--tex-grain), var(--tex-hatch), linear-gradient(180deg, #1B2028 0%, #14181E 100%);
  box-shadow: var(--shadow-inset);
}

.section-alt {
  background-color: #12151A;
  background-image:
    var(--tex-grain),
    linear-gradient(180deg, rgba(18, 21, 26, 0.9) 0%, rgba(18, 21, 26, 0.95) 100%),
    url("img/contours.webp");
  background-size: auto, auto, 64rem auto;
  box-shadow: var(--shadow-inset);
}

.site-footer {
  background-color: #0B0D10;
  background-image:
    var(--tex-grain),
    linear-gradient(180deg, rgba(11, 13, 16, 0.9) 0%, rgba(11, 13, 16, 0.97) 100%),
    url("img/contours.webp");
  background-size: auto, auto, 64rem auto;
  box-shadow: inset 0 20px 30px -20px rgba(0, 0, 0, 0.85);
}

/* Raised surfaces */
.card,
.hero-facts,
.ledger-panel,
.notice,
.callout,
.toc,
.table-wrap,
.form-status,
.companion-list li,
.founder-id,
.photo-figure {
  background-image: var(--tex-grain), linear-gradient(180deg, #1E232C 0%, #161A20 100%);
  box-shadow: var(--shadow-raised);
}

.card,
.companion-list li,
.field-grid .photo-figure {
  transition: border-color 150ms ease, box-shadow 200ms ease, transform 200ms ease;
}

.card:hover,
.companion-list li:hover,
.field-grid .photo-figure:hover {
  background-image: var(--tex-grain), linear-gradient(180deg, #232934 0%, #1A1F26 100%);
  box-shadow: var(--shadow-lifted);
  transform: translateY(-3px);
}

.hero-facts {
  background-image: var(--tex-grain), linear-gradient(180deg, rgba(30, 35, 44, 0.96) 0%, rgba(22, 26, 32, 0.96) 100%);
  box-shadow: var(--shadow-lifted);
}

/* Brand plates and panel headers: hatched, darker than the card body. */
.plate {
  background-color: var(--bg);
  background-image: var(--tex-hatch), linear-gradient(180deg, #0C0E11 0%, #12151A 100%);
  box-shadow: inset 0 -10px 14px -10px rgba(0, 0, 0, 0.9);
}

caption,
thead th {
  background-image: var(--tex-hatch);
}

.plate-mark,
.companion-mark,
.founder-photo,
.brand-emblem {
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.6));
}

/* Photographs and the map sit in a recessed frame. */
.photo-figure img {
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.6);
}

/* Buttons: graded face, highlight on the top edge, hard shadow beneath. */
.btn-primary {
  background-color: var(--green);
  background-image: linear-gradient(180deg, #44694F 0%, #35543F 100%);
  box-shadow: inset 0 1px 0 rgba(241, 245, 249, 0.16), 0 3px 0 #1F3226, 0 10px 18px -8px rgba(0, 0, 0, 0.8);
}

.btn-primary:hover {
  background-image: linear-gradient(180deg, #4D7A5D 0%, #3B5E47 100%);
}

.btn-primary:active {
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.5);
  transform: translateY(2px);
}

.btn-ghost {
  background-color: rgba(15, 17, 21, 0.6);
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.6), 0 10px 18px -8px rgba(0, 0, 0, 0.8);
}

.tag-amber {
  background-image: linear-gradient(180deg, #E2820F 0%, #C96C04 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 2px 4px rgba(0, 0, 0, 0.5);
}

.nav-toggle,
input[type="text"],
input[type="email"],
select,
textarea {
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.55);
}

/* Section rules read as raised bars. */
.section-head {
  border-image: linear-gradient(180deg, #4D7A5D 0%, #2C4735 100%) 1;
}

.proof,
.metric {
  border-image: linear-gradient(180deg, #4D7A5D 0%, #2C4735 100%) 1;
}

.ops-list li::before,
.proof-figure {
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.6);
}

/* --------------------------------------------------------------------------
   Wilderness and exploration motifs
   Map graticule on plain sections, ridge-line silhouette under the hero,
   summit marker on section labels, survey corner marks on cards, compass
   rose, north arrow on the map, coordinates in monospace, and a mountain
   photograph behind the Wilderness Operations heading.
   -------------------------------------------------------------------------- */
:root {
  --tex-grid:
    linear-gradient(rgba(148, 163, 184, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.045) 1px, transparent 1px);
}

/* Map graticule behind the plain sections */
.section:not(.section-alt) {
  background-image: var(--tex-grain), var(--tex-grid);
  background-size: auto, 5rem 5rem, 5rem 5rem;
}

/* Ridge-line silhouette where the hero meets the proof strip */
.hero {
  padding-bottom: 6.5rem;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 4.5rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M0 120V78l70-30 55 22 85-52 60 34 45-20 95 46 70-58 80 40 60-28 90 50 75-44 65 26 85-48 70 38 60-22 95 36 40-14V120z' fill='%2312151A'/%3E%3Cpath d='M0 120V100l90-26 60 16 100-40 70 30 110-46 80 36 90-30 100 44 85-38 75 24 110-42 90 34 80-22 60 20V120z' fill='%231B2028'/%3E%3C/svg%3E") center bottom / 100% 100% no-repeat;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
}

.metrics {
  border-top: 0;
  box-shadow: inset 0 -18px 28px -18px rgba(0, 0, 0, 0.8);
}

@media (min-width: 60rem) {
  .hero {
    padding-bottom: 8.5rem;
  }

  .hero::after {
    height: 6.5rem;
  }
}

/* Summit marker before section labels */
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 1.15em;
  height: 0.85em;
  margin-right: 0.55em;
  vertical-align: -0.05em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 12'%3E%3Cpath d='M1 11l5-9 3 5 2-3 4 7z' fill='none' stroke='%23D97706' stroke-width='1.6' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Survey corner marks on cards and panels */
.card,
.hero-facts,
.ledger-panel {
  position: relative;
}

.card::after,
.hero-facts::after,
.ledger-panel::after {
  content: "";
  position: absolute;
  right: 0.5rem;
  bottom: 0.5rem;
  width: 0.75rem;
  height: 0.75rem;
  border-right: 2px solid var(--border-control);
  border-bottom: 2px solid var(--border-control);
  pointer-events: none;
}

.card:hover::after {
  border-color: var(--amber);
}

/* Coordinates */
.coord {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--amber);
  font-variant-numeric: tabular-nums;
}

/* Compass rose beside the operating thesis (tablet and desktop only, and
   placed clear of the text) */
@media (min-width: 60rem) {
  .section.thesis {
    background-image: var(--tex-grain), url("img/compass.svg"), var(--tex-grid);
    background-size: auto, 22rem 22rem, 5rem 5rem, 5rem 5rem;
    background-position: 0 0, right -6rem center, 0 0, 0 0;
    background-repeat: repeat, no-repeat, repeat, repeat;
  }

  .thesis-body {
    max-width: 40rem;
  }
}

@media (min-width: 80rem) {
  .section.thesis {
    background-size: auto, 30rem 30rem, 5rem 5rem, 5rem 5rem;
    background-position: 0 0, right 3% center, 0 0, 0 0;
  }
}

/* North arrow on the distribution map */
.dist-map {
  position: relative;
}

.dist-map::before {
  content: "";
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 1.5rem;
  height: 2.15rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 40'%3E%3Cpath d='M14 3l8 20h-16z' fill='%23D97706'/%3E%3Cpath d='M14 23v6' stroke='%2394A3B8' stroke-width='1.5'/%3E%3Cpath d='M9 39V31l10 8V31' fill='none' stroke='%23F1F5F9' stroke-width='1.8'/%3E%3C/svg%3E") center / contain no-repeat;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.8));
  pointer-events: none;
}

/* Mountain photograph behind the Wilderness Operations section */
#wilderness {
  background-image:
    var(--tex-grain),
    linear-gradient(180deg, rgba(15, 17, 21, 0.5) 0%, rgba(15, 17, 21, 0.82) 15rem, #12151A 26rem),
    url("img/ridge-band.webp");
  background-position: 0 0, 0 0, center top;
  background-repeat: repeat, no-repeat, no-repeat;
  background-size: auto, 100% 100%, 100% 26rem;
}

#wilderness .section-head {
  padding-top: var(--space-4);
  padding-bottom: var(--space-4);
  background: rgba(15, 17, 21, 0.78);
  box-shadow: var(--shadow-raised);
}

#wilderness .section-head .lede {
  margin-bottom: 0;
  color: var(--text);
}

/* --------------------------------------------------------------------------
   11. Motion and print
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}

@media print {
  body {
    background: #fff;
    color: #000;
  }

  .site-header,
  .nav-toggle,
  .skip-link,
  .cta-row {
    display: none;
  }

  a {
    color: #000;
  }
}

/* Core competencies: coastal sunrise photograph behind the section, under a
   dark overlay in the site palette. Each competency sits on a solid panel so
   body text keeps its contrast at every screen size. */
.section.section-alt#competencies {
  background-color: var(--bg);
  background-image:
    var(--tex-grain),
    linear-gradient(180deg, rgba(15, 17, 21, 0.9) 0%, rgba(15, 17, 21, 0.72) 40%, rgba(15, 17, 21, 0.86) 100%),
    url("img/hero-coast-1000.webp");
  background-size: auto, 100% 100%, cover;
  background-position: 0 0, 0 0, 50% 30%;
  background-repeat: repeat, no-repeat, no-repeat;
}

#competencies .section-head .lede {
  color: var(--text);
}

#competencies .comp {
  padding: var(--space-5);
  background: rgba(24, 28, 35, 0.93);
  border: 1px solid var(--border);
  border-top: 2px solid var(--amber);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
}

@media (min-width: 48rem) {
  .section.section-alt#competencies {
    background-image:
      var(--tex-grain),
      linear-gradient(180deg, rgba(15, 17, 21, 0.82) 0%, rgba(15, 17, 21, 0.5) 40%, rgba(15, 17, 21, 0.78) 100%),
      url("img/hero-coast.webp");
    background-position: 0 0, 0 0, center 32%;
  }
}

#competencies .section-head .eyebrow {
  display: inline-block;
  padding: var(--space-1) var(--space-2);
  background: rgba(15, 17, 21, 0.9);
}
