/* =====================================================================
   tanso.news — Pop-Art Newsroom
   Palette:
     Espresso        #2B2320
     Burnt Terracotta #D4714E
     Saffron Gold    #E8A642
     Warm Cream      #FFF5EB
     Pale Terracotta #FAE6D2
     Warm Sand       #F4D7C2
     Warm Charcoal   #3D3430
     Warm Gray       #8B7A6E
     Coral Pop       #E05A3A
     Deep Mustard    #C47A1F
   Fonts:
     Display: Passion One
     Body:    Libre Franklin
   ===================================================================== */

:root {
    --espresso: #2B2320;
    --terracotta: #D4714E;
    --saffron: #E8A642;
    --cream: #FFF5EB;
    --pale: #FAE6D2;
    --sand: #F4D7C2;
    --charcoal: #3D3430;
    --gray: #8B7A6E;
    --coral: #E05A3A;
    --mustard: #C47A1F;

    --sidebar-w: clamp(240px, 20vw, 340px);
    --panel-border: 3px solid var(--espresso);
    --panel-radius: 0;

    --font-display: 'Passion One', 'Inter', system-ui, sans-serif;
    --font-body: 'Libre Franklin', 'Inter', system-ui, sans-serif;

    --grain-svg: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.17  0 0 0 0 0.14  0 0 0 0 0.12  0 0 0 0.55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");

    --circuit-svg: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='320' height='320' viewBox='0 0 320 320'><g fill='none' stroke='%23D4714E' stroke-opacity='0.45' stroke-width='1'><path d='M0 60 L80 60 L96 44 L180 44 L196 60 L320 60'/><path d='M0 180 L60 180 L80 200 L200 200 L220 180 L320 180'/><path d='M40 0 L40 80 L60 100 L60 220 L40 240 L40 320'/><path d='M260 0 L260 100 L280 120 L280 220 L260 240 L260 320'/></g><g fill='%23E8A642' fill-opacity='0.55'><circle cx='80' cy='60' r='2.5'/><circle cx='196' cy='60' r='2.5'/><circle cx='80' cy='200' r='2.5'/><circle cx='220' cy='180' r='2.5'/><circle cx='40' cy='100' r='2.5'/><circle cx='280' cy='120' r='2.5'/></g></svg>");
}

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

html, body {
    width: 100%;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    color: var(--charcoal);
    background: var(--cream);
    line-height: 1.75;
    letter-spacing: 0.005em;
    font-size: clamp(0.95rem, 1.1vw, 1.15rem);
    position: relative;
}

/* faint full-page circuit substrate */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: var(--circuit-svg);
    background-size: 320px 320px;
    opacity: 0.05;
    pointer-events: none;
    z-index: 0;
}

ul {
    list-style: none;
}

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

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

/* --------------------------- LAYOUT ----------------------------- */
.page-wrap {
    display: flex;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

/* --------------------------- SIDEBAR ---------------------------- */
.sidebar {
    width: var(--sidebar-w);
    flex-shrink: 0;
    background: var(--espresso);
    color: var(--sand);
    padding: 28px 22px 22px;
    position: sticky;
    top: 0;
    align-self: flex-start;
    height: 100vh;
    display: flex;
    flex-direction: column;
    gap: 22px;
    overflow: hidden;
    transform: translateX(-100%);
    animation: slide-in 0.6s ease-out 0.1s forwards;

    /* animated right border */
    border-right: 3px solid var(--terracotta);
    animation-name: slide-in, border-cycle;
    animation-duration: 0.6s, 12s;
    animation-delay: 0.1s, 0.7s;
    animation-timing-function: ease-out, ease-in-out;
    animation-iteration-count: 1, infinite;
    animation-fill-mode: forwards, none;
}

@keyframes slide-in {
    to { transform: translateX(0); }
}

@keyframes border-cycle {
    0%   { border-right-color: var(--terracotta); }
    33%  { border-right-color: var(--saffron); }
    66%  { border-right-color: var(--sand); }
    100% { border-right-color: var(--terracotta); }
}

/* masthead */
.masthead {
    opacity: 0;
    animation: fade-up 0.5s ease-out 0.4s forwards;
}

@keyframes fade-up {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.masthead-title {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 2.8rem;
    line-height: 0.9;
    letter-spacing: -0.01em;
    text-transform: uppercase;
    color: var(--sand);
}

.masthead-sub {
    display: block;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.35em;
    color: var(--terracotta);
    margin-top: 4px;
}

.masthead-rule {
    height: 1px;
    margin-top: 14px;
    background: linear-gradient(90deg, var(--terracotta), var(--saffron), var(--terracotta));
    background-size: 200% 100%;
    animation: rule-pulse 4s ease-in-out infinite;
}

@keyframes rule-pulse {
    0%, 100% { background-position: 0% 50%; }
    50%      { background-position: 100% 50%; }
}

/* nav */
.side-nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 0 0 auto;
}

.nav-item {
    display: block;
    padding: 8px 12px;
    border: 2px solid var(--terracotta);
    border-radius: 4px;
    color: var(--sand);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: transparent;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
    position: relative;
    cursor: pointer;
}

.nav-item:hover {
    background: var(--terracotta);
    color: var(--cream);
    transform: translateX(2px);
}

.nav-item.active {
    background: var(--terracotta);
    color: var(--cream);
}

.nav-item.active::after {
    content: '';
    position: absolute;
    right: -10px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 7px solid transparent;
    border-bottom: 7px solid transparent;
    border-left: 8px solid var(--terracotta);
}

.circuit-divider {
    width: 100%;
    height: 22px;
    margin: 4px 0;
    opacity: 0.85;
}

/* ticker */
.ticker-wrap {
    margin-top: auto;
    border-top: 1px dashed var(--terracotta);
    padding-top: 14px;
    flex-shrink: 0;
}

.ticker-label {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.7rem;
    letter-spacing: 0.32em;
    color: var(--terracotta);
    margin-bottom: 8px;
}

.ticker {
    height: 80px;
    overflow: hidden;
    position: relative;
    mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 82%, transparent);
}

.ticker-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: var(--saffron);
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    animation: ticker-scroll 20s linear infinite;
}

.ticker-list li {
    line-height: 1.4;
    padding: 2px 0;
}

@keyframes ticker-scroll {
    0%   { transform: translateY(0); }
    100% { transform: translateY(-50%); }
}

/* ------------------------- MAIN COLUMN -------------------------- */
.main {
    flex: 1;
    min-width: 0;
    padding: clamp(24px, 4vw, 64px) clamp(24px, 4vw, 64px);
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: var(--cream);
}

/* ---------- common panel ---------- */
.panel {
    position: relative;
    background: var(--cream);
    border: var(--panel-border);
    border-radius: var(--panel-radius);
    padding: clamp(20px, 2.6vw, 40px);
    overflow: hidden;
}

/* panel border-draw entrance */
.panel[data-panel] {
    border-color: transparent;
    transition: border-top-color 0.2s ease 0s,
                border-right-color 0.2s ease 0.2s,
                border-bottom-color 0.2s ease 0.4s,
                border-left-color 0.2s ease 0.6s;
}

.panel.in-view {
    border-top-color: var(--espresso);
    border-right-color: var(--espresso);
    border-bottom-color: var(--espresso);
    border-left-color: var(--espresso);
}

.panel > * {
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.panel.in-view > * {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.85s;
}

/* corner circuit decorations */
.corner {
    position: absolute;
    width: 80px;
    height: 80px;
    pointer-events: none;
}

.corner-tl { top: 6px; left: 6px; }
.corner-br { bottom: 6px; right: 6px; }

.corner .trace {
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
    transition: stroke-dashoffset 0.6s ease 1s;
}

.panel.in-view .corner .trace {
    stroke-dashoffset: 0;
}

.corner circle {
    transform: scale(0);
    transform-origin: center;
    transform-box: fill-box;
    transition: transform 0.3s ease 1.55s;
}

.panel.in-view .corner circle {
    transform: scale(1);
}

/* tints */
.tint-cream { background: var(--cream); }
.tint-pale  { background: var(--pale); }

/* ------------------------- KICKER + DOT ------------------------- */
.kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.72rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--terracotta);
    margin-bottom: 14px;
}

.kicker.dark { color: var(--saffron); }

.kicker .dot {
    display: inline-block;
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--coral);
    box-shadow: 0 0 0 3px rgba(224, 90, 58, 0.18);
    animation: dot-pulse 1.6s ease-in-out infinite;
}

.kicker .dot.saffron {
    background: var(--saffron);
    box-shadow: 0 0 0 3px rgba(232, 166, 66, 0.22);
}

@keyframes dot-pulse {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.2); }
}

/* --------------------------- SPLASH ----------------------------- */
.splash {
    min-height: 70vh;
    padding: 0;
    color: var(--cream);
    background: var(--espresso);
    display: flex;
    align-items: stretch;
}

.splash-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 25% 30%, rgba(212, 113, 78, 0.85), transparent 60%),
        radial-gradient(ellipse at 80% 70%, rgba(232, 166, 66, 0.45), transparent 60%),
        linear-gradient(135deg, #6E3A26, var(--espresso) 65%);
    mix-blend-mode: normal;
}

.splash-grain {
    position: absolute;
    inset: 0;
    background-image: var(--grain-svg);
    background-size: 160px 160px;
    opacity: 0.18;
    mix-blend-mode: multiply;
    pointer-events: none;
    animation: grain-shift 0.5s steps(4) infinite;
}

@keyframes grain-shift {
    0%   { transform: translate(0, 0); }
    25%  { transform: translate(-4px, 3px); }
    50%  { transform: translate(3px, -2px); }
    75%  { transform: translate(-2px, -4px); }
    100% { transform: translate(0, 0); }
}

.splash-dots {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, var(--coral) 1.4px, transparent 1.4px);
    background-size: 9px 9px;
    opacity: 0.18;
    pointer-events: none;
}

.splash-content {
    position: relative;
    z-index: 2;
    padding: clamp(28px, 5vw, 64px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 18px;
    width: 100%;
}

.splash .kicker {
    color: var(--saffron);
    margin-bottom: 0;
}

.splash-headline {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: clamp(2.6rem, 6.5vw, 5.4rem);
    line-height: 0.95;
    letter-spacing: -0.01em;
    text-transform: uppercase;
    color: var(--sand);
    max-width: 18ch;
}

.splash-headline .word {
    display: inline-block;
    margin-right: 0.18em;
    opacity: 0;
    transform: translateY(0.3em);
    animation: word-pop 0.5s ease-out forwards;
}

.splash-headline .word:nth-child(1) { animation-delay: 1.0s; }
.splash-headline .word:nth-child(2) { animation-delay: 1.12s; }
.splash-headline .word:nth-child(3) { animation-delay: 1.24s; }
.splash-headline .word:nth-child(4) { animation-delay: 1.36s; }
.splash-headline .word:nth-child(5) { animation-delay: 1.48s; }
.splash-headline .word:nth-child(6) { animation-delay: 1.60s; }

@keyframes word-pop {
    to { opacity: 1; transform: translateY(0); }
}

.dek {
    font-size: clamp(1rem, 1.2vw, 1.2rem);
    color: var(--sand);
    max-width: 56ch;
    line-height: 1.55;
    font-weight: 300;
}

/* When the splash panel is "in-view" we still want overrides */
.splash > * {
    opacity: 1;
    transform: none;
}

.splash .splash-bg,
.splash .splash-grain,
.splash .splash-dots {
    opacity: var(--bg-op, 1);
}

/* --------------------------- SPEECH BUBBLE ---------------------- */
.speech-bubble {
    position: relative;
    background: var(--cream);
    border: 2.5px solid var(--espresso);
    border-radius: 12px;
    padding: 14px 20px;
    max-width: 560px;
    margin-top: 8px;
    overflow: hidden;
    transform: scale(0);
    transform-origin: 20% 100%;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.speech-bubble::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, var(--coral) 1.2px, transparent 1.2px);
    background-size: 8px 8px;
    opacity: 0.08;
    pointer-events: none;
}

.speech-bubble::after {
    content: '';
    position: absolute;
    bottom: -14px;
    left: 36px;
    width: 0; height: 0;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-top: 14px solid var(--espresso);
}

.speech-bubble .bubble-text {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(1.2rem, 2vw, 1.6rem);
    line-height: 1.15;
    color: var(--terracotta);
    position: relative;
}

.speech-bubble .bubble-attrib {
    display: block;
    margin-top: 6px;
    font-family: var(--font-body);
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    color: var(--gray);
}

.speech-bubble.visible {
    transform: scale(1);
}

.speech-bubble.small {
    padding: 10px 14px;
    margin-top: 12px;
    max-width: 320px;
}

.speech-bubble.small .bubble-text {
    font-size: 1.05rem;
}

.speech-bubble.huge {
    padding: 24px 32px;
    max-width: 640px;
    transform-origin: 50% 100%;
}

.speech-bubble.huge .bubble-text {
    font-size: clamp(1.4rem, 2.6vw, 2.2rem);
    color: var(--espresso);
}

/* inverse for dark section */
.speech-bubble.inverse {
    background: var(--espresso);
    border-color: var(--saffron);
    margin: 22px 0;
}

.speech-bubble.inverse .bubble-text {
    color: var(--sand);
}

.speech-bubble.inverse::after {
    border-top-color: var(--saffron);
}

.speech-bubble.inverse::before {
    background-image: radial-gradient(circle, var(--saffron) 1.2px, transparent 1.2px);
    opacity: 0.1;
}

/* --------------------------- DOUBLE PANELS ---------------------- */
.panel-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.panel-row.triple {
    grid-template-columns: 1fr 1fr 1fr;
}

.panel-half, .panel-third {
    padding: clamp(18px, 2vw, 28px);
    min-height: 220px;
}

.panel-meta {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 10px;
    font-family: var(--font-body);
    font-size: 0.78rem;
    color: var(--gray);
    letter-spacing: 0.02em;
}

.byline { font-weight: 600; color: var(--charcoal); }
.dateline { font-weight: 300; color: var(--gray); }

.panel-headline {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(1.4rem, 2.5vw, 2.2rem);
    line-height: 0.98;
    letter-spacing: -0.005em;
    color: var(--espresso);
    margin-bottom: 12px;
}

.panel-headline.small {
    font-size: clamp(1.15rem, 1.6vw, 1.55rem);
}

.panel-body {
    margin-bottom: 12px;
    color: var(--charcoal);
}

/* --------------------------- POLICY PANEL ----------------------- */
.policy-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: clamp(20px, 3vw, 48px);
}

.policy-aside {
    border-left: 2px solid var(--terracotta);
    padding-left: clamp(16px, 2vw, 28px);
}

.bullet-list {
    margin-top: 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 0.92rem;
    color: var(--charcoal);
}

.bullet-list li {
    display: flex;
    align-items: center;
    gap: 10px;
}

.bullet-marker {
    width: 10px;
    height: 10px;
    background: var(--saffron);
    border: 1.5px solid var(--espresso);
    border-radius: 2px;
    flex-shrink: 0;
}

/* --------------------------- FEATURE STRIP ---------------------- */
.feature-strip {
    padding: clamp(18px, 2vw, 30px) clamp(20px, 2.6vw, 40px);
    background: var(--cream);
    position: relative;
}

.strip-meta {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 12px;
}

.bar-chart {
    width: 100%;
    height: 140px;
    display: block;
}

.bar-chart rect {
    transform-origin: bottom;
    transform: scaleY(0);
    transition: transform 0.6s ease;
}

.feature-strip.in-view .bar-chart rect {
    transform: scaleY(1);
}

.bar-labels {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 4px;
    margin-top: 6px;
    font-family: var(--font-body);
    font-size: 0.7rem;
    letter-spacing: 0.06em;
    color: var(--gray);
    text-transform: uppercase;
    text-align: center;
}

.strip-dots {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, var(--coral) 1.1px, transparent 1.1px);
    background-size: 8px 8px;
    opacity: 0;
    transition: opacity 0.6s ease 0.8s;
    pointer-events: none;
    mix-blend-mode: multiply;
}

.feature-strip.in-view .strip-dots {
    opacity: 0.07;
}

/* --------------------------- DEEP DIVE -------------------------- */
.deep-dive {
    background: var(--espresso);
    color: var(--sand);
    padding: clamp(28px, 4vw, 56px);
    position: relative;

    /* faster border cycle for urgency */
    animation: deep-border-cycle 8s ease-in-out infinite;
}

@keyframes deep-border-cycle {
    0%   { border-color: var(--terracotta); }
    25%  { border-color: var(--saffron); }
    50%  { border-color: var(--sand); }
    75%  { border-color: var(--coral); }
    100% { border-color: var(--terracotta); }
}

.deep-grain {
    position: absolute;
    inset: 0;
    background-image: var(--grain-svg);
    background-size: 160px 160px;
    opacity: 0.07;
    mix-blend-mode: overlay;
    pointer-events: none;
    animation: grain-shift 0.5s steps(4) infinite;
}

.deep-circuit {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.4;
}

.deep-trace {
    stroke-dasharray: 1200;
    stroke-dashoffset: 1200;
    animation: trace-draw 4s ease-out 0.4s forwards;
}

.deep-dive:nth-of-type(n) .deep-trace:nth-child(2) { animation-delay: 0.8s; }
.deep-dive:nth-of-type(n) .deep-trace:nth-child(3) { animation-delay: 1.2s; }

@keyframes trace-draw {
    to { stroke-dashoffset: 0; }
}

.deep-content {
    position: relative;
    z-index: 2;
    max-width: 920px;
}

.deep-headline {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: clamp(2rem, 4.5vw, 3.6rem);
    line-height: 0.96;
    letter-spacing: -0.01em;
    color: var(--sand);
    margin-bottom: 22px;
    max-width: 22ch;
}

.deep-body {
    display: grid;
    grid-template-columns: 60px 1fr;
    gap: 24px;
}

.gutter {
    display: flex;
    flex-direction: column;
    gap: 28px;
    align-items: center;
    border-right: 1px dashed rgba(232, 166, 66, 0.4);
    padding-right: 6px;
    padding-top: 8px;
}

.gutter-mark {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 1.6rem;
    color: var(--saffron);
    line-height: 1;
}

.deep-text p {
    margin-bottom: 18px;
    color: var(--sand);
    line-height: 1.85;
}

.deep-text em {
    color: var(--saffron);
    font-style: normal;
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: var(--saffron);
    text-underline-offset: 4px;
}

/* --------------------------- SUBSCRIBE PANEL -------------------- */
.subscribe-panel {
    background: var(--pale);
    padding: clamp(28px, 4vw, 60px);
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
}

.subscribe-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, var(--coral) 1.5px, transparent 1.5px);
    background-size: 10px 10px;
    opacity: 0.18;
    pointer-events: none;
}

.cycle-diagram {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.55;
}

.cycle-diagram path {
    animation: cycle-draw 15s linear infinite;
}

@keyframes cycle-draw {
    0%   { stroke-dashoffset: 2200; }
    50%  { stroke-dashoffset: 0; }
    100% { stroke-dashoffset: -2200; }
}

.subscribe-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    max-width: 700px;
}

.subscribe-headline {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: clamp(2.2rem, 5vw, 4.4rem);
    line-height: 0.95;
    letter-spacing: -0.01em;
    text-transform: uppercase;
    color: var(--espresso);
}

.subscribe-dek {
    color: var(--charcoal);
    max-width: 50ch;
    font-size: 1rem;
}

.subscribe-form {
    display: flex;
    gap: 8px;
    width: 100%;
    max-width: 480px;
    margin-top: 10px;
}

.subscribe-form input {
    flex: 1;
    padding: 14px 16px;
    border: 2.5px solid var(--espresso);
    border-radius: 4px;
    background: var(--cream);
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--espresso);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.subscribe-form input::placeholder {
    color: var(--gray);
}

.subscribe-form input:focus {
    border-color: var(--terracotta);
    box-shadow: 0 0 0 3px rgba(212, 113, 78, 0.25);
}

.subscribe-form button {
    padding: 14px 22px;
    border: 2.5px solid var(--espresso);
    background: var(--terracotta);
    color: var(--cream);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.subscribe-form button:hover {
    background: var(--espresso);
    color: var(--saffron);
    transform: translateY(-1px);
}

.subscribe-form button.success {
    background: var(--saffron);
    color: var(--espresso);
}

.subscribe-note {
    font-size: 0.78rem;
    color: var(--gray);
    letter-spacing: 0.04em;
    margin-top: 2px;
}

/* --------------------------- FOOTER ----------------------------- */
.page-footer {
    margin-top: 8px;
    padding: 22px 6px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    font-family: var(--font-body);
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gray);
    border-top: 1px dashed var(--terracotta);
}

.dot-sep {
    width: 6px;
    height: 6px;
    background: var(--saffron);
    border-radius: 50%;
}

/* --------------------------- RESPONSIVE ------------------------- */
@media (max-width: 900px) {
    .panel-row { grid-template-columns: 1fr; }
    .panel-row.triple { grid-template-columns: 1fr; }
    .policy-grid { grid-template-columns: 1fr; }
    .deep-body { grid-template-columns: 40px 1fr; gap: 14px; }
}

@media (max-width: 768px) {
    .page-wrap { flex-direction: column; }

    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        gap: 14px;
        padding: 16px 18px;
        border-right: none;
        border-bottom: 3px solid var(--terracotta);
        animation: slide-down 0.6s ease-out 0.1s forwards, border-cycle 12s ease-in-out 0.7s infinite;
        transform: translateY(-100%);
    }

    @keyframes slide-down {
        to { transform: translateY(0); }
    }

    .masthead {
        display: flex;
        align-items: baseline;
        gap: 10px;
        flex: 1 1 auto;
    }

    .masthead-title { font-size: 1.8rem; }
    .masthead-sub { margin-top: 0; }
    .masthead-rule { display: none; }

    .side-nav {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 6px;
        flex-basis: 100%;
    }

    .nav-item { padding: 6px 10px; font-size: 0.75rem; }
    .circuit-divider { display: none; }
    .nav-item.active::after { display: none; }

    .ticker-wrap {
        flex-basis: 100%;
        margin-top: 4px;
        padding-top: 8px;
    }

    .ticker {
        height: 28px;
    }

    .ticker-list {
        flex-direction: row;
        gap: 28px;
        white-space: nowrap;
        animation: ticker-marquee 40s linear infinite;
    }

    @keyframes ticker-marquee {
        0%   { transform: translateX(0); }
        100% { transform: translateX(-50%); }
    }

    .splash { min-height: 60vh; }
    .splash-headline { font-size: clamp(2rem, 9vw, 3.2rem); }
}

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .sidebar { transform: none; }
    .panel[data-panel] { border-color: var(--espresso); }
    .panel > * { opacity: 1; transform: none; }
    .speech-bubble { transform: scale(1); }
    .splash-headline .word { opacity: 1; transform: none; }
}
