* {
  box-sizing: border-box;
}

:root {
  --bg: #101216;
  --panel: #171b22;
  --panel-strong: #202632;
  --text: #f4f0e8;
  --muted: #b7afa2;
  --line: #343947;
  --accent: #7ef0c1;
  --accent-strong: #49d49d;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
  --radius: 22px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(126, 240, 193, 0.12), transparent 34rem),
    radial-gradient(circle at 80% 12%, rgba(255, 255, 255, 0.07), transparent 28rem),
    var(--bg);
  line-height: 1.6;
}

a {
  color: inherit;
}

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

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: -0.03em;
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  color: #08120e;
  background: var(--accent);
  border-radius: 0.7rem;
  box-shadow: 0 0 0 4px rgba(126, 240, 193, 0.12);
}

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

.nav-links a {
  text-decoration: none;
}

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

main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
}

.hero {
  min-height: 62vh;
  display: grid;
  align-content: center;
  padding: 5rem 0 3rem;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: none;
  margin-bottom: 1.25rem;
  font-size: clamp(3.6rem, 8vw, 7rem);
  line-height: 0.92;
  letter-spacing: -0.075em;
  white-space: nowrap;
}

h2 {
  margin-bottom: 0.75rem;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.05;
  letter-spacing: -0.055em;
}

h3 {
  margin-bottom: 0.7rem;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.hero-copy {
  max-width: none;
  color: var(--muted);
  font-size: 1.2rem;
  white-space: nowrap;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.9rem;
  padding: 0.8rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
}

.button.primary {
  color: #07120d;
  background: var(--accent);
  border-color: var(--accent);
}

.button.primary:hover {
  background: var(--accent-strong);
}

.section {
  margin-top: 2rem;
  padding: 2rem;
  background: rgba(23, 27, 34, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

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

.section-heading {
  max-width: 760px;
  margin-bottom: 1.5rem;
}

.project-showcase {
  display: grid;
  gap: 1.25rem;
}

.project-row {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
  gap: 1.5rem;
  align-items: stretch;
  padding: 1.25rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.project-media {
  display: grid;
  gap: 0.8rem;
}

.media-placeholder {
  display: grid;
  place-items: center;
  color: rgba(244, 240, 232, 0.58);
  background:
    linear-gradient(135deg, rgba(126, 240, 193, 0.13), rgba(255, 255, 255, 0.04)),
    #11151c;
  border: 1px dashed rgba(244, 240, 232, 0.24);
  border-radius: 14px;
  overflow: hidden;
}

.title-screen {
  min-height: 270px;
}

.media-carousel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(180px, 1fr);
  gap: 0.8rem;
  overflow-x: auto;
  padding-bottom: 0.2rem;
  scrollbar-color: var(--line) transparent;
}

.carousel-item {
  min-height: 140px;
}

.media-placeholder span {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.project-copy {
  align-self: center;
  padding: 0.5rem 0.25rem;
}

.project-type {
  margin-bottom: 0.55rem;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.about {
  max-width: none;
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(220px, 0.45fr) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: center;
}

.about-photo-placeholder {
  min-height: 280px;
  display: grid;
  place-items: center;
  color: rgba(244, 240, 232, 0.58);
  background:
    linear-gradient(135deg, rgba(126, 240, 193, 0.13), rgba(255, 255, 255, 0.04)),
    #11151c;
  border: 1px dashed rgba(244, 240, 232, 0.24);
  border-radius: 14px;
  overflow: hidden;
}

.about-photo-placeholder span {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.about-photo-placeholder img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  max-width: 1120px;
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 860px) {
  .hero-copy {
    white-space: normal;
  }

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

  .title-screen {
    min-height: 220px;
  }

  .carousel-item {
    min-height: 120px;
  }

  .about-photo-placeholder {
    min-height: 220px;
  }
}

@media (max-width: 780px) {
  .site-header,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    flex-wrap: wrap;
  }

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

  h1 {
    font-size: clamp(3.4rem, 17vw, 5.5rem);
    white-space: normal;
  }

  .section {
    padding: 1.25rem;
  }
}


.media-placeholder img,
.media-placeholder video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}


.expandable-media {
  cursor: zoom-in;
}

.no-scroll {
  overflow: hidden;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  place-items: center;
  padding: 2rem;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(12px);
}

.lightbox.is-open {
  display: grid;
}

.lightbox-image {
  max-width: min(1200px, 94vw);
  max-height: 86vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 14px;
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.45);
}

.lightbox-close {
  position: fixed;
  top: 1rem;
  right: 1rem;
  width: 2.8rem;
  height: 2.8rem;
  color: var(--text);
  background: rgba(23, 27, 34, 0.88);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
}

.lightbox-close:hover {
  border-color: var(--accent);
}

@media (max-width: 780px) {
  .lightbox {
    padding: 1rem;
  }

  .lightbox-image {
    max-width: 96vw;
    max-height: 82vh;
  }
}
