/* YITRAX — mobile-first. Dark by design: monochrome shell, colour comes from each cover (--accent). */

@font-face {
  font-family: "Syncopate";
  src: url(../fonts/syncopate.woff2) format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url(../fonts/space-grotesk.woff2) format("woff2");
  font-weight: 300 700;
  font-display: swap;
}

:root {
  --bg: #09090b;
  --bg-raise: #131317;
  --fg: #f4f4f2;
  --muted: #a6a6b0; /* 7.9:1 on --bg */
  --line: rgba(255, 255, 255, 0.14);
  --glass: rgba(255, 255, 255, 0.07);
  --accent: #8fc7ff;
  --on-accent: #07090c;

  --font-display: "Syncopate", "Arial Black", system-ui, sans-serif;
  --font-body: "Space Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --gutter: clamp(16px, 5vw, 40px);
  --maxw: 1180px;
  --radius: 16px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --header-h: 64px;

  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 1rem/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  min-height: 100svh;
}
body.nav-open {
  overflow: hidden;
}
img,
svg {
  display: block;
  max-width: 100%;
}
img {
  height: auto;
}
a {
  color: inherit;
}
ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
h1,
h2,
p {
  margin: 0;
}
button {
  font: inherit;
  color: inherit;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.skip-link {
  position: fixed;
  left: 12px;
  top: -80px;
  z-index: 100;
  padding: 12px 16px;
  background: var(--fg);
  color: var(--bg);
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
}
.skip-link:focus {
  top: 12px;
}

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
}
.icon.sm {
  width: 1em;
  height: 1em;
}
.icon.brand {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}
.h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.05rem, 4.4vw, 1.7rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.2;
}
.wrap {
  max-width: var(--maxw);
  margin-inline: auto;
}
.section {
  padding: clamp(64px, 12vw, 120px) var(--gutter) 0;
}
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--line);
  transition: transform 0.15s var(--ease), background 0.2s, border-color 0.2s;
}
.btn:active {
  transform: scale(0.97);
}
.btn-primary {
  background: var(--fg);
  color: var(--bg);
  border-color: transparent;
}
@media (hover: hover) {
  .btn-primary:hover {
    background: #fff;
  }
}

/* ---------- header / nav ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  padding: env(safe-area-inset-top) var(--gutter) 0;
}
/* The blurred bar lives on a pseudo-element: backdrop-filter on the header itself would make it the
   containing block of the fixed full-screen mobile menu. */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: rgba(9, 9, 11, 0.82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  opacity: 0;
  transition: opacity 0.3s;
}
.site-header.solid::before,
body.nav-open .site-header::before {
  opacity: 1;
}
.brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.16em;
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.menu-btn {
  display: none;
  width: 48px;
  height: 48px;
  margin-right: -10px;
  align-items: center;
  justify-content: center;
  background: none;
  border: 0;
  cursor: pointer;
}
.menu-btn .icon {
  width: 26px;
  height: 26px;
}
.menu-btn .when-open,
.menu-btn[aria-expanded="true"] .when-closed {
  display: none;
}
.menu-btn[aria-expanded="true"] .when-open {
  display: block;
}
.nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 22px;
}
.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg);
  opacity: 0.8;
  transition: opacity 0.2s;
}
@media (hover: hover) {
  .nav a:hover {
    opacity: 1;
  }
}
@media (max-width: 799px) {
  .js .menu-btn {
    display: inline-flex;
  }
  .js .nav {
    position: fixed;
    inset: 0;
    z-index: -1;
    display: flex;
    align-items: center;
    padding: calc(var(--header-h) + 24px) var(--gutter) 40px;
    background: rgba(9, 9, 11, 0.97);
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.25s var(--ease), visibility 0s 0.25s;
  }
  .js .nav.open {
    visibility: visible;
    opacity: 1;
    transition: opacity 0.25s var(--ease);
  }
  .js .nav ul {
    flex-direction: column;
    gap: 6px;
    width: 100%;
  }
  .js .nav a {
    width: 100%;
    min-height: 64px;
    font-family: var(--font-display);
    font-size: clamp(1.2rem, 6vw, 1.8rem);
    letter-spacing: 0.1em;
    opacity: 1;
    border-bottom: 1px solid var(--line);
  }
}
@media (max-width: 799px) {
  .nav:not(.open) ul {
    /* no-JS fallback keeps links reachable */
    row-gap: 0;
  }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding: calc(var(--header-h) + 24px) var(--gutter) max(28px, env(safe-area-inset-bottom));
  overflow: clip;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: -3;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: linear-gradient(to bottom, rgba(9, 9, 11, 0.6) 0%, rgba(9, 9, 11, 0) 26%, rgba(9, 9, 11, 0.25) 52%, rgba(9, 9, 11, 0.92) 86%, var(--bg) 100%);
}
.grain {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.14;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
.hero-inner {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
}
.hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 15vw, 10.5rem);
  line-height: 1;
  letter-spacing: 0.03em;
  margin: 10px 0 0;
  margin-left: -0.04em;
}
.latest {
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 460px;
  margin-top: 28px;
  padding: 10px 10px 10px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--glass);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  text-decoration: none;
  transition: transform 0.2s var(--ease), border-color 0.2s;
}
.latest:active {
  transform: scale(0.98);
}
@media (hover: hover) {
  .latest:hover {
    border-color: var(--accent);
  }
}
.latest-art {
  width: 72px;
  height: 72px;
  border-radius: 10px;
  object-fit: cover;
  flex: none;
}
.latest-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.latest-title {
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.latest-go {
  margin-left: auto;
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: var(--on-accent);
}
.latest-go .icon {
  width: 20px;
  height: 20px;
  margin-left: 2px;
}

/* ---------- release grid ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px 14px;
}
.card {
  display: block;
  text-decoration: none;
}
.card-art {
  display: block;
  position: relative;
  aspect-ratio: 1;
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg-raise);
  box-shadow: 0 14px 30px -14px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.06);
  transition: transform 0.2s var(--ease);
}
.card-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.card-tag {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--fg);
  color: var(--bg);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.card:active .card-art {
  transform: scale(0.97);
}
@media (hover: hover) {
  .card:hover .card-art img {
    transform: scale(1.05);
  }
}
.card-title {
  display: block;
  margin-top: 12px;
  font-weight: 600;
  font-size: 0.98rem;
  line-height: 1.3;
}
.card-meta {
  display: block;
  margin-top: 2px;
  font-size: 0.8rem;
  color: var(--muted);
}
@media (min-width: 640px) {
  .grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px 22px;
  }
}
@media (min-width: 1000px) {
  .grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 40px 26px;
  }
}

/* ---------- live gallery ---------- */
.live-section {
  padding-inline: 0;
}
.live-section .wrap {
  padding-inline: var(--gutter);
  max-width: calc(var(--maxw) + 2 * var(--gutter));
}
.live {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 0 var(--gutter) 8px;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.live::-webkit-scrollbar {
  display: none;
}
.live li {
  flex: 0 0 78%;
  scroll-snap-align: start;
  aspect-ratio: 4 / 5;
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-raise);
}
.live img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
}
@media (min-width: 640px) {
  .live li {
    flex-basis: 46%;
    aspect-ratio: 16 / 10;
  }
}
@media (min-width: 1000px) {
  .live {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    max-width: calc(var(--maxw) + 2 * var(--gutter));
    margin-inline: auto;
    overflow: visible;
    gap: 16px;
  }
  .live li {
    grid-column: span 2;
    aspect-ratio: 16 / 10;
  }
  .live li:nth-child(-n + 2) {
    grid-column: span 3;
    aspect-ratio: 16 / 9;
  }
}

/* ---------- about ---------- */
.about {
  display: grid;
  gap: 32px;
}
.about-photo {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--bg-raise);
}
.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.bio {
  margin-top: 20px;
  display: grid;
  gap: 18px;
  max-width: 62ch;
  font-size: 1rem;
  line-height: 1.7;
  color: #d0d0d8; /* 12:1 on --bg */
}
.bio p:first-child {
  font-size: clamp(1.15rem, 4.3vw, 1.4rem);
  line-height: 1.5;
  color: var(--fg);
}
@media (min-width: 900px) {
  .about {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: 72px;
    align-items: center;
  }
}

/* ---------- contact ---------- */
.contact {
  display: grid;
  justify-items: start;
  gap: 18px;
  padding: clamp(22px, 6vw, 56px);
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015));
}
.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  width: 100%;
  margin-top: 6px;
}
.social {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 14px;
  font-size: 0.95rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  text-decoration: none;
  font-weight: 500;
  transition: border-color 0.2s, background 0.2s, transform 0.15s var(--ease);
}
.social span {
  white-space: nowrap;
}
.social:active {
  transform: scale(0.97);
}
@media (hover: hover) {
  .social:hover {
    border-color: var(--fg);
    background: var(--glass);
  }
}

.footer {
  margin-top: clamp(64px, 12vw, 120px);
  padding: 28px var(--gutter) max(28px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
}
.footer .wrap {
  display: grid;
  gap: 4px;
}
.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.footer-contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 12px;
}
.footer-contact span {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.footer-contact a {
  color: var(--fg);
  text-decoration: underline;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}
.footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

/* ---------- reveal on scroll (only when JS runs) ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: calc(min(var(--i, 0), 7) * 45ms);
}
.js .reveal.in {
  opacity: 1;
  transform: none;
}

/* =====================  SMART LINK PAGE  ===================== */
body.smart {
  background: var(--bg);
}
.sl-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-size: cover;
  background-position: center;
  transform: scale(1.25);
  filter: saturate(1.3);
}
.sl-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(9, 9, 11, 0.5) 0%, rgba(9, 9, 11, 0.78) 45%, rgba(9, 9, 11, 0.96) 100%);
}
.sl {
  width: 100%;
  max-width: 480px;
  margin-inline: auto;
  padding: max(32px, env(safe-area-inset-top)) var(--gutter) max(24px, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.sl-card {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: rise 0.7s var(--ease) both;
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
}
.sl-cover {
  width: min(78vw, 340px, 42svh);
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 14px;
  margin-bottom: 22px;
  box-shadow: 0 34px 60px -24px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.1), 0 0 90px -30px var(--accent);
}
.sl-title {
  margin-top: 6px;
  font-weight: 700;
  font-size: clamp(1.5rem, 6.4vw, 2rem);
  line-height: 1.2;
  text-wrap: balance;
}
.sl-meta {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.9rem;
}
.badge {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.sl-links {
  width: 100%;
  display: grid;
  gap: 10px;
  margin-top: 26px;
}
.sl-empty {
  margin-top: 26px;
  padding: 18px;
  width: 100%;
  border: 1px dashed var(--line);
  border-radius: 14px;
  color: var(--muted);
}
.plat {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 58px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.07);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  text-decoration: none;
  font-weight: 600;
  text-align: left;
  transition: transform 0.15s var(--ease), border-color 0.2s, background 0.2s, filter 0.2s;
}
.plat .name {
  flex: 1;
  min-width: 0;
}
.plat .cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.plat:active {
  transform: scale(0.98);
}
.plat.primary {
  background: var(--accent);
  color: var(--on-accent);
  border-color: transparent;
}
.plat.primary .cta {
  color: inherit;
  opacity: 0.8;
}
@media (hover: hover) {
  .plat:hover {
    border-color: var(--accent);
  }
  .plat.primary:hover {
    filter: brightness(1.08);
  }
}
.share {
  margin-top: 18px;
  min-height: 48px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  font-weight: 500;
  color: var(--fg);
  transition: transform 0.15s var(--ease), border-color 0.2s;
}
.share:active {
  transform: scale(0.97);
}
@media (hover: hover) {
  .share:hover {
    border-color: var(--fg);
  }
}
.sl-more {
  width: 100%;
  margin-top: 44px;
  text-align: left;
}
.sl-more ul {
  display: flex;
  gap: 10px;
  margin: 12px calc(var(--gutter) * -1) 0;
  padding: 0 var(--gutter) 6px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: none;
}
.sl-more ul::-webkit-scrollbar {
  display: none;
}
.sl-more li {
  flex: none;
  scroll-snap-align: start;
}
.sl-more li a {
  display: block;
  width: 88px;
  height: 88px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1);
}
.sl-more li a:active {
  transform: scale(0.96);
}
.sl-more img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.sl-all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin-top: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
}
.sl-foot {
  margin-top: 36px;
  font-size: 0.8rem;
  color: var(--muted);
}
.nf {
  min-height: 100svh;
  justify-content: center;
  gap: 14px;
}
.nf .sl-title {
  font-family: var(--font-display);
  font-size: 4rem;
}

/* ---------- toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: max(28px, env(safe-area-inset-bottom));
  z-index: 90;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--fg);
  color: var(--bg);
  font-weight: 600;
  font-size: 0.9rem;
  transform: translate(-50%, 20px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s var(--ease);
}
.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ---------- page transitions ----------
   Cross-document View Transitions (Chrome, Safari; elsewhere pages just load). The cover you tap is named
   "cover" by the inline script in <head> and morphs into the smart-link cover (and back). */
@media (prefers-reduced-motion: no-preference) {
  @view-transition {
    navigation: auto;
  }
}
::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 0.4s;
  animation-timing-function: var(--ease);
}
::view-transition-group(cover) {
  animation-duration: 0.6s;
  animation-timing-function: var(--ease);
  z-index: 1;
}
/* when arriving with a transition, the cover is already in place: only the text and buttons rise */
.vt-in .sl-card {
  animation: none;
}
.vt-in .sl-card > :not(.sl-cover) {
  animation: rise 0.6s var(--ease) 0.2s both;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0s !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
}
