/* ============================================
   VISITORS FLEA MARKET — homepage
   Everything here is the plain, always-readable layout. The scroll scenes in
   home-scenes.css only take over when <html> carries the `motion` class.
   Voice: roadside signage. Condensed caps, sign yellow, market red, one neon
   script, and sections that alternate between night ink and price-tag paper.
   ============================================ */

.home {
    --section: clamp(72px, 10vw, 132px);
    --neon-blue: #5CC8FF;
    --star: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1.8l3 6.6 7.2.8-5.4 4.9 1.5 7.1L12 17.6l-6.3 3.6 1.5-7.1L1.8 9.2 9 8.4z'/%3E%3C/svg%3E");
    background: var(--ink);
}

.home main { overflow-x: clip; }

/* ---- Shared pieces ---- */
.sign-tag {
    display: inline-block;
    padding: 6px 12px 5px;
    border-radius: 6px;
    background: var(--accent);
    color: var(--paper-ink);
    font-family: var(--font-display);
    font-size: 0.98rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    box-shadow: 3px 3px 0 rgba(0,0,0,0.45);
}

.sign-tag--ink {
    background: var(--paper-ink);
    color: var(--accent);
    box-shadow: 3px 3px 0 var(--primary);
}

.section-head { max-width: 760px; margin-bottom: clamp(28px, 5vw, 52px); color: var(--paper-ink); }
.section-head--light { color: var(--white); }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }

.section-head h2,
.aisle__head h2,
.late__head h2,
.route__head h2 {
    margin-top: 16px;
    font-size: clamp(2.5rem, 9.4vw, 4.8rem);
    line-height: 0.93;
    text-transform: uppercase;
}

.section-head p { margin-top: 16px; font-size: 1.05rem; color: inherit; opacity: 0.82; }

.btn-ink {
    border: 2px solid var(--paper-ink);
    color: var(--paper-ink);
    background: transparent;
}

.btn-ink:hover {
    background: var(--paper-ink);
    color: var(--accent);
    transform: translate(-2px, -2px);
}

.stars {
    display: inline-block;
    width: 5.2em;
    height: 1em;
    flex: none;
    background: linear-gradient(90deg, var(--accent) 84%, rgba(255,255,255,0.28) 84%);
    -webkit-mask: var(--star) left center / 1.04em 1em repeat-x;
    mask: var(--star) left center / 1.04em 1em repeat-x;
}

/* ---- Parking notice ---- */
.park-notice {
    display: block;
    background: var(--accent);
    color: var(--paper-ink);
    font-size: 0.88rem;
    line-height: 1.3;
}

.park-notice-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding-top: 9px;
    padding-bottom: 9px;
    min-height: 56px;
}

.park-notice .icon { --ia: #fff; width: 26px; height: 26px; }
.park-notice strong { font-weight: 800; }
.park-notice:hover span { text-decoration: underline; text-underline-offset: 3px; }

/* ---- Hero ---- */
.tour { position: relative; background: var(--ink); }
.tour__stage { position: relative; }

/* The photo lives in a band above the copy on phones and becomes the whole
   hero from tablet width up. */
.hero__band { height: clamp(170px, 30vh, 320px); }

.tour__photo {
    position: relative;
    height: 100%;
    overflow: hidden;
    background: #1b2430;
}

.tour__photo picture { display: block; height: 100%; }

.tour__img {
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: 50% 62%;
}

.hero__copy {
    position: relative;
    padding-top: 18px;
    padding-bottom: 30px;
}

.hero__eyebrow {
    font-family: var(--font-display);
    font-size: clamp(0.92rem, 3.9vw, 1.1rem);
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: var(--accent);
    white-space: nowrap;
}

.hero__title {
    margin-top: 8px;
    font-size: clamp(2.7rem, 14.4vw, 5.9rem);
    line-height: 0.86;
    text-transform: uppercase;
    color: var(--white);
}

.hero__line { display: block; }

.hero__neon {
    display: block;
    width: max-content;
    max-width: 100%;
    margin: 0.05em 0 0 -0.02em;
    padding: 0.06em 0.12em 0.1em 0.02em;
    font-family: var(--font-script);
    font-size: 1.02em;
    font-weight: 400;
    line-height: 1.02;
    letter-spacing: 0;
    text-transform: none;
    white-space: nowrap;
    color: #fff;
    text-shadow: 0 0 5px #fff, 0 0 12px var(--neon), 0 0 28px var(--neon), 0 0 58px rgba(224, 38, 43, 0.9);
    transform: rotate(-3.5deg);
    transform-origin: 0 100%;
}

.hero__sub {
    margin-top: 16px;
    max-width: 34ch;
    font-size: 1.02rem;
    line-height: 1.45;
    color: var(--gray-300);
}

.hero__status {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 16px;
}

.open-sign { width: 92px; height: 39px; flex: none; overflow: visible; }

/* Glow is an SVG blur of the tubes themselves (CSS drop-shadow on shapes
   inside an SVG does not paint in Safari). */
.open-sign__glow { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.open-sign__glow rect { stroke: var(--neon-blue); stroke-width: 5; opacity: 0.85; }
.open-sign__glow path { stroke: var(--neon); stroke-width: 7; }

.open-sign__frame {
    fill: rgba(92, 200, 255, 0.07);
    stroke: var(--neon-blue);
    stroke-width: 2.6;
}

.open-sign__word {
    fill: none;
    stroke: #fff;
    stroke-width: 3.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* The sign is dark when the market is. */
[data-open-state="soon"] .open-sign__glow,
[data-open-state="closed"] .open-sign__glow { display: none; }
[data-open-state="soon"] .open-sign__frame,
[data-open-state="closed"] .open-sign__frame { stroke: #39414d; fill: none; }
[data-open-state="soon"] .open-sign__word,
[data-open-state="closed"] .open-sign__word { stroke: #4a525e; }

.hero__open { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.hero__open strong { font-size: 1.02rem; font-weight: 700; color: var(--white); white-space: nowrap; }
.hero__open span { font-size: 0.86rem; color: var(--gray-500); white-space: nowrap; }
[data-open-state="open"] .hero__open strong { color: var(--open); }
[data-open-state="soon"] .hero__open strong { color: var(--accent); }

.hero__actions {
    display: grid;
    grid-template-columns: 1.55fr 1fr;
    gap: 12px;
    margin-top: 18px;
    max-width: 460px;
}

.hero__actions .btn { padding-left: 14px; padding-right: 14px; }

.hero__rating {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
    font-size: 0.9rem;
    color: var(--gray-300);
    white-space: nowrap;
}

.hero__rating strong { color: var(--white); }

.tour__cue,
.tour__step,
.aisle__world,
.aisle__props,
.aisle__hud,
.aisle__skip { display: none; }

/* ---- What's inside (plain layout: a grid of aisle cards) ---- */
.aisle {
    padding: var(--section) 0;
    background: var(--ink-2);
    color: var(--white);
}

.aisle__head { max-width: 760px; margin-bottom: clamp(28px, 5vw, 48px); }
.aisle__head p { margin-top: 16px; font-size: 1.05rem; color: var(--gray-400); }

.aisle__list {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 16px;
}

.booth-cap {
    height: 100%;
    padding: 24px;
    border-radius: 22px;
    border: 1px solid rgba(255,255,255,0.1);
    background: var(--ink-3);
}

.booth__no {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
}

.booth__no .icon { width: 34px; height: 34px; color: var(--white); }

.booth-cap h3 {
    margin-top: 14px;
    font-family: var(--font-display);
    font-size: 1.9rem;
    font-weight: 900;
    line-height: 1;
    letter-spacing: 0.005em;
    text-transform: uppercase;
}

.booth-cap > p:not(.booth__no) { margin-top: 10px; font-size: 0.98rem; color: var(--gray-400); }

.booth__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; list-style: none; }

.booth__tags li {
    padding: 4px 10px;
    border-radius: 100px;
    border: 1px solid rgba(255,255,255,0.16);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--gray-300);
}

.aisle__end { max-width: 1200px; margin: 28px auto 0; padding: 0 24px; }

.end-card {
    padding: clamp(26px, 5vw, 44px);
    border-radius: 26px;
    background: var(--accent);
    color: var(--paper-ink);
    box-shadow: 6px 6px 0 var(--primary);
}

.end-card__kicker {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.end-card h3 {
    margin-top: 6px;
    font-family: var(--font-display);
    font-size: clamp(2.6rem, 11vw, 4.4rem);
    font-weight: 900;
    line-height: 0.9;
    text-transform: uppercase;
}

.end-card__facts { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 18px 0 22px; list-style: none; font-weight: 600; }
.end-card__facts li { display: flex; align-items: center; gap: 8px; }
.end-card__facts .icon { --ia: #fff; width: 26px; height: 26px; }
.end-card .btn-primary { box-shadow: 4px 4px 0 var(--paper-ink); }
.end-card .btn-primary:hover { box-shadow: 6px 6px 0 var(--paper-ink); }

/* ---- Numbers ---- */
.numbers { background: var(--primary); color: var(--white); }

.numbers__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px 16px;
    padding-top: clamp(44px, 7vw, 72px);
    padding-bottom: clamp(44px, 7vw, 72px);
}

.number { display: flex; flex-direction: column; gap: 6px; }

.number strong {
    display: flex;
    font-family: var(--font-display);
    font-size: clamp(3.6rem, 17vw, 7rem);
    font-weight: 900;
    line-height: 0.86;
    letter-spacing: 0.005em;
}

.number > span { font-size: 0.95rem; font-weight: 600; color: rgba(255,255,255,0.9); }

.reel { display: inline-block; height: 0.86em; overflow: hidden; }
.reel__strip { display: block; width: 1ch; line-height: 0.86; word-break: break-all; text-align: center; transform: translateY(calc(var(--d) * -10%)); }
.reel__mark { display: inline-block; }

.marquee { overflow: hidden; padding: 20px 0 24px; background: var(--ink); }

.marquee__row {
    display: flex;
    align-items: center;
    gap: 22px;
    width: max-content;
    font-family: var(--font-display);
    font-size: clamp(2.6rem, 11vw, 5.2rem);
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;
    color: var(--white);
}

.marquee__row--back { margin-top: 8px; color: transparent; -webkit-text-stroke: 1.5px rgba(255,255,255,0.5); }

.marquee__row i {
    width: 0.5em;
    height: 0.5em;
    flex: none;
    background: var(--accent);
    -webkit-mask: var(--star) center / contain no-repeat;
    mask: var(--star) center / contain no-repeat;
}

/* ---- Why come here ---- */
.why { padding: var(--section) 0; background: var(--paper); color: var(--paper-ink); }

.why__head { max-width: 900px; }

.why__head h2 {
    margin-top: 18px;
    font-size: clamp(2.6rem, 10.4vw, 5.4rem);
    line-height: 0.92;
    text-transform: uppercase;
    color: var(--paper-ink);
}

.why__head h2 em, .why__head h2 .word--em { font-style: normal; color: var(--primary); }
.why__head p { margin-top: 20px; max-width: 46ch; font-size: 1.1rem; color: rgba(21,24,30,0.8); }

.why__stack { display: grid; gap: 16px; margin-top: clamp(32px, 6vw, 60px); }

.why-card {
    --ia: var(--accent);
    position: relative;
    min-height: 300px;
    padding: clamp(80px, 13vw, 112px) clamp(26px, 5vw, 44px) clamp(26px, 5vw, 44px);
    border-radius: 28px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: var(--primary);
    color: var(--white);
}

.why-card--blue { background: var(--blue); }
.why-card--yellow { --ia: #fff; background: var(--accent); color: var(--paper-ink); }
.why-card--ink { background: var(--paper-ink); }

.why-card__icon { position: absolute; top: clamp(22px, 4vw, 36px); right: clamp(22px, 4vw, 36px); width: clamp(84px, 22vw, 132px); height: clamp(84px, 22vw, 132px); }

.why-card__no {
    position: absolute;
    top: clamp(22px, 4vw, 36px);
    left: clamp(26px, 5vw, 44px);
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    opacity: 0.75;
}

.why-card h3 {
    max-width: 12ch;
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 10.5vw, 4.2rem);
    font-weight: 900;
    line-height: 0.9;
    letter-spacing: 0.005em;
    text-transform: uppercase;
}

.why-card > p:not(.why-card__no) { margin-top: 14px; max-width: 44ch; font-size: 1.04rem; line-height: 1.5; opacity: 0.94; }

.why-card__perks { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; list-style: none; }

.why-card__perks li {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 6px 12px 6px 8px;
    border-radius: 100px;
    background: rgba(255,255,255,0.1);
    font-size: 0.86rem;
    font-weight: 600;
}

.why-card__perks .icon { width: 22px; height: 22px; }

.why__note {
    max-width: 760px;
    margin-top: clamp(28px, 5vw, 48px);
    padding-left: 18px;
    border-left: 4px solid var(--primary);
    font-size: 1.05rem;
    color: rgba(21,24,30,0.82);
}

/* ---- Hours ---- */
.late { position: relative; background: #070B14; color: var(--white); }

.late__stage {
    position: relative;
    overflow: hidden;
    padding: var(--section) 0;
    background: linear-gradient(180deg, #0B1630 0%, #0A0F1E 55%, #070B14 100%);
}

.late__sky { position: absolute; inset: 0; pointer-events: none; }
.late__dusk, .late__night, .late__sun { display: none; }

.late__stars {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(1.5px 1.5px at 12% 18%, #fff, transparent),
        radial-gradient(1.5px 1.5px at 78% 12%, #fff, transparent),
        radial-gradient(1px 1px at 34% 30%, #fff, transparent),
        radial-gradient(1.5px 1.5px at 62% 24%, #fff, transparent),
        radial-gradient(1px 1px at 90% 34%, #fff, transparent),
        radial-gradient(1px 1px at 22% 8%, #fff, transparent),
        radial-gradient(1px 1px at 48% 14%, #fff, transparent);
    opacity: 0.8;
}

.late__moon { position: absolute; top: 34px; right: 7%; width: 64px; height: 64px; --ia: #FFF3C4; color: #FFF3C4; opacity: 0.9; }

.late__photo {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 46%;
    max-width: none;
    object-fit: cover;
    object-position: 50% 45%;
    opacity: 0.5;
    -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 46%);
    mask-image: linear-gradient(180deg, transparent 0, #000 46%);
}

.late__inner { position: relative; }
.late__head { max-width: 760px; }
.late__head h2 span { display: block; color: var(--accent); }
.late__head p { margin-top: 16px; max-width: 46ch; font-size: 1.05rem; color: var(--gray-300); }
.late__clock { display: none; }

.late__chart {
    position: relative;
    max-width: 720px;
    margin-top: clamp(26px, 5vw, 40px);
    padding: 20px;
    border-radius: 22px;
    border: 1px solid rgba(255,255,255,0.14);
    background: rgba(7, 11, 20, 0.72);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.late__group + .late__group { margin-top: 18px; }

.late__group h3 {
    display: flex;
    align-items: center;
    gap: 9px;
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.late__group h3 .icon { width: 26px; height: 26px; }
.late__group ul { list-style: none; margin-top: 8px; display: grid; gap: 8px; }

.late__group li {
    position: relative;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 12px;
    font-size: 0.95rem;
    color: var(--gray-300);
}

.late__group li strong { font-weight: 700; color: var(--white); white-space: nowrap; }

/* Each row carries its own bar on a 10 AM to 2 AM scale. */
.late__group li::before,
.late__group li::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    height: 6px;
    border-radius: 6px;
}

.late__group li::before { width: 100%; background: rgba(255,255,255,0.1); }

.late__group li::after {
    left: calc(var(--from) * 100%);
    width: calc((var(--to) - var(--from)) * 100%);
    background: var(--accent);
}

.late__group li.is-today { color: var(--white); }
.late__group li.is-today span::after { content: 'Today'; margin-left: 8px; padding: 2px 7px; border-radius: 100px; background: var(--open); color: #06281b; font-size: 0.68rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; }

.late__scale { display: flex; justify-content: space-between; margin-top: 12px; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.04em; color: var(--gray-600); }

.late__foot { max-width: 720px; margin-top: 22px; font-size: 0.98rem; color: var(--gray-300); }
.late__foot a { color: var(--accent); font-weight: 700; white-space: nowrap; }

/* ---- Wider screens ---- */
@media (min-width: 700px) {
    .numbers__grid { grid-template-columns: repeat(4, 1fr); }
    .number strong { font-size: clamp(3.4rem, 8vw, 7rem); }
    .why__stack { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
    /* The photo becomes the whole hero and the copy sits on it. */
    .tour__stage { display: flex; align-items: center; min-height: min(86vh, 860px); }
    .tour__hero { width: 100%; }
    .hero__band { height: 0; }
    .tour__photo { position: absolute; inset: 0; height: auto; }
    .tour__img { object-position: 51% 57%; }
    .tour__photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11,14,19,0.94) 0%, rgba(11,14,19,0.78) 34%, rgba(11,14,19,0.18) 68%, rgba(11,14,19,0.3) 100%); }
    .hero__copy { z-index: 1; padding-top: 56px; padding-bottom: 56px; }
    .hero__title { font-size: clamp(4.6rem, 8.2vw, 7.4rem); }
    .hero__sub { font-size: 1.15rem; }
}

@media (max-width: 380px) {
    .hero__title { font-size: 13.6vw; }
    .hero__sub { font-size: 0.95rem; }
    .hero__actions .btn { font-size: 1.2rem; }
    .open-sign { width: 80px; height: 34px; }
}
