/* === HOMEPAGE === */

.home-shell {
    max-width: 1200px;
    margin: 32px auto 64px;
    padding: 0 24px;
    box-sizing: border-box;
    position: relative;
}

.home-shell > * + * { margin-top: 28px; }

.home-section {
    padding: 0;
    position: relative;
}

/* Per-section slabs — each major homepage section sits on its own dense surface
   so text reads cleanly while the photo background still shows between sections. */
.home-hero.page-slab { padding: 64px 56px 72px; }
.home-section.page-slab { padding: 64px 56px; }

@media (max-width: 760px) {
    .home-shell { margin: 12px auto 24px; padding: 0 8px; }
    .home-shell > * + * { margin-top: 14px; }
    .home-hero.page-slab { padding: 24px 18px 32px; }
    .home-section.page-slab { padding: 28px 18px; }
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.20em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.78);
    padding: 7px 16px 7px 12px;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-pill);
    background: var(--surface-1);
    backdrop-filter: blur(10px);
}

.eyebrow::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--color-accent-gold);
    box-shadow: 0 0 12px var(--color-accent-gold);
}

.section-head {
    margin: 0 0 40px;
    max-width: 760px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
}

.section-head h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 3.4vw + 0.4rem, 3.6rem);
    line-height: 1.0;
    letter-spacing: -0.025em;
    color: white;
    margin: 0;
    font-weight: 700;
    font-variation-settings: "wdth" 110;
}

.section-head h2 em {
    font-style: italic;
    font-weight: 500;
    background: linear-gradient(110deg, var(--color-accent-amber) 0%, var(--color-accent-gold) 50%, var(--color-accent-magenta) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-head p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.78);
    max-width: 640px;
    line-height: 1.55;
    margin: 0;
}

/* Button styles (.btn, .btn--ghost) live in shared.css so every page picks
   them up — services / faq / 404 / contact all use them and don't load this
   stylesheet. */

/* === HERO === */
.home-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 64px;
    align-items: center;
    padding: 56px 0 80px;
    position: relative;
}

.home-hero::before {
    content: "";
    position: absolute;
    inset: -20% -20% -10%;
    background:
        radial-gradient(60% 50% at 18% 28%, rgba(90, 100, 179, 0.55) 0%, transparent 60%),
        radial-gradient(40% 40% at 88% 78%, rgba(255, 184, 107, 0.30) 0%, transparent 70%),
        radial-gradient(38% 38% at 78% 12%, rgba(255, 93, 143, 0.22) 0%, transparent 70%);
    filter: blur(30px);
    z-index: -1;
    pointer-events: none;
    opacity: 0.95;
    animation: hero-mesh 18s ease-in-out infinite alternate;
}

@keyframes hero-mesh {
    0% { transform: translate3d(0, 0, 0) scale(1); }
    100% { transform: translate3d(2%, -3%, 0) scale(1.05); }
}

.hero-copy h1 {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 2.3vw + 0.5rem, 2.85rem);
    line-height: 1.08;
    letter-spacing: -0.02em;
    margin: 18px 0 20px;
    font-weight: 700;
    color: white;
    font-variation-settings: "wdth" 100, "opsz" 72;
}

.hero-copy h1 em {
    font-style: italic;
    font-weight: 500;
    background: linear-gradient(110deg, var(--color-accent-amber) 0%, var(--color-accent-gold) 45%, var(--color-accent-magenta) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    padding-right: 0.05em;
}

.hero-copy .lede {
    font-size: clamp(1.05rem, 1vw + 0.75rem, 1.3rem);
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.84);
    max-width: 580px;
    margin: 0 0 36px;
}

.hero-copy .lede strong {
    color: white;
    font-weight: 700;
}

.hero-ctas {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.hero-marquee {
    margin-top: 48px;
    display: flex;
    align-items: center;
    gap: 24px;
    color: rgba(255, 255, 255, 0.55);
    font-family: var(--font-body);
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.hero-marquee .line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--border-strong), transparent);
}

.hero-marquee strong {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 600;
}

/* Hero art */
.hero-art {
    position: relative;
    aspect-ratio: 9 / 16;
    width: 100%;
    max-width: 360px;
    justify-self: end;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-strong);
    border: 1px solid var(--border-strong);
    isolation: isolate;
}

.hero-art-stack {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hero-art-stack img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0;
    will-change: opacity, transform;
    animation: hero-stack-slide 30s cubic-bezier(0.65, 0.05, 0.35, 1) infinite;
    transform: translateX(100%);
}

/* 10 shots, 3s each in a 30s loop. Each image slides in from the right,
   holds, then slides out to the left while the next one comes in. */
.hero-art-stack img:nth-child(1)  { animation-delay:  0s; }
.hero-art-stack img:nth-child(2)  { animation-delay:  3s; }
.hero-art-stack img:nth-child(3)  { animation-delay:  6s; }
.hero-art-stack img:nth-child(4)  { animation-delay:  9s; }
.hero-art-stack img:nth-child(5)  { animation-delay: 12s; }
.hero-art-stack img:nth-child(6)  { animation-delay: 15s; }
.hero-art-stack img:nth-child(7)  { animation-delay: 18s; }
.hero-art-stack img:nth-child(8)  { animation-delay: 21s; }
.hero-art-stack img:nth-child(9)  { animation-delay: 24s; }
.hero-art-stack img:nth-child(10) { animation-delay: 27s; }

@keyframes hero-stack-slide {
    0%     { opacity: 1; transform: translateX(100%); }   /* enter from right */
    3%     { opacity: 1; transform: translateX(0); }      /* slid into place */
    9%     { opacity: 1; transform: translateX(0); }      /* held centred */
    11.99% { opacity: 1; transform: translateX(-100%); }  /* slid out left */
    12%    { opacity: 0; transform: translateX(-100%); }  /* hide while still off-left */
    12.01% { opacity: 0; transform: translateX(100%); }   /* invisibly teleport to right */
    100%   { opacity: 0; transform: translateX(100%); }
}

@media (prefers-reduced-motion: reduce) {
    .hero-art-stack img {
        animation: none;
        opacity: 0;
        transform: none;
    }
    .hero-art-stack img:first-child { opacity: 1; }
}

.hero-art::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(13, 14, 31, 0.65) 100%);
    pointer-events: none;
}

.hero-art-tag {
    position: absolute;
    bottom: 18px;
    left: 18px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px 8px 12px;
    border-radius: var(--radius-pill);
    background: rgba(13, 14, 31, 0.78);
    border: 1px solid var(--border-strong);
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.10em;
    color: white;
    text-transform: uppercase;
    backdrop-filter: blur(12px);
}

.hero-art-tag::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 12px #4ade80;
    animation: hero-pulse 1.8s ease-in-out infinite;
}

@keyframes hero-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.55; transform: scale(1.4); }
}

.hero-art-corner {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 2;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(13, 14, 31, 0.7);
    border: 1px solid var(--border-strong);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.7rem;
    text-align: center;
    line-height: 1.05;
    color: var(--color-accent-gold);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* === GAME SHOWCASE === */
.home-game {
    position: relative;
    background:
        radial-gradient(60% 80% at 100% 0%, rgba(255, 184, 107, 0.18), transparent 60%),
        linear-gradient(135deg, rgba(66, 74, 142, 0.45) 0%, rgba(43, 50, 115, 0.30) 60%, transparent 100%),
        var(--slab-bg);
    border: 1px solid var(--slab-border);
    border-radius: var(--radius-lg);
    padding: 56px;
    overflow: hidden;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: var(--shadow-strong);
}

.home-game .game-header {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    gap: 40px;
    align-items: end;
    margin-bottom: 40px;
}

.home-game .game-meta {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 14px;
}

.platforms {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.platforms li {
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 7px 13px;
    background: rgba(13, 14, 31, 0.45);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-pill);
    color: rgba(255, 255, 255, 0.85);
}

.pillars {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.pillar {
    background: rgba(13, 14, 31, 0.45);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-md);
    padding: 22px;
    transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pillar:hover {
    transform: translateY(-6px);
    background: rgba(66, 74, 142, 0.25);
    border-color: var(--border-strong);
}

.pillar .pillar-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-sm);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(66, 74, 142, 0.4), rgba(255, 184, 107, 0.18));
    border: 1px solid var(--border-soft);
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 700;
    color: white;
}

.pillar img {
    width: 100%;
    height: 110px;
    object-fit: contain;
    border-radius: var(--radius-sm);
    margin-bottom: 6px;
    display: block;
    background: rgba(0, 0, 0, 0.25);
    padding: 8px;
    box-sizing: border-box;
}

.pillar h3 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    line-height: 1.1;
    margin: 0;
    color: white;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.pillar p {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.75);
}

/* === SERVICES BENTO === */
.bento {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-auto-rows: minmax(180px, auto);
    gap: 18px;
}

.bento-cell {
    background: var(--surface-2);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-md);
    padding: 28px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 16px;
}

.bento-cell:hover {
    transform: translateY(-4px);
    border-color: var(--border-strong);
    background: var(--surface-3);
}

.bento-cell .num {
    font-family: var(--font-display);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    color: rgba(255, 255, 255, 0.55);
    text-transform: uppercase;
}

.bento-cell h3 {
    font-family: var(--font-display);
    font-size: 1.55rem;
    line-height: 1.05;
    margin: 0 0 10px;
    color: white;
    font-weight: 700;
    letter-spacing: -0.015em;
}

.bento-cell p {
    font-size: 0.95rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.74);
    margin: 0;
}

.bento-cell--lg {
    grid-column: span 4;
    grid-row: span 2;
    background:
        radial-gradient(60% 60% at 85% 15%, rgba(66, 74, 142, 0.65), transparent 60%),
        radial-gradient(40% 40% at 10% 100%, rgba(255, 93, 143, 0.18), transparent 60%),
        linear-gradient(180deg, rgba(43, 50, 115, 0.30), rgba(13, 14, 31, 0.50));
    border-color: var(--border-strong);
}

.bento-cell--lg h3 {
    font-size: clamp(1.85rem, 2.6vw, 2.8rem);
    letter-spacing: -0.02em;
}

.bento-cell--md { grid-column: span 2; }
.bento-cell--sm { grid-column: span 2; }

.bento-cell--accent {
    background:
        linear-gradient(135deg, rgba(255, 184, 107, 0.22), rgba(255, 93, 143, 0.16)),
        rgba(13, 14, 31, 0.5);
    border-color: rgba(255, 184, 107, 0.35);
}

.bento-cell--accent h3 { color: white; }

.checks {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.checks li {
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.82);
    padding-left: 26px;
    position: relative;
    line-height: 1.45;
}

.checks li::before {
    content: "→";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--color-accent-gold);
    font-weight: 700;
}

.bento-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.65);
    align-self: flex-start;
}

.bento-tag::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-accent-mint);
    box-shadow: 0 0 8px var(--color-accent-mint);
}

/* === NEWS STRIP === */
.news-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.news-card {
    background: var(--surface-2);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-md);
    padding: 26px 28px;
    transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    gap: 12px;
    height: 100%;
    box-sizing: border-box;
}

.news-card:hover {
    transform: translateY(-3px);
    border-color: var(--border-strong);
    background: var(--surface-3);
    text-decoration: none;
    color: inherit;
}

.news-card .date {
    font-family: var(--font-body);
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.55);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-weight: 600;
}

.news-card h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    line-height: 1.18;
    margin: 0;
    color: white;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.news-card p {
    font-size: 0.95rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.74);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card .read-more {
    color: var(--color-accent-gold);
    font-size: 0.78rem;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-top: auto;
    display: inline-flex;
    gap: 8px;
    align-items: center;
}

.news-card:hover .read-more .arrow { transform: translateX(4px); }

.news-card .read-more .arrow {
    transition: transform 0.25s ease;
    display: inline-block;
}

.news-foot {
    margin-top: 32px;
    text-align: center;
}

.news-loading,
.news-error {
    grid-column: 1 / -1;
    text-align: center;
    padding: 48px 20px;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.95rem;
    border: 1px dashed var(--border-soft);
    border-radius: var(--radius-md);
}

/* === REVEAL ANIMATION === */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    will-change: opacity, transform;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    .home-hero::before { animation: none; }
    .hero-art-tag::before { animation: none; }
}

/* === RESPONSIVE === */
@media (max-width: 960px) {
    .home-hero {
        grid-template-columns: 1fr;
        gap: 36px;
        padding: 28px 0 56px;
    }

    .hero-art {
        max-width: 320px;
        aspect-ratio: 9 / 16;
        margin: 0 auto;
        transform: none;
    }

    .home-game { padding: 36px; }

    .home-game .game-header {
        grid-template-columns: 1fr;
        gap: 20px;
        align-items: flex-start;
    }

    .home-game .game-meta {
        text-align: left;
        align-items: flex-start;
    }

    .platforms { justify-content: flex-start; }

    .pillars { grid-template-columns: repeat(2, 1fr); }

    .bento { grid-template-columns: repeat(2, 1fr); }

    .bento-cell--lg {
        grid-column: span 2;
        grid-row: auto;
    }

    .bento-cell--md, .bento-cell--sm { grid-column: span 1; }

    .news-grid { grid-template-columns: 1fr; }

    .home-section { padding: 56px 0; }

    .hero-marquee { margin-top: 32px; }
}

@media (max-width: 520px) {
    .home-shell { padding: 0 6px; margin: 10px auto 20px; }
    .home-hero.page-slab { padding: 22px 14px 26px; }
    .home-section.page-slab { padding: 24px 14px; }
    .home-game { padding: 20px 14px; }
    .pillars { grid-template-columns: 1fr; }
    .bento { grid-template-columns: 1fr; }
    .bento-cell--lg, .bento-cell--md, .bento-cell--sm { grid-column: span 1; }
    .home-section { padding: 40px 0; }
    .hero-ctas { flex-direction: column; align-items: stretch; gap: 10px; }
    .hero-ctas .btn { width: 100%; justify-content: center; min-width: 0; }
    .news-card { padding: 22px 22px; }
}
