﻿/* =========================================================
   LEGACY HOUSE — Editorial Minimalism Stylesheet
   ========================================================= */

:root {
  --bg: #f6f4ef;
  --bg-elevated: #efece4;
  --bg-dark: #121212;
  --text: #1a1918;
  --text-muted: #6b665d;
  --border: rgba(26, 25, 24, 0.14);
  --border-strong: rgba(26, 25, 24, 0.3);
  --accent: #b39359;
  --accent-hover: #c8a76b;
  --accent-soft: rgba(179, 147, 89, 0.1);
  --surface-card: #ffffff;

  --font-serif: "Cormorant Garamond", Georgia, serif;
  --font-sans: "Be Vietnam Pro", -apple-system, BlinkMacSystemFont, sans-serif;

  --container-max: 1180px;
  --ease-editorial: cubic-bezier(0.22, 1, 0.36, 1);
}

/* Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-weight: 300;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}
button {
  font-family: inherit;
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
}
img {
  max-width: 100%;
  display: block;
}

/* =========================================================
   CUSTOM CURSOR
   ========================================================= */
.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 12px;
  height: 12px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate3d(-100px, -100px, 0) translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition:
    width 0.32s var(--ease-editorial),
    height 0.32s var(--ease-editorial),
    background-color 0.32s ease,
    border-color 0.32s ease,
    opacity 0.25s ease;
}
.custom-cursor.visible {
  opacity: 1;
}
.custom-cursor.active {
  width: 74px;
  height: 74px;
  background-color: rgba(179, 147, 89, 0.94);
  border-color: transparent;
}
.cursor-label {
  font-size: 0.64rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #121212;
  font-weight: 500;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.custom-cursor.active .cursor-label {
  opacity: 1;
}
@media (hover: none), (pointer: coarse) {
  .custom-cursor {
    display: none;
  }
}

/* =========================================================
   CONTAINERS & HEADER
   ========================================================= */
.container {
  width: min(var(--container-max), 90vw);
  margin: 0 auto;
}
.container-mid {
  width: min(960px, 90vw);
  margin: 0 auto;
}
.container-narrow {
  width: min(780px, 88vw);
  margin: 0 auto;
  text-align: center;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem 5vw;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  z-index: 120;
  color: #f5f2eb;
  border-bottom: 1px solid rgba(245, 242, 235, 0.07);
  transition:
    background-color 0.4s ease,
    color 0.4s ease,
    border-color 0.4s ease,
    padding 0.4s ease;
}
.site-header.scrolled {
  background-color: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--text);
  border-bottom: 1px solid var(--border);
  padding: 1rem 5vw;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  justify-self: start;
}
.brand-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}
.brand-title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  letter-spacing: 0.3em;
  font-weight: 500;
}

.main-nav {
  display: flex;
  gap: 2.5rem;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.main-nav a {
  position: relative;
  opacity: 0.85;
  transition: opacity 0.25s ease;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.35s var(--ease-editorial);
}
.main-nav a:hover {
  opacity: 1;
}
.main-nav a:hover::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.85rem;
}

.audio-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
  padding: 0.55rem 1.05rem;
  border: 1px solid currentColor;
  border-radius: 999px;
  opacity: 0.88;
  transition:
    opacity 0.25s ease,
    border-color 0.25s ease,
    color 0.25s ease;
}
.audio-toggle:hover {
  opacity: 1;
  border-color: var(--accent);
  color: var(--accent);
}

.audio-bars,
.player-eq {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 11px;
}
.audio-bars i,
.player-eq i {
  display: block;
  width: 2px;
  height: 100%;
  background: currentColor;
}
.audio-bars.playing i:nth-child(1),
.player-eq.playing i:nth-child(1) {
  animation: barPulse 0.85s infinite ease-in-out;
}
.audio-bars.playing i:nth-child(2),
.player-eq.playing i:nth-child(2) {
  animation: barPulse 0.65s infinite ease-in-out 0.15s;
}
.audio-bars.playing i:nth-child(3),
.player-eq.playing i:nth-child(3) {
  animation: barPulse 1.05s infinite ease-in-out 0.08s;
}
.player-eq.playing i:nth-child(4) {
  animation: barPulse 0.75s infinite ease-in-out 0.22s;
}
@keyframes barPulse {
  0%,
  100% {
    transform: scaleY(0.35);
  }
  50% {
    transform: scaleY(1);
  }
}
.audio-bars i,
.player-eq i {
  transform-origin: bottom;
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px;
  height: 34px;
}
.mobile-menu-btn span {
  display: block;
  width: 22px;
  height: 1px;
  background: currentColor;
  transition: transform 0.3s ease;
}
.mobile-menu-btn.open span:first-child {
  transform: translateY(3px) rotate(45deg);
}
.mobile-menu-btn.open span:last-child {
  transform: translateY(-3px) rotate(-45deg);
}

.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  background: var(--bg-dark);
  color: #f5f2eb;
  z-index: 110;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease-editorial);
}
.mobile-nav-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
  text-align: center;
}
.mobile-nav-link {
  font-family: var(--font-serif);
  font-size: 2rem;
  letter-spacing: 0.04em;
}
.mobile-nav-link span {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 0.2rem;
}

/* =========================================================
   HERO
   ========================================================= */
.hero-section {
  position: relative;
  min-height: 100vh;
  background: var(--bg-dark);
  color: #f5f2eb;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 7rem 5vw 6rem;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-bg-photo {
  position: absolute;
  inset: -4%;
  background: url("images/khanh-ly.jpg") center/cover no-repeat;
  filter: grayscale(100%) contrast(1.1) brightness(0.3);
  transform: scale(1.04);
}

.hero-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at center,
    rgba(18, 18, 18, 0.15) 0%,
    rgba(12, 12, 12, 0.9) 85%
  );
}

/* ---- Vinyl: lớn, sáng, luôn quay ---- */
.vinyl-stage {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(86vw, 780px);
  height: min(86vw, 780px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.vinyl-ring {
  position: absolute;
  border-radius: 50%;
}
.ring-dotted {
  inset: -2%;
  border: 1px dashed rgba(179, 147, 89, 0.35);
  animation: slowSpin 90s linear infinite reverse;
}
.ring-1 {
  inset: 3%;
  border: 1px solid rgba(179, 147, 89, 0.28);
}
.ring-2 {
  inset: 9%;
  border: 1px solid rgba(179, 147, 89, 0.16);
}

.vinyl-disc {
  position: relative;
  width: 80%;
  height: 80%;
  border-radius: 50%;
  background: radial-gradient(
    circle at 35% 30%,
    #3a352d 0%,
    #1f1c18 38%,
    #0f0e0d 100%
  );
  border: 2px solid rgba(179, 147, 89, 0.55);
  box-shadow:
    0 0 0 8px rgba(255, 255, 255, 0.04),
    0 0 90px rgba(179, 147, 89, 0.22),
    0 40px 110px rgba(0, 0, 0, 0.8),
    inset 0 0 40px rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: slowSpin 14s linear infinite;
}
.vinyl-disc.spinning {
  animation-duration: 4.5s;
}

.vinyl-grooves {
  position: absolute;
  inset: 3%;
  border-radius: 50%;
  background: repeating-radial-gradient(
    circle at center,
    rgba(255, 255, 255, 0.075) 0px,
    rgba(255, 255, 255, 0.075) 1px,
    rgba(0, 0, 0, 0.25) 2px,
    transparent 4px
  );
  -webkit-mask: radial-gradient(circle, transparent 0 25%, #000 26% 100%);
  mask: radial-gradient(circle, transparent 0 25%, #000 26% 100%);
}

.vinyl-sheen {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(
    from 20deg,
    transparent 0deg,
    rgba(255, 240, 205, 0.28) 28deg,
    transparent 70deg,
    transparent 180deg,
    rgba(255, 240, 205, 0.2) 208deg,
    transparent 250deg
  );
}

/* vạch đánh dấu giúp nhìn rõ chuyển động quay */
.vinyl-marker {
  position: absolute;
  top: 5%;
  left: 50%;
  width: 3px;
  height: 17%;
  margin-left: -1.5px;
  border-radius: 2px;
  background: linear-gradient(to bottom, rgba(179, 147, 89, 0.95), transparent);
}

.vinyl-label {
  position: relative;
  width: 30%;
  height: 30%;
  border-radius: 50%;
  border: 2px solid rgba(179, 147, 89, 0.8);
  background: radial-gradient(
    circle at 40% 35%,
    #c2a46b 0%,
    #9a7b43 60%,
    #7d6232 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: clamp(0.8rem, 1.7vw, 1.2rem);
  letter-spacing: 0.3em;
  color: #1a1612;
  font-weight: 600;
  box-shadow: inset 0 0 18px rgba(0, 0, 0, 0.35);
}
.vinyl-label-text {
  transform: translateY(-1.6em);
}
.vinyl-hole {
  position: absolute;
  width: 8%;
  height: 8%;
  min-width: 10px;
  min-height: 10px;
  border-radius: 50%;
  background: #0d0c0b;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.35);
}

@keyframes slowSpin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* ---- Tonearm ---- */
.tonearm {
  position: absolute;
  top: 2%;
  right: 4%;
  width: 14px;
  height: 52%;
  transform-origin: 7px 7px;
  transform: rotate(-24deg);
  transition: transform 1.1s var(--ease-editorial);
  filter: drop-shadow(0 8px 10px rgba(0, 0, 0, 0.6));
}
.tonearm.playing {
  transform: rotate(8deg);
}
.tonearm-pivot {
  position: absolute;
  top: -12px;
  left: -10px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #d2b57a, #8a6e3b);
  border: 2px solid rgba(0, 0, 0, 0.4);
}
.tonearm-bar {
  position: absolute;
  top: 12px;
  left: 3px;
  width: 8px;
  height: 88%;
  border-radius: 4px;
  background: linear-gradient(to right, #8f8a80, #e4dfd3 50%, #8f8a80);
}
.tonearm-head {
  position: absolute;
  bottom: 0;
  left: -3px;
  width: 20px;
  height: 34px;
  border-radius: 3px;
  background: linear-gradient(to right, #1b1a18, #3a3732);
  border: 1px solid rgba(179, 147, 89, 0.6);
}

.film-grain {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
    rgba(255, 255, 255, 0.04) 1px,
    transparent 0
  );
  background-size: 20px 20px;
  opacity: 0.25;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 880px;
  text-shadow:
    0 2px 28px rgba(0, 0, 0, 0.9),
    0 0 6px rgba(0, 0, 0, 0.6);
}
.hero-eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.32em;
  color: var(--accent);
  margin-bottom: 1.4rem;
}
.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 8.6vw, 6.6rem);
  font-weight: 300;
  letter-spacing: 0.16em;
  line-height: 1.02;
  margin-bottom: 1.6rem;
}
.hero-divider {
  position: relative;
  display: block;
  width: 56px;
  height: 1px;
  margin: 0 auto 1.7rem;
  background: var(--accent);
}
.hero-divider::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  transform: translate(-50%, -50%);
}
.hero-subtitle {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.2rem, 2.4vw, 1.7rem);
  color: rgba(245, 242, 235, 0.9);
  margin-bottom: 2.6rem;
}
.hero-cta-group {
  display: flex;
  justify-content: center;
}

.btn-pill-audio {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.85rem 2rem 0.85rem 1rem;
  border: 1px solid rgba(245, 242, 235, 0.4);
  border-radius: 999px;
  background: rgba(18, 18, 18, 0.55);
  backdrop-filter: blur(6px);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  text-shadow: none;
  transition:
    border-color 0.3s ease,
    color 0.3s ease,
    background-color 0.3s ease;
}
.btn-pill-audio:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.pill-play {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.5rem;
  padding-left: 1px;
}

.hero-footer-bar {
  position: absolute;
  bottom: 1.9rem;
  left: 5vw;
  right: 5vw;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  z-index: 2;
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(245, 242, 235, 0.6);
}
.hero-meta-left {
  display: flex;
  gap: 1.4rem;
  flex-wrap: wrap;
}
.hero-meta-left a:hover {
  color: var(--accent);
}
.hero-meta-left .sep {
  color: rgba(245, 242, 235, 0.35);
}
.scroll-cue {
  transition: color 0.25s ease;
}
.scroll-cue:hover {
  color: var(--accent);
}

/* =========================================================
   COMMON HEADERS
   ========================================================= */
.section-index {
  display: inline-block;
  font-size: 0.66rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.7rem;
  font-weight: 500;
}
.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 4.2vw, 3.3rem);
  font-weight: 400;
  line-height: 1.12;
}
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}
.section-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  max-width: 320px;
}

/* =========================================================
   MANIFESTO
   ========================================================= */
.manifesto-section {
  padding: clamp(6rem, 11vw, 9rem) 0 clamp(5rem, 9vw, 8rem);
  border-bottom: 1px solid var(--border);
}

.eyebrow-lines {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.1rem;
  font-size: 0.68rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.8rem;
}
.eyebrow-lines::before,
.eyebrow-lines::after {
  content: "";
  width: 32px;
  height: 1px;
  background: var(--accent);
}

.manifesto-quote {
  font-family: var(--font-serif);
  font-size: clamp(1.9rem, 3.7vw, 2.9rem);
  font-weight: 400;
  text-align: center;
  line-height: 1.28;
  margin-bottom: 2.2rem;
}
.manifesto-quote em {
  font-style: italic;
  color: var(--accent);
}

.manifesto-body {
  font-size: 0.95rem;
  color: var(--text-muted);
  text-align: center;
  margin: 0 auto;
}
.manifesto-body strong {
  color: var(--text);
  font-weight: 500;
}

.pillars-row {
  display: flex;
  justify-content: center;

  margin: clamp(3rem, 6vw, 4.5rem) auto 0;
  padding-top: 2.4rem;
  border-top: 1px solid var(--border);
}
.pillar-item {
  padding: 0.2rem 2rem;
  text-align: center;
}
.pillar-item + .pillar-item {
  border-left: 1px solid var(--border);
}
.pillar-item h3 {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.2;
}
.pillar-item span {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: none;
  color: var(--text-muted);
}

/* =========================================================
   TRILOGY
   ========================================================= */
.trilogy-section {
  padding: clamp(5rem, 9vw, 8rem) 0;
}

.layout-switcher {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px;
}
.switch-btn {
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition:
    background-color 0.3s ease,
    color 0.3s ease;
}
.switch-btn.active {
  background: var(--text);
  color: var(--bg);
}

/* Layout A — 3 cột liền khối */
.projects-wrapper.layout-split {
  display: flex;
  gap: 1px;
  min-height: 544px;
  background: var(--border);
}

.layout-split .project-card {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  background: #141414;
  color: #f5f2eb;
  cursor: pointer;
  transition: flex 0.7s var(--ease-editorial);
}
.layout-split:hover .project-card:hover {
  flex: 1.25;
}

.layout-split .project-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.layout-split .project-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%) contrast(1.05) brightness(0.8);
  transition:
    filter 0.7s var(--ease-editorial),
    transform 0.85s var(--ease-editorial);
}
.layout-split .project-card:hover .project-photo {
  filter: grayscale(25%) contrast(1.02) brightness(0.92);
  transform: scale(1.05);
}
.layout-split .project-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to top,
    rgba(12, 11, 10, 0.96) 0%,
    rgba(12, 11, 10, 0.6) 45%,
    rgba(12, 11, 10, 0.12) 100%
  );
}
.layout-split .project-info {
  position: relative;
  z-index: 2;
  padding: 0 1.8rem 1.6rem;
}
.layout-split .project-excerpt {
  display: none;
}

.project-number {
  position: absolute;
  top: 1.3rem;
  left: 1.7rem;
  z-index: 2;
  font-family: var(--font-serif);
  font-size: 2.7rem;
  font-weight: 300;
  line-height: 1;
  color: rgba(245, 242, 235, 0.85);
}
.project-tag {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 2;
  max-width: 58%;
  padding: 0.28rem 0.75rem;
  border: 1px solid rgba(245, 242, 235, 0.3);
  border-radius: 999px;
  background: rgba(18, 18, 18, 0.35);
  backdrop-filter: blur(4px);
  font-size: 0.56rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
  line-height: 1.35;
  color: rgba(245, 242, 235, 0.85);
}

.project-name {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 2.3vw, 2.1rem);
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 0.9rem;
}
.project-quote-inline {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.98rem;
  line-height: 1.45;
  color: rgba(245, 242, 235, 0.72);
  margin-bottom: 1.2rem;
}

.project-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid rgba(245, 242, 235, 0.22);
}
.project-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  transition:
    gap 0.3s var(--ease-editorial),
    color 0.3s ease;
}
.project-cta:hover {
  gap: 0.85rem;
  color: var(--accent-hover);
}
.arrow-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(245, 242, 235, 0.4);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  transition:
    background-color 0.3s ease,
    color 0.3s ease,
    border-color 0.3s ease;
}
.project-card:hover .arrow-circle {
  background: var(--accent);
  border-color: var(--accent);
  color: #121212;
}

/* Layout B — tạp chí */
.projects-wrapper.layout-editorial {
  display: flex;
  flex-direction: column;
  gap: 5rem;
  background: transparent;
}
.layout-editorial .project-card {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 3.5rem;
  align-items: center;
  padding-bottom: 4rem;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
}
.layout-editorial .project-card:nth-child(even) {
  grid-template-columns: 1fr 1.3fr;
}
.layout-editorial .project-card:nth-child(even) .project-media {
  order: 2;
}
.layout-editorial .project-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.layout-editorial .project-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(40%) contrast(1.04);
  transition:
    filter 0.6s var(--ease-editorial),
    transform 0.8s var(--ease-editorial);
}
.layout-editorial .project-card:hover .project-photo {
  filter: grayscale(0);
  transform: scale(1.04);
}
.layout-editorial .project-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to bottom,
    rgba(12, 11, 10, 0.3),
    transparent 40%
  );
}
.layout-editorial .project-quote-inline {
  color: var(--text);
  font-size: 1.2rem;
  padding-left: 1rem;
  border-left: 2px solid var(--accent);
}
.layout-editorial .project-excerpt {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 1.3rem;
}
.layout-editorial .project-actions {
  border-top-color: var(--border);
}
.layout-editorial .arrow-circle {
  border-color: var(--border-strong);
}

/* =========================================================
   ARCHIVE (dark)
   ========================================================= */
.archive-section {
  --bg: #121212;
  --bg-elevated: #181716;
  --text: #f2efe9;
  --text-muted: #9e978b;
  --border: rgba(242, 239, 233, 0.14);
  --border-strong: rgba(242, 239, 233, 0.3);
  background: var(--bg);
  color: var(--text);
  padding: clamp(5rem, 9vw, 8rem) 0;
}

.archive-controls {
  display: flex;
  gap: 0.7rem;
}
.icon-circle-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  line-height: 1;
  padding-bottom: 3px;
  transition:
    border-color 0.25s ease,
    background-color 0.25s ease,
    color 0.25s ease;
}
.icon-circle-btn:hover {
  border-color: var(--accent);
  background: var(--accent);
  color: #121212;
}

.archive-track {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0.5rem max(5vw, calc((100vw - var(--container-max)) / 2)) 1.5rem;
  scroll-padding-left: max(5vw, calc((100vw - var(--container-max)) / 2));
  scrollbar-width: none;
  cursor: grab;
}
.archive-track:active {
  cursor: grabbing;
}
.archive-track::-webkit-scrollbar {
  display: none;
}

.artifact-card {
  flex: 0 0 min(296px, 78vw);
  scroll-snap-align: start;
  user-select: none;
}

.artifact-thumb {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  margin-bottom: 1rem;
}
.artifact-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%) contrast(1.05) brightness(0.88);
  transition:
    filter 0.5s ease,
    transform 0.65s var(--ease-editorial);
  -webkit-user-drag: none;
}
.artifact-card:hover .artifact-thumb img {
  filter: grayscale(20%) brightness(0.95);
  transform: scale(1.05);
}

.artifact-code {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  padding: 0.26rem 0.7rem;
  border-radius: 999px;
  background: rgba(60, 58, 54, 0.72);
  backdrop-filter: blur(4px);
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  color: #f5f2eb;
}
.artifact-audio-pill {
  position: absolute;
  right: 0.85rem;
  bottom: 0.85rem;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(40, 38, 35, 0.78);
  border: 1px solid rgba(245, 242, 235, 0.4);
  backdrop-filter: blur(4px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.62rem;
  padding-left: 2px;
  color: #f5f2eb;
  transition:
    background-color 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease;
}
.artifact-audio-pill:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #121212;
}

.artifact-meta {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.45rem;
}
.artifact-meta span:first-child {
  color: var(--accent);
}
.artifact-meta span:last-child {
  color: var(--text-muted);
}
.artifact-title {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1.22;
  margin-bottom: 0.45rem;
}
.artifact-desc {
  font-size: 0.74rem;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.archive-progress-bar {
  height: 1px;
  background: var(--border);
  margin-top: 0.75rem;
  overflow: hidden;
}
.archive-progress-fill {
  height: 100%;
  width: 25%;
  background: var(--accent);
  transition: width 0.2s ease-out;
}

/* =========================================================
   EVENTS
   ========================================================= */
.events-section {
  padding: clamp(5rem, 9vw, 8rem) 0;
}
.events-list {
  border-top: 1px solid var(--border);
}

.event-row {
  display: grid;
  grid-template-columns: 150px 1.6fr 1fr auto;
  gap: 1.5rem;
  align-items: center;
  padding: 1.6rem 0;
  border-bottom: 1px solid var(--border);
  transition:
    background-color 0.3s ease,
    padding 0.35s var(--ease-editorial);
}
.event-row:hover {
  background: var(--accent-soft);
  padding-left: 1rem;
  padding-right: 1rem;
}

.event-date {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  line-height: 1.2;
}
.event-time {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.event-tag {
  display: inline-block;
  margin-bottom: 0.35rem;
  padding: 0.12rem 0.6rem;
  border: 1px solid rgba(179, 147, 89, 0.55);
  border-radius: 999px;
  font-size: 0.56rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
}
.event-title {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1.25;
}
.event-venue {
  font-size: 0.76rem;
  color: var(--text-muted);
}

.event-action {
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
  padding: 0.6rem 1.2rem;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  white-space: nowrap;
  transition: all 0.25s ease;
}
.event-action:hover {
  border-color: var(--accent);
  background: var(--accent);
  color: #121212;
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  padding: 4.5rem 0 6.5rem;
  border-top: 1px solid var(--border);
}
.footer-top {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--border);
}
.footer-brand .brand-title {
  font-size: 1.15rem;
}
.footer-brand p {
  margin-top: 1rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  max-width: 340px;
}
.social-links {
  display: flex;
  gap: 1.3rem;
  margin-top: 1.5rem;
  font-size: 0.64rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.social-links a:hover {
  color: var(--accent);
}

.newsletter-title {
  font-family: var(--font-serif);
  font-size: 2.1rem;
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 1.3rem;
}
.newsletter-input-wrap {
  display: flex;
  align-items: flex-end;
  gap: 1rem;
}
.newsletter-input-wrap input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border-strong);
  padding: 0.6rem 0;
  outline: none;
  color: var(--text);
  font-family: inherit;
  font-size: 0.88rem;
}
.newsletter-input-wrap input:focus {
  border-bottom-color: var(--accent);
}
.btn-pill-outline {
  padding: 0.65rem 1.4rem;
  border: 1px solid var(--text);
  border-radius: 999px;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
  white-space: nowrap;
  transition: all 0.25s ease;
}
.btn-pill-outline:hover {
  border-color: var(--accent);
  background: var(--accent);
  color: #121212;
}
.newsletter-note {
  margin-top: 0.8rem;
  font-size: 0.68rem;
  color: var(--text-muted);
}
.form-feedback {
  font-size: 0.8rem;
  margin-top: 0.6rem;
  min-height: 1.2em;
  color: var(--accent);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 1.8rem;
  font-size: 0.74rem;
  color: var(--text-muted);
}
.footer-links {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}
.footer-links a:hover {
  color: var(--accent);
}

/* =========================================================
   BUTTONS (dùng trong drawer/modal)
   ========================================================= */
.btn-editorial {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.95rem 2rem;
  background: var(--accent);
  color: #121212;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition:
    transform 0.3s var(--ease-editorial),
    background-color 0.3s ease;
}
.btn-editorial:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
}
.btn-editorial.full-width {
  width: 100%;
}
.btn-outline-editorial {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 1.2rem;
  border: 1px solid var(--border-strong);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition:
    border-color 0.25s ease,
    color 0.25s ease;
}
.btn-outline-editorial:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* =========================================================
   DRAWER & MODALS
   ========================================================= */
.drawer-backdrop,
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.72);
  backdrop-filter: blur(5px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  z-index: 200;
}
.drawer-backdrop.open,
.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.project-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(580px, 100vw);
  height: 100vh;
  background: var(--bg);
  color: var(--text);
  border-left: 1px solid var(--border);
  z-index: 210;
  transform: translateX(100%);
  transition: transform 0.55s var(--ease-editorial);
  display: flex;
  flex-direction: column;
}
.project-drawer.open {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.3rem 2rem;
  border-bottom: 1px solid var(--border);
}
.drawer-index {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--accent);
}
.close-btn {
  font-size: 1.85rem;
  line-height: 1;
  opacity: 0.72;
  transition:
    opacity 0.2s ease,
    transform 0.25s ease;
}
.close-btn:hover {
  opacity: 1;
  transform: rotate(90deg);
}

.drawer-body {
  padding: 2rem;
  overflow-y: auto;
  flex: 1;
}
.drawer-cover {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border: 1px solid var(--border);
  margin-bottom: 1.6rem;
}
.drawer-title {
  font-family: var(--font-serif);
  font-size: 2.25rem;
  font-weight: 400;
  line-height: 1.18;
  margin: 0.4rem 0 1.2rem;
}
.drawer-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.25rem;
  padding-left: 1.2rem;
  border-left: 2px solid var(--accent);
  margin: 1.5rem 0;
}
.drawer-highlights {
  list-style: none;
  margin: 1.5rem 0 2rem;
  border-top: 1px solid var(--border);
}
.drawer-highlights li {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.88rem;
  color: var(--text-muted);
}
.drawer-highlights strong {
  color: var(--text);
  font-weight: 500;
}
.drawer-cta-stack {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.modal-backdrop {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.modal-box {
  position: relative;
  width: min(540px, 100%);
  max-height: 92vh;
  overflow-y: auto;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  padding: 2.25rem;
  transform: translateY(18px);
  transition: transform 0.35s var(--ease-editorial);
}
.modal-backdrop.open .modal-box {
  transform: translateY(0);
}
.modal-close {
  position: absolute;
  top: 1.2rem;
  right: 1.5rem;
}
.modal-title {
  font-family: var(--font-serif);
  font-size: 1.9rem;
  font-weight: 400;
  margin: 0.3rem 0 0.45rem;
  line-height: 1.2;
}
.booking-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.booking-form .field-group {
  margin-bottom: 1.1rem;
}
.booking-form label {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}
.booking-form input,
.booking-form select {
  width: 100%;
  padding: 0.72rem 0.9rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: inherit;
  font-size: 0.92rem;
  outline: none;
}
.booking-form input:focus,
.booking-form select:focus {
  border-color: var(--accent);
}
.field-row {
  display: grid;
  grid-template-columns: 1.6fr 0.9fr;
  gap: 1rem;
}
.qty-stepper {
  display: grid;
  grid-template-columns: 38px 1fr 38px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
}
.qty-stepper button {
  font-size: 1.1rem;
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}
.qty-stepper button:hover {
  background: var(--accent-soft);
  color: var(--accent);
}
.qty-stepper input {
  border: none;
  text-align: center;
  padding: 0.68rem 0;
  background: transparent;
}
.booking-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  margin: 0.5rem 0 1.25rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.booking-summary strong {
  font-family: var(--font-serif);
  font-size: 1.55rem;
  color: var(--accent);
}

/* =========================================================
   MINI PLAYER (pill, tự đổi sáng/tối theo vùng nền)
   ========================================================= */
.mini-player {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 150;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.55rem 0.85rem 0.55rem 0.6rem;
  border-radius: 999px;
  background: rgba(247, 245, 240, 0.88);
  color: var(--text);
  border: 1px solid rgba(26, 25, 24, 0.1);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  max-width: calc(100vw - 3rem);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.14);
  transition:
    background-color 0.4s ease,
    color 0.4s ease,
    border-color 0.4s ease;
}
.mini-player.on-dark {
  background: rgba(18, 18, 18, 0.82);
  color: #f5f2eb;
  border-color: rgba(245, 242, 235, 0.16);
}

.player-play-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--accent);
  color: #121212;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  flex-shrink: 0;
  transition:
    transform 0.2s ease,
    background-color 0.2s ease;
}
.player-play-btn:hover {
  background: var(--accent-hover);
  transform: scale(1.06);
}

.player-meta {
  display: flex;
  flex-direction: column;
  min-width: 170px;
}
.player-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.58rem;
  letter-spacing: 0.16em;
  color: var(--accent);
  text-transform: uppercase;
}
.player-eq {
  height: 9px;
}
.player-track {
  font-family: var(--font-serif);
  font-size: 0.92rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-controls {
  display: flex;
  gap: 0.15rem;
  padding-left: 0.6rem;
  border-left: 1px solid rgba(128, 128, 128, 0.3);
}
.player-switch-btn {
  width: 26px;
  height: 26px;
  font-size: 1.15rem;
  opacity: 0.7;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.player-switch-btn:hover {
  opacity: 1;
  color: var(--accent);
}

/* =========================================================
   SCROLL REVEAL
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 0.85s var(--ease-editorial),
    transform 0.85s var(--ease-editorial);
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .vinyl-disc,
  .ring-dotted {
    animation-duration: 40s;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 960px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }
  .main-nav {
    display: none;
  }
  .mobile-menu-btn {
    display: flex;
  }

  .hero-footer-bar {
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    text-align: center;
    bottom: 5.5rem;
  }
  .hero-meta-left {
    justify-content: center;
    gap: 0.8rem;
  }
  .vinyl-stage {
    width: min(110vw, 620px);
    height: min(110vw, 620px);
  }

  .projects-wrapper.layout-split {
    flex-direction: row;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    min-height: 520px;
    gap: 1px;
  }
  .layout-split .project-card,
  .layout-split:hover .project-card:hover {
    flex: 0 0 84vw;
    scroll-snap-align: center;
  }
  .layout-split .project-photo {
    filter: grayscale(20%) brightness(0.85);
  }

  .layout-editorial .project-card,
  .layout-editorial .project-card:nth-child(even) {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
  .layout-editorial .project-card:nth-child(even) .project-media {
    order: 0;
  }

  .event-row {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  .event-action {
    justify-self: start;
    margin-top: 0.45rem;
  }

  .footer-top,
  .drawer-cta-stack,
  .field-row {
    grid-template-columns: 1fr;
  }
  .pillar-item {
    padding: 0.2rem 1rem;
  }
  .mini-player {
    right: 0.75rem;
    bottom: 0.75rem;
  }
}

@media (max-width: 520px) {
  .audio-toggle span:last-child {
    display: none;
  }
  .player-meta {
    min-width: 120px;
  }
  .newsletter-input-wrap {
    flex-direction: column;
    align-items: stretch;
  }
}
