:root {
  color-scheme: dark;
  --bg: #090807;
  --bg-deep: #050403;
  --surface: rgba(255, 255, 255, 0.05);
  --surface-strong: rgba(255, 248, 235, 0.08);
  --border: rgba(255, 234, 196, 0.14);
  --border-soft: rgba(255, 255, 255, 0.08);
  --text: #f8f5ef;
  --muted: #b2aba0;
  --gold: #c9a86a;
  --gold-soft: rgba(201, 168, 106, 0.18);
  --gold-glow: rgba(201, 168, 106, 0.24);
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.45);
  --radius-xl: 34px;
  --radius-lg: 26px;
  --radius-md: 18px;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top right, rgba(201, 168, 106, 0.12), transparent 22%),
    radial-gradient(circle at left 20%, rgba(255, 255, 255, 0.06), transparent 20%),
    linear-gradient(180deg, #0b0908 0%, #070605 54%, #040303 100%);
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.site-shell {
  position: relative;
  overflow: hidden;
}

.ambient {
  position: fixed;
  width: 34rem;
  height: 34rem;
  border-radius: 999px;
  filter: blur(100px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.22;
}

.ambient-one {
  top: -10rem;
  right: -8rem;
  background: var(--gold-glow);
}

.ambient-two {
  bottom: -12rem;
  left: -10rem;
  background: rgba(255, 255, 255, 0.08);
}

.topbar,
.section {
  position: relative;
  z-index: 1;
}

.topbar {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.4rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.brand-mark {
  min-width: 2.8rem;
  height: 2.3rem;
  padding: 0 0.7rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(201, 168, 106, 0.16), rgba(255, 255, 255, 0.05));
  color: var(--gold);
  font-size: 0.82rem;
}

.brand-text {
  font-size: 0.96rem;
}

.nav {
  display: inline-flex;
  gap: 1.25rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.nav a:hover {
  color: var(--gold);
}

.section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.7rem 1.25rem 4.6rem;
}

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

.hero {
  min-height: calc(100vh - 5rem);
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: 1.4rem;
  align-items: end;
  padding-top: 3rem;
}

.hero h1,
.section-heading h2,
.stack-copy h2,
.contact-card h2,
.intro-band-copy h2 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: -0.05em;
  line-height: 0.97;
}

.hero h1 {
  max-width: 10ch;
  font-size: clamp(3.4rem, 8vw, 7.1rem);
}

.hero-text,
.intro-card p,
.feature-copy p,
.feature-side p,
.project-main p,
.highlight-card p,
.stack-card p,
.contact-card p {
  color: var(--muted);
  line-height: 1.75;
  font-size: 1rem;
}

.hero-text {
  max-width: 58ch;
  margin: 1.4rem 0 0;
}

.hero-actions,
.project-links,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.9rem;
}

.button {
  border-radius: 999px;
  padding: 0.92rem 1.2rem;
  border: 1px solid var(--border-soft);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: linear-gradient(135deg, #e0c08a, #b9934f);
  border-color: rgba(201, 168, 106, 0.3);
  color: #120f0b;
  font-weight: 800;
}

.button-secondary {
  background: rgba(255, 255, 255, 0.03);
  color: #e8dfd2;
}

.button-secondary:hover {
  border-color: rgba(201, 168, 106, 0.28);
  color: var(--gold);
}

.glass,
.intro-band,
.feature-panel,
.project-row,
.highlight-card,
.stack-card,
.contact-card {
  backdrop-filter: blur(16px);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.025));
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow);
}

.hero-aside {
  display: grid;
  gap: 1rem;
}

.intro-card {
  border-radius: var(--radius-xl);
  padding: 1.45rem;
}

.card-kicker,
.feature-label,
.stack-label {
  display: inline-block;
  margin-bottom: 0.85rem;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

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

.mini-stat {
  padding: 1.1rem;
  border-radius: var(--radius-md);
}

.mini-stat strong {
  display: block;
  font-size: 1.45rem;
  font-family: "Space Grotesk", sans-serif;
}

.mini-stat span {
  color: var(--muted);
  font-size: 0.92rem;
}

.intro-band {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1rem;
  padding: 1.4rem;
  border-radius: var(--radius-xl);
}

.intro-band-copy h2,
.section-heading h2,
.stack-copy h2,
.contact-card h2 {
  font-size: clamp(2rem, 4.5vw, 4.3rem);
  max-width: 12ch;
}

.intro-band-rail {
  display: flex;
  flex-wrap: wrap;
  align-content: start;
  gap: 0.8rem;
}

.intro-band-rail span,
.tag-row span {
  padding: 0.58rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(201, 168, 106, 0.16);
  background: rgba(201, 168, 106, 0.08);
  color: #ead7b3;
  font-size: 0.86rem;
}

.section-heading {
  margin-bottom: 1.8rem;
}

.feature-panel {
  padding: 1.6rem;
  border-radius: var(--radius-xl);
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1rem;
}

.feature-copy h3,
.project-main h3,
.highlight-card h3 {
  margin: 0 0 0.8rem;
  font-size: 1.55rem;
}

.feature-side {
  border-radius: var(--radius-lg);
  padding: 1.35rem;
  position: relative;
}

.feature-side-title {
  color: var(--text);
  font-weight: 700;
  margin-top: 1.1rem;
}

.signal-line {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.project-list {
  margin-top: 1.1rem;
  display: grid;
  gap: 1rem;
}

.project-row {
  padding: 1.4rem;
  border-radius: 24px;
  display: grid;
  grid-template-columns: 140px 1fr 320px;
  gap: 1rem;
  align-items: start;
}

.project-meta {
  display: grid;
  gap: 0.35rem;
}

.project-index,
.highlight-number {
  color: var(--gold);
  font-family: "Space Grotesk", sans-serif;
}

.project-category {
  color: var(--muted);
  font-size: 0.9rem;
}

.project-side {
  display: grid;
  gap: 1rem;
  justify-items: start;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

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

.highlight-card {
  padding: 1.4rem;
  border-radius: var(--radius-lg);
}

.highlight-number {
  display: inline-block;
  margin-bottom: 1rem;
}

.stack-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 1rem;
  align-items: start;
}

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

.stack-card {
  padding: 1.35rem;
  border-radius: var(--radius-lg);
}

.contact-card {
  border-radius: 38px;
  padding: 1.8rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: end;
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 700ms ease,
    transform 700ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1024px) {
  .hero,
  .intro-band,
  .feature-panel,
  .stack-layout,
  .contact-card {
    grid-template-columns: 1fr;
  }

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

  .highlights-grid,
  .stack-groups {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .topbar {
    padding-top: 1rem;
    flex-direction: column;
    gap: 1rem;
  }

  .nav {
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero {
    min-height: auto;
    padding-top: 1rem;
  }

  .hero-mini-grid,
  .highlights-grid,
  .stack-groups {
    grid-template-columns: 1fr;
  }

  .section {
    padding-bottom: 3.3rem;
  }
}
