:root {
  color-scheme: dark;
  --bg: #08090d;
  --bg-soft: #111219;
  --panel: #17151a;
  --panel-line: rgba(241, 190, 103, 0.18);
  --text: #f5efe5;
  --muted: #b7ad9f;
  --gold: #e3ad55;
  --gold-soft: rgba(227, 173, 85, 0.14);
  --max-width: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 20% 0%, rgba(227, 173, 85, 0.16), transparent 34rem),
    radial-gradient(circle at 80% 12%, rgba(129, 97, 56, 0.18), transparent 28rem),
    linear-gradient(145deg, #050609 0%, #0c0d13 46%, #151016 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 100% 4px;
  opacity: 0.28;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: min(100% - 2rem, var(--max-width));
  margin: 0 auto;
  padding: 1.1rem 0;
  backdrop-filter: blur(14px);
}

.brand {
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.35rem 1rem;
  color: var(--muted);
  font-size: 0.93rem;
}

nav a {
  transition: color 160ms ease;
}

nav a:hover,
nav a:focus-visible {
  color: var(--gold);
}

main {
  width: min(100% - 2rem, var(--max-width));
  margin: 0 auto;
}

.hero {
  display: grid;
  align-items: center;
  min-height: 74vh;
  padding: 5rem 0 4rem;
}

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

.eyebrow {
  margin: 0 0 0.85rem;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 10ch;
  margin-bottom: 0.75rem;
  font-size: clamp(4rem, 11vw, 8.6rem);
  line-height: 0.92;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  color: var(--text);
  font-size: clamp(1.75rem, 4vw, 3.15rem);
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 0.7rem;
  font-size: 1.05rem;
  letter-spacing: 0;
}

.tagline {
  margin-bottom: 1.4rem;
  color: var(--gold);
  font-size: clamp(1.15rem, 2.5vw, 1.75rem);
  font-weight: 650;
}

.intro {
  max-width: 720px;
  color: var(--muted);
  font-size: clamp(1.06rem, 2vw, 1.28rem);
}

.section {
  padding: 5rem 0;
  border-top: 1px solid rgba(245, 239, 229, 0.09);
}

.section-heading {
  display: grid;
  gap: 0.8rem;
  max-width: 780px;
  margin-bottom: 2rem;
}

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

.project-card {
  min-height: 190px;
  padding: 1.25rem;
  border: 1px solid var(--panel-line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent),
    var(--panel);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
}

.project-card p,
.split p,
.contact p {
  margin-bottom: 0;
  color: var(--muted);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
}

.contact {
  padding-bottom: 6rem;
}

.contact h2 {
  margin-bottom: 0.85rem;
}

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

  nav {
    justify-content: flex-start;
  }

  .hero {
    min-height: auto;
    padding: 4rem 0 3rem;
  }

  h1 {
    font-size: clamp(3.5rem, 18vw, 5.5rem);
  }

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

  .project-card {
    min-height: 160px;
  }
}

@media (max-width: 520px) {
  main,
  .site-header {
    width: min(100% - 1.25rem, var(--max-width));
  }

  .section {
    padding: 3.5rem 0;
  }
}
