@import url('https://fonts.googleapis.com/css2?family=Kanit:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body{
    font-family: "Kanit", sans-serif;
    background-color: #ffffff;
}

/* Brand page load + scroll animations */
body:not(.is-page-loaded) .brand-hero .brand-hero__title,
body:not(.is-page-loaded) .brand-hero .brand-hero__subtitle {
    opacity: 0;
    transform: translateY(18px);
}

.brand-hero .brand-hero__title,
.brand-hero .brand-hero__subtitle {
    transition:
        opacity 1200ms cubic-bezier(0.16, 1, 0.3, 1),
        transform 1200ms cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

body.is-page-loaded .brand-hero .brand-hero__title { transition-delay: 320ms; }
body.is-page-loaded .brand-hero .brand-hero__subtitle { transition-delay: 680ms; }

.reveal-section .reveal-item {
    opacity: 0;
    transform: translateY(18px) scale(0.99);
    transition:
        opacity 1100ms cubic-bezier(0.16, 1, 0.3, 1),
        transform 1100ms cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: calc(var(--reveal-delay, 0ms) + 140ms);
    will-change: opacity, transform;
}

.reveal-section.is-visible .reveal-item {
    opacity: 1;
    transform: translateY(0) scale(1);
}

@media (prefers-reduced-motion: reduce) {
    .reveal-section .reveal-item,
    body:not(.is-page-loaded) .brand-hero .brand-hero__title,
    body:not(.is-page-loaded) .brand-hero .brand-hero__subtitle {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

/* Brand hero */
.brand-hero {
    color: #0a0a0a;
    background-color: #ffffff;
    padding: 1rem 2rem 0 2rem;
}

.brand-hero__inner {
    max-width: 1700px;
    margin: 0 auto;
    min-height: clamp(140px, 20vh, 240px);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.brand-hero__title {
    margin: 0;
    font-size: clamp(1.6rem, 4vw, 3rem);
    font-weight: 500;
    text-transform: uppercase;
}

/* Tablet */
@media (max-width: 992px) {
    .brand-hero {
        padding: 3rem 1.5rem;
    }

    .brand-hero__inner {
        min-height: 110px;
    }
    .brand-hero__title {
        font-size: 3rem;
    }
}

/* Mobile */
@media (max-width: 576px) {
    .brand-hero {
        padding: 2.5rem 1rem;
    }

    .brand-hero__inner {
        min-height: 70px;
    }

    .brand-hero__title {
        font-size: 2rem;
    }
}

/* Brand visual section */
.brand-visual {
    background: #ffffff;
    padding: 0 2rem 4.5rem;
}

.brand-visual__inner {
    max-width: 1700px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
}

.brand-visual__frame {
    width: min(100%, 100%);
    aspect-ratio: 16 / 8;
    height: 600px;
    background: #0a0a0a;
    overflow: hidden;
    position: relative;
}

.brand-visual__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.brand-visual__placeholder {
    display: none;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(900px 360px at 50% 45%, rgba(255,255,255,0.10), rgba(255,255,255,0) 60%),
        linear-gradient(135deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.02) 55%, rgba(255,255,255,0.10) 100%);
}

/* Visual – tablet */
@media (max-width: 992px) {
    .brand-visual {
        padding: 0 1.5rem 4rem;
    }

    .brand-visual__frame {
        aspect-ratio: 16 / 9;
        height: 500px;
    }
}

/* Visual – mobile */
@media (max-width: 576px) {
    .brand-visual {
        padding: 0 1rem 1rem;
    }

    .brand-visual__frame {
        aspect-ratio: 16 / 10;
        height: 380px;
    }
}

/* Brand about section */
.brand-about {
    color: #ffffff;
    padding: 4rem 2rem 5rem;
}

.brand-about__inner {
    max-width: 1700px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(320px, 44%) 1fr;
    gap: 3rem;
    align-items: center;
}

.brand-about__media {
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.brand-about__media img {
    width: 35%;
    height: auto;
    object-fit: cover;
    display: block;
}

.brand-about__logoFallback {
    display: none;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    font-size: clamp(1.4rem, 3vw, 2.4rem);
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: linear-gradient(180deg, #252525 0%, #151515 100%);
}

.brand-about__title {
    margin: 0 0 0.8rem 0;
    font-size: clamp(1.8rem, 3vw, 3rem);
    font-weight: 500;
    color: #0a0a0a;
    text-transform: uppercase;
}

.brand-about__text {
    margin: 0;
    font-size: clamp(0.98rem, 1.35vw, 1.2rem);
    font-weight: 300;
    line-height: 1.6;
    color: #0a0a0a;
    max-width: 900px;
}

/* About – tablet */
@media (max-width: 992px) {
    .brand-about {
        padding: 3.25rem 1.5rem 4.25rem;
    }

    .brand-about__inner {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .brand-about__media {
        min-height: 260px;
    }
    .brand-about__text {
        font-size: 1rem;
    }
}

/* About – mobile */
@media (max-width: 576px) {
    .brand-about {
        padding: 0rem 1rem 3.5rem;
    }

    .brand-about__media {
        min-height: 220px;
    }

    .brand-about__title {
        font-size: 1.8rem;
    }

    .brand-about__text {
        font-size: 0.95rem;
        line-height: 1.58;
    }
}

/* Brand models section */
.brand-models {
    background: #ffffff;
    color: #0a0a0a;
    padding: 3.5rem 2rem 4.5rem;
}

.brand-models__inner {
    max-width: 1700px;
    margin: 0 auto;
    text-align: center;
}

.brand-models__title {
    margin: 0 0 2rem 0;
    font-size: clamp(1.65rem, 2.6vw, 2.9rem);
    font-weight: 500;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.brand-models__viewport {
    overflow: hidden;
}

.brand-models__track {
    display: flex;
    gap: 1.2rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.brand-models__track::-webkit-scrollbar {
    display: none;
}

.brand-models__track.is-compact {
    justify-content: center;
    overflow-x: hidden;
    scroll-snap-type: none;
}

.brand-model-card {
    flex: 0 0 calc((100% - 2.4rem) / 4);
    background: #f1f1f1;
    padding: 1.2rem;
    scroll-snap-align: start;
}

.brand-models__track.is-compact .brand-model-card {
    flex-basis: min(340px, 100%);
    scroll-snap-align: center;
}

.brand-models__track.is-single .brand-model-card {
    flex-basis: min(460px, 100%);
    scroll-snap-align: center;
}

.brand-model-card__media {
    aspect-ratio: 16 / 9;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.brand-model-card__media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.brand-model-card__name {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
    text-transform: uppercase;
    color: #0a0a0a;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.45rem;
}

.brand-model-card__name span {
    color: #000000;
    font-size: 1.1rem;
    font-weight: 300;
}

.brand-models__controls {
    margin-top: 1.2rem;
    display: flex;
    justify-content: center;
    gap: 0.8rem;
}

.brand-models.brand-models--compact .brand-models__controls {
    display: none;
}

.brand-models__arrow {
    width: 3rem;
    height: 3rem;
    border: none;
    background: #f1f1f1;
    color: #0a0a0a;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.55rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.brand-models__arrow:hover {
    background: #f1f1f1;
}

/* Models scroll animation */
body:not(.is-page-loaded) .brand-models .brand-models__title,
body:not(.is-page-loaded) .brand-models .brand-model-card,
body:not(.is-page-loaded) .brand-models .brand-models__controls {
    opacity: 0;
    transform: translateY(18px);
}

.brand-models.reveal-section .brand-models__title,
.brand-models.reveal-section .brand-model-card,
.brand-models.reveal-section .brand-models__controls {
    opacity: 0;
    transform: translateY(18px);
    transition:
        opacity 850ms cubic-bezier(0.16, 1, 0.3, 1),
        transform 850ms cubic-bezier(0.16, 1, 0.3, 1);
}

.brand-models.reveal-section.is-visible .brand-models__title,
.brand-models.reveal-section.is-visible .brand-model-card,
.brand-models.reveal-section.is-visible .brand-models__controls {
    opacity: 1;
    transform: translateY(0);
}

.brand-models.reveal-section .brand-models__title {
    transition-delay: 90ms;
}

.brand-models.reveal-section .brand-model-card:nth-child(1) {
    transition-delay: 160ms;
}

.brand-models.reveal-section .brand-model-card:nth-child(2) {
    transition-delay: 250ms;
}

.brand-models.reveal-section .brand-model-card:nth-child(3) {
    transition-delay: 340ms;
}

.brand-models.reveal-section .brand-models__controls {
    transition-delay: 430ms;
}

/* Models - tablet */
@media (max-width: 992px) {
    .brand-models {
        padding: 3rem 1.5rem 4rem;
    }

    .brand-models__title {
        margin-bottom: 1.6rem;
    }

    .brand-model-card {
        flex-basis: calc((100% - 1.2rem) / 2);
    }

    .brand-model-card__name {
        font-size: 1.35rem;
    }

    .brand-model-card__name span {
        font-size: 0.95rem;
    }
}

/* Models - mobile */
@media (max-width: 576px) {
    .brand-models {
        padding: 2.75rem 1rem 3.5rem;
    }

    .brand-models__title {
        font-size: 1.9rem;
        margin-bottom: 1.25rem;
    }

    .brand-models__track {
        gap: 0.75rem;
    }

    .brand-model-card {
        flex-basis: 86%;
        padding: 0.95rem;
    }

    .brand-model-card__name {
        font-size: 1.1rem;
        gap: 0.35rem;
    }

    .brand-model-card__name span {
        font-size: 0.82rem;
    }

    .brand-models__arrow {
        width: 2.6rem;
        height: 2.6rem;
        font-size: 1.35rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .brand-models.reveal-section .brand-models__title,
    .brand-models.reveal-section .brand-model-card,
    .brand-models.reveal-section .brand-models__controls {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

/* Brand gallery section */
.brand-gallery {
    background: #ffffff;
    padding: 4rem 2rem 4.5rem;
}

.brand-gallery__inner {
    max-width: 1700px;
    margin: 0 auto;
}

.brand-gallery__grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 1.5rem;
}

.brand-gallery__item {
    margin: 0;
    overflow: hidden;
    background: #111111;
    position: relative;
}

.brand-gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.brand-gallery__placeholder {
    display: none;
    width: 100%;
    height: 100%;
    min-height: 200px;
    background:
        radial-gradient(1200px 500px at 50% 30%, rgba(255,255,255,0.08), rgba(255,255,255,0) 65%),
        linear-gradient(135deg, #1a1f2b 0%, #0f121a 45%, #1d2535 100%);
}

.brand-gallery__item--a {
    grid-column: span 7;
    aspect-ratio: 16 / 10;
}

.brand-gallery__item--b {
    grid-column: span 5;
    aspect-ratio: 4 / 3.54;
}

.brand-gallery__item--c {
    grid-column: span 5;
    aspect-ratio: 4 / 3.54;
}

.brand-gallery__item--d {
    grid-column: span 7;
    aspect-ratio: 16 / 10;
}

/* Gallery - tablet */
@media (max-width: 992px) {
    .brand-gallery {
        padding: 3rem 1.5rem 4rem;
    }

    .brand-gallery__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1rem;
    }

    .brand-gallery__item--a,
    .brand-gallery__item--b,
    .brand-gallery__item--c,
    .brand-gallery__item--d {
        grid-column: span 1;
        aspect-ratio: 4 / 3;
    }
}

/* Gallery - mobile */
@media (max-width: 576px) {
    .brand-gallery {
        padding: 2rem 1rem 3.25rem;
    }

    .brand-gallery__grid {
        grid-template-columns: 1fr;
        gap: 0.85rem;
    }

    .brand-gallery__item--a,
    .brand-gallery__item--b,
    .brand-gallery__item--c,
    .brand-gallery__item--d {
        aspect-ratio: 16 / 10;
    }
}

/* Brand region (explore in your region) */
.brand-region {
    background: #f1f1f1;
    color: #0a0a0a;
    padding: 4rem 2rem 4.5rem;
}

.brand-region__inner {
    max-width: 1700px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: clamp(2rem, 4vw, 4rem);
    align-items: center;
}

.brand-region__media {
    position: relative;
    overflow: hidden;
    background: #f1f1f1;
    min-height: 180px;
}

.brand-region__media img {
    width: 100%;
    height: 100%;
    min-height: 320px;
    object-fit: cover;
    object-position: center;
    display: block;
}

.brand-region__placeholder {
    display: none;
    width: 100%;
    min-height: 320px;
    background:
        radial-gradient(800px 400px at 50% 40%, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0) 60%),
        linear-gradient(145deg, #1a1f2b 0%, #0f121a 50%, #1d2535 100%);
}

.brand-region__content {
    padding: 0.5rem 0;
}

.brand-region__title {
    margin: 0 0 1.25rem;
    font-size: clamp(1.35rem, 2.8vw, 2.75rem);
    font-weight: 500;
    line-height: 1.12;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #0a0a0a;
}

.brand-region__text {
    margin: 0 0 1.75rem;
    font-size: clamp(0.95rem, 1.35vw, 1.2rem);
    font-weight: 300;
    line-height: 1.55;
    color: #0a0a0a;
    max-width: 520px;
}

.brand-region__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
}

.brand-region__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.65rem 1.15rem;
    background: #ffffff;
    color: #111111;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0.02em;
    border: 1px solid #e8e8e8;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.brand-region__btn:hover {
    background: #000000;
    color: #ffffff;
}

/* Region – tablet */
@media (max-width: 992px) {
    .brand-region {
        padding: 3rem 1.5rem 3.75rem;
    }

    .brand-region__inner {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .brand-region__media {
        max-width: 720px;
        margin: 0 auto;
        width: 100%;
    }

    .brand-region__media img {
        min-height: 260px;
    }

    .brand-region__content {
        text-align: left;
        max-width: 720px;
        margin: 0 auto;
    }
    .brand-region__title {
        font-size: clamp(1.15rem, 5.2vw, 1.8rem);
        margin-bottom: 1rem;
    }

    .brand-region__text {
        max-width: none;
        font-size: clamp(0.85rem, 5.2vw, 1rem);
    }

    .brand-region__actions {
        justify-content: flex-start;
    }
}

/* Region – mobile */
@media (max-width: 576px) {
    .brand-region {
        padding: 2.25rem 1rem 3rem;
    }

    .brand-region__title {
        margin-bottom: 1rem;
        font-size: clamp(1.15rem, 5.2vw, 1.5rem);
    }

    .brand-region__text {
        margin-bottom: 1.35rem;
        font-size: 0.92rem;
    }

    .brand-region__media img {
        min-height: 200px;
    }

    .brand-region__actions {
        flex-direction: column;
        align-items: stretch;
        gap: 0.65rem;
    }

    .brand-region__btn {
        justify-content: center;
        width: 100%;
        padding: 0.75rem 1rem;
        font-size: 0.86rem;
    }
}

/* Brand showrooms */
.brand-showrooms {
    background: #ffffff;
    color: #111111;
    padding: 3.75rem 2rem 4.25rem;
}

.brand-showrooms__inner {
    max-width: 1700px;
    margin: 0 auto;
}

.brand-showrooms__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.75rem;
}

.brand-showrooms__title {
    margin: 0;
    font-size: clamp(1.4rem, 2.8vw, 2.6rem);
    font-weight: 500;
    text-transform: uppercase;
    color: #0a0a0a;
}

.brand-showrooms__tabs {
    display: inline-flex;
    border: none;
}

.brand-showrooms__tab {
    border: 0;
    border-right: none;
    background: #f1f1f1;
    color: #0a0a0a;
    font-family: inherit;
    font-size: 0.72rem;
    text-transform: uppercase;
    padding: 0.55rem 0.9rem;
    cursor: pointer;
    letter-spacing: 0.02em;
}

.brand-showrooms__tab:last-child {
    border-right: 0;
}

.brand-showrooms__tab.is-active {
    background: #111111;
    color: #ffffff;
}

.brand-showrooms__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.brand-showroom-card {
    background: #f1f1f1;
    border: none;
}

.brand-showroom-card__media {
    background: #ffffff;
    aspect-ratio: 16 / 7;
    overflow: hidden;
}

.brand-showroom-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.brand-showroom-card__body {
    padding: 0.95rem 0.95rem 0.85rem;
}

.brand-showroom-card__title {
    margin: 0 0 0.45rem;
    font-size: 1.05rem;
    font-weight: 500;
    text-transform: uppercase;
    color: #111111;
}

.brand-showroom-card__location {
    margin: 0;
    font-size: 0.9rem;
    color: #222222;
    font-weight: 300;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.brand-showroom-card__actions {
    margin-top: 0.6rem;
    display: flex;
    justify-content: flex-end;
    gap: 0.35rem;
}

.brand-showroom-card__action {
    width: 2rem;
    height: 1.8rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #000000;
    color: #ffffff;
    text-decoration: none;
    font-size: 0.72rem;
}

.brand-showrooms__empty {
    margin: 0;
    background: #ffffff;
    border: 1px solid #e3e3e3;
    padding: 1rem;
    color: #444444;
}

@media (max-width: 992px) {
    .brand-showrooms {
        padding: 3rem 1.5rem 3.75rem;
    }

    .brand-showrooms__head {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 1.2rem;
    }

    .brand-showrooms__grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .brand-showrooms {
        padding: 2.25rem 1rem 3rem;
    }

    .brand-showrooms__title {
        font-size: 1.6rem;
    }

    .brand-showrooms__tabs {
        width: 100%;
    }

    .brand-showrooms__tab {
        flex: 1 1 0;
        text-align: center;
        padding: 0.6rem 0.45rem;
        font-size: 0.7rem;
    }

    .brand-showroom-card__title {
        font-size: 0.98rem;
    }

    .brand-showroom-card__location {
        font-size: 0.83rem;
    }
}