/* ==========================================================================
   argam.net — design system
   Dark-first and cinematic. Uses modern platform features with graceful
   fallbacks: cross-document view transitions, scroll-driven animations,
   container queries, :has(), popover, <dialog>, color-mix().
   ========================================================================== */

@view-transition { navigation: auto; }

:root {
  --bg: #0b0a09;
  --bg-2: #141210;
  --bg-3: #1d1a17;
  --ink: #f2ede4;
  --ink-2: #c9c2b6;
  --muted: #8d867a;
  --line: rgba(242, 237, 228, .11);
  --line-2: rgba(242, 237, 228, .2);
  --glass: rgba(18, 16, 14, .62);

  /* section accents */
  --ember: #e0894f;      /* music */
  --sage: #9fbf8f;       /* adventures */
  --iris: #9aa6ff;       /* lab */
  --sand: #d9c29a;       /* journal / about */
  --accent: var(--ember);

  --serif: "Newsreader", "Noto Serif Armenian", "Vazirmatn", Georgia, serif;
  --sans: "Geist", "Noto Sans Armenian", "Vazirmatn", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, Menlo, monospace;
  --hy: "Noto Serif Armenian", var(--serif);
  --fa: "Vazirmatn", var(--sans);

  --gutter: clamp(16px, 4.5vw, 64px);
  --max: 1440px;
  --r: 14px;
  --r-sm: 8px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-in: cubic-bezier(.7, 0, .84, 0);
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #f4f0e8;
  --bg-2: #ebe5da;
  --bg-3: #e0d9cc;
  --ink: #17140f;
  --ink-2: #3d372f;
  --muted: #6f685d;
  --line: rgba(23, 20, 15, .12);
  --line-2: rgba(23, 20, 15, .24);
  --glass: rgba(244, 240, 232, .72);
  --ember: #b5531f;
  --sage: #4d7440;
  --iris: #4b57c9;
  --sand: #8a6a33;
  color-scheme: light;
}
[data-section="music"] { --accent: var(--ember); }
[data-section="adventure"] { --accent: var(--sage); }
[data-section="lab"] { --accent: var(--iris); }
[data-section="journal"], [data-section="about"] { --accent: var(--sand); }

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body {
  margin: 0; min-height: 100dvh;
  background: var(--bg); color: var(--ink);
  font: 400 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, video, iframe, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
::selection { background: var(--accent); color: var(--bg); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }
[lang="hy"], .hy { font-family: var(--hy); }
[lang="fa"], .fa { font-family: var(--fa); }

/* film grain over everything, very subtle */
body::after {
  content: ""; position: fixed; inset: -50%; z-index: 100; pointer-events: none; opacity: .045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
:root[data-theme="light"] body::after { opacity: .03; }

.skip { position: absolute; left: 12px; top: -80px; z-index: 200; background: var(--ink); color: var(--bg); padding: 10px 14px; border-radius: var(--r-sm); }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- type ---------- */
h1, h2, h3, .display { font-family: var(--serif); font-weight: 400; margin: 0; letter-spacing: -.02em; text-wrap: balance; }
h1 { font-size: clamp(48px, 9vw, 150px); line-height: .9; letter-spacing: -.035em; }
h2 { font-size: clamp(36px, 5.4vw, 84px); line-height: .95; letter-spacing: -.03em; }
h3 { font-size: clamp(20px, 1.8vw, 26px); line-height: 1.15; }
h1 em, h2 em, h3 em { font-style: italic; color: var(--accent); }
p { margin: 0 0 1em; text-wrap: pretty; }
.lede { font: 300 clamp(20px, 2.2vw, 30px)/1.35 var(--serif); color: var(--ink-2); max-width: 34ch; letter-spacing: -.01em; }
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font: 500 11.5px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.kicker::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 16px var(--accent); }
.meta { font: 400 12.5px/1.4 var(--mono); color: var(--muted); letter-spacing: .02em; }
.muted { color: var(--muted); }

/* ---------- buttons & controls ---------- */
.btn {
  --b: var(--ink); --f: var(--bg);
  display: inline-flex; align-items: center; gap: .6em;
  padding: 14px 22px; border-radius: 999px; border: 0;
  background: var(--b); color: var(--f);
  font: 500 15px/1 var(--sans); white-space: nowrap;
  transition: transform .4s var(--ease), background .25s, color .25s, box-shadow .25s;
}
.btn:hover { transform: translateY(-2px); background: var(--accent); color: var(--bg); box-shadow: 0 10px 30px -10px var(--accent); }
.btn.ghost { --b: transparent; --f: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn.ghost:hover { background: color-mix(in oklab, var(--accent) 16%, transparent); color: var(--ink); box-shadow: inset 0 0 0 1px var(--accent); }
.btn svg { width: 16px; height: 16px; }
.link { display: inline-flex; align-items: center; gap: .45em; font-weight: 500; color: var(--ink); border-bottom: 1px solid var(--line-2); padding-bottom: 3px; transition: color .2s, border-color .2s, gap .3s var(--ease); }
.link:hover { color: var(--accent); border-color: var(--accent); gap: .75em; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 0; border-radius: 999px; padding: 9px 15px;
  background: transparent; box-shadow: inset 0 0 0 1px var(--line-2);
  font: 500 13.5px/1 var(--sans); color: var(--ink-2); transition: all .25s var(--ease);
}
.chip small { font: 400 11px var(--mono); color: var(--muted); margin-left: 6px; }
.chip:hover { color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink-2); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); box-shadow: none; }
.chip[aria-pressed="true"] small { color: inherit; opacity: .6; }

.pill { display: inline-flex; align-items: center; gap: 4px; font: 500 10.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; padding: 5px 8px; border-radius: 999px; background: color-mix(in oklab, var(--ink) 10%, transparent); color: var(--ink-2); }
.pill.accent { background: color-mix(in oklab, var(--accent) 22%, transparent); color: var(--accent); }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 14px 0 auto; z-index: 50; pointer-events: none;
  view-transition-name: site-header;
}
.site-header .bar {
  pointer-events: auto; margin-inline: auto; width: min(calc(100% - 2 * var(--gutter)), var(--max));
  display: flex; align-items: center; gap: 12px; justify-content: space-between;
  padding: 8px 8px 8px 20px; border-radius: 999px;
  background: var(--glass); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: inset 0 0 0 1px var(--line), 0 20px 50px -30px rgba(0,0,0,.6);
  transition: transform .5s var(--ease), background .3s;
}
.site-header.away .bar { transform: translateY(-120%); }
.brand { font: 400 21px/1 var(--serif); letter-spacing: -.01em; white-space: nowrap; display: flex; align-items: center; gap: 10px; }
.brand i { color: var(--muted); }
.brand .mark { width: 26px; height: 26px; border-radius: 8px; background: var(--ink); color: var(--bg); display: grid; place-items: center; font: italic 400 18px/1 var(--serif); }
.nav { display: flex; align-items: center; gap: 2px; }
.nav a { position: relative; padding: 10px 14px; border-radius: 999px; font: 500 14px/1 var(--sans); color: var(--ink-2); transition: color .2s, background .2s; }
.nav a:hover { color: var(--ink); background: color-mix(in oklab, var(--ink) 7%, transparent); }
.nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"]::after { content: ""; position: absolute; left: 50%; bottom: 3px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--accent); }
.tools { display: flex; align-items: center; gap: 4px; }
.icon {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 999px; border: 0;
  background: transparent; color: var(--ink-2); transition: background .2s, color .2s;
}
.icon:hover { background: color-mix(in oklab, var(--ink) 9%, transparent); color: var(--ink); }
.icon svg { width: 18px; height: 18px; }
.search-btn { display: inline-flex; align-items: center; gap: 10px; height: 40px; padding: 0 8px 0 14px; border-radius: 999px; border: 0; background: color-mix(in oklab, var(--ink) 7%, transparent); color: var(--muted); font-size: 14px; }
.search-btn:hover { color: var(--ink); }
.search-btn kbd { font: 500 11px var(--mono); padding: 4px 7px; border-radius: 6px; background: color-mix(in oklab, var(--ink) 9%, transparent); }
.menu-btn { display: none; }

#menu {
  inset: 0; width: 100%; height: 100dvh; max-width: none; max-height: none; margin: 0; border: 0; padding: 96px var(--gutter) 40px;
  background: var(--bg); color: var(--ink);
}
#menu:popover-open { display: flex; flex-direction: column; gap: 4px; animation: menu-in .5s var(--ease); }
@keyframes menu-in { from { opacity: 0; transform: translateY(-12px); } }
#menu a { font: 400 clamp(40px, 11vw, 64px)/1.05 var(--serif); letter-spacing: -.03em; padding: 8px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: baseline; }
#menu a small { font: 400 12px var(--mono); color: var(--muted); }
#menu .close { position: absolute; top: 22px; right: var(--gutter); }

@media (max-width: 960px) {
  .nav, .search-btn span, .search-btn kbd { display: none; }
  .search-btn { width: 40px; padding: 0; justify-content: center; background: transparent; }
  .menu-btn { display: inline-grid; }
}

/* ---------- sections ---------- */
main { display: block; }
.section { padding-block: clamp(80px, 12vw, 180px); position: relative; }
.section.tight { padding-block: clamp(48px, 7vw, 100px); }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 24px 40px; margin-bottom: clamp(32px, 4.5vw, 64px); }
.section-head > div { display: grid; gap: 18px; }
.page-hero { padding: clamp(140px, 18vw, 220px) 0 clamp(40px, 6vw, 80px); position: relative; overflow-x: clip; overflow-clip-margin: 0; isolation: isolate; }
.page-hero h1 { max-width: 14ch; }
.page-hero .row { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 40px; align-items: end; margin-top: 28px; }
.page-hero .glow { position: absolute; inset: -20% -10% auto auto; width: 60vw; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in oklab, var(--accent) 28%, transparent), transparent); filter: blur(40px); opacity: .45; pointer-events: none; z-index: -1; }
@media (max-width: 860px) { .page-hero .row { grid-template-columns: 1fr; } }

.stats { display: flex; flex-wrap: wrap; gap: clamp(24px, 4vw, 56px); }
.stat b { display: block; font: 300 clamp(36px, 4vw, 56px)/1 var(--serif); letter-spacing: -.03em; color: var(--ink); }
.stat span { font: 400 12px var(--mono); color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }

/* ---------- home hero ---------- */
.hero { position: relative; height: 100svh; min-height: 620px; overflow: clip; isolation: isolate; }
.hero-stage { position: absolute; inset: 0; z-index: -2; background: var(--bg-2); }
.hero-stage img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.12); transition: opacity 1.8s ease, transform 9s linear;
}
.hero-stage img.on { opacity: 1; transform: scale(1); }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(11,10,9,.55) 0%, rgba(11,10,9,0) 26%),
    linear-gradient(0deg, var(--bg) 0%, rgba(11,10,9,.7) 22%, rgba(11,10,9,0) 60%),
    radial-gradient(120% 80% at 0% 100%, rgba(11,10,9,.7), transparent 60%);
}
:root[data-theme="light"] .hero::before {
  background:
    linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,0) 26%),
    linear-gradient(0deg, var(--bg) 0%, rgba(0,0,0,.35) 24%, rgba(0,0,0,0) 60%);
}
.hero-copy { position: absolute; inset: auto 0 0; padding-bottom: clamp(32px, 6vh, 72px); color: #f6f1e8; }
:root[data-theme="light"] .hero-copy .lede { color: #f1ebe0; }
.hero h1 { font-size: clamp(64px, 14.5vw, 260px); line-height: .82; letter-spacing: -.045em; }
.hero h1 .line { display: block; overflow: clip; padding-bottom: .06em; }
.hero h1 .line span { display: inline-block; animation: rise 1.4s var(--ease) both; }
.hero h1 .line:nth-child(2) span { animation-delay: .12s; font-style: italic; padding-left: .45em; color: color-mix(in oklab, #f6f1e8 82%, var(--ember)); }
@keyframes rise { from { transform: translateY(105%); } }
.hero-foot { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 32px; margin-top: clamp(20px, 3vw, 40px); }
.hero-foot .lede { color: #e7e0d4; max-width: 38ch; animation: fade 1.2s .5s var(--ease) both; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; animation: fade 1.2s .7s var(--ease) both; }
.hero .btn.ghost { --f: #f6f1e8; box-shadow: inset 0 0 0 1px rgba(246,241,232,.35); }
.hero-caption { position: absolute; top: 96px; right: var(--gutter); text-align: right; color: rgba(246,241,232,.75); }
.hero-dots { display: flex; gap: 6px; justify-content: flex-end; margin-top: 10px; }
.hero-dots button { width: 22px; height: 3px; border: 0; padding: 0; border-radius: 2px; background: rgba(246,241,232,.3); }
.hero-dots button[aria-current="true"] { background: #f6f1e8; }
@keyframes fade { from { opacity: 0; transform: translateY(16px); } }
@media (max-width: 760px) { .hero-foot { grid-template-columns: 1fr; } .hero-caption { display: none; } }

/* marquee of sections */
.marquee { border-block: 1px solid var(--line); overflow: clip; padding: 22px 0; }
.marquee .track { display: flex; gap: 48px; width: max-content; animation: marquee 48s linear infinite; }
.marquee:hover .track { animation-play-state: paused; }
.marquee a { font: 300 clamp(28px, 3.4vw, 46px)/1 var(--serif); letter-spacing: -.02em; white-space: nowrap; display: inline-flex; align-items: center; gap: 48px; color: var(--ink-2); transition: color .2s; }
.marquee a:hover { color: var(--ink); }
.marquee a::after { content: "✦"; font-size: .45em; color: var(--accent); }
.marquee a i { color: var(--muted); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- release (latest song) ---------- */
.release {
  display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: center;
}
.release .screen { border-radius: var(--r); }
.release .info { display: grid; gap: 20px; }
.release .orig { font-size: clamp(28px, 3vw, 44px); line-height: 1.15; }
@media (max-width: 900px) { .release { grid-template-columns: 1fr; } }

/* ---------- media primitives ---------- */
.screen { position: relative; aspect-ratio: 16/9; overflow: hidden; border-radius: var(--r-sm); background: #000; box-shadow: 0 40px 80px -40px rgba(0,0,0,.7); }
.screen iframe, .screen video { width: 100%; height: 100%; border: 0; }
.facade { all: unset; box-sizing: border-box; position: absolute; inset: 0; cursor: pointer; display: grid; place-items: center; }
.facade img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), filter .4s; filter: saturate(.92); }
.facade:hover img { transform: scale(1.04); filter: saturate(1.05); }
.facade:focus-visible { outline: 2px solid var(--accent); outline-offset: -3px; }
.play {
  position: relative; width: clamp(60px, 7vw, 88px); aspect-ratio: 1; border-radius: 50%;
  display: grid; place-items: center; color: #111; background: rgba(246,241,232,.94);
  box-shadow: 0 0 0 0 rgba(246,241,232,.5); transition: transform .5s var(--ease);
  animation: pulse 2.6s ease-out infinite;
}
.play svg { width: 34%; height: 34%; margin-left: 7%; }
.facade:hover .play { transform: scale(1.08); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(246,241,232,.45); } 70%, 100% { box-shadow: 0 0 0 22px rgba(246,241,232,0); } }

/* ---------- song cards ---------- */
.rail-wrap { position: relative; }
.rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(280px, 28%); gap: clamp(14px, 1.6vw, 24px);
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
  padding: 4px var(--gutter) 24px; scrollbar-width: none; overscroll-behavior-x: contain;
}
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }
@media (max-width: 900px) { .rail { grid-auto-columns: 78%; } }
.rail-nav { display: flex; gap: 8px; }

.songs { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: clamp(28px, 3vw, 44px) clamp(14px, 1.6vw, 24px); }
.song { container-type: inline-size; display: grid; gap: 14px; align-content: start; }
.song .thumb {
  all: unset; box-sizing: border-box; cursor: pointer; position: relative; display: block; aspect-ratio: 16/10; overflow: hidden; border-radius: var(--r);
  background: var(--bg-3);
}
.song .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease), filter .5s; filter: saturate(.85) contrast(1.02); }
.song .thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.72), rgba(0,0,0,0) 55%); }
.song:hover .thumb img { transform: scale(1.06); filter: saturate(1.05); }
.song .thumb:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.song .over { position: absolute; inset: auto 16px 14px; z-index: 1; display: flex; justify-content: space-between; align-items: end; gap: 12px; color: #f6f1e8; }
.song .orig { font-size: clamp(20px, 7cqi, 30px); line-height: 1.1; text-shadow: 0 2px 20px rgba(0,0,0,.5); }
.song .mini-play { flex: none; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: rgba(246,241,232,.92); color: #111; transform: scale(.85); opacity: 0; transition: all .4s var(--ease); }
.song .mini-play svg { width: 14px; margin-left: 2px; }
.song:hover .mini-play, .song .thumb:focus-visible .mini-play { opacity: 1; transform: none; }
.song .badge { position: absolute; top: 12px; left: 12px; z-index: 1; }
.song .t { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.song h3 { font-size: clamp(19px, 6cqi, 24px); }
.song .langs { display: flex; gap: 4px; flex: none; }
.song .langs button { border: 0; padding: 4px 7px; border-radius: 6px; font: 500 10.5px/1 var(--mono); letter-spacing: .06em; background: color-mix(in oklab, var(--ink) 8%, transparent); color: var(--ink-2); }
.song .langs button:hover { background: var(--accent); color: var(--bg); }
.song .sum { color: var(--muted); font-size: 14.5px; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.song .cr { font: 400 11.5px/1.4 var(--mono); color: var(--muted); }

/* featured large song card */
.song.big { grid-column: span 2; }
.song.big .thumb { aspect-ratio: 16/9; }
@media (max-width: 760px) { .song.big { grid-column: auto; } }

/* ---------- adventures ---------- */
.masonry { columns: 3 320px; column-gap: clamp(10px, 1.2vw, 18px); }
.masonry > * { break-inside: avoid; margin-bottom: clamp(10px, 1.2vw, 18px); }
.tile { all: unset; box-sizing: border-box; cursor: zoom-in; position: relative; display: block; width: 100%; overflow: hidden; border-radius: var(--r-sm); background: var(--bg-3); }
.tile img, .tile video { width: 100%; height: auto; transition: transform 1.2s var(--ease); }
.tile:hover img { transform: scale(1.04); }
.tile .cap { position: absolute; inset: auto 0 0; padding: 40px 14px 12px; background: linear-gradient(0deg, rgba(0,0,0,.66), transparent); color: #f3eee5; font-size: 14px; display: flex; justify-content: space-between; gap: 10px; opacity: 0; transform: translateY(8px); transition: all .45s var(--ease); }
.tile:hover .cap, .tile:focus-visible .cap { opacity: 1; transform: none; }
.tile .kind { position: absolute; top: 10px; left: 10px; }
.tile:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 72px); align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

.chapters { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.chapters button { all: unset; box-sizing: border-box; cursor: pointer; width: 100%; display: grid; grid-template-columns: 56px 1fr; gap: 10px; padding: 13px 0; border-bottom: 1px solid var(--line); color: var(--muted); transition: color .2s; }
.chapters button:hover, .chapters button[aria-current="true"] { color: var(--ink); }
.chapters button[aria-current="true"] .ts { color: var(--accent); }
.chapters .ts { font: 500 12.5px/1.7 var(--mono); }

/* ---------- placeholders (coming soon) ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: clamp(14px, 1.6vw, 22px); }
.card {
  position: relative; display: grid; gap: 14px; align-content: start; padding: clamp(22px, 2.4vw, 32px); border-radius: var(--r);
  background: linear-gradient(160deg, color-mix(in oklab, var(--accent) 9%, var(--bg-2)), var(--bg-2) 60%);
  box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; min-height: 240px;
  transition: transform .5s var(--ease), box-shadow .3s;
}
.card:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px var(--line-2); }
.card h3 { font-size: clamp(24px, 2.2vw, 32px); }
.card p { color: var(--muted); margin: 0; }
.card .foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.card.soon::before { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 1px dashed color-mix(in oklab, var(--accent) 40%, transparent); pointer-events: none; }
.card .glyph { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in oklab, var(--accent) 18%, transparent); color: var(--accent); }
.card .glyph svg { width: 22px; height: 22px; }
.card.media { padding: 0; min-height: 0; }
.card.media img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.card.media .body { padding: 22px; display: grid; gap: 10px; }

/* ---------- listening room ---------- */
.instrument { position: relative; aspect-ratio: 1; width: min(100%, 520px); margin-inline: auto; display: grid; place-items: center; }
.instrument .ring { position: absolute; border-radius: 50%; border: 1px solid var(--line); inset: var(--i); }
.ripple { position: absolute; inset: 32%; border-radius: 50%; border: 1.5px solid var(--accent); animation: ripple 1.8s var(--ease) forwards; pointer-events: none; }
@keyframes ripple { from { transform: scale(.6); opacity: .9; } to { transform: scale(2.4); opacity: 0; } }
.keys { position: relative; display: flex; gap: clamp(10px, 2vw, 18px); }
.key { width: clamp(70px, 11vw, 104px); aspect-ratio: 1; border-radius: 50%; border: 0; background: var(--bg-3); box-shadow: inset 0 0 0 1px var(--line-2); display: grid; place-content: center; gap: 4px; transition: transform .15s var(--ease), background .2s, color .2s; }
.key b { font: 400 clamp(28px, 4vw, 42px)/1 var(--serif); }
.key small { font: 400 10.5px/1 var(--mono); color: var(--muted); }
.key:hover { box-shadow: inset 0 0 0 1px var(--accent); }
.key.on { transform: scale(.94); background: var(--accent); color: var(--bg); }
.key.on small { color: inherit; }
kbd { font: 500 11px var(--mono); padding: 3px 6px; border-radius: 5px; background: color-mix(in oklab, var(--ink) 9%, transparent); }

/* ---------- dialogs: player, lightbox, search ---------- */
dialog { color: var(--ink); }
dialog::backdrop { background: rgba(5,5,4,.82); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
dialog[open] { animation: pop .45s var(--ease); }
dialog[open]::backdrop { animation: fadebg .4s ease; }
@keyframes pop { from { opacity: 0; transform: translateY(18px) scale(.985); } }
@keyframes fadebg { from { opacity: 0; } }

.player {
  width: min(1320px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: 0; border-radius: 18px;
  background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line), 0 60px 120px -40px #000;
  overflow: hidden;
}
.player[open] { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(300px, 1fr); }
.player .stage { background: #000; display: grid; align-content: center; }
.player .stage .screen { border-radius: 0; box-shadow: none; }
.player aside { display: grid; grid-template-rows: auto auto 1fr; min-height: 0; max-height: min(78dvh, 760px); }
.player .head { padding: 22px 64px 16px 24px; display: grid; gap: 10px; border-bottom: 1px solid var(--line); }
.player .head h2 { font-size: clamp(26px, 2.6vw, 38px); line-height: 1.08; }
.player .versions { display: flex; flex-wrap: wrap; gap: 6px; padding: 14px 24px; border-bottom: 1px solid var(--line); }
.player .lyrics { overflow-y: auto; padding: 22px 24px 32px; white-space: pre-line; color: var(--ink-2); font: 400 16px/1.75 var(--serif); scrollbar-width: thin; }
.player .lyrics[lang="fa"] { font-family: var(--fa); line-height: 2; }
.player .close { position: absolute; top: 12px; right: 12px; z-index: 2; background: rgba(0,0,0,.45); color: #fff; }
@media (max-width: 900px) {
  .player[open] { grid-template-columns: 1fr; overflow-y: auto; }
  .player aside { max-height: none; }
  .player[open] { padding-top: 52px; }
  .player .head { padding-right: 24px; }
  .player .close { top: 6px; right: 8px; background: transparent; color: var(--ink); }
}

.lightbox { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: #070706; color: #eee7db; }
.lightbox[open] { display: grid; grid-template-rows: auto 1fr auto; }
.lightbox .top, .lightbox .bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px var(--gutter); }
.lightbox .stage { position: relative; display: grid; place-items: center; min-height: 0; padding: 0 clamp(8px, 6vw, 96px); }
.lightbox .stage img, .lightbox .stage video { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 4px; }
.lightbox .icon { color: #cfc8bb; }
.lightbox .nav-prev, .lightbox .nav-next { position: absolute; top: 50%; translate: 0 -50%; }
.lightbox .nav-prev { left: 8px; } .lightbox .nav-next { right: 8px; }
.lightbox h3 { font-size: 22px; }
@media (max-width: 700px) { .lightbox .nav-prev, .lightbox .nav-next { display: none; } }

.palette { width: min(680px, calc(100vw - 24px)); margin: 12vh auto auto; padding: 0; border: 0; border-radius: 18px; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line-2), 0 50px 100px -30px #000; overflow: hidden; }
.palette .q { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.palette .q svg { width: 18px; color: var(--muted); flex: none; }
.palette input { all: unset; flex: 1; font-size: 18px; }
.palette ul { list-style: none; margin: 0; padding: 8px; max-height: min(56dvh, 480px); overflow-y: auto; }
.palette li a { display: grid; grid-template-columns: 56px 1fr auto; gap: 14px; align-items: center; padding: 8px 10px; border-radius: 10px; }
.palette li a[aria-selected="true"], .palette li a:hover { background: color-mix(in oklab, var(--ink) 8%, transparent); }
.palette li img { width: 56px; height: 36px; object-fit: cover; border-radius: 6px; background: var(--bg-3); }
.palette li b { font-weight: 500; display: block; }
.palette li small { color: var(--muted); font-size: 13px; }
.palette .empty { padding: 28px; text-align: center; color: var(--muted); }
.palette .hint { display: flex; gap: 16px; padding: 10px 20px; border-top: 1px solid var(--line); font: 400 11.5px var(--mono); color: var(--muted); }

/* ---------- CTA + footer ---------- */
.cta {
  position: relative; overflow: hidden; border-radius: 24px; padding: clamp(40px, 7vw, 110px) clamp(24px, 6vw, 96px);
  background: radial-gradient(120% 140% at 100% 0%, color-mix(in oklab, var(--accent) 30%, var(--bg-2)), var(--bg-2) 55%);
  box-shadow: inset 0 0 0 1px var(--line);
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 32px; align-items: end;
}
.cta p { color: var(--ink-2); max-width: 42ch; }
@media (max-width: 860px) { .cta { grid-template-columns: 1fr; } }

.site-footer { border-top: 1px solid var(--line); padding: 64px 0 36px; margin-top: clamp(60px, 8vw, 120px); }
.site-footer .grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.site-footer .big { font: 300 clamp(40px, 6vw, 88px)/.95 var(--serif); letter-spacing: -.04em; }
.site-footer h4 { margin: 0 0 14px; font: 500 11.5px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer ul a { color: var(--ink-2); transition: color .2s; }
.site-footer ul a:hover { color: var(--accent); }
.site-footer .base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); }
.ai-note { display: inline-flex; align-items: center; gap: 8px; }
.ai-note i { width: 6px; height: 6px; border-radius: 50%; background: var(--sage); box-shadow: 0 0 10px var(--sage); }
@media (max-width: 860px) { .site-footer .grid { grid-template-columns: 1fr 1fr; } .site-footer .grid > :first-child { grid-column: 1 / -1; } }

/* ---------- forms (albums) ---------- */
.form { display: grid; gap: 16px; max-width: 460px; }
.form label { display: grid; gap: 8px; font: 500 11.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.form input { background: var(--bg-2); border: 0; box-shadow: inset 0 0 0 1px var(--line-2); border-radius: var(--r-sm); padding: 14px 16px; font-size: 16px; }
.form input:focus { outline: none; box-shadow: inset 0 0 0 1.5px var(--accent); }
.downloads { display: grid; gap: 8px; max-width: 560px; margin-top: 24px; }
.downloads button { display: flex; justify-content: space-between; align-items: center; gap: 12px; text-align: left; padding: 14px 16px; border: 0; border-radius: var(--r-sm); background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); }
.downloads button:hover { box-shadow: inset 0 0 0 1px var(--accent); }
.status { font: 400 13px/1.4 var(--mono); color: var(--muted); min-height: 1.4em; }

/* ---------- motion: scroll-driven reveal with fallback ---------- */
.rv { opacity: 1; }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .rv { animation: rv linear both; animation-timeline: view(); animation-range: entry 0% cover 22%; }
    .parallax { animation: drift linear both; animation-timeline: view(); animation-range: cover; }
  }
}
@keyframes rv { from { opacity: 0; transform: translateY(48px) scale(.985); } }
@keyframes drift { from { transform: translateY(-6%) scale(1.08); } to { transform: translateY(6%) scale(1.08); } }

::view-transition-old(root), ::view-transition-new(root) { animation-duration: .45s; animation-timing-function: var(--ease); }
::view-transition-old(root) { animation-name: vt-out; }
::view-transition-new(root) { animation-name: vt-in; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-12px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(16px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .hero-stage img.on { transform: none; }
}
