/* ==========================================================================
   Pertex Brand homepage — 1:1 visual replica
   --------------------------------------------------------------------------
   Design tokens + global reset      §1
   Header + scroll triggers          §2
   Hamburger + full-screen menu      §3
   Hero                              §4
   Marquee                           §5
   Partner brands                    §6
   Explore (twin videos)             §7
   Stories (Swiper)                  §8
   Footer + subscribe                §9
   Reduced-motion + responsive       §10
   ========================================================================== */

/* §0 — @font-face (TTF direct, woff2 toolchain unavailable) -------- */
/* Local font files live in assets/fonts/. Loaded as TTF — all evergreen
   browsers accept font/ttf with crossorigin. swap display avoids FOIT. */
@font-face {
    font-family: "Work Sans";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("../fonts/WorkSans-Regular.ttf") format("truetype");
}
@font-face {
    font-family: "Work Sans";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("../fonts/WorkSans-Bold.ttf") format("truetype");
}
@font-face {
    font-family: "Instrument Sans";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("../fonts/InstrumentSans-Regular.ttf") format("truetype");
}
@font-face {
    font-family: "Instrument Sans";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("../fonts/InstrumentSans-Bold.ttf") format("truetype");
}
@font-face {
    font-family: "Geist Mono";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("../fonts/GeistMono-Regular.ttf") format("truetype");
}

/* §1 — Design tokens ---------------------------------------------- */
:root {
    --color-bg: #000000;
    --color-fg: #ffffff;
    --color-muted: rgba(255, 255, 255, 0.55);
    --color-line: rgba(255, 255, 255, 0.14);
    --color-accent: #ffffff;

    --font-sans: "Work Sans", "Instrument Sans", -apple-system, BlinkMacSystemFont,
        "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    --font-mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

    --header-h: 72px;
    --header-pad-x: clamp(20px, 4vw, 48px);
    --section-pad-y: clamp(80px, 12vh, 160px);
    --max-w: 1680px;

    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-io:  cubic-bezier(0.65, 0, 0.35, 1);
    --dur: 0.6s;
}

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

html, body {
    margin: 0;
    padding: 0;
    background: var(--color-bg);
    color: var(--color-fg);
    font-family: var(--font-sans);
    font-weight: 400;
    line-height: 1.45;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

html { scroll-behavior: auto; } /* Lenis handles smooth scroll */
body { overflow-x: hidden; min-height: 100vh; }

img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { background: none; border: none; color: inherit; cursor: pointer; font: inherit; }

.noselect {
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}

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

/* §2 — Header ----------------------------------------------------- */
.headerHideTrigger,
.headerBackgroundTrigger {
    position: absolute;
    left: 0;
    width: 100%;
    pointer-events: none;
    z-index: 5;
}
.headerHideTrigger { top: 0; height: 60px; }
.headerBackgroundTrigger { top: 60px; height: 80px; }

#siteHeader {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 50;
    height: var(--header-h);
    padding: 0 var(--header-pad-x);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: transparent;
    transition: background var(--dur) var(--ease-out),
                transform var(--dur) var(--ease-out);
}
#siteHeader.is-solid {
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
#siteHeader.is-hidden { transform: translateY(-100%); }

.logoCont {
    display: inline-flex;
    align-items: center;
    height: 30px;
}
.logoWordmark {
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 22px;
    letter-spacing: 1px;
    display: inline-flex;
    gap: 1px;
}
.logoChar {
    display: inline-block;
    opacity: 0;
    transform: translateY(0.4em);
    animation: logoCharIn 0.7s var(--ease-out) forwards;
    animation-delay: calc(var(--char-index) * 80ms + 200ms);
}
@keyframes logoCharIn {
    to { opacity: 1; transform: translateY(0); }
}

.navDesktop {
    display: flex;
    gap: clamp(18px, 2.4vw, 38px);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.navDesktop a {
    position: relative;
    opacity: 0.75;
    transition: opacity 0.25s var(--ease-out);
}
.navDesktop a::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: -4px;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.35s var(--ease-out);
}
.navDesktop a:hover { opacity: 1; }
.navDesktop a:hover::after { transform: scaleX(1); }

@media (max-width: 900px) {
    .navDesktop { display: none; }
}

/* §3 — Hamburger + full-screen menu ------------------------------- */
.hamburger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    z-index: 60;
}
.hamburgerDesktop { display: none; }
@media (min-width: 901px) {
    .hamburgerDesktop { display: inline-flex; }
}
@media (max-width: 900px) {
    .hamburgerMobile { display: inline-flex; }
    .hamburgerDesktop { display: none; }
}
.hamburgerBox {
    position: relative;
    width: 28px;
    height: 18px;
    display: block;
}
.hamburgerInner,
.hamburgerInner::before,
.hamburgerInner::after {
    position: absolute;
    width: 28px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: transform 0.35s var(--ease-io),
                top 0.35s var(--ease-io),
                opacity 0.2s var(--ease-out);
}
.hamburgerInner { top: 8px; left: 0; }
.hamburgerInner::before,
.hamburgerInner::after {
    content: "";
    left: 0;
}
.hamburgerInner::before { top: -8px; }
.hamburgerInner::after  { top: 8px; }

.is-menu-open .hamburgerInner { background: transparent; }
.is-menu-open .hamburgerInner::before { top: 0; transform: rotate(45deg); }
.is-menu-open .hamburgerInner::after  { top: 0; transform: rotate(-45deg); }

#fullMenu {
    position: fixed;
    inset: 0;
    z-index: 55;
    pointer-events: none;
    visibility: hidden;
}
#fullMenu.is-open {
    pointer-events: auto;
    visibility: visible;
}
.menuOverlay {
    position: absolute;
    inset: 0;
    background: #000;
    opacity: 0;
    transition: opacity 0.5s var(--ease-out);
}
#fullMenu.is-open .menuOverlay { opacity: 1; }
.menuGrid {
    position: relative;
    z-index: 1;
    height: 100%;
    display: grid;
    grid-template-rows: repeat(5, 1fr);
    align-items: center;
    padding: var(--header-h) var(--header-pad-x) var(--header-h);
    max-width: var(--max-w);
    margin: 0 auto;
}
.menuGrid a {
    font-size: clamp(28px, 6vw, 64px);
    font-weight: 700;
    letter-spacing: -0.5px;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.5s var(--ease-out),
                transform 0.5s var(--ease-out);
}
#fullMenu.is-open .menuGrid a {
    opacity: 1;
    transform: translateY(0);
}
#fullMenu.is-open .menuGrid a:nth-child(1) { transition-delay: 0.08s; }
#fullMenu.is-open .menuGrid a:nth-child(2) { transition-delay: 0.14s; }
#fullMenu.is-open .menuGrid a:nth-child(3) { transition-delay: 0.20s; }
#fullMenu.is-open .menuGrid a:nth-child(4) { transition-delay: 0.26s; }
#fullMenu.is-open .menuGrid a:nth-child(5) { transition-delay: 0.32s; }

/* §4 — Hero ------------------------------------------------------- */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    width: 100%;
    overflow: hidden;
    background: #000;
    display: flex;
    align-items: flex-end;
    padding: 0 var(--header-pad-x) clamp(80px, 12vh, 120px);
}
.heroVideo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
    pointer-events: none;
}
.heroScrim {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    /* Subtle bottom-weighted gradient so the white headline stays legible
       against arbitrary video frames. Mirrors pertex.com's scrim. */
    background:
        linear-gradient(180deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0) 25%, rgba(0,0,0,0) 55%, rgba(0,0,0,0.55) 100%),
        linear-gradient(90deg, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0) 50%);
}
.heroInner {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: var(--max-w);
    margin: 0 auto;
}
.heroTitle {
    font-size: clamp(32px, 6.2vw, 88px);
    font-weight: 700;
    line-height: 1.04;
    letter-spacing: -1.5px;
    margin: 0;
    color: #fff;
    text-transform: uppercase;
    /* Soft shadow for legibility against bright video frames. */
    text-shadow: 0 1px 24px rgba(0,0,0,0.35);
}
.heroLine {
    display: block;
}
.heroLine--accent {
    /* Trailing line carries a slightly different weight/treatment to
       match the reference screenshot's two-tier hierarchy. */
    font-style: italic;
    font-weight: 400;
    opacity: 0.92;
}
.heroTitle .char,
.heroTitle .space {
    display: inline-block;
    opacity: 0;
    transform: translateY(0.5em);
}
.heroTitle.is-revealed .char,
.heroTitle.is-revealed .space {
    animation: charRise 0.7s var(--ease-out) forwards;
    animation-delay: calc(var(--char-index) * 18ms);
}
.heroTitle .space { width: 0.28em; }
@keyframes charRise {
    to { opacity: 1; transform: translateY(0); }
}

/* Scroll-down cue anchored to the bottom-centre of the hero. */
.heroScroll {
    position: absolute;
    left: 50%;
    bottom: 28px;
    transform: translateX(-50%);
    z-index: 3;
    width: 36px;
    height: 36px;
    padding: 0;
    background: none;
    border: 0;
    color: #fff;
    cursor: pointer;
    opacity: 0.85;
    display: flex;
    align-items: center;
    justify-content: center;
}
.heroScroll svg {
    animation: heroScrollBob 1.8s ease-in-out infinite;
}
@keyframes heroScrollBob {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(6px); }
}

/* §4b — Hero-below (lead copy + CTA + marquee) ------------------ */
.heroBelow {
    padding: var(--section-pad-y) var(--header-pad-x);
    background: var(--color-bg);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 40px;
}
.heroLead {
    font-size: clamp(16px, 1.4vw, 20px);
    color: var(--color-muted);
    max-width: 56ch;
    margin: 0;
    line-height: 1.6;
}
.heroLead.is-reveal-pending {
    opacity: 0;
    transform: translateY(24px);
}
.heroLead.is-revealed {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s var(--ease-out) 0.2s,
                transform 0.8s var(--ease-out) 0.2s;
}

/* §5 — Marquee ---------------------------------------------------- */
.heroMarqueeGroup {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: calc(100% + var(--header-pad-x) * 2);
    margin-left: calc(var(--header-pad-x) * -1);
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
}
.marqueeRow {
    display: flex;
    overflow: hidden;
    white-space: nowrap;
}
.marqueeTrack {
    display: inline-flex;
    flex-shrink: 0;
    will-change: transform;
    /* No CSS animation — driven by scroll velocity in main.js.
       Page scroll down  → marquee moves forward (its default direction).
       Page scroll up    → marquee reverses.
       Page still        → marquee stops (translateX frozen). */
    transform: translate3d(0, 0, 0);
}
.marqueeRow[data-marquee-direction="right"] .marqueeTrack {
    /* Default direction reversed at the JS level via data-marquee-direction. */
}
.marqueeItem {
    font-size: clamp(40px, 6vw, 84px);
    font-weight: 700;
    letter-spacing: -1px;
    line-height: 1;
    padding: 0 28px;
    color: var(--color-fg);
}
.marqueeItem:nth-child(odd) {
    -webkit-text-stroke: 1px #fff;
    color: transparent;
}
@keyframes marqueeScroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* §6 — Partner brands --------------------------------------------- */
.partners {
    padding: var(--section-pad-y) var(--header-pad-x);
    background: var(--color-bg);
    border-top: 1px solid var(--color-line);
}
.sectionTitle {
    font-size: clamp(14px, 1vw, 16px);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-muted);
    margin: 0 0 48px;
}
.logosCont { overflow: hidden; }
.logosGrid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(20px, 3vw, 60px);
    align-items: center;
    justify-items: center;
}
@media (max-width: 900px) {
    .logosGrid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
}
.logo {
    width: 100%;
    max-width: 220px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.6;
    transition: opacity 0.4s var(--ease-out),
                transform 0.4s var(--ease-out);
}
.logo .hoverableZone { display: block; line-height: 0; }
.logo img {
    width: 100%;
    height: auto;
    max-height: 80px;
    object-fit: contain;
    filter: grayscale(1) brightness(1.2);
    transition: transform 0.5s var(--ease-out),
                filter 0.5s var(--ease-out);
    transform-origin: center;
}
.logo:hover {
    opacity: 1;
}
.logo:hover img {
    transform: scale(1.15);  /* "放大" — zoom on hover, as requested */
    filter: grayscale(0) brightness(1);
}

/* §7 — Explore (twin videos) ------------------------------------- */
.explore {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 90vh;
    overflow: hidden;
}
@media (max-width: 900px) {
    .explore { grid-template-columns: 1fr; min-height: auto; }
    .exploreLeft, .exploreRight { height: 60vh; }
}
.exploreLeft, .exploreRight {
    position: relative;
    overflow: hidden;
}
.exploreVideo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.exploreOverlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(180deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.25) 50%, rgba(0,0,0,0.6) 100%);
    grid-column: 1 / -1;
}
.exploreTitle {
    font-size: clamp(28px, 5vw, 72px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -1px;
    max-width: 18ch;
    margin: 0 0 36px;
}
.exploreTitle .char,
.exploreTitle .space {
    display: inline-block;
    opacity: 0;
    transform: translateY(0.5em);
}
.exploreTitle.is-revealed .char,
.exploreTitle.is-revealed .space {
    animation: charRise 0.7s var(--ease-out) forwards;
    animation-delay: calc(var(--char-index) * 18ms);
}
.exploreTitle .space { width: 0.28em; }

/* §8 — Stories (Swiper) ------------------------------------------ */
.stories {
    padding: var(--section-pad-y) 0 var(--section-pad-y) var(--header-pad-x);
    background: var(--color-bg);
    border-top: 1px solid var(--color-line);
}
.storiesHeader {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    padding-right: var(--header-pad-x);
    margin-bottom: 48px;
}
.seeAll {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.75;
    transition: opacity 0.25s var(--ease-out);
}
.seeAll:hover { opacity: 1; }
.seeAll svg { transition: transform 0.3s var(--ease-out); }
.seeAll:hover svg { transform: translateX(4px); }

.storiesSwiper {
    overflow: visible;
    padding-right: var(--header-pad-x);
}
.storyCard {
    display: block;
    width: 100%;
    color: inherit;
}
.storyImage {
    position: relative;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: #111;
}
.storyImage img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s var(--ease-out);
    transform: scale(1.02);
}
.storyCard:hover .storyImage img { transform: scale(1.06); }
.storyMeta { padding: 20px 4px 8px; }
.storyDate {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-muted);
}
.storyTitle {
    font-size: clamp(20px, 1.6vw, 28px);
    font-weight: 700;
    line-height: 1.2;
    margin: 10px 0 8px;
    max-width: 22ch;
}
.storyLead {
    font-size: 14px;
    color: var(--color-muted);
    margin: 0;
    line-height: 1.5;
}

.swiper-button-prev,
.swiper-button-next {
    width: 48px !important;
    height: 48px !important;
    background: rgba(0,0,0,0.4);
    border-radius: 50%;
    color: #fff !important;
    backdrop-filter: blur(6px);
}
.swiper-button-prev::after,
.swiper-button-next::after {
    font-size: 16px !important;
    font-weight: 700;
}

/* §9 — Footer + subscribe ----------------------------------------- */
.siteFooter {
    background: #000;
    border-top: 1px solid var(--color-line);
    padding: var(--section-pad-y) var(--header-pad-x) 32px;
}
.footerInner {
    max-width: var(--max-w);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: clamp(32px, 5vw, 80px);
    align-items: start;
}
@media (max-width: 900px) {
    .footerInner { grid-template-columns: 1fr; }
}
.footerTitle {
    font-size: clamp(24px, 3vw, 40px);
    font-weight: 700;
    margin: 0 0 12px;
    letter-spacing: -0.5px;
}
.footerLead {
    color: var(--color-muted);
    margin: 0 0 24px;
    max-width: 32ch;
}
.subscribeForm {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    max-width: 520px;
}
.subscribeForm input[type="email"] {
    flex: 1 1 280px;
    background: transparent;
    border: 1px solid var(--color-line);
    color: #fff;
    font: inherit;
    padding: 14px 18px;
    border-radius: 0;
    transition: border-color 0.25s var(--ease-out);
}
.subscribeForm input[type="email"]:focus {
    outline: none;
    border-color: #fff;
}
.subscribeForm input::placeholder { color: var(--color-muted); }
.subscribeBtn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 22px;
    background: #fff;
    color: #000;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: transform 0.25s var(--ease-out),
                background 0.25s var(--ease-out);
}
.subscribeBtn:hover { transform: translateY(-2px); background: #eee; }
.subscribeBtn svg { transition: transform 0.3s var(--ease-out); }
.subscribeBtn:hover svg { transform: translateX(4px); }
.subscribeMsg {
    margin: 8px 0 0;
    font-size: 13px;
    color: var(--color-muted);
    min-height: 1em;
}
.subscribeMsg.is-ok { color: #88e8a8; }
.subscribeMsg.is-err { color: #ff8a8a; }

.footerNav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 24px;
    font-size: 14px;
    align-self: end;
}
.footerNav a {
    opacity: 0.75;
    transition: opacity 0.25s var(--ease-out);
}
.footerNav a:hover { opacity: 1; }

.footerLegal {
    grid-column: 1 / -1;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: clamp(48px, 6vw, 96px);
    padding-top: 24px;
    border-top: 1px solid var(--color-line);
    font-size: 12px;
    color: var(--color-muted);
    letter-spacing: 0.5px;
}

/* §10 — Buttons (primary CTA) ------------------------------------ */
.btnPrimary {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 28px;
    border: 1px solid #fff;
    color: #fff;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    transition: background 0.3s var(--ease-out),
                color 0.3s var(--ease-out),
                transform 0.3s var(--ease-out);
    position: relative;
    overflow: hidden;
}
.btnPrimary .btnArrow {
    transition: transform 0.3s var(--ease-out);
}
.btnPrimary:hover {
    background: #fff;
    color: #000;
}
.btnPrimary:hover .btnArrow { transform: translateX(4px); }
.btnPrimary.btnOnVideo {
    border-color: rgba(255,255,255,0.8);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

/* Reveal-on-scroll utility (driven by IntersectionObserver in main.js) */
[data-reveal] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s var(--ease-out),
                transform 0.8s var(--ease-out);
}
[data-reveal].is-revealed {
    opacity: 1;
    transform: translateY(0);
}
[data-reveal-section] > * {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s var(--ease-out),
                transform 0.8s var(--ease-out);
}
[data-reveal-section].is-revealed > * {
    opacity: 1;
    transform: translateY(0);
}
[data-reveal-section].is-revealed > *:nth-child(2) { transition-delay: 0.1s; }
[data-reveal-section].is-revealed > *:nth-child(3) { transition-delay: 0.2s; }

/* §11 — Reduced motion ------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
    .marqueeTrack { animation: none !important; }
    .logoChar,
    .heroTitle .char,
    .exploreTitle .char,
    .heroTitle .space,
    .exploreTitle .space {
        opacity: 1 !important;
        transform: none !important;
    }
    [data-reveal],
    [data-reveal-section] > * {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* §12 — Small viewport nits -------------------------------------- */
@media (max-width: 600px) {
    .heroMarqueeGroup {
        width: calc(100% + var(--header-pad-x));
        margin-left: calc(var(--header-pad-x) * -0.5);
    }
    .marqueeItem { padding: 0 16px; }
    .stories { padding-left: var(--header-pad-x); }
}
