:root {
  --ink: #0a0a0a;
  --paper: #fafafa;
  --muted: #5c5c5c;
  --line: #e8e8e8;
  --scream: #e31b23;
  --scream-hover: #c4151c;
  --radius: 14px;
  --max: 1120px;
  --space: clamp(1.25rem, 3vw, 2.5rem);
  --font-display: "Nunito", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--scream);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--scream-hover);
}

.skip {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip:focus {
  position: fixed;
  left: 1rem;
  top: 1rem;
  width: auto;
  height: auto;
  padding: 0.75rem 1rem;
  background: var(--ink);
  color: var(--paper);
  z-index: 100;
  border-radius: 8px;
}

.wrap {
  width: min(100% - var(--space) * 2, var(--max));
  margin-inline: auto;
}

.site-header {
  padding-block: clamp(1.5rem, 4vw, 2.75rem);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  color: inherit;
}

.brand:hover {
  color: inherit;
}

.brand img {
  width: clamp(280px, 72vw, 560px);
  height: auto;
}

.brand--compact img {
  width: clamp(220px, 48vw, 380px);
}

.nav {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.nav a {
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  color: var(--ink);
}

.nav a:hover {
  color: var(--scream);
}

.hero {
  padding-block: clamp(3rem, 10vw, 6rem);
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
  max-width: 18ch;
}

.lede {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  font-weight: 500;
  color: var(--muted);
  max-width: 42ch;
  margin: 0 0 2rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.35rem;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 0.95rem;
  border-radius: 999px;
  border: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background: var(--scream);
  color: #fff;
}

.btn-primary:hover {
  background: var(--scream-hover);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}

.btn-ghost:hover {
  border-color: var(--scream);
  color: var(--scream);
}

section {
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
}

section:nth-of-type(even) {
  background: #fff;
  border-block: 1px solid var(--line);
}

.section-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.65rem, 3vw, 2rem);
  letter-spacing: -0.02em;
  margin: 0 0 0.35rem;
}

.section-kicker {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--muted);
  margin: 0 0 1.25rem;
}

.prose {
  max-width: 62ch;
  color: var(--muted);
}

.prose p {
  margin: 0 0 1rem;
}

.prose p:last-child {
  margin-bottom: 0;
}

.prose-wide {
  max-width: 72ch;
}

.focus-list {
  list-style: none;
  padding: 0;
  margin: 1.75rem 0 0;
  max-width: 42ch;
  display: grid;
  gap: 0.85rem;
}

.focus-list li {
  position: relative;
  padding-left: 1.15rem;
  color: var(--muted);
  font-weight: 700;
}

.focus-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--scream);
}

.projects-grid {
  display: grid;
  gap: 1.25rem;
  margin-top: 2rem;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.project-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.5rem 1.35rem;
  background: var(--paper);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.project-card:hover {
  border-color: #cfcfcf;
  box-shadow: 0 12px 40px rgba(10, 10, 10, 0.06);
}

.project-card:focus-visible {
  outline: 3px solid var(--scream);
  outline-offset: 3px;
}

.project-card__logo-wrap {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  margin-bottom: 0.35rem;
  border-radius: 10px;
  background: #0a0a0a;
}

.project-card__logo {
  display: block;
  width: auto;
  height: 44px;
  object-fit: contain;
}

.project-card h3 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.35rem;
  margin: 0;
  letter-spacing: -0.02em;
}

.project-card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
  flex: 1;
}

.project-meta {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--scream);
  margin-top: 0.75rem;
}

.contact-panel {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  padding: clamp(1.5rem, 4vw, 2.25rem);
  background: #fff;
  max-width: 560px;
  margin-top: 2rem;
}

.contact-panel label {
  display: block;
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 0.35rem;
}

.contact-panel input,
.contact-panel textarea {
  width: 100%;
  font: inherit;
  padding: 0.75rem 0.85rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  margin-bottom: 1rem;
  background: var(--paper);
}

.contact-panel input:focus,
.contact-panel textarea:focus {
  outline: 2px solid var(--scream);
  outline-offset: 1px;
  border-color: transparent;
}

.contact-panel textarea {
  min-height: 140px;
  resize: vertical;
}

.contact-panel button[type="submit"] {
  border: none;
}

.site-footer {
  padding-block: 2rem 2.5rem;
  font-size: 0.9rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
}

.footer-legal a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 700;
}

.footer-legal a:hover {
  color: var(--scream);
}

.footer-legal a[aria-current="page"] {
  color: var(--ink);
}

.legal-page {
  padding-block: clamp(2.5rem, 6vw, 4rem);
}

.legal-lede {
  max-width: 68ch;
  margin-bottom: 2rem;
}

.legal-content {
  max-width: 68ch;
}

.legal-content h2 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  margin: 2rem 0 0.75rem;
  color: var(--ink);
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content p,
.legal-content ul {
  color: var(--muted);
  margin: 0 0 1rem;
}

.legal-content ul {
  padding-left: 1.25rem;
}

.legal-content li {
  margin-bottom: 0.35rem;
}

.legal-content a {
  font-weight: 700;
}

.legal-meta {
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn,
  .project-card {
    transition: none;
  }
}
