:root {
  color-scheme: dark;
  --bg: #000;
  --surface: #0e0e0e;
  --surface-soft: #151515;
  --surface-high: #1f1f1f;
  --text: #e8e8e8;
  --muted: #9f9f9f;
  --dim: #5f5f5f;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --silver: #c6c6c7;
  --purple: #8b5cf6;
  --violet: #a855f7;
  --page: min(1600px, calc(100vw - 240px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: auto;
  scrollbar-gutter: stable;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  margin: 0;
  min-width: 1180px;
  overflow-x: hidden;
}

body.modal-open {
  overflow: hidden;
}

/* Keep navigation changes calm while preserving normal browser navigation behavior. */
.top-nav,
main,
.footer {
  transition: opacity 170ms ease, transform 170ms ease;
}

body.page-leaving {
  pointer-events: none;
}

body.page-leaving .top-nav,
body.page-leaving main,
body.page-leaving .footer {
  opacity: 0;
  transform: translateY(6px);
}

.page-transition-loader {
  align-items: center;
  background: rgba(17, 17, 17, 0.9);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
  display: flex;
  gap: 10px;
  height: 54px;
  justify-content: center;
  left: 50%;
  opacity: 0;
  pointer-events: none;
  position: fixed;
  top: 50%;
  transform: translate(-50%, calc(-50% + 8px)) scale(0.9);
  transition: opacity 130ms ease, transform 130ms ease;
  width: 116px;
  z-index: 220;
}

.page-transition-loader span {
  animation: page-loader-spin 700ms linear infinite;
  border: 2px solid rgba(198, 198, 199, 0.25);
  border-radius: 50%;
  border-top-color: var(--violet);
  height: 23px;
  width: 23px;
}

.page-transition-loader strong {
  color: var(--silver);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

body.page-leaving .page-transition-loader {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

body.page-entering .top-nav,
body.page-entering main,
body.page-entering .footer {
  animation: page-enter 280ms ease both;
}

.section-arriving {
  animation: section-arrive 360ms ease both;
}

@keyframes page-enter {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes section-arrive {
  0% {
    opacity: 0.82;
    transform: translateY(8px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes page-loader-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .top-nav,
  main,
  .footer {
    transition: none;
  }

  body.page-entering .top-nav,
  body.page-entering main,
  body.page-entering .footer,
  .section-arriving,
  .page-transition-loader span {
    animation: none;
  }
}

body.private-sections-locked [data-private-section] {
  display: none !important;
}

/* Locked private links should not leave empty slots in the navigation. */
body.private-sections-locked [data-private-nav] {
  display: none;
}


.private-entry {
  align-items: center;
  background: rgba(18, 18, 18, 0.78);
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: rgba(198, 198, 199, 0.72);
  cursor: pointer;
  display: flex;
  font-size: 22px;
  height: 42px;
  justify-content: center;
  left: 22px;
  line-height: 1;
  padding: 0 0 3px;
  position: fixed;
  top: 22px;
  width: 42px;
  z-index: 60;
}

.private-entry:hover {
  border-color: rgba(168, 85, 247, 0.62);
  color: var(--violet);
}

.private-modal[hidden] {
  display: none;
}

.private-modal {
  inset: 0;
  position: fixed;
  z-index: 150;
}

.private-modal-content {
  background: #111;
  border: 1px solid var(--line-strong);
  border-radius: 22px;
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.8);
  display: grid;
  gap: 16px;
  left: 50%;
  max-width: calc(100vw - 40px);
  padding: 38px;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 420px;
}

.private-modal-content h2,
.private-modal-content p {
  margin: 0;
}

.private-modal-content p,
.private-modal-message {
  color: var(--muted);
  line-height: 1.7;
}

.private-modal-content input {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  color: var(--text);
  font: inherit;
  padding: 12px 14px;
}

.private-modal-content > button[type="submit"] {
  background: var(--silver);
  border: 0;
  border-radius: 10px;
  color: #111;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  padding: 12px 16px;
}

.cursor-glow {
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.34) 0%, rgba(255, 255, 255, 0.18) 24%, rgba(214, 214, 214, 0.08) 48%, transparent 72%);
  border-radius: 50%;
  filter: blur(18px);
  height: 360px;
  left: 0;
  mix-blend-mode: screen;
  opacity: 0;
  pointer-events: none;
  position: fixed;
  top: 0;
  transform: translate3d(-50%, -50%, 0);
  transition: opacity 260ms ease;
  width: 360px;
  z-index: 2;
}

.cursor-glow.is-visible {
  opacity: 0.78;
}

.cursor-spark {
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.95), rgba(230, 230, 230, 0.62) 30%, rgba(180, 180, 180, 0.26) 56%, transparent 74%);
  border-radius: 50%;
  height: 12px;
  left: 0;
  mix-blend-mode: screen;
  opacity: 0;
  pointer-events: none;
  position: fixed;
  top: 0;
  transform: translate3d(-50%, -50%, 0) scale(0.4);
  width: 12px;
  z-index: 3;
}

.cursor-spark.is-active {
  animation: cursor-spark 760ms ease-out forwards;
}

.copy-toast {
  background: rgba(18, 18, 18, 0.92);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.55);
  color: var(--silver);
  font-size: 14px;
  font-weight: 750;
  left: 50%;
  letter-spacing: 0.12em;
  opacity: 0;
  padding: 14px 24px;
  pointer-events: none;
  position: fixed;
  top: 112px;
  transform: translate(-50%, -12px);
  transition: opacity 180ms ease, transform 180ms ease;
  z-index: 120;
}

.copy-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

@keyframes cursor-spark {
  0% {
    opacity: 0.9;
    transform: translate3d(-50%, -50%, 0) scale(0.35);
  }

  100% {
    opacity: 0;
    transform: translate3d(-50%, -50%, 0) scale(2.4);
  }
}

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

img {
  display: block;
  max-width: 100%;
}

.top-nav {
  backdrop-filter: blur(22px);
  background: rgba(0, 0, 0, 0.42);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  height: 76px;
  left: 0;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 50;
}

.scroll-progress {
  background: linear-gradient(90deg, var(--purple), rgba(241, 241, 241, 0.95));
  bottom: -1px;
  height: 2px;
  left: 0;
  position: absolute;
  transform: scaleX(0);
  transform-origin: left center;
  width: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  .reveal-on-scroll {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 620ms ease var(--reveal-delay, 0ms), transform 620ms cubic-bezier(0.2, 0.7, 0.2, 1) var(--reveal-delay, 0ms);
  }

  .reveal-on-scroll.is-revealed {
    opacity: 1;
    transform: translateY(0);
  }
}

.nav-inner {
  align-items: center;
  display: flex;
  height: 100%;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1920px;
  padding: 0 120px;
}

.brand {
  color: var(--silver);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.nav-links {
  align-items: center;
  display: flex;
  gap: 40px;
}

.nav-links a {
  border-bottom: 2px solid transparent;
  color: rgba(198, 198, 199, 0.55);
  font-size: 16px;
  font-weight: 500;
  padding-bottom: 8px;
  transition: color 180ms ease, border-color 180ms ease;
}

.nav-links a:hover,
.nav-links a.active {
  border-color: var(--silver);
  color: var(--silver);
}

.hire-button {
  align-items: center;
  background: linear-gradient(135deg, #f1f1f1 0%, #767676 100%);
  border-radius: 14px;
  box-sizing: border-box;
  color: #202020;
  display: inline-flex;
  font-size: 16px;
  font-weight: 650;
  height: 50px;
  justify-content: center;
  padding: 0;
  width: 98px;
  transition: transform 180ms ease;
}

.hire-button:hover {
  transform: scale(0.96);
}

.nav-spacer {
  flex: 0 0 98px;
  width: 98px;
}

.admin-logout-button {
  align-items: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: rgba(232, 232, 232, 0.82);
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-size: 13px;
  font-weight: 750;
  height: 36px;
  justify-content: center;
  padding: 0 16px;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease;
  width: 98px;
}

.admin-logout-button:hover {
  background: rgba(139, 92, 246, 0.22);
  border-color: rgba(139, 92, 246, 0.5);
  color: #fff;
}

.hero {
  align-items: center;
  background: #000;
  display: flex;
  justify-content: center;
  min-height: 100vh;
  overflow: hidden;
  padding: 120px 120px 80px;
  perspective: 1200px;
  position: relative;
}

#particle-canvas {
  height: 100%;
  inset: 0;
  pointer-events: none;
  position: absolute;
  transform: translate3d(0, var(--hero-particle-shift, 0px), 0);
  transition: transform 120ms linear;
  width: 100%;
  z-index: 1;
}

.ambient {
  border-radius: 50%;
  position: absolute;
  z-index: 0;
}

.ambient-left {
  background: rgba(139, 92, 246, 0.08);
  filter: blur(120px);
  height: 600px;
  left: 20%;
  top: 10%;
  transform: translate3d(0, var(--hero-ambient-left-shift, 0px), 0);
  transition: transform 120ms linear;
  width: 600px;
}

.ambient-right {
  background: rgba(168, 85, 247, 0.06);
  bottom: 10%;
  filter: blur(140px);
  height: 700px;
  right: 15%;
  transform: translate3d(0, var(--hero-ambient-right-shift, 0px), 0);
  transition: transform 120ms linear;
  width: 700px;
}

.hero-card {
  cursor: pointer;
  max-width: 980px;
  position: relative;
  text-align: center;
  transform: translate3d(0, var(--hero-card-shift, 0px), 0) rotateX(var(--hero-tilt-x, 0deg)) rotateY(var(--hero-tilt-y, 0deg));
  transition: transform 180ms ease-out;
  transform-style: preserve-3d;
  width: 100%;
  z-index: 2;
}

.hero-glow {
  background: radial-gradient(circle at center, rgba(139, 92, 246, 0.12), transparent 70%);
  filter: blur(100px);
  inset: 0;
  opacity: 0.42;
  position: absolute;
  transform: translateZ(-80px);
}

/* Safari repaints large high-radius filter blurs during navigation. Recreate
   the same ambient glow with gradients so WebKit can composite it smoothly. */
html.is-safari .ambient-left {
  background: radial-gradient(
    circle,
    rgba(139, 92, 246, 0.12) 0%,
    rgba(139, 92, 246, 0.065) 36%,
    transparent 72%
  );
  filter: none;
}

html.is-safari .ambient-right {
  background: radial-gradient(
    circle,
    rgba(168, 85, 247, 0.1) 0%,
    rgba(168, 85, 247, 0.05) 38%,
    transparent 74%
  );
  filter: none;
}

html.is-safari .hero-glow {
  background: radial-gradient(
    circle at center,
    rgba(139, 92, 246, 0.13) 0%,
    rgba(139, 92, 246, 0.055) 38%,
    transparent 72%
  );
  filter: none;
}

.hero-panel {
  backdrop-filter: blur(24px);
  background: rgba(18, 18, 18, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 48px;
  box-shadow: 0 0 100px rgba(0, 0, 0, 0.85);
  inset: -60px;
  position: absolute;
  transform: translateZ(20px);
}

.hero-panel::after {
  border: 1px solid rgba(168, 85, 247, 0.16);
  border-radius: inherit;
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.hero-content {
  align-items: center;
  display: flex;
  flex-direction: column;
  position: relative;
  transform: translateZ(100px);
}

.micro-title {
  color: var(--purple);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.6em;
  margin: 0;
}

.hero .micro-title {
  font-size: 22px;
}

.hero h1 {
  color: #f1f1f1;
  font-size: 160px;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.92;
  margin: 44px 0 0;
  text-shadow: 0 30px 60px rgba(0, 0, 0, 0.8);
}

.hero h1 span {
  display: block;
  transition: opacity 420ms ease, transform 420ms ease;
}

.hero p:not(.micro-title) {
  color: var(--muted);
  font-size: 18px;
  font-weight: 300;
  line-height: 1.8;
  margin: 56px auto 0;
  max-width: 720px;
}

.text-link {
  align-items: center;
  color: var(--silver);
  display: inline-flex;
  font-weight: 700;
  gap: 12px;
  margin-top: 56px;
  transition: color 180ms ease;
}

.text-link:hover {
  color: var(--purple);
}

.works-more-link {
  margin-left: auto;
  margin-top: 32px;
  width: fit-content;
}

.section {
  margin: 0 auto;
  max-width: var(--page);
  padding: 90px 0 160px;
}

.about-grid {
  align-items: stretch;
  display: grid;
  gap: 120px;
  grid-template-columns: 5fr 7fr;
}

.portrait-frame {
  aspect-ratio: auto;
  background: var(--surface-high);
  border-radius: 32px;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.45);
  height: 100%;
  overflow: hidden;
  position: relative;
}

.portrait-frame::before {
  background: rgba(139, 92, 246, 0.06);
  border-radius: 48px;
  content: "";
  filter: blur(30px);
  inset: -32px;
  opacity: 0;
  position: absolute;
  transition: opacity 1000ms ease;
}

.portrait-frame:hover::before {
  opacity: 1;
}

.portrait-frame img {
  filter: grayscale(1) brightness(0.9) contrast(1.12);
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.about-copy h2,
.section-heading h2 {
  color: var(--text);
  font-size: 72px;
  font-weight: 850;
  letter-spacing: 0;
  line-height: 1.08;
  margin: 18px 0 0;
}

.admin-version-label {
  color: rgba(255, 255, 255, 0.56);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.28em;
  margin: 12px 0 0;
}

.concept {
  margin-top: 54px;
}

.concept h3 {
  color: var(--purple);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.32em;
  margin: 0 0 24px;
}

.concept p {
  color: var(--muted);
  font-size: 20px;
  font-weight: 300;
  line-height: 1.85;
  margin: 0;
  max-width: 780px;
}

.identity-cards {
  display: grid;
  gap: 40px;
  grid-template-columns: repeat(2, 1fr);
  margin-top: 60px;
}

.identity-cards article,
.experience-grid article {
  background: rgba(18, 18, 18, 0.72);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 44px;
}

.identity-cards h4,
.experience-grid h3 {
  color: var(--silver);
  font-size: 18px;
  margin: 0 0 18px;
}

.identity-cards p,
.experience-grid p {
  color: rgba(171, 171, 171, 0.82);
  font-size: 15px;
  line-height: 1.8;
  margin: 0;
}

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

.section-heading > p {
  color: rgba(171, 171, 171, 0.72);
  font-size: 18px;
  font-style: italic;
  margin: 0 120px 38px 0;
}

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

.project-card {
  background: var(--surface-soft);
  border-radius: 40px;
  display: block;
  min-height: 500px;
  overflow: hidden;
  position: relative;
}

.project-card {
  grid-column: span 4;
}

.project-card::before,
.media-card::before {
  background: radial-gradient(250px circle at var(--card-glow-x, 50%) var(--card-glow-y, 50%), rgba(210, 186, 255, 0.9), rgba(139, 92, 246, 0.38) 28%, transparent 68%);
  border-radius: inherit;
  content: "";
  inset: 0;
  opacity: 0;
  padding: 1px;
  pointer-events: none;
  position: absolute;
  transition: opacity 240ms ease;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  z-index: 3;
}

.project-card:hover::before,
.media-card:hover::before {
  opacity: 1;
}

.project-large {
  grid-column: span 8;
  min-height: 500px;
}

.project-tall {
  grid-column: span 4;
  min-height: 500px;
}

.project-card img {
  height: 100%;
  inset: 0;
  object-fit: cover;
  opacity: 0.55;
  position: absolute;
  transition: opacity 500ms ease, transform 1200ms ease;
  width: 100%;
}

.project-card::after {
  background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, 0.82) 100%);
  content: "";
  inset: 0;
  position: absolute;
}

.project-card:hover img {
  opacity: 0.82;
  transform: scale(1.04);
}

.project-card span,
.project-card h3 {
  left: 48px;
  position: absolute;
  right: 48px;
  z-index: 2;
}

.project-card span {
  bottom: 116px;
  color: var(--purple);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.45em;
}

.project-card h3 {
  bottom: 48px;
  color: #fff;
  font-size: 34px;
  letter-spacing: 0;
  line-height: 1;
  margin: 0;
}

.media {
  padding-top: 90px;
}

.interests {
  padding-top: 90px;
}

.media-grid {
  display: grid;
  gap: 40px;
  grid-template-columns: repeat(12, 1fr);
}

.media-card {
  background: var(--surface-soft);
  border-radius: 40px;
  display: flex;
  flex-direction: column;
  grid-column: span 6;
  justify-content: flex-end;
  min-height: 520px;
  overflow: hidden;
  padding: 48px;
  position: relative;
}

.media-card img,
.media-card video {
  height: 100%;
  inset: 0;
  opacity: 0.52;
  position: absolute;
  transition: opacity 500ms ease, transform 1200ms ease;
  width: 100%;
}

.media-card img {
  object-fit: cover;
}

.media-card video {
  object-fit: cover;
}

.media-card video[data-preview-duration] {
  transform: scale(1.22);
}

.media-card::after {
  background:
    radial-gradient(circle at 50% 25%, rgba(139, 92, 246, 0.18), transparent 38%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.86));
  content: "";
  inset: 0;
  position: absolute;
}

.media-card:hover video {
  opacity: 0.78;
  transform: scale(1.28);
}

.media-card:hover video[data-preview-duration] {
  transform: scale(1.34);
}

.media-card:hover img {
  opacity: 0.78;
  transform: scale(1.06);
}

.media-card span,
.media-card h3,
.media-card p {
  position: relative;
  transform: translate3d(0, var(--hero-content-shift, 0px), 0);
  transition: transform 120ms linear;
  z-index: 2;
}

.media-card span {
  color: var(--purple);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.42em;
  margin-bottom: 18px;
}

.media-card h3 {
  color: #fff;
  font-size: 38px;
  line-height: 1;
  margin: 0;
}

.media-card p {
  color: rgba(198, 198, 199, 0.76);
  font-size: 15px;
  line-height: 1.8;
  margin: 18px 0 0;
  max-width: 520px;
}

.experience-grid {
  display: grid;
  gap: 30px;
  grid-template-columns: repeat(4, 1fr);
}

.about-resume-grid {
  margin-top: 72px;
}

.experience-grid article span {
  color: var(--purple);
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.35em;
  margin-bottom: 24px;
}

.blog {
  padding-top: 90px;
}

.blog-grid {
  display: grid;
}

.blog-card {
  background: rgba(18, 18, 18, 0.72);
  border: 1px solid var(--line);
  border-radius: 18px;
  min-height: 280px;
  padding: 44px;
}

.blog-card span {
  color: var(--purple);
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.35em;
  margin-bottom: 24px;
}

.blog-card h3 {
  color: var(--silver);
  font-size: 24px;
  margin: 0 0 18px;
}

.blog-card p {
  color: rgba(171, 171, 171, 0.82);
  font-size: 16px;
  line-height: 1.8;
  margin: 0;
  max-width: 760px;
}

.contact {
  min-height: calc(100vh - 76px);
  padding-top: 90px;
}

.contact-grid {
  display: grid;
  gap: 30px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.contact-card {
  background: rgba(18, 18, 18, 0.72);
  border: 1px solid var(--line);
  border-radius: 18px;
  min-height: 280px;
  padding: 44px;
}

.contact-card-icon {
  align-items: center;
  background: rgba(168, 85, 247, 0.1);
  border: 1px solid rgba(168, 85, 247, 0.28);
  border-radius: 14px;
  color: var(--violet);
  display: inline-flex;
  height: 52px;
  justify-content: center;
  margin-bottom: 28px;
  width: 52px;
}

.contact-card-icon svg {
  height: 28px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
  width: 28px;
}

.contact-card:hover .contact-card-icon {
  background: rgba(168, 85, 247, 0.2);
  border-color: rgba(168, 85, 247, 0.56);
  color: #d8b4fe;
}

.contact-card > span {
  color: var(--purple);
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.35em;
  margin-bottom: 24px;
}

.contact-card h3 {
  color: var(--silver);
  font-size: 18px;
  margin: 0 0 18px;
}

.contact-card p {
  color: rgba(171, 171, 171, 0.82);
  font-size: 15px;
  line-height: 1.8;
  margin: 0;
}

.footer {
  align-items: center;
  border-top: 1px solid var(--line);
  color: rgba(198, 198, 199, 0.42);
  display: flex;
  justify-content: space-between;
  margin: 0 auto;
  max-width: var(--page);
  padding: 42px 0 60px;
}

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

.project-modal,
.video-modal,
.vr-modal,
.image-modal {
  inset: 0;
  overflow: hidden;
  position: fixed;
  z-index: 100;
}

.project-modal:not([hidden]) .modal-backdrop,
.video-modal:not([hidden]) .modal-backdrop,
.vr-modal:not([hidden]) .modal-backdrop,
.image-modal:not([hidden]) .modal-backdrop {
  animation: modal-backdrop-in 220ms ease-out both;
}

.project-modal:not([hidden]) .modal-content,
.video-modal:not([hidden]) .video-modal-content,
.vr-modal:not([hidden]) .vr-modal-content,
.image-modal:not([hidden]) .image-modal-content {
  animation: modal-content-in 320ms cubic-bezier(0.2, 0.75, 0.25, 1) both;
}

.video-modal[hidden],
.vr-modal[hidden],
.image-modal[hidden] {
  display: none;
}

.modal-backdrop {
  background: rgba(0, 0, 0, 0.76);
  border: 0;
  cursor: pointer;
  inset: 0;
  position: absolute;
}

.project-cover-flight {
  border-radius: 40px;
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.72);
  object-fit: cover;
  pointer-events: none;
  position: fixed;
  transition: left 500ms cubic-bezier(0.2, 0.75, 0.25, 1), top 500ms cubic-bezier(0.2, 0.75, 0.25, 1), width 500ms cubic-bezier(0.2, 0.75, 0.25, 1), height 500ms cubic-bezier(0.2, 0.75, 0.25, 1), border-radius 500ms ease, opacity 500ms ease;
  z-index: 130;
}

@keyframes modal-backdrop-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modal-content-in {
  from { opacity: 0; transform: translate(-50%, calc(-50% + 18px)) scale(0.98); }
  to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

.modal-content {
  background: #111;
  border: 1px solid var(--line-strong);
  border-radius: 28px;
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.8);
  display: grid;
  gap: 54px;
  grid-template-columns: minmax(0, 0.42fr) minmax(0, 1fr);
  left: 50%;
  max-height: calc(100vh - 80px);
  max-width: none;
  overflow: auto;
  padding: 50px;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(1840px, calc(100vw - 80px));
}

.modal-close {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--text);
  cursor: pointer;
  font-size: 28px;
  height: 48px;
  line-height: 1;
  position: absolute;
  right: 28px;
  top: 28px;
  width: 48px;
  z-index: 4;
}

.modal-copy {
  min-width: 0;
  padding-top: 12px;
}

.modal-content > * {
  min-width: 0;
}

.modal-gallery {
  aspect-ratio: 16 / 9;
  background: var(--surface-soft);
  border-radius: 24px;
  align-self: start;
  overflow: hidden;
  position: relative;
  width: 100%;
}

@media (max-width: 1500px) {
  .modal-content {
    gap: 32px;
    padding: 36px;
    width: min(1400px, calc(100vw - 48px));
  }

  .modal-content h2 {
    font-size: 52px;
  }
}

@media (max-width: 1180px) {
  .modal-content {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    max-height: calc(100vh - 32px);
    overflow-x: hidden;
    overflow-y: auto;
    padding: 28px;
    width: calc(100vw - 32px);
  }

  .modal-copy {
    padding-top: 18px;
  }

  .modal-content h2 {
    font-size: 42px;
  }
}

.modal-gallery::after {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.28));
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: 1;
}

.modal-gallery::before {
  border: 2px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  border-top-color: var(--purple);
  content: "";
  height: 32px;
  left: 50%;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  transition: opacity 160ms ease;
  width: 32px;
  z-index: 2;
}

.modal-gallery.is-loading::before {
  animation: gallery-image-loading 720ms linear infinite;
  opacity: 1;
}

.modal-gallery.is-loading img {
  opacity: 0;
}

.modal-gallery img {
  height: 100%;
  object-fit: contain;
  object-position: center center;
  width: 100%;
  position: relative;
  z-index: 0;
}

.modal-gallery img.is-animating {
  animation: gallery-image-next 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes gallery-image-loading {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

.modal-gallery[data-motion="prev"] img.is-animating {
  animation-name: gallery-image-prev;
}

@keyframes gallery-image-next {
  0% {
    filter: brightness(0.82);
    opacity: 0;
    transform: translateX(28px);
  }

  100% {
    filter: brightness(1);
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes gallery-image-prev {
  0% {
    filter: brightness(0.82);
    opacity: 0;
    transform: translateX(-28px);
  }

  100% {
    filter: brightness(1);
    opacity: 1;
    transform: translateX(0);
  }
}

.gallery-button {
  align-items: center;
  background: rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: #fff;
  cursor: pointer;
  display: flex;
  font-size: 64px;
  height: 84px;
  justify-content: center;
  line-height: 1;
  padding-bottom: 8px;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  transition: background 180ms ease, transform 180ms ease;
  width: 84px;
  z-index: 3;
}

.gallery-button:hover {
  background: rgba(139, 92, 246, 0.5);
  transform: translateY(-50%) scale(0.96);
}

.gallery-prev {
  left: 28px;
}

.gallery-next {
  right: 28px;
}

.gallery-count {
  background: rgba(0, 0, 0, 0.48);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  bottom: 20px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  padding: 9px 14px;
  position: absolute;
  right: 20px;
  z-index: 3;
}

.modal-content h2 {
  font-size: 64px;
  letter-spacing: 0;
  line-height: 1;
  margin: 24px 0 28px;
}

.modal-content p:not(.micro-title) {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
}

.modal-content dl {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
  margin: 34px 0 0;
}

.modal-content div {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
}

.modal-content dt {
  color: var(--dim);
  font-size: 12px;
  margin-bottom: 8px;
}

.modal-content dd {
  margin: 0;
}

.video-modal-content,
.image-modal-content {
  background: #111;
  border: 1px solid var(--line-strong);
  border-radius: 28px;
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.8);
  left: 50%;
  overflow: hidden;
  padding: 28px 132px;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(1840px, calc(100vw - 80px));
}

.video-modal-content video,
.image-modal-content img {
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 22px;
  display: block;
  width: 100%;
}

.video-modal-content video {
  object-fit: contain;
}

.image-modal-content img {
  object-fit: contain;
  object-position: center center;
}

.video-switch,
.image-switch {
  align-items: center;
  background: rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: #fff;
  cursor: pointer;
  display: flex;
  font-size: 64px;
  height: 84px;
  justify-content: center;
  line-height: 1;
  padding-bottom: 8px;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  transition: background 180ms ease, transform 180ms ease;
  width: 84px;
  z-index: 3;
}

.video-switch:hover,
.image-switch:hover {
  background: rgba(139, 92, 246, 0.5);
  transform: translateY(-50%) scale(0.96);
}

.video-prev,
.image-prev {
  left: 36px;
}

.video-next,
.image-next {
  right: 36px;
}

.video-count,
.image-count {
  background: rgba(0, 0, 0, 0.48);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  bottom: 46px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  padding: 9px 14px;
  position: absolute;
  right: 56px;
  z-index: 3;
}

.vr-modal-content {
  background: #111;
  border: 1px solid var(--line-strong);
  border-radius: 28px;
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.8);
  left: 50%;
  overflow: hidden;
  padding: 28px 132px;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(1840px, calc(100vw - 80px));
}

.vr-switch {
  align-items: center;
  background: rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: #fff;
  cursor: pointer;
  display: flex;
  font-size: 64px;
  height: 84px;
  justify-content: center;
  line-height: 1;
  padding-bottom: 8px;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  transition: background 180ms ease, transform 180ms ease;
  width: 84px;
  z-index: 3;
}

.vr-switch:hover {
  background: rgba(139, 92, 246, 0.5);
  transform: translateY(-50%) scale(0.96);
}

.vr-prev {
  left: 36px;
}

.vr-next {
  right: 36px;
}

.vr-count {
  background: rgba(0, 0, 0, 0.48);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  bottom: 46px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  padding: 9px 14px;
  position: absolute;
  right: 56px;
  z-index: 3;
}

.vr-stage {
  aspect-ratio: 16 / 9;
  background:
    radial-gradient(circle at 50% 38%, rgba(255, 255, 255, 0.12), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02) 36%, rgba(139, 92, 246, 0.12));
  border-radius: 22px;
  overflow: hidden;
  position: relative;
  width: 100%;
}

.vr-modal-content iframe {
  aspect-ratio: 16 / 9;
  background: #000;
  border: 0;
  display: block;
  height: 100%;
  width: 100%;
}

.vr-loader {
  align-items: center;
  background:
    linear-gradient(120deg, rgba(6, 6, 6, 0.78), rgba(20, 20, 20, 0.9)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 58px);
  color: rgba(232, 232, 232, 0.88);
  display: flex;
  flex-direction: column;
  gap: 12px;
  inset: 0;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  transition: opacity 260ms ease;
  visibility: hidden;
  z-index: 2;
}

.vr-loader::before {
  animation: vr-loader-scan 1.8s ease-in-out infinite;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  content: "";
  height: 1px;
  left: 10%;
  opacity: 0.72;
  position: absolute;
  right: 10%;
  top: 0;
}

.vr-modal.is-vr-loading .vr-loader {
  opacity: 1;
  visibility: visible;
}

.vr-loader-ring {
  animation: vr-loader-spin 1.1s linear infinite;
  border: 2px solid rgba(255, 255, 255, 0.18);
  border-top-color: rgba(255, 255, 255, 0.86);
  border-radius: 50%;
  box-shadow: 0 0 34px rgba(139, 92, 246, 0.32);
  height: 52px;
  width: 52px;
}

.vr-loader-copy {
  color: rgba(255, 255, 255, 0.9);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.vr-loader-hint {
  color: rgba(198, 198, 199, 0.66);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

@keyframes vr-loader-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes vr-loader-scan {
  0% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(52vh);
  }

  100% {
    transform: translateY(0);
  }
}

.standalone-page {
  min-height: 100vh;
}

.blog-page,
.blog-detail-page {
  padding-top: 90px;
}

.admin-login {
  padding-top: 170px;
}

.admin-workspace {
  padding-bottom: 30px;
  padding-top: 92px;
}

.blog-page .section-heading,
.blog-detail-page .section-heading,
.admin-login .section-heading,
.admin-workspace .section-heading {
  margin-bottom: 58px;
}

.admin-workspace .section-heading {
  margin-bottom: 18px;
}

.admin-anchor,
.analytics-dashboard {
  scroll-margin-top: 120px;
}

.blog-filter-panel,
.blog-sidebar article,
.article-detail,
.article-side article,
.article-cover,
.login-card,
.admin-stats-grid article,
.admin-list-panel,
.admin-editor,
.analytics-dashboard,
.analytics-summary-grid article,
.analytics-card {
  background: rgba(18, 18, 18, 0.72);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.blog-filter-panel {
  display: grid;
  gap: 16px;
  margin-bottom: 34px;
  padding: 22px 26px;
}

.filter-row {
  align-items: center;
  display: grid;
  gap: 20px;
  grid-template-columns: 58px 1fr;
}

.filter-row > span,
.blog-sidebar span,
.article-side span,
.login-card span,
.admin-stats-grid span,
.admin-panel-head span,
.analytics-summary-grid span,
.analytics-card > span,
.tag-editor > span,
.taxonomy-editor > span,
.editor-tools span,
.editor-preview > span,
.blog-post-meta span:first-child {
  color: var(--purple);
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.35em;
}

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.filter-buttons button {
  font-size: 12px;
  min-height: 34px;
  padding: 8px 14px;
}

.filter-buttons button,
.tag-cloud button,
.blog-toolbar a,
.blog-back,
.confirm-actions button,
.editor-actions button,
.admin-panel-head button,
.login-card button,
.ghost-button,
.taxonomy-add-row button,
.taxonomy-pill-grid button,
.tag-check-item,
.featured-toggle,
.editor-tools button,
.like-button {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: rgba(232, 232, 232, 0.82);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  padding: 11px 18px;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.admin-panel-head button,
.editor-actions button,
.ghost-button,
.editor-tools button {
  min-height: 36px;
  padding: 8px 14px;
}

.blog-filter-panel .filter-buttons button {
  font-size: 12px;
  min-height: 34px;
  padding: 8px 14px;
}

.filter-buttons button:hover,
.filter-buttons button.is-active,
.tag-cloud button:hover,
.blog-toolbar a:hover,
.blog-back:hover,
.confirm-actions button:hover,
.editor-actions button:hover,
.admin-panel-head button:hover,
.login-card button:hover,
.ghost-button:hover,
.taxonomy-add-row button:hover,
.taxonomy-pill-grid button:hover,
.taxonomy-pill-grid button.is-active,
.tag-check-item:hover,
.tag-check-item.is-active,
.featured-toggle:hover,
.featured-toggle.is-active,
.editor-tools button:hover,
.like-button:hover {
  background: rgba(139, 92, 246, 0.22);
  border-color: rgba(139, 92, 246, 0.5);
  color: #fff;
}

.has-confirm-modal {
  overflow: hidden;
}

.confirm-modal {
  display: grid;
  inset: 0;
  place-items: center;
  position: fixed;
  z-index: 260;
}

.confirm-modal[hidden] {
  display: none;
}

.confirm-backdrop {
  background: rgba(0, 0, 0, 0.68);
  backdrop-filter: blur(12px);
  inset: 0;
  position: absolute;
}

.confirm-dialog {
  background: rgba(18, 18, 18, 0.94);
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.68);
  max-width: calc(100vw - 48px);
  padding: 28px;
  position: relative;
  width: 440px;
}

.confirm-dialog span {
  color: var(--purple);
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.35em;
}

.confirm-dialog h3 {
  color: var(--silver);
  font-size: 26px;
  margin: 14px 0 12px;
}

.confirm-dialog p {
  color: rgba(171, 171, 171, 0.84);
  line-height: 1.8;
  margin: 0;
}

.confirm-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 24px;
}

.confirm-actions button {
  min-height: 38px;
  padding: 9px 16px;
}

.blog-layout {
  align-items: start;
  display: grid;
  gap: 42px;
  grid-template-columns: minmax(0, 1fr) 380px;
}

.blog-toolbar {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 28px;
}

.blog-toolbar p {
  color: rgba(198, 198, 199, 0.62);
  margin: 0;
}

.blog-list {
  display: grid;
  gap: 30px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.blog-pagination {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 34px;
}

.blog-pagination button {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: rgba(232, 232, 232, 0.78);
  cursor: pointer;
  font: inherit;
  min-width: 42px;
  padding: 10px 14px;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.blog-pagination button:hover:not(:disabled),
.blog-pagination button.is-active {
  background: rgba(139, 92, 246, 0.18);
  border-color: rgba(139, 92, 246, 0.55);
  color: var(--silver);
}

.blog-pagination button:disabled {
  cursor: not-allowed;
  opacity: 0.38;
}

.blog-post-card {
  background: rgba(18, 18, 18, 0.72);
  border: 1px solid var(--line);
  border-radius: 28px;
  display: flex;
  flex-direction: column;
  gap: 0;
  min-height: 0;
  overflow: hidden;
  transition: border-color 220ms ease, transform 220ms ease;
}

.blog-post-card:hover {
  border-color: rgba(139, 92, 246, 0.45);
  transform: translateY(-4px);
}

.blog-post-cover {
  aspect-ratio: 16 / 9;
  background: var(--surface-soft);
  min-height: 0;
  overflow: hidden;
}

.blog-post-cover img,
.featured-item img,
.admin-post-item img,
.preview-card img,
.article-cover img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.blog-post-cover img {
  opacity: 0.72;
  transition: opacity 500ms ease, transform 1200ms ease;
}

.blog-post-card:hover .blog-post-cover img {
  opacity: 0.9;
  transform: scale(1.05);
}

.blog-post-copy {
  display: flex;
  flex-direction: column;
  min-height: 220px;
  padding: 24px 30px 26px;
}

.blog-post-meta,
.article-meta-row,
.blog-post-data {
  align-items: center;
  color: rgba(198, 198, 199, 0.58);
  display: flex;
  flex-wrap: wrap;
  font-size: 13px;
  gap: 18px;
}

.blog-post-stats {
  color: rgba(198, 198, 199, 0.58);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  margin-left: auto;
}

.blog-post-copy h3 {
  color: var(--silver);
  font-size: 24px;
  line-height: 1.2;
  margin: 14px 0 12px;
}

.blog-post-copy p {
  color: rgba(171, 171, 171, 0.82);
  font-size: 16px;
  line-height: 1.8;
  margin: 0;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.article-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.article-tag-row span {
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.26);
  border-radius: 999px;
  color: rgba(232, 232, 232, 0.82);
  font-size: 12px;
  font-weight: 700;
  padding: 8px 12px;
}

.read-more-label {
  align-items: center;
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: rgba(232, 232, 232, 0.82);
  display: inline-flex;
  font-size: 13px;
  font-weight: 800;
  margin-top: 0;
  padding: 10px 16px;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.blog-card-tags {
  align-items: center;
  margin-top: auto;
  padding-top: 18px;
}

.blog-card-tags .read-more-label {
  margin-left: auto;
}

.blog-post-card:hover .read-more-label {
  background: rgba(139, 92, 246, 0.22);
  border-color: rgba(139, 92, 246, 0.5);
  color: #fff;
}

.blog-sidebar {
  display: grid;
  gap: 28px;
  position: sticky;
  top: 122px;
}

.blog-sidebar article,
.article-side article {
  padding: 30px;
}

.blog-sidebar h3,
.article-side h3,
.login-card h3,
.admin-panel-head h3 {
  color: var(--silver);
  font-size: 22px;
  margin: 14px 0 24px;
}

.featured-list {
  display: grid;
  gap: 14px;
}

.featured-item {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 14px;
  display: grid;
  gap: 16px;
  grid-template-columns: 90px 1fr;
  padding: 10px;
  transition: background 180ms ease, border-color 180ms ease;
}

.featured-item:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line);
}

.featured-item img {
  aspect-ratio: 1 / 1;
  border-radius: 10px;
}

.featured-item strong {
  color: var(--silver);
  display: block;
  font-size: 15px;
  line-height: 1.45;
}

.featured-item span {
  letter-spacing: 0.18em;
  margin-bottom: 8px;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.empty-state,
.blog-empty-card {
  color: rgba(171, 171, 171, 0.72);
  line-height: 1.8;
  margin: 0;
}

.blog-empty-card {
  background: rgba(18, 18, 18, 0.72);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 44px;
}

.blog-detail-page[hidden],
.blog-page[hidden],
.admin-login[hidden],
.admin-workspace[hidden] {
  display: none;
}

.blog-back {
  display: inline-flex;
  margin-bottom: 16px;
}

.article-detail {
  border-radius: 18px;
  overflow: hidden;
}

.article-hero {
  align-items: center;
  display: grid;
  gap: 46px;
  grid-template-columns: minmax(0, 1fr) 360px;
  min-height: 0;
  padding: 28px 44px;
}

.article-hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0;
}

.article-hero-copy h1 {
  color: #fff;
  font-size: 34px;
  line-height: 1.12;
  margin: 8px 0 10px;
}

.article-hero-copy > p:not(.micro-title) {
  color: rgba(198, 198, 199, 0.76);
  font-size: 14px;
  line-height: 1.55;
  margin: 0 0 10px;
}

.article-hero .article-meta-row {
  font-size: 12px;
  gap: 12px;
}

.article-hero .article-tag-row {
  gap: 8px;
  margin-top: 10px;
}

.article-hero .article-tag-row span {
  padding: 6px 10px;
}

.article-cover {
  aspect-ratio: 16 / 9;
  background: var(--surface-soft);
  border-radius: 18px;
  display: block;
  min-height: 0;
  overflow: hidden;
  width: 100%;
}

.article-cover img {
  border-radius: inherit;
  display: block;
}

.article-body-layout {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  gap: 46px;
  grid-template-columns: minmax(0, 1fr) 360px;
  padding: 28px 44px 56px;
}

.article-content {
  min-width: 0;
}

.article-content h2 {
  color: var(--silver);
  font-size: 36px;
  line-height: 1.2;
  margin: 56px 0 18px;
}

.article-content h2:first-child {
  margin-top: 0;
}

.article-content p {
  color: rgba(210, 210, 210, 0.82);
  font-size: 18px;
  font-weight: 300;
  line-height: 2;
  margin: 0 0 28px;
}

.article-content figure {
  background: #080808;
  border: 1px solid var(--line);
  border-radius: 18px;
  margin: 42px 0;
  overflow: hidden;
}

.article-content figure img,
.article-content figure video {
  background: #000;
  display: block;
  max-height: 720px;
  object-fit: contain;
  width: 100%;
}

.article-content figcaption {
  color: rgba(171, 171, 171, 0.7);
  font-size: 13px;
  padding: 14px 18px 18px;
}

.article-project-link {
  background: rgba(139, 92, 246, 0.14);
  border: 1px solid rgba(139, 92, 246, 0.35);
  border-radius: 14px;
  color: var(--silver);
  display: inline-flex;
  font-weight: 800;
  margin: 14px 0 34px;
  padding: 16px 22px;
}

.article-side {
  align-self: start;
  display: grid;
  gap: 28px;
  position: sticky;
  top: 122px;
}

.trend-bars {
  align-items: end;
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(7, 1fr);
  height: 150px;
  margin-top: 8px;
}

.trend-bars i {
  background: linear-gradient(180deg, rgba(168, 85, 247, 0.84), rgba(139, 92, 246, 0.18));
  border-radius: 999px 999px 3px 3px;
  min-height: 10px;
  position: relative;
}

.trend-bars span {
  color: rgba(232, 232, 232, 0.62);
  font-size: 10px;
  left: 50%;
  letter-spacing: 0;
  position: absolute;
  top: -22px;
  transform: translateX(-50%);
}

.like-button {
  margin-top: 28px;
  width: 100%;
}

.like-button.is-liked {
  background: rgba(139, 92, 246, 0.28);
  border-color: rgba(139, 92, 246, 0.62);
  color: #fff;
  transform: translateY(-1px);
}

.like-heart {
  animation: like-heart-burst 920ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
  color: rgba(255, 255, 255, 0.96);
  filter: drop-shadow(0 8px 18px rgba(139, 92, 246, 0.42));
  font-size: 15px;
  font-weight: 900;
  left: 0;
  line-height: 1;
  pointer-events: none;
  position: fixed;
  top: 0;
  transform: translate(-50%, -50%) scale(0.35);
  z-index: 180;
}

@keyframes like-heart-burst {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.3) rotate(0deg);
  }

  16% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--heart-x)), calc(-50% + var(--heart-y))) scale(1.45) rotate(var(--heart-rotate));
  }
}

.login-card {
  max-width: 560px;
  padding: 44px;
}

.login-card p {
  color: rgba(171, 171, 171, 0.82);
  line-height: 1.8;
}

.login-card label,
.admin-editor label,
.field-group,
.tag-editor,
.taxonomy-editor {
  color: rgba(232, 232, 232, 0.78);
  display: grid;
  font-size: 13px;
  font-weight: 750;
  gap: 8px;
}

.login-card input,
.admin-editor input,
.admin-editor select,
.admin-editor textarea {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  font: inherit;
  line-height: 1.5;
  outline: 0;
  padding: 12px 14px;
  transition: border-color 180ms ease, background 180ms ease;
  width: 100%;
}

.admin-editor textarea[data-auto-grow] {
  min-height: 46px;
  overflow: hidden;
  resize: vertical;
}

.admin-editor input[type="date"] {
  text-align: center;
}

.login-card input:focus,
.admin-editor input:focus,
.admin-editor select:focus,
.admin-editor textarea:focus {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(139, 92, 246, 0.5);
}

.admin-editor input:not([type="hidden"]):hover,
.admin-editor select:hover,
.admin-editor textarea:hover,
.frontend-editor-section input:not([type="hidden"]):hover,
.frontend-editor-section textarea:hover,
.frontend-project-editor input:not([type="hidden"]):hover,
.frontend-project-editor textarea:hover {
  background: rgba(255, 255, 255, 0.065);
  border-color: rgba(255, 255, 255, 0.22);
}

.login-card button {
  margin-top: 22px;
  width: 100%;
}

.form-message {
  color: var(--purple);
  min-height: 22px;
}

.admin-heading {
  align-items: end;
  gap: 24px;
}

.admin-heading .admin-stats-grid {
  flex: 1;
  margin: 0;
  max-width: 980px;
}

.admin-heading .analytics-summary-grid {
  flex: 1;
  margin: 0;
  max-width: 980px;
}

.admin-stats-grid,
.analytics-summary-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, 1fr);
}

.admin-stats-grid article,
.analytics-summary-grid article {
  padding: 12px 16px;
}

.admin-stats-grid strong,
.analytics-summary-grid strong {
  color: #fff;
  display: block;
  font-size: 22px;
  line-height: 1;
  margin: 8px 0 4px;
}

.admin-stats-grid p,
.analytics-summary-grid p {
  color: rgba(171, 171, 171, 0.76);
  font-size: 12px;
  margin: 0;
}

.admin-layout {
  align-items: start;
  display: grid;
  gap: 24px;
  grid-template-columns: 430px minmax(0, 1fr);
}

.analytics-dashboard {
  margin-top: 0;
  padding: 24px;
}

.analytics-head {
  align-items: center;
}

.analytics-actions {
  align-items: center;
  display: flex;
  flex-direction: row;
  gap: 12px;
  text-align: left;
}

.analytics-actions small {
  color: rgba(171, 171, 171, 0.72);
  font-size: 12px;
}

.analytics-card {
  padding: 18px;
}

.analytics-layout {
  display: grid;
  gap: 18px;
  grid-template-columns: 1.15fr repeat(3, 1fr);
}

.analytics-card h3 {
  color: var(--silver);
  font-size: 18px;
  margin: 12px 0 16px;
}

.analytics-bars {
  align-items: end;
  display: grid;
  gap: 9px;
  grid-template-columns: repeat(7, 1fr);
  height: 180px;
}

.analytics-bars i {
  background: linear-gradient(180deg, rgba(168, 85, 247, 0.84), rgba(139, 92, 246, 0.16));
  border-radius: 999px 999px 4px 4px;
  min-height: 12px;
  position: relative;
}

.analytics-bars em {
  color: rgba(232, 232, 232, 0.72);
  font-size: 11px;
  font-style: normal;
  left: 50%;
  position: absolute;
  top: -20px;
  transform: translateX(-50%);
}

.analytics-bars span {
  bottom: -28px;
  color: rgba(171, 171, 171, 0.68);
  font-size: 10px;
  left: 50%;
  letter-spacing: 0;
  position: absolute;
  transform: translateX(-50%);
}

.wecom-settings {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  gap: 10px;
  margin-top: 58px;
  padding-top: 14px;
}

.wecom-settings-head {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.wecom-settings-head span {
  color: var(--violet);
  display: block;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.wecom-settings-head h4 {
  color: var(--silver);
  font-size: 16px;
  font-weight: 760;
  line-height: 1.2;
  margin: 6px 0 0;
}

.wecom-actions,
.wecom-footer > div {
  align-items: center;
  display: flex;
  gap: 8px;
}

.wecom-settings button {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: rgba(232, 232, 232, 0.88);
  cursor: pointer;
  font-size: 12px;
  height: 30px;
  min-width: 76px;
  padding: 0 10px;
}

.wecom-settings button.is-active,
.wecom-settings button:hover {
  border-color: rgba(168, 85, 247, 0.48);
  color: var(--silver);
}

.wecom-settings p,
.wecom-footer small {
  color: rgba(171, 171, 171, 0.72);
  font-size: 11px;
  line-height: 1.5;
  margin: 0;
}

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

.wecom-form-grid label {
  color: rgba(232, 232, 232, 0.74);
  display: grid;
  font-size: 11px;
  gap: 5px;
}

.wecom-form-grid input {
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: var(--silver);
  font-size: 12px;
  height: 30px;
  min-width: 0;
  padding: 0 10px;
}

.wecom-form-grid input:focus {
  border-color: rgba(168, 85, 247, 0.52);
  outline: 0;
}

.wecom-form-grid .wide-field {
  grid-column: 1 / -1;
}

.wecom-footer {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.analytics-list {
  display: grid;
  gap: 10px;
}

.analytics-row {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: grid;
  gap: 8px;
  padding: 0 0 10px;
}

.analytics-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.analytics-row strong {
  color: var(--silver);
  font-size: 14px;
  line-height: 1.35;
}

.analytics-row p {
  color: rgba(171, 171, 171, 0.76);
  font-size: 12px;
  margin: 0;
}

.analytics-empty {
  color: rgba(171, 171, 171, 0.72);
  font-size: 13px;
  line-height: 1.7;
  margin: 0;
}

.admin-workspace.is-analytics-active {
  height: 100vh;
  overflow: hidden;
  padding-bottom: 14px;
  padding-top: 84px;
}

.admin-workspace.is-analytics-active > [data-admin-analytics-view] {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}

.admin-workspace.is-analytics-active .admin-heading {
  align-items: center;
  flex: 0 0 auto;
  margin-bottom: 12px;
}

.admin-workspace.is-analytics-active .admin-heading h2 {
  font-size: 46px;
  margin-top: 8px;
}

.admin-workspace.is-analytics-active .analytics-summary-grid {
  gap: 10px;
}

.admin-workspace.is-analytics-active .analytics-summary-grid article {
  padding: 9px 14px;
}

.admin-workspace.is-analytics-active .analytics-summary-grid strong {
  font-size: 19px;
  margin: 6px 0 3px;
}

.admin-workspace.is-analytics-active .analytics-dashboard {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
  padding: 14px;
}

.admin-workspace.is-analytics-active .admin-panel-head {
  margin-bottom: 10px;
}

.admin-workspace.is-analytics-active .admin-panel-head h3 {
  font-size: 18px;
  margin-top: 8px;
}

.admin-workspace.is-analytics-active .analytics-layout {
  flex: 1;
  gap: 12px;
  min-height: 0;
}

.admin-workspace.is-analytics-active .analytics-card {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 14px;
}

.admin-workspace.is-analytics-active .analytics-card h3 {
  font-size: 16px;
  margin: 8px 0 12px;
}

.admin-workspace.is-analytics-active .analytics-bars {
  height: clamp(86px, 14vh, 124px);
}

.admin-workspace.is-analytics-active .analytics-trend-card {
  scrollbar-color: rgba(168, 85, 247, 0.18) transparent;
  scrollbar-width: thin;
  overflow-y: auto;
}

.admin-workspace.is-analytics-active .wecom-settings {
  gap: 8px;
  margin-top: 58px;
  padding-top: 12px;
}

.admin-workspace.is-analytics-active .wecom-settings-head {
  align-items: start;
}

.admin-workspace.is-analytics-active .wecom-actions,
.admin-workspace.is-analytics-active .wecom-footer > div {
  gap: 6px;
}

.admin-workspace.is-analytics-active .wecom-form-grid {
  gap: 7px;
}

.admin-workspace.is-analytics-active .wecom-form-grid input {
  height: 28px;
}

.admin-workspace.is-analytics-active .wecom-settings-head span {
  font-size: 9px;
}

.admin-workspace.is-analytics-active .wecom-settings-head h4 {
  font-size: 16px;
}

.admin-workspace.is-analytics-active .analytics-list {
  min-height: 0;
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-color: rgba(168, 85, 247, 0.18) transparent;
  scrollbar-width: thin;
}

.admin-workspace.is-analytics-active .analytics-trend-card:hover,
.admin-workspace.is-analytics-active .analytics-list:hover {
  scrollbar-color: rgba(168, 85, 247, 0.34) transparent;
}

.admin-workspace.is-analytics-active .analytics-trend-card::-webkit-scrollbar,
.admin-workspace.is-analytics-active .analytics-list::-webkit-scrollbar {
  width: 5px;
}

.admin-workspace.is-analytics-active .analytics-trend-card::-webkit-scrollbar-track,
.admin-workspace.is-analytics-active .analytics-list::-webkit-scrollbar-track {
  background: transparent;
}

.admin-workspace.is-analytics-active .analytics-trend-card::-webkit-scrollbar-thumb,
.admin-workspace.is-analytics-active .analytics-list::-webkit-scrollbar-thumb {
  background: rgba(168, 85, 247, 0.16);
  border-radius: 999px;
}

.admin-workspace.is-analytics-active .analytics-trend-card:hover::-webkit-scrollbar-thumb,
.admin-workspace.is-analytics-active .analytics-list:hover::-webkit-scrollbar-thumb {
  background: rgba(168, 85, 247, 0.34);
}

.admin-workspace.is-analytics-active .analytics-row {
  gap: 5px;
  padding-bottom: 8px;
}

.admin-workspace.is-analytics-active .analytics-row strong {
  font-size: 13px;
}

.admin-workspace.is-analytics-active .analytics-row p {
  font-size: 11px;
  line-height: 1.45;
}

.admin-list-panel,
.admin-editor {
  padding: 24px;
}

.admin-list-panel {
  position: sticky;
  top: 122px;
}

.admin-panel-head {
  align-items: start;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin-bottom: 18px;
}

.admin-panel-head h3 {
  margin-bottom: 0;
}

.admin-post-list {
  display: grid;
  gap: 12px;
}

.admin-post-item {
  align-items: center;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid transparent;
  border-radius: 14px;
  color: inherit;
  cursor: pointer;
  display: grid;
  gap: 14px;
  grid-template-columns: 88px 1fr;
  padding: 10px;
  text-align: left;
  transition: background 180ms ease, border-color 180ms ease;
}

.admin-post-item:hover,
.admin-post-item.is-active {
  background: rgba(139, 92, 246, 0.12);
  border-color: rgba(139, 92, 246, 0.35);
}

.admin-post-item img {
  aspect-ratio: 1 / 1;
  border-radius: 10px;
}

.admin-post-item span,
.admin-post-item small {
  color: rgba(171, 171, 171, 0.74);
  display: block;
  font-size: 12px;
}

.admin-post-item strong {
  color: var(--silver);
  display: block;
  font-size: 15px;
  line-height: 1.45;
  margin: 6px 0;
}

.ghost-button {
  margin-top: 18px;
  width: 100%;
}

.editor-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.danger-button {
  background: rgba(244, 63, 94, 0.12) !important;
  border-color: rgba(244, 63, 94, 0.32) !important;
}

.form-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) 92px 92px 158px max-content;
}

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

.wide-field {
  grid-column: 1 / -1;
}

.featured-toggle,
.cover-upload-button {
  min-height: 36px;
  padding: 8px 13px;
}

.featured-field {
  align-items: center;
  display: flex;
  padding-top: 28px;
}

.cover-upload-button {
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  cursor: pointer;
  display: flex;
  font: inherit;
  font-weight: 800;
  justify-content: center;
  min-height: 50px;
  text-align: center;
  width: 100%;
}

.cover-upload-button:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(139, 92, 246, 0.5);
  color: #fff;
}

.status-dropdown {
  position: relative;
}

.status-dropdown-trigger {
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  cursor: pointer;
  display: flex;
  font: inherit;
  font-weight: 800;
  justify-content: center;
  min-height: 50px;
  padding: 12px 28px 12px 10px;
  position: relative;
  text-align: center;
  width: 100%;
}

.status-dropdown-trigger:hover,
.status-dropdown-trigger[aria-expanded="true"] {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(139, 92, 246, 0.5);
}

.status-dropdown-trigger i {
  border-bottom: 2px solid rgba(232, 232, 232, 0.72);
  border-right: 2px solid rgba(232, 232, 232, 0.72);
  height: 8px;
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-55%) rotate(45deg);
  width: 8px;
}

.status-dropdown-menu {
  background: rgba(18, 18, 18, 0.96);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.52);
  display: grid;
  gap: 4px;
  left: 0;
  padding: 6px;
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 180;
}

.status-dropdown-menu[hidden] {
  display: none;
}

.status-dropdown-menu button {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 9px;
  color: rgba(232, 232, 232, 0.68);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  padding: 10px 12px;
  text-align: center;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.status-dropdown-menu button:hover,
.status-dropdown-menu button.is-active {
  background: rgba(139, 92, 246, 0.22);
  border-color: rgba(139, 92, 246, 0.5);
  color: #fff;
}

.taxonomy-inline-row,
.seo-grid,
.editor-block,
.editor-preview {
  margin-top: 18px;
}

.taxonomy-inline-row {
  align-items: start;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.taxonomy-inline-row .taxonomy-editor,
.taxonomy-inline-row .tag-editor {
  flex: 1 1 420px;
  margin-top: 0;
  min-width: 0;
}

.taxonomy-add-row {
  align-items: center;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.taxonomy-add-row input {
  min-height: 36px;
  padding: 9px 12px;
}

.taxonomy-add-row button {
  min-height: 36px;
  padding: 8px 13px;
}

.taxonomy-pill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.taxonomy-item {
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: context-menu;
  display: inline-flex;
  gap: 4px;
  min-width: 0;
  padding: 3px;
  width: auto;
}

.taxonomy-item .taxonomy-select {
  background: transparent;
  border: 0;
  border-radius: 999px;
  color: rgba(232, 232, 232, 0.82);
  display: inline-flex;
  font-size: 13px;
  font-weight: 750;
  gap: 6px;
  padding: 5px 8px;
  white-space: nowrap;
  width: auto;
}

.taxonomy-pill-grid button {
  padding: 5px 8px;
}

.taxonomy-delete {
  color: rgba(255, 180, 190, 0.88);
}

.tag-check-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tag-check-item {
  min-height: 28px;
  padding: 5px 9px;
}

.taxonomy-context-menu {
  background: rgba(18, 18, 18, 0.96);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
  display: grid;
  gap: 6px;
  padding: 8px;
  position: fixed;
  width: 130px;
  z-index: 220;
}

.taxonomy-context-menu[hidden] {
  display: none;
}

.taxonomy-context-menu button {
  background: transparent;
  border: 0;
  border-radius: 10px;
  color: rgba(232, 232, 232, 0.86);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 750;
  padding: 10px 12px;
  text-align: left;
}

.taxonomy-context-menu button:hover {
  background: rgba(139, 92, 246, 0.22);
  color: #fff;
}

.taxonomy-context-menu button[data-taxonomy-action="delete"] {
  color: rgba(255, 180, 190, 0.9);
}

.editor-tools {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: space-between;
  margin-bottom: 12px;
}

.editor-tools span {
  margin-right: auto;
}

.editor-block textarea {
  display: block;
  min-height: 152px;
  resize: vertical;
  width: 100%;
}

.editor-preview {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
}

.preview-card {
  display: grid;
  gap: 18px;
  grid-template-columns: 220px 1fr;
  margin-top: 16px;
}

.preview-card img {
  aspect-ratio: 16 / 10;
  border-radius: 14px;
}

.preview-card h4,
.preview-content h4 {
  color: var(--silver);
  font-size: 24px;
  margin: 8px 0 10px;
}

.preview-card p,
.preview-content p,
.preview-content figcaption {
  color: rgba(171, 171, 171, 0.82);
  line-height: 1.8;
  margin: 0;
}

.preview-content {
  border-top: 1px solid var(--line);
  margin-top: 18px;
  padding-top: 18px;
}

.preview-content figure {
  background: #080808;
  border: 1px solid var(--line);
  border-radius: 14px;
  margin: 18px 0;
  overflow: hidden;
}

.preview-content img,
.preview-content video {
  display: block;
  max-height: 420px;
  object-fit: contain;
  width: 100%;
}

.frontend-heading-actions {
  align-items: center;
  display: flex;
  gap: 14px;
}

.frontend-heading-actions small,
.frontend-upload-actions small {
  color: var(--muted);
}

.frontend-heading-actions button,
.frontend-editor-section .admin-panel-head button,
.frontend-upload-actions button {
  background: var(--silver);
  border: 0;
  border-radius: 999px;
  color: #050505;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  padding: 10px 16px;
}

.frontend-editor {
  align-items: stretch;
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
}

.frontend-editor-section,
.frontend-project-editor {
  background: rgba(16, 16, 16, 0.84);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
}

.frontend-editor > .frontend-editor-section {
  grid-column: 1 / -1;
}

/* Keep the editor sections in the same order as the public navigation. */
.frontend-editor > .frontend-editor-section:nth-child(1) { order: 1; }
.frontend-editor > .frontend-editor-section:nth-child(2) { order: 2; }
.frontend-editor > .frontend-editor-section:nth-child(6) { order: 3; }
.frontend-editor > .frontend-editor-section:nth-child(7) { order: 4; }
.frontend-editor > .frontend-editor-section:nth-child(3) { order: 5; }
.frontend-editor > .frontend-editor-section:nth-child(4) { order: 6; }
.frontend-editor > .frontend-editor-section:nth-child(5) { order: 7; }
.frontend-editor > .frontend-editor-section:nth-child(8) { order: 8; }
.frontend-editor > .frontend-editor-section:nth-child(9) { order: 9; }

.frontend-contact-editor-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.privacy-header-toggle {
  align-items: center;
  display: flex !important;
  gap: 8px !important;
  white-space: nowrap;
}

.privacy-header-toggle input {
  accent-color: var(--violet);
  height: 18px;
  width: 18px;
}

.frontend-editor-section .form-grid,
.frontend-project-editor .form-grid {
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.frontend-project-editor .form-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 200px;
}

.frontend-hero-grid {
  align-items: start;
  grid-template-columns: minmax(90px, 0.45fr) minmax(90px, 0.45fr) minmax(0, 2fr) !important;
}

.frontend-hero-grid textarea {
  min-height: 40px;
}

.frontend-about-top-grid {
  align-items: start;
  grid-template-columns: minmax(110px, 140px) minmax(0, 1fr) minmax(180px, 230px) !important;
}

.frontend-about-top-grid textarea {
  min-height: 40px;
}

.frontend-editor textarea {
  overflow: auto;
  resize: vertical;
}

.frontend-hero-grid label:nth-child(1),
.frontend-hero-grid label:nth-child(2) {
  font-size: inherit;
}

.frontend-hero-grid label:nth-child(1) input,
.frontend-hero-grid label:nth-child(2) input {
  font-size: inherit;
  padding: 9px 11px;
}

.frontend-editor-section .admin-panel-head,
.frontend-project-editor .admin-panel-head {
  margin-bottom: 12px;
}

.frontend-editor-section label,
.frontend-project-editor label,
.frontend-image-field {
  display: grid;
  gap: 5px;
}

.frontend-editor-section input,
.frontend-editor-section textarea,
.frontend-project-editor input,
.frontend-project-editor textarea {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  font: inherit;
  line-height: 1.5;
  outline: 0;
  padding: 9px 11px;
  transition: border-color 180ms ease, background 180ms ease;
  width: 100%;
}

.frontend-editor-section input:focus,
.frontend-editor-section textarea:focus,
.frontend-project-editor input:focus,
.frontend-project-editor textarea:focus {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(139, 92, 246, 0.5);
}

.frontend-editor-section textarea,
.frontend-project-editor textarea {
  min-height: 40px;
  max-width: 100%;
  resize: vertical;
}

.frontend-editor-section textarea[data-frontend-field="about.sectionIntro"],
.frontend-editor-section textarea[data-frontend-field="about.bio"] {
  box-sizing: border-box;
  justify-self: start;
  margin-left: 0;
  width: 100%;
}

.frontend-subsection {
  border-top: 1px solid var(--line);
  margin-top: 14px;
  padding-top: 12px;
}

.frontend-subsection-title {
  align-items: flex-start;
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
}

.frontend-subsection-title span {
  color: var(--violet);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.frontend-subsection-title strong {
  color: rgba(232, 232, 232, 0.82);
  font-size: 26px;
  font-weight: 800;
  line-height: 1.15;
}

.frontend-navigation-grid {
  gap: 6px !important;
  grid-template-columns: repeat(9, minmax(0, 1fr)) !important;
}

.frontend-navigation-grid label {
  font-size: 11px;
  gap: 4px;
}

.frontend-navigation-grid input {
  border-radius: 8px;
  font-size: 12px;
  min-height: 32px;
  min-width: 0;
  padding: 5px 6px;
}

.frontend-about-cards,
.frontend-strength-editors {
  display: grid;
  gap: 10px;
}

.frontend-about-cards {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.frontend-strength-editors {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.frontend-about-card-editor,
.frontend-strength-editor {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--line);
  border-radius: 12px;
  display: grid;
  gap: 8px;
  padding: 10px;
}

.frontend-about-card-editor > span,
.frontend-strength-editor > span {
  color: var(--violet);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.project-facts-editor {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.project-fact-editor {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--line);
  border-radius: 12px;
  display: grid;
  gap: 6px;
  padding: 10px 12px;
}

.project-fact-editor input:first-child {
  background: transparent;
  border: 0;
  color: var(--muted);
  font-size: 12px;
  padding: 2px 0;
}

.project-fact-editor input:last-child {
  background: transparent;
  border: 0;
  padding: 4px 0;
}

.frontend-content-card-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.frontend-content-card-grid.frontend-contact-editor-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.frontend-experience-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.frontend-content-card-editor {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--line);
  border-radius: 12px;
  display: grid;
  gap: 8px;
  padding: 10px;
}

.frontend-content-card-grid > .frontend-content-card-editor {
  display: flex;
  flex-direction: column;
}

.media-resource-inline {
  margin-top: auto;
}

.frontend-content-card-editor > span {
  color: var(--violet);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.frontend-content-card-editor button {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  color: var(--silver);
  cursor: pointer;
  font: inherit;
  padding: 8px 10px;
}

.media-resource-editor {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--line);
  border-radius: 12px;
  display: grid;
  gap: 10px;
  margin-top: 12px;
  padding: 12px;
}

.media-resource-head {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.media-resource-head strong {
  color: var(--silver);
  font-size: 13px;
}

.media-resource-head button,
.media-resource-row button {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: var(--silver);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  padding: 6px 10px;
}

.media-resource-list {
  display: grid;
  gap: 8px;
}

.media-resource-row {
  align-items: center;
  cursor: grab;
  display: grid;
  gap: 8px;
  grid-template-columns: 28px minmax(100px, 0.35fr) minmax(0, 1fr) repeat(3, max-content);
}

.media-resource-row.is-dragging {
  cursor: grabbing;
  opacity: 0.45;
}

.media-resource-row.is-drag-over {
  border-top: 2px solid var(--violet);
}

.media-resource-row > span {
  color: var(--violet);
  font-size: 11px;
  font-weight: 800;
}

.media-resource-remove {
  color: rgba(255, 180, 190, 0.9) !important;
}

.media-resource-row button {
  padding: 5px 8px;
  white-space: nowrap;
}

.media-preview-resource {
  grid-template-columns: 28px minmax(100px, 0.35fr) 92px repeat(3, max-content);
}

.media-resource-preview {
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: block;
  height: 58px;
  object-fit: cover;
  width: 92px;
}

.media-resource-preview:not([src]),
.media-resource-preview[src=""] {
  opacity: 0.35;
}

.media-resource-link-input {
  min-width: 180px;
}

.media-resource-drag-handle {
  cursor: grab !important;
  font-size: 16px !important;
  padding: 3px 8px !important;
}

.project-fact-editor input {
  min-width: 0;
  padding: 7px 9px;
}

.frontend-editor-section > .wide-field {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.frontend-project-list {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.frontend-project-editor .admin-panel-head {
  margin-bottom: 18px;
}

.frontend-project-editor .admin-panel-head h3 {
  margin: 5px 0 0;
}

.frontend-project-delete {
  background: rgba(120, 24, 40, 0.34) !important;
  border: 1px solid rgba(255, 104, 132, 0.56) !important;
  color: #ff9bad !important;
}

.frontend-editor-section .admin-panel-head .frontend-project-delete:hover {
  background: rgba(180, 35, 62, 0.58) !important;
  border-color: rgba(255, 142, 160, 0.82) !important;
  color: #fff0f2 !important;
}

.project-card-size-control {
  color: rgba(232, 232, 232, 0.78);
  display: grid;
  font-size: 13px;
  font-weight: 750;
  gap: 5px;
}

.project-card-size-options {
  display: flex;
  gap: 8px;
}

.project-card-size-options button {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  padding: 9px 11px;
}

.project-card-size-options button.is-active {
  background: rgba(139, 92, 246, 0.2);
  border-color: rgba(139, 92, 246, 0.72);
  color: #fff;
}

.project-summary-field {
  grid-column: span 2;
}

.frontend-image-field {
  color: rgba(232, 232, 232, 0.78);
  display: grid;
  font-size: 13px;
  font-weight: 750;
}

.frontend-image-control {
  align-items: center;
  display: flex;
  gap: 10px;
  min-height: 54px;
}

.frontend-image-control img {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 10px;
  height: 54px;
  object-fit: cover;
  width: 82px;
}

.frontend-image-control img[src=""] {
  opacity: 0.25;
}

.frontend-image-control img.is-empty {
  display: none;
}

.frontend-gallery-preview {
  display: grid;
  gap: 8px;
  min-height: 10px;
}

.project-image-resource {
  grid-template-columns: 28px minmax(120px, 0.5fr) 88px repeat(2, max-content);
}

.project-resource-thumb {
  border: 1px solid var(--line);
  border-radius: 8px;
  height: 58px;
  object-fit: cover;
  width: 88px;
}

.frontend-gallery-item {
  height: 66px;
  position: relative;
  width: 88px;
}

.frontend-gallery-item img {
  border: 1px solid var(--line);
  border-radius: 9px;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.frontend-gallery-item button {
  align-items: center;
  background: rgba(0, 0, 0, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  display: flex;
  height: 20px;
  justify-content: center;
  line-height: 1;
  padding: 0;
  position: absolute;
  right: 4px;
  top: 4px;
  width: 20px;
}

.frontend-upload-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.frontend-upload-actions button {
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--silver);
}

@media (max-width: 720px) {
  .frontend-heading-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .frontend-editor-section,
  .frontend-project-editor {
    padding: 16px;
  }

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

  .frontend-editor-section .form-grid,
  .frontend-project-editor .form-grid {
    grid-template-columns: 1fr;
  }

  .project-summary-field {
    grid-column: 1 / -1;
  }

  .frontend-hero-grid {
    grid-template-columns: 1fr !important;
  }

  .frontend-about-top-grid {
    grid-template-columns: 1fr !important;
  }

  .frontend-navigation-grid {
    grid-template-columns: repeat(9, minmax(72px, 1fr)) !important;
    overflow-x: auto;
  }

  .frontend-about-cards,
  .frontend-strength-editors {
    grid-template-columns: 1fr;
  }

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

  .frontend-experience-grid {
    grid-template-columns: 1fr 1fr;
  }
}

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

  .blog-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

  .blog-pagination {
    gap: 8px;
  }

  .blog-pagination button {
    min-width: 38px;
    padding: 9px 11px;
  }
}
