/* =============================================================================
   HALAMAN HOME & ABOUT / HOME AND ABOUT PAGES
   Panggung halaman, panel home, slider pengalaman, panel komunitas, dan
   breakpoint.
   The page stage, the home panels, the experience slider, the community
   panels, and the breakpoints.

   Markup ada di index.html, transisi halaman di js/home.js.
   Markup lives in index.html, page transitions in js/home.js.
   ============================================================================= */
html,
        body {
            margin: 0;
            background: var(--bg);
            color: var(--text);
            font-family: "Segoe UI", Arial, sans-serif;
            -webkit-font-smoothing: antialiased;
        }

        a {
            color: inherit;
            text-decoration: none;
        }

        button {
            font: inherit;
            cursor: pointer;
        }

        a,
        button {
            -webkit-tap-highlight-color: transparent;
            touch-action: manipulation;
        }

        :focus-visible {
            outline: 2px solid var(--accent);
            outline-offset: 5px;
        }

        ::selection {
            background: #cad6df;
            color: #080808;
        }

        [hidden] {
            display: none !important;
        }

        /* ------------------------------------------------------------ page stage
           Panggung yang memuat home dan about.
           The stage that holds the home and about pages. */

        .stage {
            flex: 1;
            min-width: 0;
            display: grid;
            align-items: center;
        }

        .page {
            grid-area: 1 / 1;
            min-width: 0;
        }

        .page.entering {
            animation: enter var(--motion-enter) var(--ease) both;
        }

        .page.leaving {
            animation: leave var(--motion-leave) ease both;
            pointer-events: none;
        }

        /* ------------------------------------------------------------ home
           Panel utama halaman home.
           The main home page panel. */

        .home-art {
            display: grid;
            place-items: center;
            margin: 0;
            padding-block: 14px;
        }

        .home-art img {
            display: block;
            width: 100%;
            height: auto;
            max-height: 70svh;
            object-fit: contain;
        }

        .home-copy {
            display: flex;
            align-items: baseline;
            justify-content: space-between;
            flex-wrap: wrap;
            gap: 14px 30px;
            padding: 24px 0 30px;
        }

        .home-copy h1 {
            margin: 0;
            font-size: clamp(28px, 3.8vw, 52px);
            line-height: 1.2;
            font-weight: 400;
            letter-spacing: -.05em;
            min-height: 1.2em;
            transition: opacity 0.2s ease;
        }

        .home-copy h1.typing::after {
            content: "▋";
            color: var(--accent);
            animation: blink 1s step-end infinite;
            margin-left: 2px;
        }

        @keyframes blink {
            50% {
                opacity: 0;
            }
        }

        .home-copy p {
            margin: 0;
            color: var(--muted);
            font-size: 16px;
            line-height: 1.6;
            min-height: 1.4em;
            transition: opacity 0.25s ease;
        }

        /* ------------------------------------------------------------ about
           Panel halaman about.
           The about page panel. */

        .about-layout {
            width: 100%;
            margin-inline: auto;
            padding: 26px 0 36px;
            display: grid;
            grid-template-columns: minmax(280px, .9fr) minmax(0, 1.1fr);
            align-items: center;
            gap: clamp(30px, 5vw, 72px);
        }

        .about-content {
            min-width: 0;
        }

        /* ------------------------------------------------------------ full portrait
           Potret layar penuh di balik tirai.
           The full screen portrait behind the curtain. */

        .portrait {
            width: min(410px, 100%);
            margin: 0;
            justify-self: start;
        }

        .portrait-stage {
            position: relative;
            overflow: hidden;
            border: 1px solid #292d32;
            border-radius: 10px;
            background: #111416;
        }

        .portrait img {
            display: block;
            width: 100%;
            height: auto;
            max-height: min(65svh, 580px);
            object-fit: contain;
        }

        .portrait-cover {
            position: absolute;
            inset: 0;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 14px;
            padding: 20px;
            background:
                radial-gradient(
                    ellipse at top,
                    #263946,
                    transparent 80%
                ),
                #10161c;
            transform: translateY(102%);
            transition: transform .75s var(--ease);
            pointer-events: none;
        }

        .portrait-cover::before {
            content: "";
            width: 30px;
            height: 1px;
            background: #9fbccc;
        }

        .cover-name {
            font-size: clamp(25px, 3vw, 40px);
            letter-spacing: -1.4px;
        }

        .cover-caption {
            color: #b2c5d2;
            font-size: 14px;
        }

        .portrait.covered .portrait-cover {
            transform: translateY(0);
        }

        .portrait-footer {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            padding-top: 11px;
            color: var(--muted);
            font-size: 14px;
        }

        .photo-toggle {
            min-height: 44px;
            padding: 8px 13px;
            border: 1px solid #343a40;
            border-radius: 999px;
            background: transparent;
            color: #c9d1d8;
            font-size: 13px;
            transition: background .2s, border-color .2s;
        }

        .photo-toggle:hover {
            background: #191f24;
            border-color: #71818e;
        }

        /* ------------------------------------------------------------ about tabs
           Tab pengalaman dan komunitas.
           The experience and community tabs. */

        .tabs {
            display: flex;
            flex-wrap: wrap;
            gap: 6px 18px;
            margin-bottom: 24px;
            border-bottom: 1px solid var(--line);
        }

        .tab {
            position: relative;
            min-height: 44px;
            padding: 8px 0 13px;
            border: 0;
            background: transparent;
            color: #969fa7;
            font-size: 14px;
            transition: color .2s;
        }

        .tab::after {
            content: "";
            position: absolute;
            bottom: -1px;
            left: 0;
            right: 0;
            height: 2px;
            background: var(--accent);
            transform: scaleX(0);
            transform-origin: left;
            transition: transform .35s var(--ease);
        }

        .tab[aria-selected="true"] {
            color: var(--text);
        }

        .tab[aria-selected="true"]::after {
            transform: scaleX(1);
        }

        .tab:hover {
            color: #fff;
        }

        .panel-viewport {
            position: relative;
            min-height: 340px;
            touch-action: pan-y;
        }

        .panel.active,
        .subview.active {
            animation: slide-in .4s var(--ease) both;
        }

        .panel-title {
            margin: 0 0 19px;
            font-size: clamp(32px, 3.9vw, 52px);
            line-height: 1.1;
            font-weight: 400;
            letter-spacing: -.05em;
        }

        .panel-title span {
            color: #a9bece;
        }

        .panel p {
            margin: 0 0 16px;
            color: var(--muted);
            font-size: 17px;
            line-height: 1.75;
        }

        .panel strong {
            color: #e0e6ea;
            font-weight: 500;
        }

        .facts {
            display: grid;
            gap: 11px;
            margin: 23px 0 0;
        }

        .fact {
            display: grid;
            grid-template-columns: 65px minmax(0, 1fr);
            gap: 16px;
        }

        .fact dt {
            color: #949fa8;
            font-size: 14px;
            line-height: 1.7;
        }

        .fact dd {
            margin: 0;
            color: #ced6dd;
            font-size: 15px;
            line-height: 1.7;
        }

        /* ------------------------------------------------------------ experience
           Daftar pengalaman.
           The experience list. */

        .experience-entry {
            width: 100%;
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 18px;
            padding: 17px 0;
            border: 0;
            border-bottom: 1px solid var(--line);
            background: transparent;
            color: var(--text);
            text-align: left;
        }

        .experience-entry:last-child {
            border-bottom: 0;
        }

        .experience-name {
            display: block;
            margin: 0 0 5px;
            font-size: 18px;
            font-weight: 500;
            line-height: 1.4;
        }

        .experience-description {
            display: block;
            color: var(--muted);
            font-size: 15px;
            line-height: 1.65;
        }

        .experience-arrow {
            display: inline-block;
            vertical-align: middle;
            color: inherit;
            font-size: inherit;
        }

        .experience-arrow svg {
            display: block;
            color: inherit;
        }


        button.experience-entry:hover .experience-arrow svg {
            transform: translateX(5px);
        }

        button.experience-entry:hover .experience-name {
            color: #c4ddeb;
        }

        .back-button {
            min-height: 44px;
            display: inline-flex;
            align-items: center;
            gap: 9px;
            margin: -8px 0 12px;
            padding: 0;
            border: 0;
            background: none;
            color: #b6c8d5;
            font-size: 14px;
        }

        .detail-title {
            margin: 0 0 14px;
            font-size: 27px;
            font-weight: 400;
            letter-spacing: -.8px;
            line-height: 1.2;
        }

        .entry {
            padding: 12px 0;
        }

        .entry + .entry {
            border-top: 1px solid var(--line);
        }

        .entry h3 {
            margin: 0 0 5px;
            font-size: 17px;
            font-weight: 500;
            line-height: 1.45;
        }

        .entry p {
            margin: 0;
            font-size: 15px;
            line-height: 1.7;
        }

        .entry-meta {
            color: #b9cad6 !important;
        }

        .project-link {
            display: inline-flex;
            align-items: center;
            min-height: 44px;
            gap: 10px;
            color: #d8e6ef;
            font-size: 16px;
        }

        .project-link svg {
            flex-shrink: 0;
            color: inherit;
        }

        .project-link:hover {
            text-decoration: underline;
            text-underline-offset: 5px;
        }

        /* ------------------------------------------------------------ panel controls
           Kontrol slide dan panel.
           Slide and panel controls. */

        .panel-controls {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 20px;
            margin-top: 18px;
            padding-top: 17px;
            border-top: 1px solid var(--line);
        }

        .counter {
            color: #a5b5c1;
            font-size: 13px;
            font-variant-numeric: tabular-nums;
        }

        .arrow-buttons {
            display: flex;
            gap: 8px;
        }

        .arrow-button {
            display: grid;
            place-items: center;
            width: 44px;
            height: 44px;
            border: 1px solid #353d44;
            border-radius: 50%;
            background: transparent;
            color: var(--text);
            transition: background .2s, transform .2s;
        }

        .arrow-button svg {
            display: block;
            color: inherit;
        }

        .arrow-button:hover {
            background: #1b252d;
        }

        .arrow-button:active {
            transform: scale(.94);
        }

        /* ------------------------------------------------------------ contacts
           Daftar kontak dan sosial.
           The contact and social list. */

        .contact-row {
            display: flex;
            align-items: center;
            flex-wrap: wrap;
            gap: 12px 18px;
            margin-top: 18px;
        }

        .social-links {
            display: flex;
            gap: 9px;
        }

        .social-link {
            display: grid;
            place-items: center;
            width: 44px;
            height: 44px;
            border: 1px solid #353b42;
            border-radius: 50%;
            color: #d0d9e0;
            transition:
                background .2s,
                transform .25s var(--ease);
        }

        .social-link svg {
            width: 19px;
            height: 19px;
        }

        .social-link:hover {
            background: #1b252d;
            transform: translateY(-3px);
        }

        .contact-note {
            color: var(--muted);
            font-size: 11px;
            line-height: 1.6;
        }

        /* ------------------------------------------------------------ mobile
           Penyesuaian untuk ponsel.
           Phone adjustments. */

        @media (max-width: 700px) {
            .home-art img {
                max-height: none;
            }

            .home-copy {
                display: block;
                padding-block: 23px 28px;
            }

            .home-copy p {
                margin-top: 12px;
                font-size: 16px;
            }

            .about-layout {
                grid-template-columns: 1fr;
                gap: 17px;
                padding: 12px 0 22px;
            }

            .portrait {
                width: 100%;
                display: flex;
                align-items: center;
                gap: 18px;
                justify-self: start;
            }

            .portrait-stage {
                width: 125px;
                flex-shrink: 0;
            }

            .portrait img {
                width: 100%;
                height: 135px;
                max-height: none;
                object-fit: contain;
            }

            .portrait-footer {
                display: grid;
                gap: 9px;
                padding: 0;
            }

            .cover-name {
                font-size: 21px;
                letter-spacing: -.7px;
            }

            .cover-caption,
            .portrait-cover::before {
                display: none;
            }

            .photo-toggle {
                min-height: 40px;
                font-size: 12px;
            }

            .tabs {
                gap: 5px 15px;
                margin-bottom: 18px;
            }

            .tab {
                font-size: 13px;
            }

            .panel-viewport {
                min-height: 320px;
            }

            .panel-title {
                font-size: 34px;
                margin-bottom: 16px;
            }

            .panel p {
                font-size: 16px;
                line-height: 1.65;
            }

            .facts {
                margin-top: 18px;
                gap: 9px;
            }

            .fact {
                grid-template-columns: 55px minmax(0, 1fr);
                gap: 10px;
            }

            .fact dt,
            .fact dd {
                font-size: 13px;
            }

            .entry h3 {
                font-size: 16px;
            }

            .entry p {
                font-size: 14px;
            }

            .experience-entry {
                padding-block: 14px;
            }

            .experience-name {
                font-size: 17px;
            }

            .experience-description {
                font-size: 14px;
            }

            .detail-title {
                font-size: 25px;
            }

            .panel-controls {
                margin-top: 12px;
                padding-top: 12px;
            }

            .contact-row {
                margin-top: 12px;
            }
        }

        /* ------------------------------------------------------------ short desktop screens
           Layar desktop pendek.
           Short desktop screens. */

        @media (max-height: 700px) and (min-width: 701px) {
            .about-layout {
                padding-block: 16px 24px;
                gap: 36px;
            }

            .portrait {
                max-width: 350px;
            }

            .portrait img {
                max-height: 410px;
            }

            .tabs {
                margin-bottom: 17px;
            }

            .panel-title {
                font-size: 38px;
            }

            .panel p {
                font-size: 16px;
            }

            .panel-controls {
                margin-top: 12px;
                padding-top: 12px;
            }
        }

        @media (max-width: 360px) {
            .tabs {
                column-gap: 12px;
            }

            .tab {
                font-size: 12px;
            }
        }

        @keyframes slide-in {
            from {
                opacity: 0;
                transform: translateX(var(--slide-from, 22px));
            }

            to {
                opacity: 1;
                transform: translateX(0);
            }
        }

        .session-details > summary { list-style: none; }
        .session-details > summary::-webkit-details-marker { display: none; }
