/* Trash Panda: a calm desktop workspace within the shared Ronde system. */

/* Palette: the page stays on Ronde's off-white (near black in dark mode), and
   the app's own soft blue-greys (TrashPanda src/styles/global.css: #e8ecf2
   surfaces, #4a5057 text) are the accents: cards, chips, the explorer and the
   architecture panel, and a softer charcoal ink. Only this page loads this
   file, so the shared tokens are overridden here (dark values further down). */
:root {
    --rh-bg: #fafafa;
    --rh-card: #e8ecf2;
    --rh-ink: #3d4249;
    --rh-text-2: #585e65;
    --rh-muted: #6b7177;
    --rh-line: rgba(61, 66, 73, .13);
    --rh-line-strong: rgba(61, 66, 73, .3);
    --rh-fill: rgba(61, 66, 73, .08);
    --rh-fill-hover: rgba(61, 66, 73, .05);
    --rh-primary-hover: #50565e;
    --rh-green: #6e9e7a;
    --rh-panel-shadow: 0 4px 10px rgba(74, 80, 87, .04), 0 12px 28px rgba(74, 80, 87, .08);
    --tp-panel: #f3f5f8;
    --tp-panel-glow: #d3dbe5;
    --tp-panel-ink: #3d4249;
    --tp-panel-text: #5a6067;
    --tp-panel-line: #d5dae1;
    --tp-panel-dots: #4a5057;
    --tp-slate: #474c53;
    --tp-slate-raised: #52585f;
    --tp-slate-text: #d3d7dc;
    --tp-slate-muted: #bcc1c7;
    --tp-slate-line: #6a7077;
}
@media (prefers-color-scheme: dark) {
    :root {
        --rh-bg: #0e0f11;
        --rh-card: #24272c;
        --rh-ink: #e4e7ec;
        --rh-text-2: rgba(228, 231, 236, .72);
        --rh-muted: rgba(228, 231, 236, .5);
        --rh-line: rgba(228, 231, 236, .1);
        --rh-line-strong: rgba(228, 231, 236, .24);
        --rh-fill: rgba(228, 231, 236, .1);
        --rh-fill-hover: rgba(228, 231, 236, .06);
        --rh-primary-hover: #c9cdd4;
        --rh-green: #8dbb98;
        --rh-panel-shadow: 0 4px 14px rgba(0, 0, 0, .22);
        --tp-panel: #2f3339;
        --tp-panel-glow: #3e4651;
        --tp-panel-ink: #e9ecf0;
        --tp-panel-text: #c6cbd2;
        --tp-panel-line: #474d56;
        --tp-panel-dots: #d5dae2;
        --tp-slate: #2d3137;
        --tp-slate-raised: #393e45;
        --tp-slate-text: #c3c8ce;
        --tp-slate-muted: #a9aeb5;
        --tp-slate-line: #474c53;
    }
}

/* The header stays in Ronde's default colours, as on every other page: the
   tokens above go back to ronde-project.css's values inside it. */
.rh-head {
    --rh-ink: #111214;
    --rh-line-strong: rgba(17, 18, 20, .22);
    --rh-fill-hover: rgba(17, 18, 20, .04);
    color: var(--rh-ink);
}
@media (prefers-color-scheme: dark) {
    .rh-head {
        --rh-ink: #f7f7f7;
        --rh-line-strong: rgba(255, 255, 255, .24);
        --rh-fill-hover: rgba(255, 255, 255, .07);
    }
}

.tp-label { font-size: 13px; color: var(--rh-text-2); font-weight: 500; }
.tp-hero { display:grid; grid-template-columns: 1.1fr 1fr; align-items:center; gap:48px; padding-top:72px; }
.tp-hero h1 { font-size:clamp(48px,6.2vw,76px); line-height:1.02; letter-spacing:-.045em; font-weight:500; margin-top:20px; }
.tp-hero h1 span { color:var(--rh-text-2); }
.tp-hero .pr-btn { margin-top:28px; }
.tp-cover { position:relative; overflow:hidden; border-radius:32px; background:#000; align-self:stretch; display:flex; align-items:center; min-height:460px; box-shadow:0 26px 50px -26px rgba(40,44,50,.6), 0 2px 6px rgba(40,44,50,.12); }
.tp-cover img { display:block; width:100%; height:auto; }
.tp-cover figcaption { position:absolute; z-index:2; bottom:26px; left:28px; right:28px; display:flex; justify-content:space-between; gap:12px; font-size:13px; color:#c9ced5; }

/* Liquid glass pane over the whole cover, edge to edge, so the header reads
   as one glass panel rather than a picture. Clear in the middle so the raccoon
   stays crisp: only a whisper of blur and a lift, so the black reads as smoked
   glass rather than a hole. In Chromium the picture also bends a little
   under it (.tp-warp, below). Gloss as background layers: a broad reflection
   across the top left, one narrow streak, a soft catch light at the bottom
   right, a faint wash of the page's grey. Then light gathered inside all four
   edges, like the thickness of the glass, and a lit rim (::before). Same
   recipe as the projects page's .pj-glass. The panel's lift shadow is on
   .tp-cover, since the cover clips this layer. */
.tp-glass {
    position:absolute; z-index:1; inset:0; border-radius:inherit; pointer-events:none; overflow:hidden;
    background:
        linear-gradient(152deg, rgba(255,255,255,.22) 0%, rgba(255,255,255,.08) 24%, rgba(255,255,255,0) 40%),
        linear-gradient(118deg, rgba(255,255,255,0) 58%, rgba(255,255,255,.09) 63%, rgba(255,255,255,.03) 68%, rgba(255,255,255,0) 72%),
        radial-gradient(ellipse at 100% 100%, rgba(255,255,255,.13), rgba(255,255,255,0) 45%),
        linear-gradient(rgba(221,225,231,.06), rgba(221,225,231,.06));
    -webkit-backdrop-filter: blur(.6px) brightness(1.18) contrast(.92);
    backdrop-filter: blur(.6px) brightness(1.18) contrast(.92);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.6), inset 0 -1px 0 rgba(255,255,255,.22),
                inset 0 0 0 1px rgba(255,255,255,.08), inset 0 20px 32px -22px rgba(255,255,255,.5),
                inset 0 -20px 32px -24px rgba(255,255,255,.3), inset 20px 0 32px -26px rgba(255,255,255,.22),
                inset -20px 0 32px -26px rgba(255,255,255,.16), inset 0 0 60px rgba(255,255,255,.05);
}
/* Chromium only (rondePanda.js sets .tp-warp on <html>): the same glass with a
   slow liquid bend first, from #tp-warp in project5.html. Unprefixed only,
   so Safari never gets it. */
.tp-warp .tp-glass { backdrop-filter:url(#tp-warp) blur(.6px) brightness(1.18) contrast(.92); }
/* Lit rim: bright along the top and left, catching again at the bottom right. */
.tp-glass::before {
    content:""; position:absolute; inset:0; padding:1.5px; border-radius:inherit;
    background:linear-gradient(150deg, rgba(255,255,255,.95) 0%, rgba(255,255,255,.55) 18%, rgba(255,255,255,.12) 45%,
                               rgba(255,255,255,.06) 70%, rgba(255,255,255,.6) 100%);
    -webkit-mask:linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite:xor;
    mask:linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite:exclude;
}
/* A soft sheen that drifts across when the pointer is over the cover. */
.tp-glass::after {
    content:""; position:absolute; inset:-20% -60%;
    background:linear-gradient(105deg, rgba(255,255,255,0) 40%, rgba(255,255,255,.08) 48%, rgba(255,255,255,.14) 50%, rgba(255,255,255,.08) 52%, rgba(255,255,255,0) 60%);
    transform:translateX(-38%); transition:transform 1.1s var(--rh-ease);
}
.tp-cover:hover .tp-glass::after { transform:translateX(30%); }
/* The glass arrives with its first shine (rondePanda.js): hidden while the
   cover is .tp-pre, then revealed behind .tp-shine, a slanted band of light
   the script sweeps across once, its middle on the glass's edge. */
.tp-cover.tp-pre .tp-glass { clip-path:inset(0 100% 0 0); }
.tp-shine {
    position:absolute; z-index:1; top:0; left:0; height:100%; pointer-events:none; transform:translateX(-200%);
    background:linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.06) 30%, rgba(255,255,255,.2) 50%, rgba(255,255,255,.06) 70%, rgba(255,255,255,0) 100%);
}
.tp-main > .tp-facts { margin-top:28px; }
.tp-facts { display:flex; align-items:center; justify-content:space-between; gap:20px; padding:22px 0; border-bottom:1px solid var(--rh-line); color:var(--rh-text-2); font-size:14px; }
.tp-facts > span { display:flex; align-items:center; gap:9px; }
.tp-intro { max-width:690px; margin-left:auto; margin-right:auto; text-align:center; }
.tp-intro h2,.tp-local h2,.tp-close h2 { font-size:clamp(36px,4.8vw,58px); letter-spacing:-.035em; line-height:1.08; font-weight:500; margin:20px 0; }
.tp-intro > p:last-child,.tp-close > p:last-child { color:var(--rh-text-2); font-size:20px; line-height:1.6; }
.tp-workspace { scroll-margin-top:32px; }
.tp-workspace .pr-h2 { margin-top:12px; }
.tp-desk { display:grid; grid-template-columns:230px 1fr; gap:16px; padding:16px; background:var(--rh-card); border-radius:32px; box-shadow:var(--rh-panel-shadow); }
.tp-sections { display:flex; flex-direction:column; gap:5px; padding:16px 8px; }
.tp-sections button { display:flex; align-items:center; justify-content:space-between; gap:12px; min-height:44px; padding:0 18px; border:0; border-radius:999px; background:transparent; text-align:left; transition:background .2s; }
.tp-sections button .icon { opacity:0; font-size:14px; }
.tp-sections button:hover { background:var(--rh-fill); }
.tp-sections button[aria-pressed="true"] { background:var(--rh-ink); color:var(--rh-bg); }
.tp-sections button[aria-pressed="true"] .icon { opacity:1; }
.tp-preview { position:relative; display:flex; flex-direction:column; min-width:0; overflow:hidden; padding:30px; border-radius:24px; background:radial-gradient(ellipse at 85% 20%,var(--tp-panel-glow),transparent 70%),var(--tp-panel); color:var(--tp-panel-ink); }
.tp-preview .tp-label { color:var(--tp-panel-text); }
.tp-preview-top,.tp-preview-foot { display:flex; justify-content:space-between; align-items:center; gap:16px; }
.tp-count { font-size:13px; color:var(--tp-panel-text); font-variant-numeric:tabular-nums; }
.tp-preview-copy { position:relative; margin-top:auto; padding-top:110px; max-width:440px; }
.tp-preview h3 { font-size:54px; font-weight:400; letter-spacing:-.04em; margin:10px 0 12px; }
.tp-preview-copy > p:last-child { font-size:18px; line-height:1.55; color:var(--tp-panel-text); min-height:84px; }
.tp-preview-foot { border-top:1px solid var(--tp-panel-line); margin-top:28px; padding-top:20px; font-size:13px; color:var(--tp-panel-text); }
.tp-mark { position:absolute; right:32px; top:58px; width:118px; height:110px; }
.tp-mark i { position:absolute; width:68px; height:68px; border-radius:50%; background:radial-gradient(circle,var(--tp-panel-dots) 35%,transparent 41%) 0 0 / 4px 4px; transition:transform .25s; }
.tp-mark i:nth-child(1) { left:25px; top:0; }
.tp-mark i:nth-child(2) { left:0; top:43px; }
.tp-mark i:nth-child(3) { right:0; top:43px; }
.tp-preview:hover .tp-mark i:nth-child(1) { transform:translateY(-4px); }
.tp-preview:hover .tp-mark i:nth-child(2) { transform:translateX(-4px); }
.tp-preview:hover .tp-mark i:nth-child(3) { transform:translateX(4px); }
.tp-caption { font-size:13px; color:var(--rh-text-2); margin:16px 8px 0; }
.tp-local { display:grid; grid-template-columns:1fr 1fr; gap:60px; padding:56px; border-radius:32px; background:var(--tp-slate); color:#f3f5f8; }
.tp-local .tp-label { color:var(--tp-slate-muted); }
.tp-local > div > p:not(.tp-label) { color:var(--tp-slate-text); font-size:18px; line-height:1.6; }
.tp-local-pill { display:inline-block; border:1px solid var(--tp-slate-line); border-radius:999px; padding:12px 16px; font-size:12px; margin-top:28px; }
.tp-stack { align-self:center; }
.tp-stack > div { background:var(--tp-slate-raised); border-radius:22px; padding:24px; display:flex; gap:24px; align-items:center; margin-top:12px; }
.tp-stack > div > span { color:var(--tp-slate-muted); font-size:13px; }
.tp-stack h3 { font-size:22px; font-weight:400; }
.tp-stack small { display:block; color:var(--tp-slate-muted); font-size:13px; margin-top:6px; }
.tp-stack > p { margin-top:20px; font-size:13px!important; }
.tp-build { display:grid; grid-template-columns:1fr 1.3fr; gap:80px; }
.tp-build .pr-h2 { margin-top:16px; }
.tp-decisions article { display:flex; gap:22px; padding:26px 0; border-bottom:1px solid var(--rh-line); }
.tp-decisions article:first-child { padding-top:0; }
.tp-decisions article > span { color:var(--rh-muted); font-size:13px; padding-top:5px; }
.tp-decisions h3 { font-size:23px; font-weight:500; }
.tp-decisions p { color:var(--rh-text-2); font-size:17px; line-height:1.6; margin-top:10px; }
.tp-close { border-radius:32px; padding:64px; text-align:center; background:var(--rh-card); box-shadow:var(--rh-panel-shadow); }
.tp-close > p:last-child { max-width:620px; margin:auto; }
/* Margin pieces (rondePandaDecor.js): the Home cards on the left (rail from
   the workspace to the end of the build notes) and the layer stack on the
   right (from the local section to the end of the closing card). The script
   sets each rail's height and --tp-h, its canvas's height, so the canvas holds
   in the middle of the window while the rail passes. Each is centred in its
   window margin and sized to it (100% is the section's width, so
   (100vw - 100%) / 2 is the margin). Shown only where the margin fits. */
.tp-workspace,.tp-local { position:relative; }
.tp-rail { display:none; position:absolute; top:0; z-index:0; width:min(220px,calc((100vw - 100%) / 2 - 40px)); translate:-50% 0; color:var(--rh-ink); --tp-label:var(--rh-muted); pointer-events:none; }
.tp-rail--left { left:calc((100% - 100vw) / 4); }
.tp-rail--right { left:calc(100% + (100vw - 100%) / 4); }
.tp-rail canvas { position:sticky; top:calc(50vh - var(--tp-h,0px) / 2); display:block; width:100%; }
#tp-deco-home { aspect-ratio:5 / 6; }
#tp-deco-stack { aspect-ratio:3 / 4; }
@media(min-width:1360px) { .tp-rail { display:block; } }
@media(max-width:900px) {
    .tp-hero { gap:28px; }
    .tp-cover { min-height:380px; }
    .tp-local { padding:36px; gap:30px; }
    .tp-build { gap:36px; }
}
@media(max-width:650px) {
    .tp-hero { grid-template-columns:1fr; padding-top:48px; gap:32px; }
    .tp-hero h1 { font-size:56px; }
    .tp-cover { min-height:0; aspect-ratio:1; border-radius:24px; }
    .tp-cover figcaption { bottom:22px; left:24px; right:24px; }
    .tp-facts { flex-wrap:wrap; gap:14px 24px; font-size:12px; }
    .tp-desk { grid-template-columns:1fr; padding:10px; border-radius:28px; gap:10px; }
    .tp-sections { flex-direction:row; overflow-x:auto; padding:4px; }
    .tp-sections button { flex-shrink:0; padding:0 16px; }
    .tp-sections button .icon { display:none; }
    .tp-preview { padding:24px; min-height:440px; }
    .tp-preview-copy { padding-top:128px; }
    .tp-preview h3 { font-size:44px; }
    .tp-preview-copy > p:last-child { min-height:110px; }
    .tp-preview-foot { font-size:12px; }
    .tp-workspace .pr-section-head { display:block; }
    .tp-workspace .pr-section-head > span { display:block; margin-top:14px; }
    .tp-local,.tp-build { grid-template-columns:1fr; gap:36px; }
    .tp-local { padding:30px 24px; border-radius:24px; }
    .tp-close { padding:40px 24px; border-radius:24px; }
    .tp-intro > p:last-child,.tp-close > p:last-child { font-size:18px; }
}
@media(prefers-reduced-motion:reduce) { .tp-mark i,.tp-sections button,.tp-glass::after { transition:none; } .tp-preview:hover .tp-mark i { transform:none; } .tp-cover:hover .tp-glass::after { transform:translateX(-38%); } }
