/* ==========================================================
   Sitio profesional · Jose Antonio Benavides Muñiz
   Estilo plano (sin degradados), como la página "idea": negro eerie de fondo,
   bloques sólidos de azul oxford, bermellón y burnt umber, bordes de 2px.
   HTML/CSS/JS puro. Cambia los colores en :root y se actualiza todo el sitio.
   ========================================================== */
@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #212121;          /* eerie black de "idea" */
  --bg-2: #2b2b2b;        /* paneles */
  --bg-3: #343434;        /* paneles al pasar el mouse */
  --line: #444;           /* bordes */
  --text: #f5f5f5;
  --muted: #bdbdbd;
  --blue: #2b2e7d;        /* azul oxford de "idea" */
  --blue-lt: #a3a8ff;     /* azul claro: enlaces y detalles sobre fondo oscuro */
  --red: #f44336;         /* bermellón de "idea" */
  --red-lt: #ff7a6e;      /* bermellón claro para texto pequeño */
  --umber: #8b2d2d;       /* burnt umber de "idea" */
  --ink: #141414;         /* texto oscuro sobre bermellón */
  --radius: 10px;
  --w: 1080px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
}
main { flex: 1; }
.wrap { width: min(100% - 40px, var(--w)); margin-inline: auto; }

h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 5vw, 3.1rem); font-weight: 800; color: var(--red); }
h2 { font-size: clamp(1.45rem, 3vw, 1.85rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
a { color: var(--blue-lt); text-underline-offset: 3px; }
a:hover { color: #fff; }
:focus-visible { outline: 3px solid var(--blue-lt); outline-offset: 3px; border-radius: 6px; }
ul { margin: 0 0 1em; padding-left: 1.2em; }
li { margin-bottom: .35em; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--text); color: var(--bg); padding: 8px 14px; border-radius: 8px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.kicker { color: var(--red-lt); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; font-size: .85rem; margin-bottom: .6em; }

/* ---------- cabecera ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--bg); border-bottom: 2px solid var(--line); }
.bar { display: flex; align-items: center; gap: 18px; min-height: 64px; flex-wrap: wrap; padding: 6px 0; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 800; }
.mono { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 8px; background: var(--red); color: var(--ink); font-size: .95rem; letter-spacing: .02em; }
nav.main-nav { margin-left: auto; }
.main-nav ul { display: flex; flex-wrap: wrap; gap: 4px; list-style: none; margin: 0; padding: 0; }
.main-nav li { margin: 0; }
.main-nav a { display: block; padding: 6px 14px; border-radius: 8px; color: var(--muted); text-decoration: none; font-weight: 700; font-size: .95rem; border: 2px solid transparent; }
.main-nav a:hover { color: #fff; border-color: var(--line); }
.main-nav a[aria-current="page"] { color: #fff; background: var(--blue); }
.lang { display: inline-flex; border: 2px solid var(--line); border-radius: 8px; padding: 2px; }
.lang a { display: inline-block; font: inherit; font-size: .82rem; font-weight: 800; letter-spacing: .04em; line-height: normal; color: var(--muted); text-decoration: none; background: none; border: 0; padding: 4px 12px; border-radius: 6px; }
.lang a:hover { color: #fff; }
.lang a[aria-current="true"] { background: var(--red); color: var(--ink); }
@media (max-width: 760px) {
  .brand-name { display: none; }
  nav.main-nav { margin-left: 0; order: 3; width: 100%; }
  .lang { margin-left: auto; }
}

/* ---------- botones, chips, iconos ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; font: inherit; font-weight: 800; font-size: .98rem; text-decoration: none; border-radius: 8px; padding: 9px 20px; border: 2px solid transparent; cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.btn.primary { background: var(--red); color: var(--ink); }
.btn.primary:hover { background: #fff; color: var(--ink); }
.btn.ghost { border-color: #fff; color: #fff; background: transparent; }
.btn.ghost:hover { background: #fff; color: var(--ink); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.4em; }
.social-row { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 1.4em; }
.social { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); text-decoration: none; font-weight: 700; font-size: .95rem; }
.social:hover { color: #fff; }
.ico { width: 20px; height: 20px; flex: none; fill: currentColor; }
.ico.stroke { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0 0 1em; padding: 0; }
.chips li { margin: 0; }
.chip { display: inline-block; font-size: .86rem; font-weight: 700; padding: 2px 12px; border-radius: 6px; background: var(--bg); border: 2px solid var(--line); color: var(--text); }
.ext::after { content: " ↗"; font-size: .85em; }

/* insignias estilo README de GitHub: etiqueta oscura + valor de color */
.badges { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 1.2em 0 0; padding: 0; }
.badges li { margin: 0; }
.badge-s { display: inline-flex; border-radius: 6px; overflow: hidden; font-size: .82rem; font-weight: 800; line-height: 1; border: 2px solid var(--bg-3); }
.badge-s span { padding: 7px 10px; }
.badge-s .k { background: var(--bg-3); color: var(--text); }
.badge-s .v { color: #fff; background: var(--blue); }
.badge-s .v.red { background: var(--red); color: var(--ink); }
.badge-s .v.umber { background: var(--umber); }

/* ---------- portada ---------- */
.banner { display: block; width: 100%; height: clamp(150px, 26vw, 300px); object-fit: cover; object-position: 20% 40%; border-bottom: 2px solid var(--line); }
.banner.slim { height: clamp(90px, 16vw, 170px); }
.hero { display: grid; grid-template-columns: 1fr 300px; gap: 44px; align-items: start; padding: 0 0 44px; }
.hero-text { padding-top: 40px; }
.hero h1 { margin-bottom: .25em; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 60ch; }
.hero .status { display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; font-weight: 800; color: #fff; background: var(--blue); border-radius: 6px; padding: 4px 12px; margin-bottom: 1.2em; }
.hero .status::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #6fd08c; }
.photo { width: 300px; margin-top: -110px; position: relative; }
.photo img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); border: 4px solid var(--bg); outline: 2px solid #fff; box-shadow: 14px 14px 0 var(--blue); background: var(--bg-2); }
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 0; padding-bottom: 32px; }
  .photo { order: -1; width: 210px; margin-top: -80px; }
  .hero-text { padding-top: 28px; }
}

/* cifras estilo "stats" */
.band { padding: 40px 0; }
.band.red { background: var(--red); color: var(--ink); }
.band.blue { background: var(--blue); color: #fff; }
.band.umber { background: var(--umber); color: #fff; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; }
.stat { border: 3px solid var(--ink); border-radius: var(--radius); padding: 18px 20px; }
.stat b { display: block; font-size: clamp(2.2rem, 5vw, 3rem); font-weight: 800; line-height: 1; letter-spacing: -.02em; }
.stat span { display: block; margin-top: 8px; font-weight: 700; font-size: .95rem; line-height: 1.35; }

/* iconos de tecnologías */
.skills { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 12px; list-style: none; margin: 0 0 1.6em; padding: 0; }
.skills li { margin: 0; }
.skill { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; background: var(--bg); color: #fff; border: 2px solid var(--bg); border-radius: var(--radius); padding: 18px 8px 14px; font-weight: 800; font-size: .85rem; line-height: 1.25; height: 100%; }
.skill:hover { border-color: var(--red); }
.skill svg { width: 40px; height: 40px; fill: #fff; flex: none; }
.skill .glyph { display: grid; place-items: center; width: 40px; height: 40px; font-size: 1.15rem; font-weight: 800; color: #fff; border: 3px solid #fff; border-radius: 8px; line-height: 1; }
.skill small { display: block; font-weight: 700; font-size: .72rem; color: var(--muted); }
.band .subhead { font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; color: #fff; margin: 0 0 .8em; font-weight: 800; }

/* ---------- secciones y tarjetas ---------- */
.section { padding: 44px 0; }
.section.tight { padding-top: 12px; }
.mt { margin-top: 1.4em; }
.section > .wrap > h2, .band > .wrap > h2 { display: flex; align-items: center; gap: 14px; margin-bottom: .9em; }
.section > .wrap > h2::before, .band > .wrap > h2::before { content: ""; width: 10px; height: 1.1em; background: var(--red); border-radius: 2px; flex: none; }
.band.red > .wrap > h2::before { background: var(--ink); }
.band.blue > .wrap > h2::before { background: var(--red); }
.band.umber > .wrap > h2::before { background: #fff; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.grid.wide { grid-template-columns: repeat(auto-fill, minmax(min(420px, 100%), 1fr)); }
.card { background: var(--bg-2); border: 2px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; overflow: hidden; }
.card h3 { margin-bottom: .4em; }
.card p { color: var(--muted); }
.card p:last-child { margin-bottom: 0; }
a.card { text-decoration: none; color: inherit; transition: border-color .15s, transform .15s, box-shadow .15s; }
a.card:hover { border-color: var(--red); transform: translate(-3px, -3px); box-shadow: 6px 6px 0 var(--red); }
.card .more { margin-top: auto; padding-top: .6em; color: var(--red-lt); font-weight: 800; font-size: .95rem; }
.card.accent { border-top: 8px solid var(--red); }
.card.accent.b { border-top-color: var(--blue-lt); }
.card.accent.u { border-top-color: var(--umber); }
.card .kv { margin: 0; padding-left: 1.1em; }
.card .kv li { color: var(--muted); }

/* tarjetas con imagen grande */
.card.cover { padding: 0; }
.card.cover .img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-bottom: 2px solid var(--line); background: var(--bg); }
.card.cover .body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.coverbox { display: flex; align-items: flex-end; width: 100%; aspect-ratio: 16 / 9; padding: 20px 24px; border-bottom: 2px solid var(--line); font-weight: 800; font-size: clamp(1.8rem, 4.2vw, 2.6rem); line-height: 1; letter-spacing: -.02em; }
.coverbox small { display: block; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 10px; font-weight: 800; }
.coverbox.blue { background: var(--blue); color: #fff; }
.coverbox.red { background: var(--red); color: var(--ink); }
.langdot { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .85rem; color: var(--muted); margin-bottom: .8em; }
.langdot::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: #3572A5; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .pair { grid-template-columns: 1fr; } }

/* ---------- páginas interiores ---------- */
.page-head { padding: 44px 0 14px; }
.page-head p { max-width: 62ch; color: var(--muted); font-size: 1.12rem; }
.page-head p.kicker { color: var(--red-lt); font-size: .85rem; }
.project { scroll-margin-top: 90px; }
.project .sub { color: var(--red-lt); font-weight: 800; font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; margin-bottom: .4em; }
.project .links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 1em; }
.two { display: grid; grid-template-columns: 1fr 300px; gap: 32px; align-items: start; }
.facts { background: var(--bg-2); border: 2px solid var(--line); border-top: 8px solid var(--blue-lt); border-radius: var(--radius); padding: 22px; }
.facts dl { margin: 0; }
.facts dt { font-size: .8rem; font-weight: 800; color: var(--red-lt); text-transform: uppercase; letter-spacing: .07em; margin-top: 1em; }
.facts dt:first-child { margin-top: 0; }
.facts dd { margin: 2px 0 0; }
.prose { max-width: 66ch; }
.prose h2 { margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
@media (max-width: 860px) { .two { grid-template-columns: 1fr; } }

/* ---------- CV ---------- */
.cv { display: grid; grid-template-columns: 270px 1fr; gap: 36px; align-items: start; padding-bottom: 40px; }
.cv aside { background: var(--bg-2); border: 2px solid var(--line); border-top: 8px solid var(--red); border-radius: var(--radius); padding: 22px; }
.cv aside h2, .cv-main h2 { font-size: .95rem; text-transform: uppercase; letter-spacing: .08em; color: var(--red-lt); margin: 1.4em 0 .6em; }
.cv aside h2:first-child { margin-top: 0; }
.cv-main h2 { border-bottom: 2px solid var(--line); padding-bottom: .4em; margin-top: 1.8em; }
.cv-main h2:first-of-type { margin-top: 0; }
.cv aside p, .cv aside ul { font-size: .95rem; margin-bottom: .6em; }
.cv aside ul { list-style: none; padding: 0; }
.job { margin-bottom: 1.4em; }
.job-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 14px; }
.job-head h3 { margin: 0; font-size: 1.05rem; }
.job-head .date { color: var(--muted); font-weight: 700; font-size: .92rem; }
.job .role { color: var(--muted); font-style: italic; margin-bottom: .4em; }
@media (max-width: 860px) { .cv { grid-template-columns: 1fr; } }

/* ---------- contacto ---------- */
.contact-list { display: grid; gap: 14px; max-width: 640px; margin-top: 1.4em; }
.contact-item { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; background: var(--bg-2); border: 2px solid var(--line); border-radius: var(--radius); padding: 16px 20px; }
.contact-item .label { font-size: .8rem; font-weight: 800; color: var(--red-lt); text-transform: uppercase; letter-spacing: .07em; display: block; }
.contact-item .value { font-weight: 700; overflow-wrap: anywhere; }
.contact-item .grow { flex: 1; min-width: 200px; }
.status-msg { min-height: 1.6em; font-weight: 700; color: #6fd08c; margin-top: .8em; }

/* ---------- llamada final y pie ---------- */
.cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; }
.cta h2 { margin: 0; }
.cta p { margin: .4em 0 0; max-width: 56ch; }
.cta .actions { margin: 0; }
.cta .btn.primary:hover { background: #fff; }
.site-footer { background: var(--blue); color: #fff; margin-top: 0; padding: 22px 0 26px; font-size: .92rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; align-items: center; }
.site-footer p { margin: 0; }

/* portadas de los juegos (dos bloques planos, sin imágenes) */
.pair { gap: 0; aspect-ratio: 16 / 9; border-bottom: 2px solid var(--line); }
.pair .coverbox { aspect-ratio: auto; height: 100%; border-bottom: 0; font-size: clamp(1.2rem, 3vw, 1.9rem); }
.band.umber .btn.primary { background: #fff; color: var(--ink); }
.band.umber .btn.primary:hover { background: var(--red); }
.band.umber .btn.ghost:hover { color: var(--ink); }

/* ==========================================================
   Dirección visual v2
   Más editorial y personal: paneles tipo showcase, detalles de
   interfaz y movimiento sutil, sin dependencias externas.
   ========================================================== */
:root {
  --bg: #17151d;
  --bg-2: #211e2a;
  --bg-3: #2d2839;
  --line: #453b55;
  --text: #f7f2ff;
  --muted: #bdb4ca;
  --blue: #5146a8;
  --blue-lt: #a9a0ff;
  --red: #cba6f7;
  --red-lt: #e2d2ff;
  --umber: #bd6175;
  --ink: #17151d;
  --radius: 18px;
  --w: 1160px;
}

body {
  background-color: var(--bg);
  background-image:
    linear-gradient(rgba(203, 166, 247, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(203, 166, 247, .045) 1px, transparent 1px);
  background-size: 42px 42px;
}

body::before {
  content: "";
  position: fixed;
  z-index: -1;
  width: 320px;
  height: 320px;
  top: 12%;
  right: -120px;
  border: 1px solid rgba(203, 166, 247, .18);
  border-radius: 50%;
  box-shadow: 0 0 0 28px rgba(203, 166, 247, .025), 0 0 0 56px rgba(203, 166, 247, .02);
  pointer-events: none;
}

body::after {
  content: "JB / BUILDING IN PUBLIC";
  position: fixed;
  z-index: -1;
  left: 18px;
  bottom: 24px;
  color: rgba(247, 242, 255, .18);
  font: 800 .65rem/1 "Manrope", sans-serif;
  letter-spacing: .16em;
  writing-mode: vertical-rl;
  pointer-events: none;
}

.site-header {
  background: rgba(23, 21, 29, .86);
  border-bottom: 1px solid rgba(203, 166, 247, .22);
  backdrop-filter: blur(16px);
}

.bar { min-height: 72px; }
.brand { letter-spacing: -.02em; }
.brand-name { font-size: .9rem; }
.mono {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: var(--red);
  box-shadow: 4px 4px 0 var(--blue);
  transition: transform .25s ease, box-shadow .25s ease;
}
.brand:hover .mono { transform: rotate(-7deg) translateY(-2px); box-shadow: 7px 7px 0 var(--blue); }
.main-nav ul { gap: 7px; }
.main-nav a {
  border-radius: 999px;
  padding: 8px 14px;
  font-size: .84rem;
  letter-spacing: .02em;
  transition: color .2s ease, background .2s ease, transform .2s ease;
}
.main-nav a:hover { transform: translateY(-2px); border-color: transparent; background: var(--bg-3); }
.main-nav a[aria-current="page"] { background: var(--red); color: var(--ink); }
.lang { border-radius: 999px; border-color: var(--line); }
.lang a { border-radius: 999px; }

.banner {
  height: clamp(190px, 30vw, 360px);
  object-position: center;
  border-bottom: 0;
  filter: saturate(.82) contrast(1.05);
  animation: banner-drift 16s ease-in-out infinite alternate;
}
.banner.slim { height: clamp(120px, 18vw, 210px); }
@keyframes banner-drift {
  from { object-position: 18% 44%; transform: scale(1.01); }
  to { object-position: 78% 50%; transform: scale(1.04); }
}

.hero {
  position: relative;
  grid-template-columns: minmax(0, 1fr) 270px;
  gap: 68px;
  padding-bottom: 70px;
}
.hero::before {
  content: "01 / PROFILE";
  position: absolute;
  top: 24px;
  right: 0;
  color: var(--red);
  font: 800 .68rem/1 "Manrope", sans-serif;
  letter-spacing: .18em;
}
.hero-text { padding-top: 56px; }
.hero h1 {
  max-width: 760px;
  font-size: clamp(2.6rem, 7vw, 5.7rem);
  letter-spacing: -.075em;
  line-height: .96;
  color: var(--text);
  text-wrap: balance;
}
.hero h1::after {
  content: ".";
  color: var(--red);
}
.hero .status {
  border-radius: 999px;
  background: rgba(81, 70, 168, .7);
  border: 1px solid rgba(169, 160, 255, .42);
  padding: 7px 14px;
}
.hero .status::before { box-shadow: 0 0 0 5px rgba(111, 208, 140, .15); }
.kicker { color: var(--red); }
.lead { max-width: 55ch; font-size: 1.12rem; }
.photo {
  width: 270px;
  margin-top: -96px;
  transform: rotate(3deg);
  animation: portrait-float 5s ease-in-out infinite;
}
.photo::before {
  content: "AVAILABLE / 2026";
  position: absolute;
  z-index: 2;
  right: -28px;
  bottom: 26px;
  padding: 8px 10px;
  color: var(--ink);
  background: var(--red);
  font: 800 .62rem/1 "Manrope", sans-serif;
  letter-spacing: .1em;
  transform: rotate(-7deg);
  box-shadow: 4px 4px 0 var(--blue);
}
.photo img {
  border: 8px solid var(--bg);
  outline: 1px solid var(--red);
  border-radius: 24px;
  box-shadow: 16px 16px 0 var(--blue);
}
@keyframes portrait-float {
  0%, 100% { transform: rotate(3deg) translateY(0); }
  50% { transform: rotate(1deg) translateY(-8px); }
}

.badges { gap: 10px; }
.badge-s { border: 1px solid var(--line); border-radius: 999px; }
.badge-s span { padding: 8px 12px; }
.badge-s .k { background: var(--bg-3); }
.badge-s .v, .badge-s .v.red, .badge-s .v.umber { background: transparent; color: var(--red-lt); }
.actions { gap: 14px; }
.btn {
  border-radius: 999px;
  padding: 11px 22px;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-3px); box-shadow: 5px 5px 0 var(--blue); }
.btn.primary { background: var(--red); }
.btn.ghost { border-color: var(--red); color: var(--red-lt); }
.btn.ghost:hover { background: var(--red); color: var(--ink); }
.social-row { gap: 10px; }
.social {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.social:hover { border-color: var(--red); background: var(--bg-2); transform: translateY(-2px); }

.band { padding: 64px 0; }
.band.red { background: var(--red); }
.band.blue { background: #39316f; }
.band.umber { background: #74394b; }
.stats { gap: 12px; }
.stat {
  border: 1px solid rgba(23, 21, 29, .5);
  border-radius: 14px;
  padding: 20px;
  transition: transform .25s ease, background .25s ease;
}
.stat:hover { transform: translateY(-5px) rotate(-1deg); background: rgba(255,255,255,.12); }
.stat b { font-size: clamp(2.5rem, 6vw, 4rem); letter-spacing: -.08em; }

.section { padding: 72px 0; }
.section > .wrap > h2, .band > .wrap > h2 {
  margin-bottom: 1.25em;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  letter-spacing: -.045em;
}
.section > .wrap > h2::before, .band > .wrap > h2::before {
  width: 42px;
  height: 3px;
  border-radius: 99px;
}
.grid { gap: 18px; }
.card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 26px;
  background: rgba(33, 30, 42, .88);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .14);
  transition: transform .28s ease, border-color .28s ease, box-shadow .28s ease;
}
.card::after {
  content: "✦";
  position: absolute;
  top: 18px;
  right: 20px;
  color: rgba(203, 166, 247, .42);
  font-size: 1.1rem;
}
.card:hover { border-color: var(--red); transform: translateY(-7px); box-shadow: 10px 12px 0 rgba(81, 70, 168, .48); }
.card.accent, .card.accent.b, .card.accent.u { border-top: 1px solid var(--line); }
.card.accent::before {
  content: "◈";
  display: block;
  margin-bottom: 22px;
  color: var(--red);
  font-size: 1.4rem;
}
.card.accent.b::before { content: "⌘"; color: var(--blue-lt); }
.card.accent.u::before { content: "✳"; color: var(--umber); }
.card h3 { font-size: 1.25rem; letter-spacing: -.035em; }
.card p { font-size: .98rem; }
.card.cover { padding: 0; }
.card.cover .img, .card.cover .pair { border-bottom-color: var(--line); }
.card.cover .img {
  filter: saturate(.88);
  transition: transform .45s ease, filter .45s ease;
}
.card.cover:hover .img { transform: scale(1.035); filter: saturate(1.12); }
.card.cover .body { padding: 26px; }
.card .more { color: var(--red); }
.coverbox { letter-spacing: -.05em; }

.skills {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 12px;
  margin-inline: auto;
  padding: 4px 4px 12px;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--red) transparent;
}
.skills li {
  flex: 1 1 100px;
  min-width: 82px;
  max-width: 124px;
}
.skill {
  position: relative;
  min-height: 126px;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 8px 13px;
  background: var(--bg-2);
  transition: transform .22s ease, border-color .22s ease, background .22s ease;
}
.skill:hover { border-color: var(--red); background: var(--bg-3); transform: translateY(-5px) rotate(-1deg); }
.skill svg {
  display: block;
  width: 48px;
  height: 48px;
  margin-bottom: 10px;
  color: var(--red);
  fill: currentColor;
  filter: drop-shadow(0 5px 10px rgba(203, 166, 247, .18));
}
.skill::before {
  display: none;
}
.skills li:nth-child(1) .skill::before { content: "🐍"; }
.skills li:nth-child(2) .skill::before { content: "JS"; font-size: .9rem; }
.skills li:nth-child(3) .skill::before { content: "C"; }
.skills li:nth-child(4) .skill::before { content: "++"; font-size: .9rem; }
.skills li:nth-child(5) .skill::before { content: "C#"; font-size: .85rem; }
.skills li:nth-child(6) .skill::before { content: "SQL"; font-size: .72rem; }
.skills li:nth-child(7) .skill::before { content: "</>"; font-size: .8rem; }
.skills li:nth-child(8) .skill::before { content: "{ }"; font-size: .75rem; }
.skills li:nth-child(9) .skill::before { content: "◌"; }
.skills li:nth-child(10) .skill::before { content: "◈"; }
.skills li:nth-child(11) .skill::before { content: "DB"; font-size: .75rem; }
.skill .glyph {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 10px;
  border: 1px solid rgba(203, 166, 247, .34);
  border-radius: 15px;
  background: rgba(203, 166, 247, .1);
  color: var(--red);
  font-size: .82rem;
  font-weight: 800;
}
.band .subhead { color: var(--red-lt); margin-top: 2em; }

.page-head { padding: 64px 0 24px; }
.page-head h1 { font-size: clamp(2.8rem, 7vw, 5rem); letter-spacing: -.07em; color: var(--text); }
.page-head h1::after { content: "."; color: var(--red); }
.page-head p { max-width: 62ch; }
.two { gap: 54px; }
.prose h2 { color: var(--red-lt); font-size: 1.45rem; }
.facts { border: 1px solid var(--line); border-top: 1px solid var(--line); border-radius: 20px; box-shadow: 10px 10px 0 rgba(81, 70, 168, .42); }
.facts::before { content: "QUICK FACTS"; display: block; margin-bottom: 22px; color: var(--red); font-size: .7rem; font-weight: 800; letter-spacing: .16em; }

.cv aside { border: 1px solid var(--line); border-top: 1px solid var(--line); border-radius: 20px; box-shadow: 8px 8px 0 rgba(81, 70, 168, .42); }
.cv-main h2 { border-bottom-color: var(--line); color: var(--red-lt); }
.job { padding: 0 0 20px 22px; border-left: 2px solid var(--line); position: relative; }
.job::before { content: ""; position: absolute; width: 10px; height: 10px; left: -6px; top: 4px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 5px var(--bg); }

.contact-list { max-width: 760px; }
.contact-item { border: 1px solid var(--line); border-radius: 18px; background: rgba(33, 30, 42, .88); transition: transform .25s ease, border-color .25s ease; }
.contact-item:hover { transform: translateX(6px); border-color: var(--red); }
.contact-item .ico { display: none; }
.contact-item::before { content: "✉"; display: grid; place-items: center; flex: none; width: 46px; height: 46px; border-radius: 14px; color: var(--ink); background: var(--red); font-size: 1.25rem; }
.contact-item:nth-child(2)::before { content: "in"; font-weight: 900; }
.contact-item:nth-child(3)::before { content: "⌘"; }

.site-footer {
  padding: 30px 0;
  border-top: 1px solid var(--line);
  background: rgba(23, 21, 29, .94);
}
.site-footer .wrap::before { content: "✦"; color: var(--red); margin-right: 8px; }

@media (max-width: 860px) {
  .hero { gap: 28px; }
  .hero::before { display: none; }
  .hero-text { padding-top: 34px; }
  .photo { margin-top: -62px; }
}
@media (max-width: 560px) {
  body::after { display: none; }
  .wrap { width: min(100% - 28px, var(--w)); }
  .bar { gap: 10px; }
  .main-nav ul { gap: 2px; }
  .main-nav a { padding: 7px 9px; font-size: .76rem; }
  .hero h1, .page-head h1 { font-size: clamp(2.5rem, 15vw, 4.2rem); }
  .photo { width: 210px; }
  .photo::before { right: -12px; }
  .section { padding: 52px 0; }
  .skills { justify-content: flex-start; }
  .skills li { flex: 0 0 104px; }
}
