/* Fontes hospedadas aqui: CSS de terceiros não aceita SRI (o Google Fonts muda por navegador). */
@font-face {
  font-family: "Inter";
  src: url("fonts/Inter-latin.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Inter";
  src: url("fonts/Inter-latin-ext.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* BubbledotICG-FinePos: OnlineWebFonts, CC BY 4.0. */
@font-face {
  font-family: "BubbledotICG-FinePos";
  src: url("fonts/BubbledotICG-FinePos.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Geist Pixel Circle";
  src: url("fonts/GeistPixel-Circle.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #000000;
  --text: #ffffff;
  --muted: #8e8e8e;
  --nav-text: #2e2e2e;
  --pill-dark: #28282a;
  --sign-in-text: #c8c8c8;
  --nav-shadow: 0 4px 14px rgba(0, 0, 0, 0.16);
  --trust-bg: #28282a;
  --trust-border: rgba(255, 255, 255, 0.4);
  --trust-text: #c4c2c3;
  --font-sans: "Inter", "Segoe UI", system-ui, sans-serif;
  --font-display: "BubbledotICG-FinePos", "Geist Pixel Circle", monospace;
  --font-mono: ui-monospace, "SFMono-Regular", "JetBrains Mono", Menlo, Consolas, monospace;
  --card-bg: rgba(20, 20, 22, 0.72);
  --card-border: rgba(255, 255, 255, 0.1);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  overflow: hidden;
  height: 100vh;
  height: 100dvh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

button {
  font: inherit;
  color: inherit;
  border: 0;
  background: none;
  cursor: pointer;
}

/* ---------- Background ---------- */

.bg {
  position: absolute;
  inset: 0;
  background: #000;
  overflow: hidden;
}

.bg-canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* ---------- Page ---------- */

.page {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(16px, 2.4vh, 28px) clamp(14px, 3vw, 32px);
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}

.header,
.hero,
.stats,
.mobile-menu,
.menu-overlay {
  z-index: 1;
}

/* ---------- Header ---------- */

.header {
  position: relative;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 2.8vw, 28px);
  width: 100%;
  max-width: 720px;
  animation: slideDown 0.7s var(--ease) both;
}

.logo {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  height: clamp(44px, 5.2vw, 48px);
  padding: 0 clamp(14px, 1.6vw, 18px);
  border-radius: 999px;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: var(--nav-shadow);
  transition: transform 0.35s var(--ease);
}

.logo:hover {
  transform: scale(1.04);
}

.logo img {
  height: clamp(26px, 3vw, 30px);
  width: auto;
  object-fit: contain;
  display: block;
}

.nav {
  flex: 1;
  max-width: 430px;
  height: clamp(44px, 5.2vw, 48px);
  padding: 4px 8px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  background: #fff;
  border-radius: 999px;
  box-shadow: var(--nav-shadow);
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 100%;
  padding: 0 clamp(6px, 1vw, 12px);
  font-weight: 500;
  font-size: clamp(13px, 1.4vw, 15px);
  letter-spacing: -0.01em;
  color: var(--nav-text);
  opacity: 0.5;
  white-space: nowrap;
  transition: opacity 0.25s ease;
}

.nav-link:hover {
  opacity: 0.75;
}

.nav-link.active {
  opacity: 1;
}

.nav-link.active::after,
.mobile-link.active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 5px;
  width: 3px;
  height: 3px;
  margin-left: -1.5px;
  border-radius: 50%;
  background: #000;
  box-shadow: -5px 0 0 #000, 5px 0 0 #000;
}

/* Language switch (occupies the template's "Sign in" pill) */

.signin {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: clamp(44px, 5.2vw, 48px);
  padding: 0 clamp(18px, 2.2vw, 22px);
  border-radius: 999px;
  background: var(--pill-dark);
  color: var(--sign-in-text);
  font-weight: 500;
  font-size: clamp(13px, 1.4vw, 15px);
  letter-spacing: -0.01em;
  box-shadow: var(--nav-shadow);
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s var(--ease);
}

.signin:hover {
  background: #323234;
  color: #fff;
  transform: translateY(-1px);
}

.lang-opt {
  display: block;
  width: 24px;
  height: auto;
  border-radius: 3px;
  opacity: 0.4;
  filter: grayscale(1);
  transition: opacity 0.25s ease, filter 0.25s ease;
}

.lang-opt.on {
  opacity: 1;
  filter: none;
}

.lang-sep {
  opacity: 0.35;
}

/* Burger (mobile only) */

.burger {
  display: none;
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--pill-dark);
  box-shadow: var(--nav-shadow);
  transition: background 0.3s ease;
}

.burger span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 18px;
  height: 1.5px;
  margin-left: -9px;
  margin-top: -0.75px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.35s var(--ease), opacity 0.2s ease, background 0.3s ease;
}

.burger span:nth-child(1) {
  transform: translateY(-6.5px);
}

.burger span:nth-child(3) {
  transform: translateY(6.5px);
}

.burger[aria-expanded="true"] {
  background: #fff;
}

.burger[aria-expanded="true"] span {
  background: #000;
}

.burger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(0) rotate(45deg);
}

.burger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.burger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(0) rotate(-45deg);
}

/* Mobile menu */

.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: overlayIn 0.28s ease both;
}

.mobile-menu {
  position: fixed;
  top: calc(clamp(16px, 2.4vh, 28px) + 48px + 14px);
  left: 50%;
  width: min(420px, calc(100% - 28px));
  transform: translateX(-50%);
  padding: 22px 18px 20px;
  background: #fff;
  border-radius: 28px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  z-index: 2;
  animation: menuIn 0.38s var(--ease) both;
}

.menu-overlay[hidden],
.mobile-menu[hidden] {
  display: none;
}

.mobile-link {
  position: relative;
  display: block;
  padding: 14px 8px 18px;
  text-align: center;
  font-weight: 500;
  font-size: 17px;
  letter-spacing: -0.01em;
  color: var(--nav-text);
  opacity: 0.55;
  animation: linkIn 0.45s var(--ease) both;
  animation-delay: calc(0.06s + var(--i, 0) * 0.05s);
}

.mobile-link.active {
  opacity: 1;
}

.mobile-link.active::after {
  bottom: 8px;
}

.mobile-menu .signin {
  width: 100%;
  justify-content: center;
  margin-top: 10px;
  animation: linkIn 0.45s var(--ease) both;
  animation-delay: 0.3s;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  flex: 1;
  min-height: 0;
  width: 100%;
  max-width: 900px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.trust {
  --trust-size: clamp(36px, 4.5vw, 42px);
  display: inline-flex;
  align-items: center;
  margin-bottom: clamp(16px, 2.5vh, 26px);
}

.avatar {
  position: relative;
  width: var(--trust-size);
  height: var(--trust-size);
  padding: 5px;
  border-radius: 50%;
  background: var(--trust-bg);
  border: 1px solid var(--trust-border);
  flex-shrink: 0;
  transition: transform 0.35s var(--ease);
}

.avatar i {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #fff;
  color: #111;
  display: grid;
  place-items: center;
  font-size: calc(var(--trust-size) * 0.34);
}

.avatar + .avatar {
  margin-left: calc(var(--trust-size) * -0.42);
}

.avatar.a1 { z-index: 1; }
.avatar.a2 { z-index: 2; }
.avatar.a3 { z-index: 4; }

.trust:hover .a1 { transform: translateY(-2px); }
.trust:hover .a2 { transform: translateY(-4px); }
.trust:hover .a3 { transform: translateY(-2px); }

.trust-pill {
  position: relative;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  height: var(--trust-size);
  margin-left: calc(var(--trust-size) * -0.42);
  padding: 0 18px 0 calc(var(--trust-size) * 0.58);
  border-radius: 999px;
  background: var(--trust-bg);
  border: 1px solid var(--trust-border);
  color: var(--trust-text);
  font-weight: 500;
  font-size: clamp(12px, 1.4vw, 13.5px);
  white-space: nowrap;
}

.headline {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(28px, 6.2vw, 80px);
  letter-spacing: -0.04em;
  line-height: 1.12;
  color: #fff;
}

.headline span {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  opacity: 0;
  transform: translateY(14px);
  animation: headlineFade 0.85s var(--ease) forwards;
}

.headline span:nth-child(1) { animation-delay: 0.12s; }
.headline span:nth-child(2) { animation-delay: 0.3s; }

.headline.anim {
  opacity: 1;
  transform: none;
  filter: none;
  animation: none;
}

.subhead {
  max-width: min(500px, 92%);
  margin: clamp(14px, 2.2vh, 22px) auto 0;
  font-size: clamp(calc(13.5px + 2pt), calc(1.55vw + 2pt), calc(16.5px + 2pt));
  font-weight: 400;
  line-height: 1.55;
  color: #d0d0d0;
  opacity: 0.8;
}

.subhead.anim {
  animation-name: revealSoft;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: clamp(20px, 3.2vh, 32px);
  padding: clamp(11px, 1.6vh, 13px) clamp(22px, 3vw, 28px);
  border-radius: 999px;
  background: #fff;
  color: #000;
  font-weight: 600;
  font-size: clamp(13.5px, 1.5vw, 14.5px);
  letter-spacing: -0.01em;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.15), 0 0 22px rgba(255, 255, 255, 0.32),
    0 0 44px rgba(255, 255, 255, 0.12);
  transition: transform 0.35s var(--ease), box-shadow 0.35s ease;
}

.cta:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25), 0 0 28px rgba(255, 255, 255, 0.45),
    0 0 60px rgba(255, 255, 255, 0.2);
}

.cta.anim {
  animation-name: revealPulse;
  animation-duration: 1.1s;
}

/* ---------- Stats ---------- */

.stats {
  position: relative;
  flex-shrink: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(12px, 2vw, 24px);
  width: 100%;
  max-width: 920px;
  padding-bottom: clamp(4px, 1vh, 10px);
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
}

.stat-icon {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 33px);
  line-height: 1;
  color: #fff;
  margin-bottom: 4px;
}

.stat-value {
  font-family: var(--font-sans);
  font-size: clamp(18px, 2.2vw, 26px);
  font-weight: 500;
  letter-spacing: -0.025em;
  color: #fff;
  font-variant-numeric: tabular-nums;
}

.stat-label {
  font-size: clamp(11px, 1.2vw, 12.5px);
  color: var(--muted);
}

/* ---------- Shared entrance ---------- */

.anim {
  opacity: 0;
  transform: translateY(22px) scale(0.98);
  filter: blur(6px);
  animation: reveal 0.85s var(--ease) forwards;
  animation-delay: var(--d, 0s);
}

@keyframes reveal {
  to {
    opacity: 1;
    transform: none;
    filter: blur(0);
  }
}

@keyframes revealSoft {
  to {
    opacity: 0.8;
    transform: none;
    filter: blur(0);
  }
}

@keyframes revealPulse {
  0% {
    opacity: 0;
    transform: translateY(22px) scale(0.98);
    filter: blur(6px);
  }
  60% {
    opacity: 1;
    transform: translateY(0) scale(1.03);
    filter: blur(0);
  }
  100% {
    opacity: 1;
    transform: none;
    filter: blur(0);
  }
}

@keyframes headlineFade {
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes overlayIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes menuIn {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-12px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
  }
}

@keyframes linkIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

/* ---------- Responsive ---------- */

@media (max-width: 720px) {
  .nav,
  .header > .signin {
    display: none;
  }

  .header {
    justify-content: space-between;
    max-width: none;
  }

  .logo {
    height: 48px;
  }

  .burger {
    display: block;
  }

  .headline {
    letter-spacing: -0.08em;
    line-height: 1.05;
  }

  .trust-pill {
    font-size: 12px;
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
    row-gap: clamp(14px, 2.4vh, 22px);
  }
}

@media (max-width: 420px) {
  .trust {
    --trust-size: 34px;
  }

  .trust-pill {
    padding-right: 14px;
  }

  .headline {
    font-size: clamp(26px, 9vw, 40px);
    letter-spacing: -0.09em;
    line-height: 1.04;
  }
}

@media (max-height: 700px) {
  .trust {
    margin-bottom: 12px;
  }

  .subhead {
    margin-top: 10px;
    line-height: 1.45;
  }

  .cta {
    margin-top: 16px;
  }

  .stat-icon {
    margin-bottom: 0;
  }
}

/* =========================================================
   Home widgets (weather, crypto)
   ========================================================= */

/* Only on screens wide enough to sit beside the hero; widgets.js uses the same query. */
.widgets {
  display: none;
  position: absolute;
  /* Between the header and the stats row, which reaches under the columns below ~1600px wide. */
  top: 88px;
  bottom: 130px;
  z-index: 1;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  width: clamp(250px, 19vw, 290px);
}

.widgets-start {
  left: clamp(24px, 3vw, 56px);
}

.widgets-end {
  right: clamp(24px, 3vw, 56px);
}

@media (min-width: 1280px) and (min-height: 760px) {
  .widgets {
    display: flex;
  }
}

/* The third card of each column needs more height than the hero leaves at 760px. */
@media (max-height: 919px) {
  .widget.widget-tall {
    display: none;
  }
}

.widget {
  --glow: 52, 199, 140;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px 16px 16px;
  border: 1px solid var(--card-border);
  border-radius: 26px;
  background:
    radial-gradient(120% 85% at 50% 45%, rgba(var(--glow), 0.32) 0%, rgba(var(--glow), 0.08) 55%, transparent 85%),
    var(--card-bg);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 24px 60px rgba(0, 0, 0, 0.45);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.widget[hidden] {
  display: none;
}

.widget-coin[data-coin="bitcoin"] {
  --glow: 247, 147, 26;
}

.widget-coin[data-coin="monero"] {
  --glow: 255, 92, 40;
}

.widget-mempool {
  --glow: 232, 186, 72;
}

.widget-github,
.widget-blog {
  --glow: 150, 150, 170;
}

.widget-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.widget-title {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  font-size: 12px;
  font-weight: 500;
  color: var(--trust-text);
  white-space: nowrap;
}

.widget-title i {
  color: #fff;
}

.widget-tag {
  flex-shrink: 0;
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.widget-switch {
  display: inline-flex;
  flex-shrink: 0;
  padding: 3px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.widget-switch button {
  padding: 4px 9px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--trust-text);
  font: 500 11px/1 var(--font-sans);
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease;
}

.widget-switch button:hover {
  color: #fff;
}

.widget-switch button[aria-pressed="true"] {
  background: #fff;
  color: #000;
}

.widget-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
}

.widget-stats {
  display: flex;
  gap: 16px;
  margin: 0;
}

.widget-stats dt {
  font-size: 11px;
  color: var(--muted);
}

.widget-stats dd {
  margin: 3px 0 0;
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  font-variant-numeric: tabular-nums;
}

.widget-stats .is-up {
  color: #7cf29a;
}

.widget-stats .is-down {
  color: #ff7a7a;
}

.widget-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 13px;
  border-radius: 999px;
  background: #fff;
  color: #000;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: var(--nav-shadow);
}

.widget-pill i {
  font-size: 11px;
}

a.widget-pill {
  transition: transform 0.35s var(--ease);
}

a.widget-pill:hover {
  transform: translateY(-2px);
}

.dial {
  position: relative;
  width: min(100%, 196px);
  aspect-ratio: 1;
  margin: 0 auto;
}

.dial-ticks {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.dial-tick {
  stroke: rgba(255, 255, 255, 0.16);
  stroke-width: 2.4;
  stroke-linecap: round;
  transition: stroke 0.5s var(--ease);
  transition-delay: calc(var(--i) * 18ms);
}

.dial-tick.is-on {
  stroke: #fff;
}

.dial-arm {
  transform-origin: 100px 100px;
  transform: rotate(135deg);
  transition: transform 1.2s var(--ease);
}

.dial-knob {
  fill: #fff;
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.7));
}

.dial-face {
  position: absolute;
  inset: 17%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 35%, rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.55));
  border: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
}

.dial-caption {
  font-size: 11px;
  color: var(--trust-text);
}

.dial-value {
  display: inline-flex;
  align-items: flex-start;
  font-family: var(--font-display);
  font-size: 46px;
  line-height: 1;
  color: #fff;
}

.dial-unit {
  margin: 2px 0 0 3px;
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--trust-text);
}

.widget-figure {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 2px 0 0;
  font-family: var(--font-display);
  font-size: 32px;
  line-height: 1.1;
  color: #fff;
  white-space: nowrap;
}

.widget-figure-label {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--trust-text);
}

.sparkline {
  display: block;
  width: 100%;
  height: 44px;
  overflow: visible;
}

.sparkline-line {
  fill: none;
  stroke: rgb(var(--glow));
  stroke-width: 1.6;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.sparkline-area {
  fill: rgba(var(--glow), 0.14);
}

.halving {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.halving-dots {
  display: flex;
  justify-content: space-between;
}

.halving-dot,
.contrib-cell {
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
}

.halving-dot {
  width: 5px;
  height: 5px;
  transition: background 0.5s var(--ease);
}

.halving-dot.is-on {
  background: rgb(var(--glow));
  box-shadow: 0 0 6px rgba(var(--glow), 0.6);
}

.halving-text {
  margin: 0;
  font-size: 12px;
  color: var(--trust-text);
}

.contrib-grid {
  display: grid;
  grid-template-rows: repeat(7, 1fr);
  grid-auto-flow: column;
  gap: 3px;
}

.contrib-cell {
  aspect-ratio: 1;
}

.contrib-cell[data-level="none"] {
  visibility: hidden;
}

.contrib-cell[data-level="1"] { background: rgba(255, 255, 255, 0.32); }
.contrib-cell[data-level="2"] { background: rgba(255, 255, 255, 0.55); }
.contrib-cell[data-level="3"] { background: rgba(255, 255, 255, 0.8); }

.contrib-cell[data-level="4"] {
  background: #fff;
  box-shadow: 0 0 5px rgba(255, 255, 255, 0.6);
}

.widget-github .widget-pill {
  min-width: 0;
}

.widget-github .widget-pill span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.widget-github .widget-stats dd {
  white-space: nowrap;
}

.blog-latest {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.blog-latest-body {
  display: flex;
  align-items: center;
  gap: 12px;
}

.blog-latest-cover {
  flex-shrink: 0;
  width: 104px;
  height: 58px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid var(--card-border);
  transition: transform 0.35s var(--ease);
}

.blog-latest:hover .blog-latest-cover {
  transform: scale(1.04);
}

.blog-latest-title {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.35;
  color: #fff;
}

/* =========================================================
   Projects page
   ========================================================= */

body.page-projects {
  overflow-x: hidden;
  overflow-y: auto;
  height: auto;
  min-height: 100vh;
  min-height: 100dvh;
}

.page-projects .bg {
  position: fixed;
}

.page-projects .bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0.62) 40%, rgba(0, 0, 0, 0.78) 100%);
  z-index: 1;
}

.page-projects .page {
  height: auto;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: visible;
}

.page-projects .header {
  position: sticky;
  top: clamp(16px, 2.4vh, 28px);
  z-index: 3;
}

.page-projects .header::before {
  content: "";
  position: absolute;
  left: 50%;
  width: 100vw;
  margin-left: -50vw;
  top: calc(-1 * clamp(16px, 2.4vh, 28px));
  bottom: -28px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.75) 60%, transparent 100%);
  pointer-events: none;
  z-index: -1;
}

.projects {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1120px;
  padding: clamp(48px, 9vh, 96px) 0 clamp(40px, 6vh, 72px);
}

.projects-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: clamp(28px, 5vh, 48px);
}

.projects-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(40px, 7vw, 84px);
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.projects-sub {
  max-width: 520px;
  margin: 14px auto 0;
  font-size: clamp(15px, 1.5vw, 17px);
  line-height: 1.55;
  color: #d0d0d0;
  opacity: 0.8;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: clamp(22px, 3.5vh, 32px);
}

.filter {
  height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--pill-dark);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--sign-in-text);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s var(--ease), border-color 0.25s ease;
}

.filter:hover {
  background: #323234;
  color: #fff;
  transform: translateY(-1px);
}

.filter.on {
  background: #fff;
  color: #000;
  border-color: #fff;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 22px);
}

.project {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 22px;
  overflow: hidden;
  background: rgba(20, 20, 22, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
  opacity: 0;
  transform: translateY(26px) scale(0.98);
  filter: blur(6px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease), filter 0.8s var(--ease),
    border-color 0.3s ease, box-shadow 0.35s ease;
  transition-delay: var(--d, 0s);
}

.project.in {
  opacity: 1;
  transform: none;
  filter: blur(0);
}

.project.in:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.24);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.06);
  transition-delay: 0s;
}

.project.hide {
  display: none;
}

.cover {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #0d0d0e;
}

.cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.9s var(--ease);
}

.cover.contain img {
  object-fit: contain;
  padding: 18px;
}

.cover.contain::before {
  content: "";
  position: absolute;
  inset: -20px;
  background: var(--cover-img) center / cover no-repeat;
  filter: blur(24px) brightness(0.45) saturate(1.2);
}

.cover.contain img {
  position: relative;
}

.project:hover .cover img {
  transform: scale(1.05);
}

.cover-gen {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 30% 20%, #2c2c30 0%, #111113 70%);
  background-image: radial-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1.2px),
    radial-gradient(circle at 30% 20%, #2c2c30 0%, #111113 70%);
  background-size: 10px 10px, cover;
  font-family: var(--font-display);
  font-size: clamp(30px, 3.4vw, 42px);
  letter-spacing: -0.04em;
  color: #fff;
  text-align: center;
  padding: 0 18px;
  line-height: 1.05;
  transition: transform 0.9s var(--ease);
}

.project:hover .cover-gen {
  transform: scale(1.05);
}

.updated-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 11.5px;
  font-weight: 500;
  color: #e6e6e6;
  z-index: 1;
}

.updated-badge .pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #7cf29a;
  box-shadow: 0 0 0 0 rgba(124, 242, 154, 0.6);
  animation: pulse 2s ease-out infinite;
}

.updated-badge.old .pulse {
  background: #8e8e8e;
  animation: none;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(124, 242, 154, 0.55); }
  70% { box-shadow: 0 0 0 7px rgba(124, 242, 154, 0); }
  100% { box-shadow: 0 0 0 0 rgba(124, 242, 154, 0); }
}

.project-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 18px 20px 20px;
}

.project-name {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #fff;
  overflow-wrap: anywhere;
}

.project-name-link {
  transition: color 0.2s ease;
}

.project-name-link:hover {
  color: #d0d0d0;
}

.project-desc {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.55;
  color: #bdbdbd;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}

.chip {
  height: 24px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 11.5px;
  color: #cfcfcf;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  margin-top: auto;
  padding-top: 16px;
  font-size: 12.5px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.meta .lang-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: -1px;
}

.meta i {
  margin-right: 5px;
}

.project-date {
  width: 100%;
  margin-top: 2px;
  color: #a9a9a9;
}

.project-links {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.project-link {
  flex: 1;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: transform 0.3s var(--ease), background 0.25s ease, box-shadow 0.3s ease;
}

.project-link.primary {
  background: #fff;
  color: #000;
}

.project-link.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 22px rgba(255, 255, 255, 0.28);
}

.project-link.ghost {
  background: var(--pill-dark);
  color: var(--sign-in-text);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.project-link.ghost:hover {
  background: #323234;
  color: #fff;
  transform: translateY(-1px);
}

.projects-foot {
  margin-top: clamp(28px, 5vh, 48px);
  text-align: center;
  font-size: 12.5px;
  color: var(--muted);
}

.projects-foot a {
  color: #d0d0d0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
}

@media (max-width: 980px) {
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .grid {
    grid-template-columns: 1fr;
  }

  .projects-title {
    letter-spacing: -0.08em;
  }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .anim,
  .headline span,
  .project {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }

  .subhead.anim {
    opacity: 0.8 !important;
  }

  .headline {
    color: #fff;
  }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.fork-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 1;
  height: 26px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: #fff;
  color: #000;
  font-size: 11.5px;
  font-weight: 600;
}

.fork-of {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted);
  transition: color 0.2s ease;
}

.fork-of:hover {
  color: #fff;
}

/* Keep the burger (X) above the overlay while the mobile menu is open */
.menu-open .header {
  z-index: 3;
}

/* ---------- Intro (home presentation) ---------- */

.avatar.photo {
  padding: 3px;
  z-index: 4;
}

.avatar.photo img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.status-dot {
  width: 7px;
  height: 7px;
  margin-right: 9px;
  border-radius: 50%;
  background: #7cf29a;
  animation: pulse 2.4s ease-out infinite;
  flex-shrink: 0;
}

.intro .trust {
  --trust-size: clamp(40px, 5vw, 48px);
}

.role {
  margin: clamp(10px, 1.6vh, 16px) 0 0;
  font-size: clamp(13px, 1.4vw, 15px);
  font-weight: 500;
  letter-spacing: 0.02em;
  color: #fff;
}

.intro .subhead {
  max-width: min(560px, 92%);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: clamp(20px, 3.2vh, 32px);
}

.actions .cta {
  margin-top: 0;
}

.socials {
  display: flex;
  gap: 8px;
}

.social {
  width: clamp(40px, 4.4vw, 44px);
  height: clamp(40px, 4.4vw, 44px);
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--pill-dark);
  border: 1px solid var(--trust-border);
  color: var(--sign-in-text);
  font-size: 16px;
  transition: transform 0.35s var(--ease), background 0.25s ease, color 0.25s ease;
}

.social:hover {
  background: #fff;
  color: #000;
  transform: translateY(-2px);
}

@media (max-width: 720px) {
  .role {
    max-width: 92%;
  }
}

.intro .headline,
.intro .role,
.intro .subhead {
  text-shadow: 0 2px 22px rgba(0, 0, 0, 0.55);
}

@media (max-width: 720px) {
  .intro .headline {
    font-size: clamp(40px, 12vw, 64px);
  }
}

@media (max-width: 720px) and (max-height: 700px) {
  .intro .headline {
    font-size: clamp(34px, 10vw, 48px);
  }

  .intro .subhead {
    font-size: 14.5px;
  }
}

/* Soft scrim so the thin dot-matrix name stays legible over the brighter background */
body:not(.page-projects) .bg::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(ellipse 60% 45% at 50% 48%, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.18) 70%, rgba(0, 0, 0, 0.1) 100%);
}

@media (max-width: 720px) {
  body:not(.page-projects) .bg::after {
    background: radial-gradient(ellipse 90% 50% at 50% 45%, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.25) 75%, rgba(0, 0, 0, 0.15) 100%);
  }
}

/* =========================================================
   About page
   ========================================================= */

.about {
  max-width: 960px;
}

.about-lead {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  max-width: 680px;
  margin-top: 18px;
  text-align: left;
}

.about-lead p {
  margin: 0;
  font-size: clamp(15px, 1.5vw, 17px);
  line-height: 1.6;
  color: #d6d6d6;
}

.about-photo {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--trust-border);
  padding: 3px;
  background: var(--trust-bg);
}

.about-section {
  margin-top: clamp(36px, 6vh, 56px);
}

.about-h {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(24px, 3vw, 32px);
  letter-spacing: -0.04em;
}

.reveal {
  opacity: 0;
  transform: translateY(22px) scale(0.98);
  filter: blur(6px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease), filter 0.8s var(--ease);
  transition-delay: var(--d, 0s);
}

.reveal.in {
  opacity: 1;
  transform: none;
  filter: blur(0);
}

.timeline {
  list-style: none;
  margin: 0;
  padding: 0 0 0 26px;
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.08));
}

.tl-item {
  position: relative;
  margin-bottom: 14px;
}

.tl-dot {
  position: absolute;
  left: -25px;
  top: 22px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--pill-dark);
  border: 1px solid var(--trust-border);
}

.tl-item.current .tl-dot {
  background: #7cf29a;
  border-color: #7cf29a;
  animation: pulse 2.4s ease-out infinite;
}

.tl-card,
.edu-card,
.hl-card {
  border-radius: 20px;
  background: rgba(20, 20, 22, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.tl-card {
  padding: 18px 20px;
  transition: border-color 0.3s ease;
}

.tl-card:hover,
.hl-card:hover {
  border-color: rgba(255, 255, 255, 0.24);
}

.tl-top {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 12px;
}

.tl-top h3,
.edu-card h3,
.hl-card h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.tl-period {
  font-size: 12.5px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.tl-org {
  margin: 4px 0 0;
  font-size: 13px;
  color: #a9a9a9;
}

.tl-org a {
  color: #fff;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.35);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s ease;
}

.tl-org a:hover {
  text-decoration-color: #fff;
}

.tl-text {
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.6;
  color: #c4c4c4;
}

.about-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 24px;
}

.edu {
  display: grid;
  gap: 12px;
}

.edu-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
}

.edu-card i {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: #111;
  font-size: 15px;
}

.edu-card p,
.hl-card p {
  margin: 4px 0 0;
  font-size: 13px;
  line-height: 1.55;
  color: #a9a9a9;
}

.stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.stack-pill {
  height: 34px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: var(--pill-dark);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 13px;
  font-weight: 500;
  color: var(--sign-in-text);
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s var(--ease);
}

.stack-pill:hover {
  background: #fff;
  color: #000;
  transform: translateY(-1px);
}

.hl-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.hl-card {
  position: relative;
  padding: 20px;
  transition: border-color 0.3s ease, transform 0.35s var(--ease);
}

.hl-card.in:hover {
  transform: translateY(-3px);
  transition-delay: 0s;
}

.hl-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  border-radius: 50%;
  background: var(--pill-dark);
  border: 1px solid var(--trust-border);
  color: #fff;
  font-size: 15px;
}

.hl-year {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 12px;
  color: var(--muted);
}

.about-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: clamp(40px, 7vh, 64px);
}

.about-cta .cta {
  margin-top: 0;
}

.about-cta .project-link {
  flex: 0 0 auto;
  height: 44px;
  padding: 0 20px;
}

@media (max-width: 720px) {
  .about-cols,
  .hl-grid {
    grid-template-columns: 1fr;
  }

  .about-lead {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
}

/* =========================================================
   Links page
   ========================================================= */

.links {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 520px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: clamp(36px, 7vh, 72px) 0 clamp(32px, 5vh, 56px);
}

.links-avatar {
  --trust-size: clamp(84px, 11vh, 104px);
}

.links-title {
  margin: clamp(14px, 2vh, 20px) 0 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(36px, 5vw, 52px);
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.links-handle {
  margin: 6px 0 0;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--trust-text);
}

.links-bio {
  max-width: 440px;
  margin: clamp(10px, 1.6vh, 14px) 0 0;
  font-size: 14.5px;
  line-height: 1.55;
  color: #d0d0d0;
}

.link-list {
  width: 100%;
  margin: clamp(22px, 3.4vh, 32px) 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.link-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 18px 12px 12px;
  border-radius: 999px;
  background: rgba(20, 20, 22, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  text-align: left;
  transition: transform 0.35s var(--ease), background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.link-card:hover,
.link-card:focus-visible {
  background: #fff;
  color: #000;
  border-color: #fff;
  transform: translateY(-2px);
}

.link-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--pill-dark);
  border: 1px solid var(--trust-border);
  color: #fff;
  font-size: 17px;
}

.link-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.link-title {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.link-sub {
  font-size: 12.5px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.link-card:hover .link-sub,
.link-card:focus-visible .link-sub {
  color: #555;
}

.link-arrow {
  font-size: 12px;
  color: var(--muted);
}

.links-socials {
  margin-top: clamp(22px, 3.4vh, 30px);
}

/* =========================================================
   Project page (/projetos/<repo>)
   ========================================================= */

.project-page {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1120px;
  padding: clamp(40px, 8vh, 88px) 0 clamp(40px, 6vh, 72px);
}

.pp-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(28px, 4vw, 56px);
}

.pp-missing {
  grid-template-columns: 1fr;
  text-align: center;
}

.pp-missing .pp-actions {
  justify-content: center;
}

.pp-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s ease, transform 0.3s var(--ease);
}

.pp-back:hover {
  color: #fff;
  transform: translateX(-2px);
}

.pp-title {
  margin: 18px 0 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(40px, 6vw, 76px);
  letter-spacing: -0.04em;
  line-height: 1.02;
  overflow-wrap: anywhere;
}

.pp-repo {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 10px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.pp-tagline {
  max-width: 540px;
  margin: 16px 0 0;
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.55;
  color: #d6d6d6;
}

.pp-missing .pp-tagline {
  margin-inline: auto;
}

.pp-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.pp-actions .project-link {
  flex: 0 0 auto;
  height: 44px;
  padding: 0 20px;
  font-size: 14px;
}

.project-link.small {
  flex: 0 0 auto;
  height: 34px;
  padding: 0 14px;
  font-size: 12.5px;
}

.project-link.done {
  background: #7cf29a;
  color: #000;
}

.pp-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.pp-intro .fork-of {
  margin-top: 14px;
}

.pp-meta {
  padding-top: 16px;
}

.pp-cover {
  border-radius: 22px;
  border: 1px solid var(--card-border);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.5);
}

.pp-section {
  margin-top: clamp(48px, 8vh, 84px);
}

.pp-prose {
  max-width: 760px;
}

.pp-prose p {
  margin: 0 0 14px;
  font-size: clamp(15px, 1.5vw, 17px);
  line-height: 1.7;
  color: #d6d6d6;
}

.pp-features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 1.6vw, 18px);
}

.pp-feature,
.pp-step,
.pp-cta,
.pp-more-card {
  border-radius: 20px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.pp-feature {
  padding: 20px;
}

.pp-feature-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--pill-dark);
  border: 1px solid var(--trust-border);
  font-size: 15px;
}

.pp-feature h3 {
  margin: 14px 0 0;
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.pp-feature p {
  margin: 6px 0 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: #bdbdbd;
}

.pp-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(12px, 1.6vw, 18px);
}

.pp-gallery.single {
  grid-template-columns: minmax(0, 720px);
}

.pp-shot {
  margin: 0;
}

.pp-shot button {
  display: block;
  width: 100%;
  padding: 0;
  border-radius: 18px;
  overflow: hidden;
  background: #0d0d0e;
  border: 1px solid var(--card-border);
  cursor: zoom-in;
  transition: border-color 0.3s ease, transform 0.4s var(--ease);
}

.pp-shot button:hover {
  border-color: rgba(255, 255, 255, 0.26);
  transform: translateY(-3px);
}

.pp-shot img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: contain;
}

.pp-shot figcaption {
  margin-top: 8px;
  font-size: 12.5px;
  color: var(--muted);
}

.pp-steps {
  max-width: 820px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pp-step {
  position: relative;
  padding: 18px 20px 18px 66px;
  counter-increment: step;
}

.pp-step::before {
  content: counter(step);
  position: absolute;
  left: 18px;
  top: 16px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: #000;
  font-size: 13px;
  font-weight: 700;
}

.pp-step p {
  margin: 4px 0 0;
  font-size: 14.5px;
  line-height: 1.55;
  color: #d6d6d6;
}

.pp-code {
  position: relative;
  margin-top: 12px;
}

.pp-code pre {
  margin: 0;
  padding: 14px 92px 14px 16px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid var(--card-border);
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.6;
  color: #e6e6e6;
}

.pp-copy {
  position: absolute;
  top: 8px;
  right: 8px;
  height: 30px;
  padding: 0 12px;
  flex: none;
  font-size: 12px;
  background: var(--pill-dark);
  color: var(--sign-in-text);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.pp-copy:hover {
  color: #fff;
  background: #323234;
}

.pp-reqs {
  max-width: 820px;
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pp-reqs li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-size: 14.5px;
  line-height: 1.55;
  color: #d6d6d6;
}

.pp-reqs i {
  color: #7cf29a;
  font-size: 12px;
}

.pp-cta {
  margin-top: clamp(48px, 8vh, 84px);
  padding: clamp(28px, 5vw, 48px);
  text-align: center;
}

.pp-cta h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: -0.04em;
}

.pp-cta p {
  margin: 10px auto 0;
  max-width: 460px;
  font-size: 15px;
  line-height: 1.55;
  color: #bdbdbd;
}

.pp-cta .pp-actions {
  justify-content: center;
}

.pp-more {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 1.6vw, 18px);
}

.pp-more-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px 46px 20px 20px;
  transition: border-color 0.3s ease, transform 0.4s var(--ease);
}

.pp-more-card:hover {
  border-color: rgba(255, 255, 255, 0.26);
  transform: translateY(-3px);
}

.pp-more-name {
  font-size: 15.5px;
  font-weight: 600;
}

.pp-more-desc {
  font-size: 13px;
  line-height: 1.5;
  color: #bdbdbd;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pp-more-card i {
  position: absolute;
  right: 20px;
  top: 22px;
  color: var(--muted);
  transition: transform 0.3s var(--ease), color 0.2s ease;
}

.pp-more-card:hover i {
  color: #fff;
  transform: translateX(3px);
}

.lightbox {
  max-width: 94vw;
  max-height: 92vh;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: visible;
}

.lightbox::backdrop {
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(6px);
}

.lightbox[open] {
  animation: overlayIn 0.3s var(--ease);
}

.lightbox-img {
  display: block;
  max-width: 94vw;
  max-height: 88vh;
  border-radius: 14px;
}

.lightbox-close {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #fff;
  color: #000;
  font-size: 16px;
}

@media (max-width: 980px) {
  .pp-hero {
    grid-template-columns: 1fr;
  }

  .pp-features,
  .pp-more {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .pp-features,
  .pp-gallery,
  .pp-more {
    grid-template-columns: 1fr;
  }

  .pp-title {
    letter-spacing: -0.08em;
  }

  .pp-actions .project-link {
    flex: 1 1 auto;
  }

  .pp-step {
    padding: 16px 16px 16px 58px;
  }

  .pp-step::before {
    left: 14px;
  }

  .lightbox-close {
    top: -46px;
    right: 0;
  }
}
