/* =========================================================================
   /portfolio — scroll-jacked morphing portfolio.
   Four self-contained mini-sites, each in a different design language.
   No tokens shared between mini-sites. Each one is namespaced by .mini-{name}.
   ========================================================================= */

/* ---------- Self-hosted webfonts (latin subset, woff2) -----------
   All 8 files in /public/assets/fonts/. Variable fonts cover full
   weight ranges so we declare wide font-weight intervals and let the
   browser pick the closest axis position. Total payload: ~236KB. */

@font-face {
    font-family: 'Bebas Neue';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/assets/fonts/bebas-neue.woff2') format('woff2');
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('/assets/fonts/inter.woff2') format('woff2');
}
@font-face {
    font-family: 'JetBrains Mono';
    font-style: normal;
    font-weight: 100 800;
    font-display: swap;
    src: url('/assets/fonts/jetbrains-mono.woff2') format('woff2');
}
@font-face {
    font-family: 'Manrope';
    font-style: normal;
    font-weight: 200 800;
    font-display: swap;
    src: url('/assets/fonts/manrope.woff2') format('woff2');
}
@font-face {
    font-family: 'Playfair Display';
    font-style: normal;
    font-weight: 400 900;
    font-display: swap;
    src: url('/assets/fonts/playfair-display.woff2') format('woff2');
}
@font-face {
    font-family: 'Playfair Display';
    font-style: italic;
    font-weight: 400 900;
    font-display: swap;
    src: url('/assets/fonts/playfair-display-italic.woff2') format('woff2');
}
@font-face {
    font-family: 'Source Sans 3';
    font-style: normal;
    font-weight: 200 900;
    font-display: swap;
    src: url('/assets/fonts/source-sans-3.woff2') format('woff2');
}
@font-face {
    font-family: 'Space Grotesk';
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url('/assets/fonts/space-grotesk.woff2') format('woff2');
}


/* Reset chrome the public layout normally provides — these sections paint
   their own backgrounds full-bleed and ignore the JND container width. */
.portfolio-page {
    margin: 0;
    padding: 0;
    width: 100%;
}

/* The JND header is sticky with a dark blur. We let it float on top of all
   four mini-sites — it acts as a persistent "this is JND" watermark. */
body.public-body { overflow-x: hidden; }

/* =========================================================================
   MORPH OVERLAY
   A single fixed-position overlay that plays effects during the natural
   scroll boundary between two mini-sites. JS toggles boundary-1/2/3 on
   the overlay and sets --progress (0→1) for the active boundary; CSS
   uses --progress to drive each scene. Each scene amplitude follows a
   sin curve so it ramps up to a peak at progress 0.5 then back down,
   leaving the underlying mini-sites visible at the start and end of
   each transition.

   No more sticky pins, no more 200vh placeholder zones — the morph
   happens *over* the natural scroll, and the next mini-site's real
   hero locks at the top of the viewport when the morph completes.
   ========================================================================= */
.portfolio-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none;
    z-index: 50;
    --progress: 0;
    /* sin(progress * π) — peaks at 0.5, zero at 0 and 1 */
    --peak: 0;
    overflow: hidden;
}
.overlay-scene {
    position: absolute; inset: 0;
    display: none;
    overflow: hidden;
}
.portfolio-overlay.boundary-1 .overlay-scene-1,
.portfolio-overlay.boundary-2 .overlay-scene-2,
.portfolio-overlay.boundary-3 .overlay-scene-3 {
    display: block;
}


/* ---------- 1 → 2  Phantom → Polestar  (neon flash + cream wipe) -------- */
/* Two RGB-split bands sweep horizontally from center. White flash peaks
   at the midpoint. A diagonal cream wipe sweeps from left to right
   crossing through the second half of progress. */
.scene-1-rgb-r, .scene-1-rgb-c {
    position: absolute; inset: 0;
    mix-blend-mode: screen;
    opacity: calc(var(--peak) * 0.85);
    will-change: transform;
}
.scene-1-rgb-r {
    background: linear-gradient(90deg, transparent 45%, rgba(255, 43, 214, 0.65) 50%, transparent 55%);
    transform: translateX(calc(-30% + 60% * var(--progress)));
}
.scene-1-rgb-c {
    background: linear-gradient(90deg, transparent 45%, rgba(0, 240, 255, 0.65) 50%, transparent 55%);
    transform: translateX(calc(30% - 60% * var(--progress)));
}
.scene-1-flash {
    position: absolute; inset: 0;
    background: #fff;
    /* sharper peak — peak^4 keeps it tight to mid */
    opacity: calc(var(--peak) * var(--peak) * var(--peak) * var(--peak) * 0.6);
    mix-blend-mode: screen;
}
.scene-1-wipe {
    position: absolute; inset: -10%;
    background: linear-gradient(108deg, transparent 0%, transparent 35%, #f4f1ea 50%, #f4f1ea 100%);
    /* Sweeps from off-screen-right at progress 0 to off-screen-left at progress 1 */
    transform: translateX(calc(70% - 140% * var(--progress)));
    opacity: calc(var(--peak) * 0.95);
}


/* ---------- 2 → 3  Polestar → Halverson  (page unfolds) ----------------- */
/* The two underlying mini-site backgrounds are both warm-light (cream &
   ivory), so a subtle scene reads as "nothing happening." This one
   leans into theatricality: a paper-warm tint floods, three parallel
   brass rule lines draw at staggered speeds, and a giant italic serif
   ampersand punches through the center at peak. */

.scene-2-tint {
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse at center, rgba(246, 241, 231, 0.92) 0%, rgba(245, 230, 200, 0.85) 60%, rgba(169, 134, 72, 0.35) 100%);
    opacity: calc(var(--peak) * 0.95);
}
.scene-2-line {
    position: absolute; left: 0; right: 0;
    height: 3px;
    background: #a98648;
    box-shadow: 0 0 48px rgba(169, 134, 72, 0.7);
    transform-origin: center center;
}
/* Three lines stack with staggered draw timing to feel like a fold */
.scene-2-line-1 {
    top: 50%;
    transform: scaleX(calc(0.04 + 0.96 * var(--peak)));
    opacity: calc(0.4 + 0.6 * var(--peak));
}
.scene-2-line-2 {
    top: calc(50% - 14vh);
    height: 1.5px;
    /* Slower draw — kicks in past progress 0.25 */
    transform: scaleX(calc(max(0, var(--peak) - 0.2) * 1.25));
    opacity: calc(var(--peak) * 0.7);
}
.scene-2-line-3 {
    top: calc(50% + 14vh);
    height: 1.5px;
    transform: scaleX(calc(max(0, var(--peak) - 0.2) * 1.25));
    opacity: calc(var(--peak) * 0.7);
}
.scene-2-amp {
    position: absolute; left: 50%; top: 50%;
    transform: translate(-50%, -50%) scale(calc(0.6 + 0.4 * var(--peak)));
    font-family: 'Playfair Display', serif;
    font-size: clamp(180px, 32vw, 480px);
    font-weight: 400;
    line-height: 1;
    color: #0c1f3a;
    /* Sharper peak — peak^3 keeps the amp tight to mid-progress */
    opacity: calc(var(--peak) * var(--peak) * var(--peak) * 0.92);
    text-shadow: 0 0 80px rgba(169, 134, 72, 0.6);
    pointer-events: none;
    user-select: none;
}
.scene-2-amp em { font-style: italic; color: #a98648; }


/* ---------- 3 → 4  Halverson → Sidechain  (charcoal shutter iris) ------ */
.scene-3-shutter {
    position: absolute; left: 0; right: 0;
    height: 50%;
    background: #1c1a1a;
    will-change: transform;
}
.scene-3-shutter-top {
    top: 0;
    transform: translateY(calc(-100% + 100% * var(--peak)));
}
.scene-3-shutter-bottom {
    bottom: 0;
    transform: translateY(calc(100% - 100% * var(--peak)));
}
.scene-3-glow {
    position: absolute; left: 50%; top: 50%;
    width: 140%; height: 30%;
    transform: translate(-50%, -50%);
    background: radial-gradient(ellipse at center, rgba(255, 122, 69, 0.55), transparent 65%);
    /* Glow appears at peak then fades as the shutter reveals Sidechain */
    opacity: calc(var(--peak) * 0.85);
    mix-blend-mode: screen;
}


/* Reduced motion: hide the overlay entirely. The four mini-sites still
   stack and read fine without dramatic effects. */
@media (prefers-reduced-motion: reduce) {
    .portfolio-overlay { display: none; }
}

/* Mobile: keep the overlay but tame the bigger effects. */
@media (max-width: 720px) {
    .scene-1-rgb-r, .scene-1-rgb-c { opacity: calc(var(--peak) * 0.5); }
    .scene-3-glow { display: none; }
}

.mini-site {
    position: relative;
    width: 100%;
    overflow: hidden;
    /* Layout containment: tells the browser this section's internals
       can't affect the outer document layout. Helps perf on a 900vh page. */
    contain: layout paint;
}

/* Entry animations driven by IntersectionObserver in portfolio.js.
   Sections start slightly down + transparent, settle when revealed. */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}
.reveal.is-revealed {
    opacity: 1;
    transform: translateY(0);
    will-change: auto;
}
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
}


/* =========================================================================
   1. PHANTOM SESSIONS — cyberpunk record label
   Palette: hot magenta / cyan / acid on near-black. Type: Bebas + JBMono.
   ========================================================================= */
.mini-phantom {
    --p-bg:        #0d0014;
    --p-bg-2:      #1a0028;
    --p-fg:        #f0e8ff;
    --p-fg-mute:   #8a7aa8;
    --p-magenta:   #ff2bd6;
    --p-cyan:      #00f0ff;
    --p-acid:      #c8ff00;
    --p-line:      rgba(255, 43, 214, 0.3);

    background: var(--p-bg);
    color: var(--p-fg);
    font-family: 'JetBrains Mono', ui-monospace, Consolas, monospace;
    padding: 120px 0 80px;
}

.phantom-scanlines {
    position: absolute; inset: 0;
    pointer-events: none; z-index: 1;
    background: repeating-linear-gradient(
        180deg,
        transparent 0px,
        transparent 2px,
        rgba(255, 43, 214, 0.025) 3px,
        transparent 4px
    );
}
.mini-phantom > * { position: relative; z-index: 2; }

/* Hero */
.phantom-hero {
    padding: 40px 32px 0;
    max-width: 1280px;
    margin: 0 auto;
}
.phantom-hero-grid {
    display: grid;
    gap: 28px;
}
.phantom-hero-meta {
    display: flex; gap: 24px; flex-wrap: wrap;
    font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
}
.phantom-tag { color: var(--p-cyan); }
.phantom-tag-live {
    color: var(--p-acid);
    display: inline-flex; align-items: center; gap: 8px;
}
.phantom-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--p-acid);
    box-shadow: 0 0 8px var(--p-acid);
    animation: phantom-pulse 1.4s infinite;
}
@keyframes phantom-pulse {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.3; }
}

.phantom-wordmark {
    font-family: 'Bebas Neue', Impact, sans-serif;
    font-size: clamp(72px, 16vw, 220px);
    line-height: 0.86;
    margin: 0;
    letter-spacing: 0.005em;
    color: var(--p-fg);
}
.phantom-wordmark .phantom-glitch { display: block; }
.phantom-glitch { position: relative; }
.phantom-glitch::before, .phantom-glitch::after {
    content: attr(data-text);
    position: absolute; top: 0; left: 0;
    width: 100%;
    overflow: hidden;
}
.phantom-glitch::before {
    color: var(--p-magenta);
    transform: translate(-3px, 0);
    mix-blend-mode: screen;
    clip-path: inset(0 0 50% 0);
}
.phantom-glitch::after {
    color: var(--p-cyan);
    transform: translate(3px, 0);
    mix-blend-mode: screen;
    clip-path: inset(50% 0 0 0);
}
.phantom-glitch-2 {
    color: var(--p-magenta);
    -webkit-text-stroke: 1px var(--p-magenta);
    color: transparent;
}
.phantom-glitch-2::before, .phantom-glitch-2::after { display: none; }

.phantom-tagline {
    font-size: 15px; line-height: 1.6;
    max-width: 600px;
    color: var(--p-fg-mute);
    margin: 0;
}
.phantom-hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 8px; }

.phantom-btn {
    display: inline-block;
    padding: 12px 22px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px; font-weight: 500;
    letter-spacing: 0.15em; text-transform: uppercase;
    color: var(--p-fg);
    background: transparent;
    border: 1px solid var(--p-cyan);
    text-decoration: none;
    transition: all 0.12s ease;
    cursor: pointer;
}
.phantom-btn:hover {
    background: var(--p-cyan);
    color: var(--p-bg);
    box-shadow: 0 0 20px var(--p-cyan);
}
.phantom-btn-primary {
    background: var(--p-magenta);
    border-color: var(--p-magenta);
    color: var(--p-bg);
}
.phantom-btn-primary:hover {
    background: var(--p-acid);
    border-color: var(--p-acid);
    color: var(--p-bg);
    box-shadow: 0 0 22px var(--p-acid);
}

/* Marquee */
.phantom-marquee {
    margin: 60px 0 0;
    padding: 12px 0;
    border-top: 1px solid var(--p-line);
    border-bottom: 1px solid var(--p-line);
    overflow: hidden;
    background: rgba(255, 43, 214, 0.05);
}
.phantom-marquee-track {
    display: flex; gap: 28px;
    white-space: nowrap;
    animation: phantom-marquee 38s linear infinite;
    font-size: 12px; letter-spacing: 0.2em;
    color: var(--p-acid);
    text-transform: uppercase;
}
.phantom-marquee-track > span:nth-child(even) { color: var(--p-magenta); }
@keyframes phantom-marquee {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Section */
.phantom-section {
    max-width: 1280px;
    margin: 100px auto 0;
    padding: 0 32px;
}
.phantom-section-head { margin-bottom: 28px; }
.phantom-eyebrow {
    display: block;
    font-size: 11px; letter-spacing: 0.25em;
    color: var(--p-cyan); text-transform: uppercase;
    margin-bottom: 8px;
}
.phantom-h2 {
    font-family: 'Bebas Neue', Impact, sans-serif;
    font-size: clamp(34px, 5vw, 56px);
    line-height: 1.0;
    margin: 0;
    letter-spacing: 0.01em;
    color: var(--p-fg);
}
.phantom-h2-cta { color: var(--p-acid); }

/* Roster */
.phantom-roster {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1px;
    background: var(--p-line);
    border: 1px solid var(--p-line);
}
.phantom-artist {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    grid-column-gap: 14px;
    padding: 24px 22px;
    background: var(--p-bg);
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
    color: var(--p-fg);
}
.phantom-artist:hover {
    background: var(--p-magenta);
    color: var(--p-bg);
}
.phantom-artist:hover .phantom-artist-tag,
.phantom-artist:hover .phantom-artist-num { color: var(--p-bg); }
.phantom-artist-num {
    grid-row: 1 / 3;
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    color: var(--p-cyan);
    align-self: start;
}
.phantom-artist-name {
    font-family: 'Bebas Neue', Impact, sans-serif;
    font-size: 22px;
    letter-spacing: 0.02em;
}
.phantom-artist-tag {
    font-size: 11px;
    color: var(--p-fg-mute);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* Release */
.phantom-release {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}
@media (max-width: 720px) { .phantom-release { grid-template-columns: 1fr; } }

.phantom-release-art {
    display: flex; align-items: center; justify-content: center;
    aspect-ratio: 1;
    background: linear-gradient(135deg, var(--p-bg-2) 0%, var(--p-bg) 100%);
    border: 1px solid var(--p-line);
    position: relative;
}
.phantom-release-art::before {
    content: 'PS047';
    position: absolute; top: 14px; left: 18px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px; letter-spacing: 0.3em;
    color: var(--p-cyan); opacity: 0.7;
}
.phantom-cassette {
    width: 70%; aspect-ratio: 1.6;
    background: #1a0028;
    border: 2px solid var(--p-magenta);
    border-radius: 6px;
    position: relative;
    box-shadow: 0 0 60px rgba(255, 43, 214, 0.3);
}
.phantom-cassette-window {
    position: absolute; top: 14%; left: 8%; right: 8%; height: 32%;
    background: var(--p-bg);
    border: 1px solid var(--p-cyan);
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 12px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px; letter-spacing: 0.1em;
    color: var(--p-cyan);
}
.phantom-cassette-spool {
    position: absolute; bottom: 14%; left: 18%;
    width: 18%; aspect-ratio: 1;
    border-radius: 50%;
    border: 2px solid var(--p-acid);
    background: var(--p-bg);
}
.phantom-cassette-spool-r { left: auto; right: 18%; }

.phantom-tracks {
    list-style: none; margin: 0; padding: 0;
}
.phantom-tracks li {
    display: grid;
    grid-template-columns: 36px 1fr auto;
    gap: 14px;
    padding: 10px 0;
    border-bottom: 1px solid var(--p-line);
    font-size: 13px;
    align-items: baseline;
}
.phantom-track-num { color: var(--p-cyan); font-size: 11px; letter-spacing: 0.1em; }
.phantom-track-title { color: var(--p-fg); letter-spacing: 0.05em; }
.phantom-track-time { color: var(--p-fg-mute); font-size: 11px; }

.phantom-release-buy {
    margin-top: 24px;
    display: flex; flex-direction: column; gap: 10px;
    align-items: flex-start;
}
.phantom-price {
    font-size: 12px; letter-spacing: 0.12em;
    color: var(--p-acid); text-transform: uppercase;
}
.phantom-price-alt { color: var(--p-cyan); }

/* Archive */
.phantom-archive {
    border: 1px solid var(--p-line);
    background: rgba(255,255,255,0.02);
}
.phantom-archive-row {
    display: grid;
    grid-template-columns: 60px 180px 1fr 100px 40px;
    gap: 14px;
    padding: 14px 22px;
    border-bottom: 1px solid var(--p-line);
    font-size: 12px;
    align-items: center;
    transition: background 0.12s ease;
}
.phantom-archive-row:last-child { border-bottom: none; }
.phantom-archive-head {
    background: rgba(0, 240, 255, 0.05);
    color: var(--p-cyan);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-size: 10px;
}
.phantom-archive-row:not(.phantom-archive-head):hover {
    background: rgba(255, 43, 214, 0.08);
}
.phantom-archive-action {
    color: var(--p-magenta);
    text-align: right;
    font-size: 14px;
}
@media (max-width: 720px) {
    .phantom-archive-row {
        grid-template-columns: 1fr 40px;
        gap: 4px;
    }
    .phantom-archive-row > span:nth-child(1),
    .phantom-archive-row > span:nth-child(4) { display: none; }
}

/* Subscribe */
.phantom-cta { padding-top: 80px; padding-bottom: 40px; }
.phantom-form {
    display: flex; gap: 10px; max-width: 540px; margin-top: 24px;
    flex-wrap: wrap;
}
.phantom-form input {
    flex: 1; min-width: 240px;
    padding: 14px 18px;
    background: var(--p-bg-2);
    border: 1px solid var(--p-cyan);
    color: var(--p-fg);
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
}
.phantom-form input::placeholder { color: var(--p-fg-mute); }
.phantom-form input:focus { outline: 2px solid var(--p-acid); outline-offset: 2px; }


/* =========================================================================
   2. POLESTAR ANALYTICS — bold professional SaaS
   Palette: deep indigo / electric coral / cream. Type: Space Grotesk + Inter.
   ========================================================================= */
.mini-polestar {
    --pol-ink:      #1a1f3a;
    --pol-ink-2:    #0e1228;
    --pol-coral:    #ff5e5e;
    --pol-cream:    #f4f1ea;
    --pol-paper:    #ffffff;
    --pol-mute:     #5d6585;
    --pol-line:     #e5e2db;

    background: var(--pol-cream);
    color: var(--pol-ink);
    font-family: 'Inter', -apple-system, sans-serif;
    padding: 100px 0;
}
.polestar-container {
    max-width: 1180px; margin: 0 auto; padding: 0 32px;
}
.polestar-eyebrow {
    display: inline-block;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 13px; font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--pol-coral);
    margin-bottom: 14px;
    text-transform: uppercase;
}
.polestar-eyebrow-light { color: var(--pol-mute); }

.polestar-h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(44px, 6.5vw, 84px);
    line-height: 1.02;
    letter-spacing: -0.025em;
    font-weight: 700;
    margin: 0 0 22px;
    color: var(--pol-ink);
    max-width: 14ch;
}
.polestar-h1-accent { color: var(--pol-coral); }

.polestar-h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.1;
    letter-spacing: -0.02em;
    font-weight: 700;
    margin: 0 0 28px;
    color: var(--pol-ink);
    max-width: 18ch;
}

.polestar-lede {
    font-size: 18px; line-height: 1.55;
    color: var(--pol-mute);
    max-width: 56ch;
    margin: 0 0 32px;
}

.polestar-hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 64px; }
.polestar-btn {
    display: inline-block;
    padding: 14px 26px;
    font-family: 'Inter', sans-serif;
    font-size: 15px; font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.15s ease;
    cursor: pointer; border: none;
}
.polestar-btn-primary {
    background: var(--pol-ink);
    color: var(--pol-paper);
}
.polestar-btn-primary:hover {
    background: var(--pol-coral);
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(255, 94, 94, 0.3);
}
.polestar-btn-ghost {
    background: transparent;
    color: var(--pol-ink);
    border: 1.5px solid var(--pol-ink);
}
.polestar-btn-ghost:hover { background: var(--pol-ink); color: var(--pol-paper); }
.polestar-btn-large { font-size: 17px; padding: 18px 36px; }

/* Dashboard mockup */
.polestar-dashboard {
    background: var(--pol-paper);
    border-radius: 16px;
    box-shadow: 0 32px 80px rgba(26, 31, 58, 0.18);
    overflow: hidden;
    border: 1px solid var(--pol-line);
}
.polestar-dashboard-bar {
    display: flex; gap: 8px;
    padding: 14px 18px;
    background: var(--pol-cream);
    border-bottom: 1px solid var(--pol-line);
}
.polestar-dashboard-bar span {
    width: 12px; height: 12px; border-radius: 50%;
    background: var(--pol-line);
}
.polestar-dashboard-bar span:nth-child(1) { background: #ff605c; }
.polestar-dashboard-bar span:nth-child(2) { background: #ffbd44; }
.polestar-dashboard-bar span:nth-child(3) { background: #00ca4e; }
.polestar-dashboard-body { padding: 32px; }
.polestar-dash-stat {
    display: flex; align-items: baseline; gap: 18px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}
.polestar-dash-label { font-size: 13px; color: var(--pol-mute); }
.polestar-dash-value {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 38px; font-weight: 700;
    color: var(--pol-ink);
    letter-spacing: -0.02em;
}
.polestar-dash-trend { font-size: 13px; font-weight: 600; }
.polestar-trend-up { color: #1a8c4a; }
.polestar-dash-chart {
    height: 80px; color: var(--pol-coral); margin-bottom: 22px;
}
.polestar-dash-chart svg { width: 100%; height: 100%; }
.polestar-dash-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}
.polestar-dash-cell {
    padding: 14px;
    background: var(--pol-cream);
    border-radius: 8px;
}
.polestar-dash-cell span {
    display: block;
    font-size: 11px; color: var(--pol-mute);
    margin-bottom: 4px;
    text-transform: uppercase; letter-spacing: 0.06em;
}
.polestar-dash-cell strong {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 22px; font-weight: 700;
    color: var(--pol-ink);
}

/* Stat band */
.polestar-stat-band {
    background: var(--pol-ink);
    color: var(--pol-paper);
    padding: 80px 0;
    margin: 100px 0;
}
.polestar-stat-band .polestar-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}
@media (max-width: 720px) {
    .polestar-stat-band .polestar-container { grid-template-columns: 1fr; gap: 30px; }
}
.polestar-stat strong {
    display: block;
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(54px, 8vw, 88px);
    line-height: 1;
    color: var(--pol-coral);
    margin-bottom: 8px;
    letter-spacing: -0.03em;
}
.polestar-stat span {
    font-size: 17px; line-height: 1.4;
    color: rgba(255,255,255,0.78);
    max-width: 36ch;
    display: block;
}

/* Features */
.polestar-features { padding: 60px 0; }
.polestar-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-top: 16px;
}
@media (max-width: 720px) { .polestar-feature-grid { grid-template-columns: 1fr; } }
.polestar-feature {
    background: var(--pol-paper);
    border: 1px solid var(--pol-line);
    border-radius: 12px;
    padding: 32px;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.polestar-feature:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 40px rgba(26, 31, 58, 0.12);
}
.polestar-feature-icon {
    width: 48px; height: 48px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 8px;
    background: var(--pol-coral);
    color: var(--pol-paper);
    font-size: 18px;
    margin-bottom: 18px;
}
.polestar-feature h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 22px; font-weight: 700;
    margin: 0 0 10px;
    color: var(--pol-ink);
    letter-spacing: -0.01em;
}
.polestar-feature p {
    font-size: 15px; line-height: 1.55;
    color: var(--pol-mute);
    margin: 0;
}

/* How it works */
.polestar-how { padding: 100px 0; }
.polestar-steps {
    list-style: none; margin: 0; padding: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}
@media (max-width: 720px) { .polestar-steps { grid-template-columns: 1fr; } }
.polestar-steps li {
    border-top: 2px solid var(--pol-ink);
    padding-top: 20px;
}
.polestar-step-num {
    display: inline-block;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 14px; font-weight: 700;
    color: var(--pol-coral);
    margin-bottom: 10px;
}
.polestar-steps h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 22px; font-weight: 700;
    margin: 0 0 8px;
    color: var(--pol-ink);
}
.polestar-steps p { color: var(--pol-mute); font-size: 15px; line-height: 1.55; margin: 0; }
.polestar-steps code {
    background: var(--pol-ink); color: var(--pol-paper);
    padding: 2px 6px; border-radius: 4px;
    font-size: 13px;
}

/* Logos */
.polestar-logos { padding: 60px 0; border-top: 1px solid var(--pol-line); }
.polestar-logo-wall {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 32px;
    margin-top: 28px;
    align-items: center;
}
@media (max-width: 720px) { .polestar-logo-wall { grid-template-columns: repeat(2, 1fr); gap: 22px; } }
.polestar-logo-wall span {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 18px; font-weight: 700;
    color: var(--pol-mute);
    text-align: center;
    letter-spacing: 0.02em;
}

/* CTA */
.polestar-cta {
    padding: 100px 0;
    background: var(--pol-paper);
    text-align: center;
}
.polestar-cta .polestar-h2 { margin: 0 auto 16px; max-width: 22ch; }
.polestar-cta .polestar-lede { margin: 0 auto 28px; }


/* =========================================================================
   3. HALVERSON & REID — boutique law firm
   Palette: ivory / deep navy / brass. Type: Playfair Display + Source Sans 3.
   ========================================================================= */
.mini-halverson {
    --hv-paper:    #f6f1e7;
    --hv-paper-2:  #ede6d5;
    --hv-ink:      #0c1f3a;
    --hv-ink-mute: #4a5670;
    --hv-brass:    #a98648;
    --hv-line:     rgba(12, 31, 58, 0.12);

    background: var(--hv-paper);
    color: var(--hv-ink);
    font-family: 'Source Sans 3', -apple-system, sans-serif;
    padding: 120px 0 80px;
}
.halverson-container {
    max-width: 1080px; margin: 0 auto; padding: 0 32px;
}
.halverson-container-narrow { max-width: 720px; }

.halverson-eyebrow {
    display: block;
    font-family: 'Source Sans 3', sans-serif;
    font-size: 12px; font-weight: 600;
    color: var(--hv-brass);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.halverson-h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(54px, 8vw, 96px);
    line-height: 1.0;
    letter-spacing: -0.01em;
    margin: 0 0 14px;
    font-weight: 700;
    color: var(--hv-ink);
}
.halverson-amp { font-style: italic; font-weight: 400; color: var(--hv-brass); }

.halverson-h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(28px, 3.6vw, 42px);
    line-height: 1.15;
    margin: 0 0 18px;
    color: var(--hv-ink);
    font-weight: 700;
    letter-spacing: -0.01em;
}

/* Hero */
.halverson-hero { text-align: center; }
.halverson-mark {
    display: inline-flex;
    align-items: center; justify-content: center;
    width: 72px; height: 72px;
    border: 1.5px solid var(--hv-brass);
    color: var(--hv-brass);
    font-family: 'Playfair Display', serif;
    font-size: 22px; font-weight: 700;
    letter-spacing: 0.02em;
    margin: 0 auto 32px;
}
.halverson-tagline {
    font-family: 'Playfair Display', serif;
    font-size: clamp(18px, 2.4vw, 24px);
    color: var(--hv-ink-mute);
    margin: 0 0 24px;
    line-height: 1.5;
}
.halverson-rule {
    width: 60px; height: 1px;
    background: var(--hv-brass);
    margin: 28px auto;
}
.halverson-sub {
    font-size: 17px; line-height: 1.7;
    max-width: 60ch;
    margin: 0 auto;
    color: var(--hv-ink-mute);
}

/* Sections share rhythm */
.halverson-who, .halverson-practice, .halverson-people, .halverson-matters, .halverson-cta {
    padding: 80px 0;
    border-top: 1px solid var(--hv-line);
}
.halverson-cta { text-align: center; border-top: none; }
.halverson-cta .halverson-rule { margin-top: 0; }

.halverson-who p {
    font-size: 18px; line-height: 1.75;
    color: var(--hv-ink-mute);
    margin: 0 0 28px;
}
.halverson-quote {
    margin: 32px 0 0;
    padding: 24px 32px;
    border-left: 3px solid var(--hv-brass);
}
.halverson-quote p {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 21px; line-height: 1.5;
    color: var(--hv-ink);
    margin: 0 0 12px;
}
.halverson-quote cite {
    display: block;
    font-style: normal;
    font-size: 14px;
    color: var(--hv-ink-mute);
    letter-spacing: 0.04em;
}

/* Practice */
.halverson-practice-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    margin-top: 16px;
}
@media (max-width: 720px) { .halverson-practice-grid { grid-template-columns: 1fr; } }
.halverson-practice-card {
    padding: 28px;
    background: var(--hv-paper-2);
    border: 1px solid var(--hv-line);
    transition: border-color 0.15s ease, transform 0.15s ease;
}
.halverson-practice-card:hover {
    border-color: var(--hv-brass);
    transform: translateY(-2px);
}
.halverson-practice-num {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 26px;
    color: var(--hv-brass);
    margin-bottom: 8px;
}
.halverson-practice-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 10px;
    color: var(--hv-ink);
}
.halverson-practice-card p {
    font-size: 15px; line-height: 1.6;
    color: var(--hv-ink-mute);
    margin: 0;
}

/* People */
.halverson-people-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 48px;
    margin-top: 16px;
}
@media (max-width: 720px) { .halverson-people-grid { grid-template-columns: 1fr; } }
.halverson-person { text-align: center; }
.halverson-portrait {
    width: 140px; height: 168px;
    margin: 0 auto 18px;
    background: var(--hv-paper-2);
    border: 1px solid var(--hv-line);
    overflow: hidden;
}
.halverson-portrait svg { width: 100%; height: 100%; }
.halverson-person h3 {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    margin: 0 0 4px;
    color: var(--hv-ink);
}
.halverson-role {
    font-size: 13px; letter-spacing: 0.06em;
    color: var(--hv-brass);
    margin: 0 0 14px;
    text-transform: uppercase;
    font-weight: 600;
}
.halverson-person > p:not(.halverson-role) {
    font-size: 15px; line-height: 1.6;
    color: var(--hv-ink-mute);
    max-width: 36ch;
    margin: 0 auto;
}

/* Matters */
.halverson-matters-list {
    list-style: none; margin: 0; padding: 0;
    counter-reset: matter;
}
.halverson-matters-list li {
    padding: 22px 0;
    border-bottom: 1px solid var(--hv-line);
    font-size: 16px; line-height: 1.7;
    color: var(--hv-ink-mute);
}
.halverson-matters-list li:last-child { border-bottom: none; }
.halverson-matters-list strong { color: var(--hv-ink); font-weight: 700; }

/* CTA */
.halverson-cta p {
    font-size: 17px; line-height: 1.7;
    color: var(--hv-ink-mute);
    max-width: 50ch;
    margin: 0 auto 32px;
}
.halverson-btn {
    display: inline-block;
    padding: 14px 36px;
    background: var(--hv-ink);
    color: var(--hv-paper);
    text-decoration: none;
    font-family: 'Source Sans 3', sans-serif;
    font-size: 14px; font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    transition: background 0.15s ease;
}
.halverson-btn:hover { background: var(--hv-brass); }


/* =========================================================================
   4. SIDECHAIN MUSIC — pro music-gear shop
   Palette: charcoal / warm orange / cream. Type: Manrope + Inter.
   ========================================================================= */
.mini-sidechain {
    --sc-charcoal:  #1c1a1a;
    --sc-charcoal-2:#2a2727;
    --sc-orange:    #ff7a45;
    --sc-orange-d:  #e0612f;
    --sc-cream:     #fff7ec;
    --sc-cream-2:   #f5ebd9;
    --sc-mute:      #6e6661;
    --sc-line:      rgba(28, 26, 26, 0.1);

    background: var(--sc-cream);
    color: var(--sc-charcoal);
    font-family: 'Inter', -apple-system, sans-serif;
}
.sidechain-container {
    max-width: 1180px; margin: 0 auto; padding: 0 32px;
}
.sidechain-eyebrow {
    display: inline-block;
    font-family: 'Manrope', sans-serif;
    font-size: 12px; font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--sc-orange-d);
    text-transform: uppercase;
    margin-bottom: 14px;
}
.sidechain-h1 {
    font-family: 'Manrope', sans-serif;
    font-weight: 800;
    font-size: clamp(40px, 5.5vw, 72px);
    line-height: 1.06;
    letter-spacing: -0.025em;
    margin: 0 0 18px;
    color: var(--sc-cream);
    max-width: 18ch;
}
.sidechain-h2 {
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    font-size: clamp(28px, 3.6vw, 40px);
    line-height: 1.1;
    letter-spacing: -0.018em;
    margin: 0;
    color: var(--sc-charcoal);
}
.sidechain-lede {
    font-size: 17px; line-height: 1.55;
    color: rgba(255, 247, 236, 0.78);
    max-width: 50ch;
    margin: 0 0 28px;
}
.sidechain-link {
    color: var(--sc-orange-d);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
}
.sidechain-link:hover { color: var(--sc-charcoal); }
.sidechain-link-muted {
    color: var(--sc-mute);
    font-size: 14px;
    font-weight: 500;
}

.sidechain-btn {
    display: inline-block;
    padding: 14px 26px;
    font-family: 'Manrope', sans-serif;
    font-size: 14px; font-weight: 700;
    letter-spacing: 0.04em;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.15s ease;
    cursor: pointer; border: none;
}
.sidechain-btn-primary {
    background: var(--sc-orange);
    color: var(--sc-cream);
}
.sidechain-btn-primary:hover {
    background: var(--sc-orange-d);
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(255, 122, 69, 0.3);
}
.sidechain-btn-ghost {
    background: transparent;
    color: var(--sc-cream);
    border: 1.5px solid var(--sc-cream);
}
.sidechain-btn-ghost:hover { background: var(--sc-cream); color: var(--sc-charcoal); }

.sidechain-hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }

/* Hero (dark) */
.sidechain-hero {
    background: var(--sc-charcoal);
    padding: 120px 0 80px;
}
.sidechain-hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
@media (max-width: 720px) { .sidechain-hero-inner { grid-template-columns: 1fr; gap: 40px; } }
.sidechain-hero-feature {
    background: var(--sc-charcoal-2);
    border: 1px solid rgba(255, 122, 69, 0.3);
    border-radius: 10px;
    padding: 24px;
    position: relative;
}
.sidechain-badge {
    position: absolute; top: 16px; right: 16px;
    background: var(--sc-orange);
    color: var(--sc-cream);
    font-family: 'Manrope', sans-serif;
    font-size: 11px; font-weight: 700;
    letter-spacing: 0.08em;
    padding: 4px 10px;
    border-radius: 4px;
    text-transform: uppercase;
}
.sidechain-product-img, .sidechain-card-img {
    background: var(--sc-charcoal-2);
    border-radius: 6px;
    aspect-ratio: 1.5;
    overflow: hidden;
    margin-bottom: 14px;
}
.sidechain-product-img svg, .sidechain-card-img svg { width: 100%; height: 100%; }
.sidechain-product-name {
    font-family: 'Manrope', sans-serif;
    font-size: 20px; font-weight: 700;
    color: var(--sc-cream);
    margin: 0 0 6px;
}
.sidechain-product-meta {
    font-size: 13px; color: rgba(255, 247, 236, 0.6);
    margin: 0;
}

/* Featured / Categories / Arrivals (light) */
.sidechain-featured, .sidechain-categories, .sidechain-arrivals {
    padding: 80px 0;
}
.sidechain-section-head {
    display: flex; align-items: end; justify-content: space-between;
    margin-bottom: 28px;
    flex-wrap: wrap; gap: 12px;
}

.sidechain-product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
@media (max-width: 720px) { .sidechain-product-grid { grid-template-columns: 1fr; } }
.sidechain-card {
    background: var(--sc-cream-2);
    padding: 16px;
    border-radius: 10px;
    text-decoration: none;
    color: var(--sc-charcoal);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    display: block;
}
.sidechain-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 32px rgba(28, 26, 26, 0.14);
}
.sidechain-card .sidechain-card-img { background: var(--sc-cream); }
.sidechain-card-tag {
    display: inline-block;
    font-family: 'Manrope', sans-serif;
    font-size: 11px; font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--sc-mute);
    text-transform: uppercase;
    margin-bottom: 6px;
}
.sidechain-card-tag-fresh { color: var(--sc-orange-d); }
.sidechain-card-name {
    font-family: 'Manrope', sans-serif;
    font-size: 18px; font-weight: 700;
    margin: 0 0 6px;
    color: var(--sc-charcoal);
}
.sidechain-card-meta { font-size: 13px; color: var(--sc-mute); margin: 0; }

/* Categories */
.sidechain-cat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 14px;
}
@media (max-width: 720px) { .sidechain-cat-grid { grid-template-columns: repeat(2, 1fr); } }
.sidechain-cat {
    display: flex; flex-direction: column;
    background: var(--sc-cream-2);
    padding: 24px 22px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--sc-charcoal);
    transition: background 0.15s ease, color 0.15s ease;
    gap: 6px;
}
.sidechain-cat:hover {
    background: var(--sc-orange);
    color: var(--sc-cream);
}
.sidechain-cat:hover .sidechain-cat-count { color: rgba(255, 247, 236, 0.78); }
.sidechain-cat-icon {
    font-size: 28px;
    color: var(--sc-orange-d);
    margin-bottom: 6px;
}
.sidechain-cat:hover .sidechain-cat-icon { color: var(--sc-cream); }
.sidechain-cat-name {
    font-family: 'Manrope', sans-serif;
    font-weight: 700; font-size: 17px;
}
.sidechain-cat-count { font-size: 13px; color: var(--sc-mute); }

/* Arrivals */
.sidechain-arrival-strip {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    margin-top: 14px;
}
@media (max-width: 720px) { .sidechain-arrival-strip { grid-template-columns: repeat(2, 1fr); } }
.sidechain-arrival {
    display: flex; flex-direction: column;
    padding: 18px 16px;
    background: var(--sc-cream-2);
    border-radius: 8px;
    text-decoration: none;
    color: var(--sc-charcoal);
    transition: background 0.12s ease;
    gap: 4px;
}
.sidechain-arrival:hover { background: var(--sc-cream); box-shadow: 0 6px 18px rgba(28, 26, 26, 0.1); }
.sidechain-arrival strong {
    font-family: 'Manrope', sans-serif;
    font-size: 14px; font-weight: 700;
}
.sidechain-arrival span { font-size: 12px; color: var(--sc-mute); }

/* Workshop */
.sidechain-workshop { padding: 80px 0; background: var(--sc-cream-2); }
.sidechain-workshop-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
@media (max-width: 720px) { .sidechain-workshop-grid { grid-template-columns: 1fr; } }
.sidechain-workshop-text p {
    font-size: 17px; line-height: 1.7;
    color: var(--sc-mute);
    margin: 16px 0 24px;
}
.sidechain-workshop-text .sidechain-btn-ghost {
    color: var(--sc-charcoal); border-color: var(--sc-charcoal);
}
.sidechain-workshop-text .sidechain-btn-ghost:hover { background: var(--sc-charcoal); color: var(--sc-cream); }
.sidechain-workshop-image {
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 1.5;
}
.sidechain-workshop-image svg { width: 100%; height: 100%; }

/* CTA (dark again) */
.sidechain-cta {
    background: var(--sc-charcoal);
    color: var(--sc-cream);
    padding: 80px 0;
    text-align: center;
}
.sidechain-cta .sidechain-h2 { color: var(--sc-cream); margin: 0 auto 28px; max-width: 22ch; }
.sidechain-form {
    display: flex; gap: 10px; max-width: 480px; margin: 0 auto;
    flex-wrap: wrap;
}
.sidechain-form input {
    flex: 1; min-width: 220px;
    padding: 14px 18px;
    background: var(--sc-charcoal-2);
    border: 1px solid rgba(255, 247, 236, 0.2);
    color: var(--sc-cream);
    border-radius: 6px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
}
.sidechain-form input::placeholder { color: rgba(255, 247, 236, 0.5); }
.sidechain-form input:focus { outline: 2px solid var(--sc-orange); outline-offset: 2px; }
.sidechain-fineprint {
    margin: 16px 0 0; font-size: 13px;
    color: rgba(255, 247, 236, 0.5);
}
