/* Alec Lewis — bold, chill, music desk. */

:root {
  --ground: #09090b;
  --paper: #121214;
  --ink: #f4f2ee;
  --muted: #8b8790;
  --lede: #d4d0c8;
  --line: rgba(244, 242, 238, 0.1);
  --line-strong: rgba(244, 242, 238, 0.2);
  --accent: #ff3d8a;
  --accent-soft: rgba(255, 61, 138, 0.16);
  --red: #e11d2e;
  --max: 1100px;
  --display: "Syne", system-ui, sans-serif;
  --sans: "Outfit", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

body {
  background: var(--ground);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  background-image:
    radial-gradient(ellipse 80% 50% at 15% -5%, rgba(255, 61, 138, 0.14), transparent 50%),
    radial-gradient(ellipse 55% 40% at 95% 15%, rgba(168, 85, 247, 0.08), transparent 45%);
}

::selection { background: var(--accent); color: #09090b; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- NAV ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem max(1.5rem, calc((100vw - var(--max)) / 2 + 1.5rem));
  background: rgba(9, 9, 11, 0.8);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}
.nav-name {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.03em;
  text-decoration: none;
  color: var(--ink);
  justify-self: start;
}
.nav-links {
  display: flex;
  gap: 1.6rem;
  justify-self: center;
}
.nav-links a {
  position: relative;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.25s var(--ease);
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.35rem;
  width: 100%;
  height: 1.5px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav-links a:hover,
.nav-links a.active { color: var(--ink); }
.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); }
.nav-mail {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.84rem;
  justify-self: end;
  transition: color 0.2s var(--ease);
}
.nav-mail:hover { color: var(--ink); }
@media (max-width: 720px) {
  .nav { grid-template-columns: 1fr auto; }
  .nav-links { display: none; }
}

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

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  padding: 0.75rem 1.3rem;
  border-radius: 999px;
  color: var(--ink);
  border: 1px solid var(--line-strong);
  background: transparent;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease), color 0.2s var(--ease);
}
.btn:hover {
  transform: translateY(-1px);
  background: rgba(244, 242, 238, 0.06);
  border-color: rgba(244, 242, 238, 0.4);
}
.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #09090b;
}
.btn-primary:hover {
  background: #ff5ca0;
  border-color: #ff5ca0;
  color: #09090b;
  box-shadow: 0 0 28px rgba(255, 61, 138, 0.35);
}
.btn-yt {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}
.btn-yt:hover { background: #f12a3b; border-color: #f12a3b; color: #fff; }

.btn-text {
  display: inline-flex;
  align-items: center;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--lede);
  text-decoration: none;
  padding: 0.75rem 0.35rem;
  transition: color 0.2s var(--ease);
}
.btn-text:hover { color: var(--accent); }

/* ---------- REVEALS ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(28px) scale(0.985);
  filter: blur(4px);
  transition:
    opacity 0.85s var(--ease),
    transform 0.85s var(--ease),
    filter 0.85s var(--ease);
  transition-delay: var(--d, 0s);
}
.js .reveal.visible {
  opacity: 1;
  transform: none;
  filter: none;
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  min-height: calc(100vh - 3.4rem);
  display: flex;
  align-items: center;
  padding: 3.5rem 0 3rem;
  scroll-margin-top: 3.5rem;
}
.hero-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 50% 45% at 20% 40%, rgba(255, 61, 138, 0.18), transparent 60%),
    radial-gradient(ellipse 35% 30% at 80% 70%, rgba(168, 85, 247, 0.1), transparent 55%);
}
.hero-inner {
  position: relative;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem 3.5rem;
  align-items: end;
}
.hero-name {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(4.2rem, 12vw, 7.2rem);
  letter-spacing: -0.06em;
  line-height: 0.86;
  margin-bottom: 1.5rem;
}
.hero-name span {
  display: block;
}
.js .hero-main.reveal.visible .hero-name span {
  animation: name-in 0.9s var(--ease) both;
}
.js .hero-main.reveal.visible .hero-name span:nth-child(2) {
  animation-delay: 0.1s;
}
@keyframes name-in {
  from {
    opacity: 0;
    transform: translateY(1.1rem) skewY(2deg);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.hero-line {
  font-size: clamp(1.1rem, 2vw, 1.25rem);
  color: var(--lede);
  max-width: 30ch;
  line-height: 1.5;
  margin-bottom: 2rem;
  font-weight: 400;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.hero-aside {
  padding: 0;
}
.hero-aside-lead {
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
}
.hero-work {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 1.5rem;
  border-top: 1px solid var(--line-strong);
}
.hero-work li {
  border-bottom: 1px solid var(--line);
}
.hero-work a {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 1.05rem 0;
  text-decoration: none;
  transition: padding-left 0.35s var(--ease), transform 0.35s var(--ease);
}
.hero-work a:hover {
  padding-left: 0.45rem;
  transform: translateX(2px);
}
.hero-work b {
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
  transition: color 0.2s var(--ease);
}
.hero-work a:hover b { color: var(--accent); }
.hero-work span {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.4;
  max-width: 28ch;
}
.hero-meta {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.4;
}

@media (max-width: 860px) {
  .hero {
    min-height: auto;
    padding: 2.5rem 0 2.25rem;
  }
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 2.75rem;
    align-items: start;
  }
  .hero-name {
    font-size: clamp(3.6rem, 17vw, 5.2rem);
  }
}

/* ---------- AMINAL ---------- */
.aminal {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  padding: 3.75rem 0 3.25rem;
  scroll-margin-top: 3.5rem;
  background: #050506;
  border-top: 2px solid var(--red);
  position: relative;
}
.aminal::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 200px;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(225, 29, 46, 0.1), transparent);
}
.aminal-intro,
.cinema,
.gallery,
.stats {
  position: relative;
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.cinema { margin-bottom: 1.75rem; }
.cinema-screen {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 14px;
  overflow: hidden;
  box-shadow:
    0 40px 90px -36px rgba(0, 0, 0, 0.95),
    0 0 0 1px rgba(255, 61, 138, 0.12);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.cinema-screen:hover {
  transform: translateY(-2px);
  box-shadow:
    0 48px 100px -34px rgba(0, 0, 0, 0.95),
    0 0 0 1px rgba(255, 61, 138, 0.22);
}
.cinema-screen iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.cinema-now {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.85rem;
  margin-top: 1rem;
}
.cinema-title {
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.03em;
}
.cinema-sub {
  font-size: 0.85rem;
  color: var(--muted);
}

.aminal-intro { margin-bottom: 2rem; }
.aminal-intro h2 {
  font-family: var(--display);
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  margin-bottom: 0.85rem;
  line-height: 1;
}
.aminal-intro p {
  color: var(--lede);
  max-width: 52ch;
  font-size: 1.05rem;
}

.gallery { margin-bottom: 2.25rem; }
.gallery-label {
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.9rem;
}
.gallery-strip {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.7rem;
}
@media (max-width: 820px) {
  .gallery-strip { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 440px) {
  .gallery-strip { grid-template-columns: repeat(2, 1fr); }
}
.vid {
  border: 0;
  padding: 0;
  background: none;
  cursor: pointer;
  text-align: left;
  transition: transform 0.25s var(--ease);
}
.vid:hover { transform: translateY(-2px); }
.vid img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 8px;
  display: block;
  margin-bottom: 0.4rem;
  outline: 2px solid transparent;
  outline-offset: 2px;
  transition: outline-color 0.2s var(--ease), opacity 0.2s var(--ease);
  opacity: 0.82;
}
.vid:hover img { outline-color: rgba(255, 61, 138, 0.45); opacity: 1; }
.vid.is-active img { outline-color: var(--accent); opacity: 1; }
.vid-cap {
  display: block;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--muted);
}
.vid-cap b { color: var(--ink); font-weight: 600; }
.vid.is-active .vid-cap b { color: var(--accent); }

.stats { margin-bottom: 0.25rem; }
.aminal-pipe {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  color: var(--lede);
  margin-bottom: 1.35rem;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.4rem;
}
@media (max-width: 640px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
.stat {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.2rem 1.1rem 1.05rem;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), background 0.35s var(--ease);
}
.stat:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 61, 138, 0.35);
  background: #16161a;
}
.stat-num {
  display: block;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2rem, 4.5vw, 2.7rem);
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.stat-label {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.stats-foot {
  color: var(--lede);
  font-size: 1rem;
  max-width: 56ch;
  margin-bottom: 1.4rem;
}
.stats-foot b { color: var(--ink); font-weight: 600; }
.aminal-links {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ---------- BACKLINE ---------- */
.blx {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  padding: 3.25rem 0 0;
  scroll-margin-top: 3.5rem;
  background: #0d0d10;
  border-top: 1px solid rgba(255, 61, 138, 0.28);
}
.blx-banner {
  max-width: var(--max);
  margin: 0 auto 1.5rem;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  flex-wrap: wrap;
}
.blx-banner h2 {
  font-family: var(--display);
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
  margin-bottom: 0.7rem;
}
.blx-banner p {
  color: var(--lede);
  max-width: 46ch;
  font-size: 1.05rem;
}
.blx-frame {
  border-top: 1px solid var(--line);
  background: #050506;
  padding: 1.5rem 0 2rem;
}
.blx-frame iframe {
  display: block;
  width: 100%;
  max-width: 1100px;
  height: 620px;
  margin: 0 auto;
  border: 0;
  border-radius: 12px;
  box-shadow: 0 32px 80px -28px rgba(0, 0, 0, 0.8);
}
@media (max-width: 620px) {
  .blx-frame { padding: 0.75rem 0 1.25rem; }
  .blx-frame iframe { height: 660px; border-radius: 0; }
}

/* ---------- MIX ---------- */
.mix {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  padding: 3.25rem 0 3.75rem;
  scroll-margin-top: 3.5rem;
  background: #09090b;
  border-top: 1px solid var(--line);
}
.mix-layout {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 2.25rem;
  align-items: center;
}
@media (max-width: 860px) {
  .mix-layout { grid-template-columns: 1fr; gap: 1.75rem; }
}
.mix-frame {
  max-width: var(--max);
  margin: 2.5rem auto 0;
  padding: 0 1.5rem;
}
.mix-frame-label {
  font-family: var(--display);
  font-style: italic;
  color: var(--lede);
  margin-bottom: 1rem;
}
.mix-frame iframe {
  display: block;
  width: 100%;
  height: 900px; /* fallback; JS auto-fits to content to avoid inner scroll */
  border: 0;
  border-radius: 12px;
  background: #050506;
  box-shadow: 0 32px 80px -28px rgba(0, 0, 0, 0.8);
}
@media (max-width: 620px) {
  .mix-frame { padding: 0 1rem; }
  .mix-frame iframe { height: 760px; border-radius: 10px; }
}
.mix-copy h2 {
  font-family: var(--display);
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
  margin-bottom: 0.85rem;
}
.mix-copy p {
  color: var(--lede);
  max-width: 34ch;
  margin-bottom: 0.9rem;
  font-size: 1.05rem;
}
.mix-hint {
  font-size: 0.88rem !important;
  color: var(--muted) !important;
}
.mix-copy .btn { margin-top: 0.5rem; }

.theater-screen {
  position: relative;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 36px 90px -32px rgba(0, 0, 0, 0.9);
}
.theater-screen video {
  width: 100%;
  height: auto;
  display: block;
  max-height: 560px;
  object-fit: contain;
}
.mix-play {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  border: 0;
  cursor: pointer;
  background: rgba(9, 9, 11, 0.55);
  color: var(--ink);
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 700;
}
.mix-play[hidden] { display: none !important; }
.mix-play-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--accent);
  position: relative;
}
.mix-play-icon::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 0;
  height: 0;
  border: 10px solid transparent;
  border-left: 17px solid #09090b;
  border-right: 0;
  transform: translateX(3px);
}

/* ---------- FOOTER ---------- */
.footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.5rem 1.5rem 2.25rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.82rem;
}
.footer a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
.footer a:hover { color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }
  .js .hero-main.reveal.visible .hero-name span { animation: none; }
  .btn:hover,
  .vid:hover,
  .stat:hover,
  .cinema-screen:hover,
  .hero-work a:hover {
    transform: none;
    padding-left: 0;
  }
}
