:root {
  color-scheme: light;
  --ink: #121314;
  --ink-soft: #3f4648;
  --paper: #f6f2ea;
  --panel: #fffdf8;
  --line: #d9d0c2;
  --teal: #0e6f68;
  --teal-dark: #064a47;
  --brass: #7a5317;
  --burgundy: #7c2838;
  --focus: #b45309;
  --shadow: 0 18px 45px rgba(18, 19, 20, 0.12);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--paper);
  color: var(--ink);
}

* {
  box-sizing: border-box;
}

html {
  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;
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.55;
}

a {
  color: var(--teal-dark);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

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

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: 1rem;
  z-index: 20;
  transform: translateY(-140%);
  background: var(--ink);
  color: white;
  padding: 0.7rem 1rem;
  border-radius: 6px;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(246, 242, 234, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.nav {
  max-width: 1180px;
  margin: 0 auto;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  color: var(--ink);
  text-decoration: none;
}

.site-footer .brand {
  color: white;
}

.brand-mark {
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 6px;
  background: var(--panel);
  color: var(--teal-dark);
  font-weight: 900;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.3rem;
}

.nav-links a,
.button,
button.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.65rem;
  padding: 0.7rem 0.95rem;
  border-radius: 6px;
  border: 1px solid transparent;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  background: transparent;
  cursor: pointer;
  text-align: center;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  background: #ebe2d5;
}

.button-primary {
  background: var(--teal-dark);
  color: white;
  border-color: var(--teal-dark);
}

.button-primary:hover {
  background: var(--ink);
  color: white;
}

.button-secondary {
  border-color: var(--line);
  background: var(--panel);
}

.button-secondary:hover {
  border-color: var(--ink);
}

.section-dark .button-secondary {
  color: white;
  background: transparent;
  border-color: rgba(255, 255, 255, 0.45);
}

.hero {
  min-height: 650px;
  display: grid;
  align-items: end;
  background:
    linear-gradient(90deg, rgba(18, 19, 20, 0.94), rgba(18, 19, 20, 0.64) 48%, rgba(18, 19, 20, 0.2)),
    var(--hero-image);
  background-size: cover;
  background-position: center right;
  color: white;
}

.hero-inner,
.section-inner,
.footer-inner {
  max-width: 1180px;
  width: 100%;
  margin: 0 auto;
  padding: 4rem 1.25rem;
}

.hero-copy {
  max-width: 780px;
  padding-bottom: 2.5rem;
}

h1,
h2,
h3 {
  line-height: 1.08;
  margin: 0;
}

h1 {
  font-size: 4.8rem;
  margin-top: 0.65rem;
  letter-spacing: 0;
}

h2 {
  font-size: 2.2rem;
  letter-spacing: 0;
}

h3 {
  font-size: 1.25rem;
}

p {
  margin: 0;
}

.lead {
  font-size: 1.24rem;
  max-width: 760px;
  color: inherit;
}

.hero .lead {
  color: #f6f2ea;
  margin-top: 1rem;
}

.supporting-line,
.trust-line {
  max-width: 720px;
  font-size: 1.05rem;
  color: #f6f2ea;
}

.supporting-line {
  margin-top: 1rem;
}

.trust-line {
  margin-top: 1.25rem;
  font-weight: 800;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.trust-strip {
  background: var(--ink);
  color: white;
}

.trust-strip ul,
.meta-grid,
.card-grid,
.evidence-grid,
.role-list,
.footer-links,
.pill-row {
  list-style: none;
  padding: 0;
  margin: 0;
}

.trust-strip ul {
  max-width: 1180px;
  margin: 0 auto;
  padding: 1rem 1.25rem;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.8rem;
}

.trust-strip li {
  border-left: 3px solid var(--brass);
  padding-left: 0.7rem;
  font-weight: 800;
  font-size: 0.92rem;
}

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

.section-muted {
  background: #ece5da;
}

.section-dark {
  background: var(--ink);
  color: white;
}

.section-header {
  display: grid;
  gap: 0.9rem;
  max-width: 820px;
  margin-bottom: 2rem;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 2rem;
  align-items: start;
}

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

.evidence-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.card,
.evidence-card,
.role-card,
.notice,
.form-panel,
.verification-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.card,
.evidence-card,
.notice,
.form-panel,
.verification-panel {
  padding: 1.25rem;
}

.card p,
.evidence-card p,
.role-card p,
.notice p,
.verification-panel p {
  color: var(--ink-soft);
}

.card h2 {
  font-size: 1.55rem;
}

.role-list {
  display: grid;
  gap: 1rem;
}

.role-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  padding: 1.25rem;
}

.role-card__meta,
.meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.meta-item {
  padding: 0.85rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 253, 248, 0.72);
}

.meta-item span {
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--teal-dark);
  text-transform: uppercase;
}

.status-pill,
.badge,
.sample-label {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 1.8rem;
  padding: 0.32rem 0.58rem;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: #f2eadb;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 800;
}

.status-pill--warning,
.sample-label {
  border-color: #a66d00;
  background: #fff3d6;
}

.status-pill--verified {
  border-color: var(--teal);
  background: #dff1ec;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
  margin-bottom: 1.5rem;
}

label {
  display: grid;
  gap: 0.35rem;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #81786b;
  border-radius: 6px;
  padding: 0.78rem 0.85rem;
  font: inherit;
  background: white;
  color: var(--ink);
}

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

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.form-grid .full {
  grid-column: 1 / -1;
}

.checkbox {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 0.7rem;
  font-weight: 700;
}

.checkbox input {
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.22rem;
}

.honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-summary {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 6px;
}

.form-summary--error {
  background: #fbe3e6;
  border: 1px solid #bb4251;
}

.form-summary--success {
  background: #e2f3ed;
  border: 1px solid var(--teal);
}

.form-summary ul {
  margin: 0.5rem 0 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--panel);
  border: 1px solid var(--line);
}

.table-wrap {
  overflow-x: auto;
}

th,
td {
  padding: 0.8rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  background: #eee4d4;
}

.site-footer {
  background: #171717;
  color: white;
}

.site-footer a,
.site-footer button {
  color: white;
}

.footer-inner {
  display: grid;
  gap: 2rem;
}

.footer-note {
  margin-top: 0.7rem;
  color: #e8dfd3;
  max-width: 780px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1rem;
}

.legal-disclosures {
  display: grid;
  gap: 0.35rem;
  color: #e8dfd3;
  font-size: 0.94rem;
}

.cookie-banner {
  position: fixed;
  z-index: 30;
  right: 1rem;
  bottom: 1rem;
  max-width: 430px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.28);
  padding: 1rem;
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner h2 {
  font-size: 1.25rem;
}

dialog {
  border: 1px solid var(--line);
  border-radius: 8px;
  max-width: 560px;
  padding: 1.25rem;
  background: var(--panel);
  color: var(--ink);
}

dialog::backdrop {
  background: rgba(18, 19, 20, 0.6);
}

.page-title {
  padding: 4.5rem 1.25rem 3rem;
  background: var(--ink);
  color: white;
}

.page-title > div {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  gap: 1rem;
}

.page-title h1 {
  max-width: 900px;
}

.content-flow {
  display: grid;
  gap: 1.5rem;
}

.content-flow ul,
.content-flow ol {
  margin: 0;
  padding-left: 1.25rem;
}

.content-flow li + li {
  margin-top: 0.45rem;
}

code {
  background: #eee4d4;
  border-radius: 4px;
  padding: 0.12rem 0.28rem;
  color: var(--ink);
}

@media (max-width: 920px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    justify-content: flex-start;
  }

  .hero {
    min-height: 600px;
    background:
      linear-gradient(180deg, rgba(18, 19, 20, 0.92), rgba(18, 19, 20, 0.74)),
      var(--hero-image);
    background-size: cover;
    background-position: center;
  }

  .trust-strip ul,
  .card-grid,
  .evidence-grid,
  .filters,
  .split {
    grid-template-columns: 1fr;
  }

  .role-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .nav {
    padding: 0.75rem 1rem;
  }

  .nav-links {
    width: 100%;
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 0.2rem;
  }

  .nav-links a {
    white-space: nowrap;
    width: auto;
    min-height: 2.3rem;
    padding: 0.55rem 0.7rem;
  }

  .hero-inner,
  .section-inner,
  .footer-inner {
    padding: 3rem 1rem;
  }

  .hero-inner {
    padding-bottom: 7rem;
  }

  h1 {
    font-size: 2.7rem;
  }

  h2 {
    font-size: 1.85rem;
  }

  .form-grid,
  .meta-grid,
  .role-card__meta {
    grid-template-columns: 1fr;
  }

  .nav-links a,
  .button,
  button.button {
    width: 100%;
  }

  .nav-links a {
    width: auto;
  }

  .cookie-banner {
    left: 1rem;
    right: 1rem;
    max-height: 50vh;
    overflow: auto;
    padding: 0.9rem;
  }

  .cookie-banner p {
    font-size: 0.95rem;
    line-height: 1.4;
  }

  .cookie-banner .actions {
    gap: 0.35rem;
    margin-top: 0.8rem;
  }

  .cookie-banner .button {
    min-height: 2.25rem;
    padding: 0.45rem 0.7rem;
  }
}
