:root {
  color-scheme: dark;
  --bg: #02080a;
  --panel: rgba(255, 255, 255, 0.045);
  --panel-strong: rgba(0, 0, 0, 0.72);
  --line: rgba(255, 255, 255, 0.13);
  --line-strong: rgba(255, 255, 255, 0.24);
  --text: #ffffff;
  --muted: hsl(240, 4%, 66%);
  --quiet: rgba(255, 255, 255, 0.48);
  --blue-black: hsl(201, 100%, 13%);
  --silver: #d7d7d9;
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.42);
  --display: "Instrument Serif", "Times New Roman", serif;
  --title: Cinzel, Georgia, serif;
  --body: Inter, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  margin: 0;
}

body::selection {
  background: var(--text);
  color: var(--bg);
}

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

button {
  font: inherit;
}

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

.nav-shell {
  align-items: center;
  backdrop-filter: blur(14px);
  background: rgba(0, 0, 0, 0.52);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  height: 80px;
  justify-content: space-between;
  left: 0;
  padding: 0 clamp(22px, 6vw, 96px);
  position: fixed;
  right: 0;
  top: 0;
  z-index: 40;
}

.brand {
  color: var(--text);
  font-family: var(--display);
  font-size: clamp(28px, 3vw, 36px);
  line-height: 1;
  transition: color 180ms ease, transform 180ms ease;
}

.brand:hover {
  color: var(--silver);
  transform: scale(1.03);
}

.brand sup {
  font-size: 11px;
  margin-left: 1px;
}

.nav-links {
  align-items: center;
  display: flex;
  gap: clamp(22px, 4vw, 48px);
}

.nav-links a,
.section-jump a,
.glass-button {
  font-family: var(--title);
  letter-spacing: 0;
}

.nav-links a {
  color: var(--muted);
  font-size: 14px;
  transition: color 180ms ease;
}

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

.glass-button {
  align-items: center;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid transparent;
  border-radius: 999px;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.16);
  color: var(--text);
  display: inline-flex;
  justify-content: center;
  overflow: hidden;
  position: relative;
  transition: background 180ms ease, transform 180ms ease;
}

.glass-button::before,
.section-jump a::before {
  background: linear-gradient(180deg, rgba(255,255,255,0.46), rgba(255,255,255,0.08) 35%, rgba(255,255,255,0.08) 65%, rgba(255,255,255,0.42));
  border-radius: inherit;
  content: "";
  inset: 0;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  padding: 1px;
  pointer-events: none;
  position: absolute;
}

.glass-button:hover,
.section-jump a:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: scale(1.03);
}

.glass-button.compact {
  font-size: 14px;
  min-height: 40px;
  padding: 0 24px;
}

.glass-button.large {
  font-size: 16px;
  margin-top: 44px;
  min-height: 64px;
  padding: 0 54px;
}

.hero {
  align-items: center;
  background: var(--blue-black);
  display: flex;
  justify-content: center;
  min-height: 100svh;
  overflow: hidden;
  padding: 120px 24px 80px;
  position: relative;
  text-align: center;
}

.hero-video,
.hero-overlay {
  inset: 0;
  position: absolute;
}

.hero-video {
  height: 100%;
  object-fit: cover;
  opacity: 0.84;
  width: 100%;
}

.hero-overlay {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.48), rgba(0, 0, 0, 0.64)),
    linear-gradient(90deg, rgba(0, 25, 34, 0.62), rgba(0, 0, 0, 0.18), rgba(0, 25, 34, 0.62));
}

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

.hero h1 {
  font-family: var(--display);
  font-size: clamp(52px, 9vw, 124px);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 0.95;
  margin: 0;
}

.hero h1 em {
  color: var(--muted);
  font-style: normal;
}

.hero p {
  color: var(--muted);
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.8;
  margin: 30px auto 0;
  max-width: 680px;
}

.portfolio-shell {
  background:
    linear-gradient(180deg, rgba(2, 8, 10, 0.85), rgba(2, 8, 10, 1) 22%),
    radial-gradient(ellipse at 50% 0%, rgba(255, 255, 255, 0.08), transparent 50%);
  padding: 110px clamp(22px, 6vw, 96px) 20px;
  position: relative;
}

.portfolio-intro {
  margin: 0 auto 90px;
  max-width: 900px;
  text-align: center;
}

.spark {
  color: var(--muted);
  display: inline-block;
  font-size: 24px;
  margin-bottom: 28px;
}

.portfolio-intro h2,
.contact-card h2 {
  font-family: var(--title);
  font-size: clamp(54px, 8vw, 100px);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1;
  margin: 0;
}

.portfolio-intro p {
  color: var(--muted);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(26px, 4vw, 40px);
  font-style: italic;
  margin: 22px 0 0;
}

.section-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-top: 42px;
}

.section-jump a {
  background: rgba(255, 255, 255, 0.02);
  border-radius: 999px;
  color: var(--text);
  font-size: 12px;
  min-height: 42px;
  overflow: hidden;
  padding: 13px 22px;
  position: relative;
  transition: background 180ms ease, transform 180ms ease;
}

.work-section {
  margin: 0 auto 120px;
  max-width: 1160px;
  scroll-margin-top: 110px;
}

.section-title {
  margin-bottom: 42px;
}

.section-title h3 {
  font-family: var(--title);
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 400;
  letter-spacing: 0;
  margin: 0 0 16px;
}

.section-title span {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.5), transparent);
  display: block;
  height: 1px;
  width: 72px;
}

.work-grid {
  display: grid;
  gap: clamp(28px, 4vw, 48px);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.work-card {
  cursor: pointer;
  outline: none;
  position: relative;
  transition: transform 240ms ease;
}

.work-card::before {
  background: linear-gradient(90deg, rgba(255,255,255,0.18), rgba(255,255,255,0.06), rgba(255,255,255,0.16));
  border-radius: 18px;
  content: "";
  filter: blur(10px);
  inset: -2px;
  opacity: 0;
  position: absolute;
  transition: opacity 240ms ease;
}

.work-card:hover {
  transform: translateY(-8px);
}

.work-card:hover::before {
  opacity: 0.55;
}

.work-card img {
  aspect-ratio: 16 / 9;
  background: #080808;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 16px;
  box-shadow: var(--shadow);
  height: auto;
  object-fit: cover;
  opacity: 0.82;
  overflow: hidden;
  position: relative;
  transition: opacity 240ms ease, transform 420ms ease;
  width: 100%;
  z-index: 1;
}

.work-card:hover img {
  opacity: 1;
  transform: scale(1.015);
}

.work-card::after {
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: var(--text);
  content: "▶";
  display: flex;
  font-size: 28px;
  height: 76px;
  justify-content: center;
  left: 50%;
  opacity: 0;
  padding-left: 4px;
  position: absolute;
  top: 33%;
  transform: translate(-50%, -50%) scale(0.72);
  transition: opacity 220ms ease, transform 220ms ease;
  width: 76px;
  z-index: 2;
}

.work-card:hover::after {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.work-meta {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-top: -50px;
  padding: 0 16px 24px;
  pointer-events: none;
  position: relative;
  z-index: 3;
}

.work-meta span,
.work-meta small {
  background: rgba(0, 0, 0, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: var(--silver);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
  padding: 8px 12px;
}

.work-card h4 {
  color: var(--text);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.35;
  margin: 22px 0 0;
  position: relative;
}

.work-card h4 span {
  color: var(--muted);
  display: block;
  font-size: 16px;
  margin-top: 4px;
}

.work-card p {
  color: rgba(255, 255, 255, 0.42);
  font-size: 14px;
  line-height: 1.7;
  margin: 10px 0 0;
}

.contact-shell {
  background:
    linear-gradient(180deg, rgba(2, 8, 10, 1), rgba(2, 8, 10, 0.86)),
    url("assets/covers/figma-rebirth.jpg") center / cover;
  padding: 96px 24px 120px;
}

.contact-card {
  background: rgba(0, 0, 0, 0.48);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  box-shadow: var(--shadow);
  margin: 0 auto;
  max-width: 720px;
  padding: clamp(36px, 6vw, 64px);
  text-align: center;
}

.contact-card h2 {
  font-size: clamp(40px, 6vw, 64px);
}

.contact-list {
  display: grid;
  gap: 18px;
  margin-top: 46px;
  text-align: left;
}

.contact-list a,
.contact-list p {
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  color: var(--text);
  display: grid;
  font-size: clamp(16px, 2vw, 20px);
  gap: 5px;
  margin: 0;
  padding: 0 0 18px;
  transition: color 180ms ease;
}

.contact-list a:hover {
  color: var(--muted);
}

.contact-list span {
  color: rgba(255, 255, 255, 0.38);
  font-size: 12px;
  letter-spacing: 0;
  text-transform: uppercase;
}

.site-footer {
  background: #000;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.34);
  padding: 38px 24px;
  text-align: center;
}

.site-footer p,
.site-footer small {
  display: block;
  letter-spacing: 0;
  margin: 0;
}

.site-footer small {
  margin-top: 10px;
}

.video-modal {
  background: #000;
  border: 0;
  color: var(--text);
  max-width: min(1160px, calc(100vw - 28px));
  overflow: visible;
  padding: 0;
  width: 100%;
}

.video-modal::backdrop {
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
}

.modal-close {
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: var(--text);
  cursor: pointer;
  display: flex;
  font-size: 24px;
  height: 42px;
  justify-content: center;
  position: absolute;
  right: 0;
  top: -56px;
  width: 42px;
}

.modal-frame {
  aspect-ratio: 16 / 9;
  background: #050505;
  width: 100%;
}

.modal-frame video,
.modal-frame iframe {
  border: 0;
  height: 100%;
  object-fit: contain;
  width: 100%;
}

.modal-copy {
  align-items: start;
  background: #000;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  gap: 24px;
  justify-content: space-between;
  padding: 28px;
}

.modal-copy span {
  color: rgba(255, 255, 255, 0.46);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: uppercase;
}

.modal-copy h3 {
  font-family: var(--title);
  font-size: clamp(26px, 4vw, 42px);
  font-weight: 400;
  margin: 8px 0 8px;
}

.modal-copy p {
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
}

.modal-copy a,
.playlist button {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: var(--text);
  cursor: pointer;
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 600;
  padding: 12px 16px;
}

.playlist {
  background: #000;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0 28px 28px;
}

.playlist:empty {
  display: none;
}

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

  .work-grid {
    grid-template-columns: 1fr;
  }

  .work-card::after {
    opacity: 1;
    top: 34%;
    transform: translate(-50%, -50%) scale(0.78);
  }
}

@media (max-width: 640px) {
  .nav-shell {
    height: 70px;
    padding-inline: 18px;
  }

  .brand {
    font-size: 28px;
  }

  .glass-button.compact {
    min-height: 36px;
    padding: 0 16px;
  }

  .hero {
    padding-top: 110px;
  }

  .portfolio-shell {
    padding-top: 82px;
  }

  .section-jump {
    align-items: center;
    flex-direction: column;
  }

  .section-jump a {
    width: min(100%, 320px);
  }

  .modal-copy {
    flex-direction: column;
  }

  .modal-copy a {
    text-align: center;
    width: 100%;
  }
}
