
:root {
  --bg: #0b0b10;
  --panel: #13131a;
  --panel-2: #191922;
  --text: #f4f4f7;
  --muted: #a7a7b4;
  --line: #292934;
  --accent: #d21f3c;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 12% 0%, rgba(150, 24, 57, .16), transparent 30rem),
    var(--bg);
  color: var(--text);
  line-height: 1.55;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px max(24px, calc((100vw - var(--max)) / 2));
  background: rgba(11, 11, 16, .82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(145deg, var(--accent), #6f1029);
  box-shadow: 0 0 28px rgba(210,31,60,.22);
}

nav { display: flex; gap: 22px; color: var(--muted); }
nav a:hover { color: var(--text); }

main, footer {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

.hero {
  position: relative;
  min-height: 560px;
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  margin-top: 34px;
  padding: 64px;
  background:
    linear-gradient(120deg, rgba(28, 11, 18, .95), rgba(13, 13, 18, .98) 58%),
    var(--panel);
}

.hero-glow {
  position: absolute;
  width: 520px;
  height: 520px;
  left: -170px;
  bottom: -250px;
  border-radius: 50%;
  background: var(--accent);
  filter: blur(120px);
  opacity: .18;
}

.hero-content { position: relative; z-index: 2; max-width: 720px; }

.eyebrow {
  margin: 0 0 12px;
  color: #ee667e;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: .14em;
}

h1, h2, h3 { margin-top: 0; line-height: 1.08; }

h1 {
  margin-bottom: 22px;
  font-size: clamp(44px, 6vw, 78px);
  letter-spacing: -.045em;
}

h2 { font-size: clamp(34px, 4vw, 54px); letter-spacing: -.035em; }
h3 { font-size: 24px; }

.hero-text {
  max-width: 680px;
  color: var(--muted);
  font-size: 18px;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 12px;
  font-weight: 750;
  border: 1px solid var(--line);
}

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

.button.ghost { background: rgba(255,255,255,.025); }
.button:hover { transform: translateY(-1px); }

.hero-emblem {
  position: relative;
  justify-self: center;
  display: grid;
  place-items: center;
  width: 250px;
  height: 250px;
}

.emblem-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.12);
  box-shadow:
    0 0 0 24px rgba(210,31,60,.025),
    0 0 90px rgba(210,31,60,.14);
}

.emblem-core {
  display: grid;
  place-items: center;
  width: 142px;
  height: 142px;
  border-radius: 32px;
  transform: rotate(45deg);
  background: linear-gradient(145deg, #27121a, #0d0d12);
  border: 1px solid #6e2636;
  color: #f47a8f;
  font-size: 62px;
  font-weight: 900;
}

.section { padding: 100px 0 20px; }

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 28px;
}

.section-heading h2 { margin-bottom: 0; }
.muted { color: var(--muted); }

.project-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}

.project-card {
  grid-column: span 6;
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  background: var(--panel);
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease;
}

.project-card:hover {
  transform: translateY(-3px);
  border-color: #49303a;
}

.project-cover {
  aspect-ratio: 16 / 10;
  width: 100%;
  object-fit: cover;
  background:
    radial-gradient(circle at 25% 40%, rgba(210,31,60,.3), transparent 30%),
    linear-gradient(135deg, #211019, #101017 62%);
}

.project-placeholder {
  display: grid;
  place-items: center;
  color: #cd7789;
  font-size: clamp(32px, 5vw, 72px);
  font-weight: 900;
  letter-spacing: -.05em;
}

.project-body { padding: 22px; }
.project-body h3 { margin-bottom: 10px; }
.project-body p { margin: 0; color: var(--muted); }

.tags {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.tag {
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #c4c4ce;
  font-size: 12px;
}

.split {
  display: grid;
  grid-template-columns: .7fr 1.3fr;
  gap: 64px;
}

.about-text {
  margin: 0;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 22px);
}

.contact {
  margin-bottom: 80px;
  padding: 56px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--panel);
}

.contact-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 26px;
}

.contact-link {
  padding: 11px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--panel-2);
}

.contact-link:hover { border-color: #57313b; }

footer {
  padding: 28px 0 50px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  font-size: 14px;
}

dialog {
  width: min(980px, calc(100% - 30px));
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #101016;
  color: var(--text);
  box-shadow: 0 30px 120px rgba(0,0,0,.65);
  overflow: hidden;
}

dialog::backdrop {
  background: rgba(0,0,0,.75);
  backdrop-filter: blur(4px);
}

.dialog-close {
  position: absolute;
  z-index: 5;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(10,10,14,.85);
  color: white;
  font-size: 24px;
  cursor: pointer;
}

.gallery {
  position: relative;
  min-height: 280px;
  background: #09090d;
  overflow: hidden;
}

.media-viewport {
  width: 100%;
  overflow: hidden;
  background: #09090d;
}

.media-track {
  display: flex;
  width: 100%;
  transform: translateX(0);
  transition: transform .42s cubic-bezier(.22, .61, .36, 1);
  will-change: transform;
}

.media-slide {
  flex: 0 0 100%;
  min-width: 100%;
  display: grid;
  place-items: center;
  background: #09090d;
}

.media-slide img {
  width: 100%;
  max-height: 620px;
  object-fit: contain;
  background: #09090d;
}

.media-slide .video-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.media-slide .video-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.gallery-arrow {
  position: absolute;
  z-index: 4;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 48px;
  height: 64px;
  padding: 0;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 14px;
  background: rgba(8,8,12,.72);
  color: white;
  font-size: 42px;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: background .16s ease, transform .16s ease, border-color .16s ease;
}

.gallery-arrow:hover {
  background: rgba(35,17,24,.9);
  border-color: rgba(255,255,255,.24);
}

.gallery-arrow:disabled { display: none; }
.gallery-prev { left: 14px; }
.gallery-next { right: 14px; }
.gallery-prev:hover { transform: translateY(-50%) translateX(-2px); }
.gallery-next:hover { transform: translateY(-50%) translateX(2px); }

.gallery-counter {
  position: absolute;
  z-index: 4;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(8,8,12,.72);
  border: 1px solid rgba(255,255,255,.1);
  color: #dddde5;
  font-size: 12px;
  backdrop-filter: blur(8px);
}

@media (prefers-reduced-motion: reduce) {
  .media-track {
    transition: none;
  }
}

.dialog-content { padding: 26px; }
.dialog-content p { color: var(--muted); }

.dialog-links {
  display: flex;
  gap: 10px;
  margin-top: 22px;
  flex-wrap: wrap;
}

@media (max-width: 820px) {
  .topbar nav { display: none; }

  .hero {
    min-height: 0;
    grid-template-columns: 1fr;
    padding: 42px 28px;
  }

  .hero-emblem { display: none; }
  .project-card { grid-column: span 12; }
  .split { grid-template-columns: 1fr; gap: 20px; }
  .section-heading { align-items: start; flex-direction: column; }
  .contact { padding: 34px 24px; }
  footer { flex-direction: column; }

  .gallery-arrow {
    width: 42px;
    height: 56px;
  }
}
