:root {
  --bg: #0f1117;
  --bg-soft: #1a1f2b;
  --text: #f3f0e8;
  --muted: #c8c1b1;
  --accent: #8b5cf6;
  --accent-soft: #c4b5fd;
  --line: rgba(243, 240, 232, 0.16);
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background: radial-gradient(circle at 15% 20%, #1b2a3a 0%, transparent 40%),
    radial-gradient(circle at 85% 10%, #35211b 0%, transparent 35%),
    linear-gradient(145deg, var(--bg) 0%, #11141d 60%, #171b26 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.12;
  background-image: radial-gradient(circle at 20% 20%, #fff 0.35px, transparent 0.35px);
  background-size: 3px 3px;
  z-index: 0;
}

.topbar,
main,
footer {
  position: relative;
  z-index: 1;
}

.topbar {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.05rem 1.3rem 0.95rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.brand-block {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  text-decoration: none;
  color: var(--text);
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.09em;
  font-size: clamp(2.25rem, 4.8vw, 3.2rem);
  line-height: 0.92;
}

.brand-subline {
  margin: 0;
  width: 100%;
  color: var(--accent-soft);
  font-size: clamp(0.38rem, 0.64vw, 0.5rem);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  display: flex;
  justify-content: space-between;
  gap: 0.45rem;
  line-height: 1;
  white-space: nowrap;
}

nav {
  display: flex;
  gap: 1rem;
}

nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.95rem;
}

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

main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1rem 1.3rem 4rem;
}

.hero {
  padding: 4.3rem 0 10.5rem;
  position: relative;
  overflow: hidden;
  min-height: 102vh;
}

.hero-copy {
  max-width: 72ch;
  position: relative;
  z-index: 2;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.73rem;
  color: var(--accent-soft);
  margin-bottom: 0.8rem;
}

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

h1,
h2 {
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.03em;
}

h1 {
  font-size: clamp(3.9rem, 11.2vw, 9.1rem);
  max-width: 14ch;
}

.hero-title {
  font-size: calc(clamp(3.9rem, 11.2vw, 9.1rem) + 2cm);
  max-width: 20ch;
  margin-top: 0.35rem;
  margin-bottom: 0;
  position: relative;
  z-index: 2;
}

.hero-title .line {
  display: block;
  color: var(--text);
  line-height: 0.82;
}

.hero-title .line.invisible {
  color: var(--accent);
}

.intro {
  max-width: 58ch;
  color: var(--muted);
  margin: 1.1rem 0 1.6rem;
  font-size: 1.03rem;
}

.intro-section {
  margin-top: 0.3rem;
  padding-top: 1.6rem;
}

.hero-cta {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-top: 2cm;
}

.portraits-section {
  margin-top: 1rem;
}

.portraits-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.portraits-grid img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 14px;
  filter: saturate(0.92) contrast(1.05) brightness(0.98) sepia(0.08) hue-rotate(8deg);
  opacity: 0.86;
  animation: portraitFadeOnly 10s linear infinite;
  transform: none !important;
  transition: none !important;
  will-change: opacity;
}

.portraits-grid img:nth-child(2) {
  animation-delay: 2.6s;
}

.portraits-grid img:nth-child(3) {
  animation-delay: 5.2s;
}

@keyframes portraitFadeOnly {
  0%,
  100% {
    opacity: 0.46;
  }
  35% {
    opacity: 1;
  }
  65% {
    opacity: 0.7;
  }
}

.btn {
  display: inline-block;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.7rem 1.15rem;
  font-weight: 700;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}

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

.btn-primary {
  background: var(--accent);
  color: #140f0c;
}

.btn-primary:hover {
  background: #a78bfa;
}

.btn-ghost {
  border: 1px solid var(--line);
  color: var(--text);
}

.section {
  padding: 2rem 0 1.5rem;
}

.section-head {
  margin-bottom: 1rem;
}

h2 {
  font-size: clamp(2rem, 5vw, 3.8rem);
}

.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.card-link .card {
  height: 100%;
  transition: transform 0.26s ease, border-color 0.26s ease, background 0.26s ease;
}

.card-link:hover .card {
  transform: translateY(-4px);
  border-color: rgba(196, 181, 253, 0.5);
  background: linear-gradient(170deg, rgba(196, 181, 253, 0.17), rgba(255, 255, 255, 0.03));
}

.card-readmore {
  margin-top: 0.8rem;
  color: var(--accent-soft);
  font-weight: 700;
  font-size: 0.9rem;
}

.card {
  background: linear-gradient(170deg, rgba(247, 178, 103, 0.11), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.1rem;
  backdrop-filter: blur(2px);
}

.card .meta {
  color: var(--accent-soft);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  margin-top: 0;
}

.card h3 {
  font-size: 1.45rem;
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.03em;
  margin: 0.1rem 0 0.5rem;
}

.card-alt-title {
  font-size: 1.1rem;
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.03em;
  color: var(--text);
  margin: -0.15rem 0 0.55rem;
}

.card p {
  color: var(--muted);
  margin: 0;
}

.dev-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.dev-card {
  border: 1px dashed rgba(196, 181, 253, 0.45);
  border-radius: 16px;
  padding: 1.1rem;
  background: linear-gradient(170deg, rgba(196, 181, 253, 0.1), rgba(255, 255, 255, 0.02));
}

.dev-card h3 {
  font-size: 1.45rem;
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.03em;
  margin: 0.1rem 0 0.5rem;
}

.dev-card p {
  color: var(--muted);
  margin: 0;
}

.page-shell {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.2rem 1.3rem 4rem;
  position: relative;
  z-index: 1;
}

.back-link {
  color: var(--accent-soft);
  text-decoration: none;
  font-size: 0.92rem;
}

.back-link:hover {
  text-decoration: underline;
}

.film-hero {
  padding: 1.2rem 0 1.6rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 1.2rem;
}

.film-subline {
  color: var(--muted);
  margin-top: 0.6rem;
}

.film-alt-title {
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(1.35rem, 3vw, 2rem);
  letter-spacing: 0.03em;
  color: var(--text);
  margin: 0.05rem 0 0;
  line-height: 1;
}

.film-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.film-panel {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.1rem;
  background: linear-gradient(170deg, rgba(196, 181, 253, 0.1), rgba(255, 255, 255, 0.02));
}

.film-panel h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
}

.film-panel p {
  color: var(--muted);
  margin-top: 0.7rem;
}

.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.2rem;
  align-items: start;
}

.split p,
.split li {
  color: var(--muted);
}

#about.split {
  grid-template-columns: minmax(0, 1.45fr) minmax(240px, 0.55fr);
  gap: 1.5rem;
}

#about > div:first-child {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.35rem;
  background: linear-gradient(165deg, rgba(196, 181, 253, 0.07), rgba(255, 255, 255, 0.015));
}

#about h2 {
  margin-bottom: 0.85rem;
}

#about > div:first-child p {
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
  font-size: clamp(0.84rem, 0.24vw + 0.79rem, 0.92rem);
  line-height: 1.52;
  margin: 0 0 0.62rem;
  max-width: 78ch;
}

#about > div:first-child p:last-of-type {
  margin-bottom: 0;
}

ul {
  padding-left: 1.2rem;
  margin-bottom: 0;
}

.quote-box {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.3rem;
  background: linear-gradient(160deg, rgba(139, 92, 246, 0.2), rgba(12, 14, 20, 0.6));
  transform: translateY(0);
}

#about .quote-box {
  transform: none;
  padding: 1.7rem;
  position: sticky;
  top: 1.2rem;
}

#about .quote-box p {
  font-size: clamp(2rem, 4.4vw, 3.25rem);
  line-height: 1.02;
}

#development .quote-box {
  transform: translateY(0);
}

.quote-box p {
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(1.4rem, 3.3vw, 2.3rem);
  color: var(--text);
  line-height: 1.1;
  margin: 0;
}

.contact {
  border-top: 1px solid var(--line);
  margin-top: 1.5rem;
  padding-top: 2.6rem;
}

.contact p {
  color: var(--muted);
  max-width: 52ch;
}

.contact-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.65rem;
}

.contact-address {
  font-size: 0.88rem;
  margin: 0.2rem 0 0;
}

footer {
  border-top: 1px solid var(--line);
  padding: 1.3rem;
  color: var(--muted);
  text-align: center;
}

.footer-links {
  margin-top: 0.4rem;
}

.footer-links a {
  color: var(--accent-soft);
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

.legal-page .film-panel a {
  color: var(--accent-soft);
}

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

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

.stagger .card {
  opacity: 0;
  transform: translateY(18px);
  animation: cardIn 0.75s ease forwards;
}

.stagger.visible .card:nth-child(1) {
  animation-delay: 0.1s;
}

.stagger.visible .card:nth-child(2) {
  animation-delay: 0.24s;
}

.stagger.visible .card:nth-child(3) {
  animation-delay: 0.38s;
}

.stagger.visible .card:nth-child(4) {
  animation-delay: 0.5s;
}

@keyframes cardIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .cards {
    grid-template-columns: 1fr;
  }

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

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

  #about.split {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  #about > div:first-child {
    padding: 1rem;
  }

  #about > div:first-child p {
    font-size: 0.86rem;
    line-height: 1.48;
    margin-bottom: 0.58rem;
  }

  #about .quote-box {
    position: static;
    top: auto;
    padding: 1.25rem;
  }

  nav {
    display: none;
  }

  .hero {
    padding-top: 2.4rem;
    min-height: 74vh;
  }

  .hero-cta {
    margin-top: 1rem;
  }

  .brand-subline {
    display: none;
  }

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

.video-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  margin-top: 0.35rem;
}

.video-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.trailer-link-panel {
  margin-top: -0.2rem;
  padding-top: 0.8rem;
}
