:root {
  --ink: #132922;
  --ink-soft: #40544d;
  --forest: #173f35;
  --forest-deep: #0d2922;
  --mint: #bde5d7;
  --mint-soft: #e7f3ed;
  --paper: #f4f0e7;
  --paper-light: #fbf9f3;
  --white: #fffef9;
  --orange: #eb754f;
  --line: rgba(19, 41, 34, .18);
  --line-light: rgba(255, 255, 255, .18);
  --shadow: 0 24px 60px rgba(13, 41, 34, .12);
  --shell: 1180px;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--paper-light);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  content: '';
  background: linear-gradient(90deg, var(--orange) 0 18%, var(--mint) 18% 57%, var(--forest) 57%);
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin-top: 0; }

h1, h2 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -.035em;
}

h1 {
  max-width: 11ch;
  margin-bottom: 26px;
  font-size: clamp(3.4rem, 7vw, 6.5rem);
  line-height: .98;
}

h2 {
  margin-bottom: 20px;
  font-size: clamp(2.35rem, 4.5vw, 4.2rem);
  line-height: 1.03;
}

h3 {
  margin-bottom: 12px;
  font-size: 1.2rem;
  line-height: 1.3;
}

.shell {
  width: min(calc(100% - 48px), var(--shell));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  transform: translateY(-150%);
  border-radius: 6px;
  background: var(--white);
  color: var(--forest-deep);
  font-weight: 800;
}

.skip-link:focus { transform: translateY(0); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(251, 249, 243, .95);
  backdrop-filter: blur(14px);
}

.nav-shell {
  display: flex;
  min-height: 78px;
  align-items: center;
  gap: 36px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--forest-deep);
  font-size: 1.14rem;
  font-weight: 850;
  letter-spacing: -.025em;
  white-space: nowrap;
}

.brand > span > span { color: var(--orange); }

.site-header nav {
  display: flex;
  gap: 28px;
  margin-left: auto;
}

.site-header nav a {
  color: var(--ink-soft);
  font-size: .9rem;
  font-weight: 680;
}

.site-header nav a:hover { color: var(--forest-deep); }

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  border: 1px solid var(--forest);
  border-radius: 7px;
  background: var(--forest);
  color: var(--white);
  font-size: .94rem;
  font-weight: 780;
  line-height: 1.2;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}

.button:hover {
  transform: translateY(-2px);
  background: var(--forest-deep);
  box-shadow: 0 10px 30px rgba(13, 41, 34, .16);
}

.button-small {
  min-height: 44px;
  padding: 11px 18px;
  font-size: .87rem;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 108px 0 98px;
  background:
    radial-gradient(circle at 82% 15%, rgba(189, 229, 215, .72), transparent 26%),
    linear-gradient(rgba(19, 41, 34, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(19, 41, 34, .045) 1px, transparent 1px),
    var(--paper);
  background-size: auto, 32px 32px, 32px 32px, auto;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(330px, .75fr);
  align-items: center;
  gap: clamp(54px, 8vw, 110px);
}

.hero-copy { max-width: 780px; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  color: var(--forest);
  font-size: .72rem;
  font-weight: 850;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.eyebrow span {
  width: 30px;
  height: 2px;
  background: var(--orange);
}

.eyebrow-light { color: var(--mint); }

.hero-lead {
  max-width: 65ch;
  margin-bottom: 32px;
  color: var(--ink-soft);
  font-size: clamp(1.08rem, 1.8vw, 1.25rem);
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.text-link {
  padding-block: 8px;
  border-bottom: 1px solid currentColor;
  color: var(--forest);
  font-weight: 750;
}

.text-link span {
  display: inline-block;
  margin-left: 5px;
  transition: transform .18s ease;
}

.text-link:hover span { transform: translateX(4px); }

.record-note {
  padding: 28px;
  border: 1px solid rgba(19, 41, 34, .25);
  border-radius: 7px;
  background: rgba(255, 254, 249, .94);
  box-shadow: var(--shadow);
}

.record-note-head,
.category-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.record-note-head {
  margin-bottom: 28px;
  padding-bottom: 13px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: .67rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.status-dot {
  display: flex;
  align-items: center;
  gap: 7px;
}

.status-dot::before {
  width: 8px;
  height: 8px;
  content: '';
  border-radius: 50%;
  background: var(--orange);
}

.record-note h2 {
  margin-bottom: 23px;
  font-size: 1.7rem;
  line-height: 1.12;
}

.record-note dl,
.category-card dl { margin: 0; }

.record-note dl > div,
.category-card dl > div {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 15px;
  padding: 11px 0;
  border-top: 1px solid var(--line);
}

.record-note dl > div {
  grid-template-columns: minmax(0, 1fr);
  gap: 4px;
}

.record-note dt,
.category-card dt {
  color: var(--ink-soft);
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.record-note dd,
.category-card dd {
  margin: 0;
  font-size: .86rem;
  font-weight: 700;
}

.record-note dt,
.record-note dd {
  min-width: 0;
  overflow-wrap: anywhere;
}

.record-note > p {
  margin: 22px 0 0;
  color: var(--ink-soft);
  font-size: .78rem;
}

.fact-bar {
  border-top: 1px solid var(--line-light);
  background: var(--forest-deep);
  color: var(--white);
}

.fact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.fact-grid p {
  margin: 0;
  padding: 23px 24px;
  border-right: 1px solid var(--line-light);
}

.fact-grid p:first-child { border-left: 1px solid var(--line-light); }
.fact-grid strong, .fact-grid span { display: block; }
.fact-grid strong { font-size: .82rem; }
.fact-grid span { color: rgba(255, 255, 255, .62); font-size: .72rem; }

.section { padding: 112px 0; }

.section-heading {
  max-width: 790px;
  margin-bottom: 58px;
}

.section-heading > p:last-child,
.split-heading > p,
.standards-grid > div > p:last-child {
  color: var(--ink-soft);
  font-size: 1.03rem;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.category-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--white);
}

.category-top {
  color: var(--ink-soft);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: .65rem;
  text-transform: uppercase;
}

.category-top span:last-child {
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 99px;
}

.category-card h3 {
  margin-top: 58px;
  font-family: var(--serif);
  font-size: 1.85rem;
  font-weight: 500;
}

.category-card > p {
  min-height: 104px;
  color: var(--ink-soft);
  font-size: .92rem;
}

.category-card dl > div { grid-template-columns: 120px 1fr; }

.method-section { background: var(--paper); }

.split-heading {
  display: grid;
  max-width: none;
  grid-template-columns: 1.1fr .9fr;
  align-items: end;
  gap: 90px;
}

.split-heading h2 { max-width: 13ch; margin-bottom: 0; }
.split-heading > p { margin-bottom: 6px; }

.method-grid {
  display: grid;
  margin: 0;
  padding: 0;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  list-style: none;
}

.method-grid li {
  min-height: 255px;
  padding: 28px 25px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.method-grid li > span {
  display: block;
  margin-bottom: 48px;
  color: var(--orange);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: .74rem;
  font-weight: 800;
}

.method-grid p {
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: .89rem;
}

.standards-section {
  background: var(--forest-deep);
  color: var(--white);
}

.standards-grid {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  align-items: start;
  gap: clamp(60px, 10vw, 140px);
}

.standards-grid h2 { max-width: 10ch; }
.standards-grid > div > p:last-child { color: rgba(255, 255, 255, .64); }

.standards-grid ul {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line-light);
  list-style: none;
}

.standards-grid li {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line-light);
}

.standards-grid li > span {
  color: var(--orange);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: .72rem;
  font-weight: 800;
}

.standards-grid li p { margin: 0; color: rgba(255, 255, 255, .72); }
.standards-grid li strong { color: var(--white); }

.contact-section { background: var(--mint-soft); }

.contact-grid {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  align-items: center;
  gap: clamp(50px, 8vw, 110px);
}

.contact-grid h2 { max-width: 10ch; margin-bottom: 0; }

.contact-card {
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.contact-card > p:first-child { color: var(--ink-soft); }

.email-link {
  display: inline-block;
  color: var(--forest);
  font-family: var(--serif);
  font-size: clamp(1.45rem, 3vw, 2.2rem);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--orange);
  text-underline-offset: 6px;
}

.response-note {
  margin: 28px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: .75rem;
}

footer {
  padding: 52px 0 28px;
  background: #081d18;
  color: var(--white);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  gap: 30px;
}

.brand-footer { color: var(--white); }
.footer-grid > p { margin: 0; color: rgba(255, 255, 255, .55); text-align: center; }
.footer-grid > a:last-child { color: var(--mint); font-weight: 700; text-align: right; }

.footer-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid var(--line-light);
  color: rgba(255, 255, 255, .42);
  font-size: .7rem;
}

.footer-bottom p { max-width: 760px; margin: 0; }

.not-found {
  display: flex;
  min-height: 100vh;
  width: min(calc(100% - 40px), 760px);
  margin: 0 auto;
  align-items: flex-start;
  justify-content: center;
  flex-direction: column;
}

.not-found .brand { margin-bottom: 70px; }
.not-found h1 { max-width: 9ch; font-size: clamp(3.4rem, 10vw, 6rem); }
.not-found > p:not(.eyebrow) { max-width: 52ch; margin-bottom: 30px; color: var(--ink-soft); font-size: 1.08rem; }

@media (max-width: 980px) {
  .site-header nav { display: none; }
  .button-small { margin-left: auto; }
  .hero-grid, .standards-grid, .contact-grid { grid-template-columns: 1fr; }
  .record-note { max-width: 600px; }
  .fact-grid, .method-grid { grid-template-columns: 1fr 1fr; }
  .category-grid { grid-template-columns: 1fr; }
  .category-card > p { min-height: 0; }
  .split-heading { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 640px) {
  .shell { width: min(calc(100% - 32px), var(--shell)); }
  .site-header { position: static; }
  .nav-shell { min-height: 68px; }
  .brand { font-size: 1rem; }
  .brand img { width: 30px; height: 30px; }
  .button-small { min-height: 40px; padding: 9px 13px; font-size: .78rem; }
  .hero { padding: 72px 0 70px; }
  h1 { font-size: clamp(3.1rem, 15vw, 4.4rem); }
  h2 { font-size: clamp(2.25rem, 11vw, 3.3rem); }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .hero-actions .button { width: 100%; }
  .text-link { align-self: flex-start; }
  .record-note, .category-card, .contact-card { padding: 24px 20px; }
  .record-note dl > div, .category-card dl > div { grid-template-columns: 1fr; gap: 3px; }
  .fact-grid, .method-grid { grid-template-columns: 1fr; }
  .fact-grid p, .fact-grid p:first-child {
    border-right: 1px solid var(--line-light);
    border-bottom: 1px solid var(--line-light);
    border-left: 1px solid var(--line-light);
  }
  .section { padding: 78px 0; }
  .section-heading { margin-bottom: 42px; }
  .method-grid li { min-height: 0; }
  .method-grid li > span { margin-bottom: 28px; }
  .email-link { overflow-wrap: anywhere; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-grid > p, .footer-grid > a:last-child { text-align: left; }
  .footer-bottom { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
