/* CSS Document — Poolside Club '26 After Dark */

/* --- ROOT VARIABLES & RESET --- */
:root {
    --bg-dark: #121617;
    --bg-light: #ffffff;
    --color-teal: #37696f;
    --color-gray: #6d6e71;
    --color-burgundy: #4b1613;
    --color-text-dark: #121617;
    --color-text-light: #ffffff;
    --color-spotify: #1db954;
    
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-cursive: 'Nothing You Could Do', cursive;
    
    --transition-smooth: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-quick: all 0.2s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--bg-dark);
    color: var(--color-text-dark);
    font-family: var(--font-sans);
}

body {
    overflow-x: hidden;
    min-height: 100vh;
}

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

/* --- COMMON UTILITIES & BUTTONS --- */
.block-section {
    width: 100%;
    position: relative;
    padding: 100px 5%;
}

.btn-download {
    display: inline-block;
    background-color: var(--color-burgundy);
    color: var(--color-text-light);
    font-family: var(--font-sans);
    font-size: 0.96rem;
    font-weight: 600;
    text-decoration: none;
    padding: 28px 110px;
    letter-spacing: 0.28em;
    border-radius: 0;
    transition: var(--transition-quick);
    border: 1px solid var(--color-burgundy);
}

.btn-download:hover {
    background-color: transparent;
    color: var(--color-burgundy);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(75, 22, 19, 0.15);
}

.btn-download:active {
    transform: translateY(0);
}

/* --- BLOCK 1: HERO SECTION --- */
#hero-section {
    background-color: #000000;
    color: var(--color-text-light);
    min-height: 100vh;
    min-height: 100svh;
    position: relative;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    pointer-events: none;
}

/* The video is a 16:9 clip with the "Poolside Club" neon sign baked in —
   on narrower-than-video viewports, cover crops the sign's edges off screen,
   so letterbox it instead once the viewport gets too tall/narrow. */
@media (max-aspect-ratio: 4/3) {
    .hero-video {
        object-fit: contain;
    }
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Weather Widget */
.weather-widget {
    position: absolute;
    left: 50%;
    bottom: 28px;
    transform: translateX(-50%);
    z-index: 2;
    font-family: var(--font-sans);
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 0.12em;
    opacity: 0.6;
    text-transform: uppercase;
    text-align: center;
    white-space: nowrap;
}

.weather-widget.loading .weather-text {
    position: relative;
}

.weather-widget.loading .weather-text::after {
    content: " .";
    animation: dots 1.5s steps(5, end) infinite;
}

/* --- BLOCK 2: CALENDAR SECTION --- */
#calendar-section {
    background-color: var(--bg-light);
    color: var(--color-text-dark);
    padding: 118px 5.5% 49px;
}

.calendar-container {
    max-width: 1840px;
    margin: 0 auto;
    width: 100%;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding-bottom: 120px;
    margin-bottom: 0;
}

.calendar-title-left {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 400;
    line-height: 1;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.calendar-title-right {
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    gap: 28px;
    font-family: var(--font-sans);
    text-transform: uppercase;
}

.date-range {
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.36em;
    margin-bottom: 0;
}

.sessions-tag {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 400;
    line-height: 1;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

/* Horizontal date timeline */
.calendar-slider-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    margin-bottom: 54px;
}

/* Mobile-only swipe affordance — hidden by default; shown and styled inside
   the mobile media query below. Desktop/tablet page by arrow buttons, which
   are already visually self-explanatory, so no hint there. */
.swipe-hint {
    display: none;
}

.calendar-timeline {
    display: flex;
    align-items: stretch;
    overflow: visible;
    gap: clamp(20px, 2.2vw, 46px);
    width: 100%;
    padding: 18px 0 0;
}

.calendar-day-card {
    flex: 1 1 0;
    min-width: 0;
    min-height: 326px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    transition: var(--transition-smooth);
}

/* Card types get more or less room on the line depending on how much
   content they carry — mirrors the density of the printed calendar. */
.empty-card,
.spacer-card { flex-grow: 0.6; }
.image-card,
.rotated-card { flex-grow: 0.9; }
.text-quote-card { flex-grow: 1.3; }
.script-card,
.stack-card { flex-grow: 1.6; }

/* Month-label days ("(01) JULY") need extra room so the label never
   crowds into the next card's date number. (A content-based flex-basis
   was tried here instead of a flex-grow bump, but flex-basis:auto on one
   item in a row of flex-basis:0 items lets that item's content — including
   the wrappable quote text below it, not just the label — hijack the
   hypothetical size calculation and starve every other card down to ~0
   width. Keep this as a plain flex-grow tweak, uniform with the rest.) */
.calendar-day-card:has(.month-name) { flex-grow: 1.4; }

/* Safety net for narrow viewports where even the extra flex-grow isn't
   enough room: let the date number wrap to a second line ("(01)" over
   "SEPTEMBER") instead of overflowing into the next card. */
.calendar-day-card:has(.month-name) .day-number {
    flex-wrap: wrap;
}

.spacer-card { visibility: hidden; }

.day-number {
    display: flex;
    align-items: flex-end;
    flex-wrap: nowrap;
    gap: 0.4em;
    font-family: var(--font-sans);
    font-size: 1.05rem;
    font-weight: 500;
    letter-spacing: 0.34em;
    text-transform: uppercase;
    white-space: nowrap;
}

.month-name {
    font-weight: 500;
    font-size: inherit;
    opacity: 1;
}

.day-tag-cursive {
    height: 2.1rem;
    width: auto;
    margin-bottom: -0.3rem;
}

.day-content {
    flex-grow: 1;
    min-width: 0;
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    margin-top: 28px;
    overflow: visible;
    overflow-wrap: break-word;
}

/* min-width:0 on the flex column above isn't enough on its own — each text
   child is itself a flex item, and flex items default to an automatic
   minimum size based on their longest unbreakable run, which can still
   push a narrow card's text past its box into the next card. This lets
   break-word above actually take effect down to the card's real width. */
.day-content > * {
    min-width: 0;
}

.empty-card .day-content {
    opacity: 0.25;
}

/* Image Card style */
.day-image {
    width: 100%;
    max-width: 180px;
    height: auto;
    object-fit: contain;
    object-position: top left;
    border-radius: 0;
    transition: var(--transition-smooth);
}

.calendar-day-card:hover .day-image {
    transform: scale(1.05);
}

/* Plain text headline above an image card (e.g. "TUNE IN" above a QR code) */
.image-label {
    width: 100%;
    font-family: var(--font-sans);
    font-size: 1.15rem;
    line-height: 1.35;
    letter-spacing: 0.19em;
    font-weight: 500;
    text-transform: uppercase;
    margin-bottom: 14px;
}

/* Text quote Card style */
.text-quote-card .quote-text {
    width: 100%;
    font-family: var(--font-sans);
    font-size: 1.15rem;
    line-height: 1.35;
    letter-spacing: 0.19em;
    font-weight: 500;
    opacity: 1;
    text-transform: uppercase;
}

/* Small decorative flourish under a quote (e.g. the signature-style squiggle) */
.quote-decoration {
    height: 1.4rem;
    width: auto;
    margin-top: 10px;
}

/* Script Card — a single large handwritten graphic, no separate quote text */
.script-card .day-content {
    justify-content: flex-start;
}

.script-image {
    width: 100%;
    max-width: 260px;
    height: auto;
}

/* Wide variant: lets the graphic bleed rightward across the following empty
   day-cards, the way the printed calendar's script quotes span multiple days
   (e.g. "Reality is good..." running from the 27th through the 29th). Sizing
   is relative (%) to this card's own width so it scales with the layout
   instead of a fixed px value that would misalign at other viewport sizes. */
.script-card--wide .script-image {
    width: 210%;
    max-width: none;
}

/* Rotated Card — the vertical "midnight swim" style cursive asset */
.rotated-card .day-content {
    align-items: flex-start;
    justify-content: flex-end;
    flex-grow: 1;
}

.rotated-image {
    width: auto;
    max-height: 240px;
}

/* Stack Card — alternating plain-text and cursive-image lines (e.g. "Out of Office") */
.stack-card .day-content {
    gap: 6px;
}

.stack-line {
    width: 100%;
    font-family: var(--font-sans);
    font-size: 1.15rem;
    line-height: 1.35;
    letter-spacing: 0.19em;
    font-weight: 500;
    text-transform: uppercase;
}

.stack-cursive-image {
    height: 3.6rem;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    object-position: left;
    margin: 2px 0;
}

/* Timeline Navigation Buttons */
.slider-btn {
    display: flex;
    background: transparent;
    border: 0;
    color: var(--color-text-dark);
    width: 26px;
    height: 26px;
    border-radius: 0;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-family: var(--font-sans);
    font-size: 1.2rem;
    position: absolute;
    top: 66px;
    transform: translateY(-50%);
    z-index: 10;
    transition: var(--transition-quick);
    box-shadow: none;
}

.slider-btn:hover {
    background: var(--bg-dark);
    color: var(--bg-light);
    border-color: var(--bg-dark);
}

.prev-btn {
    left: -4%;
}

.next-btn {
    right: -4%;
}

.playback-controls .prev-btn,
.playback-controls .next-btn {
    position: static;
    transform: none;
    inset: auto;
}

.calendar-cta-wrapper {
    position: relative;
    text-align: center;
    margin-top: 0;
}

.calendar-squiggle {
    position: absolute;
    top: 50%;
    right: 6%;
    width: 120px;
    height: auto;
    transform: translateY(-50%);
}

/* --- BLOCK 3: OUT OF OFFICE SECTION --- */
#out-of-office-section {
    background-color: var(--bg-light);
    padding: 56px 5% 72px;
    position: relative;
    overflow: hidden;
}

.oof-container {
    max-width: 1840px;
    margin: 0 auto;
    width: 100%;
}

.oof-main-heading {
    position: absolute;
    left: 50%;
    top: 31%;
    z-index: 5;
    width: min(30%, 460px);
    height: auto;
    transform: translateX(-50%) rotate(-2deg);
}

.oof-grid {
    position: relative;
    min-height: 1150px;
    width: 100%;
}

/* Image Animations & Wrapper layout */
.oof-asset-wrapper {
    position: absolute;
    opacity: 0;
    transform: translate3d(var(--reveal-x, 0), var(--reveal-y, 70px), 0) scale(0.96);
    transition:
        opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1) var(--reveal-delay, 0s),
        transform 1.15s cubic-bezier(0.16, 1, 0.3, 1) var(--reveal-delay, 0s);
    will-change: opacity, transform;
}

.oof-asset-wrapper.visible {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
}

/* Left Image (Pool at Night) */
.asset-left {
    --reveal-x: -70px;
    left: 3%;
    top: 11%;
    width: min(34%, 630px);
    z-index: 2;
}

.img-rotated-left {
    transform: rotate(-6deg);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    transition: var(--transition-smooth);
}

.asset-left.visible .img-rotated-left {
    transform: rotate(-6deg);
}

.asset-left:hover .img-rotated-left {
    transform: scale(1.02) rotate(-3deg);
}

.oof-asset-num {
    position: absolute;
    left: 1.5%;
    bottom: 1%;
    width: 86px;
    height: auto;
}

/* Right Image (Hands on Ladder) */
.asset-right {
    --reveal-x: 70px;
    --reveal-delay: 0.12s;
    right: 7%;
    top: 15%;
    width: min(23%, 420px);
    z-index: 1;
}

.img-upright {
    width: 100%;
    aspect-ratio: 0.69;
    object-fit: cover;
    transform: rotate(0);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    transition: var(--transition-smooth);
}

.asset-right.visible .img-upright {
    transform: rotate(0);
}

.asset-right:hover .img-upright {
    transform: scale(1.02) rotate(0deg);
}

/* Bottom/Car Image (Headlight) */
.asset-bottom {
    --reveal-y: 90px;
    --reveal-delay: 0.22s;
    right: 13%;
    bottom: 2%;
    width: min(30%, 490px);
    z-index: 3;
}

.car-flex-container {
    display: flex;
    align-items: flex-end;
    gap: 30px;
}

.img-rotated-car {
    width: 55%;
    transform: rotate(4deg);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    transition: var(--transition-smooth);
}

.asset-bottom.visible .img-rotated-car {
    transform: rotate(4deg);
}

.asset-bottom:hover .img-rotated-car {
    transform: scale(1.03) rotate(1deg);
}

.car-caption {
    width: 45%;
    margin-bottom: 20px;
}

.car-num {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 700;
    display: block;
    margin-bottom: 10px;
    color: var(--color-text-dark);
}

.car-text {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.5;
    letter-spacing: 0.05em;
    opacity: 0.9;
}

/* --- BLOCK 4: IMAGE SECTION --- */
#image-block-section {
    padding: 0;
    background-color: var(--bg-dark);
    overflow: hidden;
}

.full-width-image-container {
    width: 100%;
    height: auto;
}

.full-width-image {
    width: 100%;
    height: auto;
    object-fit: contain;
    transform: none;
    transition: none;
}

/* --- BLOCK 5: THE OFFLINE EDIT SECTION --- */
#offline-edit-section {
    background-color: var(--bg-light);
    padding: 112px 0 108px;
    overflow: hidden;
}

.offline-edit-container {
    max-width: none;
    margin: 0 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.offline-title {
    width: clamp(240px, 24vw, 380px);
    height: auto;
    margin: 0 0 72px 5%;
}

.offline-edit-squiggle {
    width: 110px;
    height: auto;
    align-self: flex-end;
    margin: 40px 6% 0 0;
}

/* Horizontal card carousel */
.card-carousel-viewport {
    position: relative;
    width: 100%;
    max-width: none;
    height: 470px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.card-stack-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Card Design */
.oof-reply-card {
    position: absolute;
    width: min(36vw, 550px);
    min-width: 400px;
    height: 420px;
    background-color: var(--bg-light);
    color: var(--color-text-dark);
    border: 1px solid #b8b8b8;
    border-radius: 0;
    padding: 34px 38px;
    display: flex;
    flex-direction: column;
    box-shadow: none;
    opacity: 0;
    pointer-events: none;
    transition:
        transform 0.65s cubic-bezier(0.16, 1, 0.3, 1),
        opacity 0.45s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}

.oof-reply-card.active {
    background-color: var(--bg-light);
    border-color: var(--color-text-dark);
    opacity: 1;
    pointer-events: auto;
    z-index: 10;
    transform: translate3d(0, 0, 0) scale(1);
}

.oof-reply-card.left-card {
    opacity: 0.76;
    pointer-events: auto;
    z-index: 5;
    transform: translate3d(-108%, 0, 0) scale(0.9);
    cursor: pointer;
}

.oof-reply-card.right-card {
    opacity: 0.76;
    pointer-events: auto;
    z-index: 5;
    transform: translate3d(108%, 0, 0) scale(0.9);
    cursor: pointer;
}

.oof-reply-card.active:hover {
    border-color: #000000;
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.1);
    transform: translate3d(0, -10px, 0) scale(1.015);
}

.oof-reply-card.left-card:hover,
.oof-reply-card.right-card:hover {
    opacity: 1;
    border-color: #444444;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.08);
}

.oof-reply-card.left-card:hover {
    transform: translate3d(-108%, -8px, 0) scale(0.92);
}

.oof-reply-card.right-card:hover {
    transform: translate3d(108%, -8px, 0) scale(0.92);
}

/* Inner Card Elements */
.card-header {
    position: relative;
    min-height: 128px;
    border-bottom: 1px solid #d1d1d1;
    padding: 80px 38px 24px 0;
}

.subject-label {
    font-size: 0.86rem;
    font-weight: 400;
    text-transform: none;
    opacity: 0.72;
    display: inline;
}

.subject-text {
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.3;
    display: inline;
}

.card-icon {
    position: absolute;
    top: 0;
    right: 0;
    width: 30px;
    height: 30px;
    background: url("images/hg-ooo-icon.png?v=20260629-1") center / contain no-repeat;
    opacity: 1;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-icon path {
    display: none;
}

.oof-reply-card:hover .card-icon {
    transform: translate(4px, -4px) rotate(-8deg);
}

.card-body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 24px 0 0;
}

.card-body p {
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.48;
}

.card-body ul {
    list-style: none;
    margin-top: 10px;
}

.card-body li {
    font-size: 1rem;
    line-height: 1.6;
    position: relative;
    padding-left: 20px;
}

.card-body li::before {
    content: "—";
    position: absolute;
    left: 0;
    opacity: 0.7;
}

/* Card Stack Navigation Buttons */
.card-nav-btn {
    background: var(--bg-light);
    border: 1px solid var(--color-text-dark);
    color: var(--color-text-dark);
    width: 44px;
    height: 44px;
    border-radius: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 1.2rem;
    position: absolute;
    z-index: 12;
    transition: var(--transition-quick);
}

.card-nav-btn:hover {
    background: var(--bg-dark);
    color: var(--bg-light);
    border-color: var(--bg-dark);
}

.prev-card-btn {
    left: 2.5%;
}

.next-card-btn {
    right: 2.5%;
}

/* --- BLOCK 6: SPOTIFY PLAYER SECTION --- */
#spotify-player-section {
    background-color: #000000;
    color: var(--color-text-light);
    padding: 90px 7% 70px;
    overflow: hidden;
}

.spotify-container {
    position: relative;
    max-width: 1280px;
    margin: 0 auto;
    width: 100%;
}

/* Spotify Connect / Authentication badge */
.spotify-auth-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    position: absolute;
    right: 0;
    bottom: 0;
    background: transparent;
    border: 0;
    padding: 0;
    width: fit-content;
}

.btn-spotify-connect {
    background-color: transparent;
    color: var(--color-text-light);
    border: 1px solid rgba(255, 255, 255, 0.45);
    font-family: var(--font-sans);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 9px 14px;
    border-radius: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-quick);
}

.btn-spotify-connect:hover {
    transform: translateY(-2px);
    background-color: var(--color-text-light);
    color: #000000;
}

.spotify-icon-svg {
    width: 16px;
    height: 16px;
}

.spotify-status-text {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    opacity: 0.48;
    text-transform: uppercase;
}

/* Player Grid Layout */
.spotify-grid {
    display: grid;
    grid-template-columns: 250px minmax(420px, 560px) 270px;
    gap: 0;
    align-items: start;
    justify-content: center;
}

/* Column 1: Label */
.spotify-label-col {
    align-self: start;
    padding-top: 8px;
}

.song-label {
    width: clamp(150px, 12vw, 210px);
    height: auto;
}

/* Column 2: Player Content */
.spotify-player-col {
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 48px;
}

/* Album Art Styling with filters */
.player-album-art-wrapper {
    flex-shrink: 0;
}

.playlist-cover-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.custom-album-art {
    position: relative;
    width: 380px;
    height: 380px;
    background-color: #087d7d;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 0;
    box-shadow: none;
    overflow: hidden;
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.playlist-cover-link:hover .custom-album-art {
    transform: translateY(-6px);
}

.playlist-cover {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Metadata & Seekbar */
.player-seek-wrapper {
    flex-grow: 1;
    width: min(100%, 390px);
}

.song-metadata {
    display: none;
}

.track-name {
    font-family: var(--font-sans);
    font-size: 1.8rem;
    font-weight: 700;
    display: block;
    margin-bottom: 5px;
    letter-spacing: -0.01em;
}

.artist-name {
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 500;
    opacity: 0.5;
    display: block;
}

/* Custom Seek Bar Layout */
.seek-bar-container {
    display: flex;
    align-items: center;
    gap: 15px;
    width: 100%;
}

.current-time, .total-duration {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 500;
    opacity: 0.5;
    width: 40px;
}

.total-duration {
    text-align: right;
}

.seek-track {
    flex-grow: 1;
    height: 2px;
    background-color: rgba(255, 255, 255, 0.55);
    position: relative;
    cursor: pointer;
    border-radius: 2px;
}

.seek-progress {
    height: 100%;
    width: 0%;
    background-color: var(--color-text-light);
    border-radius: 2px;
    position: absolute;
    left: 0;
    top: 0;
    transition: width 0.1s linear;
}

.seek-handle {
    width: 12px;
    height: 12px;
    background-color: var(--color-text-light);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 0%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.2s ease, left 0.1s linear;
}

.seek-track:hover .seek-handle {
    opacity: 1;
}

.seek-track:hover .seek-progress {
    background-color: var(--color-spotify);
}

/* Column 3: Tune In */
.spotify-tune-col {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding-top: 125px;
    margin-left: -72px;
    position: relative;
    z-index: 2;
}

.tune-in-graphic {
    width: 270px;
    height: auto;
    filter: none;
    transform: rotate(-4deg);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.tune-in-graphic:hover {
    transform: rotate(1deg) scale(1.04);
}

/* --- EMAIL SIGNUP SECTION --- */
#email-signup-section {
    background-color: #000000;
    color: var(--color-text-light);
    padding: 90px 7% 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.email-signup-heading {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 44px;
}

.email-signup-form-wrapper {
    width: 100%;
    max-width: 620px;
}

.email-row {
    display: flex;
    align-items: center;
    border-bottom: 1px solid #666666;
    width: 100%;
    gap: 16px;
}

.email-input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 12px 0;
    color: var(--color-text-light);
    font-family: var(--font-sans);
    font-size: 18px;
    font-weight: 400;
    outline: none;
    min-width: 0;
}

.email-input::placeholder {
    color: #666666;
}

.email-input:-webkit-autofill,
.email-input:-webkit-autofill:hover,
.email-input:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--color-text-light);
    -webkit-box-shadow: 0 0 0px 1000px #000000 inset;
    transition: background-color 5000s ease-in-out 0s;
}

.register-btn {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 122px;
    height: 30px;
    background: transparent;
    border: 1px solid var(--color-text-light);
    color: var(--color-text-light);
    font-family: var(--font-sans);
    font-size: 18px;
    font-weight: 400;
    letter-spacing: 0.04em;
    padding: 0;
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition-quick);
    -webkit-appearance: none;
    appearance: none;
}

.register-btn:hover {
    background-color: var(--color-text-light);
    color: #000000;
}

.register-btn:active {
    opacity: 0.8;
}

.consent-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 18px;
}

.consent-checkbox {
    width: 15px;
    height: 15px;
    -webkit-appearance: none;
    appearance: none;
    border: 1px solid #666666;
    background: transparent;
    cursor: pointer;
    flex-shrink: 0;
    position: relative;
    margin: 0;
}

.consent-checkbox:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background-color: #666666;
}

.consent-label {
    font-family: var(--font-sans);
    font-size: 15px;
    font-weight: 400;
    color: #666666;
    cursor: pointer;
    text-align: left;
    line-height: 1.4;
}

.consent-label a {
    color: #666666;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.consent-label a:hover {
    opacity: 0.7;
}

/* --- BLOCK 7: FOOTER SECTION --- */
#footer-section {
    background-color: var(--bg-light);
    color: var(--color-text-dark);
    padding: 90px 8% 70px 8%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Playback Control Bar */
.playback-controls-bar {
    width: 100%;
    max-width: 520px;
    display: flex;
    justify-content: center;
    border-bottom: 0;
    padding: 28px 0 36px;
    margin: 0 auto;
    color: var(--color-text-light);
}

.playback-controls {
    display: flex;
    align-items: center;
    gap: 38px;
}

.control-btn {
    background: transparent;
    border: none;
    color: currentColor;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition-quick);
}

.control-btn svg {
    height: 20px;
    width: auto;
}

.control-btn:hover {
    color: var(--color-teal);
    transform: scale(1.05);
}

.play-btn {
    background-color: var(--color-text-light);
    color: var(--bg-dark);
    width: 54px;
    height: 54px;
    border-radius: 50%;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.play-btn svg {
    height: 22px;
}

.play-btn:hover {
    background-color: var(--color-teal);
    color: var(--bg-light);
    transform: scale(1.08);
}

.control-btn.active-state {
    color: var(--color-spotify);
}

/* Footer layout */
.footer-content {
    max-width: 1400px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-social-nav {
    display: flex;
    gap: 60px;
    margin-bottom: 70px;
}

.social-link {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--color-text-dark);
    letter-spacing: 0.15em;
    transition: var(--transition-quick);
    position: relative;
    padding-bottom: 5px;
}

.social-link::after {
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--color-teal);
    transition: var(--transition-quick);
}

.social-link:hover {
    color: var(--color-teal);
}

.social-link:hover::after {
    width: 100%;
}

.footer-brand-logo {
    margin-bottom: 70px;
    width: 100%;
    display: flex;
    justify-content: center;
}

.hg-logo {
    width: 280px;
    height: auto;
    opacity: 0.9;
}

.footer-info {
    text-align: center;
}

.contact-email {
    font-family: var(--font-sans);
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--color-text-dark);
    text-decoration: underline;
    transition: var(--transition-quick);
    display: inline-block;
    margin-bottom: 25px;
}

.contact-email:hover {
    color: var(--color-teal);
}

.copyright-text {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 400;
    opacity: 0.5;
    letter-spacing: 0.05em;
}

/* --- ANIMATION DEFINITIONS --- */
@keyframes dots {
    0%, 20% { content: "."; }
    40% { content: ".."; }
    60% { content: "..."; }
    80%, 100% { content: ""; }
}

@keyframes rotateSlow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* --- HELPER CLASSES --- */
.hidden {
    display: none !important;
}

/* --- RESPONSIVE MEDIA QUERIES --- */

/* Tablet (Screens <= 1024px) */
@media (max-width: 1024px) {
    #calendar-section {
        padding: 96px 6% 104px;
    }

    .calendar-header {
        padding-bottom: 58px;
    }

    .calendar-title-left,
    .sessions-tag {
        font-size: 1.25rem;
    }

    .date-range {
        font-size: 0.82rem;
        letter-spacing: 0.26em;
    }

    .calendar-timeline {
        gap: clamp(16px, 2.6vw, 32px);
    }

    .calendar-day-card {
        min-height: 300px;
    }

    .day-image {
        max-width: 130px;
    }

    .slider-btn {
        display: flex;
    }

    .prev-btn { left: -10px; }
    .next-btn { right: -10px; }
    
    .oof-main-heading {
        width: min(42%, 400px);
    }

    .oof-grid {
        min-height: 820px;
    }

    .calendar-squiggle {
        width: 90px;
        right: 4%;
    }
    
    .asset-left { width: 38%; }
    .asset-right { width: 34%; }
    .asset-bottom { width: 50%; right: 25%; }
    
    .spotify-grid {
        grid-template-columns: 1fr;
        gap: 28px;
        justify-items: center;
        text-align: center;
    }
    
    .spotify-label-col {
        order: 2;
        padding-top: 0;
    }
    
    .spotify-player-col {
        order: 3;
        flex-direction: column;
        width: 100%;
        max-width: 600px;
        gap: 30px;
    }
    
    .spotify-tune-col {
        order: 1;
        justify-content: center;
        padding-top: 0;
        margin-left: 0;
    }

    .tune-in-graphic {
        width: 210px;
    }

    .spotify-auth-badge {
        position: static;
        margin: 34px auto 0;
    }
    
    .playback-controls-bar {
        margin-bottom: 0;
    }
}

/* Mobile (Screens <= 768px) */
@media (max-width: 768px) {
    .block-section {
        padding: 80px 6%;
    }
    
    /* Hero section */
    #hero-section {
        padding: 28px 5% 60px;
    }

    /* Match the desktop full-bleed look — fill the screen edge-to-edge
       instead of letterboxing, even though that crops the sign a bit tighter. */
    .hero-video {
        object-fit: cover;
    }

    .weather-widget {
        font-size: 0.58rem;
        letter-spacing: 0.1em;
        bottom: 18px;
    }

    /* Calendar section */
    #calendar-section {
        padding: 78px 6% 86px;
    }

    .calendar-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
        padding-bottom: 50px;
        margin-bottom: 0;
    }

    .calendar-title-left {
        font-size: 1.65rem;
    }

    .calendar-title-right {
        align-items: flex-start;
        /* DOM order is date-range then sessions-tag; reversing here stacks
           "Sessions" directly under "After Dark" with the date last. */
        flex-direction: column-reverse;
        gap: 10px;
        margin-top: 6px;
    }

    .date-range {
        font-size: 0.72rem;
        letter-spacing: 0.22em;
    }

    .sessions-tag {
        font-size: 1.65rem;
    }
    
    .calendar-timeline {
        display: flex;
        flex-direction: column;
        gap: 38px;
        overflow: visible;
        padding: 0;
        /* Swipe left/right to page between weeks (see app.js touch handlers);
           touch-action lets vertical page scroll pass through untouched. */
        touch-action: pan-y;
    }

    /* Swipe hint: sits over the first card only, fades out the moment app.js
       detects a horizontal drag. pointer-events:none so it never blocks the
       swipe gesture itself — it's purely a visual cue. */
    .swipe-hint {
        display: flex;
        align-items: center;
        gap: 10px;
        position: absolute;
        top: 108px;
        left: 50%;
        transform: translateX(-50%);
        max-width: calc(100% - 24px);
        background: rgba(255, 255, 255, 0.9);
        border: 1px solid rgba(18, 22, 23, 0.12);
        padding: 10px 16px;
        pointer-events: none;
        opacity: 1;
        transition: opacity 0.4s ease;
        z-index: 5;
        white-space: nowrap;
    }

    .swipe-hint.is-dismissed {
        opacity: 0;
    }

    .swipe-hint-text {
        font-family: var(--font-sans);
        font-size: 0.64rem;
        font-weight: 500;
        letter-spacing: 0.16em;
        text-transform: uppercase;
        color: var(--color-text-dark);
    }

    .swipe-hint-arrow {
        display: inline-block;
        font-size: 1rem;
        line-height: 1;
        color: var(--color-text-dark);
        animation: swipe-hint-nudge 1.6s ease-in-out infinite;
    }

    .swipe-hint-arrow-left {
        animation-name: swipe-hint-nudge-left;
    }

    .swipe-hint-arrow-right {
        animation-name: swipe-hint-nudge-right;
    }

    @keyframes swipe-hint-nudge-left {
        0%, 100% { transform: translateX(0); }
        50% { transform: translateX(-4px); }
    }

    @keyframes swipe-hint-nudge-right {
        0%, 100% { transform: translateX(0); }
        50% { transform: translateX(4px); }
    }

    @media (prefers-reduced-motion: reduce) {
        .swipe-hint-arrow {
            animation: none;
        }
    }

    .calendar-day-card {
        flex: none;
        width: 100%;
        min-height: 0;
    }

    .calendar-day-card.empty-card {
        min-height: 22px;
    }

    .spacer-card {
        display: none;
    }

    .day-content {
        flex-grow: 0;
        margin-top: 14px;
    }

    .day-number {
        font-size: 0.86rem;
        letter-spacing: 0.24em;
    }

    .text-quote-card .quote-text,
    .stack-line,
    .image-label {
        font-size: 0.92rem;
        letter-spacing: 0.14em;
    }

    .quote-decoration {
        height: 1.1rem;
    }

    .stack-cursive-image {
        height: 2.6rem;
    }

    .day-tag-cursive {
        height: 1.7rem;
        margin-bottom: -0.2rem;
    }

    .script-image {
        max-width: 200px;
    }

    /* Cards stack full-width on mobile, so there's no neighboring blank
       space to bleed into — fall back to the normal contained size. */
    .script-card--wide .script-image {
        width: 100%;
        max-width: 200px;
    }

    .rotated-image {
        max-height: 180px;
    }

    .day-image {
        width: min(62vw, 240px);
        max-width: none;
        height: auto;
        object-fit: contain;
    }

    .btn-download {
        width: 100%;
        padding: 20px 18px;
        font-size: 0.72rem;
        letter-spacing: 0.22em;
    }

    .slider-btn {
        display: none;
    }


    /* Out of Office image section */
    #out-of-office-section {
        padding: 72px 6% 84px;
    }

    .oof-main-heading {
        position: relative;
        left: auto;
        top: auto;
        order: 1;
        width: 62%;
        max-width: 280px;
        margin: 0 0 8px;
        transform: rotate(-2deg);
    }

    .oof-grid {
        display: flex;
        flex-direction: column;
        gap: 42px;
        min-height: auto;
    }

    .calendar-squiggle {
        display: none;
    }

    .oof-asset-wrapper {
        position: relative;
        left: auto !important;
        right: auto !important;
        top: auto !important;
        bottom: auto !important;
        width: 100% !important;
    }

    .asset-left {
        order: 3;
    }

    .asset-right {
        order: 4;
    }

    .asset-bottom {
        order: 5;
    }
    
    .img-rotated-left, .img-upright, .img-rotated-car {
        transform: rotate(0deg) !important;
        width: 100% !important;
    }

    .img-upright {
        aspect-ratio: auto;
        object-fit: initial;
    }
    
    .car-flex-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    
    .car-caption {
        width: 100%;
    }

    .oof-asset-num {
        position: relative;
        left: auto;
        bottom: auto;
        order: 6;
        width: 58px;
        align-self: flex-start;
        margin-top: -10px;
    }
    
    /* Cards block */
    #offline-edit-section {
        padding: 84px 0 92px;
    }

    .offline-title {
        width: 62vw;
        margin: 0 0 46px 6%;
    }

    .offline-edit-squiggle {
        width: 76px;
        margin: 28px 8% 0 0;
    }

    .card-carousel-viewport {
        height: 320px;
    }

    .oof-reply-card {
        width: 72%;
        min-width: 0;
        height: 280px;
        padding: 20px 18px;
    }

    .oof-reply-card.left-card {
        transform: translate3d(-92%, 0, 0) scale(0.86);
    }

    .oof-reply-card.right-card {
        transform: translate3d(92%, 0, 0) scale(0.86);
    }

    .oof-reply-card.left-card:hover {
        transform: translate3d(-92%, -6px, 0) scale(0.88);
    }

    .oof-reply-card.right-card:hover {
        transform: translate3d(92%, -6px, 0) scale(0.88);
    }

    .prev-card-btn { left: 4px; }
    .next-card-btn { right: 4px; }

    .card-header {
        min-height: 88px;
        padding: 42px 26px 14px 0;
    }

    .subject-label,
    .subject-text {
        font-size: 0.82rem;
    }

    .card-icon {
        width: 22px;
        height: 22px;
    }

    .card-body p {
        font-size: 0.86rem;
        line-height: 1.4;
    }

    .card-body li {
        font-size: 0.86rem;
    }
    
    /* Spotify block */
    #spotify-player-section {
        padding: 64px 6% 58px;
    }

    .spotify-grid {
        gap: 24px;
    }

    .tune-in-graphic {
        width: 170px;
    }

    .song-label {
        width: 170px;
    }

    .custom-album-art {
        width: min(78vw, 290px);
        height: min(78vw, 290px);
    }

    .player-seek-wrapper {
        width: min(100%, 310px);
    }

    .playback-controls {
        gap: 22px;
    }

    .playback-controls-bar {
        padding-bottom: 28px;
    }

    .spotify-auth-badge {
        flex-direction: column;
        text-align: center;
    }
    
    .track-name {
        font-size: 1.5rem;
    }
    
    .artist-name {
        font-size: 0.9rem;
    }
    
    /* Email signup section */
    #email-signup-section {
        padding: 60px 6% 70px;
    }

    .email-signup-heading {
        font-size: 1.4rem;
        margin-bottom: 32px;
    }

    .email-input,
    .register-btn {
        font-size: 16px;
    }

    /* Footer section */
    .footer-social-nav {
        flex-direction: column;
        align-items: center;
        gap: 25px;
        margin-bottom: 50px;
    }
    
    .hg-logo {
        width: 220px;
    }
}

@media (max-width: 420px) {
    .email-row {
        flex-direction: column;
        align-items: stretch;
        border-bottom: none;
        gap: 12px;
    }

    .email-input {
        border-bottom: 1px solid #666666;
    }

    .register-btn {
        align-self: center;
    }

    .consent-label {
        font-size: 13px;
    }
}
