:root {
  color-scheme: dark;
  --bg: #14110d;
  --bg-soft: #1c1711;
  --panel: #241f17;
  --panel-warm: #302719;
  --text: #f8f1e4;
  --muted: #c8ba9e;
  --line: rgba(248, 241, 228, 0.16);
  --olive: #9a9a64;
  --ochre: #c8944a;
  --terracotta: #a76545;
  --ink: #0e0b08;
  --heading-font: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia,
    serif;
  --body-font: "Avenir Next", "Helvetica Neue", Inter, ui-sans-serif, system-ui,
    -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-family:
    var(--body-font);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 20% 0%, rgba(166, 101, 69, 0.18), transparent 32rem),
    radial-gradient(circle at 80% 14%, rgba(154, 154, 100, 0.12), transparent 30rem),
    linear-gradient(180deg, #18130e 0%, var(--bg) 42%, #100d09 100%);
  color: var(--text);
  font-family: var(--body-font);
  text-rendering: optimizeLegibility;
}

body::before {
  background:
    linear-gradient(rgba(248, 241, 228, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(248, 241, 228, 0.018) 1px, transparent 1px);
  background-size: 28px 28px, 34px 34px;
  content: "";
  inset: 0;
  opacity: 0.28;
  pointer-events: none;
  position: fixed;
  z-index: -1;
}

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

.site-header {
  align-items: center;
  background: rgba(20, 17, 13, 0.8);
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 24px;
  justify-content: space-between;
  min-height: 72px;
  padding: 16px clamp(20px, 4vw, 56px);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(18px);
}

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

.brand-mark {
  align-items: center;
  background: #e5d6b8;
  border-radius: 4px;
  color: var(--ink);
  display: inline-flex;
  font-size: 12px;
  height: 32px;
  justify-content: center;
  width: 32px;
}

.nav {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  justify-content: flex-end;
}

.nav a {
  color: var(--muted);
  font-size: 14px;
  transition: color 180ms ease;
}

.nav a:hover,
.text-link:hover,
.project-row:hover span {
  color: var(--text);
}

.hero {
  background:
    radial-gradient(circle at 72% 16%, rgba(200, 148, 74, 0.24), transparent 29rem),
    linear-gradient(135deg, #18120d 0%, #2b2116 48%, #4a3826 100%);
  min-height: calc(100vh - 72px);
  overflow: hidden;
  position: relative;
}

.hero::after {
  background:
    linear-gradient(120deg, rgba(248, 241, 228, 0.04), transparent 40%),
    radial-gradient(circle at 72% 42%, rgba(248, 241, 228, 0.08), transparent 18rem);
  content: "";
  inset: 0;
  mix-blend-mode: screen;
  opacity: 0.35;
  pointer-events: none;
  position: absolute;
}

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

.hero-image {
  filter: sepia(0.56) saturate(0.78) contrast(0.86) brightness(0.72);
  height: 100%;
  opacity: 0.7;
  object-fit: cover;
  object-position: center;
  transform: scale(1.02);
  width: 100%;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(16, 12, 8, 0.95) 0%, rgba(25, 19, 13, 0.82) 38%, rgba(76, 55, 33, 0.34) 74%),
    linear-gradient(180deg, rgba(87, 62, 38, 0.2) 0%, rgba(17, 13, 9, 0.88) 100%),
    radial-gradient(circle at 78% 22%, rgba(205, 155, 85, 0.22), transparent 24rem);
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 760px;
  min-height: calc(100vh - 72px);
  padding: clamp(64px, 8vw, 120px) clamp(20px, 6vw, 88px);
  position: relative;
  z-index: 1;
}

.eyebrow,
.section-label,
.metric span {
  color: var(--ochre);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  margin: 0;
  text-transform: uppercase;
}

.section-label {
  color: var(--ochre);
}

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

h1 {
  font-size: clamp(56px, 8vw, 112px);
  font-family: var(--heading-font);
  font-weight: 500;
  line-height: 0.92;
  margin-bottom: 24px;
}

h2 {
  font-size: clamp(30px, 4.2vw, 56px);
  font-family: var(--heading-font);
  font-weight: 500;
  line-height: 1.02;
  margin-bottom: 0;
  max-width: 780px;
}

h3 {
  font-family: var(--heading-font);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 12px;
}

.hero-lede {
  font-size: clamp(24px, 3vw, 38px);
  font-family: var(--heading-font);
  font-weight: 500;
  line-height: 1.12;
  margin-bottom: 22px;
  max-width: 720px;
}

.hero-copy {
  color: var(--muted);
  font-size: 19px;
  line-height: 1.7;
  margin-bottom: 34px;
  max-width: 680px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  align-items: center;
  border: 1px solid rgba(229, 214, 184, 0.3);
  border-radius: 6px;
  display: inline-flex;
  font-size: 15px;
  font-weight: 750;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    color 180ms ease;
}

.button.primary {
  background: #e5d6b8;
  color: var(--ink);
}

.button.secondary {
  background: rgba(229, 214, 184, 0.08);
  color: var(--text);
}

.button:hover {
  border-color: rgba(229, 214, 184, 0.56);
}

.button.primary:hover {
  background: #f4ead5;
}

.intro-band {
  background:
    linear-gradient(90deg, rgba(160, 101, 69, 0.1), transparent 55%),
    rgba(25, 20, 14, 0.88);
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.metric {
  border-right: 1px solid var(--line);
  min-height: 128px;
  padding: 28px clamp(20px, 3vw, 42px);
}

.metric:last-child {
  border-right: 0;
}

.metric strong {
  display: block;
  font-family: var(--heading-font);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.25;
  margin-top: 12px;
}

.section {
  padding: clamp(72px, 8vw, 128px) clamp(20px, 6vw, 88px);
}

.section.divided {
  border-top: 1px solid var(--line);
}

.two-column,
.split-band,
.contact-section {
  display: grid;
  gap: clamp(32px, 6vw, 96px);
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
}

.section-body,
.feature-copy {
  color: var(--muted);
  font-size: 19px;
  line-height: 1.75;
}

.section-body p:last-child,
.feature-copy p:last-child {
  margin-bottom: 0;
}

.split-band {
  background:
    linear-gradient(135deg, rgba(248, 241, 228, 0.055), transparent 38%),
    radial-gradient(circle at 92% 8%, rgba(154, 154, 100, 0.14), transparent 24rem),
    var(--bg-soft);
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  position: relative;
}

.split-band::before {
  background: linear-gradient(180deg, rgba(248, 241, 228, 0.08), transparent);
  content: "";
  height: 1px;
  left: clamp(20px, 6vw, 88px);
  position: absolute;
  right: clamp(20px, 6vw, 88px);
  top: 0;
}

.section-heading {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.section-heading.compact {
  margin-bottom: 32px;
}

.text-link {
  border-bottom: 1px solid rgba(200, 148, 74, 0.52);
  color: #e0b66d;
  display: inline-flex;
  font-weight: 750;
  margin-top: 10px;
  padding-bottom: 3px;
}

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

.focus-grid article {
  background:
    linear-gradient(145deg, rgba(248, 241, 228, 0.08), transparent 42%),
    linear-gradient(180deg, rgba(48, 39, 25, 0.92), rgba(33, 27, 19, 0.92));
  border: 1px solid rgba(248, 241, 228, 0.13);
  border-radius: 6px;
  box-shadow: 0 18px 44px rgba(8, 6, 4, 0.22);
  min-height: 220px;
  padding: 28px;
}

.focus-grid article:nth-child(2n) {
  background:
    linear-gradient(145deg, rgba(154, 154, 100, 0.09), transparent 42%),
    linear-gradient(180deg, rgba(42, 35, 23, 0.94), rgba(31, 27, 20, 0.94));
}

.focus-grid p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}

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

.project-row {
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(120px, 0.45fr) minmax(220px, 1fr);
  padding: 24px 0;
}

.project-row span {
  color: var(--ochre);
  font-weight: 800;
}

.project-row strong {
  font-size: 20px;
  line-height: 1.35;
}

.project-row.muted span,
.project-row.muted strong {
  color: var(--muted);
}

.contact-section {
  align-items: end;
}

.contact-link {
  border-bottom: 2px solid var(--ochre);
  color: var(--text);
  font-size: clamp(26px, 3.6vw, 48px);
  font-family: var(--heading-font);
  font-weight: 500;
  line-height: 1.25;
  overflow-wrap: anywhere;
  width: fit-content;
}

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 14px;
  gap: 12px;
  justify-content: space-between;
  padding: 28px clamp(20px, 6vw, 88px);
}

@media (max-width: 900px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .intro-band,
  .focus-grid,
  .two-column,
  .split-band,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .metric {
    border-bottom: 1px solid var(--line);
    border-right: 0;
  }

  .metric:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 560px) {
  .hero,
  .hero-content {
    min-height: auto;
  }

  .hero-content {
    padding-bottom: 88px;
    padding-top: 88px;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(16, 12, 8, 0.96) 0%, rgba(24, 18, 12, 0.9) 72%, rgba(42, 31, 21, 0.82) 100%),
      linear-gradient(180deg, rgba(87, 62, 38, 0.18) 0%, rgba(17, 13, 9, 0.92) 100%);
  }

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