:root {
  color-scheme: dark;
  --bg: #06100b;
  --bg-soft: #0d1e15;
  --panel: rgba(13, 39, 26, 0.58);
  --panel-strong: rgba(15, 56, 36, 0.72);
  --line: rgba(175, 255, 117, 0.24);
  --text: #effff3;
  --muted: #bdd5c4;
  --lime: #b8ff45;
  --green: #45f178;
  --mint: #8fffd0;
  --cyan: #4bd7ff;
  --amber: #f7d86a;
  --rose: #ff6685;
  --shadow: rgba(0, 0, 0, 0.42);
  --radius: 8px;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 12% 18%, rgba(69, 241, 120, 0.14), transparent 26rem),
    linear-gradient(135deg, #040907 0%, #092013 48%, #050b09 100%);
  color: var(--text);
  letter-spacing: 0;
  overflow-x: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(184, 255, 69, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(143, 255, 208, 0.04) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent 82%);
  animation: grid-drift 16s linear infinite;
}

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

button {
  font: inherit;
}

.ambient-canvas {
  position: fixed;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.site-header {
  position: fixed;
  top: 18px;
  left: 50%;
  z-index: 10;
  display: flex;
  width: min(1120px, calc(100% - 32px));
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border: 1px solid rgba(184, 255, 69, 0.22);
  border-radius: var(--radius);
  background: rgba(6, 18, 12, 0.64);
  box-shadow: 0 18px 50px var(--shadow);
  backdrop-filter: blur(20px);
  transform: translateX(-50%);
}

.brand,
.main-nav {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  padding: 8px 10px;
  color: #f5fff7;
  font-weight: 800;
}

.brand-mark {
  width: 16px;
  height: 16px;
  border: 2px solid var(--lime);
  border-radius: 4px;
  box-shadow: 0 0 24px rgba(184, 255, 69, 0.75);
  animation: mark-pulse 2.8s ease-in-out infinite;
}

.main-nav {
  gap: 4px;
}

.main-nav a {
  min-height: 38px;
  padding: 10px 14px;
  border-radius: 7px;
  color: var(--muted);
  transition:
    color 180ms ease,
    background 180ms ease,
    transform 180ms ease;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--text);
  background: rgba(184, 255, 69, 0.11);
  transform: translateY(-1px);
  outline: none;
}

.hero {
  position: relative;
  display: grid;
  min-height: 82vh;
  align-items: end;
  padding: 132px 24px 54px;
  overflow: hidden;
}

.hero-media,
.hero-shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-media {
  z-index: -2;
  background-image: url("assets/hero-green-tech.png");
  background-position: center;
  background-size: cover;
  opacity: 0.62;
  transform: scale(1.04);
  animation: hero-breathe 12s ease-in-out infinite alternate;
}

.hero-shade {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(4, 12, 8, 0.94), rgba(4, 13, 9, 0.46) 48%, rgba(4, 10, 8, 0.88)),
    linear-gradient(180deg, rgba(6, 16, 11, 0.62) 0%, rgba(6, 16, 11, 0.18) 45%, var(--bg) 100%);
}

.hero-content,
.signal-panel,
.section-heading,
.projects-shell,
.discord-window,
.contact-window {
  width: min(1120px, 100%);
  margin-inline: auto;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding-bottom: 36px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--mint);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.4;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 780px;
  margin-bottom: 20px;
  font-size: 4.65rem;
  line-height: 0.98;
  text-wrap: balance;
  text-shadow: 0 24px 68px rgba(0, 0, 0, 0.66);
}

h2 {
  margin-bottom: 0;
  font-size: 2.3rem;
  line-height: 1.08;
}

h3 {
  margin-bottom: 14px;
  font-size: 1.9rem;
  line-height: 1.12;
}

.hero-lead {
  max-width: 640px;
  margin-bottom: 30px;
  color: #d5ead9;
  font-size: 1.08rem;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.primary-action,
.ghost-action {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 13px 18px;
  border-radius: 7px;
  font-weight: 800;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.primary-action {
  border: 1px solid rgba(184, 255, 69, 0.84);
  background: linear-gradient(135deg, var(--lime), var(--green));
  color: #071007;
  box-shadow: 0 18px 48px rgba(69, 241, 120, 0.28);
}

.ghost-action {
  border: 1px solid rgba(143, 255, 208, 0.3);
  background: rgba(9, 27, 17, 0.58);
  color: var(--text);
  backdrop-filter: blur(14px);
}

.primary-action:hover,
.ghost-action:hover,
.primary-action:focus-visible,
.ghost-action:focus-visible {
  transform: translateY(-2px);
  outline: none;
}

.primary-action:hover,
.primary-action:focus-visible {
  box-shadow: 0 22px 62px rgba(69, 241, 120, 0.4);
}

.ghost-action:hover,
.ghost-action:focus-visible {
  border-color: rgba(184, 255, 69, 0.52);
  background: rgba(18, 62, 38, 0.62);
}

.signal-panel {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  border: 1px solid rgba(184, 255, 69, 0.2);
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(7, 20, 13, 0.54);
  box-shadow: 0 22px 70px var(--shadow);
  backdrop-filter: blur(18px);
}

.signal-line {
  position: absolute;
  top: 0;
  left: -40%;
  width: 40%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--lime), transparent);
  animation: signal-sweep 4.8s linear infinite;
}

.signal-panel article {
  min-height: 112px;
  padding: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
}

.signal-panel span {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.9rem;
}

.signal-panel strong {
  color: var(--lime);
  font-size: 2.45rem;
  line-height: 1;
  text-shadow: 0 0 30px rgba(184, 255, 69, 0.42);
}

.projects-section {
  padding: 82px 24px 42px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}

.projects-shell {
  position: relative;
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 18px;
}

.projects-shell::before {
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: var(--radius);
  content: "";
  background: linear-gradient(135deg, rgba(184, 255, 69, 0.32), rgba(75, 215, 255, 0.12), rgba(247, 216, 106, 0.18));
  filter: blur(18px);
  opacity: 0.48;
  animation: panel-glow 6s ease-in-out infinite alternate;
}

.tab-list,
.panel-stack,
.discord-window,
.contact-window {
  border: 1px solid rgba(184, 255, 69, 0.18);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(22px);
}

.discord-section {
  padding: 82px 24px 42px;
}

.discord-window {
  position: relative;
  padding: 18px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(88, 101, 242, 0.16), rgba(69, 241, 120, 0.1)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent),
    var(--panel);
}

.discord-window::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(rgba(184, 255, 69, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(143, 255, 208, 0.04) 1px, transparent 1px);
  background-size: 42px 42px;
  opacity: 0.62;
}

.discord-window > * {
  position: relative;
  z-index: 1;
}

.discord-dashboard {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(300px, 0.82fr);
  gap: 16px;
}

.discord-profile-card,
.discord-status-board,
.activity-panel {
  border: 1px solid rgba(143, 255, 208, 0.16);
  border-radius: var(--radius);
  background: rgba(5, 16, 11, 0.46);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.discord-profile-card {
  padding: 18px;
}

.discord-profile-top {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
}

.discord-avatar-wrap {
  position: relative;
  width: 74px;
  height: 74px;
}

.discord-avatar {
  display: grid;
  width: 74px;
  height: 74px;
  place-items: center;
  border: 1px solid rgba(184, 255, 69, 0.28);
  border-radius: var(--radius);
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(184, 255, 69, 0.24), rgba(75, 215, 255, 0.12)),
    rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 36px rgba(184, 255, 69, 0.18);
}

.discord-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.discord-avatar span {
  font-size: 1.25rem;
  font-weight: 900;
}

.discord-live-dot {
  position: absolute;
  right: -3px;
  bottom: -3px;
  width: 18px;
  height: 18px;
  border: 3px solid #071007;
  border-radius: 999px;
  background: #8da497;
  box-shadow: 0 0 18px currentColor;
}

.discord-live-dot.is-online {
  background: var(--green);
  color: var(--green);
}

.discord-live-dot.is-idle {
  background: var(--amber);
  color: var(--amber);
}

.discord-live-dot.is-dnd {
  background: var(--rose);
  color: var(--rose);
}

.discord-live-dot.is-offline,
.discord-live-dot.is-unknown {
  background: #8da497;
  color: #8da497;
}

.discord-profile-copy h3 {
  margin-bottom: 6px;
  font-size: 1.55rem;
}

.discord-subtitle {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.55;
}

.discord-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 11px;
}

.discord-badges span {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 6px 8px;
  border: 1px solid rgba(184, 255, 69, 0.2);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.055);
  color: #dcffe8;
  font-size: 0.78rem;
  font-weight: 800;
}

.discord-pill {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 9px 12px;
  border: 1px solid rgba(143, 255, 208, 0.2);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
  white-space: nowrap;
}

.discord-pill.is-online {
  border-color: rgba(69, 241, 120, 0.44);
  color: var(--green);
}

.discord-pill.is-idle {
  border-color: rgba(247, 216, 106, 0.44);
  color: var(--amber);
}

.discord-pill.is-dnd {
  border-color: rgba(255, 102, 133, 0.44);
  color: var(--rose);
}

.discord-pill.is-offline,
.discord-pill.is-unknown {
  border-color: rgba(189, 213, 196, 0.22);
  color: rgba(239, 255, 243, 0.68);
}

.command-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: end;
  margin-top: 18px;
  padding: 16px;
  border: 1px solid rgba(184, 255, 69, 0.18);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(184, 255, 69, 0.1), rgba(75, 215, 255, 0.06)),
    rgba(255, 255, 255, 0.04);
}

.command-card.is-active {
  border-color: rgba(184, 255, 69, 0.42);
  box-shadow: 0 16px 46px rgba(69, 241, 120, 0.12);
}

.command-card h3 {
  margin-bottom: 8px;
  font-size: 1.45rem;
}

.command-card p:last-child {
  max-width: 520px;
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.55;
}

.command-timer {
  display: grid;
  min-width: 148px;
  justify-items: end;
  gap: 4px;
}

.command-timer span,
.command-timer small {
  color: var(--muted);
  font-size: 0.8rem;
}

.command-timer strong {
  color: var(--lime);
  font-size: 2rem;
  line-height: 1;
  text-shadow: 0 0 28px rgba(184, 255, 69, 0.36);
}

.discord-status-board {
  padding: 18px;
}

.discord-status-track {
  display: grid;
  gap: 10px;
}

.discord-status-chip {
  display: flex;
  min-height: 64px;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border: 1px solid rgba(143, 255, 208, 0.14);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.04);
  transition:
    border-color 180ms ease,
    background 180ms ease,
    transform 180ms ease;
}

.discord-status-chip.is-current {
  border-color: rgba(184, 255, 69, 0.44);
  background: rgba(184, 255, 69, 0.1);
  transform: translateX(2px);
}

.discord-dot {
  width: 11px;
  height: 11px;
  flex: 0 0 11px;
  border-radius: 999px;
  box-shadow: 0 0 18px currentColor;
}

.status-online {
  background: var(--green);
  color: var(--green);
}

.status-idle {
  background: var(--amber);
  color: var(--amber);
}

.status-dnd {
  background: var(--rose);
  color: var(--rose);
}

.status-offline {
  background: #8da497;
  color: #8da497;
}

.discord-status-chip strong,
.discord-status-chip small {
  display: block;
}

.discord-status-chip strong {
  margin-bottom: 4px;
}

.discord-status-chip small {
  color: var(--muted);
  line-height: 1.35;
}

.activity-panel {
  min-height: 160px;
  margin-top: 16px;
  padding: 18px;
}

.activity-heading {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 16px;
  color: var(--muted);
  font-weight: 800;
}

.activity-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.activity-item {
  min-height: 92px;
  padding: 13px;
  border: 1px solid rgba(184, 255, 69, 0.16);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.045);
}

.activity-item strong,
.activity-item span {
  display: block;
}

.activity-item strong {
  margin-bottom: 4px;
  color: #f5fff7;
}

.activity-item span {
  color: var(--muted);
  line-height: 1.45;
}

.empty-state {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.tab-list {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 12px;
}

.tab-button {
  position: relative;
  min-height: 52px;
  padding: 14px 15px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  overflow: hidden;
  text-align: left;
  transition:
    color 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    transform 180ms ease;
}

.tab-button::after {
  position: absolute;
  inset: auto auto 0 0;
  width: 0;
  height: 2px;
  content: "";
  background: linear-gradient(90deg, var(--lime), var(--cyan));
  transition: width 220ms ease;
}

.tab-button:hover,
.tab-button:focus-visible,
.tab-button.is-active {
  color: var(--text);
  border-color: rgba(184, 255, 69, 0.24);
  background: rgba(184, 255, 69, 0.1);
  outline: none;
}

.tab-button:hover,
.tab-button:focus-visible {
  transform: translateX(2px);
}

.tab-button.is-active::after {
  width: 100%;
}

.panel-stack {
  min-height: 340px;
  padding: 18px;
}

.project-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  animation: panel-enter 420ms ease both;
}

.project-panel[hidden] {
  display: none;
}

.project-card {
  position: relative;
  min-height: 300px;
  padding: 24px;
  border: 1px solid rgba(184, 255, 69, 0.2);
  border-radius: var(--radius);
  overflow: hidden;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    rgba(8, 25, 16, 0.62);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition:
    transform 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease;
}

.project-card::before {
  position: absolute;
  inset: -80px auto auto -80px;
  width: 190px;
  height: 190px;
  content: "";
  background: conic-gradient(from 120deg, transparent, rgba(184, 255, 69, 0.2), transparent);
  filter: blur(14px);
  opacity: 0.9;
  animation: card-light 6s linear infinite;
}

.project-card::after {
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: 90px;
  height: 90px;
  border-right: 1px solid rgba(143, 255, 208, 0.36);
  border-bottom: 1px solid rgba(143, 255, 208, 0.36);
  content: "";
  opacity: 0.7;
}

.project-card:hover {
  border-color: rgba(184, 255, 69, 0.46);
  box-shadow:
    0 18px 60px rgba(69, 241, 120, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transform: translateY(-4px);
}

.project-card > * {
  position: relative;
  z-index: 1;
}

.card-topline {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 42px;
  padding: 8px 10px;
  border: 1px solid rgba(184, 255, 69, 0.17);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  font-size: 0.86rem;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  box-shadow: 0 0 20px currentColor;
}

.status-past {
  background: var(--amber);
  color: var(--amber);
}

.status-active {
  background: var(--green);
  color: var(--green);
  animation: active-dot 1.8s ease-in-out infinite;
}

.status-future {
  background: var(--cyan);
  color: var(--cyan);
}

.status-worst {
  background: var(--rose);
  color: var(--rose);
}

.project-card p {
  max-width: 360px;
  margin-bottom: 34px;
  color: #d8eadb;
  font-size: 1.04rem;
  line-height: 1.6;
}

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

.tag-row span {
  padding: 7px 9px;
  border: 1px solid rgba(143, 255, 208, 0.2);
  border-radius: 7px;
  background: rgba(5, 16, 11, 0.42);
  color: #dcffe8;
  font-size: 0.82rem;
}

.project-card-future {
  border-color: rgba(75, 215, 255, 0.24);
}

.project-card-worst {
  border-color: rgba(255, 102, 133, 0.26);
}

.project-card-worst::before {
  background: conic-gradient(from 120deg, transparent, rgba(255, 102, 133, 0.18), transparent);
}

.contacts-section {
  padding: 42px 24px 84px;
}

.contact-window {
  display: grid;
  grid-template-columns: 0.58fr 1fr;
  gap: 28px;
  align-items: center;
  padding: 28px;
  background:
    linear-gradient(135deg, rgba(69, 241, 120, 0.14), rgba(75, 215, 255, 0.08)),
    var(--panel-strong);
}

.contact-window h2 {
  margin-bottom: 0;
}

.social-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.social-link {
  position: relative;
  display: flex;
  min-height: 86px;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(143, 255, 208, 0.22);
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(5, 16, 11, 0.46);
  color: #effff3;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

.social-link::before {
  position: absolute;
  inset: -80px -40px auto auto;
  width: 150px;
  height: 150px;
  border-radius: 999px;
  content: "";
  background: rgba(184, 255, 69, 0.12);
  filter: blur(10px);
  opacity: 0.9;
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.social-link:hover,
.social-link:focus-visible {
  border-color: rgba(184, 255, 69, 0.48);
  background: rgba(15, 56, 36, 0.68);
  box-shadow: 0 18px 48px rgba(69, 241, 120, 0.16);
  transform: translateY(-3px);
  outline: none;
}

.social-link:hover::before,
.social-link:focus-visible::before {
  opacity: 1;
  transform: scale(1.12);
}

.social-icon,
.social-link span:last-child {
  position: relative;
  z-index: 1;
}

.social-icon {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  place-items: center;
  border: 1px solid rgba(239, 255, 243, 0.22);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.08);
  font-weight: 900;
}

.social-link strong,
.social-link small {
  display: block;
}

.social-link strong {
  margin-bottom: 4px;
  font-size: 1rem;
}

.social-link small {
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.35;
}

.social-discord .social-icon {
  color: #cfd5ff;
}

.social-spotify .social-icon {
  color: var(--lime);
}

.social-telegram .social-icon {
  color: #9edfff;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(184, 255, 69, 0.18);
  color: rgba(239, 255, 243, 0.62);
  font-size: 0.9rem;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 700ms ease,
    transform 700ms ease;
}

@keyframes grid-drift {
  from {
    background-position: 0 0;
  }
  to {
    background-position: 72px 72px;
  }
}

@keyframes hero-breathe {
  from {
    transform: scale(1.04) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.09) translate3d(-12px, 8px, 0);
  }
}

@keyframes mark-pulse {
  0%,
  100% {
    transform: rotate(0deg) scale(1);
  }
  50% {
    transform: rotate(45deg) scale(0.88);
  }
}

@keyframes signal-sweep {
  to {
    left: 100%;
  }
}

@keyframes panel-glow {
  from {
    opacity: 0.32;
  }
  to {
    opacity: 0.62;
  }
}

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

@keyframes card-light {
  to {
    transform: rotate(360deg);
  }
}

@keyframes active-dot {
  0%,
  100% {
    box-shadow: 0 0 10px rgba(69, 241, 120, 0.6);
  }
  50% {
    box-shadow: 0 0 26px rgba(69, 241, 120, 1);
  }
}

@media (max-width: 820px) {
  .site-header {
    top: 10px;
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
  }

  .main-nav {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
  }

  .main-nav a {
    padding: 9px 8px;
    text-align: center;
  }

  .hero {
    min-height: 88vh;
    padding-top: 176px;
  }

  h1 {
    font-size: 3.05rem;
  }

  h2 {
    font-size: 1.8rem;
  }

  .signal-panel,
  .projects-shell,
  .discord-dashboard,
  .contact-window {
    grid-template-columns: 1fr;
  }

  .projects-section {
    padding-top: 62px;
  }

  .tab-list {
    grid-template-columns: repeat(4, 1fr);
  }

  .tab-button {
    min-height: 48px;
    padding: 12px 10px;
    text-align: center;
  }

  .project-panel {
    grid-template-columns: 1fr;
  }

  .social-links {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .site-header {
    width: calc(100% - 20px);
  }

  .hero,
  .discord-section,
  .projects-section,
  .contacts-section {
    padding-inline: 14px;
  }

  .hero {
    min-height: 90vh;
    padding-bottom: 34px;
  }

  h1 {
    font-size: 2.38rem;
  }

  .hero-lead {
    font-size: 1rem;
  }

  .hero-actions {
    display: grid;
  }

  .signal-panel article,
  .project-card,
  .discord-window,
  .discord-profile-card,
  .discord-status-board,
  .activity-panel,
  .contact-window {
    padding: 18px;
  }

  .discord-profile-top,
  .command-card {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .command-timer {
    justify-items: start;
  }

  .activity-list {
    grid-template-columns: 1fr;
  }

  .tab-list {
    grid-template-columns: 1fr;
  }

  .site-footer {
    flex-direction: column;
    width: calc(100% - 28px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }
}
