/* DPF Labs — painel com gavetas. Escuro com brilho de laboratório; claro disponível. */
:root {
  --bg: #070b14;
  --bg-card: #0d1426;
  --surface: #111a31;
  --line: rgba(140, 170, 255, 0.16);
  --line-strong: rgba(140, 170, 255, 0.34);
  --text: #e8eef9;
  --muted: #93a6c6;
  --green: #3ee8c4;
  --cyan: #5cc8ff;
  --violet: #b48cff;
  --amber: #ffcf6e;
  --on-accent: #04110f;
  --glow: rgba(62, 232, 196, 0.22);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  --radius: 18px;
  --radius-sm: 10px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --font-display: "Sora", "Segoe UI", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --bar-h: 64px;
  --dock-h: 64px;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #f3f6fb; --bg-card: #ffffff; --surface: #e9eff8; --line: rgba(20, 40, 90, 0.14); --line-strong: rgba(20, 40, 90, 0.3);
  --text: #0c1830; --muted: #4a5b7a; --green: #0a8f78; --cyan: #0a73b8; --violet: #6a42c8; --amber: #946200; --on-accent: #ffffff;
  --glow: rgba(10, 143, 120, 0.14); --shadow: 0 24px 60px rgba(20, 40, 90, 0.16); color-scheme: light;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { height: 100%; }
body.app { min-height: 100%; background: var(--bg); color: var(--text); font-family: var(--font-body); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }
[tabindex="-1"]:focus { outline: none; }
.skip { position: absolute; left: -999px; top: 0; z-index: 3000; background: var(--green); color: var(--on-accent); padding: 0.5rem 1rem; }
.skip:focus { left: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ic { width: 1.15em; height: 1.15em; flex: none; }
.ic.sm { width: 0.95em; height: 0.95em; }

#bg { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
body.app::before { content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none; background:
  radial-gradient(900px 600px at 82% 12%, var(--glow), transparent 60%),
  radial-gradient(700px 500px at 8% 90%, rgba(180, 140, 255, 0.12), transparent 60%); }

/* ── Barra superior ── */
.topbar { position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--bar-h); display: flex; align-items: center; gap: 1rem; padding: 0 max(16px, env(safe-area-inset-right, 0px)) 0 max(16px, env(safe-area-inset-left, 0px)); background: color-mix(in srgb, var(--bg) 78%, transparent); backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: baseline; gap: 0.4rem; font-family: var(--font-display); font-weight: 700; color: var(--text); letter-spacing: 0.01em; }
.brand:hover { text-decoration: none; }
.brand b { font-size: 1.3rem; background: linear-gradient(135deg, var(--green), var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand span { color: var(--muted); font-weight: 500; font-size: 0.95rem; }
.tabs { display: flex; gap: 0.25rem; margin-left: auto; }
.tabs a { position: relative; color: var(--muted); font-size: 0.92rem; padding: 0.45rem 0.85rem; border-radius: 999px; transition: color 0.25s, background 0.25s; }
.tabs a:hover { color: var(--text); background: color-mix(in srgb, var(--cyan) 10%, transparent); text-decoration: none; }
.tabs a[aria-current="page"] { color: var(--on-accent); background: linear-gradient(135deg, var(--green), var(--cyan)); font-weight: 600; }
.tools { display: flex; align-items: center; gap: 0.5rem; }
.pill { display: inline-flex; align-items: center; gap: 0.4rem; height: 38px; padding: 0 0.85rem; border-radius: 999px; border: 1px solid var(--line-strong); background: transparent; color: var(--text); cursor: pointer; font-size: 0.85rem; transition: border-color 0.25s, background 0.25s; }
.pill:hover { border-color: var(--green); background: color-mix(in srgb, var(--green) 10%, transparent); text-decoration: none; }
.pill.icon { width: 38px; padding: 0; justify-content: center; }

/* ── Palco e painéis ── */
.stage { position: relative; z-index: 1; padding: calc(var(--bar-h) + 1.75rem) max(16px, env(safe-area-inset-right, 0px)) 3rem max(16px, env(safe-area-inset-left, 0px)); min-height: 100vh; }
.panel { max-width: 1180px; margin: 0 auto; }
.js .panel[hidden] { display: none; }
.js .panel { animation: panel-in 0.55s var(--ease) both; }
@keyframes panel-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.panel-head { margin-bottom: 1.75rem; max-width: 62ch; }
.eyebrow { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--green); margin-bottom: 0.6rem; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.12; text-wrap: balance; }
.panel-head h2 { font-size: clamp(1.9rem, 4.5vw, 3rem); letter-spacing: -0.02em; margin-bottom: 0.5rem; }
.lead { color: var(--muted); font-size: 1.05rem; }
.js .panel { padding-bottom: calc(var(--dock-h) + 1rem); }

/* ── Início ── */

.start { width: 100%; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(1.5rem, 5vw, 4rem); align-items: center; }
.start h1 { font-size: clamp(2.4rem, 6.2vw, 4.4rem); letter-spacing: -0.035em; margin-bottom: 0.8rem; background: linear-gradient(120deg, var(--text) 35%, var(--cyan) 75%, var(--green)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.role { font-family: var(--font-display); font-size: clamp(1.05rem, 2.2vw, 1.4rem); font-weight: 600; color: var(--amber); margin-bottom: 1rem; }
.role em { font-style: normal; color: var(--green); }
.tagline { color: var(--muted); font-size: 1.1rem; max-width: 52ch; margin-bottom: 1.75rem; }
.cta { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 1.5rem; }
.btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.8rem 1.35rem; border-radius: 12px; font-weight: 600; font-size: 0.97rem; border: 1.5px solid transparent; cursor: pointer; transition: transform 0.3s var(--ease), box-shadow 0.3s, background 0.3s; }
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn.primary { background: linear-gradient(135deg, var(--green), var(--cyan)); color: var(--on-accent); box-shadow: 0 10px 30px var(--glow); }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn.ghost:hover { border-color: var(--green); background: color-mix(in srgb, var(--green) 9%, transparent); }
.social { display: flex; gap: 0.6rem; }
.social a { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-strong); color: var(--text); transition: transform 0.3s var(--ease), border-color 0.3s, color 0.3s; }
.social a:hover { transform: translateY(-3px); border-color: var(--green); color: var(--green); text-decoration: none; }
.portrait { justify-self: center; position: relative; width: min(100%, 380px); aspect-ratio: 1; }
.portrait .ring { position: absolute; inset: -6px; border-radius: 50%; background: conic-gradient(from 200deg, var(--green), var(--cyan), var(--violet), var(--green)); filter: blur(0.3px); animation: spin 18s linear infinite; }
.portrait .halo { position: absolute; inset: -40px; border-radius: 50%; background: radial-gradient(circle, var(--glow), transparent 65%); }
.portrait .photo { position: absolute; inset: 0; border-radius: 50%; overflow: hidden; background: var(--bg-card); display: grid; place-items: center; }
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.portrait .mono { font-family: var(--font-display); font-weight: 800; font-size: clamp(3rem, 9vw, 5.5rem); letter-spacing: 0.04em; color: var(--cyan); text-shadow: 0 0 36px var(--glow); }
.portrait .where { position: absolute; left: 50%; bottom: -16px; transform: translateX(-50%); white-space: nowrap; font-family: var(--font-mono); font-size: 0.75rem; padding: 0.35rem 0.8rem; border-radius: 999px; background: var(--bg-card); border: 1px solid var(--line-strong); color: var(--muted); display: inline-flex; gap: 0.4rem; align-items: center; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Módulos ── */
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.5rem; }
.chip { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.42rem 0.95rem; border-radius: 999px; border: 1px solid var(--line-strong); background: transparent; color: var(--muted); font-size: 0.85rem; cursor: pointer; transition: all 0.25s; }
.chip:hover { color: var(--text); border-color: var(--green); }
.chip[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: var(--on-accent); font-weight: 700; }
.grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); }
.mcard { text-align: left; cursor: pointer; padding: 0; background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; min-width: 0; transition: transform 0.35s var(--ease), border-color 0.3s, box-shadow 0.3s; }
.mcard:hover { transform: translateY(-6px); border-color: var(--green); box-shadow: var(--shadow); }
.mcard[hidden] { display: none; }
.cover { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface); max-width: 100%; }
.cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); display: block; }
.mcard:hover .cover img { transform: scale(1.06); }
.cover .badge { position: absolute; top: 0.7rem; left: 0.7rem; }
.badge { display: inline-flex; align-items: center; gap: 0.3rem; font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.08em; text-transform: uppercase; padding: 0.22rem 0.6rem; border-radius: 999px; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(6px); border: 1px solid color-mix(in srgb, var(--violet) 55%, transparent); color: var(--violet); }
.mbody { padding: 1.1rem 1.25rem 1.3rem; display: grid; gap: 0.5rem; }
.mbody h3 { font-size: 1.2rem; }
.mbody .ctext { color: var(--muted); font-size: 0.92rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.tags li { font-family: var(--font-mono); font-size: 0.68rem; padding: 0.18rem 0.55rem; border-radius: 6px; background: color-mix(in srgb, var(--cyan) 10%, transparent); border: 1px solid color-mix(in srgb, var(--cyan) 28%, transparent); color: var(--cyan); }
.more { margin-top: 0.3rem; display: inline-flex; align-items: center; gap: 0.4rem; color: var(--green); font-weight: 600; font-size: 0.88rem; }
.mcard:hover .more .arrow { transform: translateX(5px); }
.more .arrow { transition: transform 0.3s; }

/* moldura de navegador com brilho por módulo */
.cover.has-photo { aspect-ratio: auto; padding: 1.1rem 1.1rem 0; display: block; background:
  radial-gradient(120% 90% at 50% 0%, hsl(var(--hue) 85% 55% / 0.38), transparent 70%), var(--surface); }
.frame { display: block; border: 1px solid hsl(var(--hue) 75% 62% / 0.55); border-bottom: 0; border-radius: 10px 10px 0 0; overflow: hidden; background: #05080f; box-shadow: 0 0 46px hsl(var(--hue) 95% 58% / 0.32), 0 -6px 30px rgba(0, 0, 0, 0.25); }
.frame-bar { display: flex; gap: 5px; padding: 7px 10px; background: rgba(255, 255, 255, 0.07); border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.frame-bar i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, 0.28); }
.frame-bar i:first-child { background: #ff6b6b; } .frame-bar i:nth-child(2) { background: #ffcf6e; } .frame-bar i:nth-child(3) { background: #3ee8c4; }
.frame img { width: 100%; height: auto; aspect-ratio: 1365 / 767; object-fit: cover; }
.cover.has-photo .badge { top: calc(1.1rem + 3px); left: auto; right: calc(1.1rem + 8px); }
.thumbs { display: flex; gap: 0.5rem; padding: 0 1.4rem; flex-wrap: wrap; }
.thumb { cursor: pointer; padding: 0; width: 84px; border-radius: 8px; overflow: hidden; border: 2px solid var(--line); background: var(--surface); }
.thumb img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.thumb[aria-current="true"] { border-color: var(--green); }

/* ── Gaveta ── */
.scrim { position: fixed; inset: 0; z-index: 200; background: rgba(2, 5, 12, 0.6); backdrop-filter: blur(4px); opacity: 0; transition: opacity 0.3s; }
.scrim.on { opacity: 1; }
.drawer { position: fixed; z-index: 210; top: 0; right: 0; bottom: 0; width: min(520px, 100%); background: var(--bg-card); border-left: 1px solid var(--line-strong); box-shadow: var(--shadow); display: flex; flex-direction: column; transform: translateX(102%); transition: transform 0.45s var(--ease); padding-right: env(safe-area-inset-right, 0px); }
.drawer.on { transform: none; }
.drawer[hidden] { display: none; }
.drawer-top { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; padding: 0.75rem 1rem; border-bottom: 1px solid var(--line); padding-top: max(0.75rem, env(safe-area-inset-top, 0px)); }
.drawer-body { overflow-y: auto; flex: 1; display: grid; align-content: start; gap: 1rem; padding-bottom: 1.5rem; }
.drawer-body .cover:not(.has-photo) { aspect-ratio: 16 / 10; }
.drawer-body .inner { display: grid; gap: 0.9rem; padding: 0 1.4rem; }
.drawer-body h3 { font-size: 1.7rem; letter-spacing: -0.01em; }
.drawer-body p { color: var(--muted); }
.drawer-nav { display: flex; gap: 0.5rem; }

/* ── Plataforma ── */
.plat { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.5rem; align-items: start; }
.box { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; min-width: 0; }
.box h3 { font-size: 1.15rem; margin-bottom: 0.4rem; }
.box p { color: var(--muted); font-size: 0.95rem; }
.diagram { margin-top: 1rem; }
.diagram svg { width: 100%; height: auto; display: block; }
.layers { display: grid; gap: 0.6rem; }
.layer { text-align: left; cursor: pointer; display: flex; align-items: center; gap: 0.9rem; padding: 0.8rem 1rem; border-radius: 14px; border: 1px solid var(--line); background: var(--bg-card); transition: border-color 0.25s, background 0.25s, transform 0.3s var(--ease); }
.layer:hover { border-color: var(--line-strong); transform: translateX(4px); }
.layer[aria-selected="true"] { border-color: var(--green); background: color-mix(in srgb, var(--green) 9%, var(--bg-card)); }
.layer .n { flex: none; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; font-family: var(--font-mono); font-weight: 700; font-size: 0.85rem; background: linear-gradient(135deg, var(--cyan), var(--violet)); color: var(--on-accent); }
.layer-detail { margin-top: 0.9rem; }
.layer-detail[hidden] { display: none; }
.layer-detail .tags { margin-top: 0.8rem; }
.plat-links { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1rem; }

.invite { margin-top: 0.9rem; color: var(--text); font-weight: 500; }
.curio { margin-top: 1.1rem; border-top: 1px dashed var(--line); padding-top: 0.8rem; font-size: 0.85rem; }
.curio summary { cursor: pointer; color: var(--muted); font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; }
.curio p { margin: 0.5rem 0; }
.curio a { display: inline-flex; align-items: center; gap: 0.4rem; color: var(--muted); }
.drawer-cta { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.drawer-cta .btn { flex: 1 1 auto; justify-content: center; }

/* ── Decisões de projeto ── */
.decisions { display: grid; gap: 0.7rem; margin-top: 1rem; }
.decisions li { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.25fr); gap: 0.8rem; align-items: start; padding: 0.85rem 1rem; border-radius: 12px; background: color-mix(in srgb, var(--surface) 70%, transparent); border: 1px solid var(--line); font-size: 0.92rem; }
.dl { display: block; font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 0.2rem; }
.dp { color: var(--muted); } .dp .dl { color: var(--amber); }
.ds { color: var(--text); } .ds .dl { color: var(--green); }
.da { color: var(--cyan); font-size: 1.2rem; line-height: 1.4; }
.note { margin-top: 0.9rem; color: var(--muted); font-size: 0.8rem; }
.stack { display: grid; gap: 0.6rem; margin-top: 1rem; }
.stack li { display: flex; gap: 0.8rem; align-items: flex-start; }
.stack .n { flex: none; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; font-family: var(--font-mono); font-size: 0.75rem; font-weight: 700; background: linear-gradient(135deg, var(--cyan), var(--violet)); color: var(--on-accent); }
.stack strong { display: block; font-size: 0.95rem; }
.stack span:not(.n) { display: block; color: var(--muted); font-size: 0.85rem; }
@media (max-width: 640px) { .decisions li { grid-template-columns: 1fr; gap: 0.4rem; } .da { transform: rotate(90deg); justify-self: start; } }

/* ── Trajetória ── */
.subtabs { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1.5rem; border-bottom: 1px solid var(--line); padding-bottom: 0.75rem; }
.subtab { cursor: pointer; background: transparent; border: 0; padding: 0.5rem 1rem; border-radius: 999px; color: var(--muted); font-size: 0.92rem; transition: color 0.25s, background 0.25s; }
.subtab:hover { color: var(--text); }
.subtab[aria-selected="true"] { background: color-mix(in srgb, var(--violet) 18%, transparent); color: var(--text); font-weight: 600; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--violet) 50%, transparent); }
.subpanel[hidden] { display: none; }
.about p { color: #c4d1ea; max-width: 70ch; }
:root[data-theme="light"] .about p { color: #24324d; }
.about p + p { margin-top: 0.9rem; }
.skills { margin-top: 1.75rem; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); }
.skills .box h3 { font-size: 1.05rem; }
.skills .tags { margin-top: 0.75rem; }
.timeline { border-left: 2px solid var(--line-strong); margin-left: 0.4rem; padding-left: 1.6rem; display: grid; gap: 1.75rem; max-width: 800px; }
.timeline li { position: relative; display: grid; gap: 0.25rem; }
.timeline li::before { content: ""; position: absolute; left: calc(-1.6rem - 7px); top: 0.5rem; width: 12px; height: 12px; border-radius: 50%; background: var(--violet); box-shadow: 0 0 0 4px color-mix(in srgb, var(--violet) 22%, transparent); }
.when { font-family: var(--font-mono); font-size: 0.78rem; color: var(--violet); letter-spacing: 0.06em; }
.timeline h3 { font-size: 1.15rem; }
.org { color: var(--amber); font-size: 0.92rem; }
.timeline p:not(.org) { color: var(--muted); font-size: 0.95rem; }
.two { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.plain li { color: var(--muted); font-size: 0.95rem; padding: 0.55rem 0; border-bottom: 1px dashed var(--line); }
.plain li:last-child { border-bottom: 0; }
.plain strong { color: var(--text); }

/* ── Contato ── */
.contact-grid { display: grid; gap: 0.75rem; max-width: 640px; }
.clink { display: flex; align-items: center; gap: 0.9rem; padding: 1rem 1.2rem; border-radius: 14px; border: 1px solid var(--line); background: var(--bg-card); color: var(--text); cursor: pointer; text-align: left; transition: transform 0.3s var(--ease), border-color 0.3s; }
a.clink:hover, button.clink:hover { transform: translateX(8px); border-color: var(--green); text-decoration: none; }
.clink .ic { color: var(--green); width: 1.3rem; height: 1.3rem; }
.clink.static { cursor: default; }
.panel-foot { margin-top: 2.5rem; display: flex; flex-wrap: wrap; gap: 1.25rem; color: var(--muted); font-size: 0.85rem; }
.panel-foot a { color: var(--muted); }
.panel-foot a:hover { color: var(--green); }

/* ── Dock (celular) ── */
.dock { display: none; }
@media (max-width: 860px) {
  .tabs { display: none; }
  .tools { margin-left: auto; }
  .pill .lbl { display: none; }
  .start { grid-template-columns: 1fr; text-align: center; }
  .start .portrait { order: -1; width: min(62vw, 260px); }
  .tagline { margin-inline: auto; }
  .cta, .social { justify-content: center; }
  .plat { grid-template-columns: 1fr; }
  .plat > div:last-child { order: -1; }
  .dock { position: fixed; z-index: 120; left: 0; right: 0; bottom: 0; height: calc(var(--dock-h) + env(safe-area-inset-bottom, 0px)); padding: 0 max(8px, env(safe-area-inset-right, 0px)) env(safe-area-inset-bottom, 0px) max(8px, env(safe-area-inset-left, 0px)); display: grid; grid-template-columns: repeat(5, 1fr); background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(16px); border-top: 1px solid var(--line); }
  .dock a { display: grid; place-items: center; align-content: center; gap: 0.15rem; color: var(--muted); font-size: 0.68rem; padding: 0.4rem 0; }
  .dock a .ic { width: 1.35rem; height: 1.35rem; }
  .dock a:hover { text-decoration: none; }
  .dock a[aria-current="page"] { color: var(--green); }
  .drawer { width: 100%; border-left: 0; }
}

/* ── Sem JS: tudo visível em sequência ── */
html:not(.js) .panel { margin-bottom: 4rem; }
html:not(.js) .drawer, html:not(.js) .scrim, html:not(.js) .dock { display: none; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
@media print { #bg, .topbar, .dock, .drawer, .scrim { display: none !important; } .panel[hidden] { display: block !important; } }

/* ── Perfil: texto curto, trajetória, bastidores ── */
.start { min-height: calc(100vh - var(--bar-h) - 7rem); }
.readmore { margin: -0.9rem 0 1.5rem; max-width: 56ch; }
.readmore summary { cursor: pointer; list-style: none; color: var(--green); font-weight: 600; font-size: 0.92rem; display: inline-flex; align-items: center; gap: 0.4rem; }
.readmore summary::-webkit-details-marker { display: none; }
.readmore summary::after { content: "+"; font-family: var(--font-mono); }
.readmore[open] summary::after { content: "−"; }
.readmore .more-close { display: none; } .readmore[open] .more-close { display: inline; } .readmore[open] .more-open { display: none; }
.readmore p { color: var(--muted); margin-top: 0.8rem; font-size: 0.98rem; }
.profile-block { margin-top: clamp(2.5rem, 6vw, 4.5rem); }
.sub-title { font-size: clamp(1.4rem, 3vw, 1.9rem); letter-spacing: -0.01em; margin-bottom: 1.1rem; }
.block-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1.1rem; }
.block-head .sub-title { margin-bottom: 0; }
.more-link { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 600; font-size: 0.9rem; }
.skills.subpanel:not([hidden]) { display: grid; }
.strip { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); }
.photo-grid { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); }
.bcard { position: relative; cursor: pointer; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); aspect-ratio: 4 / 5; transition: transform 0.35s var(--ease), border-color 0.3s, box-shadow 0.3s; display: block; width: 100%; }
.bcard:hover { transform: translateY(-6px) rotate(-0.4deg); border-color: var(--green); box-shadow: var(--shadow); }
.bcard img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.6s var(--ease); }
.bcard:hover img { transform: scale(1.05); }
.bcap { position: absolute; inset: auto 0 0 0; padding: 2.2rem 1rem 0.9rem; text-align: left; background: linear-gradient(transparent, rgba(4, 8, 16, 0.88)); color: #fff; display: grid; gap: 0.15rem; font-size: 0.85rem; }
.bcap strong { font-family: var(--font-display); font-size: 1.05rem; }
.drawer-body .inner h3:empty { display: none; }
.drawer-body .cover.photo-only { aspect-ratio: auto; background: var(--bg); }
.drawer-body .photo-only img { width: 100%; max-height: calc(100vh - 8rem); object-fit: contain; display: block; }

/* ── Em evolução (roadmap) ── */
.roadmap { display: grid; gap: 0.75rem; margin-top: 1rem; }
.roadmap li { padding: 0.95rem 1.05rem; border-radius: 12px; background: color-mix(in srgb, var(--surface) 70%, transparent); border: 1px solid var(--line); display: grid; gap: 0.3rem; }
.roadmap h4 { font-size: 1rem; }
.roadmap p { color: var(--muted); font-size: 0.9rem; margin: 0; }
.state { justify-self: start; font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.1em; text-transform: uppercase; padding: 0.18rem 0.6rem; border-radius: 999px; border: 1px solid; }
.state.teste { color: var(--green); border-color: color-mix(in srgb, var(--green) 55%, transparent); background: color-mix(in srgb, var(--green) 10%, transparent); }
.state.avaliacao { color: var(--cyan); border-color: color-mix(in srgb, var(--cyan) 55%, transparent); background: color-mix(in srgb, var(--cyan) 10%, transparent); }
.state.pensado { color: var(--amber); border-color: color-mix(in srgb, var(--amber) 55%, transparent); background: color-mix(in srgb, var(--amber) 10%, transparent); }
