:root {
  --bg: #0e1110;
  --bg-elevated: #161b19;
  --bg-muted: #121614;
  --text: #eef1ef;
  --text-muted: #a7b0ab;
  --border: rgba(238, 241, 239, 0.12);
  --accent: #7aa874;
  --accent-text: #0b120a;
  --radius: 10px;
  --max-width: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.container {
  width: min(var(--max-width), 100% - 2.5rem);
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background-color: rgba(14, 17, 16, 0.88);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 1.5rem;
}

.brand-logo {
  height: 36px;
  width: auto;
}

.brand-logo-sm {
  height: 26px;
}

.site-nav {
  display: flex;
  gap: 1.5rem;
}

.site-nav a {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 500;
}

.site-nav a:hover {
  color: var(--text);
}

/* Hero */
.hero {
  padding: 4.5rem 0 3.5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  line-height: 1.12;
  margin: 0.75rem 0 1rem;
}

.lead {
  color: var(--text-muted);
  font-size: 1.08rem;
  margin: 0 0 1.75rem;
}

.media-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background-color: var(--bg-elevated);
}

/* Badges & Buttons */
.badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
}

.badge-live {
  background-color: rgba(122, 168, 116, 0.18);
  color: #b7dfb2;
  border: 1px solid rgba(122, 168, 116, 0.4);
}

.badge-neutral {
  background-color: rgba(238, 241, 239, 0.08);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid transparent;
}

.btn-primary {
  background-color: var(--accent);
  color: var(--accent-text);
}

.btn-secondary {
  border-color: var(--border);
  color: var(--text);
}

.btn-secondary:hover {
  background-color: var(--bg-elevated);
}

/* Sections & Cards */
.section {
  padding: 4rem 0;
  border-top: 1px solid var(--border);
}

.section-muted {
  background-color: var(--bg-muted);
}

.section-head {
  margin-bottom: 2rem;
}

.section-head h2,
.about-grid h2 {
  font-size: 1.8rem;
  margin: 0 0 0.4rem;
}

.section-head p,
.about-grid p,
.card p {
  color: var(--text-muted);
  margin: 0;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.card {
  background-color: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.card h3 {
  margin: 0;
  font-size: 1.25rem;
}

.text-link {
  margin-top: auto;
  text-decoration: none;
  font-weight: 600;
  color: #b7dfb2;
}

.text-link:hover {
  text-decoration: underline;
}

/* About & Footer */
.about-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 2rem;
  align-items: start;
}

.contact-box {
  background-color: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.contact-box h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.75rem 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-brand,
.footer-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.footer-links a {
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--text);
}

@media (max-width: 820px) {
  .hero-grid,
  .project-grid,
  .about-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 3rem;
  }
}

.card .media-frame {
  margin-bottom: 0.25rem;
}