/* =====================================================
   CASE STUDY DETAIL PAGES — shared stylesheet
   Used by /case-studies/* routes (components/case-studies/*.html).
   Design tokens mirror components/redesign.html (brand yellow
   #FFD500, accent pink #E90D77, Poppins) so these pages read as
   part of the same site rather than a bolted-on template.
   ===================================================== */

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

/* ===================================================== */
/* THEME TOKENS — dark is the default (no attribute needed);
   [data-theme="light"] overrides with this page's original (and still
   current light-mode) values. Mirrors components/redesign.html's own
   token system — --text-muted/--text-faint/--text-strong/
   --shadow-nav-scrolled use the exact same values as there, so the two
   pages read as the same site in either theme. Chrome that's already
   black regardless of theme (nav, footer, modals, back-to-top, the
   dark hero accent section and every device-mockup frame) stays
   hard-coded, same principle as redesign.html.

   Background blending between sections follows the exact rule
   redesign.html established: an outgoing section blends its own last
   ~18% into whatever flat color the next section starts at, but ONLY
   when both sides are "the same family" for the current theme — two
   toggling sections always blend (in either theme, e.g. Overview into
   Crosslink), but a toggling section meeting an invariant-black section
   (Hero, Analytics-in-light-mode's neighbor, footer) blends only in dark
   mode and stays a hard, un-blended step in light mode (exactly how
   redesign.html's Social Gallery blends into FAQ's black in dark but
   stays flat white in light — see project-dark-theme-test memory).
   Never touches nav or footer's OWN background either way — those stay
   flat, literal, unconditional, same as redesign.html. */
/* ===================================================== */

:root {
    --bg-body: #0A0A0A;
    --text-body: #F2F2F2;
    --bg-overview: #0A0A0A;
    /* Crosslink's own flat/start color, referenced by name from
       Overview's and Analytics' blend targets below — kept separate
       from --bg-crosslink (the section's full, possibly-gradient
       background) since a gradient value can't itself be nested as
       another gradient's color-stop. */
    --crosslink-top: #141414;
    /* Composed once here (not redeclared under [data-theme="light"]) —
       it just re-resolves --bg-overview/--crosslink-top, which already
       have their own light overrides below, so it automatically picks
       up the right colors for whichever theme is active. */
    --bg-cs-overview: linear-gradient(to bottom, var(--bg-overview) 0%, var(--bg-overview) 82%, var(--crosslink-top) 100%);
    --bg-analytics: linear-gradient(to bottom, #0A0A0A 0%, #0A0A0A 82%, var(--crosslink-top) 100%);
    --bg-crosslink: linear-gradient(to bottom, var(--crosslink-top) 0%, var(--crosslink-top) 82%, #000 100%);
    --card-bg: #1A1A1A;
    --border-light: rgba(255, 255, 255, 0.1);
    --text-muted: #C4C4C4;
    --text-faint: #9A9A9A;
    --text-strong: #F2F2F2;
    --shadow-nav-scrolled: 0 8px 24px rgba(0, 0, 0, 0.5);
}

[data-theme="light"] {
    --bg-body: #FFFFFF;
    --text-body: #000;
    --bg-overview: #fff;
    --crosslink-top: #F7F7F7;
    /* Flat overrides, not gradients — Analytics stays a hard step against
       Overview's white (Analytics is always dark, matching Hero's own
       un-blended step into Overview), and Crosslink stays a hard step
       into the invariant-black footer rather than dragging a light
       section all the way down to black. */
    --bg-analytics: #0A0A0A;
    --bg-crosslink: #F7F7F7;
    --card-bg: #FAFAFA;
    --border-light: #ECECEC;
    --text-muted: #4D4D4D;
    --text-faint: #8A8A8A;
    --text-strong: #000;
    --shadow-nav-scrolled: 0 8px 24px rgba(0, 0, 0, 0.3);
}

html {
    /* No scroll-behavior:smooth — Lenis (see the module script in each
       page's <head>) owns all scroll easing site-wide, same as
       redesign.html. Native smooth scroll and Lenis fighting over
       easing is what "not feeling the same as the main page" would
       actually be. */
    overflow-x: hidden;
}

body {
    background: var(--bg-body);
    color: var(--text-body);
    font-family: 'Poppins', sans-serif;
}

a {
    text-decoration: none;
    color: inherit;
}

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

/* Branded fallback focus ring — see the matching comment in redesign.html.
   Keeps keyboard focus on-brand instead of the browser's default blue. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
[tabindex]:focus-visible {
    outline: 2px solid #FFD500;
    outline-offset: 3px;
    border-radius: 2px;
}

::selection {
    background: #FFD500;
    color: #000;
}

/* ===================================================== */
/* CUSTOM CURSOR — GeoDrops pin, mouse/pointer devices only */
/* Shared by all 6 case-study pages via this one file — see the matching,
   more detailed comment in redesign.html for the full rationale (why the
   asset is a dedicated black-outlined regeneration, the tip-pivot math,
   why translate/rotate are separate standalone properties). No .globe-
   frame equivalent here — these pages have no live map/drag surface. */
/* ===================================================== */

@media (hover: hover) and (pointer: fine) {
    * {
        cursor: none !important;
    }
}

#geoCursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 22px;
    height: auto;
    pointer-events: none;
    z-index: 10000;
    opacity: 0;
    user-select: none;
    transform-origin: 50% 98.3%;
    rotate: 162deg;
    translate: -100px -100px;
    transition: rotate 0.25s cubic-bezier(0.23, 1, 0.32, 1), opacity 0.2s ease;
    will-change: translate, rotate;
}

#geoCursor.is-active {
    opacity: 1;
}

#geoCursor.is-pointer {
    rotate: 0deg;
}

@media (prefers-reduced-motion: reduce) {
    #geoCursor {
        transition: opacity 0.15s ease;
    }
}

ul {
    list-style: none;
}

/* ===================================================== */
/* NAVIGATION (identical to the main site) */
/* ===================================================== */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    /* One above .nav-menu-panel's own children can ever reach on their
       own (see .nav-container below) - matches the main site's .nav,
       bumped for the same reason: .nav-menu-panel is a child of .nav and
       can't out-stack a sibling context by itself. */
    z-index: 1000;
    background: #000;
    box-shadow: 0 0 0 rgba(0, 0, 0, 0);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.nav.is-scrolled {
    box-shadow: var(--shadow-nav-scrolled);
}

/* Nav itself is always black regardless of theme, so this can stay a
   plain white-on-transparent treatment in both — no token needed. */
.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: transparent;
    color: #FFD500;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.25s ease, transform 0.25s ease;
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

.theme-toggle:active {
    transform: translateY(0) scale(0.94);
}

.theme-toggle-icon {
    width: 18px;
    height: 18px;
}

.theme-toggle-icon--moon {
    display: none;
}

[data-theme="light"] .theme-toggle-icon--sun {
    display: none;
}

[data-theme="light"] .theme-toggle-icon--moon {
    display: block;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: height 0.3s ease;
    /* Above .nav-menu-panel (a later, otherwise higher-stacking sibling
       within .nav's own stacking context) so the hamburger stays
       clickable/visible while the panel is open instead of being covered
       by it - matches the main site's .nav-container exactly. */
    position: relative;
    z-index: 2;
}

.nav.is-scrolled .nav-container {
    height: 64px;
}

.nav-logo {
    height: 76px;
    flex-shrink: 0;
    transition: height 0.3s ease;
}

/* Circular icon-only mark, swapped in for the full wordmark on mobile
   only (see the 640px query below) - hidden here so desktop/tablet keep
   the full "GEODROPS" logo. Same apple-touch-icon.png the main site
   reuses for this, not a new asset. */
.nav-logo-icon {
    display: none;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
}

.nav.is-scrolled .nav-logo {
    height: 56px;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
    flex-shrink: 0;
}

.nav-btn {
    background: #FFD500;
    color: #000;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.03em;
    padding: 0.9rem 1.8rem;
    border-radius: 999px;
    transition: transform 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-btn:hover {
    transform: translateY(-2px);
}

.nav-btn:active {
    transform: translateY(0) scale(0.96);
}

/* Icon-only on mobile (see the 640px query below) - hidden here so
   desktop/tablet keep the plain text button. */
.nav-btn-icon {
    display: none;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* Hamburger toggle for .nav-menu-panel below - section jump-links live
   behind this instead of inline in the bar, same reasoning as the main
   site's nav. */
.nav-menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: transparent;
    cursor: pointer;
    flex-shrink: 0;
    margin-right: 2rem;
    transition: background 0.25s ease, transform 0.25s ease;
}

.nav-menu-toggle:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

.nav-menu-toggle:active {
    transform: translateY(0) scale(0.94);
}

.nav-menu-toggle-bar {
    display: block;
    width: 18px;
    height: 2px;
    background: #FFD500;
    border-radius: 1px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-menu-toggle.is-open .nav-menu-toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-menu-toggle.is-open .nav-menu-toggle-bar:nth-child(2) {
    opacity: 0;
}

.nav-menu-toggle.is-open .nav-menu-toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Desktop/tablet default: a fixed right-side drawer, not a full-width
   dropdown - rest of the page stays visible to its left. Reverted to a
   full-width top dropdown at 968px and under (see that query), same
   breakpoint behavior as the main site. */
.nav-menu-panel {
    position: fixed;
    top: 0;
    right: 0;
    left: auto;
    /* Below .nav-container's 2 (see that rule's comment) so the
       hamburger stays on top of the panel instead of getting covered by
       it once open. */
    z-index: 1;
    width: min(380px, 100vw);
    height: 100dvh;
    display: flex;
    flex-direction: column;
    background: #000;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: -24px 0 48px rgba(0, 0, 0, 0.35);
    padding: 6rem 2rem 2rem;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateX(100%);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0s linear 0.3s;
}

.nav-menu-panel.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.nav-menu-link {
    color: #fff;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.85rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: opacity 0.3s ease;
}

.nav-menu-link:last-child {
    border-bottom: none;
}

.nav-menu-link:hover {
    opacity: 0.7;
}

/* ===================================================== */
/* BACK TO TOP */
/* ===================================================== */

.back-to-top {
    position: fixed;
    right: 2rem;
    bottom: 2rem;
    z-index: 900;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: #000;
    color: #FFD500;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(12px);
    transition: opacity 0.3s ease, transform 0.3s ease,
                visibility 0s linear 0.3s, background 0.25s ease, color 0.25s ease;
}

.back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
    transition: opacity 0.3s ease, transform 0.3s ease,
                visibility 0s linear 0s, background 0.25s ease, color 0.25s ease;
}

.back-to-top:hover {
    background: #FFD500;
    color: #000;
    transform: translateY(-3px);
}

.back-to-top:active {
    transform: scale(0.92);
}

.back-to-top:focus-visible {
    outline: 3px solid #FFD500;
    outline-offset: 3px;
}

.back-to-top svg {
    width: 20px;
    height: 20px;
}

.btn {
    padding: 1rem 2.2rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
    transition: transform 0.3s ease;
    border: 2px solid #FFD500;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    cursor: pointer;
}

.btn-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.btn-yellow {
    background: #FFD500;
    color: #000;
}

.btn-outline {
    background: #fff;
    color: #000;
}

.btn:hover {
    transform: translateY(-3px);
}

.btn:active {
    transform: translateY(-1px) scale(0.97);
}

.btn:focus-visible,
.nav-btn:focus-visible,
.cs-breadcrumb:focus-visible,
.cs-nav-strip-link:focus-visible,
.footer-col-links a:focus-visible,
.footer-legal-links a:focus-visible,
.social-links a:focus-visible {
    outline: 3px solid #FFD500;
    outline-offset: 3px;
}

/* ===================================================== */
/* BREADCRUMB */
/* ===================================================== */

.cs-breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #B8B8B8;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 2.4rem;
    transition: color 0.25s ease, gap 0.25s ease;
}

.cs-breadcrumb svg {
    width: 16px;
    height: 16px;
    transition: transform 0.25s ease;
}

.cs-breadcrumb:hover {
    color: #FFD500;
    gap: 0.7rem;
}

.cs-breadcrumb:hover svg {
    transform: translateX(-3px);
}

/* ===================================================== */
/* HERO */
/* ===================================================== */

@keyframes csFadeUp {
    from { opacity: 0; transform: translateY(22px); }
    to { opacity: 1; transform: translateY(0); }
}

.cs-hero {
    background: var(--bg-body);
    color: var(--text-body);
    padding: 148px 2rem 5rem;
    position: relative;
    overflow: hidden;
}

.cs-hero::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 46%;
    aspect-ratio: 1;
    background: radial-gradient(circle, rgba(255, 213, 0, 0.16) 0%, rgba(255, 213, 0, 0) 70%);
    pointer-events: none;
}

.cs-hero-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.cs-hero-text {
    animation: csFadeUp 0.7s ease 0.05s both;
}

.cs-tag {
    display: inline-block;
    background: #D50C6D;
    color: #fff;
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 0.07em;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    margin-bottom: 1.6rem;
}

.cs-hero h1 {
    font-size: clamp(2.4rem, 5vw, 3.6rem);
    font-weight: 800;
    line-height: 1.08;
    margin-bottom: 1rem;
    text-wrap: balance;
}

.cs-hero-date {
    color: #FFD500;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.02em;
}

.cs-hero-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 2.2rem;
    margin-top: 2.6rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-light);
}

.cs-hero-highlight-value {
    font-size: 2rem;
    font-weight: 800;
    color: #FFD500;
    line-height: 1;
}

.cs-hero-highlight-value.cs-text-value {
    font-size: 1.4rem;
}

.cs-hero-highlight-label {
    font-size: 0.78rem;
    color: var(--text-faint);
    margin-top: 0.4rem;
    max-width: 190px;
    line-height: 1.4;
}

.cs-hero-visual {
    animation: csFadeUp 0.8s ease 0.2s both;
    display: flex;
    justify-content: center;
}

/* Browser-chrome frame — used for website/landing-page screenshots
   (Sleep Token, Tate McRae) so a plain rectangular screenshot reads
   as "a real site" rather than a floating image. */
.cs-browser-frame {
    width: 100%;
    max-width: 620px;
    background: #1A1A1A;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 40px 80px rgba(10, 8, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.cs-browser-chrome {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0.7rem 0.9rem;
}

.cs-browser-chrome span {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
}

.cs-browser-frame img {
    width: 100%;
    display: block;
}

/* Phone frame — used for in-app/Instagram screenshots (Marnz Malone). */
.cs-phone-frame {
    width: 100%;
    max-width: 260px;
    aspect-ratio: 603 / 1311;
    background: linear-gradient(155deg, #2b2b2b, #0a0a0a);
    border-radius: 42px;
    padding: 12px;
    box-shadow: 0 40px 80px rgba(10, 8, 0, 0.55);
}

.cs-phone-frame-screen {
    width: 100%;
    height: 100%;
    border-radius: 30px;
    overflow: hidden;
    background: #000;
}

.cs-phone-frame-screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Photo frame — used for real-world event photography (GAPT, Sasha
   Keable) — a simple rounded, deep-shadow print rather than a device
   mockup, since these are genuine photos, not screenshots. */
.cs-photo-frame {
    width: 100%;
    max-width: 380px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 40px 80px rgba(10, 8, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Stat-led hero visual — used where the source material is a set of
   analytics screenshots rather than one clean hero shot (Twin S). */
.cs-hero-stat-block {
    width: 100%;
    max-width: 460px;
    background: linear-gradient(155deg, rgba(255, 213, 0, 0.1), rgba(255, 213, 0, 0.02));
    border: 1px solid rgba(255, 213, 0, 0.3);
    border-radius: 20px;
    padding: 3rem 2.5rem;
    text-align: center;
}

.cs-hero-stat-block .cs-hero-stat-headline {
    font-size: clamp(2.6rem, 6vw, 3.6rem);
    font-weight: 800;
    color: #FFD500;
    line-height: 1;
}

.cs-hero-stat-block .cs-hero-stat-sub {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-top: 1rem;
    line-height: 1.5;
}

/* ===================================================== */
/* OVERVIEW — Campaign / Results / Objectives / Strategy */
/* ===================================================== */

.cs-overview {
    padding: 6rem 2rem;
    /* Blends into Crosslink's color by default (the two are adjacent on
       5 of the 6 pages) — overridden flat below on the one page
       (Twin S) where Analytics sits between them instead. */
    background: var(--bg-cs-overview);
}

/* Twin S only: Analytics (always dark) follows Overview directly, not
   Crosslink — no blend needed/wanted here, same reasoning as Hero's own
   un-blended step into Overview (see the theme tokens comment above).
   :has() degrades gracefully — without it this page just gets the
   default blend-toward-Crosslink instead, which is a much smaller
   visual miss than the reverse would be. */
body:has(.cs-analytics) .cs-overview {
    background: var(--bg-overview);
}

.cs-overview-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 4rem;
}

.cs-col {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.6s cubic-bezier(0.23, 1, 0.32, 1), transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.cs-col.revealed {
    opacity: 1;
    transform: translateY(0);
}

.cs-eyebrow-label {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #F32689;
    margin-bottom: 0.9rem;
}

.cs-col h2,
.cs-crosslink h2,
.cs-analytics-header h2 {
    text-wrap: balance;
}

.cs-col h2 {
    font-size: clamp(1.7rem, 3vw, 2.2rem);
    font-weight: 800;
    margin-bottom: 1.4rem;
}

.cs-body p {
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--text-muted);
    margin-bottom: 1.2rem;
    max-width: 560px;
}

.cs-body p:last-child {
    margin-bottom: 0;
}

.cs-results {
    margin-top: 2.6rem;
    padding-top: 2.2rem;
    border-top: 1px solid var(--border-light);
}

.cs-results-title {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-faint);
    margin-bottom: 1.4rem;
}

.cs-results-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2.2rem;
}

.cs-result-value {
    font-size: 2.1rem;
    font-weight: 800;
    color: var(--text-strong);
    line-height: 1;
}

.cs-result-value.cs-text-value {
    font-size: 1.3rem;
}

.cs-result-label {
    font-size: 0.82rem;
    color: var(--text-faint);
    margin-top: 0.5rem;
    max-width: 200px;
    line-height: 1.4;
}

/* Right column: Objectives / Strategy / This approach ensured,
   stacked as three distinct blocks inside one bordered card —
   mirrors the source PDF's own three-list layout. */
.cs-lists-card {
    background: var(--card-bg);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    padding: 2.6rem;
}

.cs-list-block + .cs-list-block {
    margin-top: 2.4rem;
    padding-top: 2.4rem;
    border-top: 1px solid var(--border-light);
}

.cs-list-block h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.cs-list-intro {
    font-size: 0.92rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.cs-list-block ul {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.cs-list-block li {
    position: relative;
    padding-left: 1.4rem;
    font-size: 0.96rem;
    line-height: 1.55;
    color: var(--text-strong);
}

.cs-list-block li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #FFD500;
}

/* ===================================================== */
/* ANALYTICS GALLERY (Twin S — Bush Hall only) */
/* ===================================================== */

.cs-analytics {
    /* Dark: blends its own last 18% into Crosslink's color, same
       convention as every other section-to-section handoff. Light:
       flat — stays a hard step into Crosslink (see the theme tokens
       comment above for why). color:#fff stays literal either way —
       this section always reads dark regardless of theme. */
    background: var(--bg-analytics);
    color: #fff;
    padding: 5rem 2rem;
}

.cs-analytics-inner {
    max-width: 1400px;
    margin: 0 auto;
}

.cs-analytics-header {
    max-width: 640px;
    margin-bottom: 3rem;
}

.cs-analytics-header h2 {
    font-size: clamp(1.6rem, 3vw, 2.1rem);
    font-weight: 800;
}

.cs-analytics-header p {
    color: #B8B8B8;
    font-size: 0.98rem;
    margin-top: 0.7rem;
    line-height: 1.6;
}

.cs-analytics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.6rem;
    align-items: start;
}

.cs-analytics-card {
    background: #fff;
    border-radius: 16px;
    padding: 1.2rem;
    box-shadow: 0 24px 48px rgba(10, 8, 0, 0.4);
}

.cs-analytics-card img {
    border-radius: 6px;
    /* Centers the image within its card whenever the card (or, for the
       strip below, the full grid row) is wider than the image's own cap
       — see the per-card max-width rules below for why. */
    margin: 0 auto;
}

/* These three images' native resolution (confirmed against the source
   PDF's own embedded copies — re-extracting produces byte-identical
   dimensions, there's no higher-res version to pull) is lower than the
   grid was stretching them to, which is what was actually causing the
   softness — an image shown larger than its native pixels always looks
   soft, that's not a compression/extraction artifact. Capping each at
   exactly native width wasn't quite enough on its own — still read as
   soft, so these are now capped at 75% of native (430/348/826 → roughly
   323/261/620) instead: showing an image *below* its native resolution
   is the one sizing that's guaranteed never to look soft, since
   downscaling only discards detail rather than inventing it the way
   upscaling does. The grid may show them well below their card's full
   width now (centered via the rule above) rather than stretched. */
.cs-analytics-grid > .cs-analytics-card:nth-child(1) img {
    max-width: 323px;
}

.cs-analytics-grid > .cs-analytics-card:nth-child(2) img {
    max-width: 261px;
}

.cs-analytics-strip {
    grid-column: 1 / -1;
}

.cs-analytics-strip img {
    max-width: 620px;
}

/* ===================================================== */
/* CROSS-LINK / FOOTER CTA */
/* ===================================================== */

.cs-crosslink {
    padding: 5rem 2rem;
    /* Dark: blends its own last 18% into the invariant-black footer.
       Light: flat — stays a hard step into footer rather than dragging
       a light section all the way down to black (see the theme tokens
       comment above). Never touches footer's own background either
       way. */
    background: var(--bg-crosslink);
    text-align: center;
}

.cs-crosslink-inner {
    max-width: 640px;
    margin: 0 auto;
}

.cs-crosslink h2 {
    font-size: clamp(1.6rem, 3vw, 2.1rem);
    font-weight: 800;
    margin-bottom: 0.8rem;
}

.cs-crosslink p {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 2rem;
}

.cs-crosslink-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cs-nav-strip {
    max-width: 1400px;
    margin: 3.5rem auto 0;
    padding-top: 2.5rem;
    border-top: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    gap: 1.5rem;
    text-align: left;
}

.cs-nav-strip-link {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    max-width: 260px;
    transition: opacity 0.25s ease;
}

.cs-nav-strip-link:hover {
    opacity: 0.65;
}

.cs-nav-strip-link.cs-next {
    text-align: right;
    align-items: flex-end;
    margin-left: auto;
}

.cs-nav-strip-eyebrow {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-faint);
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.cs-nav-strip-arrow {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.cs-nav-strip-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-strong);
}

/* ===================================================== */
/* FOOTER (identical to the main site) */
/* ===================================================== */

footer {
    background: #000;
    color: #fff;
    padding: 4rem 2rem 2rem;
}

.footer-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 3rem;
    flex-wrap: wrap;
    padding-bottom: 3rem;
}

.footer-brand img {
    margin-top: -20px;
}

.footer-brand p {
    font-size: 0.95rem;
    color: #B8B8B8;
    margin-top: 0.8rem;
}

.footer-col-title {
    color: #FFD500;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    margin-bottom: 1.2rem;
}

.footer-col-links {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.footer-col-links a {
    color: #fff;
    font-size: 0.95rem;
    transition: opacity 0.3s ease;
}

.footer-col-links a:hover {
    opacity: 0.7;
}

.social-links {
    padding-right: 5rem;
    display: flex;
    gap: 0.8rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: 1px solid #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.3s ease;
}

.social-links a:hover {
    border-color: #FFD500;
}

.social-links svg {
    width: 18px;
    height: 18px;
}

.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-bottom p {
    font-size: 0.85rem;
    color: #B8B8B8;
}

.footer-legal-links {
    display: flex;
    gap: 1.5rem;
}

.footer-legal-links a {
    color: #B8B8B8;
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

.footer-legal-links a:hover {
    color: #FFD500;
}

/* ===================================================== */
/* RESPONSIVE */
/* ===================================================== */

@media (max-width: 968px) {

    .nav-menu-toggle {
        margin-right: 0;
    }

    /* Reverts the desktop right-side drawer (see the base .nav-menu-panel
       rule) back to the original full-width top dropdown - matches the
       main site's own breakpoint behavior for this panel. */
    .nav-menu-panel {
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        width: auto;
        height: auto;
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        box-shadow: var(--shadow-nav-scrolled);
        padding: 0.5rem 2rem 1rem;
        transform: translateY(-8px);
    }

    .nav-menu-panel.is-open {
        transform: translateY(0);
    }

    /* Right-aligned so the items read as hanging off the hamburger
       (which sits at the right edge of the bar) instead of starting from
       the opposite side of the screen - matches the main site's nav. */
    .nav-menu-link {
        text-align: right;
    }

    .cs-hero {
        padding-top: 120px;
    }

    .cs-hero-inner {
        grid-template-columns: 1fr;
        gap: 2.8rem;
    }

    .cs-hero-visual {
        order: -1;
    }

    .cs-overview-inner {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .cs-analytics-grid {
        grid-template-columns: 1fr 1fr;
    }

    .cs-nav-strip {
        flex-direction: column;
    }

    .cs-nav-strip-link.cs-next {
        text-align: left;
        align-items: flex-start;
        margin-left: 0;
    }

}

@media (max-width: 640px) {

    .nav-container {
        padding: 0 1.2rem;
    }

    .nav-links {
        gap: 1rem;
    }

    /* Icon-only download button - matches the circular
       theme-toggle/hamburger footprint either side of it in the
       collapsed mobile bar instead of a wide text pill. Same treatment
       as the main site's nav-btn at this breakpoint. */
    .nav-btn {
        padding: 0;
        width: 40px;
        height: 40px;
        justify-content: center;
    }

    .nav-btn-icon {
        display: block;
    }

    .nav-btn-text {
        display: none;
    }

    /* Circular icon-only mark instead of the full wordmark - see
       .nav-logo-icon's base rule above. */
    .nav-logo-full {
        display: none;
    }

    .nav-logo-icon {
        display: block;
        width: 54px;
        height: 54px;
    }

    .cs-hero {
        padding: 108px 1.25rem 3.5rem;
    }

    .cs-overview,
    .cs-analytics,
    .cs-crosslink {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    .cs-lists-card {
        padding: 1.8rem;
    }

    .cs-hero-highlights {
        gap: 1.6rem;
    }

    .cs-analytics-grid {
        grid-template-columns: 1fr;
    }

    .back-to-top {
        right: 1.2rem;
        bottom: 1.2rem;
    }

    .cs-crosslink-actions {
        flex-direction: column;
    }

    .footer-inner {
        flex-direction: column;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }

}
