* {
  box-sizing: border-box;
}

:root {
  --bg: #050505;
  --panel: #111113;
  --panel-soft: #18181b;
  --text: #f5f5f5;
  --muted: #a1a1aa;
  --line: rgba(255, 255, 255, 0.12);
  --white: #ffffff;
  --black: #000000;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
}

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

.site-header {
  min-height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 255, 255, 0.16), transparent 28%),
    radial-gradient(circle at 78% 18%, rgba(113, 113, 122, 0.22), transparent 24%),
    linear-gradient(135deg, #09090b, #000 70%);
  border-bottom: 1px solid var(--line);
}

.nav {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: var(--white);
  color: var(--black);
  font-weight: 800;
  letter-spacing: -0.08em;
}

.brand strong {
  display: block;
  font-size: 18px;
}

.brand small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  color: #d4d4d8;
  font-size: 14px;
}

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

.menu-button {
  display: none;
}

.hero {
  width: min(1180px, calc(100% - 32px));
  min-height: calc(100vh - 96px);
  margin: 0 auto;
  padding: 80px 0 110px;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  align-items: center;
  gap: 64px;
}

.eyebrow {
  margin: 0 0 18px;
  color: #a1a1aa;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.28em;
}

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

h1 {
  margin-bottom: 28px;
  max-width: 780px;
  font-size: clamp(58px, 8vw, 112px);
  line-height: 0.9;
  letter-spacing: -0.075em;
}

.hero-text {
  max-width: 720px;
  color: #d4d4d8;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.65;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 16px;
  font-weight: 700;
  font-size: 14px;
  transition: transform 0.2s ease, background 0.2s ease, border 0.2s ease;
}

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

.primary {
  background: var(--white);
  color: var(--black);
}

.ghost {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
}

.dark-button {
  background: #111;
  color: #fff;
}

.hero-card {
  position: relative;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--line);
  border-radius: 34px;
  overflow: hidden;
  background:
    radial-gradient(circle at 35% 25%, rgba(255, 255, 255, 0.2), transparent 24%),
    linear-gradient(145deg, #27272a, #09090b 72%);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.5);
}

.photo-fill,
.photo-universe img,
.gallery-grid img,
.mini-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.photo-fill {
  position: absolute;
  inset: 0;
  opacity: 0.82;
}

.photo-overlay {
  position: absolute;
  inset: 0;
  padding: 34px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: linear-gradient(to top, rgba(0,0,0,.82), rgba(0,0,0,.18), rgba(0,0,0,.15));
}

.photo-overlay span {
  margin-bottom: 18px;
  color: #d4d4d8;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.25em;
}

.photo-overlay strong {
  max-width: 420px;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1;
  letter-spacing: -0.05em;
}

.section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 104px 0;
}

.dark {
  width: 100%;
  max-width: none;
  padding-left: max(16px, calc((100vw - 1180px) / 2));
  padding-right: max(16px, calc((100vw - 1180px) / 2));
  background: #0d0d0f;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-heading {
  max-width: 820px;
  margin-bottom: 46px;
}

.section-heading h2,
.contact-card h2 {
  font-size: clamp(38px, 5vw, 72px);
  line-height: 0.98;
  letter-spacing: -0.06em;
  margin-bottom: 0;
}

.intro-grid,
.cards-grid,
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.text-block,
.universe-card,
.service {
  min-height: 245px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.045);
}

.text-block h3,
.universe-card h3,
.service h3,
.project h3,
.series-block h3 {
  margin-bottom: 14px;
  font-size: 24px;
  letter-spacing: -0.04em;
}

.text-block p,
.universe-card p,
.service p,
.project p,
.contact-card p {
  color: #bdbdc7;
  line-height: 1.75;
}

.universe-card {
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.12), transparent 20%),
    linear-gradient(145deg, #18181b, #09090b);
}

.photo-universe {
  position: relative;
  min-height: 370px;
  overflow: hidden;
  padding: 0;
}

.photo-universe img {
  position: absolute;
  inset: 0;
  opacity: 0.72;
  transition: transform 0.5s ease, opacity 0.5s ease;
}

.photo-universe:hover img {
  transform: scale(1.04);
  opacity: 0.9;
}

.photo-universe::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.9), rgba(0,0,0,.25), rgba(0,0,0,.2));
}

.photo-universe > div {
  position: relative;
  z-index: 1;
  margin-top: auto;
  padding: 28px;
}

.universe-card span {
  display: block;
  margin-bottom: 44px;
  color: #d4d4d8;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.28em;
}

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

.gallery-grid img {
  aspect-ratio: 4 / 5;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: #111;
}

.series-list {
  display: grid;
  gap: 22px;
}

.series-block {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255,255,255,.04);
}

.series-block h3 {
  margin-bottom: 18px;
}

.mini-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.mini-gallery img {
  aspect-ratio: 16 / 10;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: #111;
}

.project-list {
  display: grid;
  gap: 16px;
}

.project {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 36px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #101012;
}

.project-tag {
  margin-bottom: 10px;
  color: #a1a1aa;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.24em;
}

.contact-section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 104px 0;
}

.contact-card {
  display: grid;
  grid-template-columns: 1fr 0.55fr;
  gap: 48px;
  align-items: end;
  padding: clamp(34px, 6vw, 70px);
  border-radius: 34px;
  background: #f5f5f5;
  color: #050505;
}

.contact-card p {
  max-width: 720px;
  color: #52525b;
  font-size: 17px;
}

.footer {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 48px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  color: #a1a1aa;
  font-size: 14px;
  border-top: 1px solid var(--line);
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

@media (max-width: 860px) {
  .menu-button {
    display: inline-flex;
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: transparent;
    color: var(--white);
    font: inherit;
  }

  .nav {
    position: relative;
  }

  .nav-links {
    display: none;
    position: absolute;
    z-index: 10;
    top: 82px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #0d0d0f;
  }

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

  .nav-links a {
    padding: 14px;
  }

  .hero,
  .project,
  .contact-card {
    grid-template-columns: 1fr;
  }

  .intro-grid,
  .cards-grid,
  .services-grid,
  .gallery-grid,
  .mini-gallery {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 48px;
  }

  .footer {
    flex-direction: column;
  }
}
