/* =====================================================================
   LLITTL.com — Midnight Broadsheet for the Electric City
   ===================================================================== */

:root {
    --ground:           #0A0612;
    --ground-elev:      #1A1A2E;
    --ground-mid:       #3A2E5C;
    --plate-rule:       #1a1a2e;
    --cream:            #F4ECDB;
    --cream-dim:        rgba(244, 236, 219, 0.62);
    --cream-faint:      rgba(244, 236, 219, 0.28);
    --magenta:          #FF1FA8;
    --cyan:             #00E5FF;
    --yellow:           #FFD23F;

    --gutter-desktop:   22px;
    --gutter-tablet:    14px;
    --gutter-mobile:    10px;

    --rail-w-desktop:   84px;
    --rail-w-mobile:    100%;

    --ease-out-soft:    cubic-bezier(0.16, 0.84, 0.32, 1);
    --ease-in-out:      cubic-bezier(0.65, 0.05, 0.35, 1);

    --rad:              2px;
}

/* ---------------------------------------------------------------------
   Reset
   --------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
html { scroll-behavior: smooth; }
body {
    background: var(--ground);
    color: var(--cream);
    font-family: 'Spectral', 'EB Garamond', Garamond, Georgia, serif;
    font-size: 17px;
    line-height: 28px;
    font-weight: 400;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
    cursor: default;
}

img, svg { display: block; max-width: 100%; }
button { font: inherit; background: none; border: 0; color: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }

::selection { background: var(--magenta); color: var(--ground); }

/* ---------------------------------------------------------------------
   Page background — violet undertone with subtle radial vignette
   --------------------------------------------------------------------- */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 0%, rgba(255, 31, 168, 0.05), transparent 55%),
        radial-gradient(ellipse at 80% 20%, rgba(0, 229, 255, 0.04), transparent 60%),
        radial-gradient(ellipse at 50% 100%, rgba(255, 210, 63, 0.025), transparent 65%);
    z-index: 0;
    pointer-events: none;
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    background-image:
        repeating-linear-gradient(
            to right,
            transparent 0,
            transparent calc((100% - 11 * 1px) / 12 - 0.01px),
            rgba(26, 26, 46, 0.6) calc((100% - 11 * 1px) / 12),
            rgba(26, 26, 46, 0.6) calc((100% - 11 * 1px) / 12 + 1px)
        );
    opacity: 0.08;
    z-index: 0;
    pointer-events: none;
    mix-blend-mode: screen;
}

/* ---------------------------------------------------------------------
   Bokeh field — three parallax layers
   --------------------------------------------------------------------- */
.bokeh-field {
    position: fixed;
    inset: -10vh -5vw -10vh -5vw;
    pointer-events: none;
    z-index: 1;
    will-change: transform;
    transform: translate3d(0, 0, 0);
}

.bokeh-field-deep {
    background-image:
        radial-gradient(circle at 12% 18%, rgba(255, 31, 168, 0.55) 0, transparent 14%),
        radial-gradient(circle at 78% 32%, rgba(0, 229, 255, 0.42) 0, transparent 12%),
        radial-gradient(circle at 32% 64%, rgba(255, 210, 63, 0.30) 0, transparent 10%),
        radial-gradient(circle at 88% 84%, rgba(255, 31, 168, 0.38) 0, transparent 13%),
        radial-gradient(circle at 6% 92%, rgba(0, 229, 255, 0.30) 0, transparent 11%);
    filter: blur(72px);
    opacity: 0.55;
}

.bokeh-field-mid {
    background-image:
        radial-gradient(circle at 24% 8%, rgba(0, 229, 255, 0.45) 0, transparent 7%),
        radial-gradient(circle at 64% 22%, rgba(255, 31, 168, 0.45) 0, transparent 8%),
        radial-gradient(circle at 92% 48%, rgba(255, 210, 63, 0.32) 0, transparent 6%),
        radial-gradient(circle at 18% 76%, rgba(255, 31, 168, 0.40) 0, transparent 7%),
        radial-gradient(circle at 56% 88%, rgba(0, 229, 255, 0.40) 0, transparent 7%),
        radial-gradient(circle at 82% 12%, rgba(255, 31, 168, 0.30) 0, transparent 6%);
    filter: blur(48px);
    opacity: 0.65;
}

.bokeh-field-near {
    background-image:
        radial-gradient(circle at 8% 40%, rgba(255, 31, 168, 0.55) 0, transparent 4%),
        radial-gradient(circle at 36% 14%, rgba(0, 229, 255, 0.52) 0, transparent 3%),
        radial-gradient(circle at 70% 58%, rgba(255, 210, 63, 0.42) 0, transparent 3%),
        radial-gradient(circle at 92% 28%, rgba(0, 229, 255, 0.48) 0, transparent 4%),
        radial-gradient(circle at 48% 82%, rgba(255, 31, 168, 0.46) 0, transparent 3%),
        radial-gradient(circle at 22% 96%, rgba(255, 210, 63, 0.32) 0, transparent 3%);
    filter: blur(24px);
    opacity: 0.55;
}

/* ---------------------------------------------------------------------
   Smoke threads (decorative)
   --------------------------------------------------------------------- */
.smoke-threads {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    z-index: 2;
    pointer-events: none;
    opacity: 0.06;
}
.smoke-thread {
    fill: none;
    stroke: var(--cream);
    stroke-width: 1.2;
    stroke-linecap: round;
    animation: smoke-drift 22s linear infinite;
    transform-origin: center;
}
.smoke-thread-2 { animation-duration: 28s; animation-delay: -8s; }
.smoke-thread-3 { animation-duration: 34s; animation-delay: -14s; }

@keyframes smoke-drift {
    0%   { transform: translate3d(0, 30px, 0) scale(1, 1.02); opacity: 0; }
    20%  { opacity: 0.06; }
    80%  { opacity: 0.06; }
    100% { transform: translate3d(8px, -30px, 0) scale(1.02, 1); opacity: 0; }
}

/* ---------------------------------------------------------------------
   Cursor trail orbs
   --------------------------------------------------------------------- */
.cursor-orb {
    position: fixed;
    top: 0;
    left: 0;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate3d(-100px, -100px, 0);
    will-change: transform;
    mix-blend-mode: screen;
}
.cursor-orb-magenta {
    background: radial-gradient(circle, rgba(255, 31, 168, 0.85) 0%, rgba(255, 31, 168, 0) 70%);
    filter: blur(2px);
}
.cursor-orb-cyan {
    background: radial-gradient(circle, rgba(0, 229, 255, 0.75) 0%, rgba(0, 229, 255, 0) 70%);
    filter: blur(2px);
}
@media (hover: none), (pointer: coarse) {
    .cursor-orb { display: none; }
}

/* ---------------------------------------------------------------------
   Ticker rail — persistent left navigation
   --------------------------------------------------------------------- */
.ticker-rail {
    position: fixed;
    left: 0;
    top: 0;
    width: var(--rail-w-desktop);
    height: 100vh;
    background: linear-gradient(180deg,
        rgba(10, 6, 18, 0.95) 0%,
        rgba(26, 26, 46, 0.92) 50%,
        rgba(10, 6, 18, 0.95) 100%);
    border-right: 1px solid rgba(58, 46, 92, 0.6);
    z-index: 50;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
    overflow: hidden;
    box-shadow:
        1px 0 0 rgba(0, 229, 255, 0.08),
        4px 0 24px -8px rgba(0, 0, 0, 0.6);
}

.ticker-rail-cap {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-family: 'IBM Plex Mono', 'Courier New', monospace;
    font-size: 10px;
    letter-spacing: 0.18em;
    color: var(--cream-dim);
    padding: 4px 0;
}
.ticker-rail-cap-bottom {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    letter-spacing: 0.42em;
    padding: 12px 0;
}
.ticker-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--yellow);
    box-shadow: 0 0 8px rgba(255, 210, 63, 0.9), 0 0 18px rgba(255, 210, 63, 0.5);
    animation: live-pulse 1.6s ease-in-out infinite;
}
.ticker-label {
    font-weight: 700;
}

.ticker-viewport {
    flex: 1 1 auto;
    width: 100%;
    overflow: hidden;
    position: relative;
    mask-image: linear-gradient(to bottom, transparent 0, #000 12%, #000 88%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 12%, #000 88%, transparent 100%);
}

.ticker-track {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
    will-change: transform;
}

.ticker-item {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-family: 'IBM Plex Mono', 'Courier New', monospace;
    font-size: 12px;
    letter-spacing: 0.22em;
    color: var(--cream-dim);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 0;
    transition: color 200ms var(--ease-out-soft);
    cursor: default;
}
.ticker-item:hover {
    color: var(--magenta);
    text-shadow: 0 0 12px rgba(255, 31, 168, 0.55);
}
.ticker-bullet {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--cyan);
    box-shadow: 0 0 6px rgba(0, 229, 255, 0.8);
    flex: 0 0 auto;
}

/* ---------------------------------------------------------------------
   Page container
   --------------------------------------------------------------------- */
.page {
    position: relative;
    z-index: 3;
    margin-left: var(--rail-w-desktop);
    padding: 0;
}

/* Grid rules — faint background motif */
.grid-rules {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        repeating-linear-gradient(
            to right,
            transparent 0,
            transparent calc((100% - 11px) / 12 - 0.01px),
            rgba(26, 26, 46, 0.7) calc((100% - 11px) / 12),
            rgba(26, 26, 46, 0.7) calc((100% - 11px) / 12 + 1px)
        );
    opacity: 0.10;
    z-index: 0;
}

/* ---------------------------------------------------------------------
   ACT I — Marquee Awning
   --------------------------------------------------------------------- */
.marquee-awning {
    position: relative;
    min-height: 92vh;
    padding: 48px var(--gutter-desktop) 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.marquee-meta-top {
    position: absolute;
    top: 32px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 var(--gutter-desktop);
    font-family: 'IBM Plex Mono', 'Courier New', monospace;
    font-size: 12px;
    letter-spacing: 0.16em;
    color: var(--cream-dim);
    z-index: 4;
}
.meta-divider {
    color: var(--magenta);
    opacity: 0.6;
    font-size: 10px;
    letter-spacing: 0.4em;
}
.meta-issue { color: var(--magenta); font-weight: 700; }
.meta-clock { color: var(--cyan); font-weight: 700; }

.bulb-frame {
    display: flex;
    gap: 32px;
    margin: 8px 0;
    z-index: 3;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 88vw;
}
.bulb-frame-top { margin-bottom: 32px; }
.bulb-frame-bottom { margin-top: 32px; }
.bulb {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--cream);
    box-shadow:
        0 0 8px rgba(244, 236, 219, 0.9),
        0 0 18px rgba(255, 31, 168, 0.55),
        0 0 32px rgba(0, 229, 255, 0.3);
    flex: 0 0 auto;
    animation: bulb-flicker 7s steps(2, end) infinite;
    animation-delay: var(--flicker-delay, 0s);
}
.bulb:nth-child(2n)  { animation-duration: 5s;  --flicker-delay: -1.2s; }
.bulb:nth-child(3n)  { animation-duration: 8s;  --flicker-delay: -2.6s; }
.bulb:nth-child(5n)  { animation-duration: 11s; --flicker-delay: -4.1s; }
.bulb:nth-child(7n)  { animation-duration: 9s;  --flicker-delay: -3.3s; }
.bulb:nth-child(4n)  { animation-duration: 6s;  --flicker-delay: -2.0s; }

@keyframes bulb-flicker {
    0%, 88%, 100% {
        opacity: 1;
        box-shadow:
            0 0 8px rgba(244, 236, 219, 0.9),
            0 0 18px rgba(255, 31, 168, 0.55),
            0 0 32px rgba(0, 229, 255, 0.3);
    }
    92%, 94% {
        opacity: 0.35;
        box-shadow:
            0 0 3px rgba(244, 236, 219, 0.4),
            0 0 6px rgba(255, 31, 168, 0.2);
    }
    96% { opacity: 1; }
}

.marquee-wordmark {
    position: relative;
    font-family: 'Cormorant Garamond', Garamond, Georgia, serif;
    font-weight: 700;
    font-size: clamp(120px, 18vw, 320px);
    line-height: 0.9;
    letter-spacing: -0.02em;
    color: var(--cream);
    text-align: center;
    margin: 0;
    z-index: 3;
    white-space: nowrap;
    user-select: none;
}
.marquee-wordmark .glyph {
    display: inline-block;
    text-shadow:
        0 0 2px rgba(255, 31, 168, 0.9),
        0 0 24px rgba(255, 31, 168, 0.55),
        0 0 64px rgba(0, 229, 255, 0.35);
    opacity: 0;
    transform: translateY(8px) scale(0.98);
    transition:
        opacity 220ms var(--ease-out-soft),
        transform 480ms var(--ease-out-soft);
}
.marquee-wordmark .glyph.lit {
    opacity: 1;
    transform: translateY(0) scale(1);
}
.marquee-wordmark .glyph.flicker {
    animation: glyph-flicker 240ms steps(3, end) 1;
}
@keyframes glyph-flicker {
    0%   { filter: brightness(0.4); }
    33%  { filter: brightness(1.1); }
    66%  { filter: brightness(0.85); }
    100% { filter: brightness(1); }
}

.marquee-dek {
    margin-top: 28px;
    font-family: 'EB Garamond', Garamond, Georgia, serif;
    font-style: italic;
    font-size: 22px;
    line-height: 32px;
    color: var(--cream-dim);
    text-align: center;
    z-index: 3;
    max-width: 720px;
}
.dek-ornament {
    color: var(--magenta);
    margin: 0 14px;
    font-style: normal;
    text-shadow: 0 0 12px rgba(255, 31, 168, 0.5);
}

.marquee-sublede {
    margin-top: 14px;
    font-family: 'Spectral', Georgia, serif;
    font-size: 17px;
    line-height: 28px;
    color: var(--cream-faint);
    text-align: center;
    max-width: 640px;
    z-index: 3;
}
.marquee-sublede em {
    color: var(--cream);
    font-style: italic;
}

.marquee-stamp {
    margin-top: 48px;
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
    justify-content: center;
    font-family: 'IBM Plex Mono', 'Courier New', monospace;
    font-size: 11px;
    letter-spacing: 0.22em;
    color: var(--cream-faint);
    z-index: 3;
}
.stamp-line { padding: 0; }

.marquee-scroll-cue {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-family: 'IBM Plex Mono', 'Courier New', monospace;
    font-size: 10px;
    letter-spacing: 0.4em;
    color: var(--cyan);
    z-index: 4;
    opacity: 0.7;
}
.cue-line {
    display: block;
    width: 1px;
    height: 36px;
    background: linear-gradient(180deg, transparent, var(--cyan));
    box-shadow: 0 0 8px rgba(0, 229, 255, 0.5);
    animation: cue-drop 2.2s var(--ease-in-out) infinite;
}
.cue-line + .cue-label + .cue-line {
    background: linear-gradient(180deg, var(--cyan), transparent);
}
.cue-label { padding: 2px 0; }
@keyframes cue-drop {
    0%, 100% { opacity: 0.3; transform: translateY(0); }
    50%      { opacity: 1;   transform: translateY(4px); }
}

/* ---------------------------------------------------------------------
   ACT II — Block Corridor with Masonry
   --------------------------------------------------------------------- */
.block-corridor {
    position: relative;
    padding: 80px var(--gutter-desktop) 96px;
    overflow: hidden;
}

.section-divider {
    display: flex;
    align-items: center;
    gap: 18px;
    margin: 0 auto 56px;
    max-width: 1280px;
}
.divider-bulb {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--cream);
    flex: 0 0 auto;
    box-shadow:
        0 0 6px var(--cream),
        0 0 16px rgba(255, 31, 168, 0.6),
        0 0 26px rgba(0, 229, 255, 0.3);
}
.divider-rule {
    flex: 1 1 auto;
    height: 1px;
    background: linear-gradient(90deg,
        rgba(58, 46, 92, 0) 0%,
        var(--ground-mid) 30%,
        var(--ground-mid) 70%,
        rgba(58, 46, 92, 0) 100%);
}
.divider-label {
    font-family: 'Cinzel', Georgia, serif;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.4em;
    color: var(--cream-dim);
    flex: 0 0 auto;
    padding: 0 10px;
    text-transform: uppercase;
}

/* Masonry: column-flow fallback, masonry where supported */
.masonry-grid {
    column-count: 3;
    column-gap: var(--gutter-desktop);
    max-width: 1280px;
    margin: 0 auto;
}

@supports (grid-template-rows: masonry) {
    .masonry-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: masonry;
        column-count: auto;
        gap: var(--gutter-desktop);
    }
}

/* ---------------------------------------------------------------------
   Tiles
   --------------------------------------------------------------------- */
.tile {
    position: relative;
    background: linear-gradient(160deg,
        rgba(26, 26, 46, 0.55) 0%,
        rgba(10, 6, 18, 0.55) 100%);
    border: 1px solid rgba(58, 46, 92, 0.55);
    border-radius: var(--rad);
    padding: 26px 24px 22px;
    margin: 0 0 var(--gutter-desktop);
    break-inside: avoid;
    box-shadow:
        inset 0 0 0 1px rgba(244, 236, 219, 0.02),
        inset 0 32px 64px -32px rgba(58, 46, 92, 0.5),
        0 12px 32px -16px rgba(0, 0, 0, 0.5);
    transition:
        opacity 700ms var(--ease-out-soft),
        transform 700ms var(--ease-out-soft);
    opacity: 0;
    transform: translateY(48px);
}
@supports (grid-template-rows: masonry) {
    .tile { margin: 0; }
}
.tile.is-revealed {
    opacity: 1;
    transform: translateY(0);
}

.tile-short  { min-height: 280px; }
.tile-medium { min-height: 480px; }
.tile-tall   { min-height: 640px; }

/* Oversized tiles overlap z-axis */
.tile-oversized {
    margin-top: -24px;
    z-index: 2;
    border-color: rgba(0, 229, 255, 0.18);
    box-shadow:
        inset 0 0 0 1px rgba(0, 229, 255, 0.06),
        inset 0 32px 64px -32px rgba(58, 46, 92, 0.5),
        0 0 0 1px rgba(0, 229, 255, 0.4),
        0 24px 64px -12px rgba(0, 229, 255, 0.18),
        0 32px 80px -20px rgba(0, 0, 0, 0.55);
}
@supports (grid-template-rows: masonry) {
    .tile-oversized { margin-top: 0; }
}

/* Registration crosshair marks */
.reg-mark {
    position: absolute;
    color: var(--ground-mid);
    font-family: 'IBM Plex Mono', 'Courier New', monospace;
    font-weight: 700;
    font-size: 14px;
    line-height: 1;
    user-select: none;
    pointer-events: none;
}
.reg-mark-tl { top: 6px;    left: 6px; }
.reg-mark-tr { top: 6px;    right: 6px; }
.reg-mark-bl { bottom: 6px; left: 6px; }
.reg-mark-br { bottom: 6px; right: 6px; }

.tile-tag {
    display: inline-block;
    font-family: 'Cinzel', Georgia, serif;
    font-weight: 700;
    font-size: 10px;
    letter-spacing: 0.42em;
    color: var(--magenta);
    margin-bottom: 10px;
    text-shadow: 0 0 8px rgba(255, 31, 168, 0.5);
}

.tile-dateline {
    display: block;
    font-family: 'IBM Plex Mono', 'Courier New', monospace;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.22em;
    color: var(--cyan);
    margin-bottom: 14px;
    text-shadow: 0 0 8px rgba(0, 229, 255, 0.4);
}

.tile-headline {
    font-family: 'Cormorant Garamond', Garamond, Georgia, serif;
    font-weight: 600;
    font-style: italic;
    font-size: 38px;
    line-height: 1.05;
    letter-spacing: -0.01em;
    color: var(--cream);
    text-align: left;
    margin: 0 0 14px;
}
.tile-headline em {
    font-style: italic;
    font-weight: 700;
    color: var(--cream);
}
.tile-headline-oversized {
    font-size: 64px;
    line-height: 1.0;
    margin: 0 0 18px;
}

.tile-rule {
    border: 0;
    height: 1px;
    background: var(--ground-mid);
    margin: 0 0 14px;
}
.tile-rule-faint {
    background: rgba(58, 46, 92, 0.5);
    margin: 22px 0 14px;
}

.tile-body {
    font-family: 'Spectral', Georgia, serif;
    font-size: 16px;
    line-height: 26px;
    color: var(--cream-dim);
}
.tile-body p + p { margin-top: 12px; }
.tile-body-two-col {
    column-count: 2;
    column-gap: 18px;
}
@media (max-width: 720px) {
    .tile-body-two-col { column-count: 1; }
}

.tile-pullquote {
    font-family: 'EB Garamond', Garamond, Georgia, serif;
    font-style: italic;
    font-size: 22px;
    line-height: 1.45;
    color: var(--cream);
    border-left: 2px solid var(--magenta);
    padding: 4px 0 4px 18px;
    margin: 22px 0;
    text-shadow: 0 0 14px rgba(255, 31, 168, 0.15);
}

.tile-meta {
    margin-top: 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    align-items: center;
    font-family: 'IBM Plex Mono', 'Courier New', monospace;
    font-size: 10px;
    letter-spacing: 0.2em;
    color: var(--cream-faint);
}
.meta-byline { color: var(--cream-dim); font-weight: 700; }
.meta-district { color: var(--cream-dim); }
.meta-time { color: var(--cream-faint); }
.meta-time.live {
    color: var(--yellow);
    text-shadow: 0 0 8px rgba(255, 210, 63, 0.5);
}
.meta-time.live::before {
    content: "● ";
    color: var(--yellow);
    animation: live-pulse 1.6s ease-in-out infinite;
}
.meta-words { color: var(--cream-faint); }

@keyframes live-pulse {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.4; }
}

/* ---------------------------------------------------------------------
   ACT III — Service Lane
   --------------------------------------------------------------------- */
.service-lane {
    position: relative;
    padding: 88px var(--gutter-desktop) 96px;
    overflow: hidden;
}

.skyline {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 22%;
    pointer-events: none;
    opacity: 0.12;
    z-index: 1;
    will-change: transform;
}
.skyline-svg {
    width: 100%;
    height: 100%;
    display: block;
}
.skyline-buildings rect {
    fill: var(--cream);
}
.skyline-windows rect:nth-child(3n)   { fill: var(--magenta); }
.skyline-windows rect:nth-child(3n+1) { fill: var(--cyan); }
.skyline-windows rect:nth-child(3n+2) { fill: var(--yellow); }

.service-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: var(--gutter-desktop);
    max-width: 1280px;
    margin: 0 auto;
}

.service-tile {
    position: relative;
    background: linear-gradient(180deg, rgba(26, 26, 46, 0.6), rgba(10, 6, 18, 0.6));
    border: 1px solid rgba(58, 46, 92, 0.6);
    border-radius: var(--rad);
    padding: 22px 18px 20px;
    min-height: 220px;
    font-family: 'IBM Plex Mono', 'Courier New', monospace;
    opacity: 0;
    transform: translateY(48px);
    transition:
        opacity 700ms var(--ease-out-soft),
        transform 700ms var(--ease-out-soft);
}
.service-tile.is-revealed { opacity: 1; transform: translateY(0); }

.service-num {
    position: absolute;
    top: 12px;
    right: 14px;
    font-family: 'IBM Plex Mono', 'Courier New', monospace;
    font-size: 11px;
    color: var(--magenta);
    letter-spacing: 0.2em;
    font-weight: 700;
}
.service-title {
    font-family: 'Cinzel', Georgia, serif;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.4em;
    color: var(--cream);
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--ground-mid);
    text-transform: uppercase;
}

.service-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.service-list li {
    font-size: 11px;
    line-height: 16px;
    letter-spacing: 0.12em;
    color: var(--cream-dim);
}

.service-prose {
    font-family: 'Spectral', Georgia, serif;
    font-style: italic;
    font-size: 14px;
    line-height: 22px;
    color: var(--cream-dim);
    letter-spacing: 0;
}
.service-prose em { color: var(--cream); }

@media (max-width: 1024px) {
    .service-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
    .service-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------------------------------------------------------------------
   Links with cyan underline + magenta chromatic-aberration ghost
   --------------------------------------------------------------------- */
.lnk {
    position: relative;
    display: inline-block;
    color: var(--cream);
    padding-bottom: 2px;
    background-image:
        linear-gradient(var(--cyan), var(--cyan)),
        linear-gradient(var(--magenta), var(--magenta));
    background-repeat: no-repeat;
    background-position:
        100% 100%,
        calc(100% - 2px) calc(100% - 2px);
    background-size:
        0% 1.5px,
        0% 1.5px;
    transition:
        background-size 200ms var(--ease-out-soft),
        color 200ms var(--ease-out-soft);
}
.lnk:hover {
    color: var(--cream);
    background-size:
        100% 1.5px,
        100% 1.5px;
    text-shadow: 0 0 8px rgba(0, 229, 255, 0.35);
}

/* ---------------------------------------------------------------------
   Footer / Masthead
   --------------------------------------------------------------------- */
.masthead {
    position: relative;
    padding: 64px var(--gutter-desktop) 80px;
    text-align: center;
    border-top: 1px solid var(--ground-elev);
}

.section-divider-footer { margin-bottom: 32px; }

.colophon {
    max-width: 720px;
    margin: 0 auto 28px;
    font-family: 'EB Garamond', Georgia, serif;
    font-style: italic;
    font-size: 14px;
    line-height: 24px;
    color: var(--cream-dim);
}
.colophon em { color: var(--cream); font-style: italic; }

.swatch {
    display: inline-block;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    margin: 0 2px 0 4px;
    vertical-align: baseline;
    transform: translateY(-1px);
}
.swatch-magenta {
    background: var(--magenta);
    box-shadow: 0 0 6px rgba(255, 31, 168, 0.7);
}
.swatch-cyan {
    background: var(--cyan);
    box-shadow: 0 0 6px rgba(0, 229, 255, 0.7);
}
.swatch-yellow {
    background: var(--yellow);
    box-shadow: 0 0 6px rgba(255, 210, 63, 0.7);
}

.live-stamp {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'IBM Plex Mono', 'Courier New', monospace;
    font-size: 10px;
    letter-spacing: 0.42em;
    color: var(--cream-faint);
    margin-top: 14px;
}
.live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--yellow);
    box-shadow:
        0 0 8px rgba(255, 210, 63, 0.9),
        0 0 18px rgba(255, 210, 63, 0.55);
    animation: live-pulse 1.6s ease-in-out infinite;
}

/* ---------------------------------------------------------------------
   Reveal helper
   --------------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(48px); }
.reveal.is-revealed { opacity: 1; transform: translateY(0); }

/* ---------------------------------------------------------------------
   Responsive
   --------------------------------------------------------------------- */
@media (max-width: 1024px) {
    :root {
        --gutter-desktop: var(--gutter-tablet);
        --rail-w-desktop: 64px;
    }
    .marquee-wordmark { font-size: clamp(96px, 22vw, 220px); }
    .masonry-grid { column-count: 2; }
    @supports (grid-template-rows: masonry) {
        .masonry-grid { grid-template-columns: repeat(2, 1fr); }
    }
    .tile-headline { font-size: 32px; }
    .tile-headline-oversized { font-size: 48px; }
    .tile-body-two-col { column-count: 1; }
}

@media (max-width: 720px) {
    :root {
        --gutter-desktop: var(--gutter-mobile);
        --rail-w-desktop: 100%;
    }
    .ticker-rail {
        position: sticky;
        top: 0;
        left: 0;
        width: 100%;
        height: 44px;
        flex-direction: row;
        padding: 0 12px;
        border-right: 0;
        border-bottom: 1px solid rgba(58, 46, 92, 0.6);
        box-shadow: 0 1px 0 rgba(0, 229, 255, 0.08), 0 4px 24px -8px rgba(0,0,0,0.6);
    }
    .ticker-rail-cap-bottom { display: none; }
    .ticker-rail-cap-top {
        flex-direction: row;
        gap: 10px;
        padding: 0 12px 0 0;
    }
    .ticker-viewport {
        height: 44px;
        width: 100%;
        mask-image: linear-gradient(to right, transparent 0, #000 8%, #000 92%, transparent 100%);
        -webkit-mask-image: linear-gradient(to right, transparent 0, #000 8%, #000 92%, transparent 100%);
    }
    .ticker-track {
        flex-direction: row;
        align-items: center;
        gap: 28px;
        top: 50%;
        transform: translateY(-50%);
    }
    .ticker-item {
        writing-mode: horizontal-tb;
        transform: none;
    }

    .page { margin-left: 0; }
    .marquee-awning { min-height: 80vh; padding: 80px 12px 64px; }
    .marquee-wordmark { font-size: clamp(72px, 28vw, 180px); }
    .marquee-dek { font-size: 17px; line-height: 26px; margin-top: 18px; }
    .marquee-sublede { font-size: 15px; line-height: 24px; }
    .marquee-stamp { margin-top: 32px; gap: 14px; font-size: 10px; }
    .marquee-meta-top { font-size: 10px; padding: 0 12px; top: 60px; }

    .block-corridor { padding: 56px 12px 64px; }
    .masonry-grid { column-count: 1; }
    @supports (grid-template-rows: masonry) {
        .masonry-grid { grid-template-columns: 1fr; }
    }
    .tile { padding: 22px 18px 20px; }
    .tile-headline { font-size: 28px; }
    .tile-headline-oversized { font-size: 36px; }
    .tile-tall, .tile-medium, .tile-short, .tile-oversized { min-height: 0; margin-top: 0; }

    .service-lane { padding: 64px 12px 72px; }
    .service-tile { min-height: 180px; }
    .bulb-frame { gap: 18px; }
}
