/* Axion-style containment: sage-white field, rounded panels, slash labels, monospace type. */

:root {
  --page: #f6f3ee;
  --panel: #ffffff;
  --ink: #1a1a2e;
  --mute: #3d3d4f;
  --faint: #6b6b7a;
  --accent: #c45c38;
  --accent-ink: #a64c2e;
  --line: rgba(26, 26, 46, 0.08);
  --mono: "IBM Plex Mono", "SF Mono", ui-monospace, Menlo, Consolas, monospace;
  --max: 1240px;
  --radius: 28px;
  --radius-sm: 20px;
  --space-1: 0.5rem;
  --space-2: 0.75rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2.5rem;
  --space-6: 4rem;
  --gutter: 1rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-padding-top: 5.75rem;
  color-scheme: light;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--page);
  font-family: var(--mono);
  font-size: 16px;
  line-height: 1.6;
}

::selection {
  background: var(--accent);
  color: var(--panel);
}

a {
  color: var(--ink);
  text-underline-offset: 0.16em;
}

a:hover {
  color: var(--accent-ink);
}

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

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 20;
  padding: 0.7rem 1rem;
  background: var(--ink);
  color: var(--panel);
}

.skip:focus {
  left: 0.75rem;
  top: 0.75rem;
}

.wrap {
  width: min(var(--max), calc(100% - 3rem));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--page);
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 4.5rem;
  gap: 1rem;
}

.brand {
  justify-self: start;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  font-size: 0.95rem;
  color: var(--ink);
}

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

.mark {
  width: 28px;
  height: 28px;
  flex: none;
}

.nav {
  display: flex;
  gap: 1.4rem;
}

.nav a {
  text-decoration: none;
  font-size: 0.82rem;
  color: var(--ink);
}

.nav a:hover,
.nav a[aria-current="page"] {
  text-decoration: underline;
}

.header-cta {
  justify-self: end;
  display: flex;
  gap: 0.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.15rem;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.btn-solid {
  background: var(--accent);
  color: var(--panel);
  border: 1px solid var(--accent);
}

.btn-solid:hover {
  color: var(--panel);
  background: var(--accent-ink);
  border-color: var(--accent-ink);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}

.hero,
.band {
  padding: var(--space-6) 0;
}

.hero {
  padding-top: var(--space-5);
}

.band > .wrap {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.band-tight {
  padding-top: 0;
}

.hero-top {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: var(--space-5);
  align-items: end;
}

.hero h1,
.band h2,
.page-hero h1 {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.12;
}

.hero h1 {
  font-size: clamp(2.4rem, 5.8vw, 4rem);
  max-width: 13ch;
}

.hero-aside p {
  margin: 0 0 var(--space-4);
  color: var(--mute);
  font-size: 1rem;
}

.mosaic {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-template-areas:
    "wide wide wide wide side side"
    "a a b b c c";
  gap: var(--gutter);
}

.tile-wide {
  grid-area: wide;
}

.tile-side {
  grid-area: side;
}

.mosaic .tile:nth-child(3) {
  grid-area: a;
}

.mosaic .tile:nth-child(4) {
  grid-area: b;
}

.mosaic .tile:nth-child(5) {
  grid-area: c;
}

.mosaic .tile {
  text-decoration: none;
  color: inherit;
}

.mosaic .tile:hover {
  color: inherit;
}

.kicker {
  margin: 0 0 var(--space-2);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.3;
  color: var(--accent);
}

.split-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
  align-items: start;
}

.split-head > p,
.split-head > .prose,
.hero-aside p {
  max-width: 38rem;
}

.split-head > p,
.prose p {
  margin: 0 0 var(--space-3);
  color: var(--mute);
  font-size: 0.95rem;
}

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

.tech-title {
  margin: 0;
  font-size: clamp(1.85rem, 3.6vw, 2.75rem);
  max-width: 22ch;
}

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

.tiles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--gutter);
}

.tile {
  background: var(--panel);
  border-radius: var(--radius);
  padding: var(--space-5) 1.5rem 1.6rem;
}

.orb {
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  margin-bottom: var(--space-3);
  border: 1px solid var(--accent);
  border-radius: 50%;
  color: var(--accent);
  font-size: 0.7rem;
}

.tile h3,
.tech-grid h3 {
  margin: 0 0 0.55rem;
  font-size: 1rem;
  font-weight: 600;
}

.tile p,
.tech-grid p {
  margin: 0;
  color: var(--mute);
  font-size: 0.85rem;
}

.tech-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gutter);
  align-content: start;
}

.tech-grid article {
  background: var(--panel);
  border-radius: var(--radius);
  padding: var(--space-5) 1.75rem 1.85rem;
}

.tech-grid h3 {
  margin-bottom: var(--space-2);
}

.tech-grid p {
  max-width: 36rem;
  line-height: 1.6;
}

.more {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: var(--space-4);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 500;
}

.arrow {
  display: grid;
  place-items: center;
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 50%;
  background: var(--accent);
  color: var(--panel);
  font-size: 0.75rem;
}

.contact-panel {
  background: var(--panel);
  border-radius: var(--radius);
  padding: var(--space-5);
  display: grid;
  grid-template-columns: 1.4fr auto;
  gap: var(--space-5);
  align-items: end;
}

.contact-panel .lede {
  max-width: 38rem;
}

.page-hero {
  padding: var(--space-6) 0 var(--space-5);
}

.page-hero h1 {
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  max-width: 22ch;
}

.lede {
  margin: var(--space-2) 0 0;
  color: var(--mute);
  font-size: 0.92rem;
}

.legal-panel {
  background: var(--panel);
  border-radius: var(--radius);
  padding: var(--space-5);
}

.legal-panel > :first-child {
  margin-top: 0;
}

.legal {
  max-width: 42rem;
}

.legal > :first-child {
  margin-top: 0;
}

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

.band .legal h2 {
  margin: var(--space-5) 0 var(--space-2);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
  max-width: none;
}

.legal p,
.legal li {
  margin: 0 0 var(--space-3);
  color: var(--mute);
}

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

.carrier-clause {
  margin: var(--space-4) 0;
  padding: var(--space-2) 0 var(--space-2) var(--space-3);
  border-left: 2px solid var(--accent);
  color: var(--ink);
}

.site-footer {
  padding-bottom: var(--space-6);
}

.footer-panel {
  background: var(--panel);
  border-radius: var(--radius);
  padding: var(--space-5);
}

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

.footer-name {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.footer-blurb {
  margin: var(--space-2) 0 0;
  max-width: 22rem;
  color: var(--mute);
  font-size: 0.88rem;
}

.site-footer ul {
  margin: var(--space-2) 0 0;
  padding: 0;
  list-style: none;
}

.site-footer h2 {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
  font-weight: 400;
}

.site-footer li + li {
  margin-top: 0.35rem;
}

.site-footer a {
  text-decoration: none;
  font-size: 0.9rem;
}

.fine {
  margin: var(--space-5) 0 0;
  padding-top: var(--space-4);
  border-top: 1px solid var(--line);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
}

@media (max-width: 900px) {
  html {
    scroll-padding-top: 8rem;
  }

  .header-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: var(--space-2) var(--space-3);
    padding: var(--space-3) 0;
  }

  .nav {
    flex-basis: 100%;
    flex-wrap: wrap;
    gap: var(--space-2) var(--space-3);
  }

  .hero-top,
  .split-head,
  .tech-grid,
  .tiles,
  .tiles-3,
  .footer-grid,
  .contact-panel,
  .mosaic {
    grid-template-columns: 1fr;
    grid-template-areas: none;
    gap: var(--gutter);
  }

  .tile-wide,
  .tile-side,
  .mosaic .tile:nth-child(3),
  .mosaic .tile:nth-child(4),
  .mosaic .tile:nth-child(5) {
    grid-area: auto;
  }

  .hero h1,
  .tech-title,
  .page-hero h1 {
    max-width: none;
  }

  .hero,
  .band,
  .page-hero {
    padding-top: var(--space-5);
    padding-bottom: var(--space-5);
  }

  .band-tight {
    padding-top: 0;
  }
}
