/* ============================================================
   TRIPLE FIVE — Premium Redesign
   Dark + Red · Barlow Condensed (display) + Kanit (body)
   Cinematic, restrained motion, sharp edges, one accent.
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  color-scheme: dark;

  /* Surfaces */
  --ink: #070708;
  --ink-2: #0b0b0e;
  --panel: #101013;
  --panel-2: #16161a;

  /* Text */
  --paper: #f4f1ee;
  --paper-dim: #cfc9c4;
  --muted: #948e8a;
  --muted-2: #66605d;

  /* Accent (brand red — kept) */
  --red: #f2293e;
  --red-hot: #ff4b5d;
  --red-deep: #7c1120;

  /* Lines */
  --line: rgba(244, 241, 238, .11);
  --line-strong: rgba(244, 241, 238, .24);

  /* Layout */
  --wrap: 1200px;
  --gutter: clamp(20px, 5vw, 56px);
  --header-h: 76px;

  /* Type */
  --font-display: "Barlow Condensed", "Kanit", sans-serif;
  --font-body: "Kanit", "Leelawadee UI", sans-serif;

  /* Motion */
  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  min-width: 320px;
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; }
p { margin: 0; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }
::selection { background: var(--red); color: #fff; }

/* Scrollbar */
::-webkit-scrollbar { width: 11px; }
::-webkit-scrollbar-track { background: var(--ink); }
::-webkit-scrollbar-thumb { background: #232328; border: 3px solid var(--ink); }
::-webkit-scrollbar-thumb:hover { background: var(--red-deep); }

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--red-hot);
  outline-offset: 3px;
  border-radius: 2px;
}

.wrap { width: min(var(--wrap), 100% - var(--gutter) * 2); margin-inline: auto; }

.skip-link {
  position: fixed; z-index: 100; top: 12px; left: 12px;
  padding: 11px 16px; background: var(--paper); color: var(--ink);
  font-size: 13px; transform: translateY(-160%);
  transition: transform .25s var(--ease);
}
.skip-link:focus { transform: translateY(0); }

/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; z-index: 80;
  height: 2px; width: 100%;
  background: linear-gradient(90deg, var(--red), var(--red-hot));
  transform-origin: 0 50%; transform: scaleX(0);
  will-change: transform;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 70;
  height: var(--header-h);
  display: flex; align-items: center;
  border-bottom: 1px solid transparent;
  transition: background .45s var(--ease), border-color .45s var(--ease), backdrop-filter .45s var(--ease);
}
.site-header.scrolled {
  background: rgba(7, 7, 8, .8);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  backdrop-filter: blur(18px) saturate(1.3);
  border-bottom-color: var(--line);
}
.nav-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; width: 100%; }
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand img {
  width: 40px; height: 40px; object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(242, 41, 62, .5));
  animation: brand-glow 3.6s ease-in-out infinite;
}
.brand span {
  font: 800 18px/1 var(--font-display);
  letter-spacing: .14em;
}
.nav-links { display: flex; align-items: center; gap: 34px; margin: 0; padding: 0; list-style: none; }
.nav-links a {
  position: relative;
  color: var(--muted);
  font-size: 14px; font-weight: 500;
  letter-spacing: .02em;
  padding: 6px 0;
  transition: color .25s var(--ease);
}
.nav-links a::after {
  position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px;
  background: var(--red); content: "";
  transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav-links a:hover { color: var(--paper); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-contact {
  padding: 10px 18px;
  border: 1px solid var(--line-strong);
  color: var(--paper) !important;
  font-weight: 600;
  transition: border-color .25s var(--ease), background .25s var(--ease), color .25s var(--ease);
}
.nav-contact::after { display: none; }
.nav-contact:hover { border-color: var(--red); background: var(--red); }
.menu-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--line-strong);
  font: 700 22px/1 var(--font-display);
  align-items: center; justify-content: center;
}

/* ---------- Buttons ---------- */
.button {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 52px; padding: 0 26px;
  border: 1px solid var(--line-strong);
  background: transparent; color: var(--paper);
  font-size: 14px; font-weight: 600; letter-spacing: .03em;
  overflow: hidden;
  transition: transform .35s var(--ease), border-color .35s var(--ease), background .35s var(--ease), box-shadow .35s var(--ease);
}
.button::before {
  position: absolute; top: 0; left: -130%; width: 60%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .18), transparent);
  content: ""; transform: skewX(-20deg);
  transition: left .6s var(--ease);
  pointer-events: none;
}
.button:hover::before { left: 130%; }
.button .arw { font-size: 17px; line-height: 1; transition: transform .35s var(--ease); }
.button:hover { transform: translateY(-2px); border-color: var(--red); }
.button:hover .arw { transform: translate(3px, 3px); }
.button-primary {
  background: var(--red); border-color: var(--red); color: #fff;
  box-shadow: 0 10px 34px rgba(242, 41, 62, .35);
}
.button-primary:hover { background: #d11d31; box-shadow: 0 16px 44px rgba(242, 41, 62, .5); }

/* ---------- Shared section bits ---------- */
.eyebrow, .kicker {
  display: inline-flex; align-items: center; gap: 12px;
  color: var(--red-hot);
  font: 700 12.5px/1.4 var(--font-display);
  letter-spacing: .22em; text-transform: uppercase;
}
.eyebrow::before, .kicker::before { width: 28px; height: 2px; background: currentColor; content: ""; }
.section { padding: clamp(72px, 11vw, 132px) 0; }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column;
  overflow: hidden;
  isolation: isolate;
  background: var(--ink);
}
.hero-bg {
  position: absolute; inset: 0; z-index: -3;
  width: 100%; height: 100%; object-fit: cover; object-position: center 42%;
  transform: scale(1.06);
  animation: kenburns 30s var(--ease) infinite alternate;
}
.hero-scrim {
  position: absolute; inset: 0; z-index: -2;
  background:
    linear-gradient(90deg, rgba(7,7,8,.97) 0%, rgba(7,7,8,.74) 30%, rgba(7,7,8,.3) 60%, rgba(7,7,8,.46) 100%),
    linear-gradient(0deg, var(--ink) 2%, rgba(7,7,8,.4) 26%, transparent 52%),
    linear-gradient(180deg, rgba(7,7,8,.6) 0%, transparent 24%);
}
.hero-grain {
  position: absolute; inset: 0; z-index: -1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: .05; mix-blend-mode: overlay;
  pointer-events: none;
}
.hero-main {
  position: relative; flex: 1;
  display: flex; align-items: center;
  padding-top: var(--header-h);
}
.hero-copy { max-width: 700px; }
.hero-title {
  margin: 22px 0 24px;
  font: 900 clamp(4.2rem, 15vw, 11rem)/.8 var(--font-display);
  letter-spacing: -.015em;
  text-shadow: 0 4px 40px rgba(0, 0, 0, .5);
}
.hero-title span { color: var(--red); display: block; text-shadow: 0 0 44px rgba(242, 41, 62, .5); animation: five-glow 4.5s ease-in-out infinite; }
.hero-subline {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
  color: var(--muted); font-size: 15px;
}
.hero-subline b { color: var(--paper); font-weight: 500; }
.hero-subline i { width: 5px; height: 5px; border-radius: 50%; background: var(--red); }
.hero-tagline {
  margin-top: 16px;
  max-width: 460px;
  color: var(--paper-dim);
  font-size: 15px;
  line-height: 1.6;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }
.hero-index {
  position: absolute; right: 0; bottom: 8px;
  color: rgba(244, 241, 238, .6);
  font: 700 11px/1 var(--font-display); letter-spacing: .18em;
}

/* Hero load-in (staggered) */
.hero-copy > * { opacity: 0; transform: translateY(26px); animation: hero-in 1s var(--ease-out) forwards; }
.hero-copy > *:nth-child(1) { animation-delay: .18s; }
.hero-copy > *:nth-child(2) { animation-delay: .34s; }
.hero-copy > *:nth-child(3) { animation-delay: .5s; }
.hero-copy > *:nth-child(4) { animation-delay: .66s; }
.hero-copy > *:nth-child(5) { animation-delay: .82s; }
.hero-index { opacity: 0; animation: fade-in 1s var(--ease-out) .85s forwards; }

@keyframes hero-in { to { opacity: 1; transform: translateY(0); } }
@keyframes fade-in { to { opacity: 1; } }
@keyframes five-glow {
  0%, 100% { text-shadow: 0 0 44px rgba(242, 41, 62, .5); }
  50% { text-shadow: 0 0 62px rgba(242, 41, 62, .8); }
}

/* Hero member ticker (marquee) */
.hero-ticker {
  position: relative; z-index: 1;
  border-top: 1px solid var(--line);
  background: rgba(7, 7, 8, .55);
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
  overflow: hidden;
  padding: 15px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.ticker-track {
  display: flex; gap: 44px; width: max-content;
  animation: ticker 40s linear infinite;
}
.hero-ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-item {
  display: inline-flex; align-items: center; gap: 11px;
  color: var(--paper-dim);
  font: 700 16px/1 var(--font-display); letter-spacing: .08em;
  white-space: nowrap;
}
.ticker-item .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--red); box-shadow: 0 0 10px var(--red); }
.ticker-item .role { color: var(--muted); font-size: 12px; letter-spacing: .05em; }

/* ---------- Page hero (subpages) ---------- */
.page-hero {
  position: relative;
  padding: calc(var(--header-h) + clamp(56px, 8vw, 92px)) 0 clamp(40px, 6vw, 64px);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(130% 90% at 82% -12%, rgba(242, 41, 62, .16), transparent 58%),
    radial-gradient(90% 70% at 8% 120%, rgba(242, 41, 62, .07), transparent 60%),
    var(--ink);
}
.page-hero::after {
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: .04; pointer-events: none;
}
.page-hero .wrap { position: relative; }
.page-hero h1 {
  margin-top: 20px;
  font: 800 clamp(3rem, 9vw, 6rem)/.9 var(--font-display);
  letter-spacing: -.01em;
}
.page-hero h1 span { color: var(--red); }
.page-hero .lede { margin-top: 18px; max-width: 520px; color: var(--muted); font-size: 17px; line-height: 1.8; }

/* ---------- ABOUT ---------- */
.about-feature { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 68px); align-items: center; }
.about-visual {
  position: relative; margin: 0;
  border: 1px solid var(--line);
  overflow: hidden;
  background: var(--panel);
}
.about-visual img { width: 100%; height: auto; transition: transform 1.2s var(--ease); }
.about-visual:hover img { transform: scale(1.03); }
.about-visual::after {
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(7,7,8,.55), transparent 42%);
  pointer-events: none;
}
.about-visual figcaption {
  position: absolute; z-index: 1; left: 18px; bottom: 16px;
  color: var(--paper);
  font: 700 12px/1 var(--font-display); letter-spacing: .18em;
}
.about-copy { color: var(--muted); font-size: 18px; line-height: 1.95; }
.about-copy strong { color: var(--paper); font-weight: 600; }
.about-copy .lead {
  display: block; margin-bottom: 18px;
  color: var(--paper); font-size: 22px; font-weight: 500; line-height: 1.5;
}
.stat-row {
  display: grid; grid-template-columns: repeat(3, 1fr);
  margin-top: 40px; border-top: 1px solid var(--line);
}
.stat {
  display: flex; flex-direction: column; gap: 6px;
  padding: 22px 20px 4px;
  border-right: 1px solid var(--line);
}
.stat:last-child { border-right: none; }
.stat strong { color: var(--red-hot); font: 800 42px/.9 var(--font-display); }
.stat span { color: var(--muted); font-size: 13px; letter-spacing: .04em; }

/* ---------- MEMBERS ---------- */
.members-section { background: var(--ink); }
.members-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 28px;
  margin-bottom: 34px;
}
.members-head > p { max-width: 360px; color: var(--muted); font-size: 15px; line-height: 1.8; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.filter-button {
  min-height: 44px; padding: 0 20px;
  border: 1px solid var(--line-strong);
  color: var(--muted); font-size: 14px; font-weight: 500; letter-spacing: .02em;
  transition: color .25s var(--ease), border-color .25s var(--ease), background .25s var(--ease);
}
.filter-button:hover { border-color: var(--red); color: var(--paper); }
.filter-button[aria-pressed="true"] { border-color: var(--red); background: var(--red); color: #fff; }
.member-count { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.member-group[hidden] { display: none; }
.member-group + .member-group { margin-top: 52px; }
.group-heading {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin-bottom: 18px; padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.group-heading h3 { font: 700 22px/1 var(--font-display); letter-spacing: .04em; }
.group-heading span { color: var(--red-hot); font: 700 12px/1 var(--font-display); letter-spacing: .16em; }

.member-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.member-grid.instruments { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.member-card {
  position: relative;
  display: flex; flex-direction: column;
  padding: 16px;
  border: 1px solid var(--line);
  background: linear-gradient(165deg, #16161a, #0d0d10);
  overflow: hidden;
  transition: transform .45s var(--ease), border-color .45s var(--ease), box-shadow .45s var(--ease);
}
.member-card::before {
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--member-color);
  transform: scaleX(0); transform-origin: left;
  transition: transform .5s var(--ease);
  content: "";
}
.member-card::after {
  position: absolute; top: -32%; right: -34%;
  width: 82%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, var(--aura-color), transparent 68%);
  opacity: .3; transition: opacity .45s var(--ease), transform .45s var(--ease);
  pointer-events: none;
}
.member-card:hover { transform: translateY(-7px); border-color: var(--line-strong); box-shadow: 0 26px 54px rgba(0, 0, 0, .55); }
.member-card:hover::before { transform: scaleX(1); }
.member-card:hover::after { opacity: .85; transform: scale(1.18); }
.member-num {
  position: absolute; z-index: 0; top: 14px; right: 16px;
  font: 900 46px/.8 var(--font-display); letter-spacing: -.02em;
  color: rgba(244, 241, 238, .055);
  transition: color .45s var(--ease);
  pointer-events: none;
}
.member-card:hover .member-num { color: color-mix(in srgb, var(--member-color) 34%, transparent); }
.member-avatar {
  position: relative; z-index: 1;
  width: 100%; aspect-ratio: 1; object-fit: cover;
  filter: saturate(.82) contrast(1.02);
  transition: filter .45s var(--ease), transform .6s var(--ease);
}
.member-card:hover .member-avatar { filter: saturate(1.12) contrast(1.06); transform: scale(1.045); }
.member-meta { position: relative; z-index: 1; margin-top: 15px; }
.member-name { font: 700 27px/1 var(--font-display); letter-spacing: .01em; }
.member-role { display: block; margin-top: 5px; color: var(--muted); font-size: 13px; letter-spacing: .03em; }

/* Per-member signature colors (kept from original identity) */
[data-number="01"] { --member-color: #ff4d4d; --aura-color: rgba(255, 77, 77, .5); }
[data-number="02"] { --member-color: #ff99cc; --aura-color: rgba(255, 153, 204, .5); }
[data-number="03"] { --member-color: #4dffdb; --aura-color: rgba(77, 255, 219, .5); }
[data-number="04"] { --member-color: #ffcc00; --aura-color: rgba(255, 204, 0, .5); }
[data-number="05"] { --member-color: #99ff33; --aura-color: rgba(153, 255, 51, .5); }
[data-number="06"] { --member-color: #ff6600; --aura-color: rgba(255, 102, 0, .5); }
[data-number="07"] { --member-color: #cc66ff; --aura-color: rgba(204, 102, 255, .5); }
[data-number="08"] { --member-color: #3399ff; --aura-color: rgba(51, 153, 255, .5); }
[data-number="09"] { --member-color: #ffffff; --aura-color: rgba(255, 255, 255, .45); }

/* ---------- CLOSING / CONTACT ---------- */
.closing {
  position: relative;
  min-height: 94svh;
  display: flex; align-items: center;
  overflow: hidden;
  isolation: isolate;
  background: var(--ink);
}
.closing-bg {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover; object-position: center 46%;
  animation: kenburns 34s var(--ease) infinite alternate;
}
.closing-scrim {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(62% 52% at 50% 54%, rgba(7,7,8,.6), transparent 72%),
    linear-gradient(0deg, rgba(7,7,8,.94) 0%, rgba(7,7,8,.5) 46%, rgba(7,7,8,.72) 100%),
    linear-gradient(90deg, rgba(7,7,8,.6), rgba(7,7,8,.28));
}
.closing-grain {
  position: absolute; inset: 0; z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: .05; mix-blend-mode: overlay; pointer-events: none;
}
.closing-inner { position: relative; z-index: 1; text-align: center; }
.closing h2 {
  font: 900 clamp(3.4rem, 13vw, 9rem)/.82 var(--font-display);
  letter-spacing: -.01em;
  text-shadow: 0 4px 44px rgba(0, 0, 0, .55);
}
.closing h2 span { color: var(--red); display: block; }
.closing p { margin: 22px auto 40px; max-width: 460px; color: var(--paper-dim); font-size: 19px; line-height: 1.7; text-shadow: 0 2px 16px rgba(0, 0, 0, .7); }
.closing-area { margin: -24px auto 34px; color: var(--muted); font-size: 15px; }

/* ---------- Footer ---------- */
.site-footer { padding: 44px 0 34px; border-top: 1px solid var(--line); background: var(--ink); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-brand { display: inline-flex; align-items: center; gap: 11px; color: var(--paper); font: 700 15px/1 var(--font-display); letter-spacing: .12em; }
.footer-brand img { width: 30px; height: 30px; object-fit: contain; filter: drop-shadow(0 0 8px rgba(242,41,62,.4)); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 26px; }
.footer-nav a { color: var(--muted); font-size: 13px; transition: color .25s var(--ease); }
.footer-nav a:hover { color: var(--paper); }
.back-top { color: var(--muted); font-size: 13px; transition: color .25s var(--ease), transform .25s var(--ease); display: inline-block; }
.back-top:hover { color: var(--paper); transform: translateY(-2px); }
.copyright { margin-top: 26px; color: var(--muted-2); font: 600 11px/1 var(--font-display); letter-spacing: .14em; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .85s var(--ease), transform .85s var(--ease); will-change: opacity, transform; }
.reveal.in-view { opacity: 1; transform: none; }
.member-grid .member-card { opacity: 0; transform: translateY(22px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.member-grid.in-view .member-card { opacity: 1; transform: none; }
.member-grid.in-view .member-card:nth-child(1) { transition-delay: .04s; }
.member-grid.in-view .member-card:nth-child(2) { transition-delay: .1s; }
.member-grid.in-view .member-card:nth-child(3) { transition-delay: .16s; }
.member-grid.in-view .member-card:nth-child(4) { transition-delay: .22s; }
.member-grid.in-view .member-card:nth-child(5) { transition-delay: .28s; }
.member-grid.in-view .member-card:nth-child(6) { transition-delay: .34s; }
.member-grid.in-view .member-card:nth-child(7) { transition-delay: .4s; }
.member-grid.in-view .member-card:nth-child(8) { transition-delay: .46s; }
.member-grid.in-view .member-card:nth-child(9) { transition-delay: .52s; }

/* ---------- Keyframes ---------- */
@keyframes brand-glow {
  0%, 100% { filter: drop-shadow(0 0 10px rgba(242, 41, 62, .5)); }
  50% { filter: drop-shadow(0 0 20px rgba(242, 41, 62, .9)); }
}
@keyframes kenburns { from { transform: scale(1.03); } to { transform: scale(1.13); } }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .about-feature { grid-template-columns: 1fr; gap: 34px; }
  .about-visual { order: -1; }
  .member-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .member-grid.instruments { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  :root { --header-h: 66px; }
  .menu-toggle { display: inline-grid; }
  .nav-links {
    position: absolute; top: 66px; right: var(--gutter); left: var(--gutter);
    display: none; flex-direction: column; align-items: stretch; gap: 0;
    padding: 10px 18px;
    border: 1px solid var(--line-strong);
    background: rgba(10, 10, 13, .98);
  }
  .nav-links.open { display: flex; }
  .nav-links a { display: block; padding: 14px 0; font-size: 16px; }
  .nav-contact { margin: 8px 0 4px; padding: 13px; }
  .hero { min-height: 96svh; }
  .hero-title { font-size: clamp(3.6rem, 20vw, 7rem); }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .hero-actions .button { justify-content: space-between; }
  .hero-index { display: none; }
  .members-head { flex-direction: column; align-items: flex-start; gap: 14px; }
  .member-grid, .member-grid.instruments { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
  .stat-row { grid-template-columns: 1fr; }
  .stat { border-right: none; border-bottom: 1px solid var(--line); padding: 18px 0; }
  .stat:last-child { border-bottom: none; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 400px) {
  .member-grid, .member-grid.instruments { grid-template-columns: 1fr; }
  .member-name { font-size: 24px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal, .member-grid .member-card { opacity: 1; transform: none; }
  .hero-bg, .closing-bg { animation: none; transform: scale(1.04); }
  .ticker-track { animation: none; }
  .hero-copy > * { opacity: 1; transform: none; animation: none; }
  .hero-index { opacity: 1; animation: none; }
}

/* ============================================================
   GALLERY — video grid + photo masonry + lightbox
   Explore surface: browse, filter, zoom/peek.
   ============================================================ */

/* Section head (shared by videos + photos) */
.gallery-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 28px;
  margin-bottom: 34px;
}
.gallery-head h2 {
  margin-top: 14px;
  font: 800 clamp(2.2rem, 5vw, 3.4rem)/.95 var(--font-display);
  letter-spacing: -.01em;
}
.gallery-head > p { max-width: 340px; color: var(--muted); font-size: 15px; line-height: 1.8; }

/* ---------- Video grid ---------- */
.video-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.video-card {
  position: relative; margin: 0;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line); overflow: hidden;
  background: var(--panel);
  cursor: pointer;
  transition: transform .45s var(--ease), border-color .45s var(--ease), box-shadow .45s var(--ease);
}
.video-card-featured { grid-column: 1 / -1; }
.video-card img {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(.9) contrast(1.02);
  transition: transform .8s var(--ease), filter .45s var(--ease);
}
.video-card:hover { border-color: var(--line-strong); box-shadow: 0 26px 54px rgba(0, 0, 0, .55); }
.video-card:hover img { transform: scale(1.035); filter: saturate(1.05); }
.video-play {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 74px; height: 74px; border-radius: 50%;
  display: grid; place-items: center; padding-left: 5px;
  border: 1px solid rgba(244, 241, 238, .4);
  background: rgba(7, 7, 8, .55);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  color: var(--paper); font-size: 22px; line-height: 1;
  transition: transform .35s var(--ease), border-color .35s var(--ease), background .35s var(--ease);
}
.video-card:hover .video-play, .video-card:focus-visible .video-play {
  transform: translate(-50%, -50%) scale(1.1);
  border-color: var(--red); background: var(--red);
}
.video-dur {
  position: absolute; top: 14px; right: 14px;
  padding: 6px 10px;
  border: 1px solid var(--line-strong);
  background: rgba(7, 7, 8, .6);
  color: var(--paper);
  font: 700 12px/1 var(--font-display); letter-spacing: .12em;
}
.video-card figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; align-items: baseline; gap: 10px;
  padding: 40px 18px 16px;
  background: linear-gradient(0deg, rgba(7, 7, 8, .85), transparent);
  color: var(--paper);
  font: 700 15px/1 var(--font-display); letter-spacing: .14em;
}
.video-num { color: var(--red-hot); font-weight: 900; font-size: 20px; }

/* ---------- Photo masonry ---------- */
.photo-masonry { columns: 3; column-gap: 14px; }
.photo-cell {
  position: relative;
  margin: 0 0 14px;
  break-inside: avoid;
  border: 1px solid var(--line); overflow: hidden;
  background: var(--panel);
  cursor: zoom-in;
}
.photo-cell[hidden] { display: none; }
.photo-cell img {
  width: 100%; display: block;
  transition: transform .7s var(--ease), filter .45s var(--ease);
}
/* Loading shimmer while a lazy image is still fetching (data-src not yet swapped) */
.photo-cell img.lazy, .video-card img.lazy {
  background: linear-gradient(100deg, var(--panel) 38%, var(--panel-2) 50%, var(--panel) 62%);
  background-size: 220% 100%;
  animation: lazy-shimmer 1.5s var(--ease) infinite;
}
@keyframes lazy-shimmer {
  from { background-position: 130% 0; }
  to   { background-position: -90% 0; }
}
@media (prefers-reduced-motion: reduce) {
  .photo-cell img.lazy, .video-card img.lazy { animation: none; background: var(--panel-2); }
}
.photo-cell:hover img { transform: scale(1.04); }
.photo-live {
  position: absolute; top: 12px; right: 12px;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 10px;
  border: 1px solid var(--line-strong);
  background: rgba(7, 7, 8, .6);
  color: var(--paper);
  font: 700 10.5px/1 var(--font-display); letter-spacing: .16em;
}
.photo-live i { width: 6px; height: 6px; border-radius: 50%; background: var(--red); box-shadow: 0 0 8px var(--red); }
.live-vid { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 90;
  display: grid; place-items: center;
  background: rgba(7, 7, 8, .94);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.lightbox[hidden] { display: none; }
.lb-stage {
  max-width: min(1100px, 92vw); max-height: 82vh;
  display: grid; place-items: center;
}
.lb-stage img, .lb-stage video {
  max-width: 100%; max-height: 82vh; display: block;
  border: 1px solid var(--line);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
}
.lb-close {
  position: absolute; top: 18px; right: 18px;
  width: 48px; height: 48px;
  border: 1px solid var(--line-strong);
  color: var(--paper); font: 700 24px/1 var(--font-display);
  transition: border-color .25s var(--ease), background .25s var(--ease);
}
.lb-close:hover { border-color: var(--red); background: var(--red); }
.lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 52px; height: 52px;
  border: 1px solid var(--line-strong);
  background: rgba(7, 7, 8, .5);
  color: var(--paper); font: 700 20px/1 var(--font-display);
  transition: border-color .25s var(--ease), background .25s var(--ease);
}
.lb-nav:hover { border-color: var(--red); background: var(--red); }
.lb-prev { left: 18px; }
.lb-next { right: 18px; }
.lb-bar {
  position: absolute; bottom: 18px; left: 0; right: 0;
  display: flex; justify-content: center; gap: 18px;
  color: var(--muted);
  font: 700 12px/1 var(--font-display); letter-spacing: .18em;
}
.lb-count { color: var(--red-hot); }

/* ---------- Gallery responsive ---------- */
@media (max-width: 980px) {
  .photo-masonry { columns: 2; }
  .video-grid { grid-template-columns: 1fr; }
  .video-card-featured { grid-column: auto; }
  .gallery-head { flex-direction: column; align-items: flex-start; gap: 14px; }
}
@media (max-width: 400px) {
  .photo-masonry { columns: 1; }
  .lb-nav { width: 44px; height: 44px; }
  .lb-prev { left: 8px; }
  .lb-next { right: 8px; }
}

/* ---------- Gallery reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .photo-cell img, .video-card img, .video-play { transition: none; }
}

/* ============================================================
   GALLERY v2 — hero collage + stats, section numbers,
   marquee divider, sticky filters, hover glow.
   ============================================================ */

/* ---------- Hero: copy + stats | postcard collage ---------- */
.gallery-hero .hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.hero-stats {
  display: flex; flex-wrap: wrap;
  list-style: none; margin: 34px 0 0; padding: 0;
  border-top: 1px solid var(--line);
}
.hero-stats li {
  display: flex; flex-direction: column; gap: 6px;
  padding: 18px 26px 0 0; margin-right: 26px;
  border-right: 1px solid var(--line);
}
.hero-stats li:last-child { border-right: 0; margin-right: 0; }
.hero-stats b {
  font: 800 clamp(1.9rem, 3.4vw, 2.7rem)/1 var(--font-display);
  letter-spacing: .02em; color: var(--red-hot);
}
.hero-stats span {
  color: var(--muted); font-size: 12px;
  letter-spacing: .16em; text-transform: uppercase;
}

.hero-collage {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  grid-template-rows: 1fr 1.1fr;
  gap: 16px;
  width: 100%;
  max-width: 560px;
  height: clamp(300px, calc(100svh - 250px), 540px);
  justify-self: end;
}
.postcard {
  margin: 0;
  border: 1px solid var(--line-strong);
  background: var(--panel);
  box-shadow: 0 26px 60px rgba(0, 0, 0, .5);
  overflow: hidden;
  transition: transform .6s var(--ease), border-color .45s var(--ease), box-shadow .45s var(--ease);
}
.postcard img { width: 100%; height: 100%; object-fit: cover; }
.pc-1 { grid-column: 1; grid-row: 1 / 3; transform: rotate(-2.5deg); }
.pc-2 { grid-column: 2; grid-row: 1; transform: rotate(2deg); }
.pc-3 { grid-column: 2; grid-row: 2; transform: rotate(-1.5deg); }
.postcard:hover {
  transform: rotate(0deg) scale(1.025);
  border-color: var(--red);
  box-shadow: 0 30px 70px rgba(0, 0, 0, .6), 0 0 24px rgba(242, 41, 62, .18);
  z-index: 2;
}

/* ---------- Section index numbers ---------- */
.sec-num {
  display: block;
  font: 900 clamp(2.6rem, 6vw, 4.4rem)/1 var(--font-display);
  letter-spacing: .06em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(244, 241, 238, .22);
  margin-bottom: 10px;
}

/* ---------- Marquee divider ---------- */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--ink-2);
  padding: 16px 0;
}
.marquee-track {
  display: flex; width: max-content;
  animation: marquee-scroll 42s linear infinite;
}
.marquee-track span {
  white-space: nowrap;
  font: 800 clamp(1.3rem, 2.4vw, 1.9rem)/1 var(--font-display);
  letter-spacing: .2em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(244, 241, 238, .3);
}
@keyframes marquee-scroll { to { transform: translateX(-50%); } }

/* ---------- Sticky filter bar (photos) ---------- */
.gallery-photos .filters {
  position: sticky;
  top: calc(var(--header-h) + 12px);
  z-index: 40;
  align-items: center;
  margin: 0 0 26px;
  padding: 10px;
  border: 1px solid var(--line-strong);
  background: rgba(11, 11, 14, .94);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
}
.filter-count {
  margin-left: auto;
  padding-left: 14px;
  color: var(--muted);
  font: 600 12.5px/1.4 var(--font-body);
  white-space: nowrap;
}
.filter-count b { color: var(--red-hot); font-weight: 700; }
#photo-grid.filtering { animation: grid-fade .45s var(--ease); }
@keyframes grid-fade { from { opacity: .35; } to { opacity: 1; } }
@media (max-width: 560px) {
  .filter-count { margin-left: 0; width: 100%; padding: 8px 2px 0; }
}

/* ---------- Photo cell hover glow ---------- */
.photo-cell { transition: border-color .45s var(--ease), box-shadow .45s var(--ease); }
.photo-cell:hover {
  border-color: var(--red);
  box-shadow: 0 18px 44px rgba(242, 41, 62, .14);
}

/* ---------- Gallery v2 responsive ---------- */
@media (max-width: 980px) {
  .gallery-hero .hero-grid { grid-template-columns: 1fr; }
  .hero-collage { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
  .postcard { transition: none; transform: none; }
  .photo-cell { transition: none; }
  #photo-grid.filtering { animation: none; }
}

/* ============================================================
   GALLERY v3 — cinematic elevation
   Ken Burns hero + REC accent + film grain, featured video,
   staggered masonry reveal, LIVE pulse, hover zoom hint,
   lightbox open animation.
   Scoped to gallery classes; reuses existing tokens/keyframes.
   ============================================================ */

/* ---------- Hero: cinematic depth ---------- */
.gallery-hero { position: relative; overflow: hidden; }
.gallery-hero::before { /* vignette + red bloom */
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(120% 90% at 80% 14%, rgba(242, 41, 62, .10), transparent 55%),
    radial-gradient(150% 120% at 50% 125%, rgba(0, 0, 0, .55), transparent 62%);
}
.gallery-hero::after { /* film grain */
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  opacity: .05; mix-blend-mode: overlay;
}
.gallery-hero .hero-grid { position: relative; z-index: 1; }
/* Ken Burns breathing on the postcards (staggered, reuses kenburns keyframe) */
.gallery-hero .postcard img { animation: kenburns 18s var(--ease) infinite alternate; }
.gallery-hero .pc-1 img { animation-delay: -3s; }
.gallery-hero .pc-2 img { animation-delay: -8s; }
.gallery-hero .pc-3 img { animation-delay: -13s; }
/* REC accent on the kicker */
.gallery-hero .kicker { position: relative; padding-left: 24px; }
.gallery-hero .kicker::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--red); box-shadow: 0 0 10px var(--red);
  animation: rec-pulse 1.6s var(--ease) infinite;
}
@keyframes rec-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }

/* ---------- Videos: featured cinematic ---------- */
.video-card-featured { border-color: var(--line-strong); }
.video-card-featured::before { /* red top accent line */
  content: ""; position: absolute; left: 0; top: 0; right: 0; height: 2px; z-index: 3;
  background: linear-gradient(90deg, var(--red), transparent 72%);
}
.video-card-featured::after { /* FEATURED tag */
  content: "FEATURED"; position: absolute; left: 14px; top: 14px; z-index: 3;
  padding: 5px 9px; border: 1px solid var(--red);
  background: rgba(7, 7, 8, .6);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  color: var(--red-hot); font: 800 10px/1 var(--font-display); letter-spacing: .2em;
}
.video-card-featured img { animation: kenburns 26s var(--ease) infinite alternate; }

/* ---------- Masonry: staggered reveal + LIVE pulse + hover hint ---------- */
.gallery-photos .photo-cell { opacity: 0; }
.gallery-photos.in-view .photo-cell {
  animation: cell-in .55s var(--ease) both;
  animation-delay: var(--d, 0s);
}
@keyframes cell-in {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}
.photo-live i { animation: live-pulse 1.4s var(--ease) infinite; }
@keyframes live-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.7); opacity: .5; }
}
/* hover zoom hint (bottom-left) */
.photo-cell::after {
  content: "ขยาย"; position: absolute; left: 12px; bottom: 12px; z-index: 2;
  padding: 6px 10px; border: 1px solid var(--line-strong);
  background: rgba(7, 7, 8, .72);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  color: var(--paper); font: 700 11px/1 var(--font-display); letter-spacing: .14em;
  opacity: 0; transform: translateY(6px);
  transition: opacity .35s var(--ease), transform .35s var(--ease);
  pointer-events: none;
}
.photo-cell:hover::after, .photo-cell:focus-visible::after { opacity: 1; transform: none; }

/* ---------- Lightbox: open animation ---------- */
.lightbox { opacity: 0; transition: opacity .3s var(--ease); }
.lightbox.open { opacity: 1; }
.lightbox .lb-stage { transition: transform .4s var(--ease); transform: scale(.96); }
.lightbox.open .lb-stage { transform: none; }

/* ---------- Gallery v3 responsive + reduced motion ---------- */
@media (max-width: 980px) {
  .video-card-featured::after { left: 10px; top: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .gallery-hero .postcard img, .video-card-featured img { animation: none; }
  .gallery-hero .kicker::before, .photo-live i { animation: none; }
  .gallery-photos .photo-cell { opacity: 1; animation: none; }
  .lightbox, .lightbox .lb-stage { transition: none; transform: none; opacity: 1; }
}
