/* ============================================================
   PDF Bonsai - app.css v3.2.2
   Complete consolidated stylesheet (replaces any previous version)
   ============================================================ */

:root {
    --bg-0: #0a0e16;
    --bg-1: #11151f;
    --bg-2: #161b27;
    --line: rgba(255, 255, 255, 0.08);
    --text: #ffffff;
    --muted: rgba(255, 255, 255, 0.55);
    --muted-2: rgba(255, 255, 255, 0.4);
    --accent: #00E5D4;
    --accent-2: #C4FF3D;
    --accent-soft: rgba(0, 229, 212, 0.08);
    --accent-glow: rgba(0, 229, 212, 0.35);
    --danger: #ff5c63;
    --r-sm: 8px;
    --r-md: 12px;
    --r-lg: 18px;
}

* { box-sizing: border-box; }
html, body { padding: 0; margin: 0; }
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', sans-serif;
    background: var(--bg-0);
    color: var(--text);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}
.hidden { display: none !important; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-2); }
.link-accent { color: var(--accent); }
.link-accent:hover { color: var(--accent-2); }
.link-muted { color: var(--muted); }
.link-muted:hover { color: var(--text); }

/* TOPBAR */
.topbar {
    max-width: 1100px; margin: 0 auto; padding: 18px 24px;
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo-mark {
    width: 32px; height: 32px;
    background: url('/assets/img/bonsai-mark.svg') center/contain no-repeat;
    flex-shrink: 0;
}
.logo-text { font-weight: 700; font-size: 17px; letter-spacing: -0.01em; }
.logo-text em { font-style: normal; color: var(--accent); font-weight: 600; }
.topbar-nav { display: flex; align-items: center; gap: 22px; font-size: 13px; }
.topbar-nav a { color: var(--muted); }
.topbar-nav a:hover { color: var(--text); }

/* HERO */
main { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.hero { text-align: center; padding: 60px 0 80px; }
.hero h1 {
    font-size: clamp(34px, 4.8vw, 54px); line-height: 1.1;
    letter-spacing: -0.025em; font-weight: 600; margin: 56px 0 22px;
    text-wrap: balance;
}
.hero h1 .accent {
    color: var(--accent);
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
    font-weight: 600;
}
.hero .lead {
    font-size: 16px; color: var(--muted);
    margin: 0 auto 48px; max-width: 580px; line-height: 1.7;
    text-wrap: balance;
}

/* DROPZONE */
.dropzone {
    max-width: 640px; margin: 0 auto;
    background: var(--bg-1);
    border: 2px dashed var(--line);
    border-radius: var(--r-lg);
    padding: 56px 24px; cursor: pointer;
    transition: all 0.2s ease; outline: none;
}
.dropzone:hover, .dropzone:focus-visible { border-color: var(--accent); background: var(--bg-2); }
.dropzone.is-drag { border-color: var(--accent); background: var(--accent-soft); transform: scale(1.01); }
.dz-inner { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.dz-icon { width: 56px; height: 56px; color: var(--accent); display: flex; align-items: center; justify-content: center; }
.dz-icon svg { width: 100%; height: 100%; }
.dz-title { font-size: 20px; font-weight: 600; color: var(--text); }
.dz-sub { font-size: 13px; color: var(--muted); }

/* MODE CARD */
.mode-card {
    max-width: 640px; margin: 20px auto 0;
    background: var(--bg-1); border: 1px solid var(--line);
    border-radius: var(--r-md); padding: 14px 18px; text-align: left;
}
.mode-card-row { display: flex; align-items: center; gap: 14px; flex-wrap: nowrap; }
.mode-card-label {
    font-size: 11px; color: var(--muted-2);
    text-transform: uppercase; letter-spacing: 0.1em; font-weight: 600; flex-shrink: 0;
}
.mode-pills {
    display: flex; background: var(--bg-2);
    border: 1px solid var(--line); border-radius: 100px;
    padding: 3px; flex: 1; min-width: 0;
}
.mode-pill {
    flex: 1; background: transparent; border: none;
    color: var(--muted); padding: 8px 14px; border-radius: 100px;
    cursor: pointer; font-family: inherit; font-size: 13px;
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    transition: all 0.15s ease; white-space: nowrap; min-width: 0;
}
.mode-pill:hover:not(.is-active) { color: var(--text); background: rgba(255, 255, 255, 0.03); }
.mode-pill.is-active {
    background: var(--accent); color: var(--bg-0); font-weight: 600;
    box-shadow: 0 0 12px var(--accent-glow);
}
.mode-pill .mp-icon { font-size: 14px; line-height: 1; }
.mode-pill .mp-label { line-height: 1; }
.mode-help {
    background: transparent; border: 1px solid var(--line);
    color: var(--muted); padding: 7px 12px; border-radius: 100px;
    cursor: pointer; font-family: inherit; font-size: 11px;
    transition: all 0.15s; display: inline-flex; align-items: center; gap: 4px;
    flex-shrink: 0; text-transform: uppercase; letter-spacing: 0.05em;
}
.mode-help:hover { border-color: var(--accent); color: var(--accent); }
.mh-arrow { font-size: 10px; transition: transform 0.15s; }
.mode-card-desc {
    font-size: 12px; color: var(--muted);
    margin-top: 12px; padding-top: 10px;
    border-top: 1px dashed var(--line); line-height: 1.5;
}

/* MODE TOOLTIP */
.mode-tooltip {
    max-width: 640px; margin: 12px auto 0;
    background: var(--bg-2); border: 1px solid var(--accent);
    border-radius: var(--r-md); padding: 24px;
    text-align: left; position: relative; box-shadow: 0 0 30px var(--accent-glow);
}
.mt-close {
    position: absolute; top: 12px; right: 16px;
    background: none; border: none; color: var(--muted);
    font-size: 22px; cursor: pointer; line-height: 1;
}
.mt-close:hover { color: var(--text); }
.mt-row { display: flex; gap: 14px; margin-bottom: 18px; }
.mt-row:last-child { margin-bottom: 0; }
.mt-icon { font-size: 24px; line-height: 1; flex-shrink: 0; }
.mt-title { font-weight: 600; font-size: 14px; color: var(--text); margin-bottom: 4px; }
.mt-sub { font-weight: 400; color: var(--accent); font-size: 12px; margin-left: 4px; }
.mt-desc { font-size: 12px; color: var(--muted); line-height: 1.5; margin-bottom: 4px; }
.mt-trade { font-size: 11px; color: var(--muted-2); font-style: italic; }

/* LIMITS */
.limits-line { text-align: center; margin-top: 22px; font-size: 13px; color: var(--muted); }

/* PROCESS */
.process { padding: 60px 0 80px; }
.process-card {
    max-width: 540px; margin: 0 auto;
    background: var(--bg-1); border: 1px solid var(--line);
    border-radius: var(--r-lg); padding: 32px;
}
.proc-filename { font-size: 14px; color: var(--muted); text-align: center; margin-bottom: 20px; word-break: break-all; }
.progress-track { height: 6px; background: var(--bg-2); border-radius: 100px; overflow: hidden; margin-bottom: 16px; }
.progress-bar {
    height: 100%; width: 2%;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    border-radius: 100px; transition: width 0.4s ease;
    box-shadow: 0 0 12px var(--accent-glow);
}
.proc-status { font-size: 13px; color: var(--muted); text-align: center; }

/* RESULT */
.result { padding: 40px 0 80px; }
.result-card {
    max-width: 600px; margin: 0 auto;
    background: var(--bg-1); border: 1px solid var(--line);
    border-radius: var(--r-lg); padding: 36px;
}
.result-headline { text-align: center; margin-bottom: 28px; }
.result-saved {
    font-size: 13px; color: var(--muted);
    text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 8px;
}
.result-ratio {
    font-size: 64px; font-weight: 800; line-height: 1; letter-spacing: -0.03em;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
    text-shadow: 0 0 40px var(--accent-glow);
}
.result-bar-wrap { margin: 28px 0; display: flex; flex-direction: column; gap: 10px; }
.result-bar-row {
    display: grid; grid-template-columns: 90px 1fr 70px;
    align-items: center; gap: 12px; font-size: 13px;
}
.result-bar-label { color: var(--muted); }
.result-bar { height: 10px; background: var(--bg-2); border-radius: 100px; overflow: hidden; }
.result-bar-fill { height: 100%; border-radius: 100px; transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1); }
.result-bar-fill.original { background: rgba(255, 255, 255, 0.2); }
.result-bar-fill.compressed {
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    box-shadow: 0 0 8px var(--accent-glow);
}
.result-bar-val { color: var(--text); font-weight: 600; text-align: right; }
.result-meta {
    display: grid; grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
    padding: 18px 0; margin: 24px 0; text-align: center;
}
.result-meta > div { display: flex; flex-direction: column; gap: 4px; }
.result-meta span { font-size: 11px; color: var(--muted-2); text-transform: uppercase; letter-spacing: 0.1em; }
.result-meta strong { font-size: 20px; font-weight: 700; color: var(--text); }

.type-breakdown { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 16px 0 24px; }
.type-pill {
    background: var(--bg-2); border: 1px solid var(--line);
    color: var(--muted); padding: 6px 12px; border-radius: 100px; font-size: 12px;
}
.type-pill strong { color: var(--accent); margin-left: 4px; font-weight: 700; }

.btn-download {
    display: block; width: 100%;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: var(--bg-0); text-align: center; padding: 16px;
    border-radius: var(--r-md); font-weight: 700; font-size: 15px;
    margin-bottom: 12px; box-shadow: 0 0 24px var(--accent-glow);
    transition: all 0.15s; text-decoration: none; border: none; cursor: pointer;
}
.btn-download:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 32px var(--accent-glow); color: var(--bg-0);
}
.btn-ghost {
    display: block; width: 100%; background: transparent;
    border: 1px solid var(--line); color: var(--muted);
    padding: 12px; border-radius: var(--r-md);
    font-weight: 500; font-size: 13px; cursor: pointer;
    font-family: inherit; transition: all 0.15s;
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.cta-pageflip {
    margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line);
    font-size: 13px; color: var(--muted); text-align: center; line-height: 1.55;
}

/* ERROR */
.error-view { padding: 60px 0 80px; }
.error-card {
    max-width: 460px; margin: 0 auto;
    background: var(--bg-1); border: 1px solid var(--danger);
    border-radius: var(--r-lg); padding: 32px; text-align: center;
}
.error-icon {
    width: 52px; height: 52px;
    background: rgba(255, 92, 99, 0.15); color: var(--danger);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 28px; font-weight: 700; margin: 0 auto 16px;
}
.error-msg { font-size: 15px; color: var(--text); margin-bottom: 20px; }

/* HOW IT WORKS */
.how { padding: 80px 0; text-align: center; }
.how h2 { font-size: 32px; font-weight: 700; margin: 0 0 48px; letter-spacing: -0.02em; }
.how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; text-align: left; }
.how-step {
    background: var(--bg-1); border: 1px solid var(--line);
    border-radius: var(--r-md); padding: 24px;
}
.how-num {
    font-size: 11px; color: var(--accent);
    font-family: 'Courier New', monospace; font-weight: 700;
    letter-spacing: 0.1em; margin-bottom: 12px;
}
.how-step h3 { font-size: 17px; font-weight: 700; margin: 0 0 10px; color: var(--text); }
.how-step p { font-size: 13px; color: var(--muted); line-height: 1.6; margin: 0; }

/* FOOTER */
.footer {
    max-width: 1100px; margin: 0 auto;
    padding: 32px 24px 48px;
    border-top: 1px solid var(--line);
    display: flex; justify-content: space-between;
    font-size: 12px; color: var(--muted-2); flex-wrap: wrap; gap: 12px;
}
.footer a { color: var(--muted); }
.footer a:hover { color: var(--accent); }

/* MODE BADGES */
.mode-badges { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 20px 0 8px; }
.mode-badge {
    background: var(--bg-2); border: 1px solid var(--line);
    color: var(--muted); padding: 6px 12px; border-radius: 100px;
    font-size: 11px; display: inline-flex; align-items: center; gap: 6px;
}
.mode-badge .mb-icon { font-size: 13px; }

/* SMART SKIPS — promoted section showing what was studied and spared.
   Styled with top/bottom borders matching .result-meta so it reads as a
   first-class block, not a footnote. */
.skip-telemetry {
    margin: 20px 0 8px;
    padding: 20px 0 18px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.skip-telemetry .st-label {
    text-align: center;
    font-size: 11px;
    color: var(--muted-2);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    margin-bottom: 14px;
}
.skip-telemetry .st-rows {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 460px;
    margin: 0 auto;
}
.skip-telemetry .st-row {
    display: grid;
    grid-template-columns: 56px 1fr;
    align-items: baseline;
    gap: 14px;
    text-align: left;
}
.skip-telemetry .st-count {
    font-size: 20px;
    font-weight: 700;
    color: var(--accent);
    text-align: right;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.01em;
}
.skip-telemetry .st-text {
    font-size: 13px;
    color: rgba(255,255,255,0.82);
    line-height: 1.5;
}
.skip-telemetry .st-text .st-reason {
    color: var(--muted);
}
@media (max-width: 540px) {
    .skip-telemetry .st-row {
        grid-template-columns: 44px 1fr;
        gap: 10px;
    }
    .skip-telemetry .st-count { font-size: 17px; }
    .skip-telemetry .st-text { font-size: 12px; }
}

/* REPORT BUTTON */
.btn-report {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    width: 100%; background: transparent; border: 1px solid var(--accent);
    color: var(--accent); padding: 12px; border-radius: var(--r-md);
    font-weight: 600; font-size: 13px; margin-bottom: 12px;
    transition: all 0.15s; text-decoration: none;
}
.btn-report:hover { background: var(--accent-soft); color: var(--accent); }
.btn-report .rb-icon { font-size: 15px; }

/* ALREADY OPTIMIZED */
.already-optimized { text-align: center; padding: 8px; }
.ao-icon { font-size: 56px; margin-bottom: 16px; }
.ao-title {
    font-size: 28px; font-weight: 700; color: var(--accent);
    margin-bottom: 16px; letter-spacing: -0.02em;
}
.ao-msg {
    font-size: 14px; color: var(--text); line-height: 1.55;
    margin-bottom: 20px; max-width: 440px; margin-left: auto; margin-right: auto;
}
.ao-stat {
    display: inline-block; background: var(--bg-2);
    border: 1px solid var(--accent); border-radius: 100px;
    padding: 8px 18px; margin-bottom: 24px; font-size: 13px;
}
.ao-stat span { color: var(--muted); margin-right: 6px; }
.ao-stat strong { color: var(--accent); }
.ao-policy {
    font-size: 12px; color: var(--muted-2); font-style: italic;
    max-width: 420px; margin: 0 auto 28px; line-height: 1.5;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .how-grid { grid-template-columns: 1fr; }
    .topbar-nav { gap: 14px; font-size: 12px; }
    .result-bar-row { grid-template-columns: 70px 1fr 60px; gap: 8px; font-size: 12px; }
}
@media (max-width: 600px) {
    .mode-card-row { flex-wrap: wrap; gap: 10px; }
    .mode-pills { order: 3; flex: 1 0 100%; padding: 3px; }
    .mode-pill { padding: 8px 8px; font-size: 12px; }
    .mode-pill .mp-label { font-size: 12px; }
    .mode-card-label { flex: 0 0 auto; }
    .mode-help { margin-left: auto; }
    .hero { padding: 40px 0 60px; }
    .dropzone { padding: 40px 20px; }
    .result-card, .process-card { padding: 24px; }
    .result-ratio { font-size: 48px; }
    .result-meta strong { font-size: 17px; }
}
@media (max-width: 400px) {
    .mode-card { padding: 12px 14px; }
    .mode-pill .mp-icon { font-size: 13px; }
}

/* ============================================================
   v3.4 — Bonsai theme additions
   ============================================================ */

/* Hero radial glow background */
.hero {
    position: relative;
    background: radial-gradient(ellipse at center top, rgba(0,229,212,0.06) 0%, transparent 50%);
}

/* Hero mark with heartbeat + pulsing glow */
.hero-mark-wrap {
    position: relative;
    width: 160px;
    height: 160px;
    margin: 0 auto 0;
}
.hero-mark-glow {
    position: absolute;
    inset: -30px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0,229,212,0.35) 0%, rgba(0,229,212,0) 65%);
    animation: bonsai-pulse-glow 3.2s ease-in-out infinite;
    pointer-events: none;
}
.hero-mark-svg {
    position: relative;
    width: 100%;
    height: 100%;
    animation: bonsai-pulse-scale 3.2s ease-in-out infinite;
}
@keyframes bonsai-pulse-glow {
    0%, 100% { opacity: 0.5; transform: scale(0.92); }
    50%      { opacity: 1;   transform: scale(1.05); }
}
@keyframes bonsai-pulse-scale {
    0%, 100% { transform: scale(0.97); }
    50%      { transform: scale(1.03); }
}

/* Zen divider — bonsai branch with leaves */
.divider-zen {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 36px 0;
}
.dvz-branch {
    display: block;
    opacity: 0.85;
}

/* Philosophy quote section */
.philosophy {
    padding: 64px 24px;
    text-align: center;
    max-width: 720px;
    margin: 0 auto;
}
.phil-eyebrow {
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #00E5D4;
    margin-bottom: 18px;
    font-weight: 600;
}
.phil-quote {
    font-family: Georgia, 'Times New Roman', serif;
    font-style: italic;
    font-size: 22px;
    line-height: 1.5;
    color: rgba(255,255,255,0.88);
    max-width: 520px;
    margin: 0 auto;
    quotes: none;
}
.phil-attrib {
    font-size: 11px;
    color: rgba(255,255,255,0.4);
    margin-top: 20px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* Craft (How it works) — 3 deliberate steps */
.craft {
    padding: 56px 24px 80px;
    max-width: 720px;
    margin: 0 auto;
}
.craft h2 {
    font-size: 28px;
    font-weight: 800;
    text-align: center;
    margin: 0 0 12px;
    letter-spacing: -0.01em;
}
.craft-sub {
    font-size: 14px;
    color: rgba(255,255,255,0.55);
    text-align: center;
    max-width: 480px;
    margin: 0 auto 48px;
    line-height: 1.65;
}
.craft-steps {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0;
    position: relative;
}
.craft-step {
    padding: 20px;
    text-align: center;
    position: relative;
}
.craft-step:not(:last-child)::after {
    content: '→';
    position: absolute;
    right: -8px;
    top: 32px;
    color: #00E5D4;
    font-size: 18px;
    opacity: 0.4;
}
.cstep-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0,229,212,0.08);
    color: #00E5D4;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 18px;
    border: 1px solid rgba(0,229,212,0.25);
}
.craft-step h3 {
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 8px;
    color: rgba(255,255,255,0.95);
}
.craft-step p {
    font-size: 12px;
    color: rgba(255,255,255,0.55);
    line-height: 1.6;
    margin: 0;
}

/* Mobile responsive */
@media (max-width: 600px) {
    .hero-mark-wrap { width: 120px; height: 120px; }
    .craft-steps {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .craft-step::after { display: none !important; }
    .phil-quote { font-size: 18px; }
}

/* ============================================================
   v3.5 — Master Yāsuō sprite integration
   ============================================================ */

/* Hero — replace SVG with image, keep glow + heartbeat */
.hero-mark-wrap {
    /* container becomes 190px to match new hero image */
    width: 190px;
    height: 190px;
}
.hero-mark-svg {
    /* now an <img>, keep the pulse-scale animation */
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    image-rendering: -webkit-optimize-contrast;
}

/* Progress — Yāsuō on the left, sprite swap per phase */
.process-card {
    display: flex;
    align-items: center;
    gap: 24px;
}
.proc-yasuo-wrap {
    flex-shrink: 0;
    width: 90px;
    height: 110px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}
.proc-yasuo {
    max-height: 110px;
    width: auto;
    transition: opacity 0.4s ease;
    image-rendering: -webkit-optimize-contrast;
}
.proc-yasuo.fade-out { opacity: 0; }
.proc-card-inner { flex: 1; min-width: 0; }

/* Result — Yāsuō presenting at the top */
.result-yasuo-wrap {
    text-align: center;
    margin-bottom: 18px;
}
.result-yasuo {
    height: 120px;
    width: auto;
    image-rendering: -webkit-optimize-contrast;
}

/* Error — confused Yāsuō replaces "!" icon */
.error-yasuo {
    display: block;
    height: 120px;
    width: auto;
    margin: 0 auto 18px;
    image-rendering: -webkit-optimize-contrast;
}

/* Mobile — sprite stacking */
@media (max-width: 540px) {
    .hero-mark-wrap { width: 150px; height: 150px; }
    .process-card {
        flex-direction: column;
        gap: 12px;
    }
    .proc-yasuo-wrap { width: auto; height: 100px; }
    .proc-yasuo { max-height: 100px; }
    .result-yasuo { height: 100px; }
    .error-yasuo { height: 100px; }
}

/* ============================================================
   v3.7.2 — Workbench image, bolder Pageflip nav, About page
   ============================================================ */

/* Dropzone — bench image variant replaces the SVG up-arrow icon */
.dz-icon-bench {
    width: 110px;
    height: 110px;
    /* extra space below so the bench sits naturally above the title */
    margin-bottom: 14px;
}
.dz-icon-bench img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    image-rendering: -webkit-optimize-contrast;
    /* gentle float so the bench feels alive */
    animation: bench-float 6s ease-in-out infinite;
}
@keyframes bench-float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-4px); }
}
@media (max-width: 540px) {
    .dz-icon-bench { width: 92px; height: 92px; margin-bottom: 10px; }
}

/* Topbar — "by Pageflip" link: nearly as big & bold as the logo "Bonsai" */
.topbar-nav a.nav-pageflip {
    color: var(--text);
    font-weight: 700;
    font-size: 16px;
    letter-spacing: -0.01em;
}
.topbar-nav a.nav-pageflip:hover {
    color: var(--accent);
}
@media (max-width: 540px) {
    .topbar-nav a.nav-pageflip { font-size: 14px; }
}

/* ABOUT PAGE — origin story with video hero */
.about {
    max-width: 720px;
    margin: 0 auto;
    padding: 40px 24px 80px;
    position: relative;
}
.about::before {
    /* subtle ambient glow behind the video, echoes hero */
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    max-width: 100%;
    background: radial-gradient(circle at center, rgba(0,229,212,0.10) 0%, transparent 55%);
    pointer-events: none;
    z-index: 0;
}
.about-hero {
    max-width: 420px;
    margin: 0 auto 64px;
    position: relative;
    z-index: 1;
}
.about-video-frame {
    position: relative;
    border-radius: 28px;
    overflow: hidden;
    border: 1px solid var(--line);
    box-shadow: 0 24px 60px rgba(0,0,0,0.5), 0 0 0 1px var(--line);
    background: var(--bg-1);
    aspect-ratio: 1 / 1;
}
.about-video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
/* Unmute toggle — sits in the top-right of the video frame */
.about-video-sound {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(10, 14, 22, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.18);
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
    z-index: 2;
    padding: 0;
    font-family: inherit;
}
.about-video-sound:hover {
    background: rgba(0, 229, 212, 0.18);
    border-color: var(--accent);
    color: var(--accent);
    transform: scale(1.06);
}
.about-video-sound svg {
    width: 18px;
    height: 18px;
    display: block;
}
.about-video-sound .icon-unmuted { display: none; }
.about-video-sound.is-unmuted .icon-muted { display: none; }
.about-video-sound.is-unmuted .icon-unmuted { display: block; }
/* Pulsing hint ring on first load — fades out after a few seconds */
.about-video-sound.is-hinting::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid var(--accent);
    animation: sound-hint-pulse 1.8s ease-out 3;
    pointer-events: none;
}
@keyframes sound-hint-pulse {
    0%   { transform: scale(1);   opacity: 0.9; }
    100% { transform: scale(1.4); opacity: 0;   }
}
.about-story {
    max-width: 620px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}
.about-opening {
    font-size: clamp(28px, 4vw, 38px);
    line-height: 1.2;
    letter-spacing: -0.02em;
    font-weight: 600;
    margin: 0 0 56px;
    color: var(--text);
    text-wrap: balance;
}
.about-story p {
    font-family: Georgia, 'Times New Roman', serif;
    font-style: italic;
    font-size: 18px;
    line-height: 1.75;
    color: rgba(255,255,255,0.82);
    margin: 0 0 28px;
    text-wrap: pretty;
}
.about-emphatic {
    font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', sans-serif !important;
    font-style: normal !important;
    font-size: clamp(20px, 2.6vw, 24px) !important;
    font-weight: 600;
    color: var(--text) !important;
    margin: 44px 0 !important;
    letter-spacing: -0.01em;
}
.about-outro {
    margin-top: 56px;
    padding-top: 36px;
    border-top: 1px solid var(--line);
}
.about-outro-mark {
    font-size: 18px;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}
.about-outro-sub {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: 4px;
}
/* The "Mastered by Yāsuō" beat — slot reveal, gets pure white + a hair more presence */
.about-outro-final {
    color: var(--text);
    font-size: 15px;
    font-weight: 500;
    margin-top: 14px;
    letter-spacing: -0.005em;
}
.about-cta {
    margin-top: 56px;
    text-align: center;
}
.btn-bench {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: var(--bg-0);
    padding: 14px 28px;
    border-radius: var(--r-md);
    font-weight: 700;
    font-size: 14px;
    box-shadow: 0 0 24px var(--accent-glow);
    transition: all 0.15s;
    text-decoration: none;
}
.btn-bench:hover {
    color: var(--bg-0);
    transform: translateY(-1px);
    box-shadow: 0 4px 32px var(--accent-glow);
}

@media (max-width: 600px) {
    .about { padding: 24px 20px 64px; }
    .about-hero { margin-bottom: 48px; max-width: 320px; }
    .about-video-frame { border-radius: 22px; }
    .about-video-sound { width: 36px; height: 36px; top: 10px; right: 10px; }
    .about-video-sound svg { width: 16px; height: 16px; }
    .about-story p { font-size: 16px; line-height: 1.7; }
    .about-emphatic { margin: 36px 0 !important; }
    .about-outro { margin-top: 44px; }
    .about-cta { margin-top: 44px; }
}
