:root {
  --bg: #000;
  --surface: #121212;
  --ink: #f4f4f2;
  --muted: #b7b7b2;
  --line: #2c2c2c;
  --orange: #f0965b;
  --orange-hot: #f09041;
  --gray: #a6a6a6;
  --max: 1120px;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", "Segoe UI", Helvetica, Arial, sans-serif;
  --header: 76px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

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

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 560;
  letter-spacing: -0.025em;
  line-height: 1.05;
}

::selection {
  background: #f0965b;
  color: #1a1a1a;
}

.skip {
  position: absolute;
  left: 16px;
  top: -48px;
  background: var(--ink);
  color: #000;
  padding: 8px 12px;
  z-index: 30;
}

.skip:focus {
  top: 12px;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  height: var(--header);
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.brand img {
  width: 198px;
  height: auto;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-desktop a,
.nav-panel a {
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--gray);
}

.nav-desktop a:hover,
.nav-panel a:hover {
  color: var(--orange);
}

.nav-toggle {
  display: none;
  position: relative;
}

.nav-toggle summary {
  list-style: none;
  cursor: pointer;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--gray);
}

.nav-toggle summary::-webkit-details-marker {
  display: none;
}

.nav-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 14px);
  min-width: 200px;
  display: grid;
  gap: 4px;
  padding: 10px;
  background: #0c0c0c;
  border: 1px solid var(--line);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

.nav-panel a {
  padding: 10px 12px;
  text-decoration: none;
}

.nav-panel a:hover {
  background: #1a1a1a;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 48px;
  align-items: center;
  padding: 72px 0 56px;
}

.kicker {
  margin-bottom: 18px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--orange);
}

h1 {
  font-size: clamp(2.7rem, 5.6vw, 4.8rem);
  max-width: 12ch;
}

.lead {
  margin-top: 22px;
  max-width: 38rem;
  color: var(--muted);
  font-size: 1.125rem;
}

.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
}

.button-primary {
  background: var(--orange);
  color: #1a1a1a;
}

.button-primary:hover {
  background: var(--orange-hot);
}

.button-secondary {
  border: 1px solid var(--gray);
  color: var(--ink);
}

.button-secondary:hover {
  border-color: var(--orange);
  color: var(--orange);
}

.frame {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.frame img {
  width: 100%;
}

.frame figcaption {
  padding: 12px 16px 14px;
  color: var(--muted);
  font-size: 0.92rem;
}

.frame-wide {
  margin-top: 8px;
}

.frame-follow {
  margin-top: 22px;
}

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

.uses li {
  padding: 16px 14px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray);
  border-right: 1px solid var(--line);
}

.uses li:last-child {
  border-right: 0;
}

.section {
  padding: 96px 0;
  scroll-margin-top: calc(var(--header) + 12px);
}

.section-tight {
  padding-top: 8px;
}

.section-head {
  max-width: 40rem;
  margin-bottom: 36px;
}

.section-head h2,
.about-grid h2,
.contact h2 {
  font-size: clamp(2.1rem, 4vw, 3.2rem);
}

.section-head p:last-child,
.about-grid p {
  margin-top: 16px;
  color: var(--muted);
}

.services {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: service;
}

.services li {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 20px;
  align-items: baseline;
  padding: 28px 0;
  border-top: 1px solid var(--line);
  counter-increment: service;
}

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

.services li::before {
  content: counter(service, decimal-leading-zero);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.35rem;
  color: var(--orange);
}

.services h3 {
  font-size: 1.7rem;
}

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

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
}

.steps li {
  counter-increment: step;
  border-top: 2px solid var(--orange);
  padding-top: 16px;
}

.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  margin-bottom: 18px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--orange);
}

.steps h3 {
  font-size: 1.45rem;
  margin-bottom: 10px;
}

.steps p {
  color: var(--muted);
  font-size: 0.98rem;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(220px, 0.6fr);
  gap: 48px;
  align-items: start;
}

.disciplines {
  list-style: none;
  margin: 0;
  padding: 8px 0 0;
  border-top: 1px solid var(--line);
}

.disciplines li {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--serif);
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.contact {
  background: #0c0c0c;
  border-top: 1px solid var(--line);
  padding: 88px 0 28px;
  scroll-margin-top: var(--header);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 40px;
  align-items: start;
}

.contact p {
  margin-top: 16px;
  max-width: 34rem;
  color: var(--muted);
}

.contact-details {
  display: grid;
  gap: 10px;
  font-style: normal;
  font-size: 1.05rem;
  color: var(--muted);
}

.contact-email {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  letter-spacing: -0.03em;
  text-decoration: none;
  line-height: 1.1;
  color: var(--ink);
}

.contact a {
  text-underline-offset: 4px;
  width: fit-content;
}

.contact a:hover {
  color: var(--orange);
}

.footer {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 72px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.footer p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--gray);
}

.footer img {
  width: 36px;
  height: 36px;
}

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

@media (max-width: 860px) {
  .nav-desktop {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .hero-grid,
  .about-grid,
  .contact-grid,
  .steps {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    padding-top: 40px;
    gap: 32px;
  }

  .brand img {
    width: 160px;
  }

  .services li {
    grid-template-columns: 3rem 1fr;
  }

  .services p {
    grid-column: 2;
  }

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

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

  .uses li:nth-child(odd) {
    border-right: 1px solid var(--line);
  }

  .uses li:nth-child(even) {
    border-right: 0;
  }

  .uses li:last-child {
    grid-column: 1 / -1;
    border-bottom: 0;
    border-right: 0;
  }

  .section {
    padding: 72px 0;
  }

  .wrap {
    width: min(var(--max), calc(100% - 32px));
  }
}

@media (max-width: 420px) {
  h1 {
    max-width: none;
  }

  .services li {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .services p {
    grid-column: auto;
  }
}

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

@media print {
  body {
    background: white;
    color: black;
  }

  .site-header,
  .cta {
    display: none;
  }
}
