/* ═══ HOME - Noir Atelier ═══ */

/* ── Hero ──────────────────────────────────────────────────── */
.hero-noir { padding: clamp(3rem, 7vw, 6rem) 1.25rem 2.5rem; }
.hero-noir-inner {
 max-width: 1200px; margin: 0 auto;
 display: grid; grid-template-columns: 1.25fr 0.75fr;
 gap: clamp(2rem, 5vw, 5rem); align-items: center;
}
.hero-noir-text { animation: heroRise 0.9s cubic-bezier(0.22, 1, 0.36, 1) both; }
.hero-noir-title {
 font-size: clamp(2.6rem, 6vw, 4.6rem);
 font-weight: 560;
 margin: 1.4rem 0 1.2rem;
 line-height: 1.04;
}
.hero-noir-title em { font-weight: 440; }
.hero-noir-sub {
 font-size: 1.08rem; color: var(--text-secondary);
 max-width: 52ch; margin-bottom: 2rem;
}
.hero-noir-cta { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; margin-bottom: 2.6rem; }

.btn-noir-primary {
 display: inline-flex; align-items: center; justify-content: center;
 padding: 0.95rem 2.2rem;
 background: var(--crimson); color: #fff;
 font-weight: 700; font-size: 0.85rem;
 letter-spacing: 0.14em; text-transform: uppercase;
 border-radius: var(--radius);
 position: relative; overflow: hidden;
 transition: all 0.25s ease;
}
.btn-noir-primary::after {
 content: ''; position: absolute; inset: 0;
 background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.18) 50%, transparent 60%);
 transform: translateX(-120%);
 transition: transform 0.55s ease;
}
.btn-noir-primary:hover { color: #fff; background: var(--crimson-hot); transform: translateY(-2px); box-shadow: 0 14px 34px -12px rgba(196, 31, 62, 0.7); }
.btn-noir-primary:hover::after { transform: translateX(120%); }
.btn-noir-lg { padding: 1.1rem 2.8rem; font-size: 0.92rem; }

.btn-noir-ghost {
 display: inline-flex; align-items: center; justify-content: center;
 padding: 0.95rem 1.9rem;
 background: transparent; color: var(--ivory);
 font-weight: 600; font-size: 0.85rem;
 letter-spacing: 0.14em; text-transform: uppercase;
 border: 1px solid var(--gold-dim); border-radius: var(--radius);
 transition: all 0.25s ease;
}
.btn-noir-ghost:hover { border-color: var(--gold); color: var(--gold); background: var(--gold-faint); }

.hero-noir-proof { display: flex; align-items: center; gap: 1.4rem; }
.proof-item { display: flex; flex-direction: column; }
.proof-item strong {
 font-family: var(--font-display); font-size: 1.7rem; font-weight: 600;
 color: var(--ivory); line-height: 1.1;
}
.proof-item span {
 font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase;
 color: var(--text-muted); margin-top: 0.15rem;
}
.proof-sep { width: 1px; height: 2.4rem; background: var(--gold-dim); }

/* portrait video frame */
.hero-noir-media {
 display: flex; justify-content: center;
 animation: heroRise 0.9s 0.15s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.hero-frame {
 position: relative;
 width: min(320px, 78vw);
 border: 1px solid var(--gold-dim);
 padding: 10px;
 background: rgba(17, 12, 14, 0.6);
 box-shadow: var(--shadow-deep), 0 0 90px -30px rgba(196, 31, 62, 0.45);
 transform: rotate(1.6deg);
 transition: transform 0.45s ease;
}
.hero-frame:hover { transform: rotate(0deg); }
.hero-frame video { display: block; width: 100%; aspect-ratio: 9/16; object-fit: cover; filter: saturate(0.92) contrast(1.04); }
.hero-frame-ticks { position: absolute; inset: -1px; pointer-events: none; }
.hero-frame-ticks::before, .hero-frame-ticks::after { content: ''; position: absolute; width: 22px; height: 22px; }
.hero-frame-ticks::before { top: -7px; left: -7px; border-top: 2px solid var(--gold); border-left: 2px solid var(--gold); }
.hero-frame-ticks::after { bottom: -7px; right: -7px; border-bottom: 2px solid var(--gold); border-right: 2px solid var(--gold); }
.hero-frame-caption {
 margin-top: 0.7rem; text-align: center;
 font-family: var(--font-display); font-style: italic;
 font-size: 0.82rem; color: var(--text-muted);
}

@keyframes heroRise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }

/* ── Ticker ────────────────────────────────────────────────── */
.noir-ticker {
 border-top: var(--hairline); border-bottom: var(--hairline);
 overflow: hidden; padding: 0.85rem 0;
 background: rgba(17, 12, 14, 0.45);
}
.noir-ticker-track {
 display: flex; align-items: center;
 width: max-content;
 animation: tickerScroll 36s linear infinite;
}
/* each group is one full copy of the list and carries its own internal
 spacing, so translating the track by exactly -50% loops seamlessly */
.noir-ticker-group { display: flex; align-items: center; gap: 2.2rem; padding-right: 2.2rem; flex-shrink: 0; }
.noir-ticker-group span {
 font-family: var(--font-display); font-style: italic;
 font-size: 1rem; color: var(--text-secondary); white-space: nowrap;
}
.noir-ticker-group i { color: var(--gold); font-style: normal; font-size: 0.7rem; }
@keyframes tickerScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ── Section heads ─────────────────────────────────────────── */
.home-section { padding: clamp(3.5rem, 7vw, 5.5rem) 0; position: relative; }
.section-head { display: flex; align-items: baseline; gap: 1.4rem; margin-bottom: 2.2rem; flex-wrap: wrap; }
.section-no { font-family: var(--font-display); font-style: italic; color: var(--gold); font-size: 0.95rem; }
.section-head h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
.section-head-link {
 margin-left: auto; font-size: 0.78rem; font-weight: 600;
 letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-muted);
}
.section-head-link:hover { color: var(--gold); }

/* ── Games rail (SSR cards) ────────────────────────────────── */
.games-scroll-wrapper { position: relative; }
.games-scroll {
 display: flex; gap: 1.4rem; overflow-x: auto;
 padding: 0.5rem 0.25rem 1.4rem;
 scroll-snap-type: x mandatory;
}
.games-scroll::-webkit-scrollbar { height: 4px; }
.games-scroll::-webkit-scrollbar-thumb { background: var(--gold-dim); }
.games-scroll-fade-left, .games-scroll-fade-right {
 position: absolute; top: 0; bottom: 1.4rem; width: 48px; pointer-events: none; z-index: 2;
}
.games-scroll-fade-left { left: 0; background: linear-gradient(90deg, var(--bg-primary), transparent); }
.games-scroll-fade-right { right: 0; background: linear-gradient(-90deg, var(--bg-primary), transparent); }

.game-card-home {
 flex: 0 0 300px; scroll-snap-align: start;
 background: var(--bg-card);
 border: 1px solid var(--border-color);
 border-radius: var(--radius);
 overflow: hidden; color: inherit; text-decoration: none;
 transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.game-card-home:hover {
 transform: translateY(-6px);
 border-color: var(--gold-dim);
 box-shadow: var(--shadow-deep);
 color: inherit;
}
.game-card-home .card-img { position: relative; aspect-ratio: 460/215; overflow: hidden; background: #000; }
.game-card-home .card-img img {
 width: 100%; height: 100%; object-fit: cover;
 filter: saturate(0.85);
 transition: filter 0.4s ease, transform 0.6s ease;
}
.game-card-home:hover .card-img img { filter: saturate(1.05); transform: scale(1.045); }
.game-card-home .card-body { padding: 1.1rem 1.2rem 1.3rem; }
.game-card-home .card-body h3 { font-size: 1.18rem; margin-bottom: 0.4rem; transition: color 0.3s; }
.game-card-home:hover .card-body h3 { color: var(--gold); }
.game-card-home .card-body p {
 font-size: 0.86rem; color: var(--text-secondary); line-height: 1.55;
 display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.no-games-msg { color: var(--text-muted); text-align: center; width: 100%; padding: 2rem; }
.game-card-platforms { display: flex; gap: 0.5rem; margin-top: 0.75rem; }
.platform-icon-small { width: 16px; height: 16px; color: var(--text-muted); }

/* ── Atelier ───────────────────────────────────────────────── */
.atelier-section { border-top: var(--hairline); }
.atelier-inner {
 display: grid; grid-template-columns: 0.8fr 1.2fr;
 gap: clamp(2rem, 5vw, 5rem); align-items: center;
}
.atelier-photo { position: relative; }
.atelier-photo img {
 display: block; width: 100%; max-width: 380px;
 border: 1px solid var(--gold-dim); padding: 9px;
 background: rgba(17, 12, 14, 0.6);
 filter: saturate(0.9);
 transform: rotate(-1.4deg);
 transition: transform 0.45s ease, filter 0.45s ease;
}
.atelier-photo:hover img { transform: rotate(0); filter: saturate(1); }
.atelier-photo-caption {
 margin-top: 0.8rem; font-family: var(--font-display); font-style: italic;
 font-size: 0.85rem; color: var(--text-muted);
}
.atelier-text h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin: 0.9rem 0 1.1rem; }
.atelier-text p { color: var(--text-secondary); max-width: 56ch; margin-bottom: 1.8rem; }
.atelier-links { display: flex; gap: 1.4rem; align-items: center; flex-wrap: wrap; }
.atelier-text-link { font-size: 0.82rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); }
.atelier-text-link:hover { color: var(--crimson-hot); }

/* ── Membership ────────────────────────────────────────────── */
.membership-section { padding-bottom: 6rem; }
.membership-card {
 position: relative;
 max-width: 760px; margin: 0 auto;
 text-align: center;
 border: 1px solid var(--gold-dim);
 padding: clamp(2.5rem, 6vw, 4rem) clamp(1.5rem, 5vw, 4rem);
 background:
 radial-gradient(ellipse 90% 120% at 50% -20%, rgba(196, 31, 62, 0.14), transparent 55%),
 rgba(17, 12, 14, 0.65);
}
.membership-card::before, .membership-card::after { content: ''; position: absolute; width: 26px; height: 26px; }
.membership-card::before { top: -1px; left: -1px; border-top: 2px solid var(--gold); border-left: 2px solid var(--gold); }
.membership-card::after { bottom: -1px; right: -1px; border-bottom: 2px solid var(--gold); border-right: 2px solid var(--gold); }
.membership-card h2 { font-size: clamp(2rem, 4.5vw, 3rem); margin: 1rem 0 1.1rem; }
.membership-card > p { color: var(--text-secondary); max-width: 52ch; margin: 0 auto 2rem; }
.membership-card > p strong { color: var(--ivory); }
.membership-note { margin-top: 1.1rem; font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-muted); }

/* ── Footer ────────────────────────────────────────────────── */
.footer-home { padding: 2.6rem 0; text-align: center; }
.footer-home p { color: var(--text-muted); font-size: 0.85rem; }

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 900px) {
 /* stacked layout: center every section's content */
 .hero-noir-inner { grid-template-columns: 1fr; }
 .hero-noir-media { order: -1; }
 .hero-frame { width: min(240px, 68vw); }
 .hero-noir-text { text-align: center; display: flex; flex-direction: column; align-items: center; }
 .hero-noir-sub { margin-left: auto; margin-right: auto; }
 .hero-noir-cta { justify-content: center; }
 .hero-noir-proof { justify-content: center; }
 .proof-item { align-items: center; }
 .section-head { justify-content: center; text-align: center; }
 .section-head-link { margin-left: 0; flex-basis: 100%; }
 .atelier-inner { grid-template-columns: 1fr; }
 .atelier-photo { display: flex; flex-direction: column; align-items: center; text-align: center; }
 .atelier-text { text-align: center; display: flex; flex-direction: column; align-items: center; }
 .atelier-text p { margin-left: auto; margin-right: auto; }
 .atelier-links { justify-content: center; }
}
@media (max-width: 560px) {
 .hero-noir { padding-top: 1.6rem; }
 .hero-noir-title { font-size: 2.3rem; }
 .hero-noir-cta { width: 100%; }
 .hero-noir-cta .btn-noir-primary, .hero-noir-cta .btn-noir-ghost { width: 100%; }
 .proof-item strong { font-size: 1.35rem; }
 .game-card-home { flex-basis: 260px; }
}
@media (prefers-reduced-motion: reduce) {
 .noir-ticker-track { animation: none; }
}


