:root
{
    --ink:#0b1220;
    --flat:#dfe5f0;
    --brand:#ffffff;
    --shell:#ffb300;
    --wide:#111111;
    --thin:#d99700;
    --base:#070b16;
    --core:#ffffff;
    --tile:color-mix(in srgb, var(--flat) 6%, var(--ink));
    --dim:color-mix(in srgb, var(--flat) 3%, var(--ink));
    --deep:color-mix(in srgb, var(--flat) 18%, var(--ink));
    --size:var(--flat);
    --zone:1160px;
    --stroke:78ch;
    --foot:14px;
    --head:8px;
    --lift:0 2px 4px rgb(0 0 0 / 10%), 0 16px 40px rgb(0 0 0 / 16%);
    --soft:clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
    --field:clamp(1.15rem, 1.08rem + 0.35vw, 1.35rem);
    --body:clamp(1.4rem, 1.24rem + 0.75vw, 1.95rem);
    --lead:clamp(1.95rem, 1.5rem + 1.9vw, 3.1rem)
}

*::after, *::before, *
{
    box-sizing:border-box
}

body
{
    margin:0;
    background:var(--ink);
    color:var(--flat);
    font-family:system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    font-size:var(--soft);
    line-height:1.65;
    -webkit-text-size-adjust:100%;
    overflow-wrap:break-word
}

img
{
    max-width:100%;
    height:auto;
    display:block
}

a
{
    color:inherit
}

.segment
{
    position:sticky;
    top:0;
    z-index:20;
    background:var(--base);
    color:var(--core)
}

.segment-first, .span2-last, .trail-soft, .entry-view, .part-foot
{
    width:min(100% - 2rem, var(--zone));
    margin-inline:auto
}

.segment-first
{
    display:flex;
    align-items:center;
    gap:1.25rem;
    min-height:60px;
    padding-block:0.5rem
}

.beam
{
    display:inline-flex;
    align-items:center;
    font-weight:700;
    font-size:1.05rem;
    letter-spacing:-0.01em;
    text-decoration:none;
    color:inherit;
    white-space:nowrap;
    flex-shrink:0
}

.beam img
{
    height:32px;
    width:auto;
    object-fit:contain
}

.stratum
{
    display:flex;
    gap:0.15rem;
    margin-inline-end:auto;
    min-width:0
}

.stratum a
{
    padding:0.4rem 0.7rem;
    border-radius:var(--head);
    text-decoration:none;
    color:inherit;
    opacity:0.82;
    white-space:nowrap;
    font-size:0.92rem
}

.stratum a:hover
{
    background:color-mix(in srgb, var(--core) 14%, transparent);
    opacity:1
}

.stratum:empty
{
    display:none
}

.stratum:empty + .segment-large
{
    margin-inline-start:auto
}

.segment-large
{
    display:flex;
    gap:0.5rem;
    flex-shrink:0
}

.set
{
    display:none;
    position:relative;
    flex-shrink:0
}

.set-bold
{
    list-style:none;
    cursor:pointer;
    width:40px;
    height:40px;
    display:grid;
    place-items:center;
    border:1px solid color-mix(in srgb, var(--core) 40%, transparent);
    border-radius:var(--head)
}

.set-bold::-webkit-details-marker
{
    display:none
}

.set-bold span::after, .set-bold span::before, .set-bold span
{
    content:"";
    display:block;
    width:18px;
    height:2px;
    background:currentColor;
    border-radius:2px
}

.set-bold span
{
    position:relative
}

.set-bold span::before
{
    position:absolute;
    top:-6px
}

.set-bold span::after
{
    position:absolute;
    top:6px
}

.set-copy
{
    position:absolute;
    inset-inline-end:0;
    top:calc(100% + 0.5rem);
    z-index:25;
    min-width:14rem;
    display:flex;
    flex-direction:column;
    gap:0.15rem;
    padding:0.5rem;
    background:var(--base);
    border:1px solid color-mix(in srgb, var(--core) 20%, transparent);
    border-radius:var(--foot);
    box-shadow:var(--lift)
}

.set-copy a
{
    padding:0.6rem 0.7rem;
    border-radius:var(--head);
    text-decoration:none;
    color:var(--core)
}

.set-copy a:hover
{
    background:color-mix(in srgb, var(--core) 12%, transparent)
}

.set-copy .lattice
{
    margin-top:0.4rem;
    color:var(--core);
    border-color:color-mix(in srgb, var(--core) 40%, transparent)
}

.segment .lattice-small
{
    color:inherit;
    border-color:color-mix(in srgb, var(--core) 45%, transparent)
}

.segment .lattice-small:hover
{
    background:color-mix(in srgb, var(--core) 14%, transparent)
}

.entry
{
    background:color-mix(in srgb, var(--core) 8%, var(--base));
    border-top:1px solid color-mix(in srgb, var(--core) 12%, transparent);
    font-size:0.9rem
}

.entry-view
{
    display:flex;
    gap:0.25rem;
    overflow-x:auto;
    scrollbar-width:none
}

.entry-view::-webkit-scrollbar
{
    display:none
}

.entry a
{
    padding:0.55rem 0.7rem;
    text-decoration:none;
    color:var(--core);
    opacity:0.8;
    white-space:nowrap;
    border-bottom:2px solid transparent
}

.entry a:hover
{
    opacity:1;
    border-bottom-color:var(--shell)
}

.lattice
{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:0.4rem;
    border:1px solid var(--warm, transparent);
    border-radius:var(--head);
    padding:0.6rem 1.1rem;
    font:inherit;
    font-weight:700;
    line-height:1.2;
    text-align:center;
    cursor:pointer;
    text-decoration:none;
    background:var(--shell);
    color:var(--wide);
    transition:background-color 0.15s ease, transform 0.05s ease
}

.lattice:hover
{
    background:var(--thin)
}

.lattice:active
{
    transform:translateY(1px)
}

.lattice-small
{
    background:transparent;
    color:var(--brand);
    border-color:var(--deep)
}

.lattice-small:hover
{
    background:var(--tile)
}

.lattice-open
{
    padding:0.9rem 1.8rem;
    font-size:var(--field)
}

:focus-visible
{
    outline:2px solid var(--shell);
    outline-offset:2px
}

.sheet h2, .sheet h3, .branch, .matrix h2, .trail-cell, .matrix h3
{
    color:var(--brand);
    line-height:1.18;
    letter-spacing:-0.02em;
    text-wrap:balance
}

.branch
{
    font-size:var(--lead);
    margin:0 0 1rem
}

.trail-cell
{
    font-size:var(--body);
    margin:0 0 1.25rem
}

.matrix h3, .sheet h3
{
    font-size:var(--field);
    margin:1.75rem 0 0.5rem
}

.matrix p, .sheet p
{
    margin:0 0 1rem
}

.sheet > :last-child, .matrix > :last-child
{
    margin-bottom:0
}

.matrix a, .sheet a
{
    color:color-mix(in srgb, var(--shell) 72%, var(--brand));
    text-underline-offset:3px
}

.chain
{
    display:block
}

.trail
{
    padding-block:clamp(2rem, 1.4rem + 2vw, 3.5rem);
    scroll-margin-top:72px
}

.chain > .trail:not(.part):nth-of-type(odd)
{
    background:var(--tile)
}

.sheet
{
    max-width:var(--stroke)
}

.trail-list .sheet ul
{
    list-style:none;
    padding:0;
    margin:0 0 1rem;
    display:grid;
    gap:0.5rem
}

.trail-list .sheet ul > li
{
    position:relative;
    padding-inline-start:1.9rem;
    padding-block:0.15rem
}

.trail-list .sheet ul > li::before
{
    content:"";
    position:absolute;
    inset-inline-start:0;
    top:0.55em;
    width:0.75rem;
    height:0.4rem;
    border-inline-start:2px solid var(--shell);
    border-bottom:2px solid var(--shell);
    transform:rotate(-45deg)
}

.trail-list .sheet ol
{
    counter-reset:step;
    list-style:none;
    padding:0;
    display:grid;
    gap:0.6rem
}

.trail-list .sheet ol > li
{
    counter-increment:step;
    position:relative;
    padding-inline-start:2.6rem
}

.trail-list .sheet ol > li::before
{
    content:counter(step);
    position:absolute;
    inset-inline-start:0;
    top:0;
    width:1.8rem;
    height:1.8rem;
    border-radius:50%;
    background:var(--shell);
    color:var(--wide);
    font-weight:700;
    font-size:0.9rem;
    display:grid;
    place-items:center
}

.note
{
    margin:1.5rem 0;
    padding:1rem 1.25rem;
    border:1px solid var(--deep);
    border-inline-start:3px solid var(--size);
    border-radius:0 var(--head) var(--head) 0;
    background:var(--tile);
    font-size:0.95rem
}

.note p
{
    margin:0 0 0.6rem
}

.note > :last-child
{
    margin-bottom:0
}

.note strong
{
    color:var(--brand)
}

.note--disclosure
{
    color:var(--size);
    font-size:0.88rem;
    background:transparent;
    border-inline-start-color:var(--deep)
}

.note--warning
{
    border-inline-start-color:var(--shell);
    background:color-mix(in srgb, var(--shell) 10%, var(--ink))
}

.note--takeaway
{
    font-variant-numeric:tabular-nums;
    border-inline-start-color:var(--brand)
}

.note--rg
{
    border:1px solid color-mix(in srgb, var(--brand) 30%, var(--deep));
    border-radius:var(--foot);
    background:var(--dim)
}

.note--rg a
{
    font-weight:600
}

.note--independent
{
    margin-top:2.5rem;
    font-size:0.85rem;
    color:var(--size);
    background:transparent;
    border:0;
    border-top:1px solid var(--deep);
    border-radius:0;
    padding:1rem 0 0
}

.matrix blockquote, .sheet blockquote
{
    margin:1.25rem 0;
    padding:1rem 1.25rem;
    border-inline-start:3px solid var(--shell);
    border-radius:0 var(--head) var(--head) 0;
    background:var(--ink);
    color:var(--flat);
    font-size:0.95rem
}

.sheet blockquote p, .matrix blockquote p
{
    margin:0 0 0.6rem
}

.sheet blockquote > :last-child, .matrix blockquote > :last-child
{
    margin-bottom:0
}

.matrix blockquote strong, .sheet blockquote strong
{
    color:var(--brand)
}

.sheet hr
{
    border:0;
    border-top:1px solid var(--deep);
    margin:2rem 0
}

.sheet table
{
    width:100%;
    border-collapse:collapse;
    margin:0 0 1.25rem;
    font-size:0.95rem;
    background:var(--dim);
    border:1px solid var(--deep);
    border-radius:var(--foot);
    overflow:hidden
}

.trail-table .sheet
{
    max-width:none;
    overflow-x:auto
}

.sheet th, .sheet td
{
    border-bottom:1px solid var(--deep);
    padding:0.7rem 0.9rem;
    text-align:start;
    vertical-align:top
}

.sheet caption
{
    caption-side:top;
    text-align:start;
    padding:0 0 0.6rem;
    font-weight:700;
    color:var(--brand)
}

.sheet thead th
{
    background:color-mix(in srgb, var(--shell) 16%, var(--tile));
    color:var(--flat);
    font-weight:700;
    white-space:nowrap
}

.sheet tbody tr:last-child td
{
    border-bottom:0
}

.sheet tbody tr:nth-child(even)
{
    background:color-mix(in srgb, var(--flat) 3%, transparent)
}

.mesh
{
    display:grid;
    grid-template-columns:minmax(0, 1fr) minmax(200px, 260px);
    gap:2rem;
    align-items:start
}

.mesh-side
{
    border:1px solid var(--deep);
    border-radius:var(--foot);
    box-shadow:var(--lift);
    width:100%
}

.part
{
    position:relative;
    padding-block:clamp(2rem, 1.2rem + 3vw, 4rem);
    background:var(--base);
    isolation:isolate
}

.part::before
{
    content:"";
    position:absolute;
    inset:0;
    z-index:-1;
    background-image:linear-gradient(rgb(0 0 0 / 72%), rgb(0 0 0 / 82%)), var(--bold, none);
    background-size:cover;
    background-position:center
}

.patch-plain
{
    margin-top:1.25rem;
    text-align:center
}

.patch-plain a
{
    color:var(--shell);
    font-weight:600
}

.teaser
{
    text-align:center
}

.teaser-info
{
    font-size:clamp(3.5rem, 12vw, 6rem);
    line-height:1;
    font-weight:800;
    color:var(--shell);
    margin-bottom:0.5rem
}

.teaser-flat
{
    max-width:46ch;
    margin-inline:auto;
    color:var(--size)
}

.teaser-large
{
    display:flex;
    flex-wrap:wrap;
    justify-content:center;
    gap:0.75rem;
    margin-top:1.75rem
}

@media (max-width: 700px) {
    .part::before
    {
        background-image:linear-gradient(rgb(0 0 0 / 72%), rgb(0 0 0 / 82%)), var(--line, var(--bold, none))
    }

}
.part-foot
{
    display:grid;
    grid-template-columns:minmax(0, 1fr) minmax(300px, 22rem);
    grid-template-areas:"title offer" "text offer";
    align-content:start;
    gap:0 2rem
}

.part .branch
{
    grid-area:title;
    color:#ffffff
}

.part-last
{
    grid-area:text;
    color:#f2f4f8;
    max-width:62ch
}

.part .matrix
{
    margin-bottom:1.5rem
}

.part-image
{
    margin:0.75rem 0 0;
    font-size:0.85rem;
    opacity:0.75
}

.figure
{
    grid-area:offer;
    background:var(--ink);
    border:1px solid color-mix(in srgb, var(--shell) 40%, var(--deep));
    border-radius:var(--foot);
    box-shadow:var(--lift);
    overflow:hidden;
    align-self:start
}

.figure .lattice
{
    width:100%
}

.figure-open
{
    display:grid;
    place-items:center;
    min-height:74px;
    padding:0.9rem 1.25rem;
    background:color-mix(in srgb, var(--shell) 12%, var(--ink));
    color:var(--brand);
    border-bottom:3px solid var(--shell)
}

.figure-open img
{
    height:42px;
    width:auto;
    max-width:100%;
    object-fit:contain
}

.figure-lead
{
    display:flex;
    flex-direction:column;
    gap:0.6rem;
    padding:1.25rem;
    text-align:center
}

.figure-last
{
    font-weight:800;
    font-size:var(--field);
    color:inherit;
    text-align:center
}

.figure-line
{
    font-size:0.78rem;
    text-transform:uppercase;
    letter-spacing:0.09em;
    color:var(--size);
    margin:0
}

.figure-foot
{
    font-size:var(--body);
    font-weight:800;
    line-height:1.15;
    color:var(--brand);
    margin:0;
    text-wrap:balance
}

.figure-info
{
    font-size:0.8rem;
    color:var(--size);
    margin:0
}

.stack
{
    padding-block:1.5rem
}

.folder
{
    border:1px solid var(--deep);
    border-radius:var(--foot);
    background:var(--dim);
    padding:0.5rem 1.1rem
}

.folder-first
{
    cursor:pointer;
    font-weight:700;
    color:var(--brand);
    padding-block:0.6rem;
    list-style:none;
    display:flex;
    align-items:center;
    gap:0.5rem
}

.folder-first::-webkit-details-marker
{
    display:none
}

.folder-first::before
{
    content:"";
    width:0.5rem;
    height:0.5rem;
    border-inline-end:2px solid var(--shell);
    border-bottom:2px solid var(--shell);
    transform:rotate(45deg);
    transition:transform 0.15s ease
}

.folder[open] .folder-first::before
{
    transform:rotate(-135deg)
}

.folder-view
{
    columns:2;
    gap:2rem;
    margin:0 0 0.75rem;
    padding-inline-start:1.2rem;
    font-size:0.95rem
}

.folder-view li
{
    break-inside:avoid;
    margin-bottom:0.3rem
}

.folder-view a
{
    color:var(--size);
    text-underline-offset:3px
}

.folder-view a:hover
{
    color:var(--brand)
}

.braid
{
    display:grid;
    grid-template-columns:repeat(auto-fill, minmax(200px, 1fr));
    gap:1rem;
    list-style:none;
    margin:0;
    padding:0
}

.quarter
{
    display:flex;
    flex-direction:column;
    background:var(--dim);
    border:1px solid var(--deep);
    border-radius:var(--foot);
    overflow:hidden;
    transition:border-color 0.15s ease, transform 0.15s ease
}

.quarter:hover
{
    border-color:var(--shell);
    transform:translateY(-2px)
}

.quarter-link
{
    aspect-ratio:4 / 3;
    overflow:hidden;
    background:var(--tile)
}

.quarter-link img
{
    width:100%;
    height:100%;
    object-fit:cover
}

.quarter-copy
{
    display:flex;
    flex-direction:column;
    gap:0.7rem;
    padding:0.85rem;
    margin-top:auto
}

.quarter-first
{
    font-weight:600;
    color:var(--brand);
    line-height:1.3;
    margin:0
}

.quarter .lattice
{
    width:100%;
    padding-block:0.5rem;
    font-size:0.95rem
}

.plate-off
{
    display:grid;
    grid-template-columns:repeat(auto-fill, minmax(260px, 1fr));
    gap:1rem;
    list-style:none;
    margin:0;
    padding:0
}

.block
{
    background:var(--ink);
    border:1px solid var(--deep);
    border-radius:var(--foot);
    padding:1.1rem 1.2rem
}

.block-small
{
    display:flex;
    align-items:baseline;
    justify-content:space-between;
    gap:0.5rem;
    margin-bottom:0.4rem
}

.block-narrow
{
    font-weight:700;
    color:var(--brand)
}

.block-less
{
    color:var(--shell);
    font-weight:700;
    white-space:nowrap
}

.block-thumb
{
    margin:0;
    color:var(--size)
}

.corner-sub
{
    display:grid;
    gap:0.5rem;
    max-width:var(--stroke)
}

.corner-top
{
    border:1px solid var(--deep);
    border-radius:var(--head);
    background:var(--dim);
    padding:0 1.1rem
}

.corner-soft
{
    cursor:pointer;
    font-weight:600;
    color:var(--brand);
    padding-block:0.9rem;
    list-style:none;
    display:flex;
    align-items:flex-start;
    gap:0.75rem
}

.corner-soft::-webkit-details-marker
{
    display:none
}

.corner-soft::before
{
    content:"+";
    color:var(--shell);
    font-weight:700;
    line-height:1.4;
    flex-shrink:0
}

.corner-top[open] .corner-soft::before
{
    content:"−"
}

.corner-on
{
    color:var(--size);
    padding-bottom:1rem
}

.corner-on > :first-child
{
    margin-top:0
}

.corner-on > :last-child
{
    margin-bottom:0
}

.belt
{
    display:flex;
    flex-wrap:wrap;
    align-items:center;
    justify-content:space-between;
    gap:1rem 2rem;
    padding:1.5rem;
    border-radius:var(--foot);
    background:color-mix(in srgb, var(--shell) 12%, var(--tile));
    border:1px solid color-mix(in srgb, var(--shell) 35%, var(--deep))
}

.belt-soft
{
    margin:0;
    font-size:var(--field);
    font-weight:800;
    color:var(--brand);
    text-wrap:balance
}

.belt-sub
{
    margin:0.25rem 0 0;
    font-size:0.82rem;
    color:var(--size)
}

.span2
{
    border-top:1px solid var(--deep);
    background:var(--ink);
    color:var(--flat);
    padding-block:2rem 6rem
}

.span2-last
{
    display:flex;
    flex-wrap:wrap;
    gap:1rem 1.5rem;
    align-items:center;
    padding-bottom:1.25rem;
    border-bottom:1px solid var(--deep)
}

.span2-bottom
{
    margin-inline-end:auto;
    font-weight:700;
    color:var(--brand)
}

.span2-bottom img
{
    height:32px;
    width:auto;
    object-fit:contain
}

.span2-on
{
    display:flex;
    flex-wrap:wrap;
    gap:0.25rem 1rem
}

.span2-on:empty
{
    display:none
}

.span2-on a
{
    text-decoration:none
}

.span2-on a:hover
{
    text-decoration:underline
}

.span2-first
{
    width:min(100% - 2rem, var(--zone));
    margin-inline:auto;
    padding-top:1.25rem;
    font-size:0.85rem;
    display:grid;
    gap:0.5rem
}

.span2-first p
{
    margin:0
}

.span2-large
{
    display:flex;
    align-items:center;
    gap:0.5rem;
    flex-wrap:wrap
}

.strip
{
    display:inline-grid;
    place-items:center;
    min-width:2.1rem;
    height:2.1rem;
    border:2px solid currentColor;
    border-radius:50%;
    font-weight:800;
    font-size:0.78rem
}

.step
{
    position:fixed;
    inset-inline:0;
    bottom:0;
    z-index:30;
    display:flex;
    align-items:center;
    gap:1rem;
    padding:0.6rem 1rem calc(0.6rem + env(safe-area-inset-bottom));
    background:var(--base);
    color:var(--core);
    border-top:1px solid color-mix(in srgb, var(--shell) 45%, transparent)
}

.step-first
{
    display:flex;
    flex-direction:column;
    min-width:0;
    line-height:1.25
}

.step-link
{
    font-weight:800;
    color:var(--core);
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap
}

.step-large
{
    font-size:0.75rem;
    opacity:0.7
}

.step .lattice
{
    margin-inline-start:auto;
    flex-shrink:0
}

@media (max-width: 960px) {
    .part-foot
    {
        grid-template-columns:1fr;
        grid-template-areas:"title" "offer" "text";
        gap:1.25rem
    }

    .mesh
    {
        grid-template-columns:1fr
    }

    .mesh-side
    {
        max-width:260px;
        margin-inline:auto
    }

}
@media (max-width: 700px) {
    .folder-view
    {
        columns:1
    }

    .braid
    {
        grid-template-columns:repeat(auto-fill, minmax(145px, 1fr));
        gap:0.75rem
    }

}
@media (max-width: 640px) {
    .segment
    {
        position:static
    }

    .segment-first
    {
        flex-wrap:wrap;
        gap:0.5rem 0.75rem;
        padding-block:0.6rem
    }

    .segment-first
    {
        flex-wrap:nowrap
    }

    .entry, .stratum, .segment-large .lattice-small
    {
        display:none
    }

    .stratum + .segment-large
    {
        margin-inline-start:auto
    }

    .set
    {
        display:block;
        order:3
    }

    .segment-large
    {
        margin-inline-start:auto
    }

    .segment-large .lattice
    {
        padding:0.5rem 0.8rem;
        font-size:0.9rem
    }

    .trail
    {
        padding-block:1.75rem
    }

    .belt, .figure-lead
    {
        padding:1.15rem
    }

    .part-last .lattice-open, .belt .lattice-open
    {
        width:100%
    }

    .step-large
    {
        display:none
    }

}
@media (prefers-reduced-motion: reduce) {
    *::before, *
    {
        transition:none !important
    }

}
