/* Sejurba Lek IT A-47
   Tema gelap biru: navy pekat, satu aksen biru elektrik, cyan hanya untuk
   label kecil. Nuansa "cyber" datang dari grid tipis, huruf mono, dan
   sudut bracket pada foto, bukan dari glow atau efek glitch. */

:root {
    --bg: #060b16;
    --bg-2: #0b1424;
    --bg-3: #11203a;
    --line: #18263f;
    --line-strong: #27406b;
    --text: #e3eaf5;
    --text-2: #8a9bb8;
    --accent: #3b8cff;
    --accent-hover: #64a5ff;
    --accent-2: #7cc8ff;
    --accent-ink: #04101f;
    --accent-soft: rgba(59, 140, 255, 0.12);
    --danger: #ff5a5f;

    --font-display: 'Archivo', 'Arial Narrow', sans-serif;
    --font-body: 'Archivo', system-ui, sans-serif;
    --font-mono: 'IBM Plex Mono', ui-monospace, monospace;

    --gutter: 24px;
    --nav-h: 64px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    color-scheme: dark;
}

body {
    background-color: var(--bg);
    background-image:
        linear-gradient(rgba(59, 140, 255, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59, 140, 255, 0.045) 1px, transparent 1px);
    background-size: 56px 56px;
    background-attachment: fixed;
    color: var(--text);
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
}

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

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

.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 var(--gutter);
}

/* Type */
.display {
    font-family: var(--font-display);
    font-stretch: 75%;
    font-weight: 800;
    text-transform: uppercase;
    line-height: 0.92;
    letter-spacing: -0.005em;
}

.label {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent-2);
}

.label::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-right: 10px;
    background: var(--accent);
    vertical-align: 0.12em;
}

/* Sudut bracket ala HUD untuk foto & panel */
.frame {
    position: relative;
}

.frame::after {
    content: '';
    position: absolute;
    inset: -6px;
    pointer-events: none;
    --c: var(--accent);
    --l: 16px;
    --w: 1.5px;
    background:
        linear-gradient(var(--c), var(--c)) top left / var(--l) var(--w),
        linear-gradient(var(--c), var(--c)) top left / var(--w) var(--l),
        linear-gradient(var(--c), var(--c)) top right / var(--l) var(--w),
        linear-gradient(var(--c), var(--c)) top right / var(--w) var(--l),
        linear-gradient(var(--c), var(--c)) bottom left / var(--l) var(--w),
        linear-gradient(var(--c), var(--c)) bottom left / var(--w) var(--l),
        linear-gradient(var(--c), var(--c)) bottom right / var(--l) var(--w),
        linear-gradient(var(--c), var(--c)) bottom right / var(--w) var(--l);
    background-repeat: no-repeat;
}

/* Navigation */
.site-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(6, 11, 22, 0.88);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
}

.site-nav .container {
    height: var(--nav-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    position: relative;
    z-index: 101;
    display: flex;
    align-items: baseline;
    gap: 10px;
    text-decoration: none;
}

.brand-mark {
    font-family: var(--font-display);
    font-stretch: 75%;
    font-weight: 800;
    font-size: 1.6rem;
    line-height: 1;
    background: var(--accent);
    color: var(--accent-ink);
    padding: 4px 7px 2px;
}

.brand-sub {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-2);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 28px;
}

.nav-links a {
    display: block;
    padding: 6px 0;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-2);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: color 0.15s, border-color 0.15s;
}

.nav-links a:hover {
    color: var(--text);
}

.nav-links a.active {
    color: var(--text);
    border-bottom-color: var(--accent);
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 26px;
    height: 18px;
    background: none;
    border: 0;
    cursor: pointer;
    z-index: 101;
}

.hamburger .bar {
    height: 2px;
    width: 100%;
    background: var(--text);
    transition: transform 0.25s, opacity 0.25s;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid var(--line-strong);
    background: transparent;
    color: var(--text);
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.btn:hover {
    border-color: var(--accent);
    background: var(--accent-soft);
}

.btn-primary {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--accent-ink);
}

.btn-primary:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
}

/* Hero (beranda) */
.hero {
    border-bottom: 1px solid var(--line);
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: 56px;
    align-items: center;
    padding: 80px 0 64px;
}

.hero-title {
    font-size: clamp(3.4rem, 8.5vw, 7.2rem);
    margin: 18px 0 24px;
}

.hero-title .num {
    display: inline-block;
    background: var(--accent);
    color: var(--accent-ink);
    padding: 0.04em 0.12em 0;
    margin-top: 0.06em;
}

.hero-lede {
    max-width: 34ch;
    font-size: 1.125rem;
    color: var(--text-2);
    margin-bottom: 32px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero-photo,
.team-photo {
    margin: 0;
}

.hero-photo img,
.team-photo img {
    width: 100%;
    height: auto;
}

.hero-photo img {
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.hero-photo figcaption,
.team-photo figcaption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 28px 14px 12px;
    background: linear-gradient(transparent, rgba(6, 11, 22, 0.85));
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text);
}

.team-photo {
    margin-bottom: 64px;
}

.facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 1px solid var(--line);
}

.facts div {
    padding: 22px 0 26px 20px;
    border-right: 1px solid var(--line);
}

.facts div:first-child {
    padding-left: 0;
}

.facts div:last-child {
    border-right: 0;
}

.facts dt {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent-2);
}

.facts dd {
    font-family: var(--font-display);
    font-stretch: 75%;
    font-weight: 800;
    font-size: 2.6rem;
    line-height: 1.05;
    text-transform: uppercase;
}

/* Page header (halaman dalam) */
.page-head {
    padding: 72px 0 40px;
    border-bottom: 1px solid var(--line);
}

.page-head h1 {
    font-size: clamp(2.8rem, 7vw, 5.2rem);
    margin: 16px 0 18px;
}

.page-head .lede {
    max-width: 58ch;
    font-size: 1.125rem;
    color: var(--text-2);
}

.page-head-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
    flex-wrap: wrap;
}

/* Sections */
.section {
    padding: 72px 0;
}

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

.split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    gap: 48px;
}

.split > h2 {
    font-size: clamp(2rem, 4vw, 2.8rem);
}

.prose p {
    max-width: 62ch;
    font-size: 1.125rem;
    color: var(--text);
    margin-bottom: 1.1em;
}

.prose p:last-child {
    margin-bottom: 0;
}

/* Link rows */
.link-rows {
    list-style: none;
    border-top: 1px solid var(--line-strong);
}

.link-rows li {
    border-bottom: 1px solid var(--line);
}

.link-rows a {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 6px 24px;
    padding: 22px 0;
    text-decoration: none;
}

.link-rows .row-title {
    font-family: var(--font-display);
    font-stretch: 75%;
    font-weight: 800;
    font-size: 1.9rem;
    line-height: 1;
    text-transform: uppercase;
    transition: color 0.15s;
}

.link-rows .row-desc {
    grid-column: 1;
    color: var(--text-2);
}

.link-rows .row-arrow {
    grid-column: 2;
    grid-row: 1 / span 2;
    font-size: 1.5rem;
    color: var(--accent);
    transition: transform 0.2s;
}

.link-rows a:hover .row-title {
    color: var(--accent-2);
}

.link-rows a:hover .row-arrow {
    transform: translateX(6px);
}

/* Fokus pendidikan (about) */
.focus-list {
    list-style: none;
    counter-reset: focus;
    border-top: 1px solid var(--line-strong);
}

.focus-list li {
    counter-increment: focus;
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 4px 16px;
    padding: 20px 0;
    border-bottom: 1px solid var(--line);
}

.focus-list li::before {
    content: counter(focus, decimal-leading-zero);
    grid-row: 1 / span 2;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--accent-2);
    padding-top: 3px;
}

.focus-list h3 {
    font-size: 1.15rem;
    font-weight: 700;
}

.focus-list p {
    color: var(--text-2);
}

.motto {
    margin-top: 56px;
    padding: 28px 0 0;
    border-top: 2px solid var(--accent);
}

.motto p {
    font-family: var(--font-display);
    font-stretch: 75%;
    font-weight: 700;
    font-size: clamp(1.6rem, 3.4vw, 2.3rem);
    line-height: 1.12;
    max-width: 26ch;
}

/* Roster (anggota) */
.roster-meta {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line-strong);
}

.roster-meta h2 {
    font-size: 2rem;
}

.roster-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    column-gap: 32px;
}

.member {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 12px 6px 12px 0;
    background: none;
    border: 0;
    border-bottom: 1px solid var(--line);
    font: inherit;
    color: inherit;
    text-align: left;
    cursor: pointer;
    transition: background 0.12s;
}

.member:hover {
    background: rgba(59, 140, 255, 0.06);
}

.bib {
    flex: none;
    width: 40px;
    height: 34px;
    display: grid;
    place-items: center;
    background: var(--accent-soft);
    border: 1px solid var(--line-strong);
    color: var(--accent-2);
    font-family: var(--font-mono);
    font-weight: 500;
    font-size: 0.9rem;
    line-height: 1;
    transition: background 0.12s, color 0.12s, border-color 0.12s;
}

.member:hover .bib {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--accent-ink);
}

.member-name {
    flex: 1;
    font-weight: 600;
    font-size: 0.98rem;
    line-height: 1.3;
}

.member-tag {
    flex: none;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent-2);
    border: 1px solid var(--line-strong);
    padding: 1px 6px;
}

/* Arsip */
.album + .album {
    margin-top: 64px;
}

.album-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    padding-bottom: 12px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--line-strong);
}

.album-head h2 {
    font-size: 2rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 12px;
}

.gallery-item {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--bg-2);
    border: 1px solid var(--line);
    cursor: zoom-in;
    transition: border-color 0.15s;
}

.gallery-item:hover {
    border-color: var(--accent);
}

/* Video beranda */
.video-player {
    position: relative;
    background: #000;
    border: 1px solid var(--line);
}

.video-el {
    display: block;
    width: 100%;
    height: auto;
    background: #000;
}

.video-play {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 76px;
    height: 76px;
    display: grid;
    place-items: center;
    background: var(--accent);
    border: 0;
    color: var(--accent-ink);
    cursor: pointer;
    transition: background 0.15s, transform 0.15s;
}

.video-play[hidden] {
    display: none;
}

.video-play:hover {
    background: var(--accent-hover);
    transform: scale(1.05);
}

.video-play svg {
    margin-left: 3px;
}

/* Lightbox arsip */
.lb-open,
.lb-open body {
    overflow: hidden;
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    background: #03060e;
}

.lightbox[hidden] {
    display: none;
}

.lb-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 10px var(--gutter);
    border-bottom: 1px solid var(--line);
}

.lb-tools {
    display: flex;
    align-items: center;
    gap: 8px;
}

.lb-zoom {
    padding: 7px 14px;
    font-size: 0.85rem;
}

.lb-zoom[aria-pressed="true"] {
    border-color: var(--accent);
    background: var(--accent-soft);
}

.lb-close {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    background: none;
    border: 0;
    color: var(--text-2);
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
}

.lb-close:hover {
    color: var(--text);
}

.lb-stage {
    position: relative;
    flex: 1;
    min-height: 0;
}

.lb-scroller {
    position: absolute;
    inset: 0;
    display: flex;
    padding: 20px 72px;
    overflow: hidden;
}

.lb-img {
    margin: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    cursor: zoom-in;
    user-select: none;
    opacity: 0;
    transition: opacity 0.2s;
}

.lb-img.is-loaded {
    opacity: 1;
}

.lightbox.is-zoomed .lb-scroller {
    padding: 0;
    overflow: auto;
    cursor: grab;
}

.lightbox.is-zoomed .lb-scroller.is-dragging {
    cursor: grabbing;
}

.lightbox.is-zoomed .lb-img {
    flex: none;
    max-width: none;
    max-height: none;
    height: auto;
    cursor: zoom-out;
}

.lightbox.is-zoomed .lb-scroller.is-dragging .lb-img {
    cursor: grabbing;
}

.lb-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    background: rgba(11, 20, 36, 0.85);
    border: 1px solid var(--line-strong);
    color: var(--text);
    font-size: 1.3rem;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
}

.lb-nav:hover {
    border-color: var(--accent);
    background: var(--bg-3);
}

.lb-prev {
    left: 12px;
}

.lb-next {
    right: 12px;
}

.lb-nav[hidden],
.lightbox.is-zoomed .lb-nav {
    display: none;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.4s, transform 0.4s;
}

.gallery-item img.is-loaded {
    opacity: 1;
}

.gallery-item:hover img {
    transform: scale(1.03);
}

/* Lokasi */
.data-list {
    border-top: 1px solid var(--line-strong);
}

.data-list div {
    display: grid;
    grid-template-columns: 160px minmax(0, 1fr);
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
}

.data-list dt {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--accent-2);
    padding-top: 3px;
}

.data-list dd {
    font-weight: 600;
}

.data-list dd.mono {
    font-family: var(--font-mono);
    font-weight: 500;
}

.data-actions {
    margin-top: 28px;
}

/* 404 */
.not-found {
    padding: 96px 0 120px;
}

.not-found h1 {
    font-size: clamp(6rem, 22vw, 14rem);
}

.not-found h1 .num {
    background: var(--accent);
    color: var(--accent-ink);
    padding: 0 0.08em;
}

.not-found p {
    font-size: 1.2rem;
    color: var(--text-2);
    max-width: 44ch;
    margin: 24px 0 32px;
}

/* Footer */
.site-footer {
    margin-top: auto;
    background: #040811;
    border-top: 1px solid var(--line);
    color: var(--text-2);
    padding: 48px 0 40px;
    font-size: 0.92rem;
}

.site-footer .container {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
    flex-wrap: wrap;
}

.footer-meta {
    text-align: right;
}

.footer-credit {
    margin-top: 4px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
}

.footer-credit .heart {
    color: var(--accent);
}

.footer-credit a {
    color: var(--accent-2);
    text-decoration: none;
    border-bottom: 1px solid var(--line-strong);
    transition: color 0.15s, border-color 0.15s;
}

.footer-credit a:hover {
    color: var(--text);
    border-bottom-color: var(--accent);
}

.footer-brand {
    font-family: var(--font-display);
    font-stretch: 75%;
    font-weight: 800;
    font-size: 1.8rem;
    line-height: 1;
    text-transform: uppercase;
    color: var(--text);
    margin-bottom: 8px;
}

/* Modal biodata */
.modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.modal.hidden {
    display: none;
}

.modal-bg {
    position: absolute;
    inset: 0;
    background: rgba(2, 5, 12, 0.75);
}

.modal-card {
    position: relative;
    width: 100%;
    max-width: 440px;
    background: var(--bg-2);
    border: 1px solid var(--line-strong);
    padding: 28px;
}

.modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    background: none;
    border: 0;
    font-size: 1.5rem;
    line-height: 1;
    color: var(--text-2);
    cursor: pointer;
}

.modal-close:hover {
    color: var(--text);
}

.modal-card .bib {
    width: 64px;
    height: 54px;
    font-size: 1.5rem;
    margin-bottom: 18px;
}

.modal-card h2 {
    font-size: 2.2rem;
    padding-right: 32px;
    margin: 10px 0;
}

.modal-card p:not(.label) {
    color: var(--text-2);
}

.modal-card .data-list {
    margin-top: 22px;
}

.modal-card .data-list div {
    grid-template-columns: 108px minmax(0, 1fr);
    gap: 12px;
    padding: 12px 0;
}

/* Peringatan klik kanan / shortcut */
.cyber-alert-container {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(2, 5, 12, 0.75);
}

.cyber-alert-box {
    width: 100%;
    max-width: 420px;
    background: var(--bg-2);
    border: 1px solid var(--line-strong);
    border-top: 2px solid var(--danger);
    padding: 28px;
}

.cyber-alert-box h3 {
    font-family: var(--font-display);
    font-stretch: 75%;
    font-weight: 800;
    font-size: 2rem;
    line-height: 1;
    text-transform: uppercase;
    margin: 12px 0;
}

.cyber-alert-box p:not(.label) {
    color: var(--text-2);
    margin-bottom: 24px;
}

.cyber-alert-box .label {
    color: var(--danger);
}

.cyber-alert-box .label::before {
    background: var(--danger);
}

/* Responsive */
@media (max-width: 900px) {
    .hero-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 40px;
        padding: 48px 0 40px;
    }

    .split {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
    }
}

@media (max-width: 768px) {
    :root {
        --gutter: 16px;
        --nav-h: 56px;
    }

    .brand-sub {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: var(--nav-h);
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        padding: 8px var(--gutter) 24px;
        background: var(--bg);
        border-bottom: 1px solid var(--line);
        transform: translateY(-120%);
        visibility: hidden;
        transition: transform 0.25s, visibility 0.25s;
        z-index: 99;
    }

    .nav-links.active {
        transform: translateY(0);
        visibility: visible;
    }

    .nav-links a {
        padding: 14px 0;
        font-size: 1.1rem;
        border-bottom: 1px solid var(--line);
    }

    .nav-links a.active {
        border-bottom-color: var(--line);
        box-shadow: inset 3px 0 0 var(--accent);
        padding-left: 14px;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .page-head {
        padding: 48px 0 32px;
    }

    .section {
        padding: 48px 0;
    }

    .facts dd {
        font-size: 2.1rem;
    }

    .link-rows .row-title {
        font-size: 1.6rem;
    }

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

    .team-photo {
        margin-bottom: 48px;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .data-list div {
        grid-template-columns: minmax(0, 1fr);
        gap: 2px;
    }

    .footer-meta {
        text-align: left;
    }

    .lb-scroller {
        padding: 12px 0;
    }

    .lb-nav {
        top: auto;
        bottom: 16px;
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        transition: none !important;
        animation: none !important;
    }
}
