:root {
  --bg: #0a0c10;
  --surface: #12161d;
  --surface-strong: #171c24;
  --border: #2d3440;
  --text: #f7f3eb;
  --muted: #b9b3a8;
  --subtle: #858c99;
  --accent: #d9ad5c;
  --accent-strong: #f1c76f;
  --accent-soft: #2a251b;
  --green: #72c5a3;
  --blue: #87a8ff;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    linear-gradient(180deg, #0e1118 0%, var(--bg) 38%, #0b0e13 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .7), transparent 72%);
}

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

button,
input {
  font: inherit;
}

.page-shell {
  width: min(var(--max-width), calc(100% - 40px));
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-header {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 28px 0;
}

.brand {
  font-size: .98rem;
  font-weight: 800;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  color: var(--muted);
  font-size: .92rem;
}

.nav-links a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0 12px;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--text);
  border-color: var(--border);
  background: rgba(255, 255, 255, .045);
  outline: none;
}

main {
  position: relative;
  z-index: 1;
  flex: 1;
}

.hero-section {
  min-height: calc(100vh - 124px);
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, .8fr);
  gap: 48px;
  align-items: center;
  padding: 52px 0 72px;
}

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

.eyebrow,
.panel-label {
  margin: 0 0 16px;
  color: var(--accent-strong);
  font-size: .78rem;
  font-weight: 850;
  text-transform: uppercase;
}

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

h1 {
  margin: 0;
  max-width: 760px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 4.4rem, 4.4rem);
  line-height: 1.02;
  font-weight: 500;
}

.summary {
  max-width: 760px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.72;
}

.summary.lead {
  margin-top: 28px;
  color: #e6dfd2;
  font-size: 1.18rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 999px;
  padding: 0 18px;
  font-size: .94rem;
  font-weight: 800;
}

.button.primary {
  background: var(--accent);
  color: #171103;
}

.button.secondary {
  border: 1px solid var(--border);
  background: #18202b;
}

.button.ghost {
  border: 1px solid #55472c;
  background: var(--accent-soft);
  color: #f9df9d;
}

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

.button.disabled,
.button[aria-disabled="true"] {
  color: var(--subtle);
  border-color: var(--border);
  background: #11151c;
  cursor: not-allowed;
  transform: none;
}

.hero-snapshot {
  display: grid;
  gap: 14px;
  align-self: stretch;
  align-content: center;
}

.snapshot-row,
.snapshot-focus,
.impact-band article,
.project-carousel,
.contact-card {
  border: 1px solid var(--border);
  background: rgba(18, 22, 29, .86);
}

.snapshot-row {
  display: grid;
  grid-template-columns: minmax(96px, 130px) 1fr;
  gap: 18px;
  align-items: center;
  min-height: 104px;
  border-radius: 8px;
  padding: 18px;
}

.snapshot-value {
  color: var(--accent-strong);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  line-height: 1;
}

.snapshot-label {
  color: var(--muted);
  line-height: 1.55;
}

.snapshot-focus {
  border-radius: 8px;
  padding: 20px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 0 0 30px;
  list-style: none;
}

.tag-list.compact {
  margin-bottom: 0;
}

.tag-list li {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #111821;
  color: #d7d1c5;
  padding: 0 12px;
  font-size: .88rem;
}

.impact-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--border);
  background: var(--border);
  margin: 0 0 86px;
}

.impact-band article {
  min-height: 230px;
  padding: 28px;
}

.impact-band span {
  color: var(--green);
  font-weight: 800;
  font-size: .82rem;
}

.impact-band h2 {
  margin: 34px 0 12px;
  font-size: 1.22rem;
  line-height: 1.25;
}

.impact-band p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.projects-section {
  padding: 0 0 82px;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(260px, 420px) minmax(0, 1fr);
  gap: 46px;
  align-items: end;
  margin-bottom: 28px;
}

.section-heading h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.8rem;
  line-height: 1.08;
  font-weight: 500;
}

.section-heading p:last-child {
  margin: 0;
  color: var(--muted);
  line-height: 1.72;
  font-size: 1rem;
}

.project-carousel {
  border-radius: 8px;
  overflow: hidden;
}

.project-carousel:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.carousel-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  border-bottom: 1px solid var(--border);
  padding: 18px;
}

.slide-count {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-weight: 800;
}

.slide-count span:first-child {
  color: var(--text);
}

.carousel-actions {
  display: flex;
  gap: 8px;
}

.icon-button,
.number-button {
  min-width: 42px;
  min-height: 42px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #111821;
  color: var(--text);
  cursor: pointer;
}

.icon-button:hover,
.icon-button:focus-visible,
.number-button:hover,
.number-button:focus-visible,
.number-button.active {
  border-color: #7d663d;
  background: var(--accent-soft);
  color: #ffe1a2;
  outline: none;
}

.project-viewport {
  overflow: hidden;
}

.project-track {
  display: flex;
  transform: translateX(0);
  transition: transform 280ms ease;
}

.project-slide {
  min-width: 100%;
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  gap: 34px;
  padding: 30px;
}

.project-visual {
  min-height: 360px;
  display: grid;
  align-content: space-between;
  border: 1px solid var(--border);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(217, 173, 92, .16), transparent 42%),
    linear-gradient(180deg, #141b24, #0f131a);
  padding: 22px;
}

.visual-topline,
.visual-stack,
.visual-footer {
  display: flex;
  gap: 10px;
}

.visual-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
}

.visual-dot:nth-child(2) {
  background: var(--accent);
}

.visual-dot:nth-child(3) {
  background: var(--blue);
}

.visual-stack {
  flex-direction: column;
}

.visual-line {
  height: 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
}

.visual-line.short {
  width: 48%;
}

.visual-line.medium {
  width: 68%;
}

.visual-line.long {
  width: 86%;
}

.visual-footer {
  justify-content: space-between;
}

.visual-pill {
  min-height: 34px;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--muted);
  font-size: .86rem;
}

.project-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 360px;
}

.project-kicker {
  margin: 0 0 12px;
  color: var(--blue);
  font-size: .82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.project-title {
  margin: 0;
  font-size: 2.25rem;
  line-height: 1.1;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
}

.project-summary {
  margin: 18px 0 0;
  color: var(--muted);
  line-height: 1.72;
  font-size: 1.04rem;
}

.skill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 24px 0 0;
  list-style: none;
}

.skill-list li {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid #314151;
  background: #111a22;
  color: #cbd7dd;
  padding: 0 11px;
  font-size: .86rem;
}

.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.project-numbers {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border-top: 1px solid var(--border);
  padding: 18px;
}

.contact-layout {
  flex: 1;
  display: grid;
  align-items: center;
  padding: 62px 0 46px;
}

.contact-card {
  max-width: 900px;
  border-radius: 8px;
  padding: clamp(32px, 72px, 72px);
}

.contact-list {
  display: grid;
  gap: 14px;
  margin-top: 38px;
}

.contact-item {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, .045);
}

.contact-item span {
  color: var(--subtle);
  font-size: .9rem;
}

.contact-item strong {
  color: var(--text);
  font-size: .95rem;
  text-align: right;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 26px 0 34px;
  color: var(--subtle);
  font-size: .86rem;
}

@media (max-width: 980px) {
  .hero-section,
  .section-heading,
  .project-slide {
    grid-template-columns: 1fr;
  }

  .hero-section {
    min-height: auto;
    gap: 34px;
    padding-top: 34px;
  }

  .impact-band {
    grid-template-columns: 1fr;
  }

  .project-content,
  .project-visual {
    min-height: 300px;
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(100% - 24px, var(--max-width));
  }

  .site-header,
  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-header {
    gap: 16px;
    padding: 22px 0;
  }

  .nav-links {
    width: 100%;
    justify-content: flex-start;
  }

  .nav-links a {
    padding: 0 10px;
  }

  h1 {
    font-size: 2.6rem;
  }

  .section-heading h2,
  .project-title {
    font-size: 2rem;
  }

  .summary.lead,
  .summary {
    font-size: 1rem;
  }

  .snapshot-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .project-slide {
    padding: 18px;
    gap: 22px;
  }

  .project-visual,
  .project-content {
    min-height: 260px;
  }

  .carousel-topbar {
    padding: 14px;
  }

  .contact-item {
    flex-direction: column;
    gap: 6px;
  }

  .contact-item strong {
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .project-track {
    transition: none;
  }

  .button:hover,
  .button:focus-visible {
    transform: none;
  }
}
