:root {
  --ink: #f4efe5;
  --muted: #bdb4a5;
  --dim: #857b70;
  --bg: #10100d;
  --bg-2: #171510;
  --panel: rgba(244, 239, 229, 0.075);
  --line: rgba(244, 239, 229, 0.18);
  --line-strong: rgba(244, 239, 229, 0.33);
  --amber: #d89b3c;
  --olive: #718264;
  --red: #c65a45;
  --paper: #e8ddca;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.014) 1px, transparent 1px),
    var(--bg);
  background-size: 44px 44px, 44px 44px, auto;
  font-family: var(--sans);
  line-height: 1.55;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  opacity: 0.13;
  background-image: radial-gradient(circle at 30% 30%, rgba(244, 239, 229, 0.16) 0 1px, transparent 1px);
  background-size: 6px 6px;
}

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

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

.container {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  padding: 0 20px;
  border-bottom: 1px solid var(--line);
  background: rgba(16, 16, 13, 0.84);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 780;
}

.brand-mark {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  font: 800 13px/1 var(--mono);
  background: rgba(244, 239, 229, 0.08);
}

.topnav {
  display: flex;
  gap: 8px;
}

.topnav a {
  padding: 8px 10px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 14px;
}

.topnav a:hover,
.topnav a:focus-visible {
  color: var(--ink);
  background: rgba(244, 239, 229, 0.08);
  outline: none;
}

.hero {
  position: relative;
  min-height: 84svh;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.74;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(16, 16, 13, 0.96), rgba(16, 16, 13, 0.72) 45%, rgba(16, 16, 13, 0.22)),
    linear-gradient(180deg, rgba(16, 16, 13, 0.05), rgba(16, 16, 13, 0.82));
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.48fr);
  gap: 46px;
  align-items: center;
  min-height: 84svh;
  padding: 42px 0 42px;
}

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

.eyebrow {
  margin: 0 0 14px;
  color: var(--amber);
  font: 800 12px/1.3 var(--mono);
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.02;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(72px, 13vw, 178px);
}

h2 {
  font-size: clamp(34px, 5.4vw, 74px);
}

h3 {
  font-size: 24px;
}

.lead {
  max-width: 760px;
  margin: 18px 0 0;
  color: var(--paper);
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.14;
  font-weight: 740;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 780;
  line-height: 1.1;
}

.button-primary {
  color: #181108;
  background: var(--amber);
}

.button-secondary {
  color: var(--ink);
  border-color: var(--line-strong);
  background: rgba(244, 239, 229, 0.08);
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  outline: none;
}

.status-panel {
  align-self: end;
  padding: 20px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: rgba(16, 16, 13, 0.7);
  backdrop-filter: blur(12px);
}

.status-label {
  margin: 0 0 12px;
  color: var(--red);
  font: 800 12px/1 var(--mono);
  text-transform: uppercase;
}

.status-main {
  margin: 0;
  color: var(--paper);
  font-size: 28px;
  font-weight: 790;
  line-height: 1.08;
}

.status-panel p:last-child {
  margin: 14px 0 0;
  color: var(--muted);
}

.section {
  padding: 92px 0;
}

.section-ruled {
  border-block: 1px solid var(--line);
  background: rgba(244, 239, 229, 0.025);
}

.section-head {
  max-width: 760px;
  margin-bottom: 34px;
}

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

.project-card {
  min-height: 330px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.project-card-muted {
  background: rgba(113, 130, 100, 0.09);
}

.case-number {
  color: var(--olive);
  font: 800 13px/1 var(--mono);
}

.project-card h3 {
  margin-top: 34px;
}

.project-card p {
  margin: 14px 0 22px;
  color: var(--muted);
}

.inline-link {
  color: var(--amber);
  font-weight: 780;
}

.inline-link:hover,
.inline-link:focus-visible {
  color: var(--paper);
  outline: none;
}

.split,
.contact-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
  gap: 56px;
  align-items: start;
}

.text-stack p {
  margin: 0;
  color: var(--muted);
  font-size: 20px;
}

.text-stack p + p {
  margin-top: 18px;
}

.contact-section {
  border-top: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(216, 155, 60, 0.12), transparent 54%),
    var(--bg-2);
}

.contact-actions {
  margin-top: 0;
  justify-content: flex-start;
}

.footer {
  padding: 54px 0 34px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 28px;
}

.footer h2 {
  color: var(--ink);
  font-size: 28px;
}

.footer p {
  margin: 8px 0 0;
}

.footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.footer nav a {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
}

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

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

  .project-card {
    min-height: auto;
  }

  .status-panel {
    max-width: 560px;
  }
}

@media (max-width: 720px) {
  .container {
    width: min(100% - 28px, 1120px);
  }

  .topbar {
    min-height: 58px;
    padding: 0 14px;
  }

  .topnav {
    display: none;
  }

  .hero,
  .hero-grid {
    min-height: auto;
  }

  .hero-grid {
    gap: 28px;
    padding: 42px 0 44px;
  }

  .hero-shade {
    background:
      linear-gradient(180deg, rgba(16, 16, 13, 0.9), rgba(16, 16, 13, 0.66)),
      linear-gradient(90deg, rgba(16, 16, 13, 0.86), rgba(16, 16, 13, 0.2));
  }

  h1 {
    font-size: clamp(68px, 26vw, 110px);
  }

  .lead {
    font-size: 23px;
  }

  .status-panel {
    display: none;
  }

  .button {
    width: 100%;
  }

  .section {
    padding: 68px 0;
  }

  .text-stack p {
    font-size: 17px;
  }

  .footer-grid,
  .contact-actions {
    flex-direction: column;
  }

  .footer nav {
    justify-content: flex-start;
  }
}
