:root {
  color-scheme: dark;
  --bg: #070b10;
  --panel: #0d131a;
  --ink: #f3efe6;
  --text: #d9d4ca;
  --muted: #8f9aa5;
  --line: rgba(243, 239, 230, 0.14);
  --line-strong: rgba(239, 126, 41, 0.48);
  --orange: #ef7e29;
  --orange-soft: #c96d31;
  --green: #63b394;
  --max: 1120px;
  --radius: 4px;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(243, 239, 230, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(243, 239, 230, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.65), transparent 68%);
}

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

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

ul {
  margin: 0;
  padding: 0;
}

li {
  list-style: none;
}

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

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

.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 100;
  transform: translateY(-160%);
  background: var(--ink);
  color: var(--bg);
  padding: 0.6rem 0.8rem;
  border-radius: var(--radius);
  font-weight: 700;
}

.skip-link:focus {
  transform: translateY(0);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid transparent;
  background: rgba(7, 11, 16, 0.9);
  backdrop-filter: blur(14px);
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
}

.nav-shell,
.hero,
.section,
.contact-section,
.site-footer {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

.nav-shell {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.4rem;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 0.75rem;
  min-width: 0;
}

.brand-name {
  color: var(--orange);
  font-family: var(--mono);
  font-size: 1.28rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.brand-name::before {
  content: "./";
  color: var(--green);
  font-weight: 500;
}

.brand-sub {
  color: var(--muted);
  font-size: 0.86rem;
}

.site-menu {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.site-menu a {
  color: var(--muted);
  padding: 0.6rem 0.72rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
}

.site-menu a:hover,
.site-menu a.is-active {
  color: var(--ink);
  background: rgba(243, 239, 230, 0.06);
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: transparent;
  color: var(--ink);
}

.nav-toggle-line,
.nav-toggle-line::before,
.nav-toggle-line::after {
  display: block;
  width: 18px;
  height: 2px;
  margin: 0 auto;
  background: currentColor;
}

.nav-toggle-line::before,
.nav-toggle-line::after {
  content: "";
}

.nav-toggle-line::before {
  transform: translateY(-6px);
}

.nav-toggle-line::after {
  transform: translateY(4px);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line {
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line::before {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line::after {
  transform: translateY(-2px) rotate(-90deg);
}

.hero {
  min-height: min(720px, calc(100vh - 72px));
  display: flex;
  align-items: center;
  padding: clamp(4rem, 8vw, 7rem) 0 clamp(2.5rem, 5vw, 4rem);
  border-bottom: 1px solid var(--line);
}

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

.eyebrow {
  margin-bottom: 0.75rem;
  color: var(--orange);
  font-family: var(--mono);
  font-size: 0.76rem;
  line-height: 1.45;
  text-transform: uppercase;
}

h1 {
  max-width: 760px;
  margin-bottom: 1.4rem;
  font-size: clamp(2.55rem, 5vw, 4.75rem);
  font-weight: 680;
  line-height: 1.03;
  letter-spacing: 0;
}

h2 {
  max-width: 760px;
  margin-bottom: 0;
  font-size: clamp(1.9rem, 3.6vw, 3.35rem);
  font-weight: 650;
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 0.35rem;
  font-size: 1.02rem;
  line-height: 1.3;
  letter-spacing: 0;
}

.hero-lead {
  max-width: 680px;
  margin-bottom: 1.6rem;
  color: var(--text);
  font-size: clamp(1rem, 1.5vw, 1.18rem);
}

.section,
.contact-section {
  padding: clamp(3.8rem, 8vw, 6.5rem) 0;
  border-bottom: 1px solid var(--line);
}

.section-intro {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

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

.work-row {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: clamp(1rem, 4vw, 3rem);
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--line);
}

.work-row h3 {
  color: var(--ink);
}

.work-row p,
.copy-block p,
.process-grid p,
.contact-section p {
  color: var(--text);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(1.6rem, 5vw, 4rem);
}

.copy-block {
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

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

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.tag-list li {
  padding: 0.42rem 0.56rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--mono);
  font-size: 0.78rem;
}

.tag-list li:nth-child(3n + 1) {
  border-color: rgba(239, 126, 41, 0.42);
}

.tag-list li:nth-child(4n) {
  border-color: rgba(99, 179, 148, 0.4);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  counter-reset: process;
}

.process-grid p {
  margin: 0;
  padding: 1rem 0 0;
  border-top: 1px solid var(--line);
}

.process-grid p::before {
  counter-increment: process;
  content: "0" counter(process) " ";
  display: block;
  margin-bottom: 0.8rem;
  color: var(--orange);
  font-family: var(--mono);
  font-size: 0.78rem;
}

.security-note {
  max-width: 780px;
  margin: 2rem 0 0;
  padding-left: 1rem;
  border-left: 2px solid var(--orange);
  color: var(--muted);
}

.contact-section h2 {
  margin-bottom: 1rem;
}

.contact-section p {
  max-width: 760px;
  margin-bottom: 1.5rem;
}

.contact-email {
  display: inline-block;
  color: var(--orange);
  border-bottom: 1px solid var(--line-strong);
  font-family: var(--mono);
  font-size: clamp(1.25rem, 3vw, 2.25rem);
  font-weight: 800;
  line-height: 1.2;
}

.contact-email::after {
  content: " ->";
  color: var(--green);
}

.site-footer {
  padding: 1.5rem 0 2rem;
  color: var(--muted);
  font-size: 0.86rem;
}

.site-footer p {
  margin: 0;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

@media (max-width: 900px) {
  .split,
  .process-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .section-intro,
  .work-row {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
}

@media (max-width: 680px) {
  .nav-shell,
  .hero,
  .section,
  .contact-section,
  .site-footer {
    width: min(100% - 28px, var(--max));
  }

  .brand {
    display: grid;
    gap: 0.1rem;
  }

  .brand-name {
    font-size: 1.08rem;
  }

  .nav-toggle {
    display: grid;
    place-items: center;
  }

  .site-menu {
    position: absolute;
    left: 14px;
    right: 14px;
    top: calc(100% + 8px);
    display: grid;
    gap: 0.15rem;
    padding: 0.55rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #070b10;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-4px);
  }

  .site-menu.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .site-menu a {
    padding: 0.85rem 0.7rem;
  }

  h1 {
    font-size: clamp(2.25rem, 11vw, 3.4rem);
  }

  h2 {
    font-size: clamp(1.75rem, 8vw, 2.45rem);
  }
}
