/* Storybook home page: illustrated old-Austin night, hop bines, string lights.
   Colors are the Hopfields palette only. All motion stops for prefers-reduced-motion. */

.storybook-hero {
    position: relative;
    height: 92vh;
    min-height: 600px;
    max-height: 1000px;
    overflow: hidden;
    background: #1b1430;
    z-index: 10;
}
.storybook-hero .world {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
}
.storybook-hero .layer { will-change: transform; }

/* --- collage pieces (real period art, v3: night over Congress Avenue, 1910) --- */
.collage { background: #0b1222; }
.collage .world { z-index: 0; }
.collage .sb-hops { position: absolute; z-index: 1; pointer-events: none; filter: drop-shadow(0 22px 26px rgba(4, 6, 14, .6)) brightness(.86); }
.collage .sb-hops-l { top: -22%; left: -11%; width: min(28vw, 420px); transform-origin: 18% 4%; animation: sb-hang-l 12s ease-in-out infinite; }
.collage .sb-hops-r { top: -14%; right: -7%; width: min(28vw, 420px); transform-origin: 82% 4%; animation: sb-hang-r 14s ease-in-out infinite; }

/* the moon, and Pierre riding across it (wheels turn: rider and spokes are separate layers) */
.collage .sb-moonset {
    position: absolute; z-index: 1;
    right: 13%; top: 16%;
    width: clamp(190px, 18vw, 330px); aspect-ratio: 1;
}
.collage .sb-moon {
    width: 100%; height: 100%; display: block; border-radius: 50%;
    box-shadow: 0 0 50px 10px rgba(255, 236, 190, .22), 0 0 140px 50px rgba(220, 200, 160, .14), 0 0 320px 120px rgba(150, 160, 200, .10);
}
/* Pierre is the main figure: bigger than the moon, riding across it (as Underberg's
   cyclist leads their scene), drawn solid like a printed sticker of the logo */
.collage .sb-pierre {
    position: absolute; left: 29%; top: 8%; height: 84%; aspect-ratio: 826 / 1668;   /* fits inside the disc */
    filter: drop-shadow(0 0 1.5px rgba(246, 236, 214, .9)) drop-shadow(0 10px 18px rgba(3, 5, 12, .5));
    animation: sb-pierre-bob 1.1s ease-in-out infinite;
}
.collage .sb-rider, .collage .sb-fill { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
/* wheel boxes: geometry from tools/storybook/pierre.py (pierre-geom.json); the spokes are drawn
   on a circle, so the box squashes it to the rim's ellipse while the image inside turns */
.collage .sb-wheel { position: absolute; display: block; }
.collage .sb-wheel img, .collage .sb-wheel svg { width: 100%; height: 100%; display: block; animation: sb-spin 3.4s linear infinite; }
.collage .sb-wheel-b { left: 4.116%; top: 43.405%; width: 110.412%; height: 54.676%; transform: scaleX(.6535); }
.collage .sb-wheel-s { left: -1.090%; top: 74.460%; width: 32.930%; height: 16.307%; transform: scaleX(.5294); }
.collage .sb-wheel-s img { animation-duration: 1.06s; }   /* the small wheel turns ~3.2x faster */
@keyframes sb-spin { to { transform: rotate(360deg); } }
@keyframes sb-pierre-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-1.2%); } }

/* --- day: the same street by daylight, Pierre against a hazy sun --- */
[data-sky="night"] .sb-day-only, [data-sky="day"] .sb-night-only,
html:not([data-sky]) .sb-day-only { display: none !important; }
/* day is a drawing too: cream paper with a pale watercolour sky */
[data-sky="day"] .collage { background: linear-gradient(to bottom, #b9cbd2 0%, #d3dcd8 40%, #e7e3d4 72%, #efe7d4 100%); }
[data-sky="day"] .collage .world { opacity: 0; }
[data-sky="day"] .collage .sb-moon { display: none; }
.collage .sb-sun {
    position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 50%;
    box-shadow: 0 0 30px 8px rgba(255, 248, 228, .65), 0 0 110px 44px rgba(255, 250, 236, .5);
}
.collage .sb-sunhalo { position: absolute; left: -42%; top: -42%; width: 184%; height: 184%; overflow: visible; pointer-events: none; }
.collage .sb-sunhalo .rays { transform-origin: 0 0; animation: sb-spin 240s linear infinite; }
.collage .sb-swallows { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.collage .sw { position: absolute; display: block; width: 18px; fill: #4a3a2c; opacity: .55; animation: sb-glide 46s linear infinite; }
.collage .sw svg { width: 100%; height: auto; display: block; animation: sb-flap 1.6s ease-in-out infinite; transform-origin: 50% 50%; }
.collage .sw1 { top: 30%; animation-delay: -6s; }
.collage .sw2 { top: 36%; width: 13px; animation-delay: -9s; }
@keyframes sb-glide { 0% { left: -4%; transform: translateY(0); } 50% { transform: translateY(-26px); } 100% { left: 104%; transform: translateY(6px); } }
@keyframes sb-flap { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(.55); } }
[data-sky="day"] .collage .sb-pierre { filter: none; }
[data-sky="day"] .collage .sb-pierre { filter: drop-shadow(0 12px 18px rgba(40, 50, 60, .3)); }
[data-sky="day"] .collage .sb-city::after { background: linear-gradient(to bottom, rgba(233, 225, 207, 0), rgba(233, 225, 207, .7)); }
[data-sky="day"] .collage .sb-hops { filter: drop-shadow(0 18px 22px rgba(40, 50, 40, .25)); }
[data-sky="day"] .collage .hero-card::before {
    background: radial-gradient(closest-side, rgba(244, 238, 226, .82), rgba(244, 238, 226, .5) 55%, rgba(244, 238, 226, 0));
}
[data-sky="day"] .collage .hero-card h1 { color: #18574B; text-shadow: 0 1px 14px rgba(255, 250, 240, .7); }
[data-sky="day"] .collage .hero-card h2 { color: #3a2a1e; text-shadow: 0 1px 16px rgba(255, 250, 240, .7); }
[data-sky="day"] .collage .hero-card p { color: #18574B; }
[data-sky="day"] .collage .hero-rule { color: #18574B; }
[data-sky="day"] .collage .hero-rule span { background: #18574B; }
[data-sky="day"] .collage .hero-scroll, [data-sky="day"] .collage /* nav links stay legible where the hop bines hang behind them */
body:has(.collage) nav .nav-wide a { text-shadow: 0 1px 10px rgba(6, 9, 18, .95), 0 0 3px rgba(6, 9, 18, .8); }
[data-sky="day"] body:has(.collage) nav .nav-wide a { text-shadow: 0 1px 10px rgba(244, 238, 226, .95), 0 0 3px rgba(244, 238, 226, .9); }

.sb-skytoggle { color: #18574B; border-color: rgba(24, 87, 75, .5); }
/* the nav sits over the hero: dark links on the day sky */
[data-sky="day"] body:has(.collage) nav .nav-wide a,
[data-sky="day"] body:has(.collage) nav > div > a.text-white,
[data-sky="day"] body:has(.collage) nav .nav-narrow { color: #18574B !important; }

.sb-skytoggle {
    position: absolute; left: calc(50% + 4.5rem); bottom: 1.1rem; z-index: 5;
    width: 2.4rem; height: 2.4rem; border-radius: 50%;
    border: 1px solid rgba(236, 224, 212, .5); color: #ECE0D4; background: transparent;
    display: flex; align-items: center; justify-content: center; cursor: pointer; opacity: .8;
    transition: opacity .3s, transform .3s;
}
.sb-skytoggle:hover { opacity: 1; transform: rotate(-12deg); }

/* the 1910 panorama across the foot of the hero; the Capitol sits at 52.3% of its width, the tower at 10.7% */
.collage .sb-city { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; height: clamp(200px, 21vw, 48vh); pointer-events: none; }
.collage .sb-skyline {
    position: absolute; bottom: 0; left: 50%; height: 100%; width: auto; max-width: none;
    transform: translateX(-45%);           /* desktop: moonlight tower at left, Capitol right of centre */
}
@media (max-width: 767px) { .collage .sb-skyline { transform: translateX(-52.3%); } }   /* phones: Capitol centred */
.collage .sb-city::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 28%;
    background: linear-gradient(to bottom, rgba(6, 9, 18, 0), rgba(6, 9, 18, .85));
}

.collage .hero-copy { z-index: 4; justify-content: center; align-items: flex-start; padding-left: 5%; padding-bottom: clamp(140px, 15vw, 32vh); }
.collage .hero-card { max-width: 46rem; }
.collage .hero-card h2 { white-space: nowrap; font-size: 4rem; }
@media (max-width: 1279px) { .collage .hero-card h2 { font-size: 3.4rem; } }
@media (max-width: 767px) { .collage .hero-card h2 { white-space: normal; font-size: 2.15rem; } }
@keyframes sb-hang-l { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(-1deg); } }
@keyframes sb-hang-r { 0%, 100% { transform: scaleX(-1) rotate(-6deg); } 50% { transform: scaleX(-1) rotate(-3deg); } }
@media (max-width: 1100px) {
    .collage .hero-copy { padding-left: 4%; }
    .collage .sb-moonset { right: 6%; top: 16%; }
}
@media (max-width: 767px) {
    .collage .hero-copy { align-items: center; padding-left: 0; justify-content: flex-start; padding-top: 6.5rem; padding-bottom: 0; }
    .collage .sb-hops-l { width: 44vw; top: -9%; left: -18%; }
    .collage .sb-hops-r { width: 40vw; top: -10%; right: -17%; }
    .collage .sb-moonset { width: 140px; right: 50%; margin-right: -70px; top: auto; bottom: 172px; }
    .collage .sb-city { height: 180px; }
    .collage .hero-scroll { display: none; }
}

/* --- copy --- */
.hero-copy { z-index: 2; padding-top: 4.5rem; }
.hero-card {
    position: relative;
    padding: 2rem 2.5rem 2.2rem;
    max-width: 46rem;
}
.hero-card::before {
    /* soft night "pool" behind the words so they read over the scene */
    content: "";
    position: absolute;
    inset: -10% -14%;
    background: radial-gradient(closest-side, rgba(18, 13, 33, .78), rgba(18, 13, 33, .45) 55%, rgba(18, 13, 33, 0));
    z-index: -1;
    pointer-events: none;
}
.hero-card h1 { text-shadow: 0 2px 18px rgba(0, 0, 0, .45); }
.hero-card h2 { text-shadow: 0 2px 22px rgba(0, 0, 0, .55); line-height: 1.05; }
.hero-rule {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .75rem;
    color: #96BF86;
}
.hero-rule span { display: block; width: 64px; height: 1px; background: #96BF86; opacity: .8; }
.hero-rule i { font-style: normal; font-size: .9rem; }
.hero-btn {
    display: inline-block;
    padding: .85rem 1.6rem;
    border: 1px solid #ECE0D4;
    color: #ECE0D4;
    letter-spacing: .18em;
    font-size: .85rem;
    transition: background-color .3s, color .3s, border-color .3s, transform .3s;
    backdrop-filter: blur(2px);
}
.hero-btn:hover { background: #ECE0D4; color: #18574B; transform: translateY(-2px); }
.hero-btn-solid { background: #18574B; border-color: #96BF86; color: #fff; }
.hero-btn-solid:hover { background: #96BF86; border-color: #96BF86; color: #18574B; }
.hero-pierre { filter: drop-shadow(0 0 14px rgba(236, 224, 212, .35)); }
.hero-scroll {
    position: absolute;
    left: 50%;
    bottom: 1.4rem;
    transform: translateX(-50%);
    z-index: 3;
    color: #ECE0D4;
    font-size: .75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .35rem;
    opacity: .85;
}
.hero-scroll i { animation: sb-nudge 2.2s ease-in-out infinite; }

/* --- motion --- */
.storybook-hero .star { animation: sb-twinkle var(--t, 4s) ease-in-out var(--d, 0s) infinite; }
.storybook-hero .star.big { transform-box: fill-box; transform-origin: center; }
.storybook-hero .bulb { animation: sb-bulb 5s ease-in-out var(--d, 0s) infinite; }
.storybook-hero .bulb-halo { animation: sb-halo 5s ease-in-out var(--d, 0s) infinite; }
.storybook-hero .moonlamp { animation: sb-bulb 3.2s ease-in-out var(--d, 0s) infinite; }
.storybook-hero .moonlamp-halo { animation: sb-halo 3.2s ease-in-out infinite; }
.storybook-hero .win { animation: sb-window 16s steps(1, end) var(--d, 0s) infinite; }
.storybook-hero .glow-soft { animation: sb-soft 6s ease-in-out infinite; }
.storybook-hero .sign-letter { animation: sb-sign 9s steps(1, end) var(--d, 0s) infinite; }
.storybook-hero .fly { animation: sb-fly var(--t, 10s) ease-in-out var(--d, 0s) infinite; opacity: 0; }
.storybook-hero .balloon { animation: sb-float 16s ease-in-out infinite; }
.storybook-hero .balloon-sway { animation: sb-sway 7s ease-in-out infinite; transform-origin: 0 -20px; }
.storybook-hero .flag { animation: sb-flag 1.6s ease-in-out infinite; transform-origin: 0 -155px; }
.storybook-hero .cloud { animation: sb-drift 60s linear infinite alternate; }
.storybook-hero .cloud.c2 { animation-duration: 80s; animation-direction: alternate-reverse; }
.storybook-hero .cloud.c3 { animation-duration: 70s; }
.bine .leaf { animation: sb-leaf 6s ease-in-out var(--d, 0s) infinite; transform-origin: 0 0; }
.bine .cone { animation: sb-cone 5s ease-in-out var(--d, 0s) infinite; transform-origin: 0 0; }
.storybook-hero .bine-l,
.storybook-hero .bine-l2 { animation: sb-bine 11s ease-in-out infinite; transform-origin: 0 900px; }
.storybook-hero .bine-r,
.storybook-hero .bine-r2 { animation: sb-bine 13s ease-in-out infinite reverse; transform-origin: 1600px 900px; }

/* the streetcar rolls along Guadalupe, wire spark and all */
.storybook-hero .trolley-track { animation: sb-trolley 46s linear infinite; }
.storybook-hero .spark { animation: sb-spark 1.3s steps(1, end) infinite; }
.storybook-hero .lamp { animation: sb-bulb 4.4s ease-in-out infinite; }
.storybook-hero .lamp-halo { animation: sb-halo 4.4s ease-in-out infinite; }
@keyframes sb-trolley { from { transform: translateX(-200px); } to { transform: translateX(1800px); } }
@keyframes sb-spark { 0% { opacity: 0; } 8% { opacity: 1; } 12% { opacity: 0; } 61% { opacity: 1; } 63% { opacity: 0; } }
.storybook-hero .shooting { opacity: 0; animation: sb-shoot 13s ease-in 4s infinite; }
@keyframes sb-shoot {
    0% { opacity: 0; transform: translate(-160px, -55px); }
    2% { opacity: 1; }
    7% { opacity: 0; transform: translate(260px, 85px); }
    100% { opacity: 0; transform: translate(260px, 85px); }
}
@keyframes sb-twinkle { 0%, 100% { opacity: .2; } 50% { opacity: 1; } }
@keyframes sb-bulb { 0%, 100% { opacity: .82; } 45% { opacity: 1; } 52% { opacity: .7; } 58% { opacity: 1; } }
@keyframes sb-halo { 0%, 100% { opacity: .55; } 50% { opacity: .95; } }
@keyframes sb-soft { 0%, 100% { opacity: .35; } 50% { opacity: .6; } }
@keyframes sb-window { 0% { opacity: .85; } 72% { opacity: 0; } 86% { opacity: .85; } }
@keyframes sb-sign { 0% { opacity: 1; } 91% { opacity: .25; } 93% { opacity: 1; } 95% { opacity: .4; } 97% { opacity: 1; } }
@keyframes sb-fly {
    0% { opacity: 0; transform: translate(0, 0); }
    20% { opacity: 1; }
    50% { opacity: .35; }
    75% { opacity: 1; }
    100% { opacity: 0; transform: translate(var(--dx), var(--dy)); }
}
@keyframes sb-float {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(-26px, -22px); }
    50% { transform: translate(-48px, 6px); }
    75% { transform: translate(-18px, 18px); }
}
@keyframes sb-sway { 0%, 100% { transform: rotate(-2deg); } 50% { transform: rotate(2deg); } }
@keyframes sb-flag { 0%, 100% { transform: skewY(0deg) scaleX(1); } 50% { transform: skewY(-6deg) scaleX(.94); } }
@keyframes sb-drift { from { transform: translateX(-40px); } to { transform: translateX(60px); } }
@keyframes sb-leaf { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(4deg); } }
@keyframes sb-cone { 0%, 100% { transform: rotate(-7deg); } 50% { transform: rotate(7deg); } }
@keyframes sb-bine { 0%, 100% { transform: rotate(0deg); } 50% { transform: rotate(.9deg); } }
@keyframes sb-nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }

/* --- hop garland dividers --- */
.garland-wrap {
    position: relative;
    z-index: 11;
    height: 92px;
    margin: -46px 0;
    pointer-events: none;
    overflow: visible;
}
.garland-wrap svg { width: 100%; height: 100%; display: block; overflow: visible; }
.garland-wrap .bine-g { transform-origin: 800px 40px; }
.garland-wrap.in-view .cone { animation-duration: 3.5s; }

/* --- cap medallions --- */
.medal-wrap { width: 108px; height: 108px; margin: 0 auto 1.25rem; animation: sb-bob 6s ease-in-out infinite; }
.medal-wrap:nth-of-type(2) { animation-delay: -2s; }
.medal { width: 100%; height: 100%; display: block; filter: drop-shadow(0 8px 14px rgba(24, 87, 75, .28)); transition: transform .5s ease; }
.medal-card:hover .medal { transform: rotate(-12deg) scale(1.06); }
.medal .steam { animation: sb-steam 3s ease-in-out infinite; }
.medal .bubble { animation: sb-bubble 2.6s ease-in infinite; }
.medal .bubble.b2 { animation-delay: .8s; }
.medal .bubble.b3 { animation-delay: 1.6s; }
@keyframes sb-bob { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-8px) rotate(2deg); } }
@keyframes sb-steam { 0%, 100% { opacity: .35; transform: translateY(2px); } 50% { opacity: 1; transform: translateY(-3px); } }
@keyframes sb-bubble { 0% { opacity: 0; transform: translateY(6px); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(-22px); } }

/* --- night band (late night) --- */
.night-band {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #0b1222 0%, #121c31 55%, #16223a 100%);
    color: #ECE0D4;
    z-index: 10;
}
.night-band .lights { position: absolute; left: 0; right: 0; top: 0; height: 120px; width: 100%; }
.night-band .lights .bulb { animation: sb-bulb 5s ease-in-out var(--d, 0s) infinite; }
.night-band .lights .bulb-halo { animation: sb-halo 5s ease-in-out var(--d, 0s) infinite; }
.night-band .moon {
    position: absolute; right: 9%; top: 18%;
    width: 96px; height: 96px; border-radius: 50%;
    filter: drop-shadow(0 0 18px rgba(220, 226, 240, .3));   /* follows the disc; no dark ring */
    animation: sb-bob 9s ease-in-out infinite;
}
.night-band .clock-ribbon {
    display: inline-block;
    border: 1px solid #96BF86;
    padding: .35rem 1rem;
    letter-spacing: .2em;
}

/* --- framed photo prints --- */
.photo-card {
    background: #fff;
    padding: .6rem .6rem .4rem;
    border: 1px solid rgba(24, 87, 75, .25);
    box-shadow: 0 0 0 4px #fff, 0 0 0 5px rgba(24, 87, 75, .35), 0 14px 28px rgba(66, 45, 36, .18);
    transform: rotate(var(--tilt, 0deg));
    transition: transform .5s cubic-bezier(.2, .8, .2, 1), box-shadow .5s;
}
.photo-card.sb-reveal { transform: translateY(26px) rotate(var(--tilt, 0deg)); }
.photo-card.sb-reveal.in-view { transform: rotate(var(--tilt, 0deg)); }
.photo-card:hover, .photo-card.sb-reveal.in-view:hover { transform: rotate(0deg) translateY(-8px) scale(1.03); box-shadow: 0 0 0 4px #fff, 0 0 0 5px #96BF86, 0 22px 40px rgba(66, 45, 36, .25); }
.photo-grid .photo-card:nth-child(2) { transition-delay: .08s; }
.photo-grid .photo-card:nth-child(3) { transition-delay: .16s; }
.photo-grid .photo-card:nth-child(4) { transition-delay: .24s; }

/* night band stars + skyline */
.night-band::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(1.4px 1.4px at 12% 38%, #ECE0D4, transparent),
        radial-gradient(1px 1px at 22% 62%, #ECE0D4, transparent),
        radial-gradient(1.6px 1.6px at 34% 30%, #ECE0D4, transparent),
        radial-gradient(1px 1px at 46% 72%, #ECE0D4, transparent),
        radial-gradient(1.2px 1.2px at 58% 26%, #ECE0D4, transparent),
        radial-gradient(1px 1px at 66% 58%, #ECE0D4, transparent),
        radial-gradient(1.5px 1.5px at 78% 74%, #ECE0D4, transparent),
        radial-gradient(1px 1px at 88% 44%, #ECE0D4, transparent),
        radial-gradient(1.3px 1.3px at 5% 80%, #ECE0D4, transparent),
        radial-gradient(1px 1px at 95% 22%, #ECE0D4, transparent);
    opacity: .8;
    animation: sb-twinkle 5s ease-in-out infinite;
}
.night-band .skyline { position: absolute; bottom: 0; left: 0; width: 100%; height: clamp(160px, 16vw, 300px); object-fit: cover; object-position: 78% 100%; }   /* phones see the Driskill side of the 1910 panorama */
.night-band .moonlamp { animation: sb-bulb 3.2s ease-in-out var(--d, 0s) infinite; }

/* --- reveal on scroll --- */
.sb-reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s ease, transform .9s ease; }
.sb-reveal.in-view { opacity: 1; transform: none; }

@media (max-width: 767px) {
    .storybook-hero { height: 88vh; min-height: 560px; }
    .hero-card { padding: 1.5rem 1rem; }
    .hero-btn { padding: .75rem 1.2rem; font-size: .78rem; }
    .garland-wrap { height: 64px; margin: -32px 0; }
    .night-band .moon { width: 60px; height: 60px; top: 8%; right: 6%; }
    .night-band .skyline { height: 130px; }
}

@media (prefers-reduced-motion: reduce) {
    .storybook-hero *, .garland-wrap *, .medal-wrap, .medal *, .night-band * { animation: none !important; }
    .storybook-hero .fly { opacity: .7; }
    .sb-reveal { opacity: 1; transform: none; transition: none; }
}

/* --- sign buttons, after the Hopfields storefront sign: a dark painted board, a ruled
   frame with cut-in corners, a fleur-de-lis at each end --- */
.collage .hero-btn {
    position: relative; padding: .95rem 3.1rem; border: 12px solid transparent;
    border-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='36' height='36' viewBox='0 0 36 36'><path d='M11.3 4H24.7A12 12 0 0 0 32 11.3V24.7A12 12 0 0 0 24.7 32H11.3A12 12 0 0 0 4 24.7V11.3A12 12 0 0 0 11.3 4Z' fill='none' stroke='%2396BF86' stroke-width='1.6'/></svg>") 12 / 12px stretch;
    background: #0d1714; color: #ECE0D4; letter-spacing: .2em; backdrop-filter: none;
    -webkit-mask: var(--sign-mask); mask: var(--sign-mask);   /* the sign's cut-out shape, no rectangle */
}
.collage .hero-btn-solid { background: #18574B; border-image-source: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='36' height='36' viewBox='0 0 36 36'><path d='M11.3 4H24.7A12 12 0 0 0 32 11.3V24.7A12 12 0 0 0 24.7 32H11.3A12 12 0 0 0 4 24.7V11.3A12 12 0 0 0 11.3 4Z' fill='none' stroke='%23ECE0D4' stroke-width='1.6'/></svg>"); }
.collage .hero-btn::before, .collage .hero-btn::after {
    content: ""; position: absolute; top: 50%; width: 17px; height: 21px; margin-top: -10.5px;
    background: currentColor; opacity: .85;
    -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 120'><path d='M50 4C42 18 36 34 42 54H58C64 34 58 18 50 4Z'/><path d='M58 54C62 40 72 30 84 30C94 30 98 40 92 48C88 54 80 52 80 46C80 42 84 40 86 43C84 36 72 38 68 54Z'/><path d='M42 54C38 40 28 30 16 30C6 30 2 40 8 48C12 54 20 52 20 46C20 42 16 40 14 43C16 36 28 38 32 54Z'/><rect x='26' y='55' width='48' height='9' rx='2'/><path d='M44 65C44 80 48 90 50 99C52 90 56 80 56 65Z'/><path d='M40 65C34 75 24 77 20 71C18 67 22 63 26 67C30 71 36 69 38 65Z'/><path d='M60 65C66 75 76 77 80 71C82 67 78 63 74 67C70 71 64 69 62 65Z'/></svg>") center / contain no-repeat; mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 120'><path d='M50 4C42 18 36 34 42 54H58C64 34 58 18 50 4Z'/><path d='M58 54C62 40 72 30 84 30C94 30 98 40 92 48C88 54 80 52 80 46C80 42 84 40 86 43C84 36 72 38 68 54Z'/><path d='M42 54C38 40 28 30 16 30C6 30 2 40 8 48C12 54 20 52 20 46C20 42 16 40 14 43C16 36 28 38 32 54Z'/><rect x='26' y='55' width='48' height='9' rx='2'/><path d='M44 65C44 80 48 90 50 99C52 90 56 80 56 65Z'/><path d='M40 65C34 75 24 77 20 71C18 67 22 63 26 67C30 71 36 69 38 65Z'/><path d='M60 65C66 75 76 77 80 71C82 67 78 63 74 67C70 71 64 69 62 65Z'/></svg>") center / contain no-repeat;
}
.collage .hero-btn::before { left: .55rem; transform: rotate(-90deg); }
.collage .hero-btn::after { right: .55rem; transform: rotate(90deg); }
.collage .hero-btn:hover { background: #ECE0D4; color: #18574B; transform: translateY(-2px); }
.collage .hero-btn-solid:hover { background: #96BF86; color: #0d1714; }
[data-sky="day"] .collage .hero-btn:not(.hero-btn-solid) { color: #ECE0D4; border-image-source: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='36' height='36' viewBox='0 0 36 36'><path d='M11.3 4H24.7A12 12 0 0 0 32 11.3V24.7A12 12 0 0 0 24.7 32H11.3A12 12 0 0 0 4 24.7V11.3A12 12 0 0 0 11.3 4Z' fill='none' stroke='%2396BF86' stroke-width='1.6'/></svg>"); }
[data-sky="day"] .collage .hero-btn:not(.hero-btn-solid):hover { background: #ECE0D4; color: #18574B; }
.collage .hero-btn { white-space: nowrap; }
@media (max-width: 767px) {
    .collage .hero-btn { padding: .7rem 1.9rem; font-size: .7rem; letter-spacing: .12em; border-width: 10px; }
    .collage .hero-btn::before, .collage .hero-btn::after { width: 11px; height: 14px; margin-top: -7px; }
    .collage .hero-btn::before { left: .3rem; } .collage .hero-btn::after { right: .3rem; }
    .collage .hero-copy .mt-6 { flex-wrap: nowrap; gap: .5rem; }
}

/* --- Kitchen / Bar / Specials as engraved labels (v6): cream card, the sign's ruled
   frame with cut-in corners, a period engraving on top, a fleur-de-lis rule --- */
.label-card {
    position: relative; padding: 2.2rem 1.8rem 2rem;
    background: #f4ecdc;
    border: 14px solid transparent;
    border-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='42' height='42' viewBox='0 0 42 42'><path d='M13 3H29A10 10 0 0 0 39 13V29A10 10 0 0 0 29 39H13A10 10 0 0 0 3 29V13A10 10 0 0 0 13 3Z' fill='none' stroke='%2318574B' stroke-width='1.4'/></svg>") 14 / 14px stretch;
    box-shadow: 0 1px 0 rgba(255, 255, 255, .6) inset, 0 10px 24px rgba(58, 42, 30, .12);
}
.label-card .label-art {
    display: block; height: 128px; width: auto; max-width: 100%; margin: 0 auto 1.1rem; object-fit: contain;
    mix-blend-mode: multiply;
}
.label-card h3 { letter-spacing: .16em; margin-bottom: .55rem; }
.label-rule { display: flex; align-items: center; justify-content: center; gap: .6rem; margin: 0 auto 1rem; color: #18574B; }
.label-rule span { display: block; width: 46px; height: 1px; background: currentColor; opacity: .6; }
.label-rule svg { width: 14px; height: 17px; fill: currentColor; }

/* --- hop border (v7): aged Köhler hops all the way round the sides, swaying --- */
.collage .sb-hopframe { position: absolute; inset: 0; z-index: 3; pointer-events: none; overflow: hidden; }
.collage .hp {
    position: absolute; max-width: none; height: auto;
    transform: scale(var(--f, 1), var(--fy, 1)); rotate: var(--r, 0deg);
    filter: drop-shadow(0 16px 20px rgba(4, 6, 14, .5));
    animation: sb-sway var(--t, 12s) ease-in-out var(--d, 0s) infinite;
}
@keyframes sb-sway { 0%, 100% { rotate: calc(var(--r, 0deg) - 1.6deg); } 50% { rotate: calc(var(--r, 0deg) + 1.6deg); } }
/* mirrored pieces pivot on their own centre line so the flip does not shift them */
/* left side, top to bottom */
.collage .hp-l1 { width: min(29vw, 430px); top: -15%; left: -9%; --r: -6deg; transform-origin: 50% 0; --t: 12s; }
.collage .hp-l2 { width: min(12vw, 180px); top: 30%; left: -2.5%; --r: 10deg; transform-origin: 50% 0; --t: 9s; --d: -3s; }
.collage .hp-l3 { width: min(14vw, 210px); top: 50%; left: -4%; --r: -8deg; transform-origin: 0 20%; --t: 11s; --d: -6s; }
.collage .hp-l4 { width: min(26vw, 380px); bottom: -12%; left: -8%; --r: 8deg; --fy: -1; transform-origin: 50% 50%; --t: 14s; --d: -2s; }
/* right side */
.collage .hp-r1 { width: min(27vw, 400px); top: -13%; right: -8%; --r: 6deg; --f: -1; transform-origin: 50% 0; --t: 14s; }
.collage .hp-r2 { width: min(13vw, 200px); top: 34%; right: -3.5%; --r: 10deg; --f: -1; transform-origin: 50% 0; --t: 10s; --d: -4s; }
.collage .hp-r3 { width: min(11vw, 170px); top: 54%; right: -2%; --r: -10deg; --f: -1; transform-origin: 50% 0; --t: 8.5s; --d: -1s; }
.collage .hp-r4 { width: min(25vw, 370px); bottom: -12%; right: -8%; --r: -8deg; --f: -1; --fy: -1; transform-origin: 50% 50%; --t: 13s; --d: -7s; }
[data-sky="day"] .collage .hp { filter: drop-shadow(0 12px 16px rgba(60, 50, 30, .28)); }
@media (max-width: 767px) {
    .collage .hp-l1 { width: 46vw; top: -7%; left: -17%; }
    .collage .hp-r1 { width: 42vw; top: -8%; right: -17%; }
    .collage .hp-l2, .collage .hp-r2 { display: none; }
    .collage .hp-l3 { width: 20vw; top: 58%; left: -9%; }
    .collage .hp-r3 { width: 16vw; top: 60%; right: -6%; }
    .collage .hp-l4 { width: 40vw; bottom: -8%; left: -14%; }
    .collage .hp-r4 { width: 38vw; bottom: -8%; right: -14%; }
}
.collage .hero-copy { padding-left: clamp(150px, 16vw, 300px); }
.collage .sb-moonset { right: 17%; }
@media (max-width: 1100px) { .collage .hero-copy { padding-left: 12vw; } .collage .sb-moonset { right: 12%; } }
@media (max-width: 767px) {
    .collage .hero-copy { padding-left: 0; }
    .collage .sb-moonset { right: 50%; }
}

/* label cards are links now (v7) */
a.label-card { display: block; text-decoration: none; color: inherit; transition: transform .35s ease, box-shadow .35s ease; }
a.label-card:hover { transform: translateY(-4px) rotate(-.4deg); box-shadow: 0 1px 0 rgba(255, 255, 255, .6) inset, 0 16px 30px rgba(58, 42, 30, .2); }
.label-cta { display: inline-block; margin-top: 1.1rem; color: #18574B; border-bottom: 1px solid rgba(24, 87, 75, .5); padding-bottom: 2px; letter-spacing: .12em; font-size: .85rem; }
.label-cta i { font-size: .7rem; margin-left: .3rem; }

/* photo galleries: framed prints in a sliding strip */
.sb-gallery {
    width: min(1100px, 94vw); max-height: 88vh; padding: 1.4rem 0 1.8rem; border: 0;
    background: #f4ecdc url("/assets/img/storybook/sb-vine-l-day.webp") left top / auto 100% no-repeat;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .45);
}
.sb-gallery::backdrop { background: rgba(8, 12, 22, .72); backdrop-filter: blur(3px); }
.gal-head { display: flex; align-items: center; justify-content: center; position: relative; padding: 0 3.5rem .8rem; }
.gal-head h2 { font-size: clamp(1.2rem, 2.6vw, 1.8rem); letter-spacing: .18em; }
.gal-close { position: absolute; right: 1.2rem; top: 0; width: 2.4rem; height: 2.4rem; border-radius: 50%; color: #18574B; font-size: 1.2rem; }
.gal-strip { display: flex; gap: 1.6rem; overflow-x: auto; scroll-snap-type: x mandatory; padding: .8rem 2rem 1rem; -webkit-overflow-scrolling: touch; }
.gal-print { flex: 0 0 auto; width: min(340px, 72vw); scroll-snap-align: center; background: #fffdf8; padding: .7rem .7rem 0; box-shadow: 0 8px 18px rgba(58, 42, 30, .2); }
.gal-print:nth-child(odd) { rotate: -1.2deg; } .gal-print:nth-child(even) { rotate: 1deg; }
.gal-print img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block; }
.gal-print figcaption { text-align: center; color: #18574B; font-size: 1.6rem; padding: .4rem 0 .5rem; }

/* v9: the phase shadow over the moon */
.collage .sb-phase { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
/* v9: at night the hops are moonlit - darker, cooler, less green */
[data-sky="night"] .collage .hp { filter: brightness(.62) saturate(.72) sepia(.12) hue-rotate(150deg) contrast(1.04) drop-shadow(0 16px 20px rgba(4, 6, 14, .5)); }
/* v9: the bottom-left spray steps aside for the moonlight tower */
.collage .hp-l4 { width: min(19vw, 280px); left: -10%; bottom: -14%; }

/* v9: event banner as a painted sign board: ruled frame with cut-in corners, fleurs, cursive eyebrow */
.event-banner { background: #18574B; color: #ECE0D4; overflow: hidden; transition: background-color .3s; }
.event-banner::before {
    content: ""; position: absolute; inset: 7px clamp(8px, 3vw, 40px); pointer-events: none;
    border: 12px solid transparent;
    border-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='36' height='36' viewBox='0 0 36 36'><path d='M11.3 4H24.7A12 12 0 0 0 32 11.3V24.7A12 12 0 0 0 24.7 32H11.3A12 12 0 0 0 4 24.7V11.3A12 12 0 0 0 11.3 4Z' fill='none' stroke='%23ECE0D4' stroke-width='1.2'/></svg>") 12 / 12px stretch;
    opacity: .75;
}
.event-banner:hover { background: #134a40; }
.event-banner .eb-eyebrow { display: block; font-size: 1.7rem; line-height: 1; color: #96BF86; margin-bottom: .2rem; }
.event-banner .eb-title { display: inline-flex; align-items: center; gap: .9rem; letter-spacing: .16em; }
.event-banner .eb-title::before, .event-banner .eb-title::after {
    content: ""; width: 14px; height: 17px; flex: none; background: #96BF86;
    -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 120'><path d='M50 4C42 18 36 34 42 54H58C64 34 58 18 50 4Z'/><path d='M58 54C62 40 72 30 84 30C94 30 98 40 92 48C88 54 80 52 80 46C80 42 84 40 86 43C84 36 72 38 68 54Z'/><path d='M42 54C38 40 28 30 16 30C6 30 2 40 8 48C12 54 20 52 20 46C20 42 16 40 14 43C16 36 28 38 32 54Z'/><rect x='26' y='55' width='48' height='9' rx='2'/><path d='M44 65C44 80 48 90 50 99C52 90 56 80 56 65Z'/><path d='M40 65C34 75 24 77 20 71C18 67 22 63 26 67C30 71 36 69 38 65Z'/><path d='M60 65C66 75 76 77 80 71C82 67 78 63 74 67C70 71 64 69 62 65Z'/></svg>") center / contain no-repeat;
            mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 120'><path d='M50 4C42 18 36 34 42 54H58C64 34 58 18 50 4Z'/><path d='M58 54C62 40 72 30 84 30C94 30 98 40 92 48C88 54 80 52 80 46C80 42 84 40 86 43C84 36 72 38 68 54Z'/><path d='M42 54C38 40 28 30 16 30C6 30 2 40 8 48C12 54 20 52 20 46C20 42 16 40 14 43C16 36 28 38 32 54Z'/><rect x='26' y='55' width='48' height='9' rx='2'/><path d='M44 65C44 80 48 90 50 99C52 90 56 80 56 65Z'/><path d='M40 65C34 75 24 77 20 71C18 67 22 63 26 67C30 71 36 69 38 65Z'/><path d='M60 65C66 75 76 77 80 71C82 67 78 63 74 67C70 71 64 69 62 65Z'/></svg>") center / contain no-repeat;
}
.event-banner .eb-note { display: block; margin-top: .35rem; opacity: .85; font-style: italic; }
@media (max-width: 767px) { .event-banner .eb-title::before, .event-banner .eb-title::after { display: none; } }
/* v9: keep the moonlight tower clear: the city sits a little further right, the middle-left spray higher */
@media (min-width: 768px) {
    .collage .sb-skyline { transform: translateX(-40%); }
    .collage .hp-l3 { top: 36%; width: min(11vw, 170px); }
    .collage .hp-l2 { top: 20%; }
}

/* v11: the big moon (and sun) Bay picked: rising behind the rooftops, Pierre large inside it */
.collage .sb-moonset { width: clamp(320px, 43vw, 760px); right: 13%; top: 16%; z-index: 1; }
@media (max-width: 1100px) { .collage .sb-moonset { width: 52vw; right: 6%; top: 22%; } }
@media (max-width: 767px) {
    .collage .sb-moonset { width: 80vw; right: 50%; margin-right: -40vw; top: auto; bottom: 4px; }
}
/* v11: glow follows the disc's own edge (box-shadow left a dark ring in the image's transparent margin) */
.collage .sb-moon { box-shadow: none !important; filter: drop-shadow(0 0 22px rgba(236, 232, 214, .35)) drop-shadow(0 0 80px rgba(170, 180, 215, .22)); }
.collage .sb-sun { box-shadow: none !important; filter: none; }   /* no halo (Bay, v12) */
