/* =========================================================
   pages.css — tab pages + persistent player bar
   (monochrome editorial: hairlines, weight, opacity)
   ========================================================= */

/* ---------- tab page shell (content swaps inside) ---------- */
.tabpage {
  min-height: calc(var(--vph) - var(--nav-h));
  padding: var(--page-top) 0 var(--player-clear);
  animation: pageIn 0.55s cubic-bezier(0.22, 0.8, 0.3, 1) both;
}
/* pages that open with a header / back-link keep breathing room
   under the fixed nav (home hero wants to sit as high as possible) */
.tabpage .page-head, .tabpage .back-link { margin-top: 30px; }
@keyframes pageIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

/* ---------- shared page header ---------- */
.page-head { margin-bottom: 44px; }
.ph-eyebrow {
  font-family: var(--font-mono); font-size: 0.66rem;
  letter-spacing: 0.5em; text-transform: uppercase; text-indent: 0.5em;
  color: var(--faint); margin-bottom: 14px;
}
.ph-title {
  font-family: var(--font-disp);
  font-size: clamp(2rem, 5.4vw, 3.2rem);
  font-weight: 900; line-height: 1.05; letter-spacing: 0.01em;
}
.ph-sub { color: var(--muted); margin-top: 14px; font-size: 0.95rem; } /* full width — keeps page subtitle on one line */

/* ---------- sections ---------- */
.sec { margin-top: 64px; }
.tabpage .section-eyebrow { margin-top: 0; }
.sec-title { font-family: var(--font-disp); font-size: 1.4rem; font-weight: 800; margin-bottom: 6px; }
.sec-note { color: var(--muted); font-size: 0.88rem; margin-bottom: 22px; }

/* hidden scrollbar utility */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* =========================================================
   HOME
   ========================================================= */
.home-wrap { display: flex; flex-direction: column; gap: 8px; }

/* genre marquee */
.marquee {
  overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 13px 0; user-select: none;
}
.marquee-track { display: flex; width: max-content; animation: marqueeMove 46s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-seq { display: inline-flex; align-items: center; }
.marquee-seq i {
  font-family: var(--font-mono); font-size: 0.64rem; font-weight: 500;
  letter-spacing: 0.34em; text-transform: uppercase; color: var(--faint);
  padding: 0 26px; position: relative; white-space: nowrap; font-style: normal;
}
.marquee-seq i::after {
  content: ""; position: absolute; right: -3px; top: 50%;
  width: 4px; height: 4px; border-radius: 50%; background: var(--line2);
}
@keyframes marqueeMove { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* recent release feature */
.feature {
  position: relative; display: flex; gap: 26px; align-items: stretch;
  border: 1px solid var(--line); margin-top: 40px;
  transition: border-color 0.3s ease;
}
.feature:hover { border-color: var(--line2); }
.feature-kanji {
  flex-shrink: 0; width: clamp(96px, 22vw, 168px);
  display: flex; align-items: center; justify-content: center;
  border-right: 1px solid var(--line); user-select: none;
}
.feature-kanji span {
  font-size: clamp(3rem, 7vw, 5.2rem); font-weight: 900; line-height: 1;
  color: transparent; -webkit-text-stroke: 1.5px var(--ink);
}
.feature-body { padding: 26px 26px 26px 6px; display: flex; flex-direction: column; justify-content: center; }
.feature-body h2 { font-family: var(--font-disp); font-size: clamp(1.15rem, 2.6vw, 1.6rem); font-weight: 800; }
.feature-desc { color: var(--muted); font-size: 0.9rem; margin-top: 8px; max-width: 520px; }
.feature-links { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.feature-badge {
  position: absolute; top: 0; right: 0;
  background: var(--ink); color: var(--bg);
  font-family: var(--font-mono); font-size: 0.58rem; font-weight: 700;
  letter-spacing: 0.22em; padding: 5px 12px;
}

/* small pill link (external) */
.pill-link {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--line2); padding: 7px 15px;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); transition: all 0.25s ease; border-radius: 999px;
}
.pill-link:hover { color: var(--bg); background: var(--ink); border-color: var(--ink); transform: scale(1.05); }
.pill-link i { font-size: 0.78rem; }

/* home index list heading spacing */
.home-wrap .section-eyebrow { margin-top: 48px; }
.index-row .ir-title { display: inline-flex; align-items: center; gap: 12px; }
.index-row .ir-title i { font-size: 0.8rem; opacity: 0.55; }

/* =========================================================
   PORTFOLIO
   ========================================================= */
.pf-filters {
  display: flex; gap: 4px; overflow-x: auto; flex-wrap: wrap;
  margin-bottom: 28px;
}
.pf-filters button {
  font-family: var(--font-mono); font-size: 0.62rem; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--faint); padding: 8px 14px;
  border: 1px solid transparent; border-radius: 999px;
  transition: color 0.25s, border-color 0.25s, background 0.25s;
  white-space: nowrap;
}
.pf-filters button:hover { color: var(--ink); border-color: var(--line); transform: scale(1.07); }
.pf-filters button.on { color: var(--bg); background: var(--ink); border-color: var(--ink); }

.pf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: 14px; }
.pf-card {
  position: relative; border: 1px solid var(--line);
  overflow: hidden;
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.pf-card:hover { border-color: var(--line2); transform: translateY(-3px) scale(1.01); }

/* media area — YouTube works render as THUMBNAILS (click → big
   pop-up player); image works show the cover (full color) */
.pf-media { position: relative; border-bottom: 1px solid var(--line); }
.pf-media img {
  width: 100%; display: block;
  transition: transform 0.5s ease;
}
.pf-card:hover .pf-media img { transform: scale(1.03); }

/* category-switch entrance: cards stagger in (--d per card) */
.pf-anim .pf-card {
  animation: pfCardIn 0.5s cubic-bezier(0.22, 0.8, 0.3, 1) both;
  animation-delay: var(--d, 0ms);
}
@keyframes pfCardIn {
  from { opacity: 0; transform: translateY(16px) scale(0.985); }
  to { opacity: 1; transform: none; }
}

/* YouTube thumbnail card (16:9 crop of hqdefault) */
.pf-thumb {
  display: block; width: 100%; padding: 0;
  aspect-ratio: 16 / 9; overflow: hidden; cursor: pointer;
}
.pf-thumb img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(0.92);
  transition: transform 0.5s ease, filter 0.5s ease;
}
.pf-card:hover .pf-thumb img { transform: scale(1.05); filter: saturate(1); }
.pf-playbig {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
}
.pf-playbig i {
  width: 54px; height: 54px; border-radius: 50%;
  background: var(--ink); color: var(--bg);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1rem; padding-left: 3px; opacity: 0.92;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.pf-thumb:hover .pf-playbig i { transform: scale(1.14); opacity: 1; }

/* empty category note */
.pf-empty {
  border: 1px dashed var(--line2); padding: 34px 20px;
  text-align: center; color: var(--faint); font-size: 0.88rem;
  margin-bottom: 14px;
}
/* loading state — just the sentence, no dashed box */
.pf-empty.pf-loading {
  border: none; padding: 34px 0; margin-bottom: 0;
  animation: pfLoadPulse 1.4s ease-in-out infinite;
}
@keyframes pfLoadPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } }

/* ---------- large video pop-up (opened from a thumbnail) ---------- */
.pf-modal {
  position: fixed; inset: 0; z-index: 140;
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center;
  padding: 22px;
  animation: pageIn 0.3s ease both;
}
.pf-modal-panel {
  width: min(1080px, 100%); max-height: min(86vh, 900px);
  background: var(--bg); border: 1px solid var(--line2);
  display: flex; flex-direction: column; overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  animation: pfPop 0.35s cubic-bezier(0.22, 0.8, 0.3, 1) both;
}
@keyframes pfPop {
  from { opacity: 0; transform: translateY(22px) scale(0.985); }
  to { opacity: 1; transform: none; }
}
.pf-modal-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  padding: 20px 24px; border-bottom: 1px solid var(--line);
}
.pf-modal-eyebrow {
  font-family: var(--font-mono); font-size: 0.56rem;
  letter-spacing: 0.4em; text-transform: uppercase; color: var(--faint);
  margin-bottom: 6px;
}
.pf-modal-title {
  font-family: var(--font-disp); font-size: 1.35rem; font-weight: 900;
  letter-spacing: 0.04em; text-transform: uppercase;
  display: inline-flex; align-items: baseline; gap: 12px;
}
.pf-modal-close {
  width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0;
  border: 1px solid var(--line2); color: var(--muted); font-size: 0.9rem;
  display: inline-flex; align-items: center; justify-content: center;
  transition: all 0.25s ease;
}
.pf-modal-close:hover {
  color: var(--bg); background: var(--ink); border-color: var(--ink);
  transform: rotate(90deg);
}
/* the video pop-up variant — wider panel, big 16:9 player */
.pf-video-panel { width: min(1120px, 100%); max-height: none; }
.pf-video-panel .pf-modal-head { padding: 16px 20px; }
.pf-video {
  width: 100%; aspect-ratio: 16 / 9;
  background: #000;
}
.pf-video iframe {
  display: block; width: 100%; height: 100%; border: 0;
}

.pf-badge {
  position: absolute; top: 0; right: 0; z-index: 2;
  background: var(--ink); color: var(--bg);
  font-family: var(--font-mono); font-size: 0.54rem; font-weight: 700;
  letter-spacing: 0.2em; padding: 4px 10px;
}
.pf-body { position: relative; z-index: 1; padding: 24px 22px; }
.pf-body h3 { font-size: 1.02rem; font-weight: 700; letter-spacing: 0.01em; }
.pf-body > p { color: var(--muted); font-size: 0.84rem; margin-top: 8px; max-width: 92%; }
.pf-foot { display: flex; align-items: center; gap: 12px; margin-top: 18px; flex-wrap: wrap; }
.pf-now {
  font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.24em;
  text-transform: uppercase; color: var(--faint);
  display: inline-flex; align-items: center; gap: 8px;
}
.pf-now::before {
  content: ""; width: 22px; height: 8px; flex-shrink: 0;
  background:
    linear-gradient(var(--ink) 0 0) 0 0/3px 100% no-repeat,
    linear-gradient(var(--ink) 0 0) 7px 2px/3px calc(100% - 4px) no-repeat,
    linear-gradient(var(--ink) 0 0) 14px 0/3px 100% no-repeat;
  animation: eqBlink 0.9s steps(2) infinite;
}
@keyframes eqBlink { 50% { opacity: 0.35; } }
.pf-play {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--ink); color: var(--bg);
  border: 1px solid var(--ink); border-radius: 999px;
  padding: 8px 18px;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.pf-play:hover { transform: translateY(-1px); }
.pf-play.on { background: transparent; color: var(--ink); }

/* =========================================================
   PRICING
   ========================================================= */
/* service-mode toggle: การทำเพลง ⇄ Mix & Mastering */
.price-tabs {
  display: flex; width: fit-content;
  border: 1px solid var(--line);
  margin-bottom: 6px;
}
.price-tabs button {
  font-family: var(--font-mono); font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--faint); padding: 14px 30px;
  border-right: 1px solid var(--line);
  transition: color 0.25s, background 0.25s;
}
.price-tabs button:last-child { border-right: none; }
.price-tabs button:hover { color: var(--ink); transform: scale(1.04); }
.price-tabs button.on { background: var(--ink); color: var(--bg); transform: none; }

.pack-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
/* single highlighted card (mix-view featured service) */
.pack-grid.mix-feat { grid-template-columns: minmax(0, 480px); }
.pack {
  position: relative; border: 1px solid var(--line); padding: 28px 24px;
  display: flex; flex-direction: column; gap: 16px;
  transition: border-color 0.3s ease;
}
.pack:hover { border-color: var(--line2); transform: scale(1.015); }
.pack.pop { background: var(--ink); color: var(--bg); border-color: var(--ink); }
/* recommended card = loudest thing on the pricing page:
   elevated shadow + soft halo ring pulsing around the card */
.pack.pop { box-shadow: 0 24px 50px -20px rgba(0,0,0,0.55); }
.pack.pop::after {
  content: ""; position: absolute; inset: -7px;
  border: 1px solid var(--line2);
  opacity: 0; pointer-events: none;
  animation: popRing 2.6s ease-out infinite;
}
@keyframes popRing {
  0% { opacity: 0; transform: scale(0.99); }
  25% { opacity: 1; }
  60%, 100% { opacity: 0; transform: scale(1.02); }
}
.pack-tag {
  position: absolute; top: 0; right: 0;
  font-family: var(--font-mono); font-size: 0.54rem; font-weight: 700;
  letter-spacing: 0.22em; text-transform: uppercase;
  padding: 5px 12px;
  background: var(--tag-bg); color: var(--tag-ink); /* yellow accent chip — tokens.css */
}
/* tag on the inverted (recommended) card: inverted yellow pair */
.pack.pop .pack-tag {
  background: var(--tag-pop-bg); color: var(--tag-pop-ink);
  font-size: 0.62rem; padding: 7px 14px;
}
.pack-tag i { margin-right: 7px; font-size: 0.9em; }
.pack h3 { font-family: var(--font-disp); font-size: 1.05rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; }
.pack-from { font-family: var(--font-disp); font-size: 1.9rem; font-weight: 900; letter-spacing: 0.01em; }
.pack ul { display: flex; flex-direction: column; gap: 10px; }
.pack li {
  display: flex; align-items: baseline; gap: 12px;
  font-size: 0.84rem; opacity: 0.82;
}
.pack li i { font-size: 0.7rem; opacity: 0.6; flex-shrink: 0; }
.pack li.pack-extra { font-weight: 700; opacity: 1; }

/* editorial row table (prices / mixing) */
.row-table { border-bottom: 1px solid var(--line); }
.rt-row {
  display: grid; grid-template-columns: 1fr auto auto; gap: 22px;
  align-items: center; padding: 17px 8px; border-top: 1px solid var(--line);
  transition: background 0.25s ease, padding 0.25s ease;
}
.rt-row:hover { background: var(--ink); color: var(--bg); padding-left: 16px; }
.rt-main h4 { font-size: 0.94rem; font-weight: 700; display: flex; align-items: center; gap: 12px; }
.rt-main h4 i { font-size: 0.8rem; opacity: 0.55; }
.rt-main p { font-size: 0.78rem; color: var(--muted); margin-top: 3px; }
.rt-row:hover .rt-main p { color: inherit; opacity: 0.65; }
.rt-time { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.06em; color: var(--faint); white-space: nowrap; }
.rt-row:hover .rt-time { color: inherit; opacity: 0.6; }
.rt-price { font-family: var(--font-disp); font-size: 1.15rem; font-weight: 900; white-space: nowrap; }

/* add-ons */
.addon-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.addon { border: 1px solid var(--line); padding: 20px; position: relative; transition: border-color 0.3s, transform 0.3s ease; }
.addon:hover { border-color: var(--line2); transform: scale(1.02); }
.addon-top { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.addon-top i { font-size: 0.95rem; opacity: 0.7; }
.addon-top h4 { font-size: 0.92rem; font-weight: 700; }
.addon p { font-size: 0.78rem; color: var(--muted); padding-right: 56px; }
.addon-price {
  position: absolute; top: 16px; right: 16px;
  font-family: var(--font-disp); font-size: 0.95rem; font-weight: 900;
}

/* installment milestones */
.ms-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.ms { border: 1px solid var(--line); padding: 24px 22px; position: relative; }
.ms-num {
  position: absolute; top: 14px; right: 16px;
  font-family: var(--font-mono); font-size: 0.62rem; color: var(--faint); letter-spacing: 0.1em;
}
.ms-pct {
  display: block; font-family: var(--font-disp);
  font-size: 2.4rem; font-weight: 900; line-height: 1; margin-bottom: 12px;
}
.ms h4 { font-size: 0.98rem; font-weight: 800; }
.ms-step { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint); margin: 4px 0 10px; }
.ms p:last-child { font-size: 0.82rem; color: var(--muted); }

/* licenses */
.lic-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.lic { border: 1px solid var(--line); padding: 26px 24px; transition: border-color 0.3s, transform 0.3s ease; }
.lic:hover { border-color: var(--line2); transform: scale(1.015); }
.lic-top { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; flex-wrap: wrap; }
.lic-top i { font-size: 1.05rem; opacity: 0.75; }
.lic-top h4 { font-size: 1rem; font-weight: 800; flex: 1; }
.lic-price { font-family: var(--font-disp); font-weight: 900; font-size: 1.05rem; }
.lic ul { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.lic ul li { font-size: 0.84rem; color: var(--muted); display: flex; gap: 10px; }
.lic ul li::before { content: "—"; color: var(--faint); flex-shrink: 0; }
.lic-note { font-size: 0.76rem; color: var(--faint); border-top: 1px solid var(--line); padding-top: 12px; }
.lic-note b { color: var(--muted); }

/* notes list */
.note-list { display: flex; flex-direction: column; gap: 10px; }
.note-list li {
  font-size: 0.82rem; color: var(--muted);
  padding-left: 20px; position: relative;
}
.note-list li::before { content: "·"; position: absolute; left: 6px; color: var(--faint); font-weight: 900; }

/* =========================================================
   TOS
   ========================================================= */
.narrow-wide { width: min(980px, 92%); margin: 0 auto; }

/* process steps */
.step-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.step { border: 1px solid var(--line); padding: 22px 20px; position: relative; transition: border-color 0.3s, transform 0.3s ease; }
.step:hover { border-color: var(--line2); transform: scale(1.02); }
.step-num {
  position: absolute; top: 14px; right: 16px;
  font-family: var(--font-mono); font-size: 0.92rem; font-weight: 700;
  color: transparent; -webkit-text-stroke: 1px var(--faint);
}
.step h4 { font-size: 0.95rem; font-weight: 800; padding-right: 40px; }
.step p { font-size: 0.8rem; color: var(--muted); margin-top: 8px; }

/* vocal specs */
.spec-list { display: flex; flex-direction: column; }
.spec-list li {
  font-size: 0.86rem; color: var(--muted);
  padding: 13px 6px 13px 34px; border-top: 1px solid var(--line);
  position: relative;
}
.spec-list li:last-child { border-bottom: 1px solid var(--line); }
.spec-list li::before {
  content: ""; position: absolute; left: 8px; top: 50%;
  width: 10px; height: 1px; background: var(--ink); transform: translateY(-50%);
}
.spec-list b { color: var(--ink); font-weight: 700; }

/* tos blocks */
.tos-blocks { display: flex; flex-direction: column; gap: 26px; }
.tos-block h3 {
  display: flex; align-items: baseline; gap: 14px;
  font-family: var(--font-disp); font-size: 1.08rem; font-weight: 800;
  padding-bottom: 10px; border-bottom: 1px solid var(--line);
  margin-bottom: 12px;
}
.tos-block h3 span {
  font-family: var(--font-mono); font-size: 0.68rem; font-weight: 700;
  color: transparent; -webkit-text-stroke: 1px var(--faint);
}
.tos-block ul { display: flex; flex-direction: column; gap: 8px; }
.tos-block li { font-size: 0.85rem; color: var(--muted); display: flex; gap: 10px; }
.tos-block li::before { content: "—"; color: var(--faint); flex-shrink: 0; }
.tos-block b { color: var(--ink); font-weight: 700; }

/* faq */
.faq-list { border-bottom: 1px solid var(--line); }
.faq-item { border-top: 1px solid var(--line); }
.faq-item summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 18px 6px; font-size: 0.94rem; font-weight: 700;
  transition: color 0.25s, padding 0.25s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--muted); padding-left: 14px; }
.faq-item summary i { font-size: 0.72rem; opacity: 0.5; transition: transform 0.35s ease; flex-shrink: 0; }
.faq-item[open] summary i { transform: rotate(45deg); opacity: 1; }
.faq-item[open] summary { color: var(--ink); }
.faq-item p { padding: 0 6px 20px; font-size: 0.85rem; color: var(--muted); max-width: 720px; }
.faq-item b { color: var(--ink); font-weight: 700; }

/* =========================================================
   CONTACT
   ========================================================= */
.chan-list { border-bottom: 1px solid var(--line); }
.chan-row {
  display: grid; grid-template-columns: 2.2rem minmax(90px, 130px) 1fr 1.4rem;
  align-items: center; gap: 16px;
  padding: 20px 10px; border-top: 1px solid var(--line);
  transition: background 0.25s ease, color 0.25s ease, padding 0.25s ease;
}
.chan-row:hover { background: var(--ink); color: var(--bg); padding-left: 20px; }
.chan-row > i:first-child { font-size: 1.05rem; opacity: 0.8; }
.chan-label { font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.24em; text-transform: uppercase; opacity: 0.65; }
.chan-value { font-size: 0.98rem; font-weight: 700; letter-spacing: 0.02em; }
.chan-arrow { font-size: 0.7rem; opacity: 0.4; transition: transform 0.25s, opacity 0.25s; }
.chan-row:hover .chan-arrow { opacity: 1; transform: translate(3px, -3px); }

.social-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.soc {
  display: flex; align-items: center; gap: 14px;
  border: 1px solid var(--line); padding: 18px 20px;
  font-size: 0.82rem; font-weight: 600; color: var(--muted);
  transition: all 0.25s ease;
}
.soc i { font-size: 1rem; opacity: 0.8; }
.soc:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); transform: translateY(-2px) scale(1.03); }

/* =========================================================
   BACK TO HOME — centered button at the bottom of every tab
   ========================================================= */
.home-return {
  display: flex; justify-content: center;
  margin-top: 72px; padding-bottom: 6px;
}
.back-home {
  display: inline-flex; align-items: center; gap: 10px;
  border: 1px solid var(--line2); border-radius: 999px;
  padding: 13px 30px;
  font-family: var(--font-mono); font-size: 0.66rem; font-weight: 700;
  letter-spacing: 0.28em; text-transform: uppercase; text-indent: 0.28em;
  color: var(--muted);
  transition: all 0.25s ease;
}
.back-home:hover {
  color: var(--bg); background: var(--ink); border-color: var(--ink);
  transform: translateY(-2px) scale(1.04);
}
.back-home i { font-size: 0.76rem; }

/* =========================================================
   ABOUT — resonator showcase (WuWa reference)
   ========================================================= */
/* entry pop-up: full-screen character reveal */
.ab-intro {
  position: fixed; inset: 0; z-index: 150;
  background: var(--bg); cursor: pointer; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.6s ease;
}
.ab-intro.gone { opacity: 0; pointer-events: none; }
.ab-intro-media {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
}
.ab-intro-media img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(0.35) contrast(1.05);
  animation: abReveal 2.8s cubic-bezier(0.22, 0.8, 0.3, 1) both;
}
.ab-intro::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 30%, var(--bg) 128%);
  opacity: 0.9;
}
@keyframes abReveal {
  from { opacity: 0; transform: scale(1.12); filter: grayscale(1) contrast(1.2); }
  to { opacity: 1; transform: scale(1); filter: grayscale(0.35) contrast(1.05); }
}
.ab-intro-plate {
  position: relative; z-index: 1; text-align: center;
  padding: 0 24px 8vh;
  animation: abPlate 1.1s 0.9s cubic-bezier(0.22, 0.8, 0.3, 1) both;
}
@keyframes abPlate {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
.ab-intro-eyebrow {
  font-family: var(--font-mono); font-size: 0.62rem;
  letter-spacing: 0.5em; text-indent: 0.5em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 14px;
}
.ab-intro-name {
  font-family: var(--font-disp); font-weight: 900;
  font-size: clamp(2.6rem, 9vw, 6rem); line-height: 1;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink);
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.45);
}
.ab-intro-name span { color: transparent; -webkit-text-stroke: 1.6px var(--ink); }
.ab-intro-tap {
  display: inline-flex; margin-top: 26px;
  font-size: 1rem; color: var(--ink); opacity: 0.85;
  animation: eqBlink 1.1s steps(2) infinite;
}

/* showcase: framed portrait + stat panel (game UI vibe) */
.ab-showcase {
  display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 22px; align-items: stretch;
}
.ab-portrait {
  position: relative; border: 1px solid var(--line2); overflow: hidden;
  min-height: 320px;
}
.ab-portrait img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(0.25) contrast(1.04);
  transition: transform 0.7s cubic-bezier(0.22, 0.8, 0.3, 1), filter 0.7s ease;
}
.ab-portrait:hover img { transform: scale(1.03); filter: grayscale(0) contrast(1.06); }
/* corner ticks like a game UI frame */
.ab-portrait::before, .ab-portrait::after {
  content: ""; position: absolute; width: 22px; height: 22px; z-index: 2;
  border-color: var(--ink); border-style: solid;
}
.ab-portrait::before { top: 10px; left: 10px; border-width: 1.5px 0 0 1.5px; }
.ab-portrait::after { bottom: 10px; right: 10px; border-width: 0 1.5px 1.5px 0; }
.ab-portrait-plate {
  position: absolute; left: 18px; bottom: 16px; z-index: 2;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--line); padding: 12px 18px;
}
.ab-portrait-plate b {
  display: block;
  font-family: var(--font-disp); font-size: 1.3rem; font-weight: 900;
  letter-spacing: 0.12em; text-transform: uppercase; line-height: 1.1;
}
.ab-portrait-plate b span { color: transparent; -webkit-text-stroke: 1.2px var(--ink); }
.ab-portrait-plate em {
  display: block; font-style: normal;
  font-family: var(--font-mono); font-size: 0.54rem; font-weight: 500;
  letter-spacing: 0.3em; text-transform: uppercase; color: var(--muted);
  margin-top: 5px;
}

/* stat panel */
.ab-panel {
  border: 1px solid var(--line); padding: 26px 24px;
  display: flex; flex-direction: column; gap: 20px;
}
.ab-stats { display: flex; flex-direction: column; }
.ab-stat {
  display: grid; grid-template-columns: minmax(80px, 110px) 1fr; gap: 14px;
  padding: 13px 2px; border-top: 1px solid var(--line); align-items: baseline;
}
.ab-stat span {
  font-family: var(--font-mono); font-size: 0.6rem;
  letter-spacing: 0.24em; text-transform: uppercase; color: var(--faint);
}
.ab-stat b { font-size: 0.96rem; font-weight: 700; white-space: pre-line; } /* role value can span two lines via \n */
.ab-block { border-top: 1px solid var(--line); padding-top: 18px; }
.ab-label {
  display: block; font-family: var(--font-mono); font-size: 0.6rem;
  letter-spacing: 0.24em; text-transform: uppercase; color: var(--faint);
  margin-bottom: 14px;
}
/* "attributes" — signature genre tags */
.ab-attrs { display: flex; gap: 10px; flex-wrap: wrap; }
.ab-attr {
  display: inline-flex; align-items: center; gap: 9px;
  border: 1px solid var(--line2); padding: 9px 16px;
  font-family: var(--font-mono); font-size: 0.6rem; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted);
  transition: all 0.25s ease;
}
.ab-attr:hover { color: var(--bg); background: var(--ink); border-color: var(--ink); transform: translateY(-2px) scale(1.04); }
.ab-attr i { font-size: 0.72rem; }

/* "equipment" — DAW chips */
.daw-chips { display: flex; gap: 10px; flex-wrap: wrap; }
.daw {
  display: inline-flex; align-items: center; gap: 10px;
  border: 1px solid var(--line); padding: 8px 16px 8px 9px;
  font-size: 0.78rem; font-weight: 600; color: var(--muted);
  transition: all 0.25s ease;
}
.daw:hover { color: var(--ink); border-color: var(--line2); transform: translateY(-2px) scale(1.05); }
.daw img { width: 22px; height: 22px; object-fit: contain; }

/* =========================================================
    PRICING TYPE BOOST — all languages, every text +10%
    (replaces the earlier Thai-only +25% experiment)
    ========================================================= */
.pricing .ph-eyebrow { font-size: 0.726rem; }
.pricing .ph-title { font-size: clamp(2.2rem, 5.94vw, 3.52rem); }
.pricing .ph-sub { font-size: 1.045rem; }
.pricing .section-eyebrow { font-size: 0.704rem; }
.pricing .sec-title { font-size: 1.54rem; }
.pricing .sec-note { font-size: 0.968rem; }
.pricing .price-tabs button { font-size: 0.792rem; }
.pricing .pack-tag { font-size: 0.62rem; }
.pricing .pack h3 { font-size: 1.155rem; }
.pricing .pack-from { font-size: 2.09rem; }
.pricing .pack li { font-size: 0.924rem; }
.pricing .pack li i { font-size: 0.77rem; }
.pricing .rt-main h4 { font-size: 1.034rem; }
.pricing .rt-main h4 i { font-size: 0.88rem; }
.pricing .rt-main p { font-size: 0.858rem; }
.pricing .rt-time { font-size: 0.726rem; }
.pricing .rt-price { font-size: 1.265rem; }
.pricing .addon-top h4 { font-size: 1.012rem; }
.pricing .addon-top i { font-size: 1.045rem; }
.pricing .addon p { font-size: 0.858rem; }
.pricing .addon-price { font-size: 1.045rem; }
.pricing .ms-num { font-size: 0.682rem; }
.pricing .ms-pct { font-size: 2.64rem; }
.pricing .ms h4 { font-size: 1.078rem; }
.pricing .ms-step { font-size: 0.682rem; }
.pricing .ms p:last-child { font-size: 0.902rem; }
.pricing .lic-top h4 { font-size: 1.1rem; }
.pricing .lic-top i { font-size: 1.155rem; }
.pricing .lic-price { font-size: 1.155rem; }
.pricing .lic ul li { font-size: 0.924rem; }
.pricing .lic-note { font-size: 0.836rem; }
.pricing .note-list li { font-size: 0.902rem; }
.pricing .back-home { font-size: 0.726rem; }

.fact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.fact { border: 1px solid var(--line); padding: 24px 22px; transition: border-color 0.3s, transform 0.3s ease; }
.fact:hover { border-color: var(--line2); transform: scale(1.02); }
.fact h4 {
  font-size: 0.66rem; font-weight: 800;
  letter-spacing: 0.3em; text-transform: uppercase; color: var(--faint);
  margin-bottom: 12px;
}
.fact p { font-size: 0.88rem; color: var(--muted); }

/* =========================================================
   PLAYER BAR — persistent bottom play area
   (draggable seeker + knob, volume slider, +25% type)
   ========================================================= */
.playerbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  background: var(--nav-bg);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  transition: background 0.8s ease, border-color 0.8s ease;
}

/* ---------- LED-block equalizer strip: appears just above
   the player bar, ONLY while a track is playing (collapses
   away when paused). Track-colored neon blocks (white/blue/
   red/pink/teal) painted by Equalizer.jsx. ---------- */
.pb-viz {
  position: relative; height: 44px;
  max-height: 0; opacity: 0; overflow: hidden;
  pointer-events: none;
  transition: max-height 0.55s cubic-bezier(0.22, 0.8, 0.3, 1),
              opacity 0.4s ease;
}
.pb-viz.on { max-height: 44px; opacity: 0.85; }
.pb-viz canvas {
  position: absolute; left: 0; bottom: 0;   /* reveal upward from the seeker */
  display: block; width: 100%; height: 44px;
}
@media (prefers-reduced-motion: reduce) { .pb-viz { display: none; } }

/* ---------- seek bar: hairline track + fill + knob ---------- */
.pb-progress {
  position: relative; height: 16px;
  cursor: pointer; outline: none; touch-action: none;
}
.pb-progress::before {
  content: ""; position: absolute; top: 7px; left: 0; right: 0;
  height: 2px; background: var(--line);
}
.pb-progress i {
  position: absolute; top: 7px; left: 0; height: 2px;
  background: var(--ink); display: block;
}
.pb-progress b {
  position: absolute; top: 8px; width: 10px; height: 10px; border-radius: 50%;
  background: var(--ink); transform: translate(-50%, -50%) scale(0);
  transition: transform 0.2s ease;
}
.pb-progress:hover b,
.pb-progress.drag b,
.pb-progress:focus-visible b { transform: translate(-50%, -50%) scale(1); }
.pb-progress.drag { cursor: grabbing; }

.pb-inner {
  display: flex; align-items: center; gap: 20px;
  height: 68px; padding: 0 6px;
}
.pb-controls { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.pb-btn {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--line); color: var(--muted);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.8rem;
  transition: all 0.25s ease;
}
.pb-btn:hover { color: var(--ink); border-color: var(--line2); transform: scale(1.06); }
.pb-btn:active { transform: scale(0.94); }
.pb-play {
  width: 42px; height: 42px;
  background: var(--ink); color: var(--bg); border-color: var(--ink);
  font-size: 0.85rem;
}
.pb-play:hover { color: var(--bg); opacity: 0.85; border-color: var(--ink); }

.pb-meta { display: flex; align-items: center; gap: 14px; min-width: 0; flex: 1; }
.pb-kanji {
  width: 38px; height: 38px; flex-shrink: 0;
  border: 1px solid var(--line2); border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 0.85rem; font-weight: 700;
  letter-spacing: 0.06em; user-select: none;
}
.pb-title { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.pb-title b {
  font-size: 1.08rem; font-weight: 700;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pb-title em { font-style: normal; font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); }

.pb-time {
  font-family: var(--font-mono); font-size: 0.83rem; letter-spacing: 0.08em;
  color: var(--faint); flex-shrink: 0; white-space: nowrap;
}

/* ---------- volume: mute button + slider ---------- */
.pb-vol { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.pb-vol input[type="range"] {
  -webkit-appearance: none; appearance: none;
  width: 92px; height: 2px; background: var(--line2);
  outline: none; cursor: pointer; border-radius: 999px;
}
.pb-vol input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--ink); border: none;
  transition: transform 0.15s ease;
}
.pb-vol input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.25); }
.pb-vol input[type="range"]::-moz-range-thumb {
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--ink); border: none;
}

/* =========================================================
   RESPONSIVE
   See the breakpoint note in app.css: 1125 real = 900 effective
   under the 1.25 zoom (zoom drops to 1 at ≤1024px, so the 640
   breakpoint is truthful).
   ========================================================= */
@media (max-width: 1125px) {
  .pack-grid, .addon-grid, .ms-grid, .step-grid, .social-grid { grid-template-columns: 1fr 1fr; }
  .lic-grid, .fact-grid { grid-template-columns: 1fr; }
  .feature { flex-direction: column; }
  .feature-kanji { width: 100%; height: 120px; border-right: none; border-bottom: 1px solid var(--line); }
  .feature-body { padding: 22px; }
  .ab-showcase { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .pack-grid, .addon-grid, .ms-grid, .step-grid, .social-grid { grid-template-columns: 1fr; }
  .price-tabs { width: 100%; }
  .price-tabs button { flex: 1; padding: 13px 10px; letter-spacing: 0.1em; }
  .rt-row { grid-template-columns: 1fr auto; }
  .rt-time { display: none; }
  .chan-row { grid-template-columns: 2rem 1fr 1.2rem; }
  .chan-label { display: none; }
  /* compact player row so controls · title · time · mute fit a 320px bar */
  .pb-inner { gap: 10px; padding: 0 2px; }
  .pb-controls { gap: 6px; }
  .pb-kanji { display: none; }
  .pb-title em { display: none; }
  .pb-time { font-size: 0.72rem; letter-spacing: 0.04em; }
  .pb-vol input[type="range"] { display: none; }
  .pf-grid { grid-template-columns: 1fr; }
  .pf-modal { padding: 12px; }
  .pf-video-panel .pf-modal-head { padding: 12px 14px; }
  .ab-intro-plate { padding-bottom: 14vh; }
  .ab-stat { grid-template-columns: 92px 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .tabpage { animation: none; }
  .marquee-track { animation: none; }
}
