.duna-star-sequence {
    --verse-x: 75.35%;
    --verse-y: 82.45%;
    position: relative;
    isolation: isolate;
    overflow: clip;
    background: #000;
}
.duna-star-sequence > .duna-philosophy { background: transparent; }
.duna-closing-stage {
    --stage-height: var(--opening-height, 100svh);
    position: relative;
    height: var(--stage-height);
    margin-bottom: calc(-1 * var(--stage-height));
    overflow: clip;
    pointer-events: none;
}
.duna-star-motion { position: absolute; inset: 0; transform-origin: 81% 50%; }
.duna-star-motion::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: clamp(12px, 3svh, 32px);
    background: linear-gradient(transparent, #000);
    pointer-events: none;
}
.duna-star-sequence__field {
    /* At the reference size (744 × 410), the 800-unit artwork is 768px
       wide and begins at (-10, -10). Anchor the same patch of dust to the
       verse as the viewport changes; keep all stars uniformly scaled. */
    --frame-width: min(103.226vw, calc(var(--opening-height, 100svh) * 1.87317), 135rem);
    position: absolute;
    left: calc(var(--verse-x) - var(--frame-width) * .743);
    bottom: min(calc(100% - var(--verse-y) - var(--frame-width) * .1994), -2rem);
    width: calc(var(--frame-width) * 1.2);
    aspect-ratio: 960 / 522;
    pointer-events: none;
    mask-image: linear-gradient(to right, transparent 21%, #000 36%),
                linear-gradient(to bottom, transparent, #000 6%, #000 79%, #0009 91%, transparent);
    mask-composite: intersect;
}
.duna-star-sequence__field img { display: block; width: 100%; height: 100%; }
.duna-philosophy {
    --philosophy-serif: "DUNA Baskervville", Baskerville, Georgia, serif;
    position: relative;
    isolation: isolate;
    overflow: clip;
    display: grid;
    grid-template-rows: auto 1fr;
    min-height: 100vh;
    min-height: var(--opening-height, 100svh);
    padding: var(--section-top) var(--section-inset) clamp(1.25rem, 2.75svh, 2.5rem);
    color: #f5f2e9;
    font-family: "DM Sans", system-ui, sans-serif;
}
.duna-philosophy__body {
    display: grid;
    grid-template-columns: minmax(0, .96fr) minmax(0, 1.04fr);
    gap: clamp(2rem, 5vw, 6.5rem);
    align-items: center;
    padding-block: clamp(1rem, 2.6svh, 2.2rem);
}
.duna-philosophy__copy {
    width: 100%;
    max-width: 49rem;
    min-width: 0;
}
.duna-philosophy__copy h2 {
    margin-bottom: clamp(1rem, 2.5svh, 2rem);
    font: 500 clamp(2.25rem, min(5.75vw, 9svh), 6.8rem)/1.05 var(--philosophy-serif);
    letter-spacing: -.045em;
}
.duna-philosophy__prose {
    font-size: clamp(.92rem, 1.13vw, 1.14rem);
    line-height: 1.58;
    color: #deded8;
}
.duna-philosophy__prose p + p { margin-top: 1.05em; }
.duna-philosophy__prose strong { color: #f5f2e9; }
.duna-philosophy__prose em {
    font: italic 500 1.14em/1.45 var(--philosophy-serif);
    color: #f5f2e9;
}
.duna-philosophy__read {
    min-height: 44px;
    align-self: flex-start;
    margin-top: .4rem;
    padding: 0 .2rem;
    border: 0;
    background: transparent;
    color: #d8dbd3;
    font: 500 .82rem/1.2 "DM Sans", system-ui, sans-serif;
    cursor: pointer;
}
.duna-philosophy__read:hover { color: #fff; text-decoration: underline; }
.duna-philosophy__read:focus-visible, .duna-philosophy__prose:focus-visible {
    outline: 1px solid currentColor;
    outline-offset: 3px;
}

.duna-philosophy__figure {
    display: grid;
    align-self: stretch;
    justify-items: center;
    align-content: end;
    padding: 0 0 clamp(1.2rem, 5svh, 4rem) min(2.8vw, 2.6rem);
    min-width: 0;
    margin: 0;
}
.duna-philosophy__verse {
    position: absolute;
    left: var(--verse-x);
    top: calc(var(--verse-y) - .06em);
    transform: translate(-50%, -50%);
    width: max-content;
    max-width: 48%;
    display: grid;
    gap: .14em;
    text-align: center;
    font: 400 clamp(1.12rem, 2.56vw, 2.5rem)/1.13 var(--philosophy-serif);
    letter-spacing: -.025em;
    text-shadow: 0 1px 5px #000, 0 2px 14px #0009;
}
.duna-philosophy__verse span:last-child {
    font-size: 1.55em;
    font-weight: 500;
    letter-spacing: -.035em;
}

.duna-philosophy[data-paged] {
    height: var(--opening-height, 100svh);
    grid-template-rows: auto minmax(0, 1fr);
}
.duna-philosophy[data-paged] .duna-philosophy__body { min-height: 0; grid-template-rows: minmax(0, 1fr); }
.duna-philosophy[data-paged] .duna-philosophy__copy {
    display: flex;
    flex-direction: column;
    min-height: 0;
    max-height: 100%;
}
.duna-philosophy__copy > :not(.duna-philosophy__prose) { flex-shrink: 0; }
.duna-philosophy[data-paged] .duna-philosophy__prose {
    min-height: 0;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #777a73 #151615;
}
.duna-philosophy__prose[tabindex] { padding-inline-end: .7rem; }

@media (max-width: 44rem) {
    .duna-philosophy__body {
        grid-template-columns: 1fr;
        gap: clamp(.65rem, 2svh, 1.5rem);
        padding-bottom: 0;
    }
    .duna-philosophy[data-paged] .duna-philosophy__body { grid-template-rows: minmax(0, 1fr) auto; }
    .duna-philosophy__figure {
        position: relative;
        isolation: isolate;
        min-height: clamp(11rem, 35svh, 23rem);
        margin-inline: calc(0px - var(--section-inset));
        padding: 0 var(--section-inset) clamp(1.2rem, 3svh, 2.2rem);
    }
    .duna-philosophy__copy h2 { font-size: clamp(2.35rem, 10.1vw, 3.85rem); }
    .duna-star-sequence__field {
        --mobile-field-height: calc(clamp(11rem, 35svh, 23rem) + clamp(1.25rem, 2.75svh, 2.5rem));
        bottom: calc(var(--mobile-field-height) * -.16);
        left: 0;
        width: 100%;
        height: calc(var(--mobile-field-height) * 1.16);
        aspect-ratio: auto;
        mask-image: linear-gradient(to bottom, transparent, #000 14%, #000 76%, #0009 90%, transparent);
    }
    .duna-star-sequence__field img { object-fit: cover; object-position: center 35%; }
    .duna-philosophy__verse {
        position: static;
        transform: none;
        gap: .32em;
        max-width: 100%;
        font-size: clamp(1.1rem, 4.6vw, 1.5rem);
    }
}
