:root {
  --bg: #000000;
  --text: #ffffff;
  --muted: #c7c7c7;
  --line: #ffffff33;
  --accent: #7bd3ff;
  --project-title-size: clamp(28px, 3.1vw, 46px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
}

body {
  font-family: "Space Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

body.project-open {
  overflow: hidden;
}

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

button {
  color: inherit;
  background: transparent;
  border: 0;
  font: inherit;
  cursor: pointer;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 90;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 18px;
  background: transparent;
  color: #ffffff;
  mix-blend-mode: difference;
}

.logo,
.top-nav a {
  color: inherit;
}

.logo {
  font-family: "Syne", "Space Grotesk", sans-serif;
  font-weight: 700;
  letter-spacing: 0.07em;
  font-size: 24px;
}

.top-nav {
  display: flex;
  gap: 18px;
  font-size: 18px;
}

.top-nav a {
  opacity: 1;
  transition: opacity 0.18s ease, letter-spacing 0.18s ease;
}

.top-nav a:hover,
.top-nav a:focus-visible {
  opacity: 0.82;
  letter-spacing: 0.02em;
  outline: none;
}

.hero {
  position: relative;
  min-height: 100svh;
  overflow: clip;
  background: #000;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-list-wrap {
  position: absolute;
  inset: auto 18px 26px 18px;
  z-index: 10;
  color: #ffffff;
  mix-blend-mode: difference;
}

.project-list {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0;
  max-width: min(96vw, 1760px);
  overflow: visible;
  padding-bottom: 0;
}

.project-token {
  display: inline-flex;
  align-items: baseline;
  white-space: nowrap;
}

.project-text {
  color: inherit;
  display: inline-block;
  width: auto;
  text-align: inherit;
  font-family: "Syne", "Space Grotesk", sans-serif;
  font-size: var(--project-title-size);
  line-height: 1.04;
  letter-spacing: -0.015em;
  transition: opacity 0.16s ease, letter-spacing 0.16s ease;
  padding: 0;
  margin-right: 0;
  margin-bottom: 0;
  white-space: nowrap;
  will-change: opacity;
}

.project-text.active:not(:hover):not(:focus-visible) {
  opacity: 1;
}

.project-text:hover,
.project-text:focus-visible {
  opacity: 0 !important;
  letter-spacing: -0.01em;
  text-decoration: none;
  outline: none;
}

.project-sep {
  display: inline-block;
  margin: 0 0.6em 0 0.48em;
  opacity: 0.72;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
  font-family: "Syne", "Space Grotesk", sans-serif;
  font-size: var(--project-title-size);
  line-height: 1.04;
}

.project-page {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: #000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}

.project-page.open {
  opacity: 1;
  pointer-events: auto;
}

.project-page-scroll {
  height: 100%;
  overflow: auto;
  padding: 102px 18px 32px;
}

.project-back-btn {
  display: inline-block;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  margin-bottom: 18px;
  transition: border-color 0.18s ease, color 0.18s ease;
}

.project-back-btn:hover,
.project-back-btn:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
  outline: none;
}

.project-page-grid {
  max-width: 1500px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 28px;
  align-items: start;
}

.project-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid #ffffff2e;
  border-radius: 14px;
  background: #000;
  object-fit: cover;
}

.project-clip-row {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.project-clip-btn {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  color: #d6d6d6;
  transition: border-color 0.18s ease, color 0.18s ease;
}

.project-clip-btn:hover,
.project-clip-btn:focus-visible,
.project-clip-btn.active {
  color: #fff;
  border-color: var(--accent);
  outline: none;
}

.project-kicker {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #a8a8a8;
}

.project-heading {
  margin: 8px 0 12px;
  font-family: "Syne", "Space Grotesk", sans-serif;
  font-size: clamp(28px, 5.4vw, 64px);
  line-height: 0.98;
  letter-spacing: -0.02em;
}

.project-lead {
  margin: 0 0 14px;
  font-size: clamp(16px, 1.7vw, 22px);
  line-height: 1.24;
  color: #f0f0f0;
}

.project-body {
  margin: 0;
  font-size: 14px;
  line-height: 1.42;
  color: #d6d6d6;
}

.project-meta {
  margin-top: 22px;
  border-top: 1px solid var(--line);
}

.project-meta p {
  margin: 0;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
}

.project-meta span {
  color: #a8a8a8;
}

.project-meta strong {
  font-weight: 600;
  text-transform: capitalize;
}

.project-post-link {
  display: inline-block;
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  transition: border-color 0.18s ease, color 0.18s ease;
}

.project-post-link:hover,
.project-post-link:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
  outline: none;
}

@media (max-width: 980px) {
  .project-page-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

@media (max-width: 760px) {
  :root {
    --project-title-size: clamp(24px, 6.2vw, 30px);
  }

  .site-header {
    padding: 12px;
  }

  .logo {
    font-size: 18px;
  }

  .top-nav {
    font-size: 14px;
    gap: 12px;
  }

  .hero-list-wrap {
    inset: auto 12px 20px 12px;
  }

  .project-sep {
    margin: 0 0.3em 0 0.22em;
  }

  .project-page-scroll {
    padding: 84px 12px 22px;
  }
}
