/* KrzysiekTech · live follower counter
   One family (JetBrains Mono 300 + 700), black / navy / yellow. */

@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("../fonts/JetBrainsMono-Light.subset.woff") format("woff"),
       url("../fonts/JetBrainsMono-Light.ttf") format("truetype");
}

@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/JetBrainsMono-Bold.subset.woff") format("woff"),
       url("../fonts/JetBrainsMono-Bold.ttf") format("truetype");
}

:root {
  --black: #050507;
  --black-2: #0a0a0d;
  --navy: #0b132b;
  --navy-2: #111d4a;
  --yellow: #ffd60a;
  --yellow-2: #ffd60a;
  --ink: #f8faff;
  --muted: #b8c3dc;
  --dim: #4e5f8c;

  --glass: rgba(11, 19, 43, 0.72);
  --glass-strong: rgba(11, 19, 43, 0.9);
  --hairline: rgba(29, 46, 104, 0.95);
  --hairline-bright: rgba(88, 106, 156, 0.85);

  --font: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --wrap: 1080px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --nav-h: 3.5rem;

  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;

  /* Motion Foundations token system */
  --motion-ease-smooth: cubic-bezier(0.16, 1, 0.3, 1);
  --motion-ease-snappy: cubic-bezier(0.2, 0, 0, 1);
  --motion-ease-ambient: cubic-bezier(0.45, 0, 0.55, 1);
  --motion-dur-instant: 90ms;
  --motion-dur-fast: 180ms;
  --motion-dur-normal: 380ms;
  --motion-dur-slow: 860ms;
  --motion-dur-hero: 1120ms;
  --motion-dur-crawl: 1350ms;

  --ease-out: var(--motion-ease-smooth);
  --ease-in: cubic-bezier(0.55, 0.06, 0.68, 0.19);

  color-scheme: dark;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 2rem);
  background: var(--black);
}

@media (pointer: fine) {
  html {
    overscroll-behavior: none;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--black);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.6;
  letter-spacing: 0;
  font-variant-ligatures: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: rgba(255, 214, 10, 0.18);
  overflow-x: clip;
}

strong,
b {
  font-weight: 700;
}

a {
  color: inherit;
  text-decoration: none;
  touch-action: manipulation;
}

button {
  font: inherit;
  color: inherit;
  touch-action: manipulation;
}

h1,
h2,
h3,
p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 3px;
  border-radius: 6px;
}

::selection {
  background: var(--yellow);
  color: var(--black);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: max(var(--gutter), env(safe-area-inset-left)) max(var(--gutter), env(safe-area-inset-right));
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  border-radius: var(--r-sm);
  background: var(--yellow);
  color: var(--black);
  font-weight: 700;
  transform: translateY(-200%);
  transition: transform var(--motion-dur-fast) var(--motion-ease-snappy);
}

.skip-link:focus-visible {
  transform: translateY(0);
  outline-color: var(--ink);
}

/* ---------- Backdrop: grid, digit rain, glow ---------- */

.backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  background: var(--black);
}

.backdrop__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(17, 29, 74, 0.44) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(17, 29, 74, 0.44) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: calc(50% + 32px) -1px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 42%, rgba(0, 0, 0, 0.25) 0%, #000 70%, rgba(0, 0, 0, 0.6) 100%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 42%, rgba(0, 0, 0, 0.25) 0%, #000 70%, rgba(0, 0, 0, 0.6) 100%);
}

.backdrop__rain {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.68;
  -webkit-mask-image: linear-gradient(90deg, #000 0%, rgba(0, 0, 0, 0.5) 14%, transparent 26%, transparent 74%, rgba(0, 0, 0, 0.5) 86%, #000 100%);
  mask-image: linear-gradient(90deg, #000 0%, rgba(0, 0, 0, 0.5) 14%, transparent 26%, transparent 74%, rgba(0, 0, 0, 0.5) 86%, #000 100%);
}

.backdrop__glow {
  position: absolute;
  left: 50%;
  top: 46vh;
  width: min(1440px, 155vw);
  aspect-ratio: 1.6 / 1;
  transform: translate(-50%, -50%);
  background:
    radial-gradient(closest-side at 50% 48%, rgba(255, 214, 10, 0.2) 0%, rgba(255, 214, 10, 0.08) 18%, transparent 40%),
    radial-gradient(closest-side, rgba(17, 29, 74, 0.78) 0%, rgba(11, 19, 43, 0.45) 52%, rgba(11, 19, 43, 0.16) 78%, transparent 100%);
}

.backdrop__spotlight,
.backdrop__spotlight::after {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  will-change: transform, opacity;
}

.backdrop__spotlight {
  left: 50%;
  top: 50%;
  width: min(1050px, 115vw);
  height: min(1050px, 115vw);
  transform: translate(-50%, -50%);
  background: radial-gradient(
    circle at 50% 50%,
    rgba(56, 139, 253, 0.2) 0%,
    rgba(37, 99, 235, 0.14) 26%,
    rgba(17, 29, 74, 0.12) 52%,
    transparent 74%
  );
  filter: blur(42px);
  animation: spotlight-wander-a 34s ease-in-out infinite;
}

.backdrop__spotlight::after {
  content: "";
  inset: 10%;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(96, 165, 250, 0.16) 0%,
    rgba(37, 99, 235, 0.1) 34%,
    transparent 72%
  );
  animation: spotlight-wander-b 47s ease-in-out infinite;
}

@keyframes spotlight-wander-a {
  0% {
    transform: translate(-62%, -58%) scale(1);
    opacity: 0.78;
  }
  18% {
    transform: translate(-34%, -64%) scale(1.08);
    opacity: 0.92;
  }
  37% {
    transform: translate(-28%, -36%) scale(0.95);
    opacity: 0.72;
  }
  56% {
    transform: translate(-58%, -28%) scale(1.12);
    opacity: 0.95;
  }
  77% {
    transform: translate(-72%, -46%) scale(1.02);
    opacity: 0.8;
  }
  100% {
    transform: translate(-62%, -58%) scale(1);
    opacity: 0.78;
  }
}

@keyframes spotlight-wander-b {
  0% {
    transform: translate(12%, 10%) scale(1.04);
    opacity: 0.75;
  }
  24% {
    transform: translate(-18%, 22%) scale(0.92);
    opacity: 0.9;
  }
  49% {
    transform: translate(-22%, -14%) scale(1.1);
    opacity: 0.7;
  }
  73% {
    transform: translate(16%, -18%) scale(0.98);
    opacity: 0.88;
  }
  100% {
    transform: translate(12%, 10%) scale(1.04);
    opacity: 0.75;
  }
}

/* ---------- Status dot ---------- */

.status-dot {
  position: relative;
  display: inline-block;
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--muted);
}

.status-dot.is-online {
  background: var(--yellow);
  box-shadow: 0 0 10px rgba(255, 214, 10, 0.65);
}

.status-dot.is-online::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--yellow);
  animation: ping 1.8s var(--ease-out) infinite;
}

.status-dot.is-warning {
  background: var(--muted);
  box-shadow: none;
}

@keyframes ping {
  0% {
    transform: scale(1);
    opacity: 0.6;
  }
  80%,
  100% {
    transform: scale(2.6);
    opacity: 0;
  }
}

/* ---------- Navigation ---------- */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: max(0.75rem, env(safe-area-inset-top)) max(var(--gutter), env(safe-area-inset-right)) 0 max(var(--gutter), env(safe-area-inset-left));
}

.nav__bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: var(--wrap);
  height: var(--nav-h);
  margin-inline: auto;
  padding: 0 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-top-color: rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  background: rgba(11, 19, 43, 0.72);
  -webkit-backdrop-filter: blur(28px) saturate(190%);
  backdrop-filter: blur(28px) saturate(190%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 14px 36px rgba(0, 0, 0, 0.52);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 44px;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.brand__avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.38);
  box-shadow:
    0 0 10px rgba(255, 255, 255, 0.2),
    0 2px 10px rgba(0, 0, 0, 0.35);
  margin-right: 0.25rem;
}

.brand__cursor {
  display: inline-block;
  width: 0.5em;
  height: 1.05em;
  background: var(--yellow);
  border-radius: 2px;
  animation: blink 1.1s steps(1, end) infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-left: auto;
}

.nav__status {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.28rem 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.75rem;
  letter-spacing: 0;
  color: var(--muted);
  white-space: nowrap;
}

.nav__status strong {
  font-weight: 700;
  color: var(--yellow);
  text-shadow: 0 0 10px rgba(255, 214, 10, 0.35);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.22rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
}

.nav__tab {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 36px;
  padding: 0 0.85rem;
  border: 1px solid transparent;
  border-radius: 7px;
  font-size: 0.8125rem;
  font-weight: 300;
  white-space: nowrap;
  color: #cdd7ee;
  transition:
    background-color var(--motion-dur-fast) var(--motion-ease-snappy),
    border-color var(--motion-dur-fast) var(--motion-ease-snappy),
    color var(--motion-dur-fast) var(--motion-ease-snappy),
    box-shadow var(--motion-dur-fast) var(--motion-ease-snappy),
    transform var(--motion-dur-instant) var(--motion-ease-snappy);
}

.nav__tab:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: transparent;
  color: var(--ink);
}

.nav__tab.is-active {
  background: rgba(255, 255, 255, 0.11);
  border-color: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  font-weight: 700;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 2px 8px rgba(0, 0, 0, 0.28);
}

.nav__tab:active {
  transform: scale(0.97);
  transition-duration: var(--motion-dur-instant);
}

.nav__tab-icon,
.nav__tab-arrow {
  width: 0.85rem;
  height: 0.85rem;
  flex-shrink: 0;
}

.nav__tab-arrow {
  width: 0.72rem;
  height: 0.72rem;
  opacity: 0.85;
  transition: transform var(--motion-dur-fast) var(--motion-ease-snappy), opacity var(--motion-dur-fast) var(--motion-ease-snappy);
}

.nav__discord-badge {
  display: inline-grid;
  place-items: center;
  width: 1.45rem;
  height: 1.45rem;
  border-radius: 6px;
  background: var(--navy);
  border: 1px solid rgba(255, 214, 10, 0.4);
  color: var(--yellow);
  flex-shrink: 0;
}

.nav__tab--discord .nav__tab-icon {
  width: 0.95rem;
  height: 0.95rem;
  color: var(--yellow);
}

.nav__tab--discord {
  position: relative;
  min-height: 36px;
  padding: 0 0.78rem;
  gap: 0.35rem;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: 0.01em;
  background: var(--navy-2);
  border-color: rgba(255, 214, 10, 0.48);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 2px 14px rgba(0, 0, 0, 0.4),
    0 0 14px rgba(255, 214, 10, 0.1);
}

.nav__tab-prompt,
.nav__tab-arrow {
  color: var(--yellow);
  font-weight: 700;
  line-height: 1;
}

.nav__tab-arrow {
  display: inline-block;
  animation: nav-arrow-nudge 1.8s var(--ease-out) infinite;
}

@keyframes nav-arrow-nudge {
  0%,
  100% {
    transform: translateX(0);
    opacity: 0.82;
  }
  50% {
    transform: translateX(3px);
    opacity: 1;
  }
}

.nav__tab--discord:hover,
.nav__tab--discord:focus-visible,
.nav__tab--discord.is-active {
  color: #ffffff;
  background: var(--navy-2);
  border-color: var(--yellow);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 0 18px rgba(255, 214, 10, 0.24);
  transform: translateY(-1px);
}

.nav__tab--discord:hover .nav__tab-arrow,
.nav__tab--discord:focus-visible .nav__tab-arrow {
  transform: translateX(3px);
  opacity: 1;
  color: var(--yellow);
}

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

.hero {
  display: flex;
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: calc(var(--nav-h) + 1.5rem) 0 2rem;
  overflow-x: clip;
}

.hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.avatar {
  position: relative;
  z-index: 2;
  width: clamp(68px, 6.8vw, 84px);
  height: clamp(68px, 6.8vw, 84px);
  margin-bottom: clamp(0.5rem, 1vw, 0.75rem);
  padding: 3px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.78);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.18), rgba(15, 23, 48, 0.88));
  box-shadow:
    0 0 16px rgba(255, 255, 255, 0.56),
    0 0 30px rgba(255, 255, 255, 0.26),
    0 0 64px rgba(255, 214, 10, 0.62),
    0 14px 36px rgba(0, 0, 0, 0.55);
}

.avatar::before {
  content: "";
  position: absolute;
  inset: -60px;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255, 214, 10, 0.88) 0%,
    rgba(255, 214, 10, 0.46) 38%,
    rgba(255, 214, 10, 0.16) 58%,
    rgba(255, 214, 10, 0) 76%
  );
  filter: blur(22px);
  pointer-events: none;
}

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

.hero__highlight {
  position: relative;
  z-index: 1;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  max-width: 100%;
  padding: clamp(0.5rem, 1.2vw, 0.85rem) clamp(0.75rem, 2vw, 1.5rem);
}

.hero__highlight::before {
  content: "";
  position: absolute;
  inset: -8.5rem -15rem;
  z-index: -1;
  pointer-events: none;
  border-radius: 50%;
  background:
    radial-gradient(
      ellipse 26% 24% at 50% 52%,
      rgba(255, 214, 10, 0.34) 0%,
      rgba(255, 214, 10, 0.12) 55%,
      rgba(255, 214, 10, 0) 100%
    ),
    radial-gradient(
      ellipse 74% 70% at 50% 50%,
      rgba(17, 29, 74, 0.88) 0%,
      rgba(11, 19, 43, 0.65) 48%,
      rgba(5, 5, 7, 0) 100%
    );
  filter: blur(42px);
}

.text-navy-mark {
  display: inline-block;
  max-width: 100%;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
  color: var(--ink);
  text-shadow: 0 2px 24px rgba(11, 19, 43, 0.85);
}

.prompt {
  font-size: clamp(0.875rem, 1.4vw, 1.125rem);
  color: var(--ink);
  min-height: 1.5em;
}

.prompt__path {
  color: var(--muted);
}

.prompt__caret {
  display: inline-block;
  width: 0.6em;
  height: 1.15em;
  margin-left: 0.15em;
  vertical-align: -0.2em;
  background: var(--yellow);
  animation: blink 1.1s steps(1, end) infinite;
}

.hero__title {
  margin-top: 0;
  font-weight: 700;
  font-size: clamp(1.75rem, 4.4vw, 3.65rem);
  line-height: 1.04;
  letter-spacing: -0.04em;
  text-wrap: balance;
  color: var(--ink);
}

.hero__label {
  margin-top: 0;
  font-size: clamp(0.95rem, 1.7vw, 1.3rem);
  letter-spacing: -0.01em;
  color: var(--muted);
}

.hero__scope {
  margin-top: 1.1rem;
  font-size: 0.8125rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}

/* ---------- Flip clock ---------- */

.counter {
  position: relative;
  z-index: 2;
  margin-top: clamp(1.35rem, 2.8vw, 2.25rem);
}

.counter::before {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: -18%;
  height: 60%;
  background: radial-gradient(closest-side, rgba(255, 214, 10, 0.16), transparent);
  filter: blur(18px);
  pointer-events: none;
  opacity: 0.8;
  transition: opacity var(--motion-dur-normal) var(--motion-ease-smooth);
}

.counter.is-bumped::before {
  opacity: 1;
  animation: glow-bump var(--motion-dur-slow) var(--motion-ease-smooth);
}

@keyframes glow-bump {
  0% {
    opacity: 1;
    transform: scale(1.06);
  }
  100% {
    opacity: 0.88;
    transform: scale(1);
  }
}

.flip {
  --dw: clamp(48px, 9.4vw, 134px);
  --dh: calc(var(--dw) * 1.38);
  --gap: clamp(5px, 0.8vw, 12px);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--gap);
}

.flip__group {
  display: flex;
  gap: var(--gap);
}

.flip__group + .flip__group {
  margin-left: calc(var(--gap) * 2.4);
}

.digit {
  position: relative;
  width: var(--dw);
  height: var(--dh);
  perspective: calc(var(--dh) * 4);
  font-weight: 700;
  font-size: calc(var(--dh) * 0.74);
  font-variant-numeric: tabular-nums;
  color: var(--yellow);
  text-shadow: 0 0 28px rgba(255, 214, 10, 0.48);
  filter: drop-shadow(0 20px 38px rgba(0, 0, 0, 0.62));
}

.digit.is-lead {
  color: var(--dim);
  text-shadow: none;
}

.flip--compact {
  --dw: clamp(32px, 3.6vw, 44px);
  --dh: calc(var(--dw) * 1.36);
  --gap: 4px;
  gap: var(--gap);
}

.flip--compact .flip__group + .flip__group {
  margin-left: calc(var(--gap) * 2);
}

.flip--compact .digit {
  text-shadow: 0 0 14px rgba(255, 214, 10, 0.28);
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.45));
}

.flip--compact .digit__half--top,
.flip--compact .digit__flap--top {
  border-radius: 6px 6px 0 0;
}

.flip--compact .digit__half--bottom,
.flip--compact .digit__flap--bottom {
  border-radius: 0 0 6px 6px;
}

.flip--compact .digit::before {
  top: calc(50% - 0.75px);
  height: 1.5px;
}

.flip--compact .digit::after {
  left: -2px;
  right: -2px;
  top: calc(50% - 4px);
  height: 8px;
  background:
    linear-gradient(var(--dim), var(--dim)) left center / 3px 8px no-repeat,
    linear-gradient(var(--dim), var(--dim)) right center / 3px 8px no-repeat;
}

.digit__half,
.digit__flap {
  position: absolute;
  left: 0;
  right: 0;
  height: 50%;
  overflow: hidden;
  background: var(--navy);
  border: 1px solid rgba(255, 255, 255, 0.15);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.digit__half > span,
.digit__flap > span {
  display: block;
  height: var(--dh);
  line-height: var(--dh);
  text-align: center;
}

.digit__half--top,
.digit__flap--top {
  top: 0;
  border-bottom: 0;
  border-radius: var(--r-md) var(--r-md) 0 0;
  background: linear-gradient(180deg, rgba(20, 31, 68, 0.95) 0%, rgba(11, 18, 42, 0.98) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.digit__half--bottom,
.digit__flap--bottom {
  bottom: 0;
  border-top: 0;
  border-radius: 0 0 var(--r-md) var(--r-md);
  background: linear-gradient(180deg, rgba(10, 16, 38, 0.98) 0%, rgba(7, 12, 28, 0.98) 100%);
}

.digit__half--bottom > span,
.digit__flap--bottom > span {
  margin-top: calc(var(--dh) / -2);
}

.digit__flap {
  visibility: hidden;
  will-change: transform;
}

.digit__flap--top {
  transform-origin: 50% 100%;
}

.digit__flap--bottom {
  transform-origin: 50% 0%;
  transform: rotateX(90deg);
}

.digit.is-flipping .digit__flap {
  visibility: visible;
}

/* split line + hinge pins */
.digit::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: calc(50% - 1px);
  height: 2px;
  z-index: 3;
  background: rgba(5, 5, 7, 0.95);
  pointer-events: none;
}

.digit::after {
  content: "";
  position: absolute;
  left: -3px;
  right: -3px;
  top: calc(50% - 6px);
  height: 12px;
  z-index: 4;
  pointer-events: none;
  background:
    linear-gradient(var(--dim), var(--dim)) left center / 5px 12px no-repeat,
    linear-gradient(var(--dim), var(--dim)) right center / 5px 12px no-repeat;
  border-radius: 2px;
}

/* ---------- Metrics line ---------- */

.metrics {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: clamp(1.5rem, 3vw, 2.1rem);
  padding: 0.38rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(15, 23, 48, 0.55);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  font-size: 0.8125rem;
  color: var(--muted);
}

.metrics__tag {
  letter-spacing: 0.01em;
  color: var(--ink);
}

.metrics__sep {
  color: var(--dim);
}

.metrics__sync,
.metrics__mode {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.metrics__mode {
  padding: 0.1rem 0.5rem;
  border: 1px solid var(--hairline-bright);
  border-radius: 999px;
  font-size: 0.8125rem;
}

.metrics__mode.is-live {
  border-color: rgba(255, 214, 10, 0.45);
  color: var(--yellow);
}

.metrics__bump {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.85rem;
  border: 1px solid var(--hairline-bright);
  border-radius: 999px;
  background: rgba(11, 19, 43, 0.72);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--yellow);
  cursor: pointer;
  transition: border-color 180ms var(--ease-out), background-color 180ms var(--ease-out), transform 100ms var(--ease-out);
}

.metrics__bump:hover {
  border-color: var(--yellow);
  background: rgba(17, 29, 74, 0.92);
}

.metrics__bump:active {
  transform: scale(0.97);
}

/* ---------- Biography card ---------- */

.bio-card {
  position: relative;
  width: 100%;
  margin-top: 0;
  text-align: left;
  border-radius: var(--r-lg);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-top-color: rgba(255, 255, 255, 0.25);
  background: rgba(11, 19, 43, 0.74);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  backdrop-filter: blur(24px) saturate(180%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 24px 64px rgba(0, 0, 0, 0.56);
  overflow: hidden;
}

.bio__layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
}

.bio__sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 1.75rem 1.5rem;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(5, 5, 7, 0.35);
}

.bio__identity {
  display: grid;
  gap: 0.15rem;
  min-width: 0;
}

.bio__name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
}

.bio__handle {
  font-size: 0.8125rem;
  color: var(--yellow);
}

.bio__specs {
  display: grid;
  gap: 0.85rem;
  margin-top: auto;
  padding-top: 1.15rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.bio__spec {
  display: grid;
  gap: 0.2rem;
}

.bio__spec dt {
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.bio__spec dt::before {
  content: "> ";
  color: var(--yellow);
}

.bio__spec dd {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--ink);
}

.bio__body {
  display: grid;
  align-content: center;
  gap: 1.15rem;
  padding: clamp(1.5rem, 3vw, 2.35rem) clamp(1.4rem, 3vw, 2.4rem);
}

.bio__lead {
  font-size: clamp(1.0625rem, 1.55vw, 1.28rem);
  line-height: 1.65;
  color: var(--ink);
  text-wrap: pretty;
}

.bio__lead strong {
  color: var(--yellow);
  font-weight: 700;
}

.bio__text {
  font-size: clamp(0.95rem, 1.2vw, 1.0625rem);
  line-height: 1.72;
  color: #d3dcf0;
  text-wrap: pretty;
}

.bio__accent {
  color: var(--ink);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(255, 214, 10, 0.65);
  text-underline-offset: 4px;
}

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

  .bio__sidebar {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.25rem;
    gap: 1rem;
  }

  .bio__specs {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    margin-top: 0;
    padding-top: 0.9rem;
  }
}

.section-prompt {
  margin-bottom: 0.35rem;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.pane__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 2.35rem;
  padding: 0.5rem clamp(1.25rem, 3vw, 2rem);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(5, 5, 7, 0.48);
  font-size: 0.75rem;
  color: var(--muted);
}

.pane__path {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pane__path strong {
  color: var(--yellow);
  font-weight: 700;
}

.pane__meta {
  flex: none;
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.pane__copy {
  cursor: pointer;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 0.14rem 0.42rem;
  font-family: inherit;
  transition:
    color 180ms var(--ease-out),
    border-color 180ms var(--ease-out),
    background 180ms var(--ease-out);
}

.pane__copy:hover,
.pane__copy:focus-visible {
  color: var(--ink);
  border-color: rgba(255, 214, 10, 0.35);
  background: rgba(255, 214, 10, 0.08);
}

.pane__copy.is-copied {
  color: var(--yellow);
  border-color: rgba(255, 214, 10, 0.5);
  background: rgba(255, 214, 10, 0.12);
}

.pane__cmd {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  color: var(--muted);
}

.pane__arrow {
  display: inline-block;
  color: var(--yellow);
  font-weight: 700;
  animation: prompt-breathe 2.6s ease-in-out infinite;
}

@keyframes prompt-breathe {
  0%,
  100% {
    opacity: 0.68;
  }
  50% {
    opacity: 1;
  }
}

.linktree-card__kv {
  display: grid;
  gap: 0.55rem;
}

.linktree-card__kv-row {
  display: grid;
  gap: 0.15rem;
}

.linktree-card__kv-row dt {
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.linktree-card__kv-row dt::before {
  content: "> ";
  color: var(--yellow);
}

.linktree-card__kv-row dd {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
}

/* ---------- Platform tiles ---------- */

.tiles {
  display: grid;
  grid-template-columns: repeat(var(--tile-cols, 3), minmax(0, 1fr));
  gap: 1rem;
  width: 100%;
  max-width: 780px;
  margin-top: clamp(2rem, 4.5vw, 3.5rem);
}

.tiles__item[hidden] {
  display: none;
}

.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  min-height: 100%;
  padding: 1.1rem 1rem 1rem;
  border: 1px solid var(--hairline);
  border-top-color: rgba(58, 69, 102, 0.6);
  border-radius: var(--r-lg);
  background: var(--glass);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
  transition: transform 220ms var(--ease-out), border-color 220ms var(--ease-out), box-shadow 220ms var(--ease-out);
}

.tile:hover {
  transform: translateY(-2px);
  border-color: var(--yellow);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 214, 10, 0.12), 0 0 28px rgba(255, 214, 10, 0.08);
}

.tile:active {
  transform: translateY(0) scale(0.98);
  transition-duration: 100ms;
}

.tile__head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9375rem;
  color: var(--ink);
}

.tile__icon {
  width: 16px;
  height: 16px;
  fill: currentColor;
  color: var(--muted);
  transition: color 220ms var(--ease-out);
}

.tile:hover .tile__icon {
  color: var(--yellow);
}

.tile__source {
  padding: 0 0.4rem;
  border: 1px solid var(--hairline-bright);
  border-radius: 999px;
  font-size: 0.6875rem;
  line-height: 1.5;
  color: var(--muted);
}

.tile__source.is-live {
  border-color: rgba(255, 214, 10, 0.45);
  color: var(--yellow);
}

.tile__count {
  font-weight: 700;
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  transition: color 600ms var(--ease-out), text-shadow 600ms var(--ease-out);
}

.tile__count.is-bumped {
  color: var(--yellow);
  text-shadow: 0 0 18px rgba(255, 214, 10, 0.45);
  transition-duration: 0ms;
}

.tile__delta {
  font-size: 0.8125rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.tile__delta.is-up {
  color: var(--yellow-2);
}

/* ---------- Sections ---------- */

main > section[id] {
  scroll-margin-top: calc(var(--nav-h) + 1.5rem);
}

main > section + section {
  position: relative;
  overflow-x: clip;
}

main > section + section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: min(var(--max-w), calc(100% - 2 * var(--gutter)));
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 214, 10, 0.18) 18%,
    rgba(255, 214, 10, 0.42) 50%,
    rgba(255, 214, 10, 0.18) 82%,
    transparent 100%
  );
  pointer-events: none;
}

main > section + section::after {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 140px;
  height: 3px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 214, 10, 0.72),
    transparent
  );
  opacity: 0;
  pointer-events: none;
  animation: divider-scan 6.5s ease-in-out infinite;
  will-change: transform, opacity;
}

@keyframes divider-scan {
  0% {
    transform: translateX(-140px);
    opacity: 0;
  }
  12% {
    opacity: 0.85;
  }
  88% {
    opacity: 0.85;
  }
  100% {
    transform: translateX(100vw);
    opacity: 0;
  }
}

.section-head {
  margin-bottom: clamp(1.25rem, 2.5vw, 1.75rem);
}

.about {
  padding: clamp(4.5rem, 8vw, 7rem) 0;
  background: radial-gradient(
    ellipse 65% 55% at 50% 52%,
    rgba(17, 29, 74, 0.28) 0%,
    rgba(11, 19, 43, 0.12) 55%,
    rgba(5, 5, 7, 0) 100%
  );
}

/* ---------- Bento Grid (O mnie & Setup) ---------- */

.bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1.25rem;
}

.bento__card {
  overflow: hidden;
  border: 1px solid var(--hairline);
  border-top-color: rgba(58, 69, 102, 0.6);
  border-radius: var(--r-lg);
  background: var(--glass-strong);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  backdrop-filter: blur(20px) saturate(150%);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
  transition: border-color 220ms var(--ease-out), transform 220ms var(--ease-out);
}

.bento__card:hover {
  border-color: rgba(255, 214, 10, 0.55);
}

.bento__card--profile {
  grid-column: span 7;
  display: flex;
  flex-direction: column;
}

.bento__card--setup {
  grid-column: span 5;
  display: flex;
  flex-direction: column;
}

.bento__card--topics {
  grid-column: span 12;
}

.bento__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1.5rem, 3vw, 2.25rem);
}

.bento__body .lead:first-child {
  margin-top: 0;
}

.neofetch {
  flex: 1;
  display: grid;
  padding: 0.5rem 0;
}

.neofetch__row {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  gap: 1rem;
  padding: 0.9rem 1.5rem;
  font-size: 0.9375rem;
}

.neofetch__row + .neofetch__row {
  border-top: 1px solid rgba(17, 29, 74, 0.7);
}

.neofetch dt {
  font-weight: 700;
  color: var(--yellow);
}

.neofetch dd {
  color: var(--ink);
  overflow-wrap: anywhere;
}

/* ---------- Social Hub ---------- */

.social-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.social-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
  height: 100%;
  min-height: 11.5rem;
  padding: 1.5rem;
  border: 1px solid var(--hairline);
  border-top-color: rgba(58, 69, 102, 0.6);
  border-radius: var(--r-lg);
  background: var(--glass);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
  transition: transform 220ms var(--ease-out), border-color 220ms var(--ease-out), box-shadow 220ms var(--ease-out);
}

.social-card--featured {
  border-color: rgba(255, 214, 10, 0.36);
  background: linear-gradient(155deg, rgba(17, 29, 74, 0.78), rgba(11, 19, 43, 0.66));
}

.social-card:hover {
  transform: translateY(-2px);
  border-color: var(--yellow);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 214, 10, 0.14), 0 0 28px rgba(255, 214, 10, 0.08);
}

.social-card:active {
  transform: translateY(0) scale(0.98);
  transition-duration: 100ms;
}

.social-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.social-card__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 1.125rem;
  color: var(--ink);
}

.social-card__icon {
  width: 20px;
  height: 20px;
  fill: currentColor;
  color: var(--yellow);
  flex: none;
}

.social-card__handle {
  font-size: 0.875rem;
  color: var(--muted);
}

.social-card__desc {
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.6;
  text-wrap: pretty;
}

.social-card__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(17, 29, 74, 0.75);
}

.social-card__stat {
  font-size: 0.875rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.social-card__stat strong {
  color: var(--ink);
}

.social-card__cta {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.85rem;
  border: 1px solid var(--hairline-bright);
  border-radius: var(--r-sm);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--yellow);
  transition: background-color 180ms var(--ease-out), border-color 180ms var(--ease-out), color 180ms var(--ease-out);
}

.social-card:hover .social-card__cta {
  border-color: var(--yellow);
  background: var(--yellow);
  color: var(--black);
}

/* ---------- Linktree section ---------- */

.linktree {
  padding: clamp(4.5rem, 8vw, 7rem) 0 clamp(5rem, 9vw, 8rem);
  background: rgba(5, 5, 7, 0.68);
}

.linktree__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem;
}

.linktree__grid > li:first-child {
  grid-column: 1 / -1;
}

.linktree-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.15rem;
  height: 100%;
  padding: 1.35rem 1.45rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-top-color: rgba(255, 255, 255, 0.24);
  border-radius: var(--r-md);
  background: rgba(11, 19, 43, 0.72);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 12px 28px rgba(0, 0, 0, 0.34);
  transition:
    transform var(--motion-dur-fast) var(--motion-ease-snappy),
    border-color var(--motion-dur-fast) var(--motion-ease-snappy),
    box-shadow var(--motion-dur-fast) var(--motion-ease-snappy),
    background var(--motion-dur-fast) var(--motion-ease-snappy);
}

.linktree-card:focus-visible {
  border-radius: var(--r-md);
}

.linktree-card--featured {
  padding: 1.55rem 1.75rem;
  border-color: rgba(255, 214, 10, 0.36);
  border-top-color: rgba(255, 214, 10, 0.62);
  background: linear-gradient(135deg, rgba(255, 214, 10, 0.08) 0%, rgba(11, 19, 43, 0.66) 55%);
}

.linktree-card--featured .linktree-card__cta {
  color: var(--ink);
}

@media (min-width: 901px) {
  .linktree-card--featured {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "head metric"
      "foot foot";
    align-items: center;
    gap: 1.15rem 2rem;
  }

  .linktree-card--featured .linktree-card__head {
    grid-area: head;
  }

  .linktree-card--featured .linktree__tag {
    margin-left: 0.25rem;
  }

  .linktree-card--featured .linktree-card__metric {
    grid-area: metric;
    justify-content: flex-end;
    text-align: right;
  }

  .linktree-card--featured .linktree-card__foot {
    grid-area: foot;
  }
}

.linktree-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 214, 10, 0.65);
  border-top-color: rgba(255, 214, 10, 0.9);
  background: rgba(17, 29, 74, 0.68);
  box-shadow:
    inset 0 1px 0 rgba(255, 214, 10, 0.35),
    0 16px 36px rgba(0, 0, 0, 0.48),
    0 0 24px rgba(255, 214, 10, 0.08);
}

.linktree-card:active {
  transform: translateY(0) scale(0.985);
  transition-duration: var(--motion-dur-instant);
}

.linktree-card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0.65rem 0.85rem;
}

.linktree__tag {
  margin-left: auto;
  padding: 0.18rem 0.55rem;
  border: 1px solid rgba(255, 214, 10, 0.38);
  border-radius: 6px;
  background: rgba(255, 214, 10, 0.08);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--yellow);
}

.linktree-card__title-group {
  display: grid;
  gap: 0.1rem;
  min-width: 0;
}

.linktree__icon-box {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  flex: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-top-color: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  background: var(--navy);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: border-color var(--motion-dur-fast) var(--motion-ease-snappy), box-shadow var(--motion-dur-fast) var(--motion-ease-snappy);
}

.linktree-card:hover .linktree__icon-box {
  border-color: rgba(255, 214, 10, 0.65);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 0 18px rgba(255, 214, 10, 0.18);
}

.linktree__icon {
  width: 20px;
  height: 20px;
  fill: currentColor;
  color: var(--ink);
  transition: color var(--motion-dur-fast) var(--motion-ease-snappy);
}

.linktree-card--featured .linktree__icon,
.linktree-card:hover .linktree__icon {
  color: var(--yellow);
}

.linktree-card__name {
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.linktree-card__handle {
  font-size: 0.8125rem;
  color: var(--muted);
}

.linktree-card__metric {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem;
  font-variant-numeric: tabular-nums;
}

.linktree-card__metric strong {
  font-size: clamp(1.65rem, 2.8vw, 2.15rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--yellow);
}

.linktree-card__metric--text strong {
  font-size: clamp(1.15rem, 1.85vw, 1.38rem);
  line-height: 1.25;
  color: var(--ink);
}

.linktree-card__metric span {
  font-size: 0.8125rem;
  color: var(--muted);
}

.linktree-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.linktree-card__note {
  font-size: 0.8125rem;
  color: var(--muted);
}

.linktree-card__cta {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 0.4rem;
  padding: 0;
  border: 0;
  background: none;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--muted);
  transition: color var(--motion-dur-fast) var(--motion-ease-snappy);
}

.linktree-card__arrow {
  width: 14px;
  height: 14px;
  flex: none;
  transition: transform var(--motion-dur-fast) var(--motion-ease-snappy), color var(--motion-dur-fast) var(--motion-ease-snappy);
}

.linktree-card:hover .linktree-card__cta {
  color: var(--yellow);
}

.linktree-card:hover .linktree-card__arrow {
  transform: translate(3px, -3px);
  color: var(--yellow);
}

.section-lead {
  margin-top: 0.6rem;
  max-width: 56ch;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--muted);
}

.section-title {
  margin-top: 0;
  font-weight: 700;
  font-size: clamp(1.75rem, 3.6vw, 2.75rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

/* ---------- Terminal panels ---------- */

.terminal {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-top-color: rgba(255, 255, 255, 0.18);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(15, 22, 46, 0.78) 0%, rgba(8, 12, 26, 0.88) 100%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  backdrop-filter: blur(28px) saturate(180%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 28px 70px rgba(0, 0, 0, 0.62);
}

.terminal__bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 2.65rem;
  padding: 0 1.1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045) 0%, rgba(255, 255, 255, 0.015) 100%);
}

.terminal__lights {
  position: absolute;
  left: 1rem;
  display: flex;
  gap: 0.5rem;
}

.terminal__lights i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 0.5px rgba(0, 0, 0, 0.3);
}

.terminal__lights i:nth-child(1) {
  background: var(--yellow);
  box-shadow: 0 0 8px rgba(255, 214, 10, 0.45);
}

.terminal__lights i:nth-child(2) {
  background: var(--navy-2);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.terminal__lights i:nth-child(3) {
  background: var(--black-2);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.terminal__title {
  font-size: 0.8125rem;
  color: var(--muted);
}

.topics {
  padding: 0.5rem 0;
}

.topics__row {
  display: grid;
  grid-template-columns: 9rem minmax(0, 1fr);
  gap: 1rem;
  padding: 1rem 1.5rem;
}

.topics__row + .topics__row {
  border-top: 1px solid rgba(17, 29, 74, 0.7);
}

.topics dt {
  font-weight: 700;
  color: var(--yellow);
}

.topics dd {
  color: var(--ink);
}

.sources {
  margin-top: 2rem;
  border-top: 1px solid var(--hairline);
}

.sources__row {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  gap: 1rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--hairline);
  font-size: 0.875rem;
}

.sources dt {
  font-weight: 700;
  color: var(--ink);
}

.sources dd {
  color: var(--muted);
}

.terminal__lines {
  height: clamp(18rem, 46vh, 26rem);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 1rem 1.25rem 1.25rem;
  font-size: 0.875rem;
  line-height: 1.75;
  font-variant-numeric: tabular-nums;
  scrollbar-width: thin;
  scrollbar-color: var(--navy-2) transparent;
}

.terminal__lines:focus-visible {
  outline-offset: -3px;
}

.log-line {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.9rem;
  overflow-wrap: anywhere;
}

.log-line__time {
  color: var(--muted);
}

.log-line__msg {
  color: var(--ink);
}

.log-line__msg b {
  font-weight: 700;
}

.log-line--up .log-line__msg b {
  color: var(--yellow);
}

.log-line--down .log-line__msg b {
  color: var(--muted);
}

.log-line--sys .log-line__msg {
  color: var(--muted);
}

.log-line--error .log-line__msg {
  color: var(--yellow);
}

.log-line.is-new {
  animation: line-in 380ms var(--ease-out);
}

@keyframes line-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Discord section ---------- */

.discord {
  padding: clamp(4.5rem, 8vw, 7rem) 0 clamp(5rem, 9vw, 8rem);
  background:
    radial-gradient(
      ellipse 75% 42% at 50% 0%,
      rgba(17, 29, 74, 0.32) 0%,
      rgba(5, 5, 7, 0) 70%
    ),
    rgba(5, 5, 7, 0.68);
}

.discord__intro {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 0.9rem;
}

.discord__intro .section-lead {
  margin-top: 0;
}

.discord__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 14px;
  background: #5865f2;
  color: #ffffff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    0 10px 28px rgba(88, 101, 242, 0.36);
}

.discord__badge-icon {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

.discord-card {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-top-color: rgba(255, 255, 255, 0.24);
  border-radius: var(--r-md);
  background: rgba(11, 19, 43, 0.74);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  backdrop-filter: blur(22px) saturate(180%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 20px 50px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.discord__layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.95fr) minmax(0, 1.35fr);
  align-items: stretch;
}

.discord__visual {
  display: grid;
  gap: 1.4rem;
  align-content: center;
  padding: clamp(1.5rem, 3vw, 2.2rem);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at 50% 60%, rgba(255, 214, 10, 0.06), transparent 72%),
    linear-gradient(180deg, rgba(17, 29, 74, 0.36), rgba(5, 5, 7, 0.2));
}

.discord__server-head {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.discord__server-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 214, 10, 0.42);
  border-radius: 11px;
  background: var(--navy);
  color: var(--yellow);
  box-shadow: 0 0 18px rgba(255, 214, 10, 0.12);
}

.discord__svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.discord__server-meta {
  display: grid;
  gap: 0.15rem;
  min-width: 0;
}

.discord__server-name {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink);
}

.discord__server-url {
  font-size: 0.78rem;
  color: var(--muted);
}

.discord__members-plate {
  display: grid;
  gap: 0.95rem;
  min-width: 0;
  padding: 1.25rem 1.3rem;
  border: 1px solid rgba(255, 214, 10, 0.28);
  border-top-color: rgba(255, 214, 10, 0.52);
  border-radius: var(--r-sm);
  background: rgba(5, 5, 7, 0.58);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 12px 28px rgba(0, 0, 0, 0.35);
}

.discord__members-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 0.95rem;
  min-width: 0;
}

.discord__members-label {
  font-size: 0.875rem;
  color: var(--muted);
}

.discord__online {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.8125rem;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}

.discord__online strong {
  color: var(--ink);
  font-weight: 700;
}

.discord__online-dot {
  position: relative;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 10px rgba(255, 214, 10, 0.65);
  flex: none;
}

.discord__online-dot::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1px solid rgba(255, 214, 10, 0.7);
  animation: status-pulse 2.2s ease-out infinite;
  pointer-events: none;
}

@keyframes status-pulse {
  0% {
    transform: scale(0.8);
    opacity: 0.85;
  }
  70%,
  100% {
    transform: scale(2.1);
    opacity: 0;
  }
}

.discord__body {
  display: grid;
  align-content: center;
  gap: 1.15rem;
  padding: clamp(1.5rem, 3vw, 2.35rem) clamp(1.4rem, 3vw, 2.4rem);
}

.discord__lead {
  font-size: clamp(1.0625rem, 1.55vw, 1.28rem);
  line-height: 1.65;
  color: var(--ink);
  text-wrap: pretty;
}

.discord__lead strong,
.discord__text strong {
  color: var(--yellow);
  font-weight: 700;
}

.discord__text {
  font-size: clamp(0.95rem, 1.2vw, 1.0625rem);
  line-height: 1.72;
  color: #d3dcf0;
  text-wrap: pretty;
}

.discord__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  padding-top: 0.25rem;
}

.discord__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 46px;
  padding: 0 1.25rem;
  border: 1px solid rgba(255, 214, 10, 0.75);
  border-radius: var(--r-sm);
  background: var(--yellow);
  color: var(--black);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: 0 10px 26px rgba(255, 214, 10, 0.16);
  transition:
    transform var(--motion-dur-fast) var(--motion-ease-snappy),
    box-shadow var(--motion-dur-fast) var(--motion-ease-snappy),
    filter var(--motion-dur-fast) var(--motion-ease-snappy);
}

.discord__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(255, 214, 10, 0.24);
  filter: brightness(1.03);
}

.discord__cta:active {
  transform: scale(0.97);
  transition-duration: var(--motion-dur-instant);
}

.discord__cta-icon {
  width: 18px;
  height: 18px;
  fill: currentColor;
  flex: none;
}

.discord__cta-arrow {
  width: 15px;
  height: 15px;
  flex: none;
  transition: transform var(--motion-dur-fast) var(--motion-ease-snappy);
}

.discord__cta:hover .discord__cta-arrow {
  transform: translate(2px, -2px);
}

/* ---------- Footer ---------- */

.footer {
  padding: 1.25rem 0 max(1.5rem, env(safe-area-inset-bottom));
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--black);
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem 1.5rem;
  min-height: 44px;
  font-size: 0.8125rem;
  color: var(--muted);
}

.footer__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink);
  transition: color var(--motion-dur-fast) var(--motion-ease-snappy);
}

.footer__link:hover {
  color: var(--yellow);
}

.noscript {
  position: fixed;
  left: 50%;
  bottom: 1rem;
  transform: translateX(-50%);
  padding: 0.75rem 1rem;
  border: 1px solid var(--hairline-bright);
  border-radius: var(--r-sm);
  background: var(--navy);
  font-size: 0.8125rem;
}

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

@media (max-width: 920px) {
  .nav__bar {
    gap: 0.5rem;
    padding: 0 0.75rem;
  }

  .nav__links {
    gap: 0.16rem;
    padding: 0.18rem;
  }

  .nav__tab {
    padding: 0 0.65rem;
    font-size: 0.75rem;
  }

  .nav__tab--discord {
    padding: 0 0.65rem;
    gap: 0.28rem;
  }

  [data-sys-status] {
    display: none;
  }

  .nav__status {
    padding: 0.35rem;
  }
}

@media (max-width: 900px) {
  .linktree__grid,
  .discord__layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .discord__visual {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
}

@media (max-width: 640px) {
  :root {
    --nav-h: 3.75rem;
  }

  .nav {
    padding-inline: var(--gutter);
  }

  .nav__bar {
    gap: 0.35rem;
    padding: 0 0.5rem;
  }

  .nav__actions {
    gap: 0.35rem;
  }

  .brand {
    font-size: 0.78rem;
    gap: 0.22rem;
  }

  .brand__avatar {
    width: 24px;
    height: 24px;
    margin-right: 0.05rem;
  }

  .brand__cursor {
    display: none;
  }

  .nav__links {
    gap: 0.12rem;
    padding: 0.16rem;
  }

  .nav__tab {
    min-height: 44px;
    padding: 0 0.5rem;
    font-size: 0.72rem;
    gap: 0.22rem;
  }

  .nav__tab--discord {
    min-height: 44px;
    padding: 0 0.52rem;
    gap: 0.22rem;
  }

  .nav__status {
    padding: 0.35rem;
    gap: 0;
  }

  [data-sys-status] {
    display: none;
  }

  .hero {
    padding-top: calc(var(--nav-h) + 1.5rem);
  }

  .hero__highlight {
    padding: 0.35rem 0;
    gap: 0.45rem;
  }

  .hero__highlight::before {
    inset: -4.5rem -3.5rem;
    filter: blur(32px);
  }

  .text-navy-mark {
    padding: 0;
  }

  .about,
  .linktree,
  .discord {
    padding: clamp(3rem, 7vw, 4rem) 0;
  }

  .linktree-card {
    padding: 1.15rem;
  }

  .bio__body,
  .discord__visual,
  .discord__body {
    padding: 1.25rem;
  }
}

@media (pointer: coarse) {
  .nav__tab,
  .nav__tab--discord {
    min-height: 44px;
  }
}

@media (max-width: 460px) {
  .brand__name,
  .brand__cursor {
    display: none;
  }

  .nav__bar {
    gap: 0.25rem;
    padding: 0 0.4rem;
  }

  .nav__links {
    gap: 0.06rem;
    padding: 0.14rem;
  }

  .nav__tab {
    padding: 0 0.34rem;
    font-size: 0.6875rem;
  }

  .nav__tab--discord {
    padding: 0 0.42rem;
    gap: 0.18rem;
    font-size: 0.6875rem;
  }

  .nav__actions {
    gap: 0.25rem;
  }

  .nav__status {
    padding: 0.28rem;
  }

  .pane__meta {
    display: none;
  }
}

  .backdrop__grid {
    animation: enter-fade var(--motion-dur-crawl) var(--motion-ease-smooth) both;
  }

  .backdrop__glow {
    animation:
      enter-glow var(--motion-dur-crawl) var(--motion-ease-smooth) both,
      ambient-glow 10s var(--motion-ease-ambient) var(--motion-dur-crawl) infinite alternate;
  }

  .nav__bar {
    animation: enter-down var(--motion-dur-slow) var(--motion-ease-smooth) 80ms both;
  }

  .avatar {
    animation: enter-avatar var(--motion-dur-slow) var(--motion-ease-smooth) 160ms both;
  }

  .hero__highlight .prompt {
    animation: enter-up var(--motion-dur-slow) var(--motion-ease-smooth) 260ms both;
  }

  .hero__highlight .hero__title {
    animation: enter-up var(--motion-dur-slow) var(--motion-ease-smooth) 370ms both;
  }

  .hero__highlight .hero__label {
    animation: enter-up var(--motion-dur-slow) var(--motion-ease-smooth) 480ms both;
  }

  .counter {
    animation: enter-side var(--motion-dur-hero) var(--motion-ease-smooth) 540ms both;
  }

  .counter .digit {
    animation: enter-digit var(--motion-dur-slow) var(--motion-ease-smooth) backwards;
  }

  .counter .flip__group:first-child .digit:nth-child(1) { animation-delay: 600ms; }
  .counter .flip__group:first-child .digit:nth-child(2) { animation-delay: 650ms; }
  .counter .flip__group:first-child .digit:nth-child(3) { animation-delay: 700ms; }
  .counter .flip__group:last-child .digit:nth-child(1) { animation-delay: 750ms; }
  .counter .flip__group:last-child .digit:nth-child(2) { animation-delay: 800ms; }
  .counter .flip__group:last-child .digit:nth-child(3) { animation-delay: 850ms; }

  @keyframes enter-fade {
    from {
      opacity: 0;
    }
    to {
      opacity: 1;
    }
  }

  @keyframes enter-glow {
    from {
      opacity: 0;
      transform: translate(-50%, -50%) scale(0.86);
    }
    to {
      opacity: 1;
      transform: translate(-50%, -50%) scale(1);
    }
  }

  @keyframes ambient-glow {
    from {
      opacity: 1;
      transform: translate(-50%, -50%) scale(1);
    }
    to {
      opacity: 0.86;
      transform: translate(-50%, -50%) scale(1.045);
    }
  }

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

  @keyframes enter-avatar {
    from {
      opacity: 0;
      transform: scale(0.86) translateY(14px);
    }
    to {
      opacity: 1;
      transform: scale(1) translateY(0);
    }
  }

  @keyframes enter-up {
    from {
      opacity: 0;
      transform: translateY(22px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  @keyframes enter-side {
    from {
      opacity: 0;
      transform: translateX(-72px) scale(0.96);
    }
    to {
      opacity: 1;
      transform: translateX(0) scale(1);
    }
  }

  @keyframes enter-digit {
    from {
      opacity: 0;
      transform: translateX(-24px);
    }
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }

  /* Scroll reveals: primary cards + secondary internal choreography */
  [data-reveal] {
    opacity: 0;
    transform: translateY(28px);
    transition:
      opacity var(--motion-dur-slow) var(--motion-ease-smooth) var(--reveal-delay, 0ms),
      transform var(--motion-dur-slow) var(--motion-ease-smooth) var(--reveal-delay, 0ms);
  }

  .bio-card[data-reveal],
  .discord-card[data-reveal] {
    transform: translateY(28px) scale(0.985);
  }

  [data-reveal].is-revealed {
    opacity: 1;
    transform: none;
  }

  :where(.bio-card[data-reveal]) .bio__sidebar,
  :where(.bio-card[data-reveal]) .bio__body,
  :where(.bio-card[data-reveal]) .bio__spec,
  :where(.discord-card[data-reveal]) .discord__visual,
  :where(.discord-card[data-reveal]) .discord__body,
  :where(.linktree__grid[data-reveal]) .linktree-card {
    opacity: 0;
    transition:
      opacity var(--motion-dur-slow) var(--motion-ease-smooth) var(--reveal-delay, 0ms),
      transform var(--motion-dur-slow) var(--motion-ease-smooth) var(--reveal-delay, 0ms);
  }

  :where(.bio-card[data-reveal]) .bio__sidebar,
  :where(.bio-card[data-reveal]) .bio__body,
  :where(.discord-card[data-reveal]) .discord__visual,
  :where(.discord-card[data-reveal]) .discord__body {
    transform: translateY(18px);
  }

  :where(.bio-card[data-reveal]) .bio__spec,
  :where(.linktree__grid[data-reveal]) .linktree-card {
    transform: translateX(-28px);
  }

  :where(.bio-card[data-reveal].is-revealed) .bio__sidebar,
  :where(.bio-card[data-reveal].is-revealed) .bio__body,
  :where(.bio-card[data-reveal].is-revealed) .bio__spec,
  :where(.discord-card[data-reveal].is-revealed) .discord__visual,
  :where(.discord-card[data-reveal].is-revealed) .discord__body,
  :where(.linktree__grid[data-reveal].is-revealed) .linktree-card {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }

  /* Tactile micro-interactions */
  .brand {
    transition:
      transform var(--motion-dur-fast) var(--motion-ease-snappy),
      opacity var(--motion-dur-fast) var(--motion-ease-snappy);
  }

  .brand:hover {
    transform: translateY(-1px);
    opacity: 0.9;
  }

  :where(.bio-card[data-reveal].is-revealed) .bio__spec:hover {
    transition: transform var(--motion-dur-fast) var(--motion-ease-snappy);
  }

  .bio__spec dt {
    transition: color var(--motion-dur-fast) var(--motion-ease-snappy);
  }

  .bio__spec:hover {
    transform: translateX(2px);
  }

  .bio__spec:hover dt {
    color: var(--yellow);
  }

  :where(.linktree__grid[data-reveal].is-revealed.is-settled) .linktree-card,
  :where(.bio-card[data-reveal].is-revealed.is-settled) .bio__spec,
  :where(.linktree__grid[data-reveal].is-revealed) .linktree-card:hover,
  :where(.linktree__grid[data-reveal].is-revealed) .linktree-card:active {
    transition:
      transform var(--motion-dur-fast) var(--motion-ease-snappy),
      border-color var(--motion-dur-fast) var(--motion-ease-snappy),
      box-shadow var(--motion-dur-fast) var(--motion-ease-snappy),
      background var(--motion-dur-fast) var(--motion-ease-snappy);
  }

  .linktree-card:hover .linktree__icon-box {
    transform: scale(1.06);
  }

  .linktree__icon-box {
    transition:
      transform var(--motion-dur-fast) var(--motion-ease-snappy),
      border-color var(--motion-dur-fast) var(--motion-ease-snappy),
      box-shadow var(--motion-dur-fast) var(--motion-ease-snappy);
  }

  /* ---------- Accessibility preferences ---------- */

@media (prefers-reduced-motion: reduce) {
  .backdrop__grid,
  .backdrop__glow,
  .backdrop__spotlight,
  .backdrop__spotlight::after,
  .nav__bar,
  .avatar,
  .hero__highlight .prompt,
  .hero__highlight .hero__title,
  .hero__highlight .hero__label,
  .counter,
  .counter .digit,
  .flip--compact,
  .flip--compact .digit {
    animation: none !important;
  }

  [data-reveal],
  :where(.bio-card[data-reveal]) .bio__sidebar,
  :where(.bio-card[data-reveal]) .bio__body,
  :where(.bio-card[data-reveal]) .bio__spec,
  :where(.discord-card[data-reveal]) .discord__visual,
  :where(.discord-card[data-reveal]) .discord__body,
  :where(.linktree__grid[data-reveal]) .linktree-card {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  html {
    scroll-behavior: auto;
  }

  .brand__cursor,
  .prompt__caret,
  .status-dot.is-online::after,
  .nav__tab-arrow,
  .pane__arrow,
  main > section + section::after,
  .discord__online-dot::after {
    animation: none;
  }

  .counter.is-bumped::before {
    animation: none;
  }

  .brand,
  .brand:hover,
  .bio__spec,
  .bio__spec:hover,
  .linktree-card,
  .linktree-card:hover,
  .linktree-card:active {
    transform: none;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .nav__bar,
  .bio-card,
  .discord-card,
  .linktree-card {
    background: var(--navy);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

@media (prefers-contrast: more) {
  :root {
    --muted: #b9c0cf;
    --hairline: #3a4566;
    --hairline-bright: #6b7699;
  }

  .nav__bar,
  .bio-card,
  .discord-card,
  .linktree-card {
    background: var(--navy);
  }
}

@media (forced-colors: active) {
  .digit__half,
  .digit__flap,
  .bio-card,
  .discord-card,
  .linktree-card,
  .nav__bar {
    border: 1px solid CanvasText;
  }
}
