/* ==========================================================================
   eGP Landing Page — Sistem e-Geospatial Perhutanan (JPSM)
   Concept: "Kanopi & Kontur" — forest canopy meets the map frame.
   ========================================================================== */

/* -------------------------------------------------------------------------
   1. Tokens
   ------------------------------------------------------------------------- */
:root {
    /* Navy (primary theme) */
    --ink: #01152D;
    --ink-950: #000A17;
    --ink-900: #010F22;
    --ink-800: #04203F;
    --ink-700: #0B2D52;
    --ink-600: #173E68;

    /* Leaf greens, taken from the JPSM logo */
    --leaf: #8CC63F;
    --leaf-soft: #B5DC6E;
    --leaf-deep: #2F9E57;
    --forest: #0E6B3B;
    --bark: #A8562B;
    --gold: #F2C230;

    /* System blue, matches the inner system's primary (theme_style.css) */
    --blue: #3366FF;
    --blue-deep: #1E3A8A;

    /* Neutrals */
    --paper: #F5F6F0;
    --paper-2: #ECEFE6;
    --text: #0E1B2B;
    --muted: #5A6878;
    --line: rgba(1, 21, 45, .12);

    /* One typeface everywhere (client: Inter). The old role names are kept so existing rules still work. */
    --f-inter: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --f-hero: var(--f-inter);
    --f-display: var(--f-inter);
    --f-body: var(--f-inter);
    --f-mono: var(--f-inter);

    --shell: 1320px;
    --gutter: clamp(16px, 4vw, 40px);
    --rail-pad: max(var(--gutter), calc((100vw - var(--shell)) / 2));
    --header-h: 84px;
    --ease: cubic-bezier(.22, 1, .36, 1);
}

/* -------------------------------------------------------------------------
   2. Base
   ------------------------------------------------------------------------- */
html {
    font-size: calc(100% * var(--font-scale, 1));
    scroll-behavior: smooth;
    scroll-padding-top: 76px;
}

body {
    margin: 0;
    font-family: var(--f-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body.is-locked {
    overflow: hidden;
}

img,
svg {
    max-width: 100%;
}

a {
    color: inherit;
}

.feather {
    width: 1.1em;
    height: 1.1em;
    stroke-width: 1.9;
    flex: none;
}

:focus-visible {
    outline: 2px solid var(--leaf);
    outline-offset: 3px;
}

::selection {
    background: var(--leaf);
    color: var(--ink);
}

.shell {
    width: 100%;
    max-width: calc(var(--shell) + var(--gutter) * 2);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.skip-link {
    position: absolute;
    left: 1rem;
    top: -100px;
    z-index: 3000;
    padding: .75rem 1.1rem;
    border-radius: 10px;
    background: var(--leaf);
    color: var(--ink);
    font-weight: 700;
    text-decoration: none;
    transition: top .25s var(--ease);
}

.skip-link:focus {
    top: 1rem;
}

/* Section headings ----------------------------------------------------- */
.section-label {
    display: inline-flex;
    align-items: center;
    gap: .75rem;
    margin: 0 0 1.4rem;
    font: 500 .72rem/1 var(--f-mono);
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--forest);
}

.section-label span {
    padding: .35rem .5rem;
    border: 1px solid currentColor;
    border-radius: 6px;
    letter-spacing: .06em;
}

.section-label::after {
    content: "";
    width: 42px;
    height: 1px;
    background: currentColor;
    opacity: .45;
}

.section-label--light {
    color: var(--leaf-soft);
}

.section-label--center {
    justify-content: center;
}

.section-title {
    margin: 0;
    font-family: var(--f-display);
    font-weight: 500;
    font-size: clamp(2rem, 4.2vw, 3.5rem);
    line-height: 1.06;
    letter-spacing: -.02em;
    color: var(--ink);
    font-variation-settings: "opsz" 120;
}

.section-title em {
    font-style: italic;
    color: var(--forest);
    background: linear-gradient(transparent 72%, rgba(140, 198, 63, .35) 72%, rgba(140, 198, 63, .35) 92%, transparent 92%);
}

/* Figma label: short gradient line, then bold Inter caps */
.section-label--line {
    gap: .9rem;
    font: 700 .78rem/1 var(--f-hero);
    letter-spacing: .06em;
    color: var(--ink);
}

.section-label--line::before {
    content: "";
    width: 42px;
    height: 3px;
    border-radius: 3px;
    background: linear-gradient(90deg, #2FD9A4, #2CCFE3);
}

.section-label--line::after {
    display: none;
}

/* Figma title: Inter Bold 48 */
.section-title--sans {
    font-family: var(--f-hero);
    font-weight: 700;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.1;
    letter-spacing: -.02em;
}

.section-title--sans em {
    font-style: normal;
    color: var(--forest);
    background: none;
}

/* On dark sections */
.section-label--line.section-label--light {
    color: #fff;
}

.section-title--sans.section-title--light em {
    color: var(--leaf-soft);
}

.section-title--light {
    color: #fff;
}

.section-title--light em {
    color: var(--leaf-soft);
    background: none;
}

.section-title--center {
    text-align: center;
    margin-inline: auto;
}

/* Buttons --------------------------------------------------------------- */
.btn-primary-leaf,
.btn-ghost,
.btn-dark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    padding: 1rem 1.55rem;
    border-radius: 999px;
    font: 700 .95rem/1 var(--f-body);
    text-decoration: none;
    transition: background-color .3s, color .3s, transform .4s var(--ease), box-shadow .4s;
}

.btn-primary-leaf {
    background: var(--leaf);
    color: var(--ink);
    box-shadow: 0 14px 34px -14px rgba(140, 198, 63, .85);
}

.btn-primary-leaf:hover {
    background: #A2D95A;
    color: var(--ink);
    transform: translateY(-2px);
}

.btn-primary-leaf .feather,
.btn-dark .feather {
    transition: transform .4s var(--ease);
}

.btn-primary-leaf:hover .feather,
.btn-dark:hover .feather {
    transform: translateX(4px);
}

.btn-ghost {
    border: 1px solid rgba(255, 255, 255, .28);
    background: rgba(255, 255, 255, .05);
    color: #fff;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, .14);
    color: #fff;
}

.btn-dark {
    background: var(--ink);
    color: #fff;
}

.btn-dark:hover {
    background: var(--ink-700);
    color: #fff;
}

.round-btn {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .22);
    background: transparent;
    color: #fff;
    transition: background-color .3s, color .3s, border-color .3s, opacity .3s;
}

.round-btn:hover:not(:disabled) {
    background: var(--leaf);
    border-color: var(--leaf);
    color: var(--ink);
}

.round-btn:disabled {
    opacity: .3;
    cursor: default;
}

/* -------------------------------------------------------------------------
   3. Federal masthead strip
   ------------------------------------------------------------------------- */
.masthead {
    position: relative;
    z-index: 60;
    background: var(--ink-950);
    color: rgba(255, 255, 255, .74);
    font-size: .78rem;
}

.masthead__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 38px;
}

.masthead__id {
    display: flex;
    align-items: center;
    gap: .6rem;
    min-width: 0;
}

.masthead__flag {
    width: 22px;
    height: 11px;
    flex: none;
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .18);
}

.masthead__toggle {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    padding: 0;
    border: 0;
    background: none;
    color: var(--leaf-soft);
    font: inherit;
    font-weight: 600;
    white-space: nowrap;
}

.masthead__toggle:hover {
    color: #fff;
}

.masthead__toggle .feather {
    transition: transform .3s var(--ease);
}

.masthead__toggle[aria-expanded="true"] .feather {
    transform: rotate(180deg);
}

.masthead__tools {
    display: flex;
    align-items: center;
    gap: .8rem;
}

.masthead__date {
    font: 400 .7rem var(--f-mono);
    color: rgba(255, 255, 255, .5);
    white-space: nowrap;
}

.a11y {
    display: flex;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 999px;
    overflow: hidden;
}

.a11y button {
    padding: .18rem .58rem;
    border: 0;
    background: none;
    color: inherit;
    font: 700 .72rem/1.4 var(--f-body);
}

.a11y button + button {
    border-left: 1px solid rgba(255, 255, 255, .14);
}

.a11y button:hover,
.a11y button.is-active {
    background: rgba(255, 255, 255, .1);
    color: #fff;
}

.a11y sup {
    top: -.4em;
    font-size: .7em;
}

.a11y__contrast {
    width: 26px;
    height: 26px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 50%;
    background: none;
    color: inherit;
}

.a11y__contrast:hover,
.a11y__contrast[aria-pressed="true"] {
    background: var(--leaf);
    border-color: var(--leaf);
    color: var(--ink);
}

.a11y__contrast .feather {
    width: 13px;
    height: 13px;
}

.masthead__panel {
    border-top: 1px solid rgba(255, 255, 255, .08);
    background: var(--ink-900);
    animation: dropIn .4s var(--ease);
}

.masthead__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem 3rem;
    padding-block: 1.3rem 1.5rem;
}

.masthead__tip {
    display: flex;
    gap: .9rem;
}

.masthead__tip-icon {
    width: 38px;
    height: 38px;
    flex: none;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: rgba(140, 198, 63, .12);
    color: var(--leaf);
}

.masthead__tip strong {
    display: block;
    margin-bottom: .2rem;
    color: #fff;
    font-size: .86rem;
}

.masthead__tip p {
    margin: 0;
    line-height: 1.6;
}

.masthead__tip b {
    color: #fff;
}

/* -------------------------------------------------------------------------
   4. Header
   ------------------------------------------------------------------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    height: var(--header-h);
    color: #fff;
    transition: height .4s var(--ease), background-color .4s, box-shadow .4s;
}

.site-header::before {
    content: "";
    position: absolute;
    inset: 0 0 -60px;
    background: linear-gradient(180deg, rgba(1, 21, 45, .72), rgba(1, 21, 45, 0));
    pointer-events: none;
    transition: opacity .4s;
}

.site-header.is-scrolled {
    --header-h: 70px;
    background: rgba(1, 21, 45, .86);
    backdrop-filter: blur(18px) saturate(150%);
    -webkit-backdrop-filter: blur(18px) saturate(150%);
    box-shadow: 0 1px 0 rgba(255, 255, 255, .06), 0 20px 40px -24px rgba(0, 0, 0, .55);
}

.site-header.is-scrolled::before {
    opacity: 0;
}

.site-header__inner {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: .9rem;
    min-width: 0;
    text-decoration: none;
    color: #fff;
}

.brand:hover {
    color: #fff;
}

.brand__crests {
    display: flex;
    align-items: center;
    gap: .7rem;
    flex: none;
}

/* JPSM logo only (Jata Negara removed per client): slightly larger so it anchors the brand on its own. */
.brand__crests img {
    height: 46px;
    width: auto;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .35));
}

.brand__text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.brand__title {
    font: 700 1.06rem/1.15 var(--f-hero);
    letter-spacing: -.01em;
    white-space: nowrap;
}

.brand__sub {
    margin-top: .3rem;
    font: 600 .62rem/1.2 var(--f-hero);
    letter-spacing: .08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .78);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav {
    display: flex;
    align-items: center;
    gap: .25rem;
    margin-left: auto;
}

.nav__link {
    position: relative;
    padding: .55rem .95rem;
    font-size: .9rem;
    font-weight: 500;
    color: rgba(255, 255, 255, .8);
    text-decoration: none;
    border-radius: 999px;
    transition: color .3s, background-color .3s;
}

.nav__link::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: .15rem;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--leaf);
    transform: translateX(-50%) scale(0);
    transition: transform .4s var(--ease);
}

.nav__link:hover,
.nav__link.is-active {
    color: #fff;
}

.nav__link:hover::after,
.nav__link.is-active::after {
    transform: translateX(-50%) scale(1);
}

.site-header__actions {
    display: flex;
    align-items: center;
    gap: .6rem;
}

.btn-login {
    display: inline-flex;
    align-items: center;
    gap: .75rem;
    padding: .38rem .38rem .38rem 1.15rem;
    border-radius: 999px;
    /* Teal-to-cyan gradient, per the Figma header */
    background: linear-gradient(90deg, #2FD9A4 0%, #2CCFE3 100%);
    color: var(--ink);
    font: 700 .88rem/1 var(--f-body);
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 10px 24px -12px rgba(44, 207, 227, .6);
    transition: transform .4s var(--ease), box-shadow .3s;
}

.btn-login:hover {
    color: var(--ink);
    transform: translateY(-1px);
    box-shadow: 0 12px 28px -10px rgba(44, 207, 227, .75);
}

.btn-login__icon {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: transparent;
    color: var(--ink);
    transition: transform .5s var(--ease), background-color .3s;
}

.btn-login:hover .btn-login__icon {
    transform: rotate(45deg);
    background: rgba(1, 21, 45, .1);
    color: var(--ink);
}

.burger {
    display: none;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 50%;
    background: rgba(255, 255, 255, .06);
    position: relative;
}

.burger span {
    position: absolute;
    left: 13px;
    right: 13px;
    height: 2px;
    border-radius: 2px;
    background: #fff;
    transition: transform .4s var(--ease), top .4s var(--ease);
}

.burger span:first-child {
    top: 18px;
}

.burger span:last-child {
    top: 26px;
}

.burger[aria-expanded="true"] span:first-child {
    top: 22px;
    transform: rotate(45deg);
}

.burger[aria-expanded="true"] span:last-child {
    top: 22px;
    transform: rotate(-45deg);
}

.site-header__progress {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    opacity: 0;
    transition: opacity .4s;
}

.site-header.is-scrolled .site-header__progress {
    opacity: 1;
}

.site-header__progress span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--leaf-deep), var(--leaf), var(--leaf-soft));
    transform-origin: left;
    transform: scaleX(var(--progress, 0));
}

/* Mobile menu ----------------------------------------------------------- */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 45;
    display: flex;
    flex-direction: column;
    padding: calc(var(--header-h) + 2.5rem) var(--gutter) 2rem;
    background:
        repeating-radial-gradient(circle at 110% 0%, transparent 0 28px, rgba(181, 220, 110, .07) 28px 29px),
        var(--ink);
    color: #fff;
    opacity: 0;
    transition: opacity .4s var(--ease);
}

.mobile-menu.is-open {
    opacity: 1;
}

.mobile-menu__nav {
    display: flex;
    flex-direction: column;
}

.mobile-menu__nav a {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    padding: .9rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
    font: 500 clamp(1.7rem, 7vw, 2.4rem)/1.1 var(--f-display);
    color: #fff;
    text-decoration: none;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .5s var(--ease), transform .5s var(--ease);
}

.mobile-menu.is-open .mobile-menu__nav a {
    opacity: 1;
    transform: none;
}

.mobile-menu__nav a:nth-child(2) { transition-delay: .05s; }
.mobile-menu__nav a:nth-child(3) { transition-delay: .1s; }
.mobile-menu__nav a:nth-child(4) { transition-delay: .15s; }

.mobile-menu__nav span {
    font: 500 .72rem var(--f-mono);
    color: var(--leaf-soft);
}

.mobile-menu__login {
    margin-top: 2rem;
    align-self: flex-start;
}

.mobile-menu__foot {
    margin-top: auto;
    font: 500 .66rem var(--f-mono);
    letter-spacing: .14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .45);
}

/* -------------------------------------------------------------------------
   5. Hero
   ------------------------------------------------------------------------- */
.hero {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    min-height: max(700px, 100svh);
    margin-top: calc(-1 * var(--header-h));
    overflow: hidden;
    background: var(--ink);
    color: #fff;
}

.hero__bg {
    position: absolute;
    inset: 0;
    z-index: -5;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 60% 50%;
    filter: saturate(1.08) brightness(1.06);
    transform: scale(1.12);
    animation: heroZoom 16s var(--ease) forwards;
}

/* Colour (r, g, b) and strength (0–1) are set from Pengurusan Web > Tetapan Seksyen Hero; the defaults are the ink colour at full strength. */
.hero__shade {
    --shade: var(--hero-shade-rgb, 1, 21, 45);
    --shade-k: var(--hero-shade-strength, 1);
    position: absolute;
    inset: 0;
    z-index: -4;
    background:
        /* Lighter than before (client comment 2, follows Figma): dark only behind the text, forest shows through on the right. */
        linear-gradient(90deg,
            rgba(var(--shade), calc(.88 * var(--shade-k))) 0%,
            rgba(var(--shade), calc(.62 * var(--shade-k))) 30%,
            rgba(var(--shade), calc(.22 * var(--shade-k))) 55%,
            rgba(var(--shade), calc(.05 * var(--shade-k))) 75%,
            rgba(var(--shade), calc(.15 * var(--shade-k))) 100%),
        linear-gradient(0deg, rgba(var(--shade), calc(.85 * var(--shade-k))) 0%, rgba(var(--shade), 0) 25%);
}

.hero__contours {
    position: absolute;
    inset: 0;
    z-index: -3;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.hero__contours path {
    fill: none;
    stroke: rgba(181, 220, 110, .16);
    stroke-width: 1;
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    animation: draw 3.2s var(--ease) forwards;
    animation-delay: var(--d, 0s);
}

.hero__contours path.is-index {
    stroke: rgba(181, 220, 110, .3);
    stroke-width: 1.4;
}

.layer {
    transition: opacity .6s var(--ease);
}

.layer.is-off {
    opacity: 0;
}

.layer--grid line {
    stroke: rgba(255, 255, 255, .1);
    stroke-width: 1;
    stroke-dasharray: 2 7;
}

.layer--kompartmen polygon {
    fill: url(#hatch);
    fill-opacity: .55;
    stroke: var(--leaf-soft);
    stroke-width: 1.6;
    stroke-dasharray: 9 6;
    animation: march 18s linear infinite;
}

.layer--kompartmen polygon.is-focus {
    fill: rgba(140, 198, 63, .2);
    fill-opacity: 1;
    stroke: #fff;
    stroke-width: 2;
    stroke-dasharray: none;
}

.layer--kompartmen text {
    font: 500 13px var(--f-mono);
    letter-spacing: .14em;
    fill: #fff;
    text-anchor: middle;
    paint-order: stroke;
    stroke: rgba(1, 21, 45, .55);
    stroke-width: 3px;
}

.layer--plot line {
    stroke: #fff;
    stroke-width: 1.4;
}

.plot__dot {
    fill: var(--leaf);
    stroke: var(--ink);
    stroke-width: 1.5;
}

.plot__ring {
    fill: none;
    stroke: #fff;
    stroke-width: 1.2;
    transform-box: fill-box;
    transform-origin: center;
    animation: ping 2.8s var(--ease) infinite;
}

.hero__grain {
    position: absolute;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    opacity: .14;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Cursor crosshair (fine pointers only, set up in JS) */
.hero__crosshair {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: 0;
    transition: opacity .35s;
}

.hero.is-tracking .hero__crosshair {
    opacity: 1;
}

.crosshair__h,
.crosshair__v,
.crosshair__ring {
    position: absolute;
}

.crosshair__h {
    left: 0;
    right: 0;
    top: var(--cy, 50%);
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .2) 20%, rgba(255, 255, 255, .2) 80%, transparent);
}

.crosshair__v {
    top: 0;
    bottom: 0;
    left: var(--cx, 50%);
    width: 1px;
    background: linear-gradient(180deg, transparent, rgba(255, 255, 255, .2) 20%, rgba(255, 255, 255, .2) 80%, transparent);
}

.crosshair__ring {
    left: var(--cx, 50%);
    top: var(--cy, 50%);
    width: 30px;
    height: 30px;
    margin: -15px 0 0 -15px;
    border: 1.5px solid var(--leaf);
    border-radius: 50%;
    box-shadow: 0 0 0 6px rgba(140, 198, 63, .12);
}

/* Hero content */
.hero__inner {
    flex: 1;
    display: grid;
    /* Text and map get half the width each (Figma) */
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: 2rem;
    padding-top: calc(var(--header-h) + 3.5rem);
    padding-bottom: 2rem;
}

.hero__content {
    max-width: 760px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .65rem;
    margin: 0;
    padding: .45rem 1rem .45rem .75rem;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 999px;
    background: rgba(255, 255, 255, .06);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    font-size: .76rem;
    font-weight: 500;
    letter-spacing: .02em;
    color: rgba(255, 255, 255, .86);
}

.eyebrow__pulse {
    position: relative;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--leaf);
}

.eyebrow__pulse::after {
    content: "";
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 1px solid var(--leaf);
    animation: ping 2.4s var(--ease) infinite;
}

.hero__title {
    margin: 1.5rem 0 1.5rem;
    font-family: var(--f-hero);
    font-weight: 700;
    font-size: clamp(2.7rem, 6.6vw, 5.0rem);
    line-height: .98;
    letter-spacing: -.03em;
    font-variation-settings: "opsz" 144;
}

.hero__line {
    position: relative;
    display: block;
    width: fit-content;
}

.hero__line > span {
    display: inline-block;
}

.hero__title em {
    display: inline-block;
    padding-right: .08em;
    font-style: italic;
    font-weight: 700;
    /* background: linear-gradient(100deg, #E4F7B5 0%, var(--leaf-soft) 35%, var(--leaf) 70%, #5DB04F 100%); */
    background: linear-gradient(100deg, #00FF26 0%, #32CFFF 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero__squiggle {
    position: absolute;
    left: 0;
    bottom: -.16em;
    width: 100%;
    height: .26em;
    overflow: visible;
}

.hero__squiggle path {
    fill: none;
    stroke: var(--leaf);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-dasharray: 600;
    stroke-dashoffset: 600;
    animation: drawLine 1.6s var(--ease) 1.1s forwards;
}

.hero__lead {
    max-width: 35rem;
    margin: 0;
    text-align: justify;
    font-size: clamp(1rem, 1.25vw, 1.17rem);
    line-height: 1.75;
    color: rgba(255, 255, 255, .78);
}

.hero__facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
    max-width: 35rem;
    margin: 3rem 0 0;
    padding-top: 1.6rem;
    border-top: 1px solid rgba(255, 255, 255, .14);
    text-align: center;
}

.hero__facts > div {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 .75rem;
}

.hero__facts > div + div {
    border-left: 1px solid rgba(255, 255, 255, .14);
}

.hero__facts dt {
    font: 700 2rem/1 var(--f-hero);
    letter-spacing: -.02em;
    color: #fff;
    font-variant-numeric: tabular-nums; /* digits keep their width while counting up */
}

.hero__facts dt span:not([data-count-up]) {
    margin: 0 .1em;
    color: var(--blue);
}

.hero__facts dd {
    margin: .45rem 0 0;
    font-size: .76rem;
    color: rgba(255, 255, 255, .6);
}

/* Hero map illustration: fills the column right of the text, out to the screen edge on wide screens. */
.hero__map {
    align-self: stretch;
    display: flex;
    flex-direction: column;
    min-width: 0;
    margin: 0 calc(var(--gutter) - var(--rail-pad)) 0 0;
}

/* A size container, so the map can fit whichever runs out first: width or height. */
.hero__map-body {
    flex: 1;
    min-height: 0;
    container-type: size;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 1570 × 1040 = the SVG viewBox: the visible part of the 1928 × 1482 map image, empty margins cropped. */
.hero__map .map-card__stage {
    width: min(100cqw, 100cqh * 1570 / 1040);
    max-width: none;
    margin: 0;
}

/* Layer switches (Pengenalan map card) */
.hud__row {
    position: relative;
    display: grid;
    grid-template-columns: 22px 1fr auto;
    align-items: center;
    gap: .75rem;
    padding: .72rem .15rem;
    border-top: 1px solid rgba(255, 255, 255, .08);
    font-size: .84rem;
    cursor: pointer;
}

.hud__row input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.swatch {
    width: 22px;
    height: 16px;
    border-radius: 4px;
}

.swatch--hatch {
    border: 1.5px dashed var(--leaf-soft);
    background: repeating-linear-gradient(45deg, rgba(181, 220, 110, .6) 0 1.5px, transparent 1.5px 5px);
}

.swatch--plot {
    width: 16px;
    margin-inline: 3px;
    border-radius: 50%;
    border: 1.5px solid #fff;
    background: radial-gradient(circle, var(--leaf) 0 3px, transparent 3.5px);
}

.swatch--grid {
    border: 1px solid rgba(255, 255, 255, .4);
    background:
        linear-gradient(rgba(255, 255, 255, .4), rgba(255, 255, 255, .4)) center / 100% 1px no-repeat,
        linear-gradient(rgba(255, 255, 255, .4), rgba(255, 255, 255, .4)) center / 1px 100% no-repeat;
}

.switch {
    position: relative;
    width: 36px;
    height: 21px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .18);
    transition: background-color .3s;
}

.switch::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: #fff;
    transition: transform .4s var(--ease), background-color .3s;
}

.hud__row input:checked + .switch {
    background: var(--leaf);
}

.hud__row input:checked + .switch::after {
    transform: translateX(15px);
    background: var(--ink);
}

.hud__row input:focus-visible + .switch {
    outline: 2px solid var(--leaf);
    outline-offset: 3px;
}

/* Hero base: scroll cue + coordinate readout */
.hero__base {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
    padding-bottom: 2.4rem;
}

.scroll-cue {
    display: inline-flex;
    align-items: center;
    gap: .9rem;
    font: 500 .66rem var(--f-mono);
    letter-spacing: .22em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .65);
    text-decoration: none;
}

.scroll-cue:hover {
    color: #fff;
}

.scroll-cue__line {
    position: relative;
    width: 1px;
    height: 46px;
    overflow: hidden;
    background: rgba(255, 255, 255, .2);
}

.scroll-cue__line::after {
    content: "";
    position: absolute;
    left: 0;
    top: -40%;
    width: 1px;
    height: 40%;
    background: var(--leaf);
    animation: scrollCue 2.2s var(--ease) infinite;
}

.readout {
    display: flex;
    align-items: center;
    gap: 1.1rem;
    padding: .65rem 1rem;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 16px;
    background: rgba(1, 21, 45, .5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.readout__north {
    width: 22px;
    height: 22px;
    fill: #fff;
}


.readout__coords {
    display: flex;
    flex-direction: column;
    min-width: 13.5rem;
}

.readout__coords small,
.readout__scale small {
    font: 500 .58rem var(--f-mono);
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--leaf-soft);
}

.readout__coords span {
    font: 500 .8rem var(--f-mono);
    font-variant-numeric: tabular-nums;
    color: #fff;
}

.readout__scale {
    display: flex;
    flex-direction: column;
    gap: .3rem;
    padding-left: 1.1rem;
    border-left: 1px solid rgba(255, 255, 255, .12);
}

.readout__scale small {
    color: rgba(255, 255, 255, .5);
    letter-spacing: .04em;
}

.readout__bar {
    display: flex;
    width: 84px;
    height: 6px;
    border: 1px solid rgba(255, 255, 255, .7);
}

.readout__bar i {
    flex: 1;
}

.readout__bar i:nth-child(odd) {
    background: #fff;
}

/* -------------------------------------------------------------------------
   6. About / Pengenalan
   ------------------------------------------------------------------------- */
.about {
    position: relative;
    padding: clamp(5rem, 10vw, 9rem) 0;
    overflow: hidden;
    background: #fff; /* client: white background for Pengenalan */
}

.about__contours {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        repeating-radial-gradient(circle at 8% 92%, transparent 0 26px, rgba(1, 21, 45, .045) 26px 27px),
        repeating-radial-gradient(circle at 96% 6%, transparent 0 22px, rgba(14, 107, 59, .05) 22px 23px);
    -webkit-mask-image: radial-gradient(60% 60% at 8% 92%, #000, transparent), radial-gradient(45% 45% at 96% 6%, #000, transparent);
    mask-image: radial-gradient(60% 60% at 8% 92%, #000, transparent), radial-gradient(45% 45% at 96% 6%, #000, transparent);
}

.about__grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr);
    gap: clamp(2.5rem, 6vw, 6rem);
    align-items: start;
}

.about__text {
    margin-top: 2rem;
    max-width: 38rem;
}

.about__text p {
    margin: 0 0 1.1rem;
    font-size: .98rem;
    line-height: 1.85;
    color: var(--muted);
    text-align: justify;
}

.about__text p.about__lead {
    font-size: 1.08rem;
    color: var(--text);
}

.about__lead::first-letter {
    float: left;
    margin: .1em .14em 0 0;
    font: 500 3.7em/.82 var(--f-display);
    color: var(--forest);
}

.pillars {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .85rem;
    margin: 2.4rem 0 0;
    padding: 0;
    list-style: none;
}

.pillar {
    position: relative;
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: .9rem;
    padding: 1.15rem 1.15rem 1.2rem;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
    transition: translate .45s var(--ease), border-color .3s, box-shadow .45s var(--ease);
}

.pillar:hover {
    translate: 0 -4px;
    border-color: rgba(140, 198, 63, .7);
    box-shadow: 0 22px 40px -26px rgba(1, 21, 45, .45);
}

.pillar__icon {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    background: rgba(140, 198, 63, .16);
    color: var(--forest);
    transition: background-color .3s, color .3s;
}

.pillar:hover .pillar__icon {
    background: var(--ink);
    color: var(--leaf);
}

.pillar h3 {
    margin: .1rem 0 .3rem;
    font: 600 1.06rem/1.2 var(--f-display);
    color: var(--ink);
}

.pillar p {
    margin: 0;
    font-size: .83rem;
    line-height: 1.6;
    color: var(--muted);
}

.pillar__no {
    position: absolute;
    top: .95rem;
    right: 1rem;
    font: 500 .62rem var(--f-mono);
    color: rgba(1, 21, 45, .3);
}

/* Map card */
.about__visual {
    position: sticky;
    top: 96px;
}

.map-card {
    position: relative;
    margin: 0;
    padding: 1.6rem 1.6rem 1.4rem;
    overflow: hidden;
    border-radius: 30px;
    background:
        radial-gradient(80% 60% at 100% 0%, rgba(140, 198, 63, .16), transparent 60%),
        radial-gradient(60% 50% at 0% 100%, rgba(23, 62, 104, .8), transparent 70%),
        var(--ink);
    color: #fff;
    box-shadow: 0 50px 90px -50px rgba(1, 21, 45, .75);
}

.map-card__head {
    display: flex;
    flex-direction: column;
}

.map-card__kicker {
    font: 500 .66rem var(--f-mono);
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--leaf-soft);
}

.map-card__head strong {
    font: 500 1.65rem/1.2 var(--f-display);
}

.map-card__stage {
    position: relative;
    max-width: 440px;
    margin: .25rem auto 0;
}

.peninsula {
    display: block;
    width: 100%;
    height: auto;
    overflow: visible;
}

.peninsula__img {
    transition: opacity 1.2s var(--ease), transform 1.6s var(--ease);
    transform-origin: 50% 50%;
}

.js .peninsula:not(.is-drawn) .peninsula__img {
    opacity: 0;
    transform: scale(.97);
}

.peninsula__hq,
.peninsula__pins {
    transition: opacity .6s var(--ease) 1.2s;
}

.js .peninsula:not(.is-drawn) .peninsula__hq,
.js .peninsula:not(.is-drawn) .peninsula__pins {
    opacity: 0;
}

.pin {
    cursor: default;
    outline: none;
}

/* States with a Google Maps link (LandingController::STATE_MAP_LINKS) */
.pin--link {
    cursor: pointer;
}

/* The white dot is part of the image; pins add a pulse and a highlight ring around it. */
.pin__pulse {
    fill: none;
    stroke: #7FE7FF;
    stroke-width: 3;
    transform-box: fill-box;
    transform-origin: center;
    animation: ping 3s var(--ease) infinite;
}

.pin__ring {
    fill: rgba(44, 207, 227, .25);
    stroke: #fff;
    stroke-width: 4;
    opacity: 0;
    transform: scale(.6);
    transform-box: fill-box;
    transform-origin: center;
    transition: opacity .3s, transform .4s var(--ease);
}

.pin.is-active .pin__ring,
.pin:focus-visible .pin__ring {
    opacity: 1;
    transform: scale(1.5);
}

.pin__hit {
    fill: transparent;
}

.pin:focus-visible rect.pin__hit {
    stroke: #fff;
    stroke-width: 3;
}

/* Points not in the image (WP Kuala Lumpur): drawn to match the illustration's labels. */
.pin__leader {
    fill: none;
    stroke: rgba(225, 240, 255, .9);
    stroke-width: 2;
}

.pin__label {
    fill: rgba(6, 22, 48, .94);
    stroke: #46AAFF;
    stroke-width: 2;
    filter: drop-shadow(0 0 6px rgba(70, 170, 255, .55));
}

.pin__label-text {
    font: 700 21px var(--f-hero);
    letter-spacing: .01em;
    fill: #fff;
}

.pin__own-dot {
    fill: #fff;
    filter: drop-shadow(0 0 5px rgba(127, 231, 255, .9));
}

.hq__mark {
    fill: var(--gold);
    stroke: var(--ink);
    stroke-width: 3;
}

.hq__pulse {
    fill: none;
    stroke: var(--gold);
    stroke-width: 3;
    transform-box: fill-box;
    transform-origin: center;
    animation: ping 2.4s var(--ease) infinite;
}

.map-card__tip {
    position: absolute;
    z-index: 2;
    padding: .45rem .75rem;
    border-radius: 10px;
    background: #fff;
    color: var(--ink);
    font-size: .78rem;
    line-height: 1.3;
    white-space: nowrap;
    pointer-events: none;
    transform: translate(-50%, calc(-100% - 14px));
    box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .5);
}

.map-card__tip strong {
    display: block;
    font: 600 .9rem var(--f-display);
}

.map-card__tip small {
    font: 500 .64rem var(--f-mono);
    color: var(--muted);
}

.map-card__tip-hint {
    display: block;
    margin-top: .25rem;
    font-size: .68rem;
    font-weight: 600;
    color: var(--blue);
}

.map-card__tip::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 100%;
    border: 6px solid transparent;
    border-top-color: #fff;
    transform: translateX(-50%);
}

/* Petak hutan: the forest layers over a crop of the hero photo. */
.map-card__layers {
    position: relative;
    aspect-ratio: 4 / 3;
    margin-top: 1.1rem;
    overflow: hidden;
    border-radius: 18px;
    background: var(--ink-800);
}

.map-card__layers img,
.map-card__layers svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.map-card__layers img {
    object-fit: cover;
    object-position: 80% 35%;
    filter: brightness(.6) saturate(.9);
}

.map-card__toggles {
    margin-top: .6rem;
}

.map-card__stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1.4rem;
    padding-top: 1.2rem;
    border-top: 1px solid rgba(255, 255, 255, .1);
}

.map-card__stats strong {
    display: block;
    font: 500 1.75rem/1 var(--f-display);
}

.map-card__stats small {
    font-size: .5em;
    color: var(--leaf-soft);
}

.map-card__stats span {
    display: block;
    margin-top: .4rem;
    font-size: .72rem;
    line-height: 1.4;
    color: rgba(255, 255, 255, .58);
}

/* -------------------------------------------------------------------------
   7. Module slider
   ------------------------------------------------------------------------- */
.modules {
    position: relative;
    padding: clamp(5rem, 9vw, 8rem) 0 clamp(4rem, 7vw, 6rem);
    overflow: hidden;
    background: var(--ink);
    color: #fff;
}

.modules__glow {
    position: absolute;
    top: -320px;
    right: -260px;
    width: 900px;
    height: 900px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(140, 198, 63, .17), transparent 62%);
    pointer-events: none;
}

.modules__head {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 3rem;
}

.modules__head .section-title {
    max-width: 14em;
}

.modules__controls {
    display: flex;
    align-items: center;
    gap: .7rem;
    flex: none;
}

.modules__count {
    margin-right: .8rem;
    font: 500 .85rem var(--f-mono);
    color: rgba(255, 255, 255, .45);
}

.modules__count b {
    font-weight: 500;
    color: #fff;
}

.modules__rail {
    position: relative;
    display: flex;
    gap: 1.25rem;
    padding: .75rem var(--rail-pad) 2.2rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--rail-pad);
    scrollbar-width: none;
    cursor: grab;
    outline-offset: -4px;
}

.modules__rail::-webkit-scrollbar {
    display: none;
}

.modules__rail.is-dragging {
    scroll-snap-type: none;
    cursor: grabbing;
    user-select: none;
}

.module-card {
    position: relative;
    flex: 0 0 clamp(288px, 30vw, 410px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 26px;
    background: linear-gradient(180deg, var(--ink-800), var(--ink-900));
    scroll-snap-align: start;
    transition: transform .55s var(--ease), border-color .4s, box-shadow .55s var(--ease);
}

.module-card:hover {
    transform: translateY(-8px);
    border-color: rgba(140, 198, 63, .45);
    box-shadow: 0 40px 70px -40px rgba(0, 0, 0, .8), 0 0 0 1px rgba(140, 198, 63, .12);
}

.module-card__art {
    aspect-ratio: 400 / 240;
    border-bottom: 1px solid rgba(255, 255, 255, .06);
    background:
        radial-gradient(120% 90% at 20% 0%, rgba(140, 198, 63, .12), transparent 60%),
        linear-gradient(180deg, #072748, #04203F);
}

.module-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: .6rem;
    padding: 1.5rem 1.6rem 1.7rem;
}

.module-card__no {
    font: 500 .7rem var(--f-mono);
    letter-spacing: .16em;
    color: var(--leaf-soft);
}

.module-card h3 {
    margin: 0;
    font: 500 1.45rem/1.2 var(--f-display);
}

.module-card p {
    margin: 0;
    font-size: .9rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, .64);
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    margin: auto 0 0;
    padding: .9rem 0 0;
    list-style: none;
}

.tags li {
    padding: .32rem .62rem;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 999px;
    font: 500 .64rem var(--f-mono);
    letter-spacing: .08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .7);
}

.module-card--cta {
    border: 0;
    background:
        repeating-radial-gradient(circle at 100% 0%, transparent 0 24px, rgba(1, 21, 45, .08) 24px 25px),
        var(--leaf);
    color: var(--ink);
}

.module-card--cta:hover {
    border-color: transparent;
}

.module-card__cta {
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    gap: 1rem;
    padding: 2rem 1.8rem;
}

.module-card__cta img {
    width: 54px;
    height: auto;
    margin-bottom: auto;
    padding: 6px;
    border-radius: 14px;
    background: #fff;
}

.module-card__cta h3 {
    font-size: 1.95rem;
    line-height: 1.12;
}

.module-card__cta p {
    color: rgba(1, 21, 45, .72);
}

.module-card__register {
    font-size: .84rem;
    font-weight: 600;
    color: var(--ink);
    text-underline-offset: 3px;
}

.modules__progress {
    height: 2px;
    overflow: hidden;
    border-radius: 2px;
    background: rgba(255, 255, 255, .1);
}

.modules__progress span {
    display: block;
    width: 30%;
    height: 100%;
    border-radius: 2px;
    background: var(--leaf);
    transition: transform .2s linear;
}

/* Module illustrations */
.art {
    display: block;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.art text {
    font-family: var(--f-mono);
}

.art-contours path {
    fill: none;
    stroke: rgba(181, 220, 110, .12);
    stroke-width: 1;
}

.art-poly polygon {
    fill: rgba(140, 198, 63, .08);
    stroke: rgba(181, 220, 110, .7);
    stroke-width: 1.2;
    stroke-dasharray: 5 4;
}

.art-poly .is-hot {
    fill: rgba(140, 198, 63, .26);
    stroke: var(--leaf);
    stroke-dasharray: none;
}

.art-measure line {
    stroke: #fff;
    stroke-width: 1.4;
    stroke-dasharray: 3 4;
}

.art-measure circle,
.art-measure rect {
    fill: #fff;
}

.art-measure text {
    font-size: 9.5px;
    font-weight: 600;
    fill: var(--ink);
    text-anchor: middle;
}

.art-pin {
    transform: translate(262px, 52px);
    transition: transform .5s var(--ease);
}

.art-pin path {
    fill: var(--leaf);
}

.art-pin circle {
    fill: var(--ink);
}

.module-card:hover .art-pin {
    transform: translate(262px, 46px);
}

.art-ui rect {
    fill: rgba(255, 255, 255, .07);
    stroke: rgba(255, 255, 255, .16);
}

.art-ui path {
    fill: none;
    stroke: #fff;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.stack {
    transition: transform .6s var(--ease);
}

.stack > path:first-child {
    stroke-width: 1.3;
    stroke-linejoin: round;
}

.stack--1 > path:first-child { fill: rgba(140, 198, 63, .24); stroke: var(--leaf); }
.stack--2 > path:first-child { fill: rgba(16, 52, 92, .92); stroke: rgba(255, 255, 255, .5); }
.stack--3 > path:first-child { fill: rgba(10, 40, 74, .92); stroke: rgba(255, 255, 255, .3); }

.stack-grid {
    fill: none;
    stroke: rgba(181, 220, 110, .4);
    stroke-width: .8;
}

.stack--2 polygon {
    fill: rgba(255, 255, 255, .16);
    stroke: #fff;
    stroke-width: 1;
}

.stack--3 circle {
    fill: var(--leaf-soft);
}

.module-card:hover .stack--1 { transform: translateY(-8px); }
.module-card:hover .stack--3 { transform: translateY(6px); }

.art-callouts path {
    stroke: rgba(255, 255, 255, .35);
    stroke-dasharray: 2 3;
}

.art-callouts text {
    font-size: 9.5px;
    fill: rgba(255, 255, 255, .75);
}

.px--0 { fill: #1D5A37; }
.px--1 { fill: #2A7444; }
.px--2 { fill: #3B8D4F; }
.px--3 { fill: #57A65C; }
.px--cut { fill: #B9844F; }

.px-frame {
    fill: none;
    stroke: var(--gold);
    stroke-width: 1.6;
    stroke-dasharray: 5 4;
}

.swipe-bar {
    stroke: #fff;
    stroke-width: 2;
}

.swipe-knob {
    fill: #fff;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .4));
}

.swipe-arrows {
    fill: none;
    stroke: var(--ink);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.swipe-tag {
    font-size: 8.5px;
    letter-spacing: .14em;
    fill: rgba(255, 255, 255, .7);
}

.art-swipe {
    transition: transform .6s var(--ease);
}

.doc {
    fill: rgba(255, 255, 255, .06);
    stroke: rgba(255, 255, 255, .18);
}

.doc-head { fill: rgba(255, 255, 255, .8); }
.doc-line { fill: rgba(255, 255, 255, .22); }

.pill { stroke-width: 1; }
.pill--ok { fill: rgba(140, 198, 63, .18); stroke: var(--leaf); }
.pill--wait { fill: rgba(242, 194, 48, .14); stroke: var(--gold); }
.pill--new { fill: none; stroke: rgba(255, 255, 255, .4); }

.pill-text {
    font-size: 8.5px;
    font-weight: 500;
    text-anchor: middle;
}

.pill-text--ok { fill: var(--leaf-soft); }
.pill-text--wait { fill: var(--gold); }
.pill-text--new { fill: rgba(255, 255, 255, .75); }

.art-check circle {
    fill: var(--leaf);
    filter: drop-shadow(0 10px 18px rgba(140, 198, 63, .35));
}

.art-check path {
    fill: none;
    stroke: var(--ink);
    stroke-width: 4;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 40;
    stroke-dashoffset: 0;
}

.module-card:hover .art-check path {
    animation: drawCheck .7s var(--ease);
}

.art-bars rect {
    fill: rgba(255, 255, 255, .16);
    transform-box: fill-box;
    transform-origin: bottom;
    transition: transform .9s var(--ease) calc(var(--i) * 60ms);
}

.art-bars rect:nth-of-type(6) {
    fill: var(--leaf);
}

.art-bars line {
    stroke: rgba(255, 255, 255, .25);
}

.js .module-card:not(.is-in) .art-bars rect {
    transform: scaleY(.15);
}

.art-donut circle {
    fill: none;
    stroke-width: 12;
}

.donut-track { stroke: rgba(255, 255, 255, .1); }

.donut-a {
    stroke: var(--leaf);
    stroke-dasharray: 72 28;
    transform: rotate(-90deg);
}

.donut-b {
    stroke: var(--gold);
    stroke-dasharray: 12 88;
    stroke-dashoffset: -72;
    transform: rotate(-90deg);
}

.art-donut text {
    font: 500 18px var(--f-display);
    fill: #fff;
    text-anchor: middle;
}

.art-spark path {
    fill: none;
    stroke: var(--leaf-soft);
    stroke-width: 2;
    stroke-linejoin: round;
}

.art-spark circle {
    fill: var(--leaf);
}

.art-trail {
    fill: none;
    stroke: #fff;
    stroke-width: 2;
    stroke-dasharray: 6 6;
    animation: march 14s linear infinite reverse;
}

.art-wp circle {
    fill: var(--ink);
    stroke: var(--leaf);
    stroke-width: 2;
}

.art-wp text {
    font-size: 9px;
    font-weight: 500;
    fill: #fff;
    text-anchor: middle;
}

.art-wp.is-end circle {
    fill: var(--leaf);
    stroke: var(--ink);
}

.art-wp.is-end text {
    fill: var(--ink);
}

.art-photo rect:first-child {
    fill: rgba(255, 255, 255, .1);
    stroke: rgba(255, 255, 255, .5);
}

.art-photo rect:last-child {
    fill: rgba(255, 255, 255, .5);
}

.art-photo circle {
    fill: none;
    stroke: var(--leaf);
    stroke-width: 2;
}

.art-kml rect {
    fill: var(--gold);
}

.art-kml text {
    font-size: 10px;
    font-weight: 600;
    fill: var(--ink);
    text-anchor: middle;
}

/* -------------------------------------------------------------------------
   8. Galeri
   ------------------------------------------------------------------------- */
.galeri {
    padding: clamp(5rem, 9vw, 8rem) 0 clamp(1.5rem, 3vw, 2.5rem);
    background: #fff;
}

.galeri__head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem 2rem;
    margin-bottom: 2.6rem;
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.chip {
    padding: .6rem 1.15rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    color: var(--text);
    font: 600 .82rem/1 var(--f-body);
    transition: background-color .3s, color .3s, border-color .3s;
}

.chip:hover {
    border-color: var(--ink);
}

.chip.is-active {
    background: var(--ink);
    border-color: var(--ink);
    color: #fff;
}

.bento {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-auto-rows: 150px;
    gap: 1rem;
    transition: opacity .3s;
}

.tile {
    position: relative;
    isolation: isolate;
    grid-column: span 4;
    grid-row: span 2;
    overflow: hidden;
    padding: 0;
    border: 0;
    border-radius: 22px;
    background:
        repeating-radial-gradient(circle at 70% 30%, transparent 0 18px, rgba(181, 220, 110, .12) 18px 19px),
        var(--ink-700);
    color: #fff;
    text-align: left;
    cursor: pointer;
}

.tile__media {
    position: absolute;
    inset: 0;
    z-index: -2;
}

.tile__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s var(--ease);
}

.tile:hover .tile__media img {
    transform: scale(1.06);
}

.tile__shade {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(1, 21, 45, .05) 30%, rgba(1, 21, 45, .9) 100%);
    transition: background-color .4s;
}

.tile:hover .tile__shade {
    background-color: rgba(1, 21, 45, .15);
}

.tile__year {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: .38rem .7rem;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 999px;
    background: rgba(1, 21, 45, .5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    font: 500 .68rem/1 var(--f-mono);
    letter-spacing: .08em;
}

.tile__body {
    position: absolute;
    left: 1.3rem;
    right: 4.6rem;
    bottom: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: .45rem;
}

.tile__title {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font: 500 1.12rem/1.28 var(--f-display);
}

.tile.is-xl .tile__title {
    font-size: clamp(1.4rem, 2.2vw, 1.95rem);
}

.tile__meta {
    display: flex;
    align-items: center;
    gap: .4rem;
    font: 500 .7rem var(--f-mono);
    letter-spacing: .04em;
    color: rgba(255, 255, 255, .72);
}

.tile__go {
    position: absolute;
    right: 1.1rem;
    bottom: 1.1rem;
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #fff;
    color: var(--ink);
    transition: transform .5s var(--ease), background-color .3s;
}

.tile:hover .tile__go {
    background: var(--leaf);
    transform: rotate(45deg);
}

.galeri__empty {
    display: grid;
    place-items: center;
    gap: .6rem;
    padding: 4rem 1rem;
    border: 1px dashed var(--line);
    border-radius: 22px;
    color: var(--muted);
}

.galeri__empty .feather {
    width: 32px;
    height: 32px;
}

/* Lightbox ---------------------------------------------------------------- */
.lb {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    background: rgba(0, 9, 20, .95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #fff;
    animation: fadeIn .35s var(--ease);
}

.lb[hidden] {
    display: none;
}

.lb__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.2rem 1.5rem;
}

.lb__count {
    font: 500 .7rem var(--f-mono);
    letter-spacing: .12em;
    color: var(--leaf-soft);
}

.lb__title {
    max-width: 60ch;
    margin: .25rem 0 0;
    font: 500 clamp(1.05rem, 2vw, 1.35rem)/1.3 var(--f-display);
}

.lb__btn {
    width: 48px;
    height: 48px;
    flex: none;
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 50%;
    background: rgba(255, 255, 255, .06);
    color: #fff;
    transition: background-color .3s, color .3s, opacity .3s;
}

.lb__btn:hover {
    background: var(--leaf);
    border-color: var(--leaf);
    color: var(--ink);
}

.lb__btn[hidden] {
    display: none;
}

.lb__stage {
    position: relative;
    flex: 1;
    min-height: 0;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0 1.5rem;
}

.lb__figure {
    position: relative;
    flex: 1;
    min-width: 0;
    height: 100%;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lb__figure img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8);
    transition: opacity .35s var(--ease), transform .5s var(--ease);
}

.lb__figure img.is-loading {
    opacity: 0;
    transform: scale(.98);
}

.lb__figure img:not([src]) {
    display: none;
}

.lb__spinner {
    position: absolute;
    width: 38px;
    height: 38px;
    border: 2px solid rgba(255, 255, 255, .18);
    border-top-color: var(--leaf);
    border-radius: 50%;
    opacity: 0;
    animation: spin .8s linear infinite;
    transition: opacity .3s;
}

.lb.is-busy .lb__spinner {
    opacity: 1;
}

.lb__empty {
    font-size: .95rem;
    color: rgba(255, 255, 255, .7);
}

.lb__thumbs {
    display: flex;
    gap: .5rem;
    padding: 1rem 1.5rem 1.4rem;
    overflow-x: auto;
    scrollbar-width: thin;
    justify-content: safe center;
}

.lb__thumbs button {
    width: 76px;
    height: 54px;
    flex: none;
    overflow: hidden;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 9px;
    background: var(--ink-700);
    opacity: .45;
    transition: opacity .3s, border-color .3s;
}

.lb__thumbs button:hover {
    opacity: .8;
}

.lb__thumbs button.is-active {
    border-color: var(--leaf);
    opacity: 1;
}

.lb__thumbs img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* -------------------------------------------------------------------------
   9. Visitor counter
   ------------------------------------------------------------------------- */
.visitors {
    position: relative;
    padding: clamp(5rem, 9vw, 7.5rem) 0 clamp(15rem, 27vw, 26rem);
    overflow: hidden;
    background: #fff url("../img/landing/visitor-bg.jpg") center bottom / 100% auto no-repeat;
    text-align: center;
}

.visitors::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 38%;
    background: linear-gradient(180deg, rgba(1, 21, 45, 0), rgba(1, 21, 45, .55) 55%, var(--ink));
    pointer-events: none;
}

.visitors__inner {
    position: relative;
    z-index: 1;
}

.visitors .section-title {
    max-width: 16em;
}

.odometer {
    display: inline-flex;
    align-items: stretch;
    gap: clamp(.25rem, .8vw, .5rem);
    margin-top: 2.6rem;
    font: 500 clamp(3rem, 9vw, 7.2rem)/1 var(--f-display);
    font-variant-numeric: tabular-nums lining-nums;
    color: var(--ink);
}

.odo {
    position: relative;
    display: inline-block;
    width: .78em;
    height: 1.15em;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: .14em;
    background: linear-gradient(180deg, #fff 0%, #F3F6F8 50%, #EBF0F3 50%, #fff 100%);
    box-shadow: 0 24px 40px -26px rgba(1, 21, 45, .45), inset 0 1px 0 #fff;
}

.odo::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 1px;
    background: rgba(1, 21, 45, .08);
}

.odo.is-lead {
    color: rgba(1, 21, 45, .16);
}

.odo__reel {
    display: flex;
    flex-direction: column;
    transform: translateY(calc(var(--n, 0) * -1.15em));
    transition: transform 2.4s cubic-bezier(.16, 1, .3, 1) calc(var(--i, 0) * 110ms);
}

.js .odometer:not(.is-run) .odo__reel {
    transform: translateY(0);
}

.odo__reel span {
    height: 1.15em;
    display: flex;
    align-items: center;
    justify-content: center;
}

.odo__sep {
    align-self: flex-end;
    margin: 0 -.06em;
    font-size: .5em;
    line-height: 1;
    color: var(--muted);
}

.visit-stats {
    display: inline-grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 2.6rem;
}

.visit-stat {
    display: flex;
    align-items: center;
    gap: .9rem;
    padding: 1rem 1.5rem 1rem 1rem;
    border: 1px solid rgba(1, 21, 45, .08);
    border-radius: 20px;
    background: rgba(255, 255, 255, .72);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    text-align: left;
    box-shadow: 0 20px 40px -30px rgba(1, 21, 45, .5);
}

.visit-stat__icon {
    width: 46px;
    height: 46px;
    flex: none;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: var(--ink);
    color: var(--leaf);
}


.visit-stat strong {
    display: block;
    font: 500 1.55rem/1.1 var(--f-display);
    font-variant-numeric: tabular-nums;
    color: var(--ink);
}

.visit-stat span {
    font-size: .76rem;
    color: var(--muted);
    white-space: nowrap;
}

/* -------------------------------------------------------------------------
   10. Footer
   ------------------------------------------------------------------------- */
.site-footer {
    position: relative;
    overflow: hidden;
    padding-top: clamp(4rem, 7vw, 5.5rem);
    background: var(--ink);
    color: rgba(255, 255, 255, .72);
    /* Footer type scale (Inter): name 1.25rem/700, headings .78rem/700 caps, body .9rem/1.7 */
    font-size: .9rem;
    line-height: 1.7;
}

.footer__top {
    display: grid;
    grid-template-columns: 1.35fr .75fr 1fr 1.25fr;
    align-items: start;
    gap: 3rem;
    padding-bottom: 2.5rem;
}

.footer__crests {
    display: flex;
    align-items: center;
    gap: .9rem;
    margin-bottom: 1.25rem;
}

/* JPSM logo only (Jata Negara removed per client) */
.footer__crests img {
    height: 58px;
    width: auto;
}

.footer__name {
    margin: 0;
    font: 700 1.25rem/1.25 var(--f-hero);
    letter-spacing: -.01em;
    color: #fff;
}

.footer__dept {
    margin: .4rem 0 1.1rem;
    font: 600 .7rem/1.3 var(--f-hero);
    letter-spacing: .08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .78);
}

.footer__blurb {
    max-width: 24rem;
    margin: 0;
    /* text-align: justify; */
}

.socials {
    display: flex;
    gap: .5rem;
    margin-top: 1.5rem;
}

.socials a {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 50%;
    color: #fff;
    transition: background-color .3s, color .3s, border-color .3s, transform .4s var(--ease);
}

.socials a:hover {
    background: var(--leaf);
    border-color: var(--leaf);
    color: var(--ink);
    transform: translateY(-3px);
}

.socials svg {
    width: 17px;
    height: 17px;
}

.footer__heading {
    /* Line height matches a 36px contact icon row so all columns start level */
    margin: 0 0 1.25rem;
    font: 700 .78rem/1.3 var(--f-hero);
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #fff;
}

.footer__col ul {
    display: grid;
    gap: .85rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer__col a {
    color: rgba(255, 255, 255, .7);
    text-decoration: none;
    transition: color .25s;
}

.footer__col a:hover {
    color: var(--leaf-soft);
}

.contact-list li {
    display: flex;
    align-items: flex-start;
    gap: .85rem;
}

.contact-list__icon {
    width: 36px;
    height: 36px;
    flex: none;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: rgba(140, 198, 63, .12);
    color: var(--leaf);
}

.contact-list address,
.contact-list a {
    margin: 0;
    padding-top: .45rem;
    font-style: normal;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.footer__map {
    position: relative;
    min-height: 240px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 22px;
    background: var(--ink-800);
}

.footer__map iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    filter: grayscale(1) invert(.9) hue-rotate(180deg) contrast(.9) brightness(.95);
    transition: filter .6s var(--ease);
}

.footer__map:hover iframe {
    filter: none;
}

.footer__map-tag {
    position: absolute;
    top: .8rem;
    right: .8rem;
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .45rem .75rem;
    border-radius: 999px;
    background: var(--leaf);
    color: var(--ink);
    font: 600 .75rem/1 var(--f-body);
    pointer-events: none;
}

/* CMS footer text only (Pengurusan Web > Footer), centred */
.footer__bottom {
    position: relative;
    padding: 1.6rem 0 2rem;
    border-top: 1px solid rgba(255, 255, 255, .1);
    font-size: .85rem;
    text-align: center;
}

.footer__legal p {
    margin: 0;
    line-height: 1.7;
    color: rgba(255, 255, 255, .85);
}

/* Floating back-to-top button (client: should stay visible while scrolling) */
.to-top {
    position: fixed;
    right: clamp(16px, 2.5vw, 32px);
    bottom: clamp(16px, 2.5vw, 32px);
    z-index: 40; /* under the mobile menu (45), modals and the lightbox */
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--leaf);
    color: var(--ink);
    box-shadow: 0 12px 28px -10px rgba(0, 0, 0, .55);
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px);
    transition: opacity .35s var(--ease), transform .4s var(--ease), visibility 0s linear .35s;
}

.to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity .35s var(--ease), transform .4s var(--ease), visibility 0s;
}

.to-top:hover,
.to-top:focus-visible {
    color: var(--ink);
    transform: translateY(-4px);
}

.to-top svg {
    width: 20px;
    height: 20px;
}

@media print {
    .to-top {
        display: none;
    }
}

/* -------------------------------------------------------------------------
   11. Mobile app modal
   ------------------------------------------------------------------------- */
.app-modal .modal-content {
    position: relative;
    overflow: hidden;
    border: 0;
    border-radius: 30px;
    background: var(--paper);
    box-shadow: 0 60px 120px -40px rgba(0, 0, 0, .6);
}

.modal-backdrop.show {
    opacity: .7;
    background: var(--ink-950);
}

.app-modal__close {
    position: absolute;
    top: 1.1rem;
    right: 1.1rem;
    z-index: 5;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #fff;
    color: var(--ink);
    transition: transform .4s var(--ease), background-color .3s;
}

.app-modal__close:hover {
    background: var(--leaf);
    transform: rotate(90deg);
}

.app-modal__grid {
    display: grid;
    grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
    min-height: 560px;
}

.app-modal__copy {
    padding: 3rem 3rem 2.6rem;
}

.app-modal__title {
    margin: 0 0 .8rem;
    font: 500 clamp(2rem, 3.4vw, 2.8rem)/1.05 var(--f-display);
    letter-spacing: -.02em;
    color: var(--ink);
}

.app-modal__sub {
    max-width: 36ch;
    margin: 0;
    color: var(--muted);
}

.store__btn {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .75rem 1rem;
    border-radius: 14px;
    background: var(--ink);
    color: #fff;
    font: 700 1.05rem/1.15 var(--f-body);
    text-decoration: none;
    transition: transform .4s var(--ease), background-color .3s;
}

.store__btn:hover {
    color: #fff;
    background: var(--ink-700);
    transform: translateY(-2px);
}

.store__btn svg {
    width: 26px;
    height: 26px;
    flex: none;
}

.store__btn small {
    display: block;
    font: 500 .6rem var(--f-mono);
    letter-spacing: .1em;
    text-transform: uppercase;
    opacity: .7;
}

.store__btn.is-soon {
    border: 1px dashed rgba(1, 21, 45, .3);
    background: transparent;
    color: var(--ink);
    cursor: not-allowed;
}

.store__btn.is-soon:hover {
    transform: none;
}

.app-modal__visual {
    position: relative;
    display: grid;
    place-items: center;
    overflow: hidden;
    background:
        radial-gradient(60% 50% at 50% 45%, rgba(140, 198, 63, .25), transparent 70%),
        repeating-radial-gradient(circle at 50% 45%, transparent 0 34px, rgba(181, 220, 110, .07) 34px 35px),
        var(--ink);
}

.app-modal__orbit {
    position: absolute;
    width: 460px;
    height: 460px;
    border: 1px dashed rgba(181, 220, 110, .3);
    border-radius: 50%;
    animation: spin 70s linear infinite;
}

.app-modal__orbit::before {
    content: "";
    position: absolute;
    top: 50%;
    left: -6px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--leaf);
    box-shadow: 0 0 0 6px rgba(140, 198, 63, .2);
}

.phone {
    position: relative;
    z-index: 1;
    width: 240px;
    aspect-ratio: 240 / 490;
    padding: 10px;
    border-radius: 40px;
    background: #0A0E13;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .14), 0 50px 90px -30px rgba(0, 0, 0, .75);
    transform: rotate(-5deg);
}

.phone__notch {
    position: absolute;
    top: 18px;
    left: 50%;
    z-index: 2;
    width: 76px;
    height: 22px;
    border-radius: 20px;
    background: #0A0E13;
    transform: translateX(-50%);
}

.phone__screen {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 31px;
    background: linear-gradient(180deg, #0B2A4C, #072040);
}

.phone__bar {
    display: flex;
    align-items: center;
    gap: .4rem;
    padding: 44px 14px 8px;
    font: 700 .76rem var(--f-body);
    color: #fff;
}

.phone__rec {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #FF4D4D;
    animation: blink 1.4s ease-in-out infinite;
}

.phone__time {
    margin-left: auto;
    padding: .15rem .45rem;
    border-radius: 999px;
    background: var(--leaf);
    color: var(--ink);
    font: 600 .56rem var(--f-mono);
}

.phone__map {
    flex: 1;
    width: 100%;
    min-height: 0;
}

.phone__contours path {
    fill: none;
    stroke: rgba(181, 220, 110, .18);
}

.phone__poly {
    fill: rgba(140, 198, 63, .14);
    stroke: var(--leaf-soft);
    stroke-dasharray: 4 3;
}

.phone__trail {
    fill: none;
    stroke: #fff;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-dasharray: 340;
    stroke-dashoffset: 340;
}

.app-modal.show .phone__trail {
    animation: drawLine 2.4s var(--ease) .3s forwards;
}

.phone__wp {
    fill: #fff;
    stroke: var(--ink);
    stroke-width: 2;
}

.phone__pulse {
    fill: rgba(140, 198, 63, .3);
    transform-box: fill-box;
    transform-origin: center;
    animation: ping 2s var(--ease) infinite;
}

.phone__me {
    fill: var(--leaf);
    stroke: #fff;
    stroke-width: 3;
}

.phone__panel {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin: 0 10px 12px;
    padding: .65rem .4rem;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 18px;
    background: rgba(255, 255, 255, .08);
    color: #fff;
    text-align: center;
}

.phone__panel small {
    display: block;
    font: 500 .5rem var(--f-mono);
    letter-spacing: .1em;
    text-transform: uppercase;
    opacity: .6;
}

.phone__panel b {
    font: 500 .95rem var(--f-display);
}

/* -------------------------------------------------------------------------
   12. Motion
   ------------------------------------------------------------------------- */
.js [data-hero-in] {
    opacity: 0;
    transform: translateY(26px);
    animation: rise 1.1s var(--ease) forwards;
    animation-delay: var(--d, .1s);
}

.js [data-reveal] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s var(--ease), transform 1s var(--ease);
    transition-delay: var(--d, 0ms);
}

.js [data-reveal].is-in {
    opacity: 1;
    transform: none;
}

@keyframes rise {
    to { opacity: 1; transform: none; }
}

@keyframes heroZoom {
    to { transform: scale(1.02); }
}

@keyframes draw {
    to { stroke-dashoffset: 0; }
}

@keyframes drawLine {
    to { stroke-dashoffset: 0; }
}

@keyframes drawCheck {
    from { stroke-dashoffset: 40; }
    to { stroke-dashoffset: 0; }
}

@keyframes march {
    to { stroke-dashoffset: -300; }
}

@keyframes ping {
    0% { transform: scale(.6); opacity: .9; }
    80%, 100% { transform: scale(2.1); opacity: 0; }
}

@keyframes scrollCue {
    to { top: 100%; }
}

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

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes blink {
    50% { opacity: .25; }
}

@keyframes fadeIn {
    from { opacity: 0; }
}

@keyframes dropIn {
    from { opacity: 0; transform: translateY(-8px); }
}

/* -------------------------------------------------------------------------
   13. High contrast mode
   ------------------------------------------------------------------------- */
html[data-contrast="high"] {
    --muted: #26323F;
    --line: rgba(1, 21, 45, .4);
}

html[data-contrast="high"] .hero__shade {
    background: rgba(1, 21, 45, .9);
}

html[data-contrast="high"] .hero__grain,
html[data-contrast="high"] .hero__contours {
    display: none;
}

html[data-contrast="high"] .hero__lead,
html[data-contrast="high"] .hero__facts dd,
html[data-contrast="high"] .module-card p,
html[data-contrast="high"] .site-footer,
html[data-contrast="high"] .footer__col a,
html[data-contrast="high"] .map-card__stats span {
    color: #fff;
}

html[data-contrast="high"] .section-title em {
    background: none;
    text-decoration: underline;
    text-decoration-thickness: 2px;
}

/* -------------------------------------------------------------------------
   14. Responsive
   ------------------------------------------------------------------------- */
@media (max-width: 1199.98px) {
    .hero__inner {
        grid-template-columns: minmax(0, 1fr);
    }

    .hero__map {
        display: none;
    }

    .nav__link {
        padding-inline: .7rem;
    }

    .footer__top {
        grid-template-columns: 1.2fr 1fr 1fr;
    }

    .footer__map {
        grid-column: 1 / -1;
        min-height: 260px;
    }
}

@media (max-width: 991.98px) {
    :root {
        --header-h: 74px;
    }

    .nav {
        display: none;
    }

    .site-header__actions {
        margin-left: auto;
    }

    .burger {
        display: block;
    }

    .about__grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .about__visual {
        position: static;
    }

    .modules__head {
        flex-direction: column;
        align-items: flex-start;
    }

    .modules__count {
        margin-right: auto;
    }

    .modules__controls {
        width: 100%;
    }

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

    .footer__brand {
        grid-column: 1 / -1;
    }

    .app-modal__grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .app-modal__visual {
        min-height: 420px;
        order: -1;
    }

    .app-modal__copy {
        padding: 2.2rem 1.8rem;
    }
}

@media (max-width: 767.98px) {
    .masthead__date,
    .a11y {
        display: none;
    }

    .masthead__grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .readout {
        display: none;
    }

    .hero__shade {
        background:
            linear-gradient(180deg,
                rgba(var(--shade), calc(.75 * var(--shade-k))) 0%,
                rgba(var(--shade), calc(.45 * var(--shade-k))) 45%,
                rgba(var(--shade), calc(.6 * var(--shade-k))) 75%,
                rgba(var(--shade), calc(.85 * var(--shade-k))) 100%);
    }

    .hero__inner {
        padding-top: calc(var(--header-h) + 2.5rem);
    }

    .hero__facts > div {
        padding: 0 .4rem;
    }

    .hero__facts dt {
        font-size: 1.6rem;
    }

    .pillars {
        grid-template-columns: minmax(0, 1fr);
    }

    .map-card {
        padding: 1.3rem;
        border-radius: 24px;
    }

    .bento {
        grid-template-columns: minmax(0, 1fr);
        grid-auto-rows: 240px;
    }

    .tile {
        grid-column: auto !important;
        grid-row: span 1 !important;
    }

    .visitors {
        background-size: 900px auto;
    }

    .visit-stats {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        max-width: 340px;
        margin-inline: auto;
    }

    .footer__top {
        grid-template-columns: minmax(0, 1fr);
        gap: 2.2rem;
    }
}

@media (max-width: 575.98px) {
    .masthead__toggle span,
    .masthead__toggle-text {
        display: none;
    }

    .brand__title {
        font-size: .92rem;
        white-space: normal;
    }

    .brand__sub {
        display: none;
    }

    .btn-login {
        padding: .3rem;
    }

    .btn-login > span:first-child {
        display: none;
    }

    .odo {
        width: .74em;
    }

    .map-card__stats {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }

    .map-card__stats > div:last-child {
        grid-column: 1 / -1;
    }
}

@media (hover: none) {
    .module-card:hover {
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        transition-delay: 0s !important;
    }

    .js [data-reveal],
    .js [data-hero-in] {
        opacity: 1;
        transform: none;
    }

    .hero__bg {
        transform: none;
    }
}

/* -------------------------------------------------------------------------
   14. Banner slider ("Sorotan")
   ------------------------------------------------------------------------- */
.banners {
    position: relative;
    padding: clamp(2.5rem, 5vw, 4rem) 0;
    background:
        radial-gradient(45% 90% at 88% 0%, rgba(140, 198, 63, .14), transparent 70%),
        repeating-radial-gradient(circle at 8% 120%, transparent 0 34px, rgba(181, 220, 110, .05) 34px 35px),
        var(--ink);
    color: #fff;
}

.banners__frame {
    position: relative;
    aspect-ratio: 12 / 5;
    overflow: hidden;
    border-radius: 26px;
    background: var(--ink-800);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 50px 90px -45px rgba(0, 0, 0, .9);
    touch-action: pan-y;
}

.banner {
    position: absolute;
    inset: 0;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity .9s var(--ease), visibility 0s .9s;
}

.banner.is-active {
    z-index: 1;
    opacity: 1;
    visibility: visible;
    transition: opacity .9s var(--ease);
}

.banner img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.035);
    transition: transform 7s linear;
}

.banner.is-active img {
    transform: none;
}

.banners__corner {
    position: absolute;
    z-index: 2;
    width: 22px;
    height: 22px;
    border: 0 solid var(--leaf);
    pointer-events: none;
}

.banners__corner--tl { top: 14px; left: 14px; border-top-width: 2px; border-left-width: 2px; border-top-left-radius: 6px; }
.banners__corner--tr { top: 14px; right: 14px; border-top-width: 2px; border-right-width: 2px; border-top-right-radius: 6px; }
.banners__corner--bl { bottom: 14px; left: 14px; border-bottom-width: 2px; border-left-width: 2px; border-bottom-left-radius: 6px; }
.banners__corner--br { bottom: 14px; right: 14px; border-bottom-width: 2px; border-right-width: 2px; border-bottom-right-radius: 6px; }

/* Hover CTA: a scrim fades in over the active banner with the dashboard link. */
.banners__cta {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(1.25rem, 4vw, 3rem);
    background: rgba(1, 21, 45, .35);
    opacity: 0;
    pointer-events: none;
    transition: opacity .45s var(--ease);
}

/* Opacity only (not visibility) so keyboard users can still tab to it. */
.banners__cta-btn {
    border-color: rgba(255, 255, 255, .6);
    pointer-events: auto;
    transform: translateY(12px);
    transition: background-color .3s, border-color .3s, color .3s, transform .5s var(--ease), box-shadow .4s;
}

.banners__cta-btn .feather {
    transition: transform .4s var(--ease);
}

.banners__cta-btn:hover,
.banners__cta-btn:focus-visible {
    border-color: var(--leaf);
    background: var(--leaf);
    color: var(--ink);
    box-shadow: 0 14px 34px -14px rgba(140, 198, 63, .85);
}

.banners__cta-btn:hover .feather {
    transform: translateX(4px);
}

.banners__frame:hover .banners__cta,
.banners__cta:focus-within {
    opacity: 1;
}

.banners__frame:hover .banners__cta-btn,
.banners__cta:focus-within .banners__cta-btn {
    transform: none;
}

/* No hover on touch screens, so keep the button visible there. */
@media (hover: none) {
    .banners__cta {
        opacity: 1;
        background: rgba(1, 21, 45, .2);
    }

    .banners__cta-btn {
        transform: none;
    }
}

.banners__bar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 1.5rem;
    margin-top: 1.4rem;
}

.banners__label {
    display: flex;
    align-items: center;
    gap: .65rem;
    margin: 0;
    font: 500 .72rem/1 var(--f-mono);
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--leaf-soft);
}

.banners__live {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--leaf);
    box-shadow: 0 0 0 4px rgba(140, 198, 63, .2);
}

.banners__dots {
    display: flex;
    gap: .35rem;
}

.banners__dot {
    width: 54px;
    height: 30px;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
}

.banners__dot span {
    position: relative;
    display: block;
    height: 3px;
    overflow: hidden;
    border-radius: 3px;
    background: rgba(255, 255, 255, .18);
    transition: background-color .3s;
}

.banners__dot:hover span {
    background: rgba(255, 255, 255, .4);
}

.banners__dot i {
    position: absolute;
    inset: 0;
    background: var(--leaf);
    transform: scaleX(0);
    transform-origin: left;
}

/* The fill animation is the autoplay timer: JS advances on its animationend. */
.banners__dot.is-active i {
    animation: bannerFill var(--banner-interval, 6000ms) linear forwards;
}

.banners.is-paused .banners__dot.is-active i,
.banners:hover .banners__dot.is-active i,
.banners.is-away .banners__dot.is-active i,
.banners:has(:focus-visible) .banners__dot.is-active i {
    animation-play-state: paused;
}

.banners.is-static .banners__dot.is-active i {
    animation: none;
    transform: none;
}

.banners__ctrl {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: .55rem;
}

.banners__ctrl .round-btn {
    width: 46px;
    height: 46px;
}

.banners__count {
    margin-right: .6rem;
    font: 500 .78rem/1 var(--f-mono);
    color: rgba(255, 255, 255, .55);
}

.banners__count b {
    font-weight: 500;
    color: #fff;
}

.banners__icon-play,
.banners.is-paused .banners__icon-pause {
    display: none;
}

.banners.is-paused .banners__icon-play {
    display: contents;
}

.banners.is-static [data-banner-toggle] {
    display: none;
}

@keyframes bannerFill {
    to { transform: scaleX(1); }
}

/* -------------------------------------------------------------------------
   15. Ciri utama + video
   ------------------------------------------------------------------------- */
.ciri {
    position: relative;
    overflow: hidden;
    padding: clamp(5rem, 9vw, 8rem) 0;
    background: #fff;
}

.ciri::before {
    content: "";
    position: absolute;
    right: -220px;
    bottom: -260px;
    width: 720px;
    height: 720px;
    border-radius: 50%;
    background: repeating-radial-gradient(circle, transparent 0 30px, rgba(14, 107, 59, .07) 30px 31px);
    pointer-events: none;
}

.ciri__grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr);
    align-items: center;
    gap: clamp(2.5rem, 5vw, 4.5rem);
}

.ciri .section-title {
    max-width: 17ch;
    font-size: clamp(2rem, 3.6vw, 3.1rem);
}

.ciri__list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .65rem;
    margin: 2.4rem 0 0;
    padding: 0;
    list-style: none;
}

/* The reveal transition lives on the <li>; hover motion lives on the card inside it. */
.ciri__item {
    display: grid;
}

.ciri-card {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .5rem;
    min-height: 228px;
    padding: 1.6rem .75rem 1.3rem;
    overflow: hidden;
    border-radius: 18px;
    background:
        radial-gradient(120% 60% at 50% 0%, rgba(140, 198, 63, .2), transparent 62%),
        linear-gradient(180deg, var(--ink-700), var(--ink));
    box-shadow: 0 22px 40px -26px rgba(1, 21, 45, .8);
    color: #fff;
    text-align: center;
    transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}

.ciri-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: repeating-radial-gradient(circle at 50% 120%, transparent 0 16px, rgba(181, 220, 110, .1) 16px 17px);
    opacity: 0;
    transition: opacity .5s;
}

.ciri-card::after {
    content: "";
    position: absolute;
    top: 0;
    left: 22%;
    right: 22%;
    height: 2px;
    border-radius: 0 0 2px 2px;
    background: var(--leaf);
    transform: scaleX(.35);
    transition: transform .5s var(--ease);
}

.ciri-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 30px 50px -26px rgba(1, 21, 45, .9);
}

.ciri-card:hover::before {
    opacity: 1;
}

.ciri-card:hover::after {
    transform: scaleX(1);
}

.ciri-card__no {
    position: absolute;
    top: .7rem;
    right: .8rem;
    font: 500 .6rem/1 var(--f-mono);
    color: rgba(255, 255, 255, .35);
}

.ciri-card__icon {
    display: grid;
    place-items: center;
    width: 50px;
    height: 50px;
    margin-bottom: .4rem;
    border: 1px solid rgba(181, 220, 110, .35);
    border-radius: 50%;
    background: rgba(140, 198, 63, .12);
    color: var(--leaf-soft);
    transition: background-color .4s, color .4s, border-color .4s, transform .5s var(--ease);
}

.ciri-card__icon .feather {
    width: 22px;
    height: 22px;
}

.ciri-card:hover .ciri-card__icon {
    border-color: var(--leaf);
    background: var(--leaf);
    color: var(--ink);
    transform: rotate(-8deg);
}

.ciri-card__title {
    margin: 0;
    font: 700 .9rem/1.25 var(--f-body);
}

.ciri-card__text {
    margin: 0;
    font-size: .72rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, .64);
}

.ciri__media {
    position: relative;
}

.video-card {
    position: relative;
    isolation: isolate;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 28px;
    background: var(--ink);
    box-shadow: 0 0 0 1px rgba(1, 21, 45, .06), 0 60px 100px -50px rgba(1, 21, 45, .75);
}

.video-card__video {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.4s var(--ease);
}

.video-card:not(.is-playing):hover .video-card__video {
    transform: scale(1.04);
}

.video-card__cover {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.video-card__shade {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(40% 50% at 50% 50%, rgba(1, 21, 45, .35), transparent 70%),
        linear-gradient(195deg, rgba(1, 21, 45, .05) 35%, rgba(1, 21, 45, .88) 100%);
}

.video-card__ring {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 150px;
    height: 150px;
    margin: -75px 0 0 -75px;
    border: 1px solid rgba(255, 255, 255, .45);
    border-radius: 50%;
    animation: videoRing 3.2s var(--ease) infinite;
}

.video-card__ring--2 {
    animation-delay: 1.6s;
}

.video-card.is-empty .video-card__ring {
    animation: none;
    opacity: .25;
}

.video-card__tick {
    position: absolute;
    width: 26px;
    height: 26px;
    border: 0 solid var(--leaf);
}

.video-card__tick--tl { top: 18px; left: 18px; border-top-width: 2px; border-left-width: 2px; }
.video-card__tick--br { right: 18px; bottom: 18px; border-right-width: 2px; border-bottom-width: 2px; }

.video-card__tag {
    position: absolute;
    top: 1.2rem;
    right: 1.2rem;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .45rem .75rem;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 999px;
    background: rgba(1, 21, 45, .45);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    font: 500 .66rem/1 var(--f-mono);
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #fff;
}

.video-card__rec {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #FF5A4E;
    animation: blink 1.6s steps(2, start) infinite;
}

.video-card.is-empty .video-card__rec {
    background: rgba(255, 255, 255, .5);
    animation: none;
}

.video-card__play {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 86px;
    height: 86px;
    margin: -43px 0 0 -43px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 0 0 10px rgba(255, 255, 255, .14), 0 20px 40px -12px rgba(0, 0, 0, .6);
    color: var(--ink);
}

.video-card__play svg {
    width: 30px;
    height: 30px;
    margin-left: 4px;
}

button.video-card__play:hover {
    background: var(--leaf);
    box-shadow: 0 0 0 16px rgba(140, 198, 63, .22), 0 20px 40px -12px rgba(0, 0, 0, .6);
    transform: scale(1.06);
}

.video-card__play.is-disabled {
    background: rgba(255, 255, 255, .16);
    box-shadow: 0 0 0 10px rgba(255, 255, 255, .06);
    color: rgba(255, 255, 255, .7);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.video-card__caption {
    position: absolute;
    left: 1.6rem;
    right: 1.6rem;
    bottom: 1.4rem;
    display: flex;
    flex-direction: column;
    gap: .3rem;
    color: #fff;
}

.video-card__caption strong {
    font: 500 clamp(1.15rem, 2vw, 1.45rem)/1.2 var(--f-display);
}

.video-card__caption small {
    font: 500 .7rem/1 var(--f-mono);
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--leaf-soft);
}

.video-card__cover,
.video-card__tag,
.video-card__play,
.video-card__caption {
    transition: opacity .4s var(--ease), transform .45s var(--ease), background-color .3s, box-shadow .45s;
}

.video-card.is-playing .video-card__cover,
.video-card.is-playing .video-card__tag,
.video-card.is-playing .video-card__play,
.video-card.is-playing .video-card__caption {
    opacity: 0;
    pointer-events: none;
}

.video-card.is-playing .video-card__video {
    object-fit: contain;
}

.video-card__badge {
    position: absolute;
    left: -30px;
    bottom: 22%;
    z-index: 3;
    display: grid;
    place-items: center;
    width: 84px;
    height: 84px;
    border: 4px solid #fff;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #fff, var(--paper-2));
    box-shadow: 0 0 0 1px rgba(140, 198, 63, .5), 0 24px 40px -18px rgba(1, 21, 45, .55);
    animation: badgeFloat 6s ease-in-out infinite;
    pointer-events: none;
}

.video-card__badge img {
    width: 36px;
    height: auto;
}

@keyframes videoRing {
    from { transform: scale(.55); opacity: .9; }
    to { transform: scale(1.9); opacity: 0; }
}

@keyframes badgeFloat {
    50% { transform: translateY(-8px); }
}

/* -------------------------------------------------------------------------
   16. Galeri: landing "Lihat Semua" + full gallery page
   ------------------------------------------------------------------------- */
.galeri__more {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .8rem 1.4rem;
}

.galeri__more p {
    margin: 0;
    font: 500 .72rem/1.4 var(--f-mono);
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--muted);
}

.galeri__more b {
    font-weight: 500;
    color: var(--ink);
}

.page-hero {
    position: relative;
    isolation: isolate;
    margin-top: calc(-1 * var(--header-h));
    padding: calc(var(--header-h) + clamp(1.5rem, 3vw, 2.2rem)) 0 clamp(1.8rem, 3.5vw, 2.6rem);
    overflow: hidden;
    background: var(--ink);
    color: #fff;
}

.page-hero__bg {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 65%;
    opacity: .5;
}

.page-hero__shade {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        repeating-radial-gradient(circle at 88% 130%, transparent 0 28px, rgba(181, 220, 110, .09) 28px 29px),
        linear-gradient(90deg, var(--ink) 12%, rgba(1, 21, 45, .55) 62%, rgba(1, 21, 45, .25));
}

.page-hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 1.2rem 3rem;
}

.page-hero__inner .crumbs {
    grid-column: 1 / -1;
    margin-bottom: 0;
}

.crumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem;
    margin-bottom: 1.6rem;
    font: 500 .7rem/1 var(--f-mono);
    letter-spacing: .12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .6);
}

.crumbs a {
    color: var(--leaf-soft);
    text-decoration: none;
}

.crumbs a:hover {
    text-decoration: underline;
}

.crumbs .feather {
    width: 14px;
    height: 14px;
}

.page-hero__title {
    margin: 0;
    font: 500 clamp(2.4rem, 5vw, 3.8rem)/1 var(--f-display);
    letter-spacing: -.03em;
    font-variation-settings: "opsz" 144;
}

.page-hero__title em {
    color: var(--leaf-soft);
}

.page-hero__lead {
    max-width: 52ch;
    margin: .7rem 0 0;
    font-size: 1rem;
    color: rgba(255, 255, 255, .75);
}

.page-hero__stats {
    display: flex;
    margin: 0;
}

.page-hero__stats > div {
    padding: .2rem clamp(1.2rem, 2.4vw, 2rem);
    border-left: 1px solid rgba(255, 255, 255, .16);
}

.page-hero__stats > div:last-child {
    padding-right: 0;
}

.page-hero__stats dt {
    font: 500 clamp(1.8rem, 3vw, 2.4rem)/1 var(--f-display);
}

.page-hero__stats dd {
    margin: .4rem 0 0;
    font: 500 .66rem/1 var(--f-mono);
    letter-spacing: .12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .55);
}

.galeri--page {
    padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(4rem, 8vw, 6rem);
}

.galeri__toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 2rem;
    margin-bottom: 2rem;
    padding-bottom: 1.4rem;
    border-bottom: 1px solid var(--line);
}

a.chip {
    display: inline-flex;
    text-decoration: none;
}

.galeri__count {
    margin: 0;
    font: 500 .74rem/1.4 var(--f-mono);
    color: var(--muted);
}

.galeri__count b {
    font-weight: 500;
    color: var(--ink);
}

.galeri-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.galeri-grid .tile {
    grid-column: auto;
    grid-row: auto;
    aspect-ratio: 3 / 2;
}

.bento--page {
    grid-auto-rows: 130px;
    grid-auto-flow: dense;
}

.pager {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 3rem;
}

.pager__pages {
    display: flex;
    gap: .4rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.pager__page {
    display: grid;
    place-items: center;
    min-width: 46px;
    height: 46px;
    border: 1px solid var(--line);
    border-radius: 50%;
    font: 500 .8rem/1 var(--f-mono);
    color: var(--text);
    text-decoration: none;
    transition: border-color .3s, background-color .3s, color .3s;
}

.pager__page:hover {
    border-color: var(--ink);
    color: var(--ink);
}

.pager__page.is-active {
    border-color: var(--ink);
    background: var(--ink);
    color: #fff;
}

.pager__gap {
    display: grid;
    place-items: center;
    height: 46px;
    padding: 0 .3rem;
    color: var(--muted);
}

.pager__step {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .85rem 1.25rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    font: 600 .85rem/1 var(--f-body);
    color: var(--ink);
    text-decoration: none;
    transition: background-color .3s, color .3s, border-color .3s;
}

a.pager__step:hover {
    border-color: var(--ink);
    background: var(--ink);
    color: #fff;
}

.pager__step.is-disabled {
    opacity: .35;
}

/* -------------------------------------------------------------------------
   17. Mobile app modal: platform tabs
   ------------------------------------------------------------------------- */
.app-tabs {
    position: relative;
    display: inline-grid;
    grid-template-columns: 1fr 1fr;
    margin: 1.8rem 0 1.5rem;
    padding: 5px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--paper-2);
}

.app-tabs__pill {
    position: absolute;
    top: 5px;
    bottom: 5px;
    left: 5px;
    width: calc(50% - 5px);
    border-radius: 999px;
    background: var(--ink);
    box-shadow: 0 10px 20px -10px rgba(1, 21, 45, .7);
    transition: transform .5s var(--ease);
}

.app-tabs[data-active="android"] .app-tabs__pill {
    transform: translateX(100%);
}

.app-tab {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .78rem 1.35rem;
    border: 0;
    border-radius: 999px;
    background: none;
    font: 700 .86rem/1 var(--f-body);
    color: var(--muted);
    transition: color .3s;
}

.app-tab svg {
    width: 18px;
    height: 18px;
}

.app-tab:hover {
    color: var(--ink);
}

.app-tab.is-active {
    color: #fff;
}

.app-tab:focus-visible {
    outline: 2px solid var(--leaf);
    outline-offset: 3px;
}

.app-panel {
    animation: panelIn .5s var(--ease);
}

.app-panel__desc {
    max-width: 40ch;
    margin: 0 0 1.5rem;
}

.app-panel__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem 1.4rem;
}

.app-panel__actions .store__btn {
    display: inline-flex;
}

.app-panel__zoom {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding-bottom: 2px;
    border-bottom: 1px solid currentColor;
    font: 600 .85rem/1.2 var(--f-body);
    color: var(--forest);
    text-decoration: none;
}

.app-panel__zoom:hover {
    color: var(--ink);
}

.app-shot {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    margin: 0;
    padding: clamp(1.4rem, 3vw, 2.6rem);
    opacity: 0;
    visibility: hidden;
    transform: translateX(36px) scale(.97);
    transition: opacity .6s var(--ease), transform .8s var(--ease), visibility 0s .6s;
}

.app-shot.is-active {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity .6s var(--ease), transform .8s var(--ease);
}

.app-shot__frame {
    position: relative;
    width: 100%;
}

.app-shot__frame img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 18px;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .12), 0 40px 80px -30px rgba(0, 0, 0, .85);
}

.app-shot figcaption {
    position: absolute;
    top: -14px;
    left: 18px;
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .5rem .8rem;
    border-radius: 999px;
    background: var(--leaf);
    box-shadow: 0 10px 20px -10px rgba(0, 0, 0, .6);
    font: 600 .7rem/1 var(--f-mono);
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--ink);
}

.app-shot figcaption svg {
    width: 14px;
    height: 14px;
}

@keyframes panelIn {
    from { opacity: 0; transform: translateY(8px); }
}

/* New sections: responsive ------------------------------------------------ */
@media (max-width: 1199.98px) {
    .ciri__grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .ciri .section-title {
        max-width: 22ch;
    }

    .ciri__media {
        max-width: 860px;
        margin-left: 30px;
    }
}

@media (max-width: 991.98px) {
    .app-modal__visual {
        min-height: 0;
        aspect-ratio: 3 / 2;
    }

    .app-modal__visual:has(.app-shot--mock.is-active) {
        aspect-ratio: auto;
        min-height: 420px;
    }

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

    .banners__bar {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .banners__label {
        display: none;
    }
}

@media (max-width: 767.98px) {
    .banners__frame {
        border-radius: 16px;
    }

    .banners__corner,
    .banners__count {
        display: none;
    }

    .banners__dot {
        width: 26px;
    }

    .banners__cta {
        padding: .85rem;
    }

    .banners__cta-btn {
        padding: .7rem 1.1rem;
        font-size: .82rem;
    }

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

    /* An odd last card fills the row; with an even count the cards stay in pairs. */
    .ciri__item:last-child:nth-child(odd) {
        grid-column: 1 / -1;
    }

    .ciri-card {
        min-height: 0;
    }

    .ciri__media {
        margin-left: 0;
    }

    .video-card {
        border-radius: 20px;
    }

    .video-card__badge {
        top: -26px;
        right: 14px;
        bottom: auto;
        left: auto;
        width: 64px;
        height: 64px;
        border-width: 3px;
    }

    .video-card__badge img {
        width: 28px;
    }

    .video-card__tag {
        top: 1rem;
        right: auto;
        left: 1rem;
    }

    .video-card__tick {
        display: none;
    }

    .galeri-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .pager {
        justify-content: center;
    }

    .pager__step {
        padding: .85rem 1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .banner img {
        transform: none;
    }
}

@media (max-width: 991.98px) {
    .galeri-grid--row {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .page-hero__inner {
        grid-template-columns: minmax(0, 1fr);
    }

    .page-hero__stats > div:first-child {
        padding-left: 0;
        border-left: 0;
    }

    .galeri-grid--row {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* -------------------------------------------------------------------------
   18. Auth pages (log masuk, daftar, lupa / set semula kata laluan)
   ------------------------------------------------------------------------- */
.auth-body {
    background: var(--paper);
}

.auth {
    --masthead-h: 38px; /* the government strip above; panels fill the rest of the screen */
    display: grid;
    grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
    align-items: start;
}

/* The strip stays on top so the visual panel always fills the screen below it */
@media (min-width: 992px) {
    .auth-body .masthead {
        position: sticky;
        top: 0;
    }
}

/* Visual panel: stays in view while a long form scrolls */
.auth__visual {
    position: sticky;
    top: var(--masthead-h);
    isolation: isolate;
    display: flex;
    flex-direction: column;
    height: calc(100svh - var(--masthead-h));
    min-height: 600px;
    padding: clamp(1.8rem, 3vw, 2.8rem);
    overflow: hidden;
    background: var(--ink);
    color: #fff;
}

.auth__bg {
    position: absolute;
    inset: 0;
    z-index: -4;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 30% center;
    animation: heroZoom 30s var(--ease) both;
}

.auth__shade {
    position: absolute;
    inset: 0;
    z-index: -3;
    background:
        radial-gradient(70% 50% at 20% 100%, rgba(140, 198, 63, .18), transparent 70%),
        linear-gradient(180deg, rgba(1, 21, 45, .82) 0%, rgba(1, 21, 45, .35) 38%, rgba(1, 21, 45, .55) 62%, rgba(1, 21, 45, .95) 100%);
}

.auth__visual .hero__contours {
    z-index: -2;
}

.auth__frame {
    position: absolute;
    inset: 14px;
    z-index: -1;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 20px;
    pointer-events: none;
}

.auth__frame span {
    position: absolute;
    top: 10px;
    transform: translateX(-50%);
    font: 500 .6rem/1 var(--f-mono);
    letter-spacing: .08em;
    color: rgba(255, 255, 255, .42);
}

.auth__frame span::before {
    content: "";
    position: absolute;
    top: -10px;
    left: 50%;
    width: 1px;
    height: 6px;
    background: rgba(255, 255, 255, .4);
}

/* Same layout as the site header brand: logo beside the text, no link underline. */
.auth__brand {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    margin-top: .6rem;
    color: #fff;
    text-decoration: none;
}

.auth__brand:hover {
    color: #fff;
    text-decoration: none;
}

.auth__brand .brand__text {
    gap: .15rem;
}

.auth__pitch {
    margin-top: auto;
    max-width: 30rem;
}

.auth__quote {
    margin: 1rem 0 0;
    font: 500 clamp(2rem, 3.3vw, 3.1rem)/1.08 var(--f-display);
    letter-spacing: -.02em;
    font-variation-settings: "opsz" 144;
}

.auth__lead {
    max-width: 42ch;
    margin: 1rem 0 0;
    color: rgba(255, 255, 255, .72);
}

.auth__readout {
    margin-top: 2rem;
    align-self: flex-start;
}

/* Form side */
.auth__main {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    min-height: calc(100svh - var(--masthead-h));
    padding: clamp(1.4rem, 3vw, 2.2rem) clamp(1.25rem, 5vw, 4.5rem);
    overflow: hidden;
}

.auth__main::before {
    content: "";
    position: absolute;
    top: -240px;
    right: -240px;
    z-index: -1;
    width: 620px;
    height: 620px;
    border-radius: 50%;
    background: repeating-radial-gradient(circle, transparent 0 28px, rgba(14, 107, 59, .06) 28px 29px);
    pointer-events: none;
}

.auth__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.auth__mobile-brand {
    display: none;
    align-items: center;
    gap: .55rem;
    font: 700 1rem/1 var(--f-body);
    color: var(--ink);
    text-decoration: none;
}

.auth__back {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    margin-left: auto;
    padding: .62rem 1.05rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, .6);
    font: 600 .84rem/1 var(--f-body);
    color: var(--ink);
    text-decoration: none;
    transition: background-color .3s, color .3s, border-color .3s;
}

.auth__back:hover {
    border-color: var(--ink);
    background: var(--ink);
    color: #fff;
}

.auth__body {
    width: 100%;
    max-width: 440px;
    margin: auto;
    padding: 2rem 0;
    animation: panelIn .8s var(--ease) both;
}

.auth__body--wide {
    max-width: 760px;
}

.auth__legal {
    margin: 0;
    font: 500 .68rem/1.4 var(--f-mono);
    letter-spacing: .04em;
    text-align: center;
    color: var(--muted);
}

.auth-head {
    margin-bottom: 1.8rem;
}

.auth-head .section-label {
    margin-bottom: 1rem;
}

.auth-head__title {
    margin: 0;
    font: 500 clamp(2rem, 3.2vw, 2.7rem)/1.08 var(--f-display);
    letter-spacing: -.02em;
    color: var(--ink);
}

.auth-head__title em {
    color: var(--forest);
}

.auth-head__sub {
    margin: .7rem 0 0;
    font-size: .95rem;
    color: var(--muted);
}

.auth-head__sub b {
    color: var(--ink);
}

.auth-alert {
    display: flex;
    align-items: flex-start;
    gap: .7rem;
    margin-bottom: 1.4rem;
    padding: .9rem 1rem;
    border-radius: 14px;
    font-size: .88rem;
    line-height: 1.5;
}

.auth-alert .feather {
    flex: none;
    width: 20px;
    height: 20px;
    margin-top: 1px;
}

.auth-alert--error {
    border: 1px solid #F3C4C4;
    background: #FDEEEE;
    color: #8A1C1C;
}

.auth-alert--success {
    border: 1px solid rgba(14, 107, 59, .25);
    background: rgba(140, 198, 63, .15);
    color: var(--forest);
}

/* Fields */
.auth-form {
    display: grid;
    gap: 1.15rem;
}

.field {
    display: flex;
    flex-direction: column;
    gap: .45rem;
    min-width: 0;
}

.field__label {
    font: 600 .84rem/1.3 var(--f-body);
    color: var(--ink);
}

.field__req {
    color: #C62828;
}

.field__control {
    position: relative;
    display: flex;
    align-items: center;
}

.field__control > .feather {
    position: absolute;
    left: 16px;
    width: 18px;
    height: 18px;
    color: var(--muted);
    pointer-events: none;
    transition: color .25s;
}

.field__control:focus-within > .feather {
    color: var(--forest);
}

.field__input {
    width: 100%;
    height: 54px;
    padding: 0 1rem 0 2.9rem;
    border: 1px solid rgba(1, 21, 45, .16);
    border-radius: 14px;
    background: #fff;
    font: 500 .95rem var(--f-body);
    color: var(--text);
    transition: border-color .25s, box-shadow .25s;
}

.field__input::placeholder {
    font-weight: 400;
    color: #97A2AE;
}

.field__input:focus {
    outline: none;
    border-color: var(--forest);
    box-shadow: 0 0 0 4px rgba(140, 198, 63, .25);
}

.field__input.is-invalid,
.was-validated .field__input:invalid {
    border-color: #D64545;
    box-shadow: 0 0 0 4px rgba(214, 69, 69, .12);
}

.field__control:has(.field__toggle) .field__input {
    padding-right: 3.3rem;
}

.field__toggle {
    position: absolute;
    right: 6px;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: none;
    color: var(--muted);
    transition: background-color .25s, color .25s;
}

.field__toggle:hover {
    background: var(--paper-2);
    color: var(--ink);
}

.field__toggle .feather {
    width: 18px;
    height: 18px;
}

.field__eye-off,
.field__toggle.is-shown .field__eye {
    display: none;
}

.field__toggle.is-shown .field__eye-off {
    display: contents;
}

.field__hint {
    margin: 0;
    font-size: .76rem;
    line-height: 1.45;
    color: var(--muted);
}

.field__error,
.error-text {
    margin: 0;
    font-size: .78rem;
    line-height: 1.45;
    color: #C62828;
}

.field__error {
    display: none;
}

.was-validated .field:has(.field__input:invalid) .field__error {
    display: block;
}

.error-text:empty {
    display: none;
}

/* Captcha */
.captcha {
    display: flex;
    gap: .6rem;
}

.captcha__img {
    flex: 1;
    display: grid;
    place-items: center;
    min-height: 66px;
    padding: .4rem;
    border: 1px dashed rgba(1, 21, 45, .22);
    border-radius: 14px;
    background: #fff repeating-linear-gradient(45deg, transparent 0 8px, rgba(1, 21, 45, .025) 8px 9px);
}

.captcha__img img {
    max-width: 100%;
    max-height: 56px;
}

.captcha__refresh {
    flex: none;
    display: grid;
    place-items: center;
    width: 66px;
    border: 1px solid rgba(1, 21, 45, .16);
    border-radius: 14px;
    background: #fff;
    color: var(--ink);
    transition: background-color .3s, color .3s;
}

.captcha__refresh .feather {
    transition: transform .6s var(--ease);
}

.captcha__refresh:hover {
    background: var(--ink);
    color: #fff;
}

.captcha__refresh:hover .feather {
    transform: rotate(180deg);
}

.captcha__timer {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin: .1rem 0 .35rem;
    font: 500 .72rem/1 var(--f-mono);
    color: var(--muted);
}

.captcha__timer .feather {
    width: 14px;
    height: 14px;
}

.captcha__bar {
    flex: 1;
    height: 4px;
    overflow: hidden;
    border-radius: 4px;
    background: var(--paper-2);
}

.captcha__bar .progress-bar {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 4px;
    background: var(--leaf-deep);
    transition: width 1s linear;
}

/* Buttons and links */
.auth-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    width: 100%;
    height: 56px;
    margin-top: .4rem;
    padding: 0 1.5rem;
    border: 0;
    border-radius: 999px;
    background: var(--ink);
    box-shadow: 0 18px 34px -18px rgba(1, 21, 45, .8);
    font: 700 .98rem/1 var(--f-body);
    color: #fff;
    transition: background-color .3s, transform .4s var(--ease);
}

.auth-submit .feather {
    transition: transform .4s var(--ease);
}

.auth-submit:hover {
    background: var(--ink-700);
    transform: translateY(-2px);
}

.auth-submit:hover .feather {
    transform: translateX(4px);
}

.auth-submit:disabled {
    opacity: .7;
    transform: none;
}

.auth-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .5rem;
    margin-top: 1.8rem;
    padding-top: 1.4rem;
    border-top: 1px solid var(--line);
    font-size: .9rem;
    text-align: center;
}

.auth-links p {
    margin: 0;
    color: var(--muted);
}

.auth-links a {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    font-weight: 700;
    color: var(--forest);
    text-decoration: none;
}

.auth-links a:hover {
    text-decoration: underline;
}

.auth-links .feather {
    width: 16px;
    height: 16px;
}

/* Register: grouped steps, two-column grid, radio cards */
.form-step {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.form-step + .form-step {
    margin-top: .6rem;
    padding-top: 1.6rem;
    border-top: 1px dashed var(--line);
}

.form-step__title {
    float: none;
    display: flex;
    align-items: center;
    gap: .6rem;
    width: 100%;
    margin-bottom: 1.1rem;
    padding: 0;
    font: 500 .72rem/1 var(--f-mono);
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--forest);
}

.form-step__title span {
    padding: .3rem .45rem;
    border: 1px solid currentColor;
    border-radius: 6px;
    letter-spacing: .06em;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.1rem 1.2rem;
}

.field--full {
    grid-column: 1 / -1;
}

.choice {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .7rem;
}

.choice input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.choice label {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: .2rem;
    padding: .95rem 1rem .95rem 3rem;
    border: 1px solid rgba(1, 21, 45, .16);
    border-radius: 14px;
    background: #fff;
    cursor: pointer;
    transition: border-color .25s, background-color .25s, box-shadow .25s;
}

.choice label::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 1rem;
    width: 20px;
    height: 20px;
    margin-top: -10px;
    border: 2px solid rgba(1, 21, 45, .25);
    border-radius: 50%;
    background: #fff;
    transition: border-color .25s, border-width .25s;
}

.choice b {
    font: 700 .95rem/1.2 var(--f-body);
    color: var(--ink);
}

.choice small {
    font-size: .74rem;
    color: var(--muted);
}

.choice input:checked + label {
    border-color: var(--forest);
    background: rgba(140, 198, 63, .1);
    box-shadow: 0 0 0 3px rgba(140, 198, 63, .2);
}

.choice input:checked + label::before {
    border-width: 6px;
    border-color: var(--forest);
}

.choice input:focus-visible + label {
    outline: 2px solid var(--forest);
    outline-offset: 2px;
}

.auth-actions {
    display: flex;
    gap: .8rem;
    margin-top: 1.8rem;
}

.auth-actions .auth-submit {
    flex: 1;
    width: auto;
    margin-top: 0;
}

.btn-ghost-ink {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    height: 56px;
    padding: 0 1.4rem;
    border: 1px solid rgba(1, 21, 45, .2);
    border-radius: 999px;
    background: #fff;
    font: 600 .92rem/1 var(--f-body);
    color: var(--ink);
    transition: border-color .3s, background-color .3s;
}

.btn-ghost-ink:hover {
    border-color: var(--ink);
    background: var(--paper-2);
}

/* Select2 in the eGP style */
.auth .select2-container--bootstrap-5 .select2-selection {
    display: flex;
    align-items: center;
    min-height: 54px;
    padding: .7rem 2.5rem .7rem 1rem;
    border: 1px solid rgba(1, 21, 45, .16);
    border-radius: 14px;
    font: 500 .95rem var(--f-body);
    color: var(--text);
    background-position: right 1rem center;
}

.auth .select2-container--bootstrap-5.select2-container--focus .select2-selection,
.auth .select2-container--bootstrap-5.select2-container--open .select2-selection {
    border-color: var(--forest);
    box-shadow: 0 0 0 4px rgba(140, 198, 63, .25);
}

.auth .select2-container--bootstrap-5 .select2-selection.is-invalid {
    border-color: #D64545;
}

.select2-container--bootstrap-5 .select2-dropdown {
    overflow: hidden;
    border-color: rgba(1, 21, 45, .16);
    border-radius: 14px;
    box-shadow: 0 24px 40px -22px rgba(1, 21, 45, .45);
    font-family: var(--f-body);
}

.select2-container--bootstrap-5 .select2-dropdown .select2-results__options .select2-results__option.select2-results__option--highlighted {
    background: rgba(140, 198, 63, .2);
    color: var(--ink);
}

.select2-container--bootstrap-5 .select2-dropdown .select2-results__options .select2-results__option.select2-results__option--selected {
    background: var(--ink);
    color: #fff;
}

/* Busy overlay while the registration posts */
.auth-loading {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    background: rgba(1, 21, 45, .72);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    font: 600 .95rem var(--f-body);
    color: #fff;
}

.auth-loading.is-visible {
    display: flex;
}

.auth-loading__spinner {
    width: 46px;
    height: 46px;
    border: 3px solid rgba(255, 255, 255, .2);
    border-top-color: var(--leaf);
    border-radius: 50%;
    animation: spin .9s linear infinite;
}

@media (max-width: 991.98px) {
    .auth {
        grid-template-columns: minmax(0, 1fr);
    }

    .auth__visual {
        display: none;
    }

    .auth__mobile-brand {
        display: inline-flex;
    }
}

@media (max-width: 575.98px) {
    .form-grid,
    .choice {
        grid-template-columns: minmax(0, 1fr);
    }

    .auth-actions {
        flex-direction: column-reverse;
    }

    .btn-ghost-ink {
        width: 100%;
    }
}
