:root {
  --bg: #07080d;
  --bg2: #0d1018;
  --panel: rgba(255,255,255,.055);
  --panel-strong: rgba(255,255,255,.085);
  --line: rgba(255,255,255,.13);
  --text: #f3f4f8;
  --muted: #aeb4c3;
  --soft: #d9deea;
  --accent: #a78bfa;
  --accent2: #7dd3fc;
  --warm: #f0d7a1;
  --shadow: 0 24px 80px rgba(0,0,0,.34);
}

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

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    linear-gradient(180deg, rgba(7,8,13,.74) 0%, rgba(7,8,13,.86) 44%, rgba(7,8,13,.94) 100%),
    radial-gradient(circle at 18% 10%, rgba(167,139,250,.18), transparent 34%),
    radial-gradient(circle at 82% 12%, rgba(125,211,252,.13), transparent 30%),
    url("../img/hero-yjuki-music.webp") center center / cover no-repeat fixed,
    #07080d;
  color: var(--text);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.7), transparent 72%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 50% 35%, transparent 0%, rgba(0,0,0,.20) 58%, rgba(0,0,0,.50) 100%);
  z-index: -1;
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: rgba(7,8,13,.82);
  backdrop-filter: blur(18px);
}

.nav {
  width: min(1180px, calc(100% - 34px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0;
}

.brand {
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.links a {
  color: var(--muted);
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 8px 12px;
  transition: color .16s ease, border-color .16s ease, background .16s ease;
}

.links a:hover {
  color: #fff;
  border-color: rgba(255,255,255,.18);
  background: rgba(255,255,255,.06);
}

.hero {
  width: min(1180px, calc(100% - 34px));
  min-height: 66vh;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(280px, .68fr);
  gap: 28px;
  align-items: stretch;
  padding: 86px 0 54px;
}

.hero-copy,
.hero-intro {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 34px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.08), rgba(255,255,255,.035)),
    rgba(255,255,255,.035);
  box-shadow: var(--shadow);
}

.hero-copy {
  padding: clamp(34px, 5vw, 60px);
  min-height: 430px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-copy::after {
  content: "";
  position: absolute;
  inset: auto -18% -38% 28%;
  height: 68%;
  background:
    radial-gradient(circle, rgba(167,139,250,.24), transparent 58%),
    radial-gradient(circle at 70% 50%, rgba(125,211,252,.18), transparent 44%);
  filter: blur(10px);
}

.kicker {
  display: inline-flex;
  align-self: flex-start;
  gap: 10px;
  align-items: center;
  color: #fff;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px;
  padding: 8px 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: 12px;
}

.kicker::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent2);
  box-shadow: 0 0 18px var(--accent2);
}

h1 {
  position: relative;
  z-index: 1;
  margin: 22px 0 18px;
  max-width: 780px;
  font-size: clamp(50px, 8vw, 104px);
  letter-spacing: -.075em;
  line-height: .9;
}

.hero p {
  position: relative;
  z-index: 1;
  max-width: 760px;
  color: var(--soft);
  font-size: clamp(17px, 1.8vw, 22px);
  line-height: 1.6;
}

.hero-intro {
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 430px;
}

.hero-intro::before {
  content: "";
  position: absolute;
  inset: 24px 24px auto auto;
  width: 132px;
  height: 132px;
  border-radius: 50%;
  border: 1px solid rgba(240,215,161,.22);
  background:
    radial-gradient(circle, rgba(240,215,161,.14), transparent 62%),
    radial-gradient(circle at 62% 35%, rgba(125,211,252,.18), transparent 50%);
  box-shadow: 0 0 60px rgba(125,211,252,.12);
}

.hero-label {
  position: relative;
  z-index: 1;
  color: var(--warm);
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: 12px;
}

.hero-intro p {
  margin: 12px 0 0;
  max-width: 420px;
  color: var(--muted);
  font-size: 16px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 12px 17px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.075);
  color: #fff;
  transition: transform .16s ease, background .16s ease, border-color .16s ease;
}

.button.primary {
  background: linear-gradient(135deg, rgba(167,139,250,.8), rgba(125,211,252,.55));
}

.button:hover {
  transform: translateY(-1px);
  border-color: rgba(255,255,255,.32);
  background: rgba(255,255,255,.11);
}

.hero-card {
  border: 1px solid var(--line);
  border-radius: 32px;
  padding: 24px;
  background:
    radial-gradient(circle at 30% 0%, rgba(240,215,161,.16), transparent 36%),
    rgba(255,255,255,.06);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.hero-card h2 {
  margin: 0 0 12px;
  font-size: 22px;
}

.hero-card p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 15px;
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.mini {
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 20px;
  padding: 14px;
  background: rgba(255,255,255,.055);
}

.mini strong {
  display: block;
  font-size: 24px;
}

.mini span {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .10em;
}

section {
  width: min(1180px, calc(100% - 34px));
  margin: 0 auto;
  padding: 62px 0;
}

.section-title {
  display: flex;
  gap: 20px;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 28px;
}

.section-title h2 {
  margin: 0;
  font-size: clamp(34px, 5vw, 62px);
  letter-spacing: -.055em;
}

.section-title p {
  max-width: 560px;
  color: var(--muted);
  margin: 0;
  line-height: 1.6;
}

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

.project-card {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  border-radius: 32px;
  border: 1px solid rgba(255,255,255,.15);
  background: rgba(7,8,13,.54);
  box-shadow: var(--shadow);
}

.project-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .74;
  transform: scale(1.02);
}

.project-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8,9,13,.08), rgba(8,9,13,.45) 50%, rgba(8,9,13,.92) 100%),
    radial-gradient(circle at 10% 10%, rgba(167,139,250,.18), transparent 42%);
}

.project-card.placeholder {
  background:
    radial-gradient(circle at 18% 12%, rgba(240,215,161,.22), transparent 30%),
    radial-gradient(circle at 84% 10%, rgba(125,211,252,.18), transparent 30%),
    linear-gradient(135deg, #151827, #0d101b 58%, #090a0e);
}

.project-content {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 1;
}

.project-content small {
  color: var(--warm);
  letter-spacing: .12em;
  text-transform: uppercase;
}

.project-content h3 {
  margin: 8px 0 10px;
  font-size: clamp(30px, 4vw, 52px);
  line-height: .94;
  letter-spacing: -.05em;
}

.project-content p {
  margin: 0 0 18px;
  color: #dfe4ef;
  line-height: 1.55;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.project-tags span {
  color: #e9edf7;
  background: rgba(255,255,255,.09);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  padding: 6px 9px;
  font-size: 12px;
}

.legal-grid,
.archive-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.legal-card,
.archive-card {
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 28px;
  padding: 24px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.07), rgba(255,255,255,.035)),
    var(--panel);
  box-shadow: 0 18px 60px rgba(0,0,0,.18);
}

.archive-card-wide {
  background:
    radial-gradient(circle at 15% 0%, rgba(125,211,252,.12), transparent 36%),
    linear-gradient(145deg, rgba(255,255,255,.075), rgba(255,255,255,.035));
}

.legal-card h3,
.archive-card h3 {
  margin: 0 0 12px;
  font-size: 26px;
}

.legal-card p,
.archive-card p {
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
}

.legal-card strong {
  color: #fff;
}

.legal-card a {
  color: var(--accent2);
}

.footer {
  width: min(1180px, calc(100% - 34px));
  margin: 0 auto;
  padding: 44px 0 70px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.compact-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 12px;
  opacity: .72;
}

.legal-tiny-link {
  color: rgba(174,180,195,.72);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 999px;
  padding: 6px 10px;
  transition: color .16s ease, border-color .16s ease, background .16s ease, opacity .16s ease;
}

.legal-tiny-link:hover {
  color: #fff;
  border-color: rgba(255,255,255,.22);
  background: rgba(255,255,255,.06);
  opacity: 1;
}

.legal-page {
  padding-top: 86px;
}

.language-switch {
  display: flex;
  gap: 7px;
  align-items: center;
  flex-wrap: wrap;
}

.lang-btn {
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.055);
  color: var(--muted);
  border-radius: 999px;
  padding: 7px 10px;
  cursor: pointer;
  transition: color .16s ease, border-color .16s ease, background .16s ease, box-shadow .16s ease;
}

.lang-btn:hover,
.lang-btn.is-active {
  color: #fff;
  border-color: rgba(125,211,252,.55);
  background: rgba(125,211,252,.10);
  box-shadow: 0 0 22px rgba(125,211,252,.10);
}

@media (max-width: 900px) {
  .hero,
  .project-grid,
  .legal-grid,
  .archive-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 52px;
  }

  .hero-copy,
  .hero-intro {
    min-height: auto;
  }

  .section-title {
    align-items: start;
    flex-direction: column;
  }
}

@media (max-width: 620px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .links {
    justify-content: flex-start;
  }

  .project-card {
    min-height: 390px;
  }

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

  .compact-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .language-switch {
    margin-top: 2px;
  }
}


@media (max-width: 900px) {
  body {
    background-attachment: scroll, scroll, scroll, scroll, scroll;
  }
}


#projects,
#about {
  scroll-margin-top: 92px;
}

/* Mobile battery/performance fix */
@media (max-width: 900px) {
  body {
    background:
      linear-gradient(180deg, rgba(7,8,13,.78) 0%, rgba(7,8,13,.90) 44%, rgba(7,8,13,.96) 100%),
      radial-gradient(circle at 18% 10%, rgba(167,139,250,.16), transparent 34%),
      radial-gradient(circle at 82% 12%, rgba(125,211,252,.11), transparent 30%),
      url("../img/hero-yjuki-music.webp") center center / cover no-repeat scroll,
      #07080d;
  }

  .hero-copy,
  .hero-intro,
  .mobile-song-nav,
  .legal-card,
  .archive-card {
    backdrop-filter: none;
  }
}



/* Legal footer button layout and privacy page */
.legal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.legal-tiny-link.is-current {
  color: #fff;
  border-color: rgba(125,211,252,.38);
  background: rgba(125,211,252,.10);
}

.privacy-grid {
  grid-template-columns: minmax(0, 1fr);
}

.privacy-card-wide {
  max-width: 980px;
}

.privacy-card-wide h1 {
  margin: 0 0 18px;
  font-size: clamp(34px, 5vw, 58px);
  letter-spacing: -.055em;
}

.privacy-card-wide h2 {
  margin: 30px 0 12px;
  font-size: clamp(24px, 3vw, 34px);
}

.privacy-card-wide h3 {
  margin: 22px 0 10px;
}

.privacy-card-wide ul {
  color: var(--muted);
  line-height: 1.7;
}

@media (max-width: 620px) {
  .legal-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-links {
    justify-content: flex-start;
  }
}


/* Clickable homepage project cards */
.project-card-link {
  display: block;
  color: inherit;
  cursor: pointer;
  transform: translateY(0);
  transition:
    transform .18s ease,
    border-color .18s ease,
    box-shadow .18s ease,
    background .18s ease;
}

.project-card-link img {
  transition:
    transform .42s ease,
    opacity .22s ease,
    filter .22s ease;
}

.project-card-link::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  background:
    radial-gradient(circle at 16% 12%, rgba(167,139,250,.22), transparent 34%),
    radial-gradient(circle at 86% 16%, rgba(125,211,252,.18), transparent 34%),
    linear-gradient(135deg, rgba(255,255,255,.08), transparent 45%);
  transition: opacity .18s ease;
}

.project-card-link .project-content {
  z-index: 2;
}

.project-card-link:hover,
.project-card-link:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(125,211,252,.46);
  background: rgba(255,255,255,.075);
  box-shadow: 0 26px 72px rgba(0,0,0,.34), 0 0 34px rgba(125,211,252,.10);
  outline: none;
}

.project-card-link:hover::before,
.project-card-link:focus-visible::before {
  opacity: 1;
}

.project-card-link:hover img,
.project-card-link:focus-visible img {
  transform: scale(1.055);
  opacity: .84;
  filter: saturate(1.08) contrast(1.04);
}

.project-open-hint {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  opacity: .74;
  transition: opacity .18s ease, transform .18s ease;
}

.project-open-hint::after {
  content: "→";
  font-size: 16px;
  line-height: 1;
  transform: translateX(0);
  transition: transform .18s ease;
}

.project-card-link:hover .project-open-hint,
.project-card-link:focus-visible .project-open-hint {
  opacity: 1;
  transform: translateY(-1px);
}

.project-card-link:hover .project-open-hint::after,
.project-card-link:focus-visible .project-open-hint::after {
  transform: translateX(4px);
}

/* Homepage hero text box logo background */
.hero-copy {
  background:
    linear-gradient(90deg, rgba(7,8,13,.94) 0%, rgba(7,8,13,.82) 46%, rgba(7,8,13,.58) 100%),
    radial-gradient(circle at 58% 50%, rgba(125,211,252,.10), transparent 44%),
    url("../img/hero-box-logo-background.png") center center / cover no-repeat,
    rgba(7,8,13,.42);
}

.hero-copy::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background:
    linear-gradient(90deg, rgba(7,8,13,.22), rgba(7,8,13,.05) 48%, rgba(7,8,13,.18) 100%),
    radial-gradient(circle at 50% 50%, transparent 0%, rgba(7,8,13,.14) 64%, rgba(7,8,13,.42) 100%);
  z-index: 0;
}

.hero-copy > * {
  position: relative;
  z-index: 1;
}

@media (max-width: 760px) {
  .hero-copy {
    background:
      linear-gradient(180deg, rgba(7,8,13,.96) 0%, rgba(7,8,13,.88) 58%, rgba(7,8,13,.76) 100%),
      url("../img/hero-box-logo-background.png") center center / cover no-repeat,
      rgba(7,8,13,.48);
  }
}

