/* ============================================================
   archetypos.dev - Inflated 3D Data Visualization Design
   Color Palette: Burgundy-Cream
   Typography: Anybody (headlines), DM Sans (body), DM Mono (data), Playfair Display (quotes)
   Aesthetic: inflated-3d | Layout: hero-dominant | Patterns: hover-lift
   ============================================================ */

/* --- CSS Custom Properties --- */
:root {
    --wineblood: #6B1D38;
    --deep-cellar: #3D0F22;
    --parchment-cream: #F5EDE0;
    --warm-bone: #EDE3D3;
    --ember-copper: #B84C32;
    --blush-quartz: #D4A0A0;
    --dried-ink: #1E0A12;
    --raw-linen: #FAF6F0;

    --font-headline: 'Anybody', sans-serif;
    --font-body: 'DM Sans', sans-serif;
    --font-mono: 'DM Mono', monospace;
    --font-quote: 'Playfair Display', serif;

    --hover-transition: transform 280ms cubic-bezier(0.34, 1.56, 0.64, 1);
    --hover-shadow-transition: box-shadow 280ms cubic-bezier(0.34, 1.56, 0.64, 1);
    --springy-bezier: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: clamp(1rem, 1.15vw, 1.2rem);
    line-height: 1.65;
    letter-spacing: 0.005em;
    color: var(--dried-ink);
    background-color: var(--parchment-cream);
    overflow-x: hidden;
}

/* --- Navigation (reveals after scrolling past 80vh) --- */
.site-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(245, 237, 224, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(107, 29, 56, 0.1);
    transform: translateY(-100%);
    transition: transform 400ms ease;
}

.site-nav.visible {
    transform: translateY(0);
}

.nav-inner {
    max-width: 960px;
    margin-left: 12%;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-family: var(--font-headline);
    font-weight: 800;
    font-stretch: 125%;
    font-size: 1.3rem;
    color: var(--wineblood);
    letter-spacing: -0.02em;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 32px;
}

.nav-links a {
    font-family: var(--font-mono);
    font-size: clamp(0.7rem, 0.85vw, 0.9rem);
    font-weight: 400;
    letter-spacing: 0.08em;
    color: var(--dried-ink);
    text-decoration: none;
    text-transform: uppercase;
    transition: color 200ms ease-out;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--ember-copper);
    transition: width 200ms ease-out;
}

.nav-links a:hover {
    color: var(--ember-copper);
}

.nav-links a:hover::after {
    width: 100%;
}

/* --- Hero Section (100vh+, hero-dominant) --- */
.hero-section {
    position: relative;
    min-height: 100vh;
    background-color: var(--parchment-cream);
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

@media (min-width: 1400px) {
    .hero-section {
        min-height: 130vh;
    }
}

/* Diagonal accent line (2px, #6B1D38, 37deg from upper-right) */
.hero-accent-line {
    position: absolute;
    top: 0;
    right: 0;
    width: 200%;
    height: 2px;
    background: var(--wineblood);
    opacity: 0.6;
    transform-origin: top right;
    transform: rotate(-37deg);
    clip-path: inset(0 100% 0 0);
    transition: clip-path 0.1s linear;
    z-index: 3;
}

.hero-accent-line.drawn {
    clip-path: inset(0 0 0 0);
}

/* Hero title - lower-left quadrant: 15% from left, 20% from bottom */
.hero-title-wrapper {
    position: absolute;
    left: 15%;
    bottom: 20%;
    z-index: 10;
}

.hero-title {
    font-family: var(--font-headline);
    font-weight: 800;
    font-stretch: 150%;
    font-size: clamp(3.5rem, 9vw, 8rem);
    letter-spacing: -0.04em;
    line-height: 0.95;
    color: var(--wineblood);
}

.hero-subtitle {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: clamp(0.9rem, 1.2vw, 1.1rem);
    color: var(--dried-ink);
    margin-top: 16px;
    letter-spacing: 0.02em;
    opacity: 0.7;
}

/* --- 3D Inflated Totem (CSS 3D transforms, breathing animation) --- */
.hero-totem-wrapper {
    position: absolute;
    top: 50%;
    right: 15%;
    transform: translateY(-50%);
    z-index: 5;
}

.hero-totem {
    position: relative;
    width: 280px;
    height: 420px;
    perspective: 800px;
    transform-style: preserve-3d;
    animation: breathe 4s ease-in-out infinite;
    will-change: transform;
}

@keyframes breathe {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.03); }
}

/* Totem pieces - inflated 3D shapes with layered divs */
.totem-piece {
    position: absolute;
    transform-style: preserve-3d;
    transform: rotateX(-15deg) rotateY(20deg);
}

.totem-base {
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) rotateX(-15deg) rotateY(20deg) translateZ(10px);
    width: 180px;
    height: 100px;
}

.totem-mid {
    bottom: 110px;
    left: 50%;
    transform: translateX(-50%) rotateX(-15deg) rotateY(20deg) translateZ(20px);
    width: 140px;
    height: 80px;
}

.totem-sphere {
    bottom: 200px;
    left: 50%;
    transform: translateX(-50%) rotateX(-15deg) rotateY(20deg) translateZ(30px);
    width: 120px;
    height: 120px;
}

.totem-crown {
    bottom: 320px;
    left: 50%;
    transform: translateX(-50%) rotateX(-15deg) rotateY(20deg) translateZ(40px);
    width: 90px;
    height: 70px;
}

.totem-face--front {
    width: 100%;
    height: 100%;
    border-radius: 40%;
    position: absolute;
    top: 0;
    left: 0;
}

.totem-face--top {
    width: 100%;
    height: 30%;
    border-radius: 40%;
    position: absolute;
    top: -10%;
    left: 5%;
}

.totem-face--side {
    width: 30%;
    height: 100%;
    border-radius: 40%;
    position: absolute;
    top: 0;
    right: -8%;
}

/* Totem base - Wineblood inflated material */
.totem-base .totem-face--front {
    background: linear-gradient(145deg, #8a2a4e, var(--wineblood));
    box-shadow:
        0 8px 32px rgba(61, 15, 34, 0.35),
        0 2px 8px rgba(61, 15, 34, 0.2),
        inset 0 -4px 12px rgba(30, 10, 18, 0.3),
        inset 0 4px 20px rgba(212, 160, 160, 0.15);
}

.totem-base .totem-face--top {
    background: linear-gradient(180deg, rgba(212, 160, 160, 0.4), rgba(107, 29, 56, 0.6));
}

.totem-base .totem-face--side {
    background: linear-gradient(90deg, rgba(61, 15, 34, 0.8), rgba(30, 10, 18, 0.9));
}

/* Totem mid - Ember Copper inflated material */
.totem-mid .totem-face--front {
    background: linear-gradient(145deg, var(--ember-copper), #943c28);
    box-shadow:
        0 8px 28px rgba(184, 76, 50, 0.3),
        0 2px 8px rgba(61, 15, 34, 0.15),
        inset 0 -4px 12px rgba(61, 15, 34, 0.25),
        inset 0 4px 16px rgba(245, 237, 224, 0.15);
}

.totem-mid .totem-face--top {
    background: linear-gradient(180deg, rgba(245, 237, 224, 0.3), rgba(184, 76, 50, 0.5));
}

.totem-mid .totem-face--side {
    background: linear-gradient(90deg, rgba(107, 29, 56, 0.7), rgba(61, 15, 34, 0.85));
}

/* Totem sphere - radial gradient with subsurface scattering glow */
.sphere-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #d6708e, var(--wineblood) 60%, var(--deep-cellar));
    box-shadow:
        0 12px 40px rgba(61, 15, 34, 0.4),
        0 4px 12px rgba(61, 15, 34, 0.2),
        inset 0 -8px 24px rgba(30, 10, 18, 0.4),
        inset 0 8px 24px rgba(212, 160, 160, 0.2);
}

.sphere-highlight {
    position: absolute;
    top: 18%;
    left: 25%;
    width: 30%;
    height: 20%;
    border-radius: 50%;
    background: radial-gradient(ellipse, rgba(245, 237, 224, 0.5), transparent);
    transform: rotate(-20deg);
}

/* Totem crown - Blush Quartz inflated material */
.totem-crown .totem-face--front {
    background: linear-gradient(145deg, var(--blush-quartz), #b8808a);
    box-shadow:
        0 8px 24px rgba(212, 160, 160, 0.3),
        0 2px 8px rgba(61, 15, 34, 0.12),
        inset 0 -4px 12px rgba(107, 29, 56, 0.2),
        inset 0 4px 16px rgba(245, 237, 224, 0.25);
}

.totem-crown .totem-face--top {
    background: linear-gradient(180deg, rgba(245, 237, 224, 0.4), rgba(212, 160, 160, 0.5));
}

.totem-crown .totem-face--side {
    background: linear-gradient(90deg, rgba(107, 29, 56, 0.5), rgba(61, 15, 34, 0.7));
}

/* Totem data-viz annotations */
.totem-annotation {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 8px 12px;
    background: rgba(245, 237, 224, 0.85);
    border-radius: 8px;
    border: 1px solid rgba(107, 29, 56, 0.15);
    box-shadow: 0 4px 12px rgba(61, 15, 34, 0.08);
    transition: var(--hover-transition), var(--hover-shadow-transition);
    cursor: default;
}

.totem-annotation:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 8px 24px rgba(61, 15, 34, 0.15);
}

.annotation-1 {
    top: 5%;
    left: -80px;
}

.annotation-2 {
    top: 45%;
    right: -100px;
}

.annotation-3 {
    bottom: 15%;
    left: -90px;
}

.annotation-label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    color: var(--dried-ink);
    opacity: 0.6;
    text-transform: uppercase;
}

.annotation-value {
    font-family: var(--font-mono);
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--wineblood);
    letter-spacing: 0.02em;
}

/* --- Diamond Confetti (8px rotated squares, Blush Quartz at 20% opacity) --- */
.diamond-scatter {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.diamond {
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--blush-quartz);
    opacity: 0.2;
    transform: rotate(45deg);
}

/* --- Panel Base Styles --- */
.panel {
    position: relative;
    width: 100%;
    padding: clamp(80px, 12vh, 160px) 0;
    overflow: hidden;
}

/* --- Data Panels (cream background, burgundy accents) --- */
.data-panel {
    background-color: var(--parchment-cream);
}

.panel-content {
    max-width: 960px;
    margin-left: 12%;
    padding: 0 24px;
    position: relative;
    z-index: 5;
}

.panel-content--full {
    max-width: none;
    margin-left: 0;
    padding: 0 5%;
}

/* --- Object Panels (deep burgundy background, cream text) --- */
.object-panel {
    background-color: var(--deep-cellar);
    color: var(--raw-linen);
}

/* --- Section Titles (Anybody, weight 600, width 125, uppercase) --- */
.section-title {
    font-family: var(--font-headline);
    font-weight: 600;
    font-stretch: 125%;
    font-size: clamp(2rem, 4.5vw, 4rem);
    letter-spacing: -0.02em;
    text-transform: uppercase;
    color: var(--wineblood);
    margin-bottom: clamp(32px, 5vh, 64px);
}

.section-title--light {
    color: var(--raw-linen);
}

/* --- Sharp-Angle Accent Line System (15, 37, 52, 73 degrees) --- */
.accent-line {
    position: absolute;
    left: 0;
    top: 10%;
    width: 120px;
    height: 2px;
    transform-origin: left center;
    z-index: 2;
}

/* On light panels: #6B1D38 at 50% opacity */
.accent-line--15 {
    background: rgba(107, 29, 56, 0.5);
    transform: rotate(15deg);
}

.accent-line--37 {
    background: rgba(107, 29, 56, 0.5);
    transform: rotate(37deg);
}

.accent-line--52 {
    background: rgba(107, 29, 56, 0.5);
    transform: rotate(52deg);
}

.accent-line--73 {
    background: rgba(107, 29, 56, 0.5);
    transform: rotate(73deg);
}

/* On dark panels: #F5EDE0 at 30% opacity */
.accent-line--light {
    background: rgba(245, 237, 224, 0.3);
}

.accent-line--light.accent-line--15 {
    background: rgba(245, 237, 224, 0.3);
    transform: rotate(15deg);
}

.accent-line--light.accent-line--37 {
    background: rgba(245, 237, 224, 0.3);
    transform: rotate(37deg);
}

.accent-line--light.accent-line--52 {
    background: rgba(245, 237, 224, 0.3);
    transform: rotate(52deg);
}

.accent-line--light.accent-line--73 {
    background: rgba(245, 237, 224, 0.3);
    transform: rotate(73deg);
}

/* --- Body Text (DM Sans, 400) --- */
.panel-body-text {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: clamp(1rem, 1.15vw, 1.2rem);
    line-height: 1.65;
    letter-spacing: 0.005em;
    color: var(--dried-ink);
    max-width: 680px;
    margin-top: clamp(24px, 4vh, 48px);
}

/* --- Bar Charts (inflated pillow bars) --- */
.bar-charts-group {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(24px, 3vw, 48px);
    margin-bottom: clamp(32px, 5vh, 64px);
}

.bar-chart {
    display: flex;
    flex-direction: column;
}

.chart-label {
    font-family: var(--font-mono);
    font-size: clamp(0.7rem, 0.85vw, 0.9rem);
    font-weight: 400;
    letter-spacing: 0.08em;
    color: var(--dried-ink);
    text-transform: uppercase;
    margin-bottom: 16px;
    opacity: 0.7;
}

.bars-container {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    height: 240px;
    padding-bottom: 28px;
    position: relative;
}

.bar-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    justify-content: flex-end;
}

/* Inflated bar: rounded top edges (30%), matte vinyl material appearance */
.inflated-bar {
    width: 100%;
    height: var(--bar-height);
    background: linear-gradient(145deg, #8a2a4e, var(--wineblood));
    border-radius: 30% 30% 12px 12px;
    position: relative;
    box-shadow:
        0 8px 32px rgba(61, 15, 34, 0.15),
        0 2px 8px rgba(61, 15, 34, 0.08),
        inset 0 4px 16px rgba(212, 160, 160, 0.12),
        inset 0 -4px 12px rgba(30, 10, 18, 0.2);
    transition: var(--hover-transition), var(--hover-shadow-transition);
    cursor: default;
}

/* Hover-lift: springy bounce, shadow deepens */
.inflated-bar:hover {
    transform: translateY(-8px) translateZ(16px) scale(1.02);
    box-shadow:
        0 16px 48px rgba(61, 15, 34, 0.2),
        0 4px 12px rgba(61, 15, 34, 0.1),
        inset 0 4px 16px rgba(212, 160, 160, 0.15),
        inset 0 -4px 12px rgba(30, 10, 18, 0.25);
}

.inflated-bar.bar-copper {
    background: linear-gradient(145deg, #d4603a, var(--ember-copper));
}

.inflated-bar.bar-blush {
    background: linear-gradient(145deg, #e0b5b5, var(--blush-quartz));
}

.bar-value {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.08em;
    color: var(--raw-linen);
    white-space: nowrap;
    opacity: 0.9;
}

.bar-name {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 0.06em;
    color: var(--dried-ink);
    margin-top: 8px;
    text-align: center;
    opacity: 0.6;
}

/* --- Scatter Plot (inflated spheres on dark background) --- */
.scatter-plot {
    position: relative;
    width: 100%;
    height: clamp(400px, 60vh, 700px);
    margin: clamp(24px, 4vh, 48px) 0;
}

.scatter-bubble {
    position: absolute;
    left: var(--bx);
    top: var(--by);
    width: var(--bs);
    height: var(--bs);
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #a03060, var(--wineblood) 70%, var(--deep-cellar));
    box-shadow:
        0 8px 32px rgba(61, 15, 34, 0.3),
        0 2px 8px rgba(61, 15, 34, 0.15),
        inset 0 -6px 18px rgba(30, 10, 18, 0.35),
        inset 0 6px 18px rgba(212, 160, 160, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: default;
    transition: var(--hover-transition), var(--hover-shadow-transition), opacity 280ms ease-out;
    transform: translateZ(0);
}

/* Hover-lift on scatter bubbles */
.scatter-bubble:hover {
    transform: translateY(-8px) translateZ(16px) scale(1.02);
    box-shadow:
        0 16px 48px rgba(61, 15, 34, 0.35),
        0 4px 12px rgba(61, 15, 34, 0.15),
        inset 0 -6px 18px rgba(30, 10, 18, 0.35),
        inset 0 6px 18px rgba(212, 160, 160, 0.2);
}

.scatter-bubble.bubble-copper {
    background: radial-gradient(circle at 35% 35%, #d4603a, var(--ember-copper) 70%, #7a3020);
}

.scatter-bubble.bubble-blush {
    background: radial-gradient(circle at 35% 35%, #e8c4c4, var(--blush-quartz) 70%, #a07070);
}

.bubble-label {
    font-family: var(--font-mono);
    font-size: clamp(0.6rem, 0.75vw, 0.8rem);
    letter-spacing: 0.08em;
    color: var(--raw-linen);
    text-transform: uppercase;
    text-shadow: 0 1px 4px rgba(30, 10, 18, 0.5);
    pointer-events: none;
}

.scatter-axis {
    position: absolute;
}

.scatter-axis--x {
    bottom: -30px;
    right: 5%;
}

.scatter-axis--y {
    top: 5%;
    left: -5px;
    transform: rotate(-90deg);
    transform-origin: left bottom;
}

.axis-label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    color: var(--raw-linen);
    opacity: 0.5;
    text-transform: lowercase;
}

.scatter-annotation {
    position: absolute;
    display: flex;
    flex-direction: column;
    padding: 8px 14px;
    background: rgba(245, 237, 224, 0.1);
    border: 1px solid rgba(245, 237, 224, 0.15);
    border-radius: 8px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    transition: var(--hover-transition), var(--hover-shadow-transition);
    cursor: default;
}

.scatter-annotation:hover {
    transform: translateY(-4px) scale(1.02);
    background: rgba(245, 237, 224, 0.15);
}

.annotation-mono {
    font-family: var(--font-mono);
    font-size: 1rem;
    font-weight: 500;
    color: var(--raw-linen);
    letter-spacing: 0.04em;
}

.annotation-text {
    font-family: var(--font-body);
    font-size: 0.75rem;
    color: var(--blush-quartz);
    margin-top: 2px;
}

/* --- Line Chart (puffy tube with inflated SVG) --- */
.line-chart-container {
    width: 100%;
    max-width: 800px;
    margin: clamp(24px, 4vh, 48px) 0;
}

.line-chart-svg {
    width: 100%;
    height: auto;
    overflow: visible;
}

.chart-axis-text {
    font-family: 'DM Mono', monospace;
    font-size: 11px;
    fill: var(--dried-ink);
    opacity: 0.5;
    letter-spacing: 0.08em;
}

.chart-line {
    filter: url(#inflateFilter);
}

.chart-dot {
    transition: transform 280ms cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: default;
}

.chart-dot:hover {
    transform: scale(1.4);
    filter: url(#sphereFilter) drop-shadow(0 0 8px rgba(107, 29, 56, 0.4));
}

/* --- Pull Quote (Playfair Display, italic, max 2-3 per page) --- */
.pull-quote {
    margin: clamp(32px, 5vh, 64px) 0;
    padding-left: 24px;
    border-left: 3px solid var(--blush-quartz);
    max-width: 600px;
}

.pull-quote p {
    font-family: var(--font-quote);
    font-weight: 400;
    font-style: italic;
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    line-height: 1.35;
    color: var(--wineblood);
}

.pull-quote cite {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    color: var(--dried-ink);
    opacity: 0.5;
    margin-top: 12px;
    font-style: normal;
}

/* --- Callout Cards (inflated, corner-cut, hover-lift) --- */
.callout-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(20px, 3vw, 40px);
    margin-top: clamp(24px, 4vh, 48px);
}

.callout-card {
    background: var(--parchment-cream);
    border-radius: 20px;
    padding: clamp(24px, 3vw, 40px);
    transform: rotate(var(--card-rotate, 0deg));
    /* Signature corner-cut motif: sharp 45-degree top-right clip */
    clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 24px, 100% 100%, 0 100%);
    box-shadow:
        0 8px 32px rgba(61, 15, 34, 0.15),
        0 2px 8px rgba(61, 15, 34, 0.08);
    transition: var(--hover-transition), var(--hover-shadow-transition);
    cursor: default;
}

/* Hover-lift + slight 0.5deg rotation as if picked up */
.callout-card:hover {
    transform: rotate(calc(var(--card-rotate, 0deg) + 0.5deg)) translateY(-8px) translateZ(16px) scale(1.02);
    box-shadow:
        0 16px 48px rgba(61, 15, 34, 0.2),
        0 4px 12px rgba(61, 15, 34, 0.1);
}

.card-data {
    font-family: var(--font-mono);
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 500;
    color: var(--wineblood);
    letter-spacing: -0.02em;
    line-height: 1;
    margin-bottom: 12px;
}

.card-annotation {
    font-family: var(--font-body);
    font-size: clamp(0.8rem, 0.95vw, 0.95rem);
    line-height: 1.5;
    color: var(--dried-ink);
    opacity: 0.75;
}

/* --- Closing Section (variable-width typography bookend) --- */
.closing-panel {
    background-color: var(--parchment-cream);
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    position: relative;
}

.closing-content {
    margin-left: 12%;
    padding: 0 24px;
    position: relative;
    z-index: 5;
}

/* Starts condensed (75%), expands to 150% via scroll-linked JS animation */
.closing-title {
    font-family: var(--font-headline);
    font-weight: 800;
    font-size: clamp(3rem, 8vw, 7rem);
    letter-spacing: -0.04em;
    line-height: 0.95;
    color: var(--wineblood);
    font-stretch: 75%;
    transition: font-stretch 0.1s ease-out;
}

.closing-tagline {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: clamp(0.85rem, 1.1vw, 1rem);
    color: var(--dried-ink);
    margin-top: 20px;
    letter-spacing: 0.02em;
    opacity: 0.5;
}

/* --- Chevron Section Dividers (converging diagonal lines) --- */
.chevron-divider {
    position: relative;
    height: 40px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.chevron-divider--cream {
    background: var(--parchment-cream);
}

.chevron-divider--dark {
    background: var(--deep-cellar);
}

.chevron-line {
    position: absolute;
    width: 60px;
    height: 1px;
}

.chevron-divider--cream .chevron-line {
    background: rgba(107, 29, 56, 0.3);
}

.chevron-divider--dark .chevron-line {
    background: rgba(245, 237, 224, 0.2);
}

.chevron-line--left {
    transform: rotate(15deg);
    right: calc(50% + 2px);
    transform-origin: right center;
}

.chevron-line--right {
    transform: rotate(-15deg);
    left: calc(50% + 2px);
    transform-origin: left center;
}

/* --- Burgundy glow ring on interactive hover --- */
.inflated-bar:hover,
.scatter-bubble:hover,
.callout-card:hover,
.totem-annotation:hover {
    box-shadow:
        0 16px 48px rgba(61, 15, 34, 0.2),
        0 4px 12px rgba(61, 15, 34, 0.1),
        0 0 0 3px rgba(107, 29, 56, 0.08);
}

/* --- Responsive Breakpoints --- */

/* Compact (mobile) */
@media (max-width: 480px) {
    .hero-totem-wrapper {
        display: none;
    }

    .hero-title {
        font-size: clamp(2.5rem, 12vw, 4rem);
    }

    .hero-title-wrapper {
        left: 8%;
        bottom: 15%;
    }

    .nav-links {
        gap: 16px;
    }

    .nav-links a {
        font-size: 0.65rem;
    }

    .callout-cards-grid {
        grid-template-columns: 1fr;
    }

    .bar-charts-group {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .closing-content {
        margin-left: 5%;
    }

    .panel-content {
        margin-left: 5%;
    }
}

/* Medium (tablet) */
@media (max-width: 768px) {
    .hero-section {
        min-height: 85vh;
    }

    .hero-accent-line {
        display: none;
    }

    .hero-totem-wrapper {
        right: 5%;
        top: 15%;
        transform: scale(0.65) translateY(0);
    }

    .hero-title-wrapper {
        left: 8%;
        bottom: 12%;
    }

    .nav-inner {
        margin-left: 5%;
    }

    .panel-content {
        margin-left: 5%;
    }

    .bar-charts-group {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .bars-container {
        height: 180px;
    }

    .callout-cards-grid {
        grid-template-columns: 1fr 1fr;
    }

    .closing-content {
        margin-left: 5%;
    }

    .scatter-plot {
        height: clamp(300px, 50vh, 500px);
    }

    .scatter-bubble {
        transform: scale(0.7);
    }

    .totem-annotation {
        display: none;
    }
}

/* Wide (large desktop) */
@media (min-width: 1200px) {
    .bar-charts-group {
        gap: 48px;
    }
}

/* Ultra-wide */
@media (min-width: 1600px) {
    .panel-content {
        max-width: 1100px;
    }

    .hero-totem-wrapper {
        right: 20%;
    }
}
