:root {
  --paper: #f4f0e8;
  --paper-deep: #ded5c4;
  --surface: #fffdf8;
  --ink: #141312;
  --ink-soft: #2d2a25;
  --muted: #6f675b;
  --line: #d5ccbc;
  --green: #3d745f;
  --blue: #496f84;
  --amber: #a8662d;
  --clay: #9a523a;
  --accent: #b6762f;
  --shadow: 0 20px 70px rgba(20, 19, 18, 0.09);
  --font-body: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Newsreader", Georgia, "Times New Roman", serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  min-height: 72px;
  padding: 0 clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgba(216, 210, 197, 0.82);
  background: rgba(244, 240, 232, 0.92);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--surface);
  font-size: 15px;
  font-weight: 750;
  line-height: 1;
}

.brand-name {
  font-size: 17px;
  font-weight: 720;
}

.brand-name span {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 3vw, 36px);
  color: var(--muted);
  font-size: 14px;
  font-weight: 620;
}

.site-nav a,
.site-footer a,
.text-link {
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

.site-nav a:hover,
.site-nav a[aria-current="page"],
.site-footer a:hover,
.text-link {
  color: var(--ink);
  text-decoration-line: underline;
}

.nav-actions {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.nav-dev {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
}

.nav-dev::after {
  content: " ↗";
}

.nav-contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--surface);
  font-size: 14px;
  font-weight: 700;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: min(610px, calc(100svh - 72px));
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.hero::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(244, 240, 232, 0.96) 0%, rgba(244, 240, 232, 0.78) 43%, rgba(244, 240, 232, 0.2) 100%),
    repeating-linear-gradient(0deg, rgba(20, 19, 18, 0.045), rgba(20, 19, 18, 0.045) 1px, transparent 1px, transparent 42px),
    repeating-linear-gradient(90deg, rgba(20, 19, 18, 0.035), rgba(20, 19, 18, 0.035) 1px, transparent 1px, transparent 42px);
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 440px);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  width: min(1160px, calc(100% - 36px));
  min-height: inherit;
  margin: 0 auto;
  padding: clamp(48px, 7vw, 74px) 0;
}

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

.eyebrow {
  margin: 0 0 14px;
  color: var(--green);
  font-size: 12px;
  font-weight: 780;
  letter-spacing: 0;
  text-transform: none;
}

.eyebrow-light {
  color: #c7b897;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 780px;
  margin-bottom: 22px;
  font-family: var(--font-display);
  font-size: clamp(46px, 7.4vw, 84px);
  font-weight: 520;
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-family: var(--font-display);
  font-size: clamp(32px, 4.6vw, 58px);
  font-weight: 520;
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 20px;
  line-height: 1.16;
}

.hero-lede {
  max-width: 630px;
  margin-bottom: 30px;
  color: var(--ink-soft);
  font-size: clamp(18px, 2vw, 22px);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin: -10px 0 30px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0;
}

.hero-meta span {
  position: relative;
}

.hero-meta span + span::before {
  position: static;
  display: inline-block;
  margin-right: 10px;
  content: "/";
  color: rgba(111, 103, 91, 0.62);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--ink);
  font-size: 14px;
  font-weight: 760;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

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

.button-secondary {
  background: rgba(255, 254, 253, 0.64);
  color: var(--ink);
}

.status-board {
  align-self: center;
  border: 1px solid rgba(23, 26, 23, 0.18);
  background: rgba(255, 253, 248, 0.8);
  box-shadow: var(--shadow);
}

.status-board-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 760;
}

.status-list {
  display: grid;
}

.status-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

.status-row:last-child {
  border-bottom: 0;
}

.status-dot {
  width: 11px;
  height: 11px;
  margin-top: 7px;
  border-radius: 50%;
}

.dot-green {
  background: var(--green);
}

.dot-blue {
  background: var(--blue);
}

.dot-amber {
  background: var(--amber);
}

.status-row strong,
.status-row span {
  display: block;
}

.status-row strong {
  margin-bottom: 3px;
  font-size: 16px;
}

.status-row span {
  color: var(--muted);
  font-size: 14px;
}

.section {
  padding: clamp(74px, 10vw, 120px) 0;
}

.section-white {
  background: var(--surface);
}

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

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

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

.section-inner {
  width: min(1160px, calc(100% - 36px));
  margin: 0 auto;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(220px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(24px, 6vw, 80px);
  align-items: end;
  margin-bottom: 42px;
}

.section-heading h2 {
  max-width: 820px;
}

.section-heading-wide {
  grid-template-columns: minmax(150px, 0.42fr) minmax(0, 1.58fr);
}

.capability-grid,
.support-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.support-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.support-grid-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.capability {
  min-height: 260px;
  padding: clamp(22px, 4vw, 34px);
  background: var(--surface);
}

.capability h2 {
  margin-bottom: 10px;
  font-family: var(--font-body);
  font-size: 22px;
  font-weight: 790;
  line-height: 1.16;
}

.capability-number {
  display: block;
  margin-bottom: 46px;
  color: var(--clay);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 820;
}

.capability p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 16px;
}

.capability .text-link {
  display: inline-block;
  margin-top: 18px;
}

.work-list {
  border-top: 1px solid var(--line);
}

.work-row {
  display: grid;
  grid-template-columns: 110px minmax(180px, 0.55fr) minmax(0, 1fr);
  gap: clamp(18px, 4vw, 44px);
  padding: clamp(24px, 4vw, 36px) 0;
  border-bottom: 1px solid var(--line);
}

.work-row .capability-number {
  margin-bottom: 0;
  color: var(--accent);
}

.work-row h3 {
  margin-bottom: 0;
  font-size: clamp(22px, 2.4vw, 30px);
}

.work-row p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(16px, 1.5vw, 18px);
}

.company-grid {
  display: grid;
  grid-template-columns: minmax(250px, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(30px, 8vw, 96px);
  align-items: start;
}

.company-editorial {
  grid-template-columns: minmax(280px, 0.76fr) minmax(260px, 0.74fr) minmax(260px, 0.5fr);
  gap: clamp(28px, 6vw, 64px);
}

.company-copy {
  color: var(--ink-soft);
  font-size: clamp(18px, 2vw, 23px);
}

.company-copy p {
  margin-bottom: 22px;
}

.company-copy p:last-child {
  margin-bottom: 0;
}

.factsheet {
  border-top: 1px solid var(--line);
}

.factsheet dl,
.factsheet div {
  margin: 0;
}

.factsheet div {
  display: grid;
  grid-template-columns: 0.72fr 1fr;
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.factsheet dt {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
}

.factsheet dd {
  margin: 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 680;
}

.contact-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 30px;
  align-items: center;
}

.contact-methods {
  display: grid;
  gap: 10px;
  min-width: min(340px, 100%);
  font-size: 18px;
  font-weight: 730;
}

.contact-methods a {
  padding: 14px 0;
  border-bottom: 1px solid rgba(23, 26, 23, 0.28);
}

.privacy-band {
  display: grid;
  grid-template-columns: minmax(140px, 0.4fr) minmax(280px, 0.8fr) minmax(280px, 1fr);
  gap: clamp(22px, 5vw, 58px);
  align-items: start;
}

.privacy-band p:not(.eyebrow) {
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: clamp(17px, 1.8vw, 21px);
}

.privacy-band .text-link {
  align-self: end;
  font-weight: 760;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1fr);
  gap: clamp(26px, 6vw, 80px);
  padding: clamp(44px, 7vw, 82px) clamp(18px, 4vw, 56px) 28px;
  background: var(--ink);
  color: #d5d9d3;
  font-size: 14px;
}

.site-footer strong {
  color: var(--surface);
  font-family: var(--font-display);
  font-size: clamp(58px, 9vw, 112px);
  font-weight: 430;
  line-height: 0.9;
}

.site-footer strong span {
  color: var(--accent);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 4vw, 44px);
}

.footer-grid div {
  display: grid;
  align-content: start;
  gap: 8px;
}

.footer-grid span,
.site-footer small {
  color: #948d82;
  font-family: var(--font-mono);
  font-size: 11px;
}

.footer-grid a {
  color: #e9e1d2;
}

.site-footer small {
  grid-column: 1 / -1;
  padding-top: 34px;
  border-top: 1px solid rgba(255, 253, 248, 0.14);
}

.simple-page {
  min-height: calc(100svh - 158px);
}

.simple-hero {
  width: min(940px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(76px, 12vw, 140px) 0 clamp(54px, 9vw, 90px);
}

.simple-hero h1 {
  font-size: clamp(42px, 7vw, 82px);
}

.simple-hero p:not(.eyebrow) {
  max-width: 720px;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 22px);
}

.prose {
  max-width: 800px;
}

.prose h2 {
  margin: 44px 0 12px;
  font-family: var(--font-body);
  font-size: 22px;
  font-weight: 790;
  line-height: 1.2;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose p {
  color: var(--muted);
  font-size: 17px;
}

@media (max-width: 880px) {
  .site-header {
    grid-template-columns: 1fr auto;
    gap: 14px;
    min-height: auto;
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .site-nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
    order: 3;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .nav-contact {
    justify-self: end;
  }

  .hero {
    min-height: auto;
  }

  .hero::before {
    background:
      linear-gradient(180deg, rgba(244, 240, 232, 0.98) 0%, rgba(244, 240, 232, 0.86) 70%, rgba(244, 240, 232, 0.48) 100%),
      repeating-linear-gradient(0deg, rgba(20, 19, 18, 0.045), rgba(20, 19, 18, 0.045) 1px, transparent 1px, transparent 38px),
      repeating-linear-gradient(90deg, rgba(20, 19, 18, 0.035), rgba(20, 19, 18, 0.035) 1px, transparent 1px, transparent 38px);
  }

  .hero-grid,
  .section-heading,
  .company-grid,
  .contact-band,
  .privacy-band {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    padding: 48px 0 64px;
  }

  .status-board {
    max-width: 520px;
  }

  .capability-grid,
  .support-grid,
  .support-grid-three {
    grid-template-columns: 1fr;
  }

  .work-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .capability {
    min-height: 0;
  }

  .capability-number {
    margin-bottom: 28px;
  }
}

@media (max-width: 700px) {
  .status-board {
    display: none;
  }

  .hero-canvas {
    opacity: 0.3;
  }
}

@media (max-width: 560px) {
  .site-header {
    padding-right: 16px;
    padding-left: 16px;
  }

  .brand-mark {
    width: 32px;
    height: 32px;
  }

  .nav-contact {
    min-height: 36px;
    padding: 0 12px;
  }

  .nav-dev {
    display: none;
  }

  h1 {
    font-size: clamp(42px, 14vw, 62px);
  }

  h2 {
    font-size: clamp(30px, 10vw, 44px);
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .status-row {
    padding: 16px;
  }

  .section {
    padding: 64px 0;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}
