/* ============================================================
   ACG — Adrián Cano González · Dossier Artístico
   acg_dossier.css
   ============================================================ */

/* ── FONTS ── */
@font-face {
    font-family: "Host Grotesk";
    src: url("/home/claude/fonts/HostGrotesk-Light.ttf") format("truetype");
    font-weight: 300;
}
@font-face {
    font-family: "Host Grotesk";
    src: url("/home/claude/fonts/HostGrotesk-Regular.ttf") format("truetype");
    font-weight: 400;
}
@font-face {
    font-family: "Host Grotesk";
    src: url("/home/claude/fonts/HostGrotesk-Medium.ttf") format("truetype");
    font-weight: 500;
}
@font-face {
    font-family: "Host Grotesk";
    src: url("/home/claude/fonts/HostGrotesk-Bold.ttf") format("truetype");
    font-weight: 700;
}
@font-face {
    font-family: "Datatype";
    src: url("/home/claude/fonts/Datatype-Regular.ttf") format("truetype");
    font-weight: 400;
}

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

/* ── TOKENS ── */
:root {
    --bg: #0a0a0a;
    --surface: #111111;
    --border: #3b3b3b;
    --border-hover: #525252;
    --accent: #e0e0e0;
    --muted: #7a7a7a;
    --highlight: #00ff44;
    --secondary: #d000ff;
    --text: #d4d4d4;
    --text-light: #888888;
}

/* ── BASE ── */
html {
    font-size: 17px;
    background: var(--bg);
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: "Host Grotesk", sans-serif;
    font-size: 0.875rem;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
}

/* ══════════════════════════════════════════
   WRAPPER — columna de page-conts
   ══════════════════════════════════════════ */
.wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
}

/* ══════════════════════════════════════════
   PAGE-CONT — contenedor de cada par
   ══════════════════════════════════════════ */
.page-cont {
    min-height: 100vh;
    display: flex;
    flex-direction: row;
}

/* ── PAGE-IMAGES — columna de imágenes (60%) ── */
.page-images {
    flex: 0 0 60%;
    width: 60%;
    background: var(--surface);
    border-right: 1px solid var(--border);
    overflow: hidden;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ── COVER CANVAS ── */
#cover-canvas {
    display: block;
    /* position: absolute; */
    inset: 0;
    width: 75%;
    height: 75%;
}

/* ── PREMIOS CANVAS ── */
#premios-canvas {
    display: block;
    position: absolute;
    transform-origin: center center;
    animation: rotate-premios 120s linear infinite;
}

@keyframes rotate-premios {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* ── LIVECODING CANVAS ── */
#livecoding-canvas {
    display: block;
    /* position: absolute; */
    inset: 0;
    width: 75%;
    height: 75%;
}

/* ── T37 CANVAS ── */
#t37-canvas {
    display: block;
    /* position: absolute; */
    inset: 0;
    width: 75%;
    height: 75%;
}

/* ── PAGE — columna de contenido (40%) ── */
.page {
    flex: 0 0 40%;
    width: 40%;
    min-height: 100%;
    padding: 64px 56px;
    page-break-after: always;
    position: relative;
    background: var(--bg);
    overflow-y: auto;
}
.page:last-child {
    page-break-after: avoid;
}

/* ── MASONRY GALLERY ── */
.masonry > h2 {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 20px;
}

.masonry > ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.masonry > ul > li {
    height: 40vh;
    flex-grow: 1;
    overflow: hidden;
}

.masonry > ul > li > img {
    max-height: 100%;
    min-width: 100%;
    object-fit: cover;
    transition: 0.3s ease-in-out;
}

.masonry > ul > li > img:hover {
    transform: scale(1.1);
}

#images-web img {
    object-fit: contain;
}

/* ══════════════════════════════════════════
   COVER PAGE
   ══════════════════════════════════════════ */
.cover {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100%;
    padding: 88px 64px 72px 64px;
}

.cover-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 1px solid var(--border);
    padding-bottom: 32px;
    margin-bottom: 48px;
}

.cover-label {
    font-family: "Datatype", monospace;
    font-size: 0.65rem;
    color: var(--muted);
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.cover-year {
    font-family: "Datatype", monospace;
    font-size: 0.65rem;
    color: var(--muted);
}

.cover-hero {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 80px 0;
}

.cover-acronym {
    font-family: "Datatype", monospace;
    font-size: 7rem;
    font-weight: 400;
    color: var(--highlight);
    letter-spacing: -0.02em;
    line-height: 0.9;
    margin-bottom: 32px;
}

.cover-fullname {
    font-family: "Host Grotesk", sans-serif;
    font-size: 1.1rem;
    font-weight: bold;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 8px;
    color: var(--secondary);
}

.cover-alias {
    font-family: "Datatype", monospace;
    font-size: 0.65rem;
    color: var(--muted);
    letter-spacing: 0.12em;
}

.cover-desc {
    max-width: 380px;
    font-size: 0.8rem;
    color: var(--text-light);
    line-height: 1.7;
    margin-top: 32px;
    border-left: 2px solid var(--secondary);
    padding-left: 20px;
}

.cover-disciplines {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 24px;
}

.chip {
    font-family: "Datatype", monospace;
    font-size: 0.6rem;
    letter-spacing: 0.1em;
    color: var(--muted);
    border: 1px solid var(--border);
    padding: 4px 12px;
    text-transform: uppercase;
}

.cover-bottom {
    border-top: 1px solid var(--border);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.cover-contact {
    font-family: "Datatype", monospace;
    font-size: 0.6rem;
    color: var(--muted);
    letter-spacing: 0.08em;
    line-height: 1.8;
}

.cover-index {
    font-family: "Datatype", monospace;
    font-size: 0.6rem;
    color: var(--muted);
    text-align: right;
    line-height: 1.8;
}

/* ══════════════════════════════════════════
   SECTION HEADER
   ══════════════════════════════════════════ */
.section-header {
    display: flex;
    align-items: baseline;
    gap: 16px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 16px;
    margin-bottom: 24px;
}

.section-num {
    font-family: "Datatype", monospace;
    font-size: 0.7rem;
    color: var(--secondary);
    letter-spacing: 0.1em;
}

.section-title {
    font-family: "Host Grotesk", sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: -0.02em;
    line-height: 1;
}

.section-tag {
    margin-left: auto;
    font-family: "Datatype", monospace;
    font-size: 0.55rem;
    color: var(--muted);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

/* ══════════════════════════════════════════
   PROJECT CARDS
   ══════════════════════════════════════════ */
.project-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.project-card {
    border: 1px solid var(--border);
    padding: 20px 24px;
    position: relative;
    transition: 0.3s;
}

.project-card:hover {
    border-color: var(--border-hover);
}

.project-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 2px;
    height: 100%;
    background: var(--highlight);
}

.project-name {
    font-family: "Host Grotesk", sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 4px;
}

.project-alias {
    font-family: "Datatype", monospace;
    font-size: 0.6rem;
    color: var(--highlight);
    letter-spacing: 0.1em;
    margin-bottom: 8px;
}

.project-desc {
    font-size: 0.75rem;
    color: var(--text-light);
    line-height: 1.6;
}

.project-meta {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.meta-tag {
    font-family: "Datatype", monospace;
    font-size: 0.55rem;
    color: var(--muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border: 1px solid var(--border);
    padding: 2px 8px;
    transition: 0.3s;
}

.meta-tag:hover {
    border-color: var(--border-hover);
}

/* ── TWO COLUMNS ── */
.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* ══════════════════════════════════════════
   AWARDS
   ══════════════════════════════════════════ */
.award-card {
    border: 1px solid var(--border);
    padding: 20px 24px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    position: relative;
}

.award-icon {
    font-family: "Datatype", monospace;
    font-size: 1.4rem;
    color: var(--secondary);
    line-height: 1;
    flex-shrink: 0;
    width: 40px;
    text-align: center;
}

.award-info {
}

.award-title {
    font-family: "Host Grotesk", sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 4px;
}

.award-body {
    font-size: 0.7rem;
    color: var(--text-light);
    line-height: 1.6;
}

.award-year {
    font-family: "Datatype", monospace;
    font-size: 0.6rem;
    color: var(--muted);
    margin-top: 4px;
    display: block;
}

/* ══════════════════════════════════════════
   PAGE FOOTER
   ══════════════════════════════════════════ */
.page-footer {
    position: absolute;
    bottom: 40px;
    left: 56px;
    right: 56px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border);
    padding-top: 12px;
}

.footer-name {
    font-family: "Datatype", monospace;
    font-size: 0.55rem;
    color: var(--muted);
    letter-spacing: 0.12em;
}

.footer-page {
    font-family: "Datatype", monospace;
    font-size: 0.55rem;
    color: var(--muted);
}

/* ══════════════════════════════════════════
   INTRO BOX
   ══════════════════════════════════════════ */
.intro-box {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 16px 20px;
    margin-bottom: 16px;
}

.intro-box p {
    font-size: 0.8rem;
    color: var(--text-light);
    line-height: 1.75;
}

/* ── DIVIDER ── */
.divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 20px 0;
}

/* ── HIGHLIGHT ── */
.hl {
    color: var(--highlight);
}

.hl-secondary {
    color: var(--secondary);
}

/* ── LINKS en alias y labels ── */
.project-alias a,
.feature-card-label a,
.award-year a,
.hl-secondary {
    color: var(--secondary);
    text-decoration: none;
}

/* ── ICONO DE ENLACE EXTERNO ──
   Sustituye al carácter 🡥. Usa mask-image para que el color
   del SVG se controle desde CSS y herede del texto circundante. */
.link-icon {
    display: inline-block;
    width: 0.85em;
    height: 0.85em;
    background-color: var(--secondary);
    -webkit-mask-image: url("../media/icon/link.svg");
    mask-image: url("../media/icon/link.svg");
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    vertical-align: -0.05em;
}

/* ── "Sobre ACG" al final de Premios ── */
.sobre-acg {
    margin-top: 24px;
}

.sobre-acg .section-header {
    margin-bottom: 16px;
}

.subsection-title {
    font-family: "Host Grotesk", sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--accent);
}

/* ══════════════════════════════════════════
   FEATURE CARD (T37 / Radio)
   ══════════════════════════════════════════ */
.feature-card {
    border: 1px solid var(--border);
    padding: 24px;
    margin-bottom: 16px;
    background: var(--surface);
    position: relative;
}

.feature-card-label {
    font-family: "Datatype", monospace;
    font-size: 0.55rem;
    color: var(--highlight);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.feature-card-title {
    font-family: "Host Grotesk", sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 8px;
}

.feature-card-body {
    font-size: 0.75rem;
    color: var(--text-light);
    line-height: 1.65;
}

.inline-chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 12px;
}

/* ══════════════════════════════════════════
   LIGHTBOX
   ══════════════════════════════════════════ */

/* cursor indicativo en todas las imágenes clickables */
.page-images img,
.masonry img {
    cursor: zoom-in;
}

/* overlay: invisible por defecto, cubre toda la pantalla */
#lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
    pointer-events: none;
    transition: background 0.25s ease;
}

#lightbox.is-open {
    background: rgba(0, 0, 0, 0.88);
    pointer-events: all;
    cursor: zoom-out;
}

#lightbox-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
    opacity: 0;
    transform: scale(0.96);
    transition:
        opacity 0.25s ease,
        transform 0.25s ease;
    pointer-events: none;
}

#lightbox.is-open #lightbox-img {
    opacity: 1;
    transform: scale(1);
}

/* ══════════════════════════════════════════
   RESPONSIVE — MOBILE
   ══════════════════════════════════════════ */
@media screen and (max-width: 900px) {
    body {
        justify-content: flex-start;
    }

    .page-cont {
        height: auto;
        flex-direction: column;
    }

    .page-images {
        flex: none;
        width: 100%;
        min-height: 75vh;
        border-right: none;
        border-top: 1px solid var(--border);
        order: 2;
    }

    .page {
        flex: none;
        width: 100%;
        min-height: auto;
        padding: 8vw 5vw 16vw 5vw;
        overflow-y: visible;
        order: 1;
    }

    html {
        font-size: 15px;
    }

    .cover-acronym {
        font-size: 22vw;
    }

    .cover-hero {
        padding: 8vw 0;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .two-col {
        grid-template-columns: 1fr;
    }

    .page-footer {
        position: static;
        margin-top: 12vw;
        padding-top: 4vw;
        bottom: auto;
        left: auto;
        right: auto;
    }

    .cover-desc {
        max-width: 100%;
    }

    /* el contenedor T37 adopta el aspect ratio de wordart.png
       (2194 × 1461) para que el canvas no quede con bandas vacías */
    #images-t37 {
        min-height: 0;
        aspect-ratio: 2194 / 1461;
    }
    #t37-canvas {
        width: 100%;
        height: 100%;
    }
}

@media screen and (max-width: 512px) {
    .masonry > ul {
        flex-direction: column;
    }

    .masonry > ul > li > img {
        object-fit: contain;
    }

    #images-cover {
        height: 80vh;
    }

    #images-web li {
        height: 23vh;
    }
}
