/* ═══════════════════════════════════════
   品牌形象页 · page-about-brand
   ═══════════════════════════════════════ */

html.lenis,
html.lenis body {
    height: auto;
}

html.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

html.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

html.lenis.lenis-stopped {
    overflow: hidden;
}

html.lenis.lenis-scrolling iframe {
    pointer-events: none;
}

.page-about-brand {
    --brand-surface: #f7fbfb;
    --brand-line: #e8ecef;
    --brand-muted: #64748b;
    --brand-subtle: #f8fafb;
}

.page-about-brand .brand-main {
    overflow: visible;
}

/* ── Hero ── */

.brand-hero {
    position: relative;
    overflow: hidden;
    min-height: clamp(20rem, 48vh, 28rem);
    padding: calc(var(--header-height) + 3rem) 1rem 3.5rem;
    display: flex;
    align-items: center;
    background: linear-gradient(180deg, var(--brand-surface) 0%, #fff 78%);
    text-align: center;
}

.brand-hero__grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(17, 214, 187, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(17, 214, 187, 0.05) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 20%, transparent 75%);
    pointer-events: none;
}

.brand-hero__glow {
    position: absolute;
    width: min(72vw, 620px);
    height: min(72vw, 620px);
    top: 38%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: radial-gradient(circle, var(--primary-color) 0%, transparent 68%);
    opacity: 0.12;
    filter: blur(52px);
    pointer-events: none;
    will-change: transform;
}

.brand-hero__inner {
    position: relative;
    width: 100%;
    max-width: 40rem;
    margin: 0 auto;
}

.brand-hero__label {
    margin: 0 0 1rem;
    font-size: 0.6875rem;
    letter-spacing: 0.32em;
    color: var(--primary-color);
    font-weight: 600;
}

.brand-hero__title {
    margin: 0 0 1rem;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--text-color);
}

.brand-hero__title em {
    font-style: normal;
    color: var(--primary-color);
}

.brand-hero__rule {
    width: 3rem;
    height: 2px;
    margin: 0 auto 1.25rem;
    border-radius: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    transform-origin: center;
}

.brand-hero__desc {
    margin: 0 auto;
    max-width: 34rem;
    font-size: 1.0625rem;
    line-height: 1.75;
    color: var(--brand-muted);
}

/* ── Section ── */

.brand-section {
    padding: clamp(3rem, 6vw, 4.5rem) 1rem;
}

.brand-section--logo {
    background: #fff;
}

.brand-section--mascot {
    background: var(--brand-subtle);
}

.brand-section--symbol {
    background: #fff;
}

.brand-section__head {
    max-width: 36rem;
    margin: 0 auto 2.5rem;
    text-align: center;
}

.brand-section__label {
    margin: 0 0 0.5rem;
    font-size: 0.6875rem;
    letter-spacing: 0.24em;
    font-weight: 600;
    color: var(--primary-color);
}

.brand-section__title {
    margin: 0 0 0.75rem;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-color);
}

.brand-section__rule {
    width: 2.5rem;
    height: 2px;
    margin: 0 auto 0.875rem;
    border-radius: 2px;
    background: var(--primary-color);
    transform-origin: center;
}

.brand-section__desc {
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.75;
    color: var(--brand-muted);
}

/* ── LOGO ── */

.brand-logo {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
    max-width: 56rem;
    margin: 0 auto;
}

.brand-logo__visual {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(2rem, 5vw, 3rem);
    border: 1px solid var(--brand-line);
    border-radius: 18px;
    background: linear-gradient(160deg, #fff 0%, var(--brand-surface) 100%);
}

.brand-logo__swing {
    display: flex;
    align-items: center;
    justify-content: center;
    transform-origin: 50% 88%;
    animation: brand-logo-sway 2.6s ease-in-out infinite;
    will-change: transform;
}

.brand-logo__swing img {
    display: block;
    width: min(100%, 14rem);
    height: auto;
}

@keyframes brand-logo-sway {
    0%, 100% {
        transform: rotate(-4deg);
    }

    50% {
        transform: rotate(4deg);
    }
}

@media (hover: hover) and (pointer: fine) {
    .brand-logo__visual:hover .brand-logo__swing {
        animation-duration: 1.8s;
    }
}

.brand-logo__text {
    margin: 0;
    font-size: 1rem;
    line-height: 1.9;
    color: var(--brand-muted);
}

.brand-logo__text strong {
    color: var(--primary-dark, #0d9a85);
    font-weight: 700;
}

/* ── Mascot ── */

.brand-section--mascot {
    position: relative;
    overflow: hidden;
}

.brand-mascot__bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(17, 214, 187, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(17, 214, 187, 0.04) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: linear-gradient(180deg, #000 0%, transparent 92%);
    pointer-events: none;
}

.brand-mascot {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(2rem, 4vw, 3rem);
    align-items: stretch;
    max-width: 68rem;
    margin: 0 auto;
}

.brand-mascot__panel {
    position: relative;
    height: 100%;
    padding: clamp(1.5rem, 3vw, 2.25rem);
    border: 1px solid var(--brand-line);
    border-radius: 20px;
    background: linear-gradient(145deg, #fff 0%, var(--brand-surface) 52%, rgba(17, 214, 187, 0.05) 100%);
    overflow: hidden;
}

.brand-mascot__panel-glow {
    position: absolute;
    width: 18rem;
    height: 18rem;
    top: -6rem;
    left: -4rem;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(17, 214, 187, 0.14) 0%, transparent 68%);
    pointer-events: none;
}

.brand-mascot__label {
    position: relative;
    z-index: 1;
    margin: 0 0 0.5rem;
    font-size: 0.6875rem;
    letter-spacing: 0.24em;
    font-weight: 600;
    color: var(--primary-color);
}

.brand-mascot__title {
    position: relative;
    z-index: 1;
    margin: 0 0 0.375rem;
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    color: var(--text-color);
}

.brand-mascot__subtitle {
    position: relative;
    z-index: 1;
    margin: 0 0 1.25rem;
    font-size: 1rem;
    color: var(--brand-muted);
}

.brand-mascot__quote {
    position: relative;
    z-index: 1;
    margin: 0 0 1.25rem;
    padding: 0.875rem 0 0.875rem 1.125rem;
    border-left: 3px solid var(--primary-color);
    font-size: clamp(1.0625rem, 2vw, 1.25rem);
    font-weight: 600;
    line-height: 1.55;
    letter-spacing: -0.01em;
    color: var(--text-color);
}

.brand-mascot__quote-mark {
    margin-right: 0.125rem;
    color: rgba(17, 214, 187, 0.55);
    font-weight: 800;
}

.brand-mascot__rhythm {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    margin: 0 0 1.375rem;
    padding: 0;
    list-style: none;
}

.brand-mascot__rhythm-item {
    display: grid;
    grid-template-columns: 3.25rem minmax(0, 1fr);
    gap: 0.75rem;
    align-items: center;
    padding: 0.625rem 0.875rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(232, 236, 239, 0.9);
    transition: border-color 0.35s ease, background 0.35s ease, box-shadow 0.35s ease;
}

.brand-mascot__rhythm-item.is-active {
    background: rgba(255, 255, 255, 0.96);
    border-color: rgba(17, 214, 187, 0.42);
    box-shadow: 0 0 0 1px rgba(17, 214, 187, 0.08);
}

.brand-mascot__rhythm-item.is-active .brand-mascot__rhythm-key {
    color: var(--primary-color);
}

.brand-mascot__rhythm-key {
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--primary-dark, #0d9a85);
}

.brand-mascot__rhythm-val {
    font-size: 0.8125rem;
    line-height: 1.45;
    color: var(--brand-muted);
}

.brand-mascot__body {
    position: relative;
    z-index: 1;
}

.brand-mascot__body p {
    margin: 0 0 1rem;
    font-size: 0.9375rem;
    line-height: 1.85;
    color: var(--brand-muted);
}

.brand-mascot__body p:first-child {
    color: #334155;
}

.brand-mascot__body p:last-child {
    margin-bottom: 0;
}

.brand-mascot__media {
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-mascot__frame {
    position: relative;
    width: 100%;
    max-width: 26rem;
    aspect-ratio: 4 / 5;
    isolation: isolate;
}

.brand-mascot__slides {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
    border-radius: 18px;
    background: var(--brand-subtle, #f8fafb);
}

.brand-mascot__slide {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.brand-mascot__slide-img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    object-fit: cover;
    object-position: center center;
}

.brand-mascot__slide-img--wide {
    object-fit: contain;
    object-position: center center;
}

.brand-mascot__caption {
    position: absolute;
    left: 1rem;
    bottom: 1rem;
    z-index: 2;
    padding: 0.375rem 0.75rem;
    border-radius: 999px;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #fff;
    background: rgba(15, 23, 42, 0.52);
    backdrop-filter: blur(6px);
    pointer-events: none;
}

.brand-section--mascot.has-gallery-pin {
    display: flex;
    align-items: flex-start;
    padding-top: 1.5rem;
    padding-bottom: 2rem;
}

.brand-section--mascot.has-gallery-pin .container {
    width: 100%;
}

.brand-section--mascot.has-gallery-pin .brand-mascot {
    align-items: flex-start;
}

.brand-mascot__frame-index {
    position: absolute;
    top: -0.35rem;
    right: -2.15rem;
    z-index: 3;
    font-size: clamp(3rem, 8vw, 4.5rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.06em;
    color: rgba(17, 214, 187, 0.14);
    pointer-events: none;
    user-select: none;
}

/* ── Symbol grid ── */

.brand-symbol-grid {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.brand-symbol-grid__spotlight {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
    border-radius: 18px;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transform-origin: left top;
    background: linear-gradient(155deg, #fff 0%, rgba(17, 214, 187, 0.11) 100%);
    border: 1px solid rgba(17, 214, 187, 0.42);
    box-shadow: none;
    overflow: hidden;
    will-change: transform, width, height;
}

.brand-symbol-grid__spotlight-glow {
    position: absolute;
    width: 18rem;
    height: 18rem;
    top: -5rem;
    right: -3rem;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(17, 214, 187, 0.32) 0%, transparent 68%);
    pointer-events: none;
}

.brand-symbol-grid__spotlight-shine {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        115deg,
        transparent 38%,
        rgba(255, 255, 255, 0.65) 50%,
        transparent 62%
    );
    transform: translateX(-130%);
    pointer-events: none;
}

.brand-symbol-grid.is-interacting .brand-symbol-grid__spotlight {
    visibility: visible;
}

.brand-symbol-grid.is-interacting .brand-symbol-card {
    background: rgba(255, 255, 255, 0.45);
    border-color: rgba(232, 236, 239, 0.85);
}

.brand-symbol-grid.is-interacting .brand-symbol-card.is-active {
    background: transparent;
    border-color: transparent;
}

.brand-symbol-card {
    position: relative;
    z-index: 1;
    padding: 1.375rem 1.25rem 1.5rem;
    border: 1px solid var(--brand-line);
    border-radius: 18px;
    background: #fff;
    overflow: hidden;
    will-change: transform;
}

.brand-symbol-grid.is-interacting .brand-symbol-card {
    transition: border-color 0.35s ease, background 0.35s ease;
}

.brand-symbol-card__bg {
    position: absolute;
    width: 14rem;
    height: 14rem;
    top: -4rem;
    right: -3rem;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(17, 214, 187, 0.22) 0%, transparent 68%);
    opacity: 0;
    pointer-events: none;
    z-index: 0;
}

.brand-symbol-grid.is-interacting .brand-symbol-card__bg {
    opacity: 0;
}

.brand-symbol-card.is-dim {
    opacity: 0.72;
}

.brand-symbol-card__index {
    position: absolute;
    top: 0.875rem;
    right: 1rem;
    z-index: 1;
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.04em;
    color: rgba(17, 214, 187, 0.16);
    pointer-events: none;
    user-select: none;
}

.brand-symbol-card__icon {
    position: relative;
    z-index: 1;
    width: 3.25rem;
    height: 3.25rem;
    margin-bottom: 1rem;
}

.brand-symbol-card__icon img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.brand-symbol-card__title {
    position: relative;
    z-index: 1;
    margin: 0 0 0.625rem;
    padding-right: 2.5rem;
    font-size: 1.0625rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--text-color);
}

.brand-symbol-card__desc {
    position: relative;
    z-index: 1;
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.75;
    color: var(--brand-muted);
}

/* ── Responsive ── */

@media (min-width: 768px) {
    .brand-logo {
        grid-template-columns: minmax(0, 18rem) minmax(0, 1fr);
        gap: clamp(2rem, 4vw, 3rem);
    }

    .brand-mascot {
        grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
        gap: clamp(2rem, 4vw, 3.5rem);
    }

    .brand-mascot__copy {
        order: -1;
    }

    .brand-mascot__frame {
        max-width: none;
    }

    .brand-symbol-grid--cols-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .brand-symbol-grid--cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .brand-section--mascot.has-gallery-pin {
        min-height: 100dvh;
        padding-top: 1rem;
        padding-bottom: 1rem;
    }

    .brand-section--mascot.has-gallery-pin .container {
        height: calc(100dvh - var(--header-height) - 1.5rem);
        display: flex;
        flex-direction: column;
    }

    .brand-section--mascot.has-gallery-pin .brand-mascot {
        flex: 1 1 auto;
        min-height: 0;
        grid-template-rows: auto minmax(0, 1fr);
        align-content: start;
    }

    .brand-section--mascot.has-gallery-pin .brand-mascot__media {
        flex: 1 1 auto;
        min-height: 0;
        align-items: stretch;
    }

    .brand-section--mascot.has-gallery-pin .brand-mascot__frame {
        width: 100%;
        max-width: none;
        height: auto;
        max-height: none;
        aspect-ratio: 4 / 5;
    }

    .brand-section--mascot.has-gallery-pin .brand-mascot__body {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .brand-symbol-grid__spotlight,
    .brand-symbol-grid__spotlight-shine,
    .brand-symbol-card {
        transition: none !important;
    }

    .brand-logo__swing {
        animation: none;
    }

    .brand-mascot__slide-img {
        clip-path: inset(0) !important;
    }

    .brand-mascot__slide {
        clip-path: inset(0) !important;
    }

    .brand-mascot__slide:not([data-stack="1"]) {
        display: none;
    }
}
