/* ============================================================
   pedroalbaladejo.com — oscuro editorial
   Fraunces (display) · Inter (texto) · IBM Plex Mono (etiquetas)
   ============================================================ */

@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-600.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-i600.woff2") format("woff2");
  font-weight: 600; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-500.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-600.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/plexmono-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/plexmono-500.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}

:root {
  --bg: #0a0c10;
  --bg-2: #0f1218;
  --bg-3: #151a23;
  --line: rgba(233, 230, 223, 0.09);
  --line-strong: rgba(233, 230, 223, 0.18);
  --text: #e9e6df;
  --text-mid: #b5b0a6;
  --text-dim: #8d897f;
  --accent: #d9a05b;
  --accent-bright: #ecbd82;
  --accent-soft: rgba(217, 160, 91, 0.14);
  --accent-contrast: #17110a;
  --sage: #9db4a0;
  --sage-soft: rgba(157, 180, 160, 0.12);
  --ok: #7dc98f;
  --shadow-card: 0 14px 34px rgba(0, 0, 0, 0.35);
  --portrait-shadow: 0 0 0 10px rgba(217, 160, 91, 0.07), 0 24px 60px rgba(0, 0, 0, 0.5);
  --map-top: rgba(21, 26, 35, 0.9);
  --map-dot: rgba(233, 230, 223, 0.14);
  --map-label: rgba(233, 230, 223, 0.78);
  --map-halo: #0a0c10;
  --map-leader: rgba(233, 230, 223, 0.22);
  --orglogo-filter: brightness(0) invert(1);
  --orglogo-op: 0.62;
  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: "IBM Plex Mono", "SF Mono", SFMono-Regular, Menlo, monospace;
  --maxw: 1140px;
  --pad: clamp(20px, 4vw, 48px);
  --radius: 16px;
}

:root[data-theme="light"] {
  --bg: #f6f3ed;
  --bg-2: #fdfbf7;
  --bg-3: #efe9df;
  --line: rgba(28, 24, 18, 0.1);
  --line-strong: rgba(28, 24, 18, 0.24);
  --text: #201d18;
  --text-mid: #5a5344;
  --text-dim: #8a8171;
  --accent: #a8672c;
  --accent-bright: #8a5220;
  --accent-soft: rgba(168, 103, 44, 0.12);
  --accent-contrast: #ffffff;
  --sage: #5d7a63;
  --sage-soft: rgba(93, 122, 99, 0.14);
  --ok: #2f9e57;
  --shadow-card: 0 14px 34px rgba(60, 45, 20, 0.13);
  --portrait-shadow: 0 0 0 10px rgba(168, 103, 44, 0.08), 0 24px 50px rgba(60, 45, 20, 0.2);
  --map-top: #f2ede3;
  --map-dot: rgba(32, 29, 24, 0.17);
  --map-label: rgba(32, 29, 24, 0.75);
  --map-halo: #fdfbf7;
  --map-leader: rgba(32, 29, 24, 0.25);
  --orglogo-filter: brightness(0);
  --orglogo-op: 0.55;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection { background: var(--accent); color: var(--accent-contrast); }

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

img { max-width: 100%; height: auto; display: block; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }

/* ---------- header ---------- */

.site-head {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s;
}
.site-head.scrolled { border-bottom-color: var(--line); }
.site-head .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--serif); font-size: 20px; font-weight: 600;
  letter-spacing: 0.005em;
}
.brand-mark { width: 26px; height: 26px; flex: none; color: var(--accent); overflow: visible; }
.brand-name span { color: var(--accent); }
@media (max-width: 480px) {
  .brand { font-size: 18px; gap: 8px; }
  .brand-mark { width: 23px; height: 23px; }
}
.site-nav { display: flex; align-items: center; gap: clamp(14px, 2.5vw, 28px); }
.site-nav a {
  font-size: 13.5px; font-weight: 500; color: var(--text-mid);
  transition: color 0.2s;
}
.site-nav a:hover { color: var(--text); }
.lang-switch {
  font-family: var(--mono); font-size: 12px; padding: 6px 12px;
  border: 1px solid var(--line-strong); border-radius: 999px;
  color: var(--text-mid); transition: border-color 0.2s, color 0.2s;
}
.lang-switch:hover { border-color: var(--accent); color: var(--accent-bright); }
.theme-toggle {
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--line-strong); background: none;
  color: var(--text-mid); font-size: 15px; line-height: 1;
  cursor: pointer; transition: border-color 0.2s, color 0.2s;
}
.theme-toggle:hover { border-color: var(--accent); color: var(--accent-bright); }
@media (max-width: 760px) {
  .site-nav a:not(.lang-switch) { display: none; }
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  padding: clamp(120px, 18vh, 190px) 0 clamp(48px, 8vh, 90px);
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(52% 44% at 78% 30%, rgba(217, 160, 91, 0.10), transparent 70%),
    radial-gradient(40% 36% at 12% 82%, rgba(157, 180, 160, 0.06), transparent 70%);
}
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: clamp(28px, 5vw, 64px); align-items: center;
}
.kicker {
  font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent);
}
.hero .kicker { display: inline-flex; align-items: center; gap: 10px; }
.hero .kicker::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
  animation: pulse 2.6s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(217, 160, 91, 0.35); }
  70% { box-shadow: 0 0 0 9px rgba(217, 160, 91, 0); }
  100% { box-shadow: 0 0 0 0 rgba(217, 160, 91, 0); }
}
@media (max-width: 480px) {
  .kicker { font-size: 10.5px; letter-spacing: 0.09em; }
}
.hero h1 {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.06; letter-spacing: -0.015em;
  margin: 18px 0 22px;
}
.hero h1 em { font-style: italic; color: var(--accent-bright); }
.hero-sub {
  color: var(--text-mid); font-size: clamp(16px, 1.6vw, 18.5px);
  max-width: 56ch;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 12px 22px; border-radius: 999px;
  font-size: 14.5px; font-weight: 600;
  transition: transform 0.2s, background 0.2s, border-color 0.2s, color 0.2s;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--accent); color: var(--accent-contrast); }
.btn-primary:hover { background: var(--accent-bright); }
.btn-ghost { border: 1px solid var(--line-strong); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-bright); }

.hero-figure { position: relative; justify-self: center; }
.hero-figure .disc {
  position: absolute; inset: -12%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(217, 160, 91, 0.18), rgba(217, 160, 91, 0.04) 62%, transparent 74%);
}
.hero-figure .ring {
  position: absolute; inset: -7%; aspect-ratio: 1;
  border: 1px dashed var(--line-strong); border-radius: 50%;
  animation: spin 60s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.hero-figure img {
  position: relative; display: block;
  width: clamp(220px, 26vw, 320px); aspect-ratio: 1;
  border-radius: 50%; object-fit: cover;
  border: 1px solid var(--line-strong);
  box-shadow: var(--portrait-shadow);
  filter: saturate(0.92) contrast(1.03);
}
.hero-figure figcaption {
  position: relative; margin-top: 18px; text-align: center;
  font-family: var(--mono); font-size: 11.5px; color: var(--text-dim);
  letter-spacing: 0.08em;
}
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-figure { order: -1; }
  .hero-figure img { width: clamp(180px, 40vw, 240px); }
}

.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: var(--line); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  margin-top: clamp(40px, 7vh, 72px);
}
.stat { background: var(--bg-2); padding: 22px 24px; }
.stat b {
  display: block; font-family: var(--serif); font-weight: 600;
  font-size: clamp(26px, 3vw, 36px); color: var(--accent-bright);
}
.stat span { font-size: 13px; color: var(--text-dim); }
@media (max-width: 700px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- secciones ---------- */

.section { padding: clamp(64px, 11vh, 120px) 0 0; }
.section-head { max-width: 640px; margin-bottom: clamp(30px, 5vh, 52px); }
.section-head h2 {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(28px, 3.8vw, 44px); line-height: 1.12;
  letter-spacing: -0.01em; margin: 12px 0 14px;
}
.section-head p { color: var(--text-mid); }

/* ---------- mapa ---------- */

.map-shell {
  position: relative;
  border: 1px solid var(--line); border-radius: var(--radius);
  background:
    radial-gradient(80% 90% at 50% 0%, var(--map-top), var(--bg-2)),
    var(--bg-2);
  overflow: hidden;
}
.map-canvas-wrap { position: relative; }
#worldmap { display: block; width: 100%; aspect-ratio: 1000 / 522; cursor: default; }
.map-tip {
  position: absolute; pointer-events: none; z-index: 5;
  transform: translate(-50%, calc(-100% - 14px));
  background: var(--bg-3); border: 1px solid var(--line-strong);
  border-radius: 10px; padding: 7px 12px;
  font-family: var(--mono); font-size: 12px; white-space: nowrap;
  color: var(--text); opacity: 0; transition: opacity 0.15s;
}
.map-tip.on { opacity: 1; }
.map-foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  border-top: 1px solid var(--line); padding: 14px 20px;
}
.map-legend { display: flex; gap: 18px; font-family: var(--mono); font-size: 11.5px; color: var(--text-dim); }
.map-legend i {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  margin-right: 7px; vertical-align: 1px;
}
.map-legend .l-city i { background: var(--accent); }
.map-legend .l-route i { background: transparent; border: 1px solid var(--accent); width: 6px; height: 6px; }
.btn-mini {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em;
  padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line-strong);
  background: none; color: var(--text-mid); cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.btn-mini:hover { border-color: var(--accent); color: var(--accent-bright); }

.map-card {
  border-top: 1px solid var(--line); padding: 22px 24px;
  display: none;
}
.map-card.on { display: block; animation: rise 0.35s ease; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
.map-card .mc-kicker { font-family: var(--mono); font-size: 12px; color: var(--accent); margin-bottom: 6px; }
.map-card h3 { font-family: var(--serif); font-size: 21px; font-weight: 600; margin-bottom: 4px; }
.map-card .mc-org { font-size: 13.5px; color: var(--text-dim); margin-bottom: 10px; }
.map-card p { color: var(--text-mid); font-size: 15px; max-width: 72ch; }
.map-card .mc-era + .mc-era { margin-top: 16px; padding-top: 16px; border-top: 1px dashed var(--line); }

/* ---------- timeline ---------- */

.timeline { position: relative; margin-top: 10px; }
.timeline::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: 130px;
  width: 1px; background: linear-gradient(to bottom, transparent, var(--line-strong) 6%, var(--line-strong) 94%, transparent);
}
.t-item {
  position: relative; display: grid;
  grid-template-columns: 104px 56px minmax(0, 1fr);
  padding: 8px 0 34px;
  opacity: 0; transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.t-item.vis { opacity: 1; transform: none; }
.t-when {
  text-align: right; font-family: var(--mono); font-size: 12.5px;
  color: var(--text-dim); padding-top: 6px; line-height: 1.5;
}
.t-when b { display: block; color: var(--text); font-weight: 500; font-size: 14px; }
.t-node { position: relative; }
.t-node::before {
  content: ""; position: absolute; left: 26px; top: 10px;
  width: 11px; height: 11px; border-radius: 50%;
  transform: translateX(-50%);
  background: var(--bg); border: 2px solid var(--accent);
  box-shadow: 0 0 0 4px var(--bg);
}
.t-item.edu .t-node::before { border-color: var(--sage); border-style: solid; background: var(--bg); border-radius: 3px; transform: translateX(-50%) rotate(45deg); }
.t-card {
  background: var(--bg-2); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px 26px;
  transition: border-color 0.25s, transform 0.25s;
}
.t-item:hover .t-card { border-color: var(--line-strong); transform: translateX(2px); }
.t-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.chip {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em;
  padding: 3.5px 10px; border-radius: 999px;
}
.chip-place { background: var(--accent-soft); color: var(--accent-bright); }
.chip-type-work { border: 1px solid var(--line-strong); color: var(--text-dim); }
.chip-type-education { border: 1px solid rgba(157, 180, 160, 0.4); color: var(--sage); }
.chip-badge { background: var(--sage-soft); color: var(--sage); }
.t-card h3 { font-family: var(--serif); font-size: 21px; font-weight: 600; line-height: 1.25; }
.t-card .t-org {
  display: flex; align-items: center; gap: 10px;
  font-size: 13.5px; color: var(--text-dim); margin: 6px 0 10px;
}
.org-logo {
  height: 18px; width: auto; max-width: 92px; flex: none;
  filter: var(--orglogo-filter); opacity: var(--orglogo-op);
}
.t-card p { color: var(--text-mid); font-size: 15px; }
@media (max-width: 700px) {
  .timeline::before { left: 8px; }
  .t-item { grid-template-columns: 30px minmax(0, 1fr); }
  .t-when { grid-column: 2; text-align: left; order: -1; padding: 0 0 8px; display: flex; gap: 10px; align-items: baseline; }
  .t-node { grid-row: 2; }
  .t-node::before { left: 8px; top: 8px; }
  .t-card { grid-column: 2; }
}

/* ---------- proyectos ---------- */

.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.filter {
  font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.03em;
  padding: 8px 18px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: none; color: var(--text-mid);
  cursor: pointer; transition: all 0.2s;
}
.filter:hover { border-color: var(--accent); color: var(--accent-bright); }
.filter.on { background: var(--accent); border-color: var(--accent); color: var(--accent-contrast); }

.projects-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 18px;
}
.p-card {
  display: flex; flex-direction: column; gap: 12px;
  background: var(--bg-2); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px 26px;
  transition: border-color 0.25s, transform 0.25s, opacity 0.4s, box-shadow 0.25s;
}
.p-card:hover { border-color: var(--line-strong); transform: translateY(-3px); box-shadow: var(--shadow-card); }
.p-card.hidden { display: none; }
.p-media {
  position: relative;
  margin: -24px -26px 8px; overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
  border-bottom: 1px solid var(--line);
  aspect-ratio: 16 / 10; background: var(--bg-3);
}
.p-logo {
  position: absolute; left: 12px; bottom: 12px;
  display: grid; place-items: center;
  height: 46px; padding: 0 14px; border-radius: 10px;
  background: rgba(10, 12, 16, 0.62);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(233, 230, 223, 0.14);
}
.p-logo img {
  width: auto; height: auto;
  max-height: var(--lh, 26px); max-width: 132px;
  object-fit: contain; display: block; opacity: 0.96;
}
@media (max-width: 700px) {
  .p-logo { height: 56px; padding: 0 17px; border-radius: 12px; }
  .p-logo img { max-height: calc(var(--lh, 26px) * 1.2); max-width: 160px; }
}
.p-media > img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.p-card:hover .p-media > img { transform: scale(1.035); }
.p-media.contain { background: radial-gradient(70% 80% at 50% 45%, rgba(217, 160, 91, 0.12), var(--bg-3) 75%); }
.p-media.contain > img { object-fit: contain; padding: 9%; box-sizing: border-box; }
.p-media.tile {
  display: grid; place-items: center;
  background: radial-gradient(70% 80% at 50% 45%, rgba(233, 230, 223, 0.06), var(--bg-3) 78%);
}
.p-media.tile > img { width: 46%; height: 52%; object-fit: contain; }
.p-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.p-cat { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-dim); }
.p-status { display: inline-flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: 11px; color: var(--text-dim); }
.p-status i { width: 7px; height: 7px; border-radius: 50%; }
.p-status.live i { background: var(--ok); box-shadow: 0 0 8px var(--ok); }
.p-status.dev i { background: var(--accent); }
.p-status.paused i { background: var(--text-dim); }
.p-status.concept i { border: 1px solid var(--text-dim); background: none; }
.p-status.completed i { background: var(--sage); }
.p-card h3 { font-family: var(--serif); font-size: 21px; font-weight: 600; }
.p-card > p { color: var(--text-mid); font-size: 14.5px; flex: 1; }
.p-tech { display: flex; flex-wrap: wrap; gap: 7px; }
.p-tech span {
  font-family: var(--mono); font-size: 10.5px; color: var(--text-dim);
  border: 1px solid var(--line); border-radius: 6px; padding: 2.5px 8px;
}
.p-link {
  font-family: var(--mono); font-size: 12.5px; color: var(--accent);
  display: inline-flex; align-items: center; gap: 6px; margin-top: 2px;
}
.p-link:hover { color: var(--accent-bright); }
.p-link::after { content: "↗"; font-size: 13px; }

/* ---------- sobre mí ---------- */

.about-grid {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(28px, 5vw, 60px);
}
.about-text p { color: var(--text-mid); margin-bottom: 16px; font-size: 16px; }
.about-side { display: flex; flex-direction: column; gap: 26px; }
.side-block h4 {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent); font-weight: 500;
  margin-bottom: 12px;
}
.skill-rows { display: flex; flex-direction: column; gap: 10px; }
.skill-row { display: flex; flex-wrap: wrap; gap: 7px; align-items: baseline; }
.skill-row b { font-size: 13px; font-weight: 600; color: var(--text); margin-right: 4px; min-width: 86px; }
.skill-row span {
  font-size: 12.5px; color: var(--text-mid);
  background: var(--bg-3); border-radius: 7px; padding: 3px 9px;
}
.lang-list, .patent-list { list-style: none; }
.lang-list li, .patent-list li {
  display: flex; justify-content: space-between; gap: 14px;
  padding: 9px 0; border-bottom: 1px dashed var(--line);
  font-size: 14px; color: var(--text-mid);
}
.lang-list li span:last-child, .patent-list li span:last-child { font-family: var(--mono); font-size: 12px; color: var(--text-dim); white-space: nowrap; }
@media (max-width: 820px) {
  .about-grid { grid-template-columns: 1fr; }
}

/* ---------- contacto ---------- */

.contact {
  margin-top: clamp(70px, 11vh, 130px);
  border-top: 1px solid var(--line);
  background: radial-gradient(60% 80% at 50% 100%, rgba(217, 160, 91, 0.07), transparent 70%);
  padding: clamp(60px, 10vh, 110px) 0 30px;
  text-align: center;
}
.contact h2 {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(34px, 5vw, 56px); margin: 14px 0 16px;
}
.contact h2 em { font-style: italic; color: var(--accent-bright); }
.contact > .wrap > p { color: var(--text-mid); max-width: 52ch; margin: 0 auto 34px; }
.contact-ctas { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; }
.socials {
  list-style: none; display: flex; justify-content: center; flex-wrap: wrap;
  gap: 12px; margin-top: 26px;
}
.socials a {
  display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line-strong); color: var(--text-mid);
  transition: color 0.2s, border-color 0.2s, transform 0.2s, background 0.2s;
}
.socials a:hover {
  color: var(--accent-bright); border-color: var(--accent);
  background: var(--accent-soft); transform: translateY(-2px);
}
.socials svg { width: 19px; height: 19px; fill: currentColor; display: block; }

.foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  margin-top: clamp(60px, 9vh, 100px); padding-top: 22px;
  border-top: 1px solid var(--line);
  font-family: var(--mono); font-size: 11.5px; color: var(--text-dim);
}

/* ---------- reveal genérico ---------- */

.rv { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
.rv.vis { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .rv, .t-item { opacity: 1; transform: none; }
}
