:root {
  --bg: #0a111b;
  --panel: #111b29;
  --panel2: #172538;
  --text: #f2f6fb;
  --muted: #a9b7c8;
  --line: rgba(255, 255, 255, 0.14);
  --accent: #d4a14a;
  --accent2: #6fb383;
  --max: 1180px;
}

/* Base */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, #213d4f 0, #0a111b 42%, #05080d 100%);
  color: var(--text);
  font-family: Inter, Arial, Helvetica, sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
}

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(6, 10, 16, 0.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-logo {
  flex: 0 0 auto;
}

.site-logo {
  display: block;
  width: min(150px, 52vw);
  height: auto;
}

.site-nav {
  display: flex;
  gap: 6px;
  align-items: center;
}

.site-nav a {
  padding: 10px 12px;
  text-decoration: none;
  color: var(--muted);
  border-radius: 999px;
}

.site-nav a:hover,
.site-nav a.active,
.site-nav a[aria-current="page"] {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.nav-toggle {
  display: none;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
}

/* Hero */
.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 86px 22px 58px;
}

.hero-home {
  min-height: 430px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.compact-hero {
  padding-bottom: 28px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 880px;
  margin: 0 0 18px;
  font-size: clamp(2.4rem, 6vw, 5rem);
  line-height: 1;
}

.intro {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.32rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #111;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.button.secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
}

/* Layout */
.content-wrap,
.gallery-wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 34px 22px 74px;
}

.cards {
  display: grid;
  gap: 22px;
}

.two-cards {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.split-section {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 26px;
  padding: 28px;
}

.prose {
  max-width: 900px;
  padding: 32px;
}

.prose p {
  color: var(--muted);
}

/* Panels */
.project-card,
.contact-card,
.prose,
.split-section,
.contact-form {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.035));
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.22);
}

/* Project cards */
.project-card {
  text-decoration: none;
}

.project-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: #101820;
}

.project-card div {
  padding: 22px;
}

.project-card h2 {
  margin: 0.1rem 0 0.3rem;
}

.project-card p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 24px;
}

.contact-card,
.contact-form {
  padding: 26px;
}

.contact-form {
  display: grid;
  gap: 14px;
}

.contact-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-weight: 700;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.22);
  color: var(--text);
  font: inherit;
}

.honeypot {
  position: absolute;
  left: -10000px;
}

.notice {
  padding: 12px 14px;
  border-radius: 14px;
}

.notice.success {
  background: rgba(111, 179, 131, 0.18);
  border: 1px solid rgba(111, 179, 131, 0.4);
}

.notice.error {
  background: rgba(220, 84, 77, 0.18);
  border: 1px solid rgba(220, 84, 77, 0.4);
}

/* Gallery */
.gallery-meta {
  margin-top: 0;
  color: var(--muted);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 14px;
}

.gallery-item {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
  text-decoration: none;
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition:
    transform 0.25s ease,
    filter 0.25s ease;
}

.gallery-item:hover img {
  transform: scale(1.04);
  filter: brightness(1.08);
}

.caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 28px 10px 8px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.72));
  color: #fff;
  font-size: 0.82rem;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 34px;
  background: rgba(0, 0, 0, 0.88);
}

.lightbox[hidden] {
  display: none;
}

.lightbox img {
  max-width: min(96vw, 1400px);
  max-height: 86vh;
  object-fit: contain;
  border-radius: 12px;
}

.lightbox-close {
  position: fixed;
  top: 18px;
  right: 22px;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}

.lightbox-caption {
  position: fixed;
  left: 22px;
  right: 22px;
  bottom: 18px;
  color: #ddd;
  text-align: center;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.26);
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 24px 22px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-note {
  opacity: 0.75;
}

/* Mobile */
@media (max-width: 800px) {
  .header-inner {
    align-items: center;
  }

  .site-logo {
    width: min(250px, 62vw);
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    left: 16px;
    right: 16px;
    top: 86px;
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    background: #09101a;
    border: 1px solid var(--line);
    border-radius: 18px;
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    border-radius: 12px;
  }

  .hero {
    padding-top: 56px;
  }

  .two-cards,
  .split-section,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .gallery {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }

  .footer-inner {
    display: block;
  }
}