:root {
    --color-bg:           #01010B;
    --color-surface:      #0d0e18;
    --color-surface-2:    #12141f;
    --color-border:       rgba(255,255,255,0.08);
    --color-text:         #ffffff;
    --color-muted:        rgba(255,255,255,0.55);
    --color-yellow:       #FFCC00;
    --color-cyan:         #00C0E8;
    --font-display:       'Architects Daughter', cursive;
    --font-body:          'Inter', sans-serif;
    --container-max:      1200px;
    --container-pad:      clamp(1.5rem, 5vw, 5rem);
    --header-h:           72px;
    --ease-out:           cubic-bezier(0.16,1,0.3,1);
    --ease-spring:        cubic-bezier(0.34,1.56,0.64,1);
}

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

/* the canvas behind everything is dark too, so no white ever shows through a gap */
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; background-color: var(--color-bg); }

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: clamp(0.9rem,1.4vw,1rem);
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img,video,svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul,ol { list-style: none; }
button { background: none; border: none; cursor: pointer; font: inherit; color: inherit; }
input,textarea,select { font: inherit; }

.container {
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: var(--container-pad);
}

.accent { color: var(--color-yellow); }

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
    padding: 0.6em 1.5em;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.03em;
    transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
    white-space: nowrap;
    border: 1px solid transparent;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--color-cyan); color: var(--color-bg); border-color: var(--color-cyan); }
.btn--primary:hover { background: #00a8cc; border-color: #00a8cc; }
.btn--outline { background: var(--color-yellow); border-color: var(--color-yellow); color: var(--color-bg); }
.btn--outline:hover { background: #e6b800; border-color: #e6b800; color: var(--color-bg); }
.btn--play { background: var(--color-cyan); color: var(--color-bg); border-color: var(--color-cyan); border-radius: 50px; }
.btn--play:hover { background: #00a8cc; }
.btn__icon { font-size: 0.7em; }

@keyframes ld-header-glow {
    from { opacity: 0; transform: scale(0.1); }
    to   { opacity: 1; transform: scale(1); }
}

.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    height: var(--header-h);
    background: rgba(9,10,14,0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--color-border);
    transition: background 0.3s;
    font-family: var(--font-display);
    overflow: visible;
}
/* Capped at the viewport width and clipped: at a fixed 900px it made phones and
   tablets scroll sideways, with a white strip down the right-hand side. */
.ld-glow-wrap {
    position: absolute;
    top: 0;
    left: 0;
    width: min(900px, 100%);
    height: 560px;
    overflow: hidden;
    pointer-events: none;
    z-index: 101;
}

.ld-glow {
    position: absolute;
    top: -240px;
    left: -240px;
    width: 480px;
    height: 480px;
    background: rgba(72, 202, 228, 0.3);
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0;
    transform-origin: 50% 50%;
    animation: ld-header-glow 1.8s cubic-bezier(0.16,1,0.3,1) 0.1s forwards;
}
.site-header.is-scrolled { background: rgba(9,10,14,0.97); }

.header__inner {
    display: flex;
    align-items: center;
    gap: 2rem;
    height: 100%;
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: clamp(1rem, 2vw, 1.5rem);
    position: relative;
    z-index: 1;
}
.header__logo { flex-shrink: 0; }
.header__logo img,
.custom-logo { width: 200px !important; height: auto !important; }
.header__site-name {
    font-family: var(--font-display);
    font-size: 1.4rem;
    letter-spacing: 0.1em;
    color: var(--color-text);
}
.header__nav { flex: 1; display: flex; justify-content: center; }
.header__nav ul { display: flex; align-items: center; gap: 0; }
.header__nav ul li { display: flex; align-items: center; }
.header__nav ul li:not(:last-child)::after { content: '-'; color: var(--color-muted); padding: 0 7rem; }
.header__nav a { font-size: 20px; color: var(--color-muted); transition: color 0.2s; white-space: nowrap; }
.header__nav a:hover { color: var(--color-text); }
.header__nav .current-menu-item a { color: var(--color-yellow); }
.header__cta { display: flex; align-items: center; gap: 0.6rem; flex-shrink: 0; }

.header__hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 6px;
    margin-left: auto;
}
.header__hamburger span {
    display: block; width: 22px; height: 2px;
    background: var(--color-text);
    transition: transform 0.3s, opacity 0.3s, width 0.3s;
    border-radius: 2px;
}
.header__hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.header__hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; width: 0; }
.header__hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* the 7rem dash spacing only fits on wide screens; tighter below so the menu never runs under the buttons */
@media (min-width: 769px) and (max-width: 1440px) {
    .header__inner { gap: 1.25rem; }
    .header__nav ul li:not(:last-child)::after { padding: 0 clamp(0.75rem, 3vw, 3.5rem); }
    .header__nav a { font-size: clamp(16px, 1.5vw, 20px); }
}
@media (min-width: 769px) and (max-width: 1100px) {
    .header__logo img, .custom-logo { width: 150px !important; }
    .header__cta .btn { font-size: 13px; padding: 0.55em 0.9em; }
}

.site-main { padding-top: var(--header-h); position: relative; }

.home-main { overflow: hidden; }

.road-wrapper {
    position: relative;
}

.road-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}
.road-svg {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
}
.road-traveler {
    position: absolute;
    top: 0; left: 0;
    transform: translate(-50%, -50%);
    z-index: 3;
    width: 36px; height: 36px;
    pointer-events: none;
}
.road-traveler img { width: 100%; height: 100%; object-fit: contain; }
.road-traveler__default {
    width: 36px; height: 36px;
    background: var(--color-yellow);
    border-radius: 50%;
    box-shadow: 0 0 0 8px rgba(245,230,66,0.12), 0 0 20px rgba(245,230,66,0.5);
}

.stop-badge {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 56px; height: 56px;
    border-radius: 50%;
    border: 2px solid var(--color-yellow);
    background: var(--color-bg);
    color: var(--color-yellow);
    position: relative; z-index: 2;
}
.stop-badge__num { font-family: var(--font-display); font-size: 1.2rem; line-height: 1; }
.stop-badge__label { display: none; }

.js-reveal { opacity: 0; transform: translateY(36px); }

.site-footer {
    background: var(--color-surface);
    border-top: 1px solid var(--color-border);
    padding: 3rem 0;
}
.footer__inner {
    display: flex; flex-direction: column; align-items: center; gap: 1.5rem;
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: var(--container-pad);
    text-align: center;
}
.footer__logo img { height: 36px; width: auto; margin-inline: auto; }
.footer__site-name { font-family: var(--font-display); font-size: 1.3rem; letter-spacing: 0.1em; }
.footer__nav ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4rem 2rem; }
.footer__nav a { font-size: 0.85rem; color: var(--color-muted); transition: color 0.2s; }
.footer__nav a:hover { color: var(--color-yellow); }
.footer__copy { font-size: 0.78rem; color: var(--color-muted); }

@media (max-width: 768px) {
    .header__nav, .header__cta { display: none; }
    .header__hamburger { display: flex; }

    /* absolute, not fixed: the header carries a backdrop-filter, which makes it the
       containing block for any fixed child — the panel collapsed to the header's own
       72px and only the first link showed. It is absolute against .header__inner, and
       the header is itself fixed at the top, so the panel still covers the screen. */
    .header__nav.is-open {
        display: flex; flex-direction: column;
        position: absolute;
        top: 100%; left: 0; right: 0;
        /* 100% is the header inner's own height, so the panel always reaches the
           bottom edge even though that box is a pixel shorter than --header-h */
        height: calc(100vh - 100%);
        height: calc(100dvh - 100%);
        background: var(--color-bg);
        padding: 2.5rem var(--container-pad);
        z-index: 99; overflow-y: auto;
    }
    .header__nav.is-open ul { flex-direction: column; align-items: flex-start; gap: 1.5rem; }
    .header__nav.is-open ul li:not(:last-child)::after { display: none; }
    .header__nav.is-open a { font-size: 1.6rem; color: var(--color-text); }
    .header__nav.is-open .current-menu-item a { color: var(--color-yellow); }
}

@media (min-width: 1441px) {
    :root {
        --container-max: 1400px;
        --container-pad: 8rem;
    }
    .header__inner {
        max-width: 100%;
        padding-inline: 30px;
    }
    .header__logo img, .custom-logo {
        width: 230px !important;
        height: auto !important;
    }
}

.section-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}

/* The map artwork is used as a mask, not as an image, so the lines take this exact
   colour. The PNG's own line alpha is only ~10%, which is invisible on #01010B, so
   the same masked fill is stacked three times (element + both pseudos) to reach ~27%. */
.section-bg,
.section-bg::before,
.section-bg::after {
    background: #191142;
    -webkit-mask-image: var(--section-bg-img), linear-gradient(to bottom, transparent 0%, #000 6%, #000 94%, transparent 100%);
    mask-image: var(--section-bg-img), linear-gradient(to bottom, transparent 0%, #000 6%, #000 94%, transparent 100%);
    -webkit-mask-size: cover, 100% 100%;
    mask-size: cover, 100% 100%;
    -webkit-mask-position: center center, center center;
    mask-position: center center, center center;
    -webkit-mask-repeat: no-repeat, no-repeat;
    mask-repeat: no-repeat, no-repeat;
    /* both masks must agree, so the fade still softens the section edges (kept short so
       the map reads as one continuous map from section to section, as in the design) */
    -webkit-mask-composite: source-in;
    mask-composite: intersect;
}

.section-bg::before,
.section-bg::after {
    content: '';
    position: absolute;
    inset: 0;
}


/* not background-attachment: fixed — mobile browsers (iOS especially) ignore or
   mis-paint it, which left light bands behind the sections without their own fill */
body.home-page {
    background: linear-gradient(164deg, #00010A 0%, #04020F 100%);
}

body.home-page::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.1;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='mn'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23mn)'/%3E%3C/svg%3E");
}

/* ---------- hand-drawn animated doodles (hourglass, cat clock) ---------- */
.ld-doodle {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    color: #FFFAF0;
    pointer-events: none;
}
.ld-doodle svg { overflow: visible; height: auto; }
.ld-doodle__label {
    font-family: 'Patrick Hand', cursive;
    font-size: 22px;
    line-height: 1;
    white-space: nowrap;
    transform: rotate(-6deg);
}

.ld-hourglass__flip        { transform-box: view-box; transform-origin: 32px 48px; animation: ld-hg-flip 5s ease-in-out infinite; }
.ld-hourglass__sand-top    { transform-box: view-box; transform-origin: 32px 46px; animation: ld-hg-top 5s linear infinite; }
.ld-hourglass__sand-bottom { transform-box: view-box; transform-origin: 32px 84px; animation: ld-hg-bottom 5s linear infinite; }
.ld-hourglass__stream      { animation: ld-hg-stream 5s linear infinite, ld-hg-drip 0.5s linear infinite; }

@keyframes ld-hg-flip   { 0%, 80% { transform: rotate(0deg); } 100% { transform: rotate(180deg); } }
@keyframes ld-hg-top    { 0% { transform: scale(1); } 76%, 100% { transform: scale(0); } }
@keyframes ld-hg-bottom { 0% { transform: scale(0); } 76%, 100% { transform: scale(1); } }
@keyframes ld-hg-stream { 0%, 74% { opacity: 1; } 77%, 100% { opacity: 0; } }
@keyframes ld-hg-drip   { to { stroke-dashoffset: -7; } }

.ld-cat__tail   { transform-box: view-box; transform-origin: 45px 122px; animation: ld-cat-swing 1.1s ease-in-out infinite alternate; }
.ld-cat__pupils { animation: ld-cat-eyes 1.1s ease-in-out infinite alternate; }
.ld-cat__minute { transform-box: view-box; transform-origin: 45px 94px; animation: ld-spin 8s linear infinite; }
.ld-cat__hour   { transform-box: view-box; transform-origin: 45px 94px; animation: ld-spin 96s linear infinite; }

@keyframes ld-cat-swing { from { transform: rotate(18deg); } to { transform: rotate(-18deg); } }
@keyframes ld-cat-eyes  { from { transform: translateX(-2.6px); } to { transform: translateX(2.6px); } }
@keyframes ld-spin      { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
    .ld-doodle * { animation: none !important; }
}

/* ---------- lightbox (YouTube + photo galleries), see assets/js/site.js ---------- */
body.ld-lightbox-open { overflow: hidden; }

.ld-lightbox {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: clamp(4rem, 7vw, 5.5rem) clamp(0.75rem, 6vw, 5.5rem);
    background: rgba(1, 1, 11, 0.94);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}
.ld-lightbox.is-open { display: flex; }

.ld-lightbox__stage {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ld-lightbox__video {
    width: min(100%, 1100px, calc((100vh - 9rem) * 16 / 9));
    aspect-ratio: 16 / 9;
    border-radius: 18px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}
.ld-lightbox__video iframe { display: block; width: 100%; height: 100%; border: 0; }

.ld-lightbox__img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
}

.ld-lightbox__close,
.ld-lightbox__nav {
    position: absolute;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 2px solid #fff;
    background: rgba(1, 1, 11, 0.6);
    color: #fff;
    font-size: 32px;
    line-height: 1;
    transition: background 0.2s, border-color 0.2s;
}
.ld-lightbox__close { top: 0.9rem; right: 0.9rem; }
.ld-lightbox__nav { display: none; top: 50%; transform: translateY(-50%); border-color: #00C0E8; }
.ld-lightbox.has-nav .ld-lightbox__nav { display: flex; }
.ld-lightbox__nav--prev { left: 0.9rem; }
.ld-lightbox__nav--next { right: 0.9rem; }
.ld-lightbox__close:hover,
.ld-lightbox__nav:hover { background: rgba(0, 192, 232, 0.25); }

@media (max-width: 600px) {
    .ld-lightbox__nav { top: auto; bottom: 0.9rem; transform: none; }
}

/* ---------- featured episode slider (homepage podcast stop + podcast page) ---------- */
.ld-eslider {
    display: grid;
    grid-template-columns: 1fr 54px;
    gap: clamp(1rem, 2vw, 1.75rem);
    align-items: center;
    width: 100%;
}
.ld-eslider--single { grid-template-columns: 1fr; }

.ld-eslider__viewport {
    position: relative;
    overflow: hidden;
    height: 360px;
}

.ld-eslider__track {
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
}

.ld-eslide {
    flex: 0 0 100%;
    height: 100%;
    display: grid;
    grid-template-columns: clamp(280px, 38%, 520px) 1fr;
    gap: clamp(1.5rem, 3vw, 3rem);
    align-items: stretch;   /* artwork is exactly as tall as the words beside it */
}

.ld-eslide__thumb {
    position: relative;
    height: 100%;
    border-radius: 24px;
    overflow: hidden;
    background:
        radial-gradient(circle at 16% 6%,  rgba(0, 192, 232, 0.85) 0%, transparent 62%),
        radial-gradient(circle at 93% 84%, rgba(239, 208, 32, 0.75) 0%, transparent 58%),
        #06090c;
}
.ld-eslide__thumb img { width: 100%; height: 100%; object-fit: cover; }

.ld-eslide__body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.ld-eslide__label {
    font-family: 'Architects Daughter', cursive;
    font-size: clamp(1.05rem, 1.5vw, 1.5rem);
    line-height: 1;
    color: #fff;
    margin-bottom: 0.75rem;
}

.ld-eslide__title {
    font-family: 'Atma', sans-serif;
    font-weight: 600;
    font-size: clamp(1.8rem, 3vw, 3rem);
    line-height: 1.15;
    color: #fff;
    margin-bottom: 1rem;
    max-width: 18ch;
}
.ld-eslide__title .accent--cyan { color: #00C0E8; }

.ld-eslide__text {
    font-family: 'Architects Daughter', cursive;
    font-size: clamp(0.95rem, 1.25vw, 1.25rem);
    line-height: 1.25;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1.5rem;
    max-width: 40ch;
}

.ld-eslide__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
    gap: 1rem;
    padding: clamp(0.9rem, 1.6vh, 1.4rem) clamp(1.5rem, 2vw, 2.25rem);
    border: 1px solid #00C0E8;
    border-radius: 50px;
    background: rgba(72, 202, 228, 0.05);
    font-size: clamp(1rem, 1.2vw, 1.25rem);
    font-weight: 500;
    color: #fff;
    transition: background 0.2s, border-color 0.2s;
}
.ld-eslide__btn:hover { background: rgba(72, 202, 228, 0.18); }
.ld-eslide__btn img { width: 22px; height: 22px; }

/* up / dots / down, filled in the brand blue */
.ld-eslider__nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.9rem;
}

.ld-eslider__arrow {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #00C0E8;
    color: #03020E;
    transition: transform 0.2s var(--ease-spring), background 0.2s;
}
.ld-eslider__arrow svg { width: 20px; height: 20px; }
.ld-eslider__arrow:hover { background: #2ad4f5; transform: scale(1.08); }
.ld-eslider__arrow:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }

.ld-eslider__dots {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.55rem;
}

.ld-eslider__dot {
    width: 9px;
    height: 9px;
    padding: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    transition: background 0.25s, height 0.25s;
}
.ld-eslider__dot.is-active { background: #00C0E8; height: 22px; border-radius: 6px; }

@media (max-width: 900px) {
    .ld-eslider { grid-template-columns: 1fr; gap: 1.5rem; }
    /* the viewport must keep a height of its own: with "auto" the column track grew to
       fit every slide and all three episodes showed at once. site.js measures the tallest
       slide and sets the exact height; this is the fallback until it runs. */
    .ld-eslider__viewport { height: 30rem; }
    .ld-eslide { grid-template-columns: 1fr; grid-template-rows: auto 1fr; gap: 1.25rem; height: 100%; align-content: start; }
    .ld-eslide__thumb { aspect-ratio: 16 / 9; height: auto; max-width: 460px; margin-inline: auto; width: 100%; }
    .ld-eslide__body { justify-content: flex-start; }
    .ld-eslide__title { font-size: clamp(1.7rem, 6.5vw, 2.2rem); margin-bottom: 0.6rem; max-width: 100%; }
    .ld-eslide__label { margin-bottom: 0.5rem; }
    .ld-eslide__text { margin-bottom: 1.1rem; }
    .ld-eslide__btn { align-self: stretch; }
    .ld-eslider__nav { flex-direction: row; justify-content: center; gap: 1.25rem; }
    .ld-eslider__arrow svg { transform: rotate(-90deg); }   /* up/down read as back/next in a row */
    .ld-eslider__dots { flex-direction: row; }
    .ld-eslider__dot.is-active { height: 9px; width: 22px; }
}

/* ---------- the hero's blue glow, softly repeated further down the page ---------- */
.stop-podcast::before,
.stop-scrapbook::before,
.footer-cta::before {
    content: '';
    position: absolute;
    z-index: -1;
    pointer-events: none;
    border-radius: 50%;
}

.stop-podcast::before {
    top: -12%;
    left: -10%;
    width: clamp(320px, 45vw, 760px);
    aspect-ratio: 1;
    background: radial-gradient(circle, rgba(0, 192, 232, 0.22) 0%, transparent 62%);
}

.stop-scrapbook::before {
    bottom: -14%;
    right: -12%;
    width: clamp(320px, 45vw, 780px);
    aspect-ratio: 1;
    background: radial-gradient(circle, rgba(0, 192, 232, 0.16) 0%, transparent 62%);
}

.footer-cta::before {
    top: -18%;
    left: 50%;
    transform: translateX(-50%);
    width: clamp(340px, 70vw, 1100px);
    aspect-ratio: 16 / 9;
    background: radial-gradient(ellipse at center, rgba(0, 192, 232, 0.18) 0%, transparent 62%);
}

/* ---------- phones and tablets: the same brand light and spacing as the desktop ---------- */
@media (max-width: 900px) {
    /* the hero's blue does not stop at the hero: every section keeps a little of it */
    .stop-blog::before,
    .stop-video::before,
    .stop-thoughts::before {
        content: '';
        position: absolute;
        z-index: -1;
        pointer-events: none;
        border-radius: 50%;
        width: 130vw;
        aspect-ratio: 1;
    }
    .stop-blog::before     { top: -18%; left: -45%; background: radial-gradient(circle, rgba(0, 192, 232, 0.20) 0%, transparent 60%); }
    .stop-video::before    { bottom: -16%; right: -50%; background: radial-gradient(circle, rgba(0, 192, 232, 0.17) 0%, transparent 60%); }
    .stop-thoughts::before { top: -12%; right: -50%; background: radial-gradient(circle, rgba(0, 192, 232, 0.14) 0%, transparent 60%); }
    .stop-podcast::before  { width: 130vw; left: -45%; top: -14%; background: radial-gradient(circle, rgba(0, 192, 232, 0.24) 0%, transparent 60%); }
    .stop-scrapbook::before { width: 130vw; right: -50%; bottom: -12%; }
    .footer-cta::before    { width: 150vw; }

    /* one rhythm down the page instead of four different ones */
    .stop-podcast,
    .stop-video,
    .stop-scrapbook,
    .stop-thoughts { padding: 3.75rem 0; }
    .stop-blog { padding: 5rem 0 3.75rem; }

    /* the quotes read as cards, with the mark drawn rather than typed */
    .ld-mquote {
        position: relative;
        max-width: min(540px, calc(100% - 2rem));
        margin-block: 2.5rem;
        padding: 2rem 1.6rem 1.75rem;
        border: 1px solid rgba(255, 255, 255, 0.16);
        border-radius: 28px;
        background: linear-gradient(158deg, rgba(0, 192, 232, 0.12) 0%, rgba(6, 6, 20, 0.94) 58%);
        box-shadow: 0 20px 44px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.07);
    }
    .ld-mquote::before {
        content: '\201C';
        position: absolute;
        top: 6px;
        left: 18px;
        font-family: 'Atma', sans-serif;
        font-size: 62px;
        line-height: 1;
        color: rgba(0, 192, 232, 0.4);
    }
    .ld-mquote__text { font-size: clamp(1.05rem, 4.3vw, 1.3rem); line-height: 1.55; color: rgba(255, 255, 255, 0.92); }
    .ld-mquote__text::before,
    .ld-mquote__text::after { content: none; }
    .ld-mquote__author { margin-top: 0.8rem; font-size: 1.05rem; }
}

/* the menu panel: full-height, blurred, with room to tap */
@media (max-width: 768px) {
    body.ld-menu-open { overflow: hidden; }

    .header__nav.is-open {
        /* opaque: the page behind used to read straight through the panel. The hero's
           blue is kept as a glow at the top so the menu still belongs to the design. */
        background:
            radial-gradient(120% 62% at 50% 0%, rgba(0, 192, 232, 0.20) 0%, transparent 64%),
            linear-gradient(165deg, #001a26 0%, #01010b 62%);
        justify-content: flex-start;   /* the links start under the header, not mid-screen */
        padding-top: 2rem;
    }
    .header__nav.is-open ul { width: 100%; gap: 0; }
    .header__nav.is-open ul li { width: 100%; }
    .header__nav.is-open a {
        display: block;
        width: 100%;
        padding: 1.1rem 0;
        font-size: 1.45rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }
}

/* --- phones and tablets: keep scrolling smooth ---
   The header is fixed with a backdrop blur, so the browser re-blurs whatever is behind
   it on every scrolled frame. That was cheap while each section painted its own solid
   background over the road; now that the sections are clear so the dotted line shows
   through, the blur has the whole road overlay and the map artwork to sample, and
   scrolling stuttered. A solid bar costs nothing and looks the same over this palette. */
@media (max-width: 900px) {
    /* Fully opaque, and the same whether the page has been scrolled or not. At 88% —
       and even at 97% — a heading passing under the bar showed through it as a ghost,
       and it did so on some pages and not others depending on how light the heading
       was. Nothing shows through a solid bar, anywhere. */
    .site-header,
    .site-header.is-scrolled {
        background: #090A0E;
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
    }

    /* an 800px circle behind a 160px blur, repainted with the bar above it */
    .ld-glow { filter: blur(90px); }
}

/* ---------- Filing Cabinet line: VOICES in blue ---------- */
.ld-voices { color: #00C0E8; }

/* ---------- Lanny with the word bubbles (homepage and bio) ---------- */
.ld-portrait {
    position: relative;
    width: 100%;
    container-type: inline-size;
}
.ld-portrait img { display: block; width: 100%; height: auto; }
.ld-portrait__word {
    position: absolute;
    transform: translate(-50%, -50%) rotate(var(--tilt, 0deg));
    font-family: 'Architects Daughter', cursive;
    font-size: 6.2cqw;
    line-height: 1;
    color: #14121f;
    white-space: nowrap;
    pointer-events: none;
}

/* ---------- "click here to go home" hint beside the name (desktop) ---------- */
.header__home-hint { display: none; }
@media (min-width: 901px) {
    .header__home-hint {
        display: inline-flex;
        align-items: center;
        gap: 0.35rem;
        margin-left: -0.75rem;
        margin-right: 1.25rem;
        font-family: 'Patrick Hand', 'Architects Daughter', cursive;
        font-size: 14px;
        line-height: 1;
        color: #EFD020;
        white-space: nowrap;
        text-decoration: none;
        opacity: 0.9;
    }
    .header__home-hint svg { width: 34px; height: 16px; flex-shrink: 0; }
    .header__home-hint:hover { opacity: 1; }
}
@media (min-width: 901px) and (max-width: 1100px) {
    .header__home-hint { display: none; }
}
