/* #region Street band */
/* The street of the eight places (Views/Shared/_StreetPlaces.cshtml). The windows, their shapes and their light below
   are the street's wherever it stands: the home page draws them at full scale as its choice of space (.street-home,
   whose scale and rhythm are home.css's), and a page between the questions and Letters closes on them as a band
   (Views/Shared/_StreetBand.cshtml, loaded only by a page that shows it): the home choice screen's street
   (s-windows-air.html#f) at a band's scale. The
   same eight windows — the same shapes (rectangles, segmental arches, round arches, the cabin door
   for every other kind of place), the same height relationships (396 · 330 · 286), the same photographs and crops
   (StreetCatalog), the same ledge and the same light — of one width from the left margin to the right (k0 to k19 of
   site.css's page grid, eight equal bays of 2½ columns), at half the home's heights (--sb-k: the home draws them at
   .82, so the tallest window here, 198 px, is 60 % of the home's 325). The heading takes the size of the Letters title
   under it, so the page closes on two quiet bands of one scale. Nothing is lit at rest on a product page; on a place's
   page its own window is lit and says „Tu jesteś”. The window under the hand lights gold, and only then its one
   sentence and the way in appear under the street, starting at that window's bay. No AI mark on a window: every one
   is narrower than 300 px, and the page's AI sentence discloses them. On a phone: the home phone's street — two
   windows a floor on four floors, a ledge under each — at the band's scale, no sentence: a tap is the way in. The
   approved drawing is Odoardo/docs/home-redesign/round5/street-band.html; every number below is its own. */
.street-band {
    --sb-gold: var(--gold-rgb);
    --sb-k: .5;
    --sb-gap: var(--grid-g, 24px);
    --sb-name-gap: var(--s3, 24px);
    position: relative;
    isolation: isolate;
    overflow: hidden;
    /* The night the band rises out of is the ground the questions end on (the editorial surface), so no edge of a
       darker rectangle shows where the band begins. */
    background: var(--surface-editorial, #070707);
}

/* THE WALL. It rises out of the night under the heading — no seam over it, the air the questions end on is the seam —
   and closes on the ledge, the street's one strong line, full bleed. */
.sb-wall {
    position: relative;
    z-index: 0;
    border-bottom: 1px solid rgba(245, 245, 245, .30);
    background: linear-gradient(180deg, var(--surface-editorial, #070707) 0, var(--surface-editorial, #070707) 26%, #0a0a0a 84%);
}

    .sb-wall::after {
        position: absolute;
        left: 0;
        right: 0;
        top: calc(100% + 5px);
        border-top: 1px solid rgba(245, 245, 245, .08);
        content: '';
    }

    /* The pavement under the ledge, going back to the night before Letters begins on its own ground. */
    .sb-wall::before {
        position: absolute;
        z-index: -2;
        left: 0;
        right: 0;
        top: calc(100% + 6px);
        height: 360px;
        background: linear-gradient(180deg, #0a0a0a, var(--surface-editorial, #070707) 64%);
        content: '';
    }

.sb-grid {
    align-items: end;
}

.sb-title {
    grid-column: 1 / span 12;
    margin: 0 0 var(--s5);
    color: var(--white);
    font-family: var(--font-display);
    font-size: 2rem;
    font-style: normal;
    font-weight: 400;
    letter-spacing: -.012em;
    line-height: 1.12;
    text-transform: none;
}

    /* The question's italic in gold, as every heading of the site and the home screen set it. */
    .sb-title i {
        color: var(--gold);
        font-style: italic;
    }

/* THE STREET. Eight bays of one width on one ledge, k0 to k19; each window stands on the ledge at its own height (--h,
   the home's number, times --sb-k). The photograph is the place's own (--sb-photo), cropped where the home crops it
   (--sb-at, --sb-size), and dimmed as the home dims it (--sb-exp, --sb-sat, --sb-con). */
.sb-street {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    column-gap: var(--sb-gap);
    align-items: end;
    margin: 0;
    padding: 0;
    list-style: none;
}

.sb-place {
    position: relative;
    margin: 0;
}

/* Each door reaches over the gutter after its window, so the hand never falls between two doors. */
.sb-door {
    position: relative;
    display: block;
    margin-right: calc(-1 * var(--sb-gap));
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

.sb-place.is-here .sb-door {
    cursor: default;
}

.sb-win {
    position: relative;
    z-index: 1;
    display: block;
    width: calc(100% - var(--sb-gap));
    height: calc(var(--h) * var(--sb-k) * 1px);
    transition: filter var(--motion-quick) var(--ease-house);
}

.sb-frame {
    position: absolute;
    inset: 0;
    display: block;
    box-sizing: border-box;
    padding: var(--s1);
    border: 1px solid rgba(245, 245, 245, .20);
    background: #070707;
    transition: border-color var(--motion-quick) var(--ease-house), box-shadow var(--motion-quick) var(--ease-house), background var(--motion-quick) var(--ease-house);
}

.sb-glass {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: #080808;
    background-image: var(--sb-photo);
    background-position: var(--sb-at, 50% 50%);
    background-repeat: no-repeat;
    background-size: var(--sb-size, cover);
    filter: saturate(var(--sb-sat, .6)) sepia(.2) brightness(var(--sb-exp, .58)) contrast(var(--sb-con, 1.08));
    transition: filter var(--motion-quick) var(--ease-house);
}

    /* The glass: a vignette and a breath of the house's gold inside every window; the lamp only in a lit one. */
    .sb-glass::after {
        position: absolute;
        inset: 0;
        background: radial-gradient(ellipse 70% 60% at 50% 42%, rgba(var(--sb-gold), .09), rgba(5, 5, 5, 0) 70%);
        box-shadow: inset 0 0 26px 4px rgba(5, 5, 5, .75);
        content: '';
    }

.sb-lamp {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: block;
    background: radial-gradient(ellipse 58% 30% at 52% 22%, rgba(var(--sb-gold), .5), rgba(var(--sb-gold), 0) 70%);
    mix-blend-mode: screen;
    opacity: 0;
    transition: opacity var(--motion-quick) var(--ease-house);
}

/* The hotel's transom. */
.sb-bar {
    position: absolute;
    z-index: 2;
    left: 0;
    right: 0;
    top: 8%;
    display: block;
    height: 4px;
    background: #070707;
}

/* The photographs wait until the page has loaded and the browser is idle, or the reader nears the band, whichever is
   first (street-band.js wakes them), so they never compete with the page's first screen. The panes stay drawn,
   dark, meanwhile. */
.street-band.is-asleep .sb-glass,
.street-band.is-asleep .sb-reflect i {
    background-image: none;
}

/* The shapes. A round arch; a segmental arch (its curve drawn by the script, a true arc of a circle --rise px above
   the springing); the cabin door, glazed whole under its rounded head, with a slim brass pull. */
.sb-arch {
    --rise: 0;
}

    .sb-arch .sb-frame,
    .sb-arch .sb-glass {
        border-radius: 999px 999px 0 0;
    }

.sb-segment {
    --rise: 30;
}

    .sb-segment .sb-frame {
        border: 0;
    }

    .sb-segment svg,
    .sb-arch svg {
        position: absolute;
        inset: 0;
        overflow: visible;
        pointer-events: none;
    }

.sb-arc {
    fill: none;
    stroke: rgba(245, 245, 245, .20);
    stroke-width: 1;
    transition: stroke var(--motion-quick) var(--ease-house);
}

/* The door's head is rounded and its glass follows it, a frame's width inside. */
.sb-hatch {
    --hatch-r: 34px;
}

    .sb-hatch .sb-frame {
        border-radius: var(--hatch-r) var(--hatch-r) 0 0;
    }

    .sb-hatch .sb-glass {
        border-radius: calc(var(--hatch-r) - 6px) calc(var(--hatch-r) - 6px) 0 0;
    }

.sb-pull {
    position: absolute;
    right: 16px;
    bottom: 16px;
    display: block;
    width: 2px;
    height: 24px;
    border-radius: 1px;
    background: rgba(var(--sb-gold), .42);
    box-shadow: 0 0 6px rgba(var(--sb-gold), .18);
}

/* The names, all on one baseline 24 px under the ledge, in the display face, each as wide as its window and never
   wider: at 1440 the longest, „Inna przestrzeń”, takes 118 of its 141 px; on a narrower screen it wraps inside its
   window and „Tu jesteś” follows it down. The lit one brighter. */
.sb-label {
    position: absolute;
    left: 0;
    top: calc(100% + var(--sb-name-gap));
    display: block;
    width: calc(100% - var(--sb-gap));
}

.sb-name {
    display: block;
    color: rgba(245, 245, 245, .74);
    font-family: var(--font-display);
    font-size: 1.0625rem;
    font-weight: 400;
    letter-spacing: -.006em;
    line-height: 24px;
    transition: color var(--motion-quick) var(--ease-house);
}

/* Where you are: the page's own window, said once in the house's small capitals under its name. */
.sb-here {
    display: block;
    margin-top: var(--s1);
    color: var(--gold);
    font-family: var(--font-sans);
    font-size: 9.5px;
    font-weight: 400;
    letter-spacing: .22em;
    line-height: 16px;
    text-transform: uppercase;
    white-space: nowrap;
}

/* Light on the street, as the home lights it: every window throws a faint glow on the pavement; a lit one warms the
   wall behind it, draws its stretch of the ledge in gold, throws its full pool and is mirrored, faintly, in the wet
   stone. Every size is the home's, in parts of the window's width. */
.sb-glow {
    position: absolute;
    z-index: -1;
    left: 0;
    right: 0;
    top: calc(100% + 6px);
    display: block;
    height: 32px;
    pointer-events: none;
    background: radial-gradient(ellipse 50% 70% at 50% 0%, rgba(var(--sb-gold), .07), rgba(var(--sb-gold), 0) 80%);
    transition: opacity var(--motion-quick) var(--ease-house);
}

.sb-pool {
    position: absolute;
    z-index: -1;
    left: -67%;
    right: -67%;
    top: calc(100% + 6px);
    display: block;
    height: 96px;
    pointer-events: none;
    filter: blur(12px);
    opacity: 0;
    transition: opacity var(--motion-quick) var(--ease-house);
}

    .sb-pool i {
        position: absolute;
        inset: 0;
        clip-path: polygon(22% 0, 78% 0, 100% 100%, 0 100%);
        background: linear-gradient(180deg, rgba(var(--sb-gold), .24), rgba(var(--sb-gold), .08) 45%, rgba(var(--sb-gold), 0) 92%);
    }

.sb-reflect {
    position: absolute;
    z-index: -1;
    left: var(--s1);
    right: var(--s1);
    top: calc(100% + 7px);
    display: block;
    height: 72px;
    overflow: hidden;
    pointer-events: none;
    opacity: 0;
    -webkit-mask-image: linear-gradient(180deg, rgba(5, 5, 5, 1), rgba(5, 5, 5, .4) 40%, rgba(5, 5, 5, 0));
    mask-image: linear-gradient(180deg, rgba(5, 5, 5, 1), rgba(5, 5, 5, .4) 40%, rgba(5, 5, 5, 0));
    transition: opacity var(--motion-quick) var(--ease-house);
}

    .sb-reflect i {
        position: absolute;
        left: 0;
        right: 0;
        top: 0;
        height: calc(var(--h) * var(--sb-k) * 1px);
        background-image: var(--sb-photo);
        background-position: var(--sb-at, 50% 50%);
        background-repeat: no-repeat;
        background-size: var(--sb-size, cover);
        transform: scaleY(-.42);
        transform-origin: 50% 0;
        filter: blur(3px) sepia(.8) saturate(1.3);
    }

.sb-place::before {
    position: absolute;
    z-index: -1;
    left: -117%;
    right: -117%;
    top: -18%;
    bottom: -78%;
    background: radial-gradient(ellipse 50% 50% at 50% 50%, rgba(var(--sb-gold), .19), rgba(var(--sb-gold), .06) 46%, rgba(var(--sb-gold), 0) 72%);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--motion-quick) var(--ease-house);
    content: '';
}

.sb-place::after {
    position: absolute;
    left: -37%;
    right: -37%;
    top: 100%;
    height: 1px;
    background: linear-gradient(90deg, rgba(var(--sb-gold), 0), rgba(var(--sb-gold), .9) 25%, rgba(var(--sb-gold), .9) 75%, rgba(var(--sb-gold), 0));
    box-shadow: 0 0 8px rgba(var(--sb-gold), .45);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--motion-quick) var(--ease-house);
    content: '';
}

.sb-place.is-lit::before,
.sb-place.is-lit::after,
.sb-place.is-lit .sb-pool,
.sb-place.is-lit .sb-lamp {
    opacity: 1;
}

.sb-place.is-lit .sb-glow {
    opacity: 0;
}

.sb-place.is-lit .sb-reflect {
    opacity: .24;
}

.sb-place.is-lit .sb-frame {
    border-color: var(--gold);
    background: linear-gradient(180deg, rgba(var(--sb-gold), .30), rgba(var(--sb-gold), .16) 45%, rgba(var(--sb-gold), .09));
    box-shadow: 0 0 0 1px rgba(var(--sb-gold), .22), 0 0 12px rgba(var(--sb-gold), .42), 0 0 44px rgba(var(--sb-gold), .20), 0 0 100px rgba(var(--sb-gold), .08);
}

/* A segmental arch is cut by its clip path, which would cut a box shadow too: it glows through a filter. */
.sb-place.is-lit .sb-segment .sb-frame {
    box-shadow: none;
}

.sb-place.is-lit .sb-segment {
    filter: drop-shadow(0 0 6px rgba(var(--sb-gold), .5)) drop-shadow(0 0 26px rgba(var(--sb-gold), .22));
}

.sb-place.is-lit .sb-arc {
    stroke: var(--gold);
}

.sb-place.is-lit .sb-glass {
    filter: sepia(.5) saturate(1.25) brightness(1) contrast(1.05);
}

    .sb-place.is-lit .sb-glass::after {
        box-shadow: inset 0 0 22px rgba(5, 5, 5, .40);
        background: radial-gradient(ellipse 85% 60% at 50% 28%, rgba(var(--sb-gold), .06), rgba(var(--sb-gold), .40) 100%);
        mix-blend-mode: multiply;
    }

.sb-place.is-lit .sb-bar {
    height: 3px;
    background: rgba(var(--sb-gold), .55);
}

.sb-place.is-lit .sb-name {
    color: var(--white);
}

.sb-door:focus-visible {
    outline: none;
}

    .sb-door:focus-visible .sb-win {
        outline: 1px solid var(--gold);
        outline-offset: 4px;
    }

/* THE WAY IN. Under the street, starting at the bay of the window under the hand — or, for a window near the right
   margin, at the nearest bay left of it from which the line still ends inside the margin (the script measures it): its
   one sentence in the display face's italic and the way in closing its line, on one line at 1440. Its room is kept at
   rest, so nothing moves when it appears; where the street is narrow enough for a sentence to take two lines, two
   lines are kept. */
.sb-walk {
    position: relative;
    padding: calc(var(--sb-name-gap) + 72px) 0 var(--s6);
}

.sb-caption {
    width: fit-content;
    max-width: calc(100% - var(--sb-bay, 0) * (100% + var(--sb-gap)) / 8);
    min-height: 24px;
    margin: 0 0 0 calc(var(--sb-bay, 0) * (100% + var(--sb-gap)) / 8);
    color: rgba(245, 245, 245, .84);
    font-family: var(--font-display);
    font-size: 1.0625rem;
    font-style: italic;
    font-weight: 400;
    line-height: 24px;
    text-wrap: pretty;
    visibility: hidden;
}

.street-band.has-caption .sb-caption {
    visibility: visible;
}

@media (max-width: 1200px) {
    .sb-caption {
        min-height: 54px;
    }
}

.sb-enter {
    display: inline-flex;
    align-items: center;
    margin-left: var(--s2);
    padding-bottom: 6px;
    border-bottom: 1px solid var(--gold);
    color: var(--white);
    font-family: var(--font-sans);
    font-size: 11px;
    font-style: normal;
    font-weight: 400;
    letter-spacing: .2em;
    line-height: 1;
    text-decoration: none;
    text-transform: uppercase;
    white-space: nowrap;
    vertical-align: 3px;
}

    .sb-enter b {
        font-weight: inherit;
    }

    .sb-enter span {
        margin-left: 10px;
        color: var(--gold);
        font-size: 14px;
        letter-spacing: 0;
        line-height: 1;
    }

/* THE PHONE. The home phone's street (s-windows-air-phone.html) at the band's scale: the heading on two lines, two
   windows a floor on four floors — as wide as the home phone's, 56 px tall where the home phone's are 66 — each floor
   on its own full-bleed ledge, the names under it at 15 px (the home phone's 18), the home phone's crops (--sb-at-p,
   --sb-size-p, --sb-exp-p), no sentence: a tap is the way in. The pavement under the last floor leaves room for the
   invitation docked at the foot, so it falls on the street's night and never on a word.

   A tablet held upright takes the same street with four windows a floor on two floors: eight bays in one row of
   seven to nine hundred pixels are narrower than the longest one-word names („Restauracja”, „Unternehmen”), and
   four a floor gives each window the home phone's own width. */
@media (max-width: 1080px) {
    .street-band {
        --sb-gap: 14px;
        --sb-name-gap: 10px;
    }

        .street-band .sb-grid {
            display: block;
        }

    .sb-wall {
        border-bottom: 0;
        background: linear-gradient(180deg, var(--surface-editorial, #070707) 0, var(--surface-editorial, #070707) 14%, #0a0a0a 46%);
    }

        .sb-wall::before,
        .sb-wall::after {
            display: none;
        }

    /* Every ledge runs from edge to edge of the screen: the street reaches out of the measure by the measure's own
       margin and takes it back as padding, so the windows keep the page's left and right edges. */
    .sb-street {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        grid-auto-rows: 124px;
        align-items: start;
        margin-inline: calc((100% - 100vw) / 2);
        padding-inline: calc((100vw - 100%) / 2);
        background: repeating-linear-gradient(180deg, transparent 0 56px, rgba(245, 245, 245, .30) 56px 57px, transparent 57px 60px, rgba(245, 245, 245, .08) 60px 61px, transparent 61px 124px);
    }

    .sb-win {
        height: 56px;
    }

    .sb-frame {
        padding: 5px;
    }

    /* A round arch on a window this low would be a dome: the home phone draws Muzeum and Dom as segmental arches,
       and so does the band. */
    .sb-segment,
    .sb-arch {
        --rise: 10;
    }

        .sb-segment .sb-frame,
        .sb-arch .sb-frame {
            padding: 6px;
            border: 0;
            border-radius: 0;
        }

        .sb-arch .sb-glass {
            border-radius: 0;
        }

    .sb-place.is-lit .sb-arch .sb-frame {
        box-shadow: none;
    }

    .sb-place.is-lit .sb-arch {
        filter: drop-shadow(0 0 6px rgba(var(--sb-gold), .5)) drop-shadow(0 0 22px rgba(var(--sb-gold), .2));
    }

    .sb-glass {
        background-position: var(--sb-at-p, var(--sb-at, 50% 50%));
        background-size: var(--sb-size-p, var(--sb-size, cover));
        filter: saturate(var(--sb-sat, .6)) sepia(.2) brightness(var(--sb-exp-p, var(--sb-exp, .58))) contrast(var(--sb-con, 1.08));
    }

        .sb-glass::after {
            box-shadow: inset 0 0 14px 3px rgba(5, 5, 5, .75);
        }

    .sb-lamp {
        background: radial-gradient(ellipse 50% 40% at 52% 26%, rgba(var(--sb-gold), .5), rgba(var(--sb-gold), 0) 70%);
    }

    .sb-bar {
        display: none;
    }

    .sb-hatch {
        --hatch-r: 18px;
    }

    .sb-pull {
        right: 14px;
        top: 22px;
        bottom: auto;
        height: 16px;
    }

    .sb-name {
        font-size: .9375rem;
        line-height: 20px;
    }

    .sb-here {
        margin-top: 6px;
        font-size: 8.5px;
        letter-spacing: .2em;
        line-height: 10px;
    }

    .sb-glow {
        height: 20px;
    }

    .sb-pool {
        left: -16%;
        right: -16%;
        height: 64px;
        filter: blur(9px);
    }

    .sb-reflect {
        display: none;
    }

    .sb-place::before {
        left: -22%;
        right: -22%;
        top: -40%;
        bottom: -165%;
    }

    .sb-place::after {
        left: -10%;
        right: -10%;
    }

    .sb-place.is-lit .sb-frame {
        box-shadow: 0 0 0 1px rgba(var(--sb-gold), .22), 0 0 10px rgba(var(--sb-gold), .42), 0 0 34px rgba(var(--sb-gold), .18);
    }

        .sb-place.is-lit .sb-glass::after {
            box-shadow: inset 0 0 14px rgba(5, 5, 5, .40);
        }

    .sb-walk {
        padding: 0 0 128px;
        background: linear-gradient(180deg, #0a0a0a, var(--surface-editorial, #070707) 70%);
    }

    .sb-caption {
        display: none;
    }
}

@media (max-width: 760px) {
    .sb-title {
        font-size: 1.5rem;
        line-height: 1.12;
    }

    .sb-street {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (prefers-reduced-motion: reduce) {
    .sb-win,
    .sb-frame,
    .sb-glass,
    .sb-lamp,
    .sb-arc,
    .sb-name,
    .sb-glow,
    .sb-pool,
    .sb-reflect,
    .sb-place::before,
    .sb-place::after {
        transition: none;
    }
}

@media print {
    .street-band {
        display: none !important;
    }
}
/* #endregion */
