:root {
  color-scheme: dark;
  --bg: #0f0d0b;
  --bg-soft: #171411;
  --panel: #1d1814;
  --panel-strong: #261d16;
  --line: rgba(255, 244, 229, 0.12);
  --text: #f6f1e8;
  --muted: #d2c3b1;
  --muted-strong: #a8937d;
  --accent: #f0a14a;
  --accent-strong: #db6248;
  --accent-cool: #67b7ad;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.32);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: inherit;
}

img {
  display: block;
  max-width: 100%;
}

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

button,
input,
textarea,
select {
  font: inherit;
}

svg {
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.site-header,
.hero-inner,
.featured,
.contact,
.site-footer {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  backdrop-filter: blur(18px);
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(15, 13, 11, 0.75);
  border-bottom: 1px solid rgba(255, 244, 229, 0.06);
  z-index: -1;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  min-width: 0;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 8px;
  background: linear-gradient(145deg, var(--accent), var(--accent-strong));
  color: #1b130d;
  font-weight: 700;
}

.brand-text {
  color: var(--muted);
  font-size: 0.95rem;
  white-space: nowrap;
}

.site-nav {
  display: inline-flex;
  align-items: center;
  gap: 1.2rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.header-cta:hover,
.header-cta:focus-visible,
.button:hover,
.button:focus-visible,
.project-tab:hover,
.project-tab:focus-visible {
  color: var(--text);
}

.header-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 2.9rem;
  padding: 0.85rem 1.15rem;
  border: 1px solid transparent;
  border-radius: 8px;
  transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease,
    transform 160ms ease;
}

.header-cta {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  white-space: nowrap;
}

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

.button-primary:hover,
.button-primary:focus-visible {
  background: #f6b060;
  transform: translateY(-1px);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
}

.hero {
  position: relative;
  min-height: 78svh;
  padding: 4rem 0 5rem;
  overflow: clip;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(15, 13, 11, 0.88) 0%, rgba(15, 13, 11, 0.44) 48%, rgba(15, 13, 11, 0.72) 100%),
    linear-gradient(180deg, rgba(15, 13, 11, 0.12) 0%, rgba(15, 13, 11, 0.8) 100%);
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.2rem;
  min-height: calc(78svh - 4rem);
  padding-bottom: 1rem;
}

.eyebrow,
.section-kicker,
.detail-label,
.fact-label {
  margin: 0;
  color: var(--accent-cool);
  font-size: 0.86rem;
  font-weight: 600;
}

h1,
h2,
h3,
p,
ul,
ol,
figure {
  margin: 0;
}

h1 {
  max-width: 10ch;
  font-size: 4.8rem;
  line-height: 1;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.featured,
.contact {
  padding: 5.5rem 0;
}

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

h2 {
  max-width: 13ch;
  font-size: 2.6rem;
  line-height: 1.08;
}

.section-copy {
  max-width: 42rem;
  color: var(--muted);
  line-height: 1.75;
}

.featured-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(20rem, 0.75fr);
  gap: 1.5rem;
  align-items: start;
}

.featured-stage {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 8px;
  background: #050505;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.stage-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #050505;
}

.stage-tone {
  color: #f4c58b;
  font-size: 0.95rem;
}

#project-stage-title {
  font-size: 2.1rem;
  line-height: 1.12;
}

.stage-tagline {
  color: rgba(246, 241, 232, 0.9);
  line-height: 1.6;
}

.project-picker,
.project-detail,
.contact {
  background: var(--bg-soft);
}

.project-picker,
.project-detail {
  border: 1px solid var(--line);
  border-radius: 8px;
}

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

.project-tab {
  display: grid;
  gap: 0.45rem;
  width: 100%;
  min-height: 4.5rem;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted);
  text-align: left;
  transition: border-color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.project-tab.is-active {
  border-color: rgba(240, 161, 74, 0.6);
  background: rgba(240, 161, 74, 0.12);
  color: var(--text);
}

.project-tab:hover,
.project-tab:focus-visible {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-1px);
}

.tab-title {
  font-size: 1.06rem;
  font-weight: 600;
}

.tab-meta {
  font-size: 0.92rem;
}

.project-detail {
  display: grid;
  gap: 1rem;
  align-content: start;
  min-height: 100%;
  padding: 1.6rem;
}

.detail-grid {
  display: grid;
  gap: 1.2rem;
  margin-top: 0.3rem;
}

.detail-block {
  display: grid;
  gap: 0.75rem;
}

#project-logline {
  color: var(--muted);
  line-height: 1.75;
}

.chip-list,
.stack-list {
  padding: 0;
  list-style: none;
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.chip-list li {
  padding: 0.6rem 0.75rem;
  border-radius: 999px;
  background: rgba(103, 183, 173, 0.12);
  color: #d8f5f0;
}

.stack-list {
  display: grid;
  gap: 0.65rem;
  color: var(--muted);
}

.stack-list li {
  padding-left: 1rem;
  position: relative;
  line-height: 1.65;
}

.stack-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7rem;
  width: 0.38rem;
  height: 0.38rem;
  border-radius: 999px;
  background: var(--accent);
}

.contact-copy h2 {
  margin-top: 0.8rem;
  margin-bottom: 0.8rem;
  font-size: 1.3rem;
  line-height: 1.35;
}

.contact-copy p {
  color: var(--muted);
  line-height: 1.75;
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.4rem;
  align-items: center;
  padding: 2rem;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.contact-copy h2 {
  max-width: none;
  font-size: 2rem;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.contact-actions .button {
  max-width: 100%;
}

.contact-actions .button span {
  overflow-wrap: anywhere;
}

.site-footer {
  padding: 1.4rem 0 2.4rem;
  color: var(--muted-strong);
  font-size: 0.92rem;
}

@media (max-width: 1100px) {
  h1 {
    font-size: 3.3rem;
  }

  h2 {
    font-size: 2.2rem;
  }

  .featured-layout,
  .contact {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 760px) {
  .site-header {
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .site-nav {
    order: 3;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 0.2rem;
  }

  .site-nav::-webkit-scrollbar {
    display: none;
  }

  .header-cta {
    margin-left: auto;
  }

  .hero {
    min-height: 74svh;
    padding-top: 2.5rem;
  }

  .hero-inner {
    min-height: calc(74svh - 2.5rem);
  }

  h1 {
    font-size: 2.6rem;
    max-width: 8ch;
  }

  h2 {
    font-size: 1.9rem;
    max-width: 100%;
  }

  .section-copy {
    font-size: 1rem;
  }

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

  .featured,
  .contact {
    padding: 4rem 0;
  }

  .contact {
    padding: 1.4rem;
  }
}
