:root {
  --bg: #0a0a0a;
  --panel: #151515;
  --panel-2: #101010;
  --text: #f08650;
  --text-soft: #c8c1b9;
  --muted: #8d8a86;
  --border: #2a2a2a;
  --accent: #f08650;
  --accent-strong: #ffd36e;
  --maxw: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(240, 134, 80, 0.08), transparent 340px),
    var(--bg);
  color: var(--text);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 18px;
  line-height: 1.65;
}

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

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

.wrap {
  width: min(var(--maxw), calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  border-bottom: 1px solid var(--border);
  background: rgba(10, 10, 10, 0.94);
}

.header-inner,
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.header-inner {
  padding: 18px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px dashed var(--accent);
  border-radius: 8px;
  background: #111;
  font-weight: 800;
}

.brand strong {
  display: block;
  font-size: 1.1rem;
}

.brand small {
  display: block;
  color: var(--text-soft);
  font-size: 0.78rem;
  line-height: 1.35;
}

.top-nav,
.footer-links,
.contact-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}

.top-nav a,
.footer-links a {
  border: 1px dashed var(--border);
  border-radius: 8px;
  padding: 7px 11px;
  background: rgba(18, 18, 18, 0.82);
}

.hero {
  padding: 86px 0 54px;
}

.eyebrow,
.card-kicker {
  margin: 0 0 10px;
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 850px;
  margin-bottom: 22px;
  font-size: clamp(2.25rem, 5vw, 4.7rem);
  line-height: 1.05;
}

h2 {
  margin-bottom: 10px;
  font-size: clamp(1.65rem, 3vw, 2.4rem);
  line-height: 1.12;
}

h3 {
  margin-bottom: 12px;
  font-size: 1.35rem;
}

.lede {
  max-width: 780px;
  color: var(--text-soft);
  font-size: 1.08rem;
}

.section {
  padding: 34px 0;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 22px;
}

.section-heading p:last-child,
.project-card p,
.contact-panel p {
  color: var(--text-soft);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.project-card,
.contact-panel {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 211, 110, 0.04), transparent 120px), var(--panel);
}

.project-card {
  display: flex;
  flex-direction: column;
  min-height: 300px;
  padding: 22px;
}

.project-card p {
  flex: 1;
}

.quiet-card {
  background: var(--panel-2);
}

.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  border: 1px dashed var(--accent);
  border-radius: 8px;
  padding: 9px 13px;
  background: rgba(240, 134, 80, 0.08);
  color: var(--accent);
  font-weight: 800;
}

.button-link:hover,
.button-link:focus {
  border-color: var(--accent-strong);
  color: var(--accent-strong);
}

.button-link.primary {
  border-style: solid;
  background: var(--accent);
  color: #111;
}

.button-link.primary:hover,
.button-link.primary:focus {
  background: var(--accent-strong);
}

.contact-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 26px;
  align-items: center;
  padding: 26px;
}

.site-footer {
  margin-top: 48px;
  border-top: 1px solid var(--border);
  color: var(--muted);
}

.footer-inner {
  padding: 22px 0;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 840px) {
  .header-inner,
  .footer-inner,
  .contact-panel {
    align-items: flex-start;
    flex-direction: column;
  }

  .project-grid,
  .contact-panel {
    display: grid;
    grid-template-columns: 1fr;
  }

  .top-nav,
  .footer-links,
  .contact-actions {
    justify-content: flex-start;
  }

  .hero {
    padding-top: 58px;
  }
}

@media (max-width: 520px) {
  body {
    font-size: 16px;
  }

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

  .brand {
    align-items: flex-start;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
  }

  .project-card,
  .contact-panel {
    padding: 18px;
  }
}
