:root {
  --bg: #0c0c0c;
  --surface: #151515;
  --raised: #1c1c1c;
  --line: #2a2a2a;
  --ink: #f2f2f2;
  --soft: #c9c9c9;
  --muted: #8f8f8f;
  --dim: #5c5c5c;
  --accent: #ff8a00;
  --accent-hover: #ffa033;
  --accent-ink: #140b00;
  --error: #ff6b5c;
  --font: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --measure: 64ch;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --space: clamp(4rem, 10vw, 8rem);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 106.25%;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 400;
  line-height: 1.55;
  font-variation-settings: "opsz" 14;
}

body::before {
  content: "";
  display: block;
  height: 4px;
  background: var(--accent);
}

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

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

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

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

h1,
h2,
h3 {
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  font-variation-settings: "opsz" 96;
  text-wrap: balance;
}

h1 {
  font-size: clamp(3rem, 8.5vw, 6.25rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.95;
  margin-bottom: 0.35em;
}

h2 {
  font-size: clamp(1.9rem, 4vw, 2.75rem);
  letter-spacing: -0.03em;
  margin-bottom: 0.6em;
}

h2::before {
  content: "";
  display: block;
  width: 2.5rem;
  height: 4px;
  background: var(--accent);
  margin-bottom: 1.1rem;
}

h3 {
  font-size: 1.3rem;
  font-variation-settings: "opsz" 40;
}

p {
  margin: 0 0 1em;
  max-width: var(--measure);
}

.skip {
  position: absolute;
  left: -999px;
  top: 0.5rem;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 0.5rem 0.75rem;
}

.skip:focus {
  left: 0.5rem;
  z-index: 10;
}

.masthead,
main,
.colophon {
  width: min(100% - 2 * var(--gutter), 78rem);
  margin-inline: auto;
}

.masthead {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.5rem 0;
  flex-wrap: wrap;
}

.wordmark {
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.wordmark:hover {
  color: var(--accent);
}

.masthead nav {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.masthead nav a {
  color: var(--soft);
  text-decoration: none;
  font-weight: 500;
}

.masthead nav a:hover {
  color: var(--accent);
}

.hero {
  position: relative;
  display: grid;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  padding: clamp(3rem, 8vw, 6.5rem) 0 var(--space);
  align-items: center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0 calc(50% - 50vw);
  z-index: -1;
  background-image: repeating-linear-gradient(135deg, transparent 0 18px, rgba(255, 255, 255, 0.06) 18px 19px);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 45%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 45%, transparent 100%);
  pointer-events: none;
}

@media (min-width: 60rem) {
  .hero {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  }
}

.hero.single {
  grid-template-columns: 1fr;
}

.portrait {
  display: block;
  width: 7rem;
  height: 7rem;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent);
  margin-bottom: 1.5rem;
  background: var(--surface);
}

.art {
  margin: 0;
}

.art img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 0.4rem;
  background: var(--surface);
}

.crumb {
  color: var(--muted);
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.crumb a {
  color: var(--soft);
  text-decoration: none;
}

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

.lead {
  font-size: clamp(1.15rem, 1.7vw, 1.4rem);
  line-height: 1.45;
  color: var(--soft);
  max-width: 34em;
  margin-bottom: 2rem;
}

.actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin: 0;
}

.button {
  display: inline-block;
  padding: 0.8rem 1.3rem;
  border-radius: 0.3rem;
  background: var(--accent);
  color: var(--accent-ink);
  text-decoration: none;
  border: 2px solid var(--accent);
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  letter-spacing: -0.01em;
}

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

.button.quiet {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.button.quiet:hover {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}

.button[disabled] {
  opacity: 0.55;
  cursor: wait;
}

.facts {
  margin: 0;
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: 0.4rem;
  padding: 0.5rem 1.5rem;
}

.facts > div {
  display: grid;
  grid-template-columns: 5.25rem 1fr;
  gap: 1rem;
  padding: 0.75rem 0;
  border-top: 1px solid rgba(20, 11, 0, 0.18);
}

@media (min-width: 60rem) {
  .facts > div {
    grid-template-columns: 6.5rem 1fr;
  }
}

.facts > div:first-child {
  border-top: 0;
}

.facts dt {
  color: rgba(20, 11, 0, 0.62);
  font-weight: 600;
}

.facts dd {
  margin: 0;
  font-weight: 600;
}

.block {
  padding: 0 0 var(--space);
}

.intro {
  color: var(--muted);
  font-size: 1.1rem;
  margin-bottom: 2.25rem;
}

.services,
.projects,
.evidence {
  list-style: none;
  margin: 0;
  padding: 0;
}

.services {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 0.4rem;
  overflow: hidden;
}

@media (min-width: 48rem) {
  .services {
    grid-template-columns: 1fr 1fr;
  }
}

.services li {
  background: var(--surface);
  padding: 1.75rem;
}

.services img {
  display: block;
  width: 100%;
  height: auto;
  margin-bottom: 1.25rem;
  border-radius: 0.3rem;
  background: var(--bg);
}

.services h3 {
  margin-bottom: 0.5rem;
  font-size: 1.4rem;
}

.services h3 a {
  color: var(--ink);
  text-decoration: none;
}

.services h3 a::after {
  content: "";
  display: inline-block;
  width: 0.55em;
  height: 0.55em;
  margin-left: 0.5em;
  background: var(--accent);
  transform: translateY(-0.05em);
}

.services h3 a:hover {
  color: var(--accent);
}

.services p {
  color: var(--muted);
  margin: 0;
}

.ledger {
  list-style: none;
  margin: 0 0 3.5rem;
  padding: 0;
}

.ledger li {
  padding: 1.75rem 0;
  border-top: 1px solid var(--line);
}

.ledger li:last-child {
  border-bottom: 1px solid var(--line);
}

.ledger-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
}

.ledger h3 {
  margin: 0 0 0.6rem;
  display: flex;
  gap: 0.75rem;
  align-items: baseline;
  flex-wrap: wrap;
  font-size: 1.5rem;
}

.role {
  font-weight: 400;
  color: var(--muted);
  font-size: 1rem;
  letter-spacing: 0;
}

.ledger time {
  color: var(--accent);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.ledger p {
  color: var(--soft);
}

.stack {
  color: var(--dim);
  font-size: 0.95rem;
  margin-bottom: 0;
}

.sub {
  margin-top: 0.5rem;
}

.projects li {
  display: grid;
  gap: 0.25rem 1rem;
  padding: 0.75rem 0;
  border-top: 1px solid var(--line);
}

@media (min-width: 48rem) {
  .projects li {
    grid-template-columns: 16rem 1fr;
  }
}

.projects li:last-child {
  border-bottom: 1px solid var(--line);
}

.projects li > span:first-child {
  color: var(--ink);
  font-weight: 600;
}

.projects li span:last-child {
  color: var(--muted);
}

.skills,
.questions {
  margin: 0;
}

.skills > div {
  display: grid;
  gap: 0.25rem 1.5rem;
  padding: 0.85rem 0;
  border-top: 1px solid var(--line);
}

.skills > div:last-child {
  border-bottom: 1px solid var(--line);
}

@media (min-width: 48rem) {
  .skills > div {
    grid-template-columns: 11rem 1fr;
  }
}

.skills dt {
  font-weight: 700;
}

.skills dd {
  margin: 0;
  color: var(--muted);
}

.prose p {
  max-width: var(--measure);
  color: var(--soft);
}

.questions > div {
  max-width: var(--measure);
  margin-bottom: 2rem;
}

.questions dt {
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
  font-variation-settings: "opsz" 40;
}

.questions dd {
  margin: 0;
  color: var(--soft);
}

.evidence li {
  max-width: var(--measure);
  padding: 0.9rem 0 0.9rem 1.5rem;
  border-left: 3px solid var(--accent);
  margin-bottom: 0.85rem;
  color: var(--soft);
}

.contact-grid {
  display: grid;
  gap: 3rem;
}

@media (min-width: 60rem) {
  .contact-grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  }
}

.message label {
  display: block;
  margin-bottom: 1.2rem;
}

.message label span {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.message input,
.message textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0.3rem;
  padding: 0.75rem 0.85rem;
}

.message input:focus,
.message textarea:focus {
  border-color: var(--accent);
  outline: none;
}

.message textarea {
  resize: vertical;
}

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

.challenge {
  margin: 0.5rem 0 1rem;
}

.challenge:empty {
  margin: 0;
}

.status {
  color: var(--muted);
  min-height: 1.5em;
  margin-top: 0.75rem;
}

.status[data-tone="error"] {
  color: var(--error);
}

.status[data-tone="ok"] {
  color: var(--accent);
  font-weight: 600;
}

.reveal {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0.4rem;
  padding: 1.75rem;
  align-self: start;
}

.reveal h3 {
  margin-bottom: 0.4rem;
}

.reveal p {
  color: var(--soft);
}

.addresses {
  display: grid;
  gap: 0.5rem;
}

.reveal .address {
  font-size: 1.2rem;
  font-weight: 700;
  word-break: break-all;
}

.small {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 1rem 0 0;
}

.colophon {
  border-top: 1px solid var(--line);
  padding: 2.5rem 0 3.5rem;
  color: var(--muted);
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 48rem) {
  .colophon {
    grid-template-columns: 1fr 1fr;
  }
}

.colophon p {
  margin: 0 0 0.5rem;
}

.colophon p a {
  margin-right: 1rem;
}

.services-index {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}

.copyright {
  grid-column: 1 / -1;
  color: var(--dim);
}

@media (prefers-reduced-motion: no-preference) {
  .button,
  a {
    transition: color 120ms ease, background-color 120ms ease, border-color 120ms ease;
  }
}
