/* SGF — full responsive coverage v12 (all devices) */

:root {
    --bp-xs: 360px;
    --bp-sm: 480px;
    --bp-md: 600px;
    --bp-lg: 768px;
    --bp-xl: 920px;
    --bp-2xl: 1024px;
    --bp-3xl: 1200px;
}

html {
    overflow-x: clip;
}

body.gose-body {
    width: 100%;
    min-width: 0;
}

main {
    width: 100%;
}

/* —— Global typography rhythm —— */
.gose-section__head--center {
    padding-inline: 0.25rem;
}

.gose-section__head--center .gose-section__lead {
    margin-inline: auto;
}

.gose-about__copy > p,
.gose-contact__copy > p {
    max-width: var(--gose-prose, 62ch);
}

.gose-section__head--center .gose-about__copy > p {
    max-width: none;
}

/* —— Nav: all widths —— */
.gose-brand {
    min-width: 0;
    flex-shrink: 1;
}

.gose-brand__text small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 9rem;
}

.gose-pref-btn {
    min-width: 2.25rem;
    height: 2.1rem;
    padding: 0 0.5rem;
    font-size: 0.72rem;
}

@media (max-width: 359px) {
    .gose-brand__text small {
        display: none;
    }

    .gose-brand__text strong {
        font-size: 0.95rem;
    }

    .gose-pref-btn {
        min-width: 2rem;
        padding: 0 0.4rem;
    }
}

@media (min-width: 920px) {
    .gose-nav {
        gap: 0.75rem;
    }

    .gose-brand__text small {
        max-width: none;
    }
}

@media (min-width: 920px) and (max-width: 1099px) {
    .gose-nav__links a:not(.gose-nav__cta) {
        padding: 0.45rem 0.5rem;
        font-size: 0.8rem;
    }

    .gose-nav__cta {
        padding: 0.5rem 0.75rem !important;
        font-size: 0.8rem;
        white-space: nowrap;
    }

    .gose-pref-btn {
        min-width: 2rem;
        font-size: 0.68rem;
    }
}

@media (min-width: 1100px) {
    .gose-nav__links a:not(.gose-nav__cta) {
        padding: 0.55rem 0.75rem;
        font-size: 0.9rem;
    }
}

/* Mobile nav drawer */
@media (max-width: 919px) {
    .gose-nav__links a {
        text-align: center;
        font-size: 1rem;
    }

    .gose-nav__links .gose-nav__prefs--desktop {
        display: none !important;
    }

    .gose-nav.is-open .gose-nav__links {
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }
}

/* —— Hero —— */
.gose-hero {
    width: 100%;
}

.gose-hero__layout {
    width: 100%;
}

.gose-hero__copy {
    width: 100%;
    min-width: 0;
}

.gose-hero__kicker,
.gose-hero__copy .gose-kicker {
    font-size: clamp(0.62rem, 2.8vw, 0.76rem);
    letter-spacing: 0.08em;
    line-height: 1.4;
    justify-content: center;
    text-align: center;
}

.gose-hero__logo-card {
    width: 100%;
    max-width: min(100%, 20rem);
    margin-inline: auto;
}

.gose-hero__tagline {
    max-width: 24ch;
    margin-inline: auto;
}

.gose-hero__console {
    width: 100%;
    max-width: 100%;
}

.gose-console__stats span {
    font-size: clamp(0.62rem, 2.5vw, 0.72rem);
}

@media (max-width: 479px) {
    .gose-hero {
        min-height: auto;
        padding-bottom: 2.5rem;
    }

    .gose-hero__scroll {
        display: none !important;
    }

    .gose-hero__actions {
        gap: 0.65rem;
    }

    .gose-hero__actions .gose-btn {
        width: 100%;
        min-height: 44px;
    }
}

@media (min-width: 480px) and (max-width: 899px) {
    .gose-hero__layout {
        max-width: 36rem;
        margin-inline: auto;
    }

    .gose-hero__tagline {
        max-width: none;
    }
}

@media (min-width: 900px) {
    .gose-hero__copy {
        text-align: left;
    }

    .gose-hero__copy .gose-kicker {
        justify-content: flex-start;
        text-align: left;
    }

    .gose-hero__logo-card {
        margin-inline: 0;
        max-width: fit-content;
    }

    .gose-hero__tagline {
        margin-inline: 0;
        max-width: 20ch;
    }

    .gose-hero__layout {
        align-items: start;
    }

    .gose-hero__console {
        justify-self: end;
    }
}

@media (min-width: 1200px) {
    .gose-hero__tagline {
        font-size: clamp(1.6rem, 2.5vw, 2.15rem);
    }
}

@media (max-height: 700px) and (max-width: 899px) {
    .gose-hero__logo-card {
        max-width: 16rem;
        margin-bottom: 0.75rem;
    }

    .gose-hero__lead--desktop {
        display: none;
    }
}

/* —— About —— */
@media (min-width: 768px) {
    .gose-about {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        align-items: center;
    }
}

@media (min-width: 1024px) {
    .gose-about {
        grid-template-columns: 1.05fr 0.95fr;
    }
}

/* —— Vision —— */
@media (min-width: 768px) {
    .gose-dual-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.25rem;
    }
}

/* —— Bento goals —— */
.gose-bento__card {
    min-height: 220px;
}

@media (min-width: 600px) and (max-width: 899px) {
    .gose-bento {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .gose-bento__card--feature {
        grid-column: 1 / -1;
        min-height: 300px;
    }

    .gose-bento__card--feature img {
        min-height: 300px;
    }
}

@media (min-width: 900px) {
    .gose-bento {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .gose-bento__card--feature {
        grid-column: 1 / -1;
        min-height: 360px;
    }

    .gose-bento__card--feature img {
        min-height: 360px;
    }

    .gose-bento__card:not(.gose-bento__card--feature) {
        aspect-ratio: 4 / 3;
    }
}

@media (max-width: 599px) {
    .gose-bento__card:not(.gose-bento__card--feature) {
        aspect-ratio: 16 / 10;
        min-height: unset;
    }

    .gose-bento__overlay p {
        -webkit-line-clamp: 3;
    }
}

/* —— Members —— */
.gose-nation-constellation {
    grid-template-columns: 1fr;
}

.gose-nation-constellation--formal {
    grid-template-columns: 1fr;
}

.gose-nation-constellation--affiliate {
    grid-template-columns: 1fr;
}

.gose-nation-chip {
    justify-content: flex-start;
    gap: 0.5rem;
    min-width: 0;
}

.gose-nation-chip__name {
    min-width: 0;
    flex: 1;
    font-size: clamp(0.78rem, 2.4vw, 0.92rem);
    line-height: 1.3;
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
}

.gose-nation-constellation span {
    min-height: 2.85rem;
    padding: 0.65rem 0.75rem;
    overflow: visible;
}

@media (min-width: 400px) {
    .gose-nation-constellation--formal {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .gose-nation-constellation--affiliate {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 600px) {
    .gose-nation-constellation--affiliate {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 768px) {
    .gose-member-panels {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .gose-nation-constellation--formal {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .gose-nation-constellation--affiliate {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .gose-nation-constellation--affiliate {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 399px) {
    .gose-nation-chip {
        flex-direction: column;
        justify-content: center;
        gap: 0.35rem;
        padding: 0.25rem 0;
    }

    .gose-nation-chip__name {
        white-space: normal;
        text-align: center;
        font-size: 0.82rem;
        overflow: visible;
        text-overflow: unset;
    }

    .gose-nation-constellation span {
        min-height: 4.5rem;
        justify-content: center;
    }
}

.gose-flags-ribbon {
    gap: 0.4rem;
    justify-content: center;
}

@media (max-width: 359px) {
    .gose-flags-ribbon img {
        width: 1.85rem;
        height: 1.2rem;
    }
}

/* —— Roadmap —— */
@media (min-width: 768px) and (max-width: 1023px) {
    .gose-roadmap {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .gose-roadmap__phase:last-child {
        grid-column: 1 / -1;
    }
}

@media (min-width: 1024px) {
    .gose-roadmap {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* —— Malaysia —— */
@media (min-width: 900px) {
    .gose-malaysia {
        grid-template-columns: 1.05fr 0.95fr;
        align-items: center;
    }
}

/* —— Contact —— */
@media (min-width: 900px) {
    .gose-contact {
        align-items: start;
    }

    .gose-form {
        position: sticky;
        top: calc(var(--gose-nav-h) + 1rem);
    }
}

@media (max-width: 899px) {
    .gose-contact-meta li {
        text-align: left;
    }
}

/* —— Footer —— */
.gose-footer__inner {
    display: grid;
    gap: 1rem;
    justify-items: center;
    text-align: center;
}

@media (min-width: 600px) {
    .gose-footer__inner {
        grid-template-columns: 1fr auto;
        grid-template-areas:
            "brand top"
            "nav nav"
            "copy copy";
        justify-items: stretch;
        text-align: left;
    }

    .gose-footer__brand {
        grid-area: brand;
        justify-self: start;
    }

    .gose-footer__nav {
        grid-area: nav;
        justify-content: center;
    }

    .gose-footer__copy {
        grid-area: copy;
    }

    .gose-footer__top {
        grid-area: top;
        justify-self: end;
    }
}

@media (min-width: 1024px) {
    .gose-footer__inner {
        grid-template-columns: 1.2fr 1.5fr auto auto;
        grid-template-areas: "brand nav copy top";
        align-items: center;
    }

    .gose-footer__nav {
        justify-content: center;
    }
}

/* —— Partners pills —— */
@media (max-width: 599px) {
    .gose-partners li {
        min-width: 0;
        flex: 1 1 calc(50% - 0.5rem);
        font-size: 0.8rem;
    }
}

/* —— Governance —— */
@media (min-width: 480px) {
    .gose-governance__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 768px) {
    .gose-governance__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* —— Marquee —— */
@media (max-width: 479px) {
    .gose-marquee__track span {
        font-size: 0.72rem;
    }
}

/* —— Override: hero 2-col only from 900px (not 768) —— */
@media (min-width: 768px) and (max-width: 899px) {
    .gose-hero__layout {
        grid-template-columns: 1fr;
        max-width: 40rem;
        margin-inline: auto;
    }

    .gose-hero__copy {
        text-align: center;
    }

    .gose-hero__copy .gose-kicker {
        justify-content: center;
    }

    .gose-hero__logo-card,
    .gose-hero__tagline {
        margin-inline: auto;
    }

    .gose-hero__tagline {
        max-width: none;
    }

    .gose-hero__lead--desktop {
        display: block;
        max-width: 42rem;
        margin-inline: auto;
    }

    .gose-hero__console {
        max-width: 28rem;
        margin-inline: auto;
    }
}

/* —— Safe areas (notched phones) —— */
@supports (padding: max(0px)) {
    .gose-hero {
        padding-left: max(0px, env(safe-area-inset-left));
        padding-right: max(0px, env(safe-area-inset-right));
    }
}

/* —— Landscape phones —— */
@media (max-height: 500px) and (orientation: landscape) and (max-width: 900px) {
    .gose-hero {
        min-height: auto;
        padding-top: calc(var(--gose-nav-h) + 0.75rem);
        padding-bottom: 1.5rem;
    }

    .gose-hero__logo-card {
        display: none;
    }

    .gose-hero__layout {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
        max-width: none;
    }

    .gose-hero__copy {
        text-align: left;
    }

    .gose-hero__tagline {
        font-size: 1.15rem;
        max-width: none;
        margin-inline: 0;
    }

    .gose-hero__tagline-zh {
        display: none;
    }
}

/* —— Print —— */
@media print {
    .gose-nav,
    .gose-cursor-glow,
    .gose-grain,
    .gose-board-veil,
    .gose-marquee,
    .gose-hero__scroll,
    .gose-nav__prefs,
    .gose-form {
        display: none !important;
    }

    .gose-section {
        break-inside: avoid;
        padding: 1.5rem 0;
    }
}
