@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/source-serif-400.woff2") format("woff2");
}
@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/source-serif-600.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/ibm-plex-sans-400.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/ibm-plex-sans-500.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/ibm-plex-sans-600.woff2") format("woff2");
}

:root {
  --bg: #f4f1ea;
  --bg-2: #ece7dc;
  --paper: #fffcf7;
  --elev: #fffcf7;
  --ink: #1b1916;
  --body: #3b3833;
  --muted: #5c574f;
  --mute: #5c574f;
  --line: #ddd6c8;
  --line-strong: #c9c0b0;
  --line-2: #c9c0b0;
  --accent: #1e3a4c;
  --focus: #1e3a4c;
  --ok: #215732;
  --warn: #8a3b22;
  --bad: #8a3b22;
  --wrap: 72rem;
  --gutter: 1.25rem;
  --serif: "Source Serif 4", "Iowan Old Style", Palatino, Georgia, serif;
  --sans: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; color-scheme: light; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.55;
  font-weight: 400;
}

img { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }

a { color: var(--accent); text-underline-offset: 0.18em; }
a:hover { color: var(--ink); }

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

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 80;
  background: var(--ink);
  color: var(--bg);
  padding: 0.65rem 0.9rem;
  text-decoration: none;
  font-weight: 500;
}
.skip:focus { top: 1rem; }

.wrap {
  width: min(var(--wrap), calc(100% - var(--gutter) * 2));
  margin-inline: auto;
}

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

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgb(244 241 234 / 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.25rem;
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.brand:hover { color: var(--accent); }
@media (max-width: 40rem) {
  .brand { font-size: 0.88rem; }
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line-2);
  color: var(--ink);
  min-height: 2.5rem;
  padding: 0.35rem 0.7rem;
  cursor: pointer;
}

.site-nav ul {
  display: flex;
  gap: 1.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav a {
  color: var(--mute);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] { color: var(--ink); }

@media (max-width: 40rem) {
  .nav-toggle { display: inline-flex; align-items: center; }
  .site-nav {
    display: none;
    position: absolute;
    inset: 100% 0 auto;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 0.4rem var(--gutter) 1rem;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav a {
    display: block;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--line);
  }
}

/* Hero */

.hero {
  padding: 1.75rem 0 1.6rem;
}
@media (max-width: 40rem) {
  .hero { padding: 1.45rem 0 1.35rem; }
}
.hero h1 {
  margin: 0 0 0.85rem;
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.7rem, 3.4vw, 2.55rem);
  line-height: 1.18;
  letter-spacing: -0.025em;
  max-width: 40rem;
}
.lede {
  margin: 0 0 1.25rem;
  max-width: 38rem;
  font-size: 1.02rem;
  color: var(--mute);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0.55rem 1.15rem;
  border-radius: 0.4rem;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-primary {
  background: var(--ink);
  color: var(--paper);
}
.btn-primary:hover { background: #2a2723; color: var(--paper); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-2);
}
.btn-ghost:hover { background: var(--paper); color: var(--ink); }

/* Sections */

.section {
  padding: 4.25rem 0;
  border-top: 1px solid var(--line);
}
.section h2 {
  margin: 0 0 1rem;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}
h2.eyebrow,
.section h2.eyebrow {
  margin: 0 0 1.6rem;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  text-transform: none;
  color: var(--mute);
}
.kicker {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--mute);
}
.section-intro { margin: 0 0 1.1rem; max-width: 38rem; }
.prose { max-width: 40rem; }
.prose h2 { margin: 1.6rem 0 0.5rem; }
code {
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.88em;
  color: var(--ink);
}

.grid-3 {
  display: grid;
  gap: 0.85rem;
}
@media (min-width: 56rem) {
  .grid-3 { grid-template-columns: 1fr 1fr 1fr; }
}

.offer {
  padding: 1.35rem 1.3rem 1.45rem;
  border: 1px solid var(--line);
  background: var(--elev);
  min-height: 100%;
}
.offer h3 {
  margin: 0 0 0.45rem;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.offer p { margin: 0; font-size: 0.98rem; }

.work-card {
  display: flex;
  flex-direction: column;
  color: #d8d3c9;
  border: 1px solid #2e2b26;
  background: #1b1916;
  overflow: hidden;
  min-height: 100%;
  cursor: default;
}
.work-card .thumb {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #11100e;
}
.work-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}
@media (prefers-reduced-motion: no-preference) {
  .work-card .thumb img {
    transition: transform 0.45s ease;
  }
  .work-card:hover .thumb img { transform: scale(1.02); }
}
.work-card .body {
  padding: 1.1rem 1.15rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
}
.work-card .meta {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: #9a948a;
}
.work-card h3 {
  margin: 0;
  color: #f4f1ea;
  font-family: var(--serif);
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.work-card p { margin: 0; font-size: 0.95rem; color: #c9c3b8; }

.process {
  display: grid;
  gap: 0.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
@media (min-width: 52rem) {
  .process { grid-template-columns: repeat(4, 1fr); }
}
.process li {
  padding: 1.2rem 1.1rem 1.3rem;
  border-top: 1px solid var(--ink);
}
.process strong {
  display: block;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.process span {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.9rem;
}

.about {
  max-width: 36rem;
  font-size: 1.12rem;
  color: var(--mute);
}
.about p { margin: 0 0 0.85rem; }
.about p:last-child { margin: 0; }

.contact-grid {
  display: grid;
  gap: 2rem;
}
@media (min-width: 56rem) {
  .contact-grid { grid-template-columns: 0.85fr 1.15fr; gap: 4rem; align-items: start; }
}
.contact-copy {
  color: var(--ink);
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}
.contact-copy p { margin: 0 0 0.6rem; }
.contact-copy a { color: var(--mute); text-decoration: none; }
.contact-copy a:hover { color: var(--ink); }

.form {
  position: relative;
  display: grid;
  gap: 0.85rem;
}
.form label {
  display: grid;
  gap: 0.3rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--mute);
}
.form .req { font-weight: 400; opacity: 0.7; }
.form input,
.form textarea,
.form select {
  width: 100%;
  border: 1px solid var(--line-2);
  background: var(--elev);
  color: var(--ink);
  padding: 0.7rem 0.8rem;
  border-radius: 0.4rem;
}
.form textarea { min-height: 8.5rem; resize: vertical; }
.form .hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-status { margin: 0; font-size: 0.92rem; }
.form-status.ok { color: var(--ok); }
.form-status.err { color: var(--bad); }

.site-footer {
  padding: 2rem 0 2.6rem;
  border-top: 1px solid var(--line);
  font-size: 0.88rem;
}
.footer-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
}
.site-footer a { color: var(--mute); text-decoration: none; }
.site-footer a:hover { color: var(--ink); }

.page-hero {
  padding: 3.4rem 0 0.5rem;
}
.page-hero h1 {
  margin: 0.35rem 0 0;
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2rem, 5vw, 3.2rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.page-hero p { margin: 0.7rem 0 0; max-width: 34rem; }

.demo-banner {
  text-align: center;
  font-size: 0.82rem;
  font-weight: 500;
  padding: 0.55rem 1rem;
  color: var(--mute);
  border-bottom: 1px solid var(--line);
}
.demo-banner a { color: var(--ink); }

.shot {
  margin: 1.5rem 0;
  border: 1px solid var(--line);
  overflow: hidden;
  background: #000;
}
.shot img { width: 100%; }
.compare {
  display: grid;
  gap: 0.75rem;
  margin: 1.4rem 0;
}
@media (min-width: 50rem) {
  .compare { grid-template-columns: 1fr 1fr; }
}
.compare figure { margin: 0; }
.compare figcaption {
  margin-top: 0.4rem;
  font-size: 0.82rem;
  color: var(--mute);
}

.quiet {
  margin-top: 1.4rem;
  font-size: 0.88rem;
}
.quiet a { color: var(--mute); }

.legal { padding: 3rem 0 4.5rem; }
.legal .wrap { width: min(40rem, calc(100% - var(--gutter) * 2)); }
.legal h1 {
  margin: 0 0 1rem;
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.03em;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
}
.legal h2 {
  margin: 1.8rem 0 0.5rem;
  color: var(--ink);
  font-size: 1rem;
  letter-spacing: -0.02em;
  text-transform: none;
}
.legal p { margin: 0 0 0.85rem; }

.status-pass { color: var(--ok); font-weight: 600; }
.status-fail { color: var(--bad); font-weight: 600; }
.repair-log {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.repair-log th, .repair-log td {
  text-align: left;
  vertical-align: top;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
}
.repair-log th { color: var(--ink); font-weight: 500; }

/* Dashboard (example tool) */
.dash-shell {
  background: var(--elev);
  border: 1px solid var(--line);
}
.dash-bar, .filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  justify-content: space-between;
  align-items: center;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--line);
}
.kpis {
  display: grid;
  gap: 0.7rem;
  padding: 1rem;
}
@media (min-width: 50rem) {
  .kpis { grid-template-columns: repeat(4, 1fr); }
}
.kpi {
  border: 1px solid var(--line);
  padding: 0.85rem 0.95rem;
}
.kpi .label { font-size: 0.75rem; color: var(--mute); }
.kpi .value {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.kpi .sub { font-size: 0.8rem; }
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.data-table th, .data-table td {
  text-align: left;
  padding: 0.6rem 0.85rem;
  border-bottom: 1px solid var(--line);
}
.data-table th {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mute);
  font-weight: 500;
  background: var(--bg-2);
}
.data-table tbody tr:hover,
.data-table tbody tr.is-selected { background: var(--bg-2); }
.data-table button {
  background: none;
  border: 0;
  padding: 0;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
}
.filters label {
  display: grid;
  gap: 0.2rem;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.filters select, .filters input {
  min-height: 2.4rem;
  border: 1px solid var(--line-2);
  background: var(--bg);
  padding: 0.3rem 0.5rem;
  color: var(--ink);
  border-radius: 0.3rem;
}
.drawer {
  border-top: 1px solid var(--line);
  padding: 1rem;
}
.tag {
  display: inline-block;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid var(--line-2);
  padding: 0.12rem 0.4rem;
}
.tag-risk { border-color: var(--bad); color: var(--bad); }
.tag-ok { border-color: var(--ok); color: var(--ok); }
.note { font-size: 0.88rem; color: var(--mute); }
.test-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--line);
}
.pipeline { display: grid; gap: 0.5rem; }
.pipeline .stage {
  border: 1px solid var(--line);
  padding: 0.75rem 1rem;
}
.pipeline .stage h3 { margin: 0 0 0.2rem; color: var(--ink); font-size: 0.95rem; }
.pipeline .stage p { margin: 0; }
.pipeline .stage.is-done { background: #eef5ee; }
.pipeline .stage.is-active { border-color: var(--ink); }
.card {
  border: 1px solid var(--line);
  background: var(--elev);
  padding: 1rem;
}
.arch {
  overflow-x: auto;
  border: 1px solid var(--line);
  padding: 1rem;
  background: var(--elev);
}
.arch svg { min-width: 36rem; }
.seg {
  display: inline-flex;
  border: 1px solid var(--line-2);
  border-radius: 0.4rem;
  overflow: hidden;
}
.seg button {
  background: transparent;
  border: 0;
  color: var(--ink);
  padding: 0.4rem 0.85rem;
  min-height: 2.4rem;
  cursor: pointer;
}
.seg button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--paper);
}
.frame-wrap { border: 1px solid var(--line); }
.frame-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid var(--line);
}
.preview-frame {
  width: 100%;
  min-height: 32rem;
  border: 0;
  background: #fff;
}
