/* =====================================================================
   UNDERpunks marketing hub — the shelf the visualisers sit on.
   Deliberately dependency-free: one stylesheet, no fonts to fetch, so the
   page opens straight off disk.
   ===================================================================== */

:root {
    --bg: #03060c;
    --ink: #e2f4ff;
    --ink-dim: #8fb0c3;
    --ink-faint: #5d7889;
    --cyan: #5fe8ff;
    --amber: #ffb648;
    --line: rgba(110, 190, 225, 0.2);
    --line-soft: rgba(110, 190, 225, 0.1);
    --font: "Cascadia Mono", "JetBrains Mono", "SF Mono", "Consolas", ui-monospace, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    min-height: 100%;
    background:
        radial-gradient(1200px 700px at 15% -10%, rgba(30, 90, 130, 0.25), transparent 70%),
        radial-gradient(900px 600px at 100% 10%, rgba(80, 50, 130, 0.18), transparent 65%),
        var(--bg);
    color: var(--ink);
    font-family: var(--font);
    font-size: 13px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(180deg, rgba(110, 190, 225, 0.06) 1px, transparent 1px) 0 0 / 100% 64px,
        linear-gradient(90deg, rgba(110, 190, 225, 0.05) 1px, transparent 1px) 0 0 / 64px 100%;
    mask-image: radial-gradient(ellipse at 50% 0%, #000 20%, transparent 85%);
    z-index: 0;
}

.masthead,
main,
.colophon {
    position: relative;
    z-index: 1;
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
}

/* ---------------------------------------------------------------------
   Masthead
   --------------------------------------------------------------------- */

.masthead {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 20px 32px;
    align-items: end;
    padding: 56px 0 34px;
    border-bottom: 1px solid var(--line);
}

.mark { display: flex; gap: 16px; align-items: center; }

.mark svg {
    width: 44px;
    height: 44px;
    flex: 0 0 auto;
    fill: none;
    stroke: var(--cyan);
    stroke-width: 1;
    filter: drop-shadow(0 0 12px rgba(95, 232, 255, 0.4));
}

.mark svg circle { fill: var(--cyan); stroke: none; }

.eyebrow {
    margin: 0 0 6px;
    font-size: 9.5px;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--ink-faint);
}

.eyebrow span { color: var(--cyan); }

h1 {
    margin: 0;
    font-size: clamp(17px, 2.4vw, 27px);
    line-height: 1.05;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-weight: 700;
}

.lede {
    grid-column: 1 / -1;
    margin: 0;
    max-width: none;
    font-size: 12.5px;
    color: var(--ink-dim);
}

.stamp {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    text-align: right;
    padding-left: 20px;
    border-left: 1px solid var(--line-soft);
}

.stamp-label {
    font-size: 8.5px;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--ink-faint);
}

.stamp-value {
    font-size: 15px;
    letter-spacing: 0.16em;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.stamp-sub {
    font-size: 8.5px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ink-faint);
    white-space: nowrap;
}

/* ---------------------------------------------------------------------
   Cards
   --------------------------------------------------------------------- */

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 22px;
    padding: 40px 0 8px;
    align-items: stretch;
}

.card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: linear-gradient(165deg, rgba(10, 24, 38, 0.9), rgba(4, 10, 18, 0.95));
    border: 1px solid var(--line);
    box-shadow: 0 30px 70px -50px #000;
    transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.card:hover {
    border-color: rgba(95, 232, 255, 0.4);
    transform: translateY(-3px);
    box-shadow: 0 34px 70px -44px rgba(95, 232, 255, 0.28);
}

.card-media {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-bottom: 1px solid var(--line-soft);
    background: #04070d;
}

.card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: saturate(1.05) contrast(1.02);
    transition: transform 400ms ease;
}

.card:hover .card-media img { transform: scale(1.03); }

.card-index {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 3px 7px;
    font-size: 9px;
    letter-spacing: 0.2em;
    color: var(--cyan);
    background: rgba(2, 7, 12, 0.82);
    border: 1px solid rgba(95, 232, 255, 0.34);
}

.card-cta {
    position: absolute;
    right: 10px;
    bottom: 10px;
    padding: 4px 10px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #04121a;
    background: var(--cyan);
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 180ms ease, transform 180ms ease;
}

.card:hover .card-cta,
.card-media:focus-visible .card-cta {
    opacity: 1;
    transform: translateY(0);
}

.card-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 18px 20px 20px;
    flex: 1 1 auto;
}

.card h2 {
    margin: 0;
    font-size: 17px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 700;
}

.card-sub {
    margin: 0;
    font-size: 9px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--cyan);
}

.card-copy {
    margin: 0;
    font-size: 12px;
    color: var(--ink-dim);
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 4px 0 0;
    padding: 0;
    list-style: none;
}

.tags li {
    padding: 3px 8px;
    font-size: 8.5px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink-faint);
    border: 1px solid var(--line-soft);
}

.open {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding-top: 14px;
    color: var(--cyan);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    text-decoration: none;
    border-top: 1px solid var(--line-soft);
}

.open span { transition: transform 180ms ease; }
.open:hover span { transform: translateX(4px); }

.card-empty {
    border-style: dashed;
    border-color: rgba(110, 190, 225, 0.22);
    background: rgba(4, 10, 18, 0.45);
}

.card-empty:hover { transform: none; border-color: rgba(110, 190, 225, 0.34); box-shadow: none; }

.empty-inner {
    position: relative;
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    padding: 32px 24px;
    min-height: 220px;
}

.empty-title {
    margin: 18px 0 0;
    font-size: 14px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--ink-faint);
}

.empty-copy {
    margin: 0;
    font-size: 11.5px;
    color: var(--ink-faint);
}

/* ---------------------------------------------------------------------
   Social and colophon
   --------------------------------------------------------------------- */

.social {
    margin: 34px 0 0;
    padding: 24px 26px 26px;
    border: 1px solid var(--line-soft);
    background: rgba(4, 10, 18, 0.55);
}

.social h2 {
    margin: 0 0 16px;
    font-size: 9px;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: var(--ink-faint);
}

/* A single panorama cut into one slice per network. Each slice shows its own
 * image, but pulled along to a different seam, so the strip reads as one
 * fractured scene. Hovering any slice restores its whole image across all of
 * them — see the ::before overlay below. */
.social-reel {
    position: relative;
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    grid-auto-rows: 1fr;
    aspect-ratio: 1712 / 718;      /* the source art's own ratio, so nothing distorts */
    gap: 2px;
    overflow: hidden;
    background: #04070d;
    border: 1px solid var(--line-soft);
}

.social-slice {
    display: grid;
    align-content: end;
    justify-items: start;
    padding: 12px;
    color: inherit;
    text-decoration: none;
    background-image:
        linear-gradient(to top, rgba(2, 7, 12, 0.78), transparent 52%),
        var(--img);
    background-size: 100% 100%, 700% 100%;
    background-origin: border-box;
    background-clip: border-box;
    background-repeat: no-repeat;
    background-position: 0 0, calc(var(--seg) * 100% / 6) 50%;
}

.social-slice:nth-child(1) { --seg: 0; }
.social-slice:nth-child(2) { --seg: 1; }
.social-slice:nth-child(3) { --seg: 2; }
.social-slice:nth-child(4) { --seg: 3; }
.social-slice:nth-child(5) { --seg: 4; }
.social-slice:nth-child(6) { --seg: 5; }
.social-slice:nth-child(7) { --seg: 6; }

/* Restore the whole image. The tile is static, so this overlay's containing
 * block is .social-reel and inset:0 covers every slice, stitching that one
 * image back together. pointer-events:none keeps the hover target intact. */
.social-slice::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    opacity: 0;
    pointer-events: none;
    background-image: var(--img);
    background-size: 100% 100%;
    background-repeat: no-repeat;
    transition: opacity 260ms ease;
}

.social-slice:hover::before,
.social-slice:focus-visible::before { opacity: 1; }

.social-slice:focus-visible { outline: 1px solid var(--cyan); outline-offset: -1px; }

/* Captions ride above the restored image. Hovering tucks the rest away so the
 * single image reads clean, leaving only the block you are on labelled. */
.social-cap {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    gap: 3px;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.9);
    transition: opacity 200ms ease;
}

.social-reel:hover .social-cap { opacity: 0; }

/* The restored image gets one big centred label reading white with a heavy
 * drop shadow, so the network still reads over any artwork. */
.social-big {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: grid;
    place-content: center;
    justify-items: center;
    gap: 8px;
    text-align: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 260ms ease;
}

.social-slice:hover .social-big,
.social-slice:focus-visible .social-big { opacity: 1; }

.social-big-name {
    font-size: clamp(18px, 2.6vw, 34px);
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #ffffff;
    text-shadow: 0 2px 26px rgba(0, 0, 0, 0.92), 0 1px 3px rgba(0, 0, 0, 0.95);
}

.social-big-role {
    font-size: clamp(9px, 1vw, 12px);
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.9);
}

.social-name {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #ffffff;
}

.social-role {
    font-size: 8px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(226, 244, 255, 0.72);
}

code {
    font-family: inherit;
    color: var(--cyan);
    font-size: 0.96em;
}

.colophon {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px;
    padding: 26px 0 44px;
    margin-top: 30px;
    border-top: 1px solid var(--line-soft);
    font-size: 9px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ink-faint);
}

/* ---------------------------------------------------------------------
   Responsive
   --------------------------------------------------------------------- */

@media (max-width: 900px) {
    .masthead {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 36px 0 26px;
        align-items: start;
    }

    .stamp {
        align-items: flex-start;
        text-align: left;
        padding-left: 0;
        border-left: none;
        border-top: 1px solid var(--line-soft);
        padding-top: 12px;
    }

}

/* Too narrow for seven readable slices: drop the fracture and show each
 * network as its own full image, in a wrapping grid. */
@media (max-width: 760px) {
    .social-reel {
        grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
        aspect-ratio: auto;
        gap: 10px;
        overflow: visible;
        border: none;
        background: none;
    }

    .social-slice {
        position: relative;
        aspect-ratio: 1712 / 718;
        padding: 10px;
        border: 1px solid var(--line-soft);
        background-size: 100% 100%, cover;
        background-position: 0 0, center;
    }

    .social-slice::before { display: none; }

    .social-reel:hover .social-cap { opacity: 1; }
}

@media (max-width: 560px) {
    body { font-size: 12px; }
    .masthead, main, .colophon { width: calc(100% - 28px); }
    .grid { gap: 16px; padding-top: 26px; }
    .card-body { padding: 16px; }
}

@media (prefers-reduced-motion: reduce) {
    * { transition-duration: 1ms !important; }
    html { scroll-behavior: auto; }
}
