:root {
  color-scheme: dark;
  --bg: #050506;
  --panel: rgba(13, 13, 15, 0.84);
  --panel-solid: #111113;
  --line: rgba(255, 255, 255, 0.16);
  --text: #f7f7f8;
  --soft: #c9c9d1;
  --muted: #8e8e8e;
  --neon: #f5f5f5;
  --silver: #bdbdbd;
  --dark-glass: rgba(8, 8, 8, 0.72);
  --white-glow: 0 0 18px rgba(255, 255, 255, 0.24), 0 0 42px rgba(255, 255, 255, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

[id] {
  scroll-margin-top: 170px;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 35%),
    linear-gradient(225deg, rgba(180, 180, 180, 0.08), transparent 34%),
    linear-gradient(180deg, #030303 0%, #050505 48%, #0b0b0b 100%);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  background: url("assets/cemx-wallpaper.png") center / cover;
  filter: grayscale(1) brightness(0.50) contrast(1.22);
  transform: translateY(var(--scroll-y, 0)) scale(1.04);
  transition: transform 80ms linear;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0.86)),
    linear-gradient(180deg, rgba(0, 0, 0, 0.22), #050505 98%);
}

.preloader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  place-items: center;
  background: #030303;
  transition: opacity 700ms ease, visibility 700ms ease, transform 900ms cubic-bezier(0.16, 1, 0.3, 1);
}

.js .preloader {
  display: grid;
}

.preloader span {
  position: absolute;
  top: calc(50% - 86px);
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.preloader strong {
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.62);
  font-size: 118px;
  font-weight: 900;
  letter-spacing: 0;
  animation: loaderPulse 1200ms ease-in-out infinite alternate;
}

.preloader.is-hidden {
  opacity: 0;
  visibility: hidden;
  transform: scale(1.08);
}

a,
button {
  color: inherit;
  font: inherit;
}

a {
  text-decoration: none;
}

button {
  border: 0;
  cursor: pointer;
}

img,
svg {
  max-width: 100%;
}

[hidden] {
  display: none !important;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.32;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 54px 54px;
  -webkit-mask-image: linear-gradient(to bottom, black, transparent 86%);
  mask-image: linear-gradient(to bottom, black, transparent 86%);
}

.cursor-light {
  position: fixed;
  width: 420px;
  height: 420px;
  left: 0;
  top: 0;
  z-index: -2;
  pointer-events: none;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.18), transparent 68%);
  transform: translate(-50%, -50%);
  transition: opacity 180ms ease;
}

.scroll-meter {
  position: fixed;
  left: 0;
  top: 0;
  width: 0;
  height: 2px;
  z-index: 50;
  background: linear-gradient(90deg, #fff, #8c8c8c);
  box-shadow: var(--white-glow);
}

.site-header {
  width: min(1240px, calc(100% - 32px));
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 18px auto 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(4, 4, 4, 0.78);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  position: sticky;
  top: 12px;
  z-index: 20;
}

.logo,
.site-header nav {
  display: flex;
  align-items: center;
}

.logo {
  gap: 11px;
  font-weight: 900;
}

.logo span,
.cell-code {
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--line);
}

.logo span {
  width: 46px;
  height: 46px;
  overflow: hidden;
  background: #111;
}

.logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.18) brightness(0.92);
  transform: scale(1.5);
}

.site-header nav {
  gap: 6px;
}

.site-header a,
.nav-auth {
  display: inline-flex;
  align-items: center;
  padding: 10px 13px;
  border-radius: 8px;
  color: var(--soft);
  background: transparent;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.site-header a:hover,
.nav-auth:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.10);
  transform: translateY(-1px);
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.48);
}

main {
  width: min(1240px, calc(100% - 32px));
  margin: 18px auto 70px;
}

.hero-layout {
  min-height: calc(100vh - 112px);
  display: grid;
  grid-template-columns: minmax(280px, 0.92fr) minmax(320px, 1.08fr);
  gap: 14px;
}

.bio-side,
.social-side,
.projects-section {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(5, 5, 5, 0.58);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 30px 120px rgba(0, 0, 0, 0.42);
}

.bio-side,
.social-side {
  min-height: 680px;
  padding: 22px;
}

.bio-side {
  display: flex;
  align-items: stretch;
}

.discord-card {
  width: 100%;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(5, 5, 5, 0.9);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.56), var(--white-glow);
}

.profile-banner {
  height: 142px;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.08), rgba(255, 255, 255, 0.05)),
    url("assets/profile-banner.gif") center / cover;
  filter: grayscale(1) brightness(0.86) contrast(1.18);
  position: relative;
}

.profile-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.42));
}

.profile-body {
  padding: 0 18px 18px;
}

.avatar-wrap {
  width: 96px;
  height: 96px;
  position: relative;
  margin-top: -48px;
  border: 7px solid #08080a;
  border-radius: 50%;
  background: #08080a;
}

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

.status-dot {
  width: 24px;
  height: 24px;
  position: absolute;
  right: 3px;
  bottom: 4px;
  border: 5px solid #08080a;
  border-radius: 50%;
  background: var(--muted);
}

.status-dot.online {
  background: #f4f4f4;
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.85);
}

.status-dot.idle {
  background: #cfcfcf;
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.55);
}

.status-dot.dnd {
  background: #9d9d9d;
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.42);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--neon);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
  text-shadow: 0 0 14px rgba(255, 255, 255, 0.42);
}

.profile-title h1 {
  margin: 0;
  font-size: 48px;
  line-height: 0.95;
  letter-spacing: 0;
  text-shadow: 0 0 22px rgba(255, 255, 255, 0.18);
}

.profile-title span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-weight: 600;
}

.badge-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0;
}

.badge-cloud span,
.dialog-tags span {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.065);
  color: var(--soft);
  font-size: 13px;
  font-weight: 700;
}

.bio-text {
  display: grid;
  gap: 14px;
  color: var(--soft);
  line-height: 1.62;
}

.profile-facts {
  display: grid;
  gap: 0;
  margin-top: 24px;
  border-top: 1px solid var(--line);
}

.profile-facts div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}

.profile-facts span {
  color: var(--muted);
}

.profile-facts strong {
  text-align: right;
}

.social-side {
  display: grid;
  align-content: center;
  gap: 30px;
  overflow: hidden;
  position: relative;
}

.hero-copy h2,
.section-head h2 {
  margin: 0;
  font-size: 52px;
  line-height: 0.95;
  letter-spacing: 0;
  text-shadow: 0 0 24px rgba(255, 255, 255, 0.15);
}

.hero-copy p:last-child,
.section-head span {
  display: block;
  max-width: 680px;
  margin-top: 18px;
  color: var(--soft);
  font-size: 17px;
  line-height: 1.65;
}

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

.honey-cell,
.project-cell {
  aspect-ratio: 1 / 1;
  min-height: 136px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.018)),
    rgba(8, 8, 8, 0.82);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
  transition: transform 220ms ease, border-color 220ms ease, background 220ms ease;
  transform-style: preserve-3d;
  will-change: transform;
}

.honey-cell::before,
.project-cell::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.22), transparent 32%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(140, 140, 140, 0.08)),
    radial-gradient(circle at 25% 20%, rgba(255, 255, 255, 0.14), transparent 46%);
  opacity: 0;
  transition: opacity 220ms ease;
}

.honey-cell::after,
.project-cell::after,
.discord-card::after {
  content: "";
  position: absolute;
  inset: -40%;
  background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, 0.16) 50%, transparent 65%);
  opacity: 0;
  transform: translateX(-35%) rotate(8deg);
  transition: opacity 220ms ease;
  pointer-events: none;
}

.honey-cell:hover::after,
.project-cell:hover::after,
.discord-card:hover::after {
  opacity: 1;
  animation: surfaceSweep 900ms cubic-bezier(0.16, 1, 0.3, 1);
}

.honey-cell > *,
.project-cell > * {
  position: relative;
  z-index: 1;
}

.honey-cell:hover,
.project-cell:hover {
  border-color: rgba(255, 255, 255, 0.58);
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--white-glow);
}

.honey-cell:hover::before,
.project-cell:hover::before {
  opacity: 1;
}

.honey-cell:nth-child(2),
.honey-cell:nth-child(5),
.project-cell:nth-child(2) {
  transform: translateY(26px);
}

.honey-cell:nth-child(2):hover,
.honey-cell:nth-child(5):hover,
.project-cell:nth-child(2):hover {
  transform: translateY(18px) scale(1.02);
}

.cell-code {
  width: 42px;
  height: 42px;
  color: var(--text);
  font-size: 13px;
  font-weight: 900;
}

.social-icon svg {
  width: 21px;
  height: 21px;
  fill: currentColor;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.28));
}

.honey-cell strong,
.project-cell strong {
  font-size: 21px;
  letter-spacing: 0;
}

.honey-cell em,
.project-cell em {
  color: var(--muted);
  font-size: 14px;
  font-style: normal;
  font-weight: 700;
}

.honey-cell .cell-code {
  background: linear-gradient(135deg, #ffffff, #9d9d9d);
  color: #050505;
  box-shadow: var(--white-glow);
}

.projects-section {
  margin-top: 18px;
  padding: 34px;
}

.section-head {
  margin-bottom: 26px;
}

.project-honey {
  display: flex;
  align-items: stretch;
  gap: 12px;
}

.project-cell {
  flex: 1 1 0;
  min-width: 0;
  min-height: 214px;
  max-width: 360px;
  cursor: pointer;
}

.project-cell.is-open {
  flex: 1.55 1 0;
  max-width: 520px;
  aspect-ratio: auto;
  justify-content: flex-start;
  gap: 14px;
  min-height: 330px;
  border-color: rgba(255, 255, 255, 0.7);
  transform: translateY(-8px);
  box-shadow: var(--white-glow);
}

.project-cell.is-open::before {
  opacity: 1;
}

dialog {
  width: min(560px, calc(100% - 30px));
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(7, 7, 7, 0.96);
  color: var(--text);
  box-shadow: 0 30px 120px rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

dialog::backdrop {
  background: rgba(0, 0, 0, 0.68);
  backdrop-filter: blur(6px);
}

.project-dialog,
.auth-dialog {
  padding: 28px;
}

.close-dialog {
  width: 38px;
  height: 38px;
  position: absolute;
  top: 16px;
  right: 16px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-size: 28px;
  line-height: 1;
}

dialog h3 {
  margin: 0 42px 14px 0;
  font-size: 34px;
  line-height: 1.05;
  letter-spacing: 0;
}

dialog p {
  color: var(--soft);
  line-height: 1.65;
}

.dialog-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 22px 0;
}

.dialog-meta div {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.dialog-meta span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
}

.dialog-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.dialog-link {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border-radius: 8px;
  background: linear-gradient(135deg, #ffffff, #9b9b9b);
  color: #050505;
  font-weight: 900;
}

.dialog-link.is-disabled {
  opacity: 0.72;
  cursor: not-allowed;
}

.admin-fab {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  display: none;
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(8, 8, 8, 0.88);
  color: var(--text);
  font-weight: 900;
  box-shadow: var(--white-glow);
}

body.is-admin .admin-fab {
  display: inline-flex;
  align-items: center;
}

.admin-controls,
.admin-inline-add,
.admin-big-add {
  display: none;
}

body.is-admin .admin-controls {
  display: flex;
}

body.is-admin .admin-inline-add,
body.is-admin .admin-big-add {
  display: inline-grid;
}

.card-controls,
.item-controls {
  position: absolute;
  z-index: 8;
  gap: 7px;
}

.card-controls {
  top: 10px;
  right: 10px;
}

.item-controls {
  top: 10px;
  right: 10px;
}

.admin-icon-btn,
.admin-inline-add,
.admin-big-add {
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(7, 7, 7, 0.66);
  color: #f7f7f8;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.08);
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.admin-icon-btn {
  width: 28px;
  height: 28px;
  opacity: 0.72;
}

.admin-icon-btn svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.admin-icon-btn:hover,
.admin-inline-add:hover,
.admin-big-add:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.14);
  opacity: 1;
}

.admin-inline-add {
  width: 38px;
  height: 38px;
  font-size: 21px;
  font-weight: 700;
}

.section-head {
  position: relative;
}

.admin-big-add {
  width: 118px;
  height: 64px;
  position: absolute;
  top: 8px;
  right: 0;
  font-size: 36px;
  font-weight: 300;
}

.admin-dialog {
  width: min(760px, calc(100% - 30px));
}

.admin-tabs,
.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0;
}

.admin-tabs button {
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--soft);
  font-weight: 800;
}

.admin-tabs button.is-active {
  background: rgba(255, 255, 255, 0.92);
  color: #050505;
}

.admin-form {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.admin-field {
  display: grid;
  gap: 7px;
}

.admin-field label {
  color: var(--soft);
  font-size: 13px;
  font-weight: 900;
}

.admin-field input,
.admin-field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
  font: inherit;
}

.admin-field input {
  height: 44px;
  padding: 0 12px;
}

.admin-field textarea {
  min-height: 96px;
  resize: vertical;
  padding: 12px;
  line-height: 1.55;
}

.admin-help {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.admin-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.project-details {
  display: grid;
  grid-template-rows: 0fr;
  gap: 0;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transform: translateY(8px);
  transition: max-height 260ms ease, opacity 220ms ease, transform 220ms ease, gap 220ms ease;
}

.project-cell.is-open .project-details {
  grid-template-rows: 1fr;
  gap: 12px;
  opacity: 1;
  max-height: 260px;
  transform: translateY(0);
}

.project-details p {
  margin: 0;
  color: var(--soft);
  font-size: 14px;
  line-height: 1.55;
}

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

.project-dates span,
.mini-tags span {
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--soft);
  font-size: 12px;
  font-weight: 800;
}

.mini-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.project-details a {
  width: fit-content;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 8px;
  background: linear-gradient(135deg, #ffffff, #9b9b9b);
  color: #050505;
  font-size: 13px;
  font-weight: 900;
}

.auth-dialog label {
  display: block;
  margin: 20px 0 8px;
  color: var(--soft);
  font-weight: 800;
}

.auth-dialog input {
  width: 100%;
  height: 48px;
  margin-bottom: 14px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
  font: inherit;
}

.auth-result {
  display: block;
  min-height: 24px;
  margin-top: 14px;
}

.kinetic-title {
  overflow: hidden;
}

.kinetic-title .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(1.1em) rotate(2deg);
  animation: wordRise 800ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.kinetic-title .word + .word {
  margin-left: 0.18em;
}

.reveal {
  opacity: 1;
  transform: none;
  filter: none;
  transition: opacity 900ms cubic-bezier(0.16, 1, 0.3, 1), transform 900ms cubic-bezier(0.16, 1, 0.3, 1), filter 900ms ease;
}

.js .reveal {
  opacity: 0;
  transform: translateY(54px) scale(0.985);
  filter: blur(10px);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.bio-side.visible {
  transition-delay: 80ms;
}

.social-side.visible {
  transition-delay: 180ms;
}

@keyframes loaderPulse {
  from {
    opacity: 0.55;
    filter: blur(0);
    transform: scale(0.98);
  }
  to {
    opacity: 1;
    filter: blur(0.4px);
    transform: scale(1.02);
  }
}

@keyframes surfaceSweep {
  from {
    transform: translateX(-42%) rotate(8deg);
  }
  to {
    transform: translateX(42%) rotate(8deg);
  }
}

@keyframes wordRise {
  to {
    opacity: 1;
    transform: translateY(0) rotate(0);
  }
}

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

  .bio-side,
  .social-side {
    min-height: auto;
  }

  .project-honey {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  [id] {
    scroll-margin-top: 152px;
  }

  .site-header {
    align-items: flex-start;
    flex-direction: column;
    position: static;
    top: auto;
  }

  .site-header nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  main,
  .site-header {
    width: min(100% - 20px, 1240px);
  }

  .bio-side,
  .social-side,
  .projects-section {
    padding: 14px;
  }

  .preloader strong {
    font-size: 62px;
  }

  .profile-banner {
    height: 118px;
  }

  .avatar-wrap {
    width: 82px;
    height: 82px;
    margin-top: -41px;
  }

  .profile-title h1 {
    font-size: 38px;
  }

  .hero-copy h2,
  .section-head h2 {
    font-size: 34px;
  }

  .honey-grid,
  .project-honey {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .project-honey {
    display: grid;
  }

  .honey-cell,
  .project-cell {
    min-height: 150px;
    padding: 12px;
    max-width: none;
  }

  .honey-cell:nth-child(2),
  .honey-cell:nth-child(5),
  .project-cell:nth-child(2) {
    transform: none;
  }

  .honey-cell:nth-child(2):hover,
  .honey-cell:nth-child(5):hover,
  .project-cell:nth-child(2):hover {
    transform: translateY(-6px) scale(1.01);
  }

  .project-cell.is-open {
    grid-column: span 2;
    min-height: 390px;
    transform: translateY(-4px);
  }

  .admin-big-add {
    position: static;
    width: 100%;
    height: 58px;
    margin-top: 16px;
    font-size: 32px;
  }

  .item-controls {
    top: 10px;
    right: 10px;
  }

  .admin-icon-btn {
    width: 28px;
    height: 28px;
  }

  .admin-grid {
    grid-template-columns: 1fr;
  }

  .honey-cell strong,
  .project-cell strong {
    font-size: 18px;
  }

  .honey-cell em,
  .project-cell em {
    font-size: 12px;
    overflow-wrap: anywhere;
  }

  .cell-code {
    width: 38px;
    height: 38px;
  }

  .profile-facts div,
  .dialog-meta {
    grid-template-columns: 1fr;
  }

  .profile-facts div {
    display: grid;
  }

.profile-facts strong {
    text-align: left;
  }
}

.projects-section .portfolio-intro {
  max-width: 760px;
  margin-top: 16px;
  color: #dedee8;
  font-size: 16px;
  line-height: 1.7;
}

.projects-section .project-honey {
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 34px;
}

.projects-section .project-honey.reveal {
  opacity: 1;
  transform: none;
  filter: none;
}

.projects-section .project-cell {
  aspect-ratio: auto;
  min-height: 630px;
  max-width: none;
  justify-content: flex-start;
  gap: 15px;
  padding: 20px;
  border-color: rgba(160, 170, 255, 0.2);
  background:
    radial-gradient(circle at 20% 0%, rgba(109, 92, 255, 0.17), transparent 34%),
    radial-gradient(circle at 100% 22%, rgba(34, 148, 255, 0.12), transparent 36%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.024)),
    rgba(8, 8, 10, 0.9);
}

.projects-section .project-cell:hover,
.projects-section .project-cell.is-open {
  border-color: rgba(183, 191, 255, 0.58);
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.48),
    0 0 34px rgba(118, 94, 255, 0.18),
    0 0 46px rgba(54, 140, 255, 0.12);
}

.projects-section .project-cell:nth-child(2) {
  margin-top: 26px;
  transform: none;
}

.projects-section .project-cell:nth-child(2):hover {
  transform: translateY(-8px) scale(1.01);
}

.projects-section .project-cell.is-open {
  flex: 1.28 1 0;
  min-height: 680px;
  max-width: none;
}

.project-topline,
.project-footer-row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.project-topline .cell-code {
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.05));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.project-category,
.project-status {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(157, 172, 255, 0.24);
  border-radius: 999px;
  background: rgba(102, 93, 255, 0.1);
  color: #ececff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
  padding: 0 11px;
  white-space: nowrap;
}

.project-status {
  border-color: rgba(92, 255, 198, 0.28);
  background: rgba(92, 255, 198, 0.08);
  color: #d9fff3;
}

.project-copy {
  display: grid;
  gap: 10px;
}

.projects-section .project-cell strong {
  font-size: clamp(24px, 2.2vw, 34px);
  line-height: 1.04;
}

.projects-section .project-cell em {
  color: #d7d7df;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.58;
}

.project-mockup {
  width: 100%;
  min-height: 128px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent),
    rgba(255, 255, 255, 0.035);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.telegram-mockup {
  display: grid;
  align-content: center;
  gap: 12px;
  padding: 16px;
}

.chat-bubble {
  width: fit-content;
  max-width: 86%;
  padding: 12px 14px;
  border-radius: 14px 14px 14px 4px;
  background: linear-gradient(135deg, rgba(102, 159, 255, 0.3), rgba(141, 91, 255, 0.18));
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
}

.chat-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #bfc2d6;
  font-size: 12px;
  font-weight: 800;
}

.chat-actions b {
  color: #050507;
  background: linear-gradient(135deg, #ffffff, #b9c7ff);
  border-radius: 999px;
  padding: 6px 10px;
}

.instagram-mockup {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 14px;
  padding: 14px;
}

.mockup-frame {
  min-height: 100px;
  padding: 10px;
  border-radius: 12px;
  background:
    radial-gradient(circle at 75% 20%, rgba(255, 255, 255, 0.55), transparent 24%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.2), rgba(115, 87, 255, 0.18));
}

.mockup-frame span {
  width: 26px;
  height: 26px;
  display: block;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.72);
}

.mockup-frame strong,
.mockup-frame p {
  display: block;
  margin-top: 14px;
  color: #ffffff;
  font-size: 11px;
}

.mockup-frame p {
  margin-top: 4px;
  color: #c9c9d8;
}

.mockup-bars {
  display: grid;
  align-content: center;
  gap: 10px;
}

.mockup-bars i {
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.34), rgba(120, 135, 255, 0.14));
}

.mockup-bars i:nth-child(2) {
  width: 76%;
}

.mockup-bars i:nth-child(3) {
  width: 52%;
}

.feed-mockup {
  display: grid;
  gap: 8px;
  padding: 14px;
}

.feed-mockup p {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.055);
  color: #f3f3f7;
  font-size: 12px;
  font-weight: 800;
}

.project-feature-list {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  gap: 7px;
}

.project-feature-list span {
  position: relative;
  padding-left: 18px;
  color: #f1f1f5;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
}

.project-feature-list span::before {
  content: "";
  position: absolute;
  top: 0.62em;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffffff, #758bff);
  box-shadow: 0 0 12px rgba(117, 139, 255, 0.8);
}

.projects-section .project-details {
  width: 100%;
  grid-template-rows: 1fr;
  gap: 12px;
  opacity: 1;
  max-height: none;
  overflow: visible;
  transform: none;
}

.project-result {
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.045);
}

.project-result small {
  display: block;
  margin-bottom: 6px;
  color: #bfc8ff;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.projects-section .project-details p {
  color: #e2e2ea;
  font-size: 13px;
}

.projects-section .project-dates span,
.projects-section .mini-tags span {
  border-color: rgba(255, 255, 255, 0.13);
  background: rgba(255, 255, 255, 0.055);
  color: #d8d8e2;
}

.projects-section .project-details a,
.portfolio-cta a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: linear-gradient(135deg, #ffffff, #bac5ff);
  color: #050507;
  font-size: 13px;
  font-weight: 900;
  padding: 0 14px;
  box-shadow: 0 12px 36px rgba(120, 135, 255, 0.22);
}

.portfolio-cta {
  margin-top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px;
  border: 1px solid rgba(160, 170, 255, 0.2);
  border-radius: 12px;
  background:
    radial-gradient(circle at 15% 0%, rgba(105, 95, 255, 0.16), transparent 42%),
    rgba(255, 255, 255, 0.035);
}

.portfolio-cta h3 {
  margin: 0;
  color: var(--text);
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.05;
}

.portfolio-cta p {
  max-width: 720px;
  margin: 10px 0 0;
  color: #d7d7df;
  font-size: 15px;
  line-height: 1.6;
}

@media (max-width: 980px) {
  .projects-section .project-honey {
    display: grid;
    grid-template-columns: 1fr;
  }

  .projects-section .project-cell,
  .projects-section .project-cell.is-open {
    grid-column: auto;
    min-height: auto;
    transform: none;
  }

  .projects-section .project-cell:nth-child(2),
  .projects-section .project-cell:nth-child(2):hover {
    transform: none;
  }
}

@media (max-width: 700px) {
  .projects-section .project-cell {
    padding: 16px;
  }

  .project-topline,
  .project-footer-row,
  .portfolio-cta {
    align-items: flex-start;
    flex-direction: column;
  }

  .project-category,
  .project-status {
    white-space: normal;
  }

  .portfolio-cta a {
    width: 100%;
  }
}

@media (max-width: 430px) {
  main,
  .site-header {
    width: min(100% - 14px, 1240px);
  }

  .honey-grid {
    grid-template-columns: 1fr;
  }

  .honey-cell:nth-child(2),
  .honey-cell:nth-child(5) {
    transform: none;
  }
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header,
  .bio-side,
  .social-side,
  .projects-section,
  .discord-card,
  dialog,
  .admin-field input,
  .admin-field textarea {
    background-color: rgba(8, 8, 10, 0.96);
  }
}

@supports not selector(dialog::backdrop) {
  dialog[open] {
    position: fixed;
    inset: 16px;
    max-height: calc(100vh - 32px);
    overflow: auto;
  }
}

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