/* home.css — Home page styles */

/* ─── Hero ───────────────────────────────────────────────── */
.hero {
    position: relative;
    height: 100svh;
    min-height: 560px;
    display: flex;
    align-items: flex-end;
    padding: 0 clamp(20px, 6vw, 100px) clamp(60px, 8vh, 120px);
    overflow: hidden;
}

.hero-media {
    position: absolute;
    inset: 0;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.78) 0%,
        rgba(0, 0, 0, 0.35) 50%,
        rgba(0, 0, 0, 0.15) 100%
    );
}

.hero-body {
    position: relative;
    z-index: 2;
    max-width: 680px;
}

.hero-eyebrow {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 20px;
}

.hero-heading {
    font-family: var(--font-display);
    font-size: clamp(3rem, 7vw, 6.5rem);
    font-weight: 300;
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: #fff;
    margin-bottom: 24px;
}

.hero-heading em {
    font-style: italic;
    font-weight: 300;
}

.hero-sub {
    font-size: clamp(0.9rem, 1.6vw, 1.1rem);
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.6;
    margin-bottom: 36px;
    max-width: 44ch;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.hero-btn-ghost {
    background: transparent;
    color: rgba(255, 255, 255, 0.8);
    border-color: rgba(255, 255, 255, 0.4);
}
.hero-btn-ghost:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.7);
}

.hero-scroll-hint {
    position: absolute;
    bottom: 32px;
    right: clamp(20px, 6vw, 100px);
    z-index: 2;
    color: rgba(255, 255, 255, 0.5);
    animation: bounce 2s ease-in-out infinite;
    transition: color 0.2s;
}
.hero-scroll-hint:hover {
    color: rgba(255, 255, 255, 0.9);
}

@keyframes bounce {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(6px);
    }
}

/* ─── Marquee ────────────────────────────────────────────── */
.marquee-section {
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    overflow: hidden;
    padding: 28px 0;
    background: var(--color-bg-subtle);
}

.marquee-track {
    overflow: hidden;
    mask-image: linear-gradient(
        to right,
        transparent,
        black 10%,
        black 90%,
        transparent
    );
    -webkit-mask-image: linear-gradient(
        to right,
        transparent,
        black 10%,
        black 90%,
        transparent
    );
}

.marquee-inner {
    display: flex;
    width: max-content;
    animation: marquee-scroll 32s linear infinite;
}
.marquee-inner:hover {
    animation-play-state: paused;
}

@keyframes marquee-scroll {
    to {
        transform: translateX(-50%);
    }
}

.marquee-logos {
    display: flex;
    align-items: center;
    gap: 56px;
    padding: 0 28px;
}

.marquee-logo-item {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    min-width: 80px;
    opacity: 0.45;
    transition: opacity 0.2s;
    flex-shrink: 0;
}
.marquee-logo-item:hover {
    opacity: 0.9;
}
.marquee-logo-item img,
.marquee-logo-item svg {
    height: 28px;
    width: auto;
    max-width: 110px;
    object-fit: contain;
}

/* ─── Galaxy Section ─────────────────────────────────────── */
.galaxy-section {
    background: var(--color-bg);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.galaxy-header {
    max-width: 500px;
    margin-bottom: 64px;
}

.galaxy-header h2 {
    margin-bottom: 12px;
}

.galaxy-intro {
    color: var(--color-text-secondary);
    font-size: 1rem;
}

.galaxy-stage-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    overflow: visible;
}

/* ── Galaxy widget (inline — verbatim from brand_galaxy_gallery.html) ── */
:root {
    --center-size: 56px;
    --item-size: 100px;
    --ring-cat: calc(1.05 * var(--item-size));
    --ring-logo: calc(2.1 * var(--item-size));
    --pill-bg: #f4f4f4;
    --pill-bg-active: #111111;
    --pill-color: #111111;
    --pill-color-active: #ffffff;
    --pill-border: rgba(0, 0, 0, 0.08);
    --pill-radius: 40px;
    --pill-font: 8.5px;
    --pill-gap: 3px;
    --logo-bg: #f4f4f4;
    --logo-bg-hover: #e8e8e8;
    --logo-radius: 50%;
    --spin-cat: 60s;
    --spin-logo: 90s;
    --dim-opacity: 0.12;
    --panel-size: 420px;
    --t-dim: 0.35s ease;
    --t-panel: 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.galaxy {
    position: relative;
    width: 560px;
    height: 560px;
    flex-shrink: 0;
}

.orbit-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    /*border: 1px dashed rgba(0,0,0,0.07);*/
}
.orbit-ring.cat {
    width: calc(2 * var(--ring-cat) + var(--item-size));
    height: calc(2 * var(--ring-cat) + var(--item-size));
}
.orbit-ring.logo {
    width: calc(2 * var(--ring-logo) + var(--item-size));
    height: calc(2 * var(--ring-logo) + var(--item-size));
}

.center {
    position: absolute;
    top: 50%;
    left: 50%;
    width: var(--center-size);
    height: var(--center-size);
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.track {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
}
.track.cat-track {
    animation: galaxy-spin var(--spin-cat) linear infinite;
}
.track.logo-track {
    animation: galaxy-spin var(--spin-logo) linear infinite reverse;
}

@keyframes galaxy-spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.cat-item {
    position: absolute;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--pill-gap);
    width: var(--item-size);
    height: var(--item-size);
    background: var(--pill-bg);
    border: 1px solid var(--pill-border);
    border-radius: 50%;
    cursor: pointer;
    transition:
        background 0.2s,
        color 0.2s;
    animation: counter-cat var(--spin-cat) linear infinite;
}
@keyframes counter-cat {
    to {
        transform: translate(-50%, -50%) rotate(-360deg);
    }
}

.cat-item:hover {
    background: #e4e4e4;
}
.cat-item.active {
    background: var(--pill-bg-active);
    border-color: var(--pill-bg-active);
}
.cat-item.active svg {
    stroke: var(--pill-color-active);
}
.cat-item.active span {
    color: var(--pill-color-active);
}

.cat-item svg {
    width: 13px;
    height: 13px;
    stroke: var(--accent, #111);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
    flex-shrink: 0;
    transition: stroke 0.2s;
}
.cat-item span {
    font-size: var(--pill-font);
    font-weight: 500;
    color: var(--pill-color);
    text-align: center;
    line-height: 1.2;
    transition: color 0.2s;
    font-family: var(--font-body);
}

.logo-item {
    position: absolute;
    transform: translate(-50%, -50%);
    width: var(--item-size);
    height: var(--item-size);
    border-radius: var(--logo-radius);
    background: var(--logo-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    overflow: hidden;
    opacity: 1;
    transition:
        background 0.2s,
        opacity var(--t-dim),
        transform 0.2s;
    animation: counter-logo var(--spin-logo) linear infinite;
}
@keyframes counter-logo {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.logo-item:hover {
    background: var(--logo-bg-hover);
}
.logo-item img {
    width: 58%;
    height: 58%;
    object-fit: contain;
}
.logo-item.dimmed,
.cat-item.dimmed {
    opacity: var(--dim-opacity);
    pointer-events: none;
}

/* ── Brand Panel ─────────────────────────────────────────── */
.panel-overlay {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: grid;
    place-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--t-panel);
    z-index: 400;
}
.panel-overlay.visible {
    opacity: 1;
    pointer-events: all;
}

.panel {
    position: relative;
    width: var(--panel-size);
    height: var(--panel-size);
    border-radius: 50%;
    overflow: hidden;
    transform: scale(0.5);
    transition: transform var(--t-panel);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.18);
}
.panel-overlay.visible .panel {
    transform: scale(1);
}

.panel-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.panel-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        transparent 25%,
        rgba(0, 0, 0, 0.75) 100%
    );
}

.panel-body {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 28px 32px 36px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 7px;
}

.panel-cat-badge {
    font-size: 9px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 2px;
}

.panel-heading {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 400;
    color: #fff;
    line-height: 1.2;
}

.panel-sub {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.5;
    max-width: 260px;
    margin-bottom: 6px;
}

.panel-actions {
    display: flex;
    gap: 10px;
}

.btn-ghost {
    padding: 10px 20px;
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: var(--radius-pill);
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}
.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.12);
}

.panel-close {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 34px;
    height: 34px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    z-index: 10;
    color: #111;
}

.panel-wrapper {
    position: relative;
    display: inline-block;
}

/* ─── About Strip ─────────────────────────────────────────── */
.about-strip {
    background: var(--color-bg-subtle);
}

.about-strip-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(40px, 6vw, 100px);
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
}

.about-strip-text h2 {
    margin-bottom: 20px;
}
.about-strip-text p {
    color: var(--color-text-secondary);
}

.about-strip-image img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: var(--radius-card);
}

/* ─── Responsive ─────────────────────────────────────────── */
@media (max-width: 640px) {
    .galaxy {
        transform: scale(0.72);
        transform-origin: center top;
        margin-bottom: -80px;
    }

    .about-strip-inner {
        grid-template-columns: 1fr;
    }
    .about-strip-image {
        display: none;
    }
}
