:root {
  color-scheme: dark;
  --bg: #11100f;
  --surface: #181715;
  --surface-strong: #22201d;
  --text: #f3eee6;
  --muted: #bdb5aa;
  --soft: #91897e;
  --line: #34302a;
  --accent: #c8aa68;
  --accent-strong: #e4d6bc;
  --accent-muted: #8f7c5c;
  --shadow: 0 18px 54px rgba(0, 0, 0, 0.22);
  --radius: 8px;
  --max-width: 1120px;
  --header-height: 74px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(180deg, #11100f 0%, #151412 52%, #100f0e 100%);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}

body.nav-open {
  overflow: hidden;
}

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

p {
  margin: 0;
  color: var(--muted);
  max-width: 68ch;
}

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

h1 {
  font-size: clamp(3.25rem, 9vw, 6.75rem);
  max-width: 8ch;
}

h2 {
  font-size: clamp(2rem, 4.5vw, 3.75rem);
  max-width: 11ch;
}

h3 {
  font-size: 1.15rem;
}

code {
  border: 1px solid rgba(200, 170, 104, 0.24);
  border-radius: 6px;
  background: rgba(200, 170, 104, 0.08);
  color: #eadfcf;
  font-size: 0.95em;
  padding: 0.1rem 0.35rem;
}

.skip-link {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 100;
  transform: translateY(-150%);
  border-radius: var(--radius);
  background: var(--text);
  color: var(--bg);
  font-weight: 700;
  padding: 0.7rem 0.9rem;
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: var(--header-height);
  border-bottom: 1px solid rgba(243, 238, 230, 0.08);
  background: rgba(17, 16, 15, 0.86);
  backdrop-filter: blur(18px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  max-width: calc(var(--max-width) + 2rem);
  min-height: var(--header-height);
  margin: 0 auto;
  padding-inline: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  font-weight: 800;
  white-space: nowrap;
}

.brand-mark {
  display: inline-grid;
  width: 2.4rem;
  height: 2.4rem;
  place-items: center;
  border: 1px solid rgba(200, 170, 104, 0.34);
  border-radius: 50%;
  background: #1b1916;
  color: var(--accent);
  font-size: 0.75rem;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.2rem;
}

.nav-links a {
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 650;
  padding: 0.55rem 0.75rem;
  transition:
    background-color 160ms ease,
    color 160ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links a.is-active {
  background: rgba(228, 214, 188, 0.08);
  color: var(--text);
}

.nav-toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}

.nav-toggle-line {
  display: block;
  width: 1.2rem;
  height: 2px;
  background: currentColor;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.section {
  padding: clamp(4.5rem, 9vw, 8rem) 0;
}

.section:first-of-type {
  padding-top: clamp(4.5rem, 8vw, 7rem);
}

.section-band {
  border-block: 1px solid rgba(243, 238, 230, 0.08);
  background: rgba(24, 23, 21, 0.72);
}

.section-inner {
  width: 100%;
  max-width: calc(var(--max-width) + 2rem);
  margin: 0 auto;
  padding-inline: 1rem;
}

.hero-grid,
.two-column,
.project-layout,
.contact-layout,
.resume-row {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.92fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.hero-copy {
  display: grid;
  gap: 1.45rem;
}

.hero-text {
  font-size: clamp(1.05rem, 2vw, 1.28rem);
}

.eyebrow {
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 0.35rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.9rem;
  border: 1px solid rgba(243, 238, 230, 0.15);
  border-radius: var(--radius);
  background: rgba(243, 238, 230, 0.035);
  color: var(--text);
  font-weight: 800;
  padding: 0.78rem 1rem;
  transition:
    border-color 160ms ease,
    background-color 160ms ease,
    transform 160ms ease;
}

.button:hover,
.button:focus-visible {
  border-color: rgba(228, 214, 188, 0.36);
  background: rgba(228, 214, 188, 0.08);
  transform: translateY(-1px);
}

.button-primary {
  border-color: rgba(200, 170, 104, 0.6);
  background: var(--accent);
  color: #171410;
}

.button-primary:hover,
.button-primary:focus-visible {
  border-color: #d9c38f;
  background: #d4ba7a;
}

.hero-project-card,
.project-card,
.list-block,
.building-card {
  border: 1px solid rgba(243, 238, 230, 0.1);
  border-radius: var(--radius);
  background: rgba(27, 25, 22, 0.88);
  box-shadow: var(--shadow);
}

.hero-project-card {
  position: relative;
  display: grid;
  gap: 0.9rem;
  overflow: hidden;
  padding: clamp(1.25rem, 3vw, 1.75rem);
}

.hero-project-card::before {
  content: "";
  width: 3.2rem;
  height: 2px;
  background: var(--accent);
}

.hero-project-card h2 {
  max-width: none;
  font-size: clamp(1.8rem, 3vw, 2.45rem);
}

.card-kicker,
.project-type {
  color: var(--accent-strong);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.project-type {
  color: var(--text);
  text-transform: none;
  font-size: 1rem;
}

.project-proof-list {
  display: grid;
  gap: 0.55rem;
  margin: 0.35rem 0 0;
  padding: 0;
  list-style: none;
}

.project-proof-list li {
  color: var(--muted);
  font-size: 0.95rem;
}

.project-proof-list li::before {
  content: "";
  display: inline-block;
  width: 0.35rem;
  height: 0.35rem;
  margin-right: 0.6rem;
  border-radius: 50%;
  background: var(--accent);
  vertical-align: 0.12rem;
}

.button-card {
  width: fit-content;
  margin-top: 0.45rem;
}

.status-pill {
  width: fit-content;
  border: 1px solid rgba(200, 170, 104, 0.28);
  border-radius: 999px;
  background: rgba(200, 170, 104, 0.08);
  color: var(--accent-strong);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.22rem 0.55rem;
}

.two-column {
  align-items: start;
}

.two-column > div:first-child {
  display: grid;
  gap: 1rem;
}

.stacked-lists {
  display: grid;
  gap: 1rem;
}

.list-block {
  padding: clamp(1.1rem, 3vw, 1.5rem);
}

.list-block h3 {
  margin-bottom: 1rem;
}

.tag-list,
.clean-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.tag-list li {
  border: 1px solid rgba(243, 238, 230, 0.12);
  border-radius: 999px;
  background: rgba(243, 238, 230, 0.035);
  color: var(--muted);
  font-size: 0.92rem;
  padding: 0.45rem 0.7rem;
}

.clean-list {
  display: grid;
  gap: 0.75rem;
}

.clean-list li {
  color: var(--muted);
}

.clean-list li::before {
  content: "";
  display: inline-block;
  width: 0.45rem;
  height: 0.45rem;
  margin-right: 0.65rem;
  border-radius: 50%;
  background: var(--accent);
  vertical-align: 0.1rem;
}

.section-heading {
  display: grid;
  max-width: 760px;
  gap: 1rem;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

.section-heading h2 {
  max-width: none;
}

.project-layout {
  align-items: stretch;
}

.project-card {
  display: grid;
  gap: 0.85rem;
  align-content: start;
  padding: clamp(1.25rem, 3vw, 2rem);
}

.project-card h3 {
  margin-top: 0.35rem;
  color: var(--text);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  max-width: none;
}

.project-card h3:first-of-type {
  margin-top: 0;
}

.project-card .button {
  width: fit-content;
  margin-top: 0.35rem;
}

.built-column {
  display: grid;
  align-content: start;
  gap: 1rem;
  border: 1px solid rgba(243, 238, 230, 0.08);
  border-radius: var(--radius);
  background: rgba(243, 238, 230, 0.02);
  padding: clamp(1.25rem, 3vw, 1.5rem);
}

.built-column h3 {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
}

.feature-list {
  display: grid;
  gap: 0;
  border-top: 1px solid rgba(243, 238, 230, 0.1);
}

.feature-list div {
  display: grid;
  grid-template-columns: 2.8rem minmax(0, 1fr);
  gap: 1rem;
  min-height: auto;
  border-bottom: 1px solid rgba(243, 238, 230, 0.1);
  border-radius: 0;
  background: transparent;
  padding: 1rem 0;
  transition:
    border-color 160ms ease,
    background-color 160ms ease;
}

.feature-list div:hover {
  border-color: rgba(200, 170, 104, 0.28);
  background: rgba(243, 238, 230, 0.025);
}

.feature-list span {
  color: var(--accent-muted);
  font-size: 0.75rem;
  font-weight: 900;
}

.feature-list p {
  margin-top: 0;
  color: var(--text);
  font-weight: 700;
}

.compact-heading {
  margin-bottom: clamp(1.5rem, 4vw, 2.4rem);
}

.compact-heading h2 {
  max-width: 15ch;
}

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

.building-card {
  display: grid;
  gap: 0.75rem;
  align-content: start;
  box-shadow: none;
  padding: clamp(1.1rem, 3vw, 1.4rem);
}

.resume-row {
  grid-template-columns: minmax(0, 1fr) auto;
}

.resume-row > div {
  display: grid;
  gap: 1rem;
}

.resume-row h2,
.contact-layout h2 {
  max-width: 14ch;
}

.contact-layout {
  align-items: start;
}

.contact-layout > div:first-child {
  display: grid;
  gap: 1rem;
}

.contact-links {
  display: grid;
  gap: 0.85rem;
}

.contact-links a {
  border-bottom: 1px solid rgba(200, 170, 104, 0.34);
  color: var(--text);
  font-size: clamp(1rem, 2vw, 1.18rem);
  font-weight: 800;
  padding-bottom: 0.35rem;
  transition:
    border-color 160ms ease,
    color 160ms ease;
  word-break: break-word;
}

.contact-links a:hover,
.contact-links a:focus-visible {
  border-color: var(--accent-strong);
  color: var(--accent-strong);
}

.site-footer {
  border-top: 1px solid rgba(243, 238, 230, 0.08);
  padding: 1.5rem 1rem;
  text-align: center;
}

.site-footer p {
  max-width: none;
  font-size: 0.9rem;
}

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    position: fixed;
    inset: var(--header-height) 1rem auto 1rem;
    display: grid;
    gap: 0.25rem;
    border: 1px solid rgba(243, 238, 230, 0.1);
    border-radius: var(--radius);
    background: rgba(17, 16, 15, 0.98);
    box-shadow: var(--shadow);
    padding: 0.75rem;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-0.5rem);
    transition:
      opacity 160ms ease,
      transform 160ms ease;
  }

  .nav-links.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-links a {
    border-radius: var(--radius);
    padding: 0.85rem;
  }

  .hero-grid,
  .two-column,
  .project-layout,
  .contact-layout,
  .resume-row {
    grid-template-columns: 1fr;
  }

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

  h1 {
    max-width: 100%;
  }

  h2,
  .resume-row h2,
  .contact-layout h2 {
    max-width: 16ch;
  }

  .resume-row .button {
    width: fit-content;
  }
}

@media (max-width: 620px) {
  :root {
    --header-height: 66px;
  }

  body.nav-open {
    overflow: hidden;
  }

  .nav,
  .section-inner {
    padding-inline: 0.625rem;
  }

  .brand span:last-child {
    display: none;
  }

  .section {
    padding: 4rem 0;
  }

  .button-row,
  .button,
  .resume-row .button {
    width: 100%;
  }

  .feature-list {
    grid-template-columns: 1fr;
  }

  .feature-list div {
    min-height: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
