@font-face {
  font-family: "Gyrotrope Extra Bold";
  src: url("../fonts/gyrotrope-extrabold.otf") format("opentype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --coral: #ea5a5b;
  --accent-rgb: 234, 90, 91;
  --wine: #a24b5e;
  --bg: #0c0a0d;
  --bg-elevated: #161218;
  --text: #f4eef1;
  --text-muted: #9a8a94;
  --header-social-border: rgba(var(--accent-rgb), 0.45);
  --header-social-hover-bg: rgba(var(--accent-rgb), 0.12);
  --gradient: linear-gradient(135deg, var(--coral) 0%, var(--wine) 100%);
  --font-display: "Archivo Black", sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", monospace;
  --lab-sick: #5fd38f;
  --lab-mold: #8b6fd4;
  --lab-clinical: #4ecdc4;
  --lab-warning: #e8d44d;
}

html[data-theme="light"] {
  --coral: #0066fe;
  --accent-rgb: 0, 102, 254;
  --wine: #004fcc;
  --gradient: linear-gradient(135deg, var(--coral) 0%, var(--wine) 100%);
  --bg: #ffffff;
  --bg-elevated: #f3f5fa;
  --text: #120f14;
  --text-muted: rgba(18, 15, 20, 0.68);
}

html[data-page="blog"] {
  --coral: #f39200;
  --accent-rgb: 243, 146, 0;
  --wine: #f39200;
  --gradient: none;
}

html[data-page="blog"][data-theme="dark"] {
  --coral: #f39200;
  --accent-rgb: 243, 146, 0;
  --wine: #f39200;
  --bg: #000000;
  --bg-elevated: #000000;
  --text: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.72);
  --blog-panel-bg: #000000;
  --blog-panel-bg-alt: #000000;
  --blog-panel-border: rgba(243, 146, 0, 0.55);
  --blog-panel-border-strong: #f39200;
  --blog-panel-shadow: transparent;
  --blog-text-strong: #ffffff;
  --blog-text: #ffffff;
  --blog-text-muted: rgba(255, 255, 255, 0.78);
  --blog-text-soft: rgba(255, 255, 255, 0.9);
  --blog-link: #ffffff;
  --blog-link-hover: #ffffff;
  --blog-latest-card-bg: #000000;
  --blog-latest-card-shadow: rgba(184, 104, 0, 0.18);
}

html[data-page="blog"][data-theme="light"] {
  --coral: #f39200;
  --accent-rgb: 243, 146, 0;
  --wine: #f39200;
  --bg: #ffffff;
  --bg-elevated: #ffffff;
  --text: #000000;
  --text-muted: rgba(0, 0, 0, 0.72);
  --blog-panel-bg: #ffffff;
  --blog-panel-bg-alt: #ffffff;
  --blog-panel-border: rgba(243, 146, 0, 0.55);
  --blog-panel-border-strong: #f39200;
  --blog-panel-shadow: transparent;
  --blog-text-strong: #000000;
  --blog-text: #000000;
  --blog-text-muted: rgba(0, 0, 0, 0.8);
  --blog-text-soft: rgba(0, 0, 0, 0.9);
  --blog-link: #000000;
  --blog-link-hover: #000000;
  --blog-latest-card-bg: #ffffff;
  --blog-latest-card-shadow: rgba(184, 104, 0, 0.18);
}

html[data-theme="light"] .bg-scene__lab {
  background-color: #ffffff;
  background-image:
    radial-gradient(ellipse 55% 42% at 12% 78%, rgba(95, 211, 143, 0.11) 0%, transparent 58%),
    radial-gradient(ellipse 48% 38% at 92% 18%, rgba(139, 111, 212, 0.09) 0%, transparent 52%),
    radial-gradient(ellipse 35% 50% at 48% 42%, rgba(0, 102, 254, 0.06) 0%, transparent 48%),
    radial-gradient(ellipse 28% 22% at 72% 65%, rgba(78, 205, 196, 0.07) 0%, transparent 55%),
    radial-gradient(circle at 30% 22%, rgba(0, 102, 254, 0.035) 0%, transparent 35%),
    repeating-linear-gradient(
      0deg,
      rgba(12, 10, 13, 0.06),
      rgba(12, 10, 13, 0.06) 1px,
      transparent 1px,
      transparent 64px
    ),
    repeating-linear-gradient(
      90deg,
      rgba(95, 211, 143, 0.05),
      rgba(95, 211, 143, 0.05) 1px,
      transparent 1px,
      transparent 72px
    );
  background-size:
    100% 100%,
    100% 100%,
    100% 100%,
    100% 100%,
    100% 64px,
    72px 100%;
  /* Evita que el `hue-rotate` empuje los azules hacia rojos en modo claro */
  animation: lab-blobs-light 22s ease-in-out infinite alternate;
}

html[data-theme="light"] .bg-scene__lab::before {
  opacity: 0.28;
  mix-blend-mode: multiply;
}

html[data-theme="light"] .bg-scene__lab::after {
  opacity: 0.16;
  mix-blend-mode: multiply;
}

html[data-theme="light"] #wireframe-canvas {
  opacity: 0.35;
}

html[data-theme="light"] .bg-scene__scanlines {
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(12, 10, 13, 0.08) 2px,
    rgba(12, 10, 13, 0.08) 3px
  );
  opacity: 0.32;
  mix-blend-mode: multiply;
}

html[data-theme="light"] .bg-scene__vignette {
  background: radial-gradient(
    ellipse 75% 65% at 50% 45%,
    transparent 0%,
    rgba(0, 0, 0, 0.05) 55%,
    rgba(0, 0, 0, 0.1) 100%
  );
}

html[data-theme="light"] .site-header {
  border-bottom: 1px solid rgba(0, 102, 254, 0.22);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(243, 245, 250, 0.9) 100%);
}

html[data-theme="light"] .hero__frame {
  box-shadow:
    12px 12px 0 rgba(0, 102, 254, 0.15),
    -8px 24px 48px rgba(0, 0, 0, 0.18);
}

html[data-theme="light"] .btn--primary {
  color: #ffffff;
  box-shadow: 4px 4px 0 rgba(0, 102, 254, 0.45);
}

html[data-theme="light"] .btn--primary:hover {
  box-shadow: 6px 6px 0 rgba(0, 102, 254, 0.35);
}

html[data-theme="light"] .btn--outline:hover {
  background: rgba(0, 102, 254, 0.12);
}

html[data-theme="light"] .hero__title-line--accent {
  filter: drop-shadow(2px 4px 0 rgba(0, 102, 254, 0.35));
}

html[data-theme="light"] .section__stamp {
  -webkit-text-stroke: 1px rgba(0, 102, 254, 0.55);
}

html[data-theme="light"] .specialties {
  background:
    radial-gradient(ellipse 80% 50% at 80% 20%, rgba(0, 102, 254, 0.12), transparent),
    var(--bg);
}

html[data-theme="light"] .card {
  border: 1px solid rgba(0, 102, 254, 0.35);
}

html[data-theme="light"] .manifesto__noise {
  background: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 8px,
    rgba(0, 102, 254, 0.03) 8px,
    rgba(0, 102, 254, 0.03) 9px
  );
}

html[data-theme="light"] .projects {
  background:
    radial-gradient(ellipse 60% 40% at 10% 80%, rgba(0, 102, 254, 0.14), transparent),
    var(--bg);
}

html[data-theme="light"] .project-card {
  border: 1px solid rgba(0, 102, 254, 0.4);
}

html[data-theme="light"] .project-card:hover {
  box-shadow: 8px 8px 0 rgba(0, 102, 254, 0.15);
}

html[data-theme="light"] .project-card__media {
  border-bottom: 2px solid rgba(0, 102, 254, 0.25);
}

html[data-theme="light"] .lab {
  border-top: 1px solid rgba(0, 102, 254, 0.2);
  border-bottom: 1px solid rgba(0, 102, 254, 0.2);
}

html[data-theme="light"] .lab-item {
  border-bottom: 1px dashed rgba(0, 102, 254, 0.35);
}

html[data-theme="light"] .blog {
  background:
    radial-gradient(ellipse 50% 60% at 90% 30%, rgba(0, 102, 254, 0.1), transparent),
    var(--bg);
}

html[data-theme="light"] .blog-card {
  border: 1px solid rgba(0, 102, 254, 0.35);
}

html[data-theme="light"] .blog-card--accent {
  background: linear-gradient(165deg, rgba(0, 102, 254, 0.09), var(--bg-elevated));
  border-color: rgba(0, 102, 254, 0.45);
}

html[data-theme="light"] .blog-card__title a {
  background: linear-gradient(transparent 88%, rgba(0, 102, 254, 0.35) 88%);
}

html[data-theme="light"] .lore {
  background:
    linear-gradient(180deg, transparent 0%, rgba(0, 102, 254, 0.06) 50%, transparent 100%),
    var(--bg);
}

html[data-theme="light"] .lore-node--flip {
  box-shadow: inset 0 0 0 1px rgba(0, 102, 254, 0.35);
}

html[data-theme="light"] .contact__box {
  border: 2px dashed rgba(0, 102, 254, 0.5);
  background: linear-gradient(160deg, rgba(0, 102, 254, 0.08), rgba(0, 102, 254, 0.05));
}

html[data-theme="light"] .site-footer {
  border-top: 1px solid rgba(0, 102, 254, 0.2);
}

html[data-theme="light"] .btn--ghost {
  border: 2px dashed rgba(18, 15, 20, 0.22);
}

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

html {
  scroll-behavior: smooth;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  overflow-x: clip;
  overscroll-behavior-x: none;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  overflow-x: clip;
  overscroll-behavior-x: none;
}

.bg-scene {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.bg-scene__lab {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-color: #070608;
  background-image:
    radial-gradient(ellipse 55% 42% at 12% 78%, rgba(95, 211, 143, 0.11) 0%, transparent 58%),
    radial-gradient(ellipse 48% 38% at 92% 18%, rgba(139, 111, 212, 0.1) 0%, transparent 52%),
    radial-gradient(ellipse 35% 50% at 48% 42%, rgba(234, 90, 91, 0.06) 0%, transparent 48%),
    radial-gradient(ellipse 28% 22% at 72% 65%, rgba(78, 205, 196, 0.07) 0%, transparent 55%),
    radial-gradient(circle at 30% 22%, rgba(232, 212, 77, 0.04) 0%, transparent 35%),
    repeating-linear-gradient(
      0deg,
      rgba(12, 10, 13, 0.4),
      rgba(12, 10, 13, 0.4) 1px,
      transparent 1px,
      transparent 64px
    ),
    repeating-linear-gradient(
      90deg,
      rgba(95, 211, 143, 0.04),
      rgba(95, 211, 143, 0.04) 1px,
      transparent 1px,
      transparent 72px
    );
  background-size:
    100% 100%,
    100% 100%,
    100% 100%,
    100% 100%,
    100% 100%,
    100% 64px,
    72px 100%;
  animation: lab-blobs 22s ease-in-out infinite alternate;
}

.bg-scene__lab::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.42;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140' viewBox='0 0 140 140'%3E%3Cg fill='none' stroke='%235fd38f' stroke-width='0.6' opacity='0.35'%3E%3Ccircle cx='28' cy='36' r='14'/%3E%3Ccircle cx='28' cy='36' r='6'/%3E%3Cpath d='M95 22 L95 48 M82 35 L108 35'/%3E%3Ccircle cx='102' cy='92' r='18'/%3E%3Cpath d='M18 102 Q40 88 52 102 T86 98'/%3E%3Cpath d='M62 118 L62 132 M55 125 L69 125'/%3E%3C/g%3E%3Cg fill='%238b6fd4' opacity='0.2'%3E%3Ccircle cx='118' cy='38' r='2'/%3E%3Ccircle cx='44' cy='112' r='1.5'/%3E%3Ccircle cx='76' cy='64' r='2.5'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 140px 140px;
  mix-blend-mode: soft-light;
  animation: lab-drift 80s linear infinite;
}

.bg-scene__lab::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.22;
  background: repeating-linear-gradient(
    -18deg,
    transparent,
    transparent 24px,
    rgba(232, 212, 77, 0.06) 24px,
    rgba(232, 212, 77, 0.06) 25px
  );
  mix-blend-mode: overlay;
  animation: lab-flicker 7s steps(4, end) infinite;
  pointer-events: none;
}

@keyframes lab-blobs {
  0% {
    filter: hue-rotate(-6deg) saturate(1.05);
    background-position:
      0% 0%,
      0% 0%,
      0% 0%,
      0% 0%,
      0% 0%,
      0 0,
      0 0;
  }
  100% {
    filter: hue-rotate(10deg) saturate(1.15);
    background-position:
      3% 2%,
      -2% 3%,
      1% -1%,
      -3% 2%,
      2% 1%,
      0 12px,
      14px 0;
  }
}

@keyframes lab-blobs-light {
  0% {
    filter: hue-rotate(0deg) saturate(1.04);
    background-position:
      0% 0%,
      0% 0%,
      0% 0%,
      0% 0%,
      0% 0%,
      0 0,
      0 0;
  }
  100% {
    filter: hue-rotate(0deg) saturate(1.08);
    background-position:
      3% 2%,
      -2% 3%,
      1% -1%,
      -3% 2%,
      2% 1%,
      0 12px,
      14px 0;
  }
}

@keyframes lab-blobs-mobile {
  0% {
    background-position:
      0% 0%,
      0% 0%,
      0% 0%,
      0% 0%,
      0% 0%,
      0 0,
      0 0;
  }
  100% {
    background-position:
      2% 1%,
      -1% 2%,
      1% -1%,
      -2% 1%,
      1% 1%,
      0 8px,
      10px 0;
  }
}

@keyframes lab-drift {
  from {
    transform: translate(0, 0);
  }
  to {
    transform: translate(-140px, -70px);
  }
}

@keyframes lab-flicker {
  0%,
  100% {
    opacity: 0.18;
  }
  40% {
    opacity: 0.26;
  }
  42% {
    opacity: 0.12;
  }
  44% {
    opacity: 0.24;
  }
}

#wireframe-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0.72;
}

.bg-scene__scanlines {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(12, 10, 13, 0.13) 2px,
    rgba(12, 10, 13, 0.13) 3px
  );
  mix-blend-mode: multiply;
  opacity: 0.45;
  pointer-events: none;
}

.bg-scene__vignette {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: radial-gradient(
    ellipse 75% 65% at 50% 45%,
    transparent 0%,
    rgba(12, 10, 13, 0.5) 55%,
    rgba(12, 10, 13, 0.92) 100%
  );
  pointer-events: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 4vw;
  border-bottom: 1px solid rgba(234, 90, 91, 0.15);
  background: linear-gradient(180deg, rgba(12, 10, 13, 0.95) 0%, rgba(12, 10, 13, 0.7) 100%);
  backdrop-filter: blur(8px);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.header__theme-btn {
  white-space: nowrap;
}

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

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  width: 42px;
  height: 38px;
  padding: 0;
  background: transparent;
  border: 1px solid color-mix(in srgb, var(--coral) 40%, transparent);
  cursor: pointer;
  border-radius: 6px;
  transition: transform 0.15s ease, border-color 0.2s ease;
}

.nav-toggle__line {
  width: 18px;
  height: 2px;
  background: var(--coral);
  border-radius: 999px;
  transition: transform 200ms ease, opacity 200ms ease;
  transform-origin: center;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__line:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

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

.nav-toggle[aria-expanded="true"] .nav-toggle__line:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.nav__extras {
  display: none;
}

.nav__social {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
}

.nav__theme {
  padding-top: 0.5rem;
  align-self: flex-start;
}

.nav-close {
  display: none;
}

.header__social {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.header__social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border: 1px solid var(--header-social-border);
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s, border-color 0.2s, transform 0.2s, background-color 0.2s;
}

.header__social-link svg {
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
}

.header__social-link[aria-label="LinkedIn"] svg {
  fill: currentColor;
  stroke: none;
}

.header__social-link:hover {
  color: var(--coral);
  border-color: var(--coral);
  background-color: var(--header-social-hover-bg);
  transform: translateY(-2px);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: inherit;
}

.logo__img {
  width: auto;
  height: 36px;
  display: block;
  object-fit: contain;
}

.logo__mark {
  font-family: var(--font-display);
  font-size: 1.15rem;
  padding: 0.35rem 0.55rem;
  background: var(--gradient);
  color: #0c0a0d;
  transform: rotate(-3deg);
  letter-spacing: -0.02em;
}

.logo__text {
  font-family: "Gyrotrope Extra Bold", "Archivo Black", var(--font-body);
  font-weight: 700;
  font-size: 0.96rem;
  letter-spacing: -0.03em;
  line-height: 1.1;
  white-space: normal;
  display: block;
  max-width: 10rem;
}

.nav {
  display: flex;
  gap: 1.75rem;
  flex-wrap: wrap;
}

.nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.2s, transform 0.2s;
}

.nav a:hover {
  color: var(--coral);
  transform: translateY(-2px);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.25rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border-radius: 0;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s;
}

.btn__arrow {
  display: inline-flex;
  margin-left: 0.45rem;
}

.btn__arrow svg {
  width: 1.05em;
  height: 1.05em;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.btn:active {
  transform: scale(0.98);
}

.btn--primary {
  background: var(--gradient);
  color: #0c0a0d;
  border-color: transparent;
  box-shadow: 4px 4px 0 rgba(162, 75, 94, 0.5);
}

.btn--primary:hover {
  box-shadow: 6px 6px 0 rgba(234, 90, 91, 0.4);
  transform: translate(-2px, -2px);
}

.btn--outline {
  border-color: var(--coral);
  color: var(--coral);
  background: transparent;
}

.btn--outline:hover {
  background: rgba(234, 90, 91, 0.12);
}

.btn--ghost {
  color: var(--text);
  border: 2px dashed rgba(244, 238, 241, 0.35);
  background: transparent;
}

.btn--ghost:hover {
  border-style: solid;
  border-color: var(--wine);
  color: var(--coral);
}

.btn--xl {
  padding: 1rem 1.75rem;
  font-size: 1.05rem;
}

.btn--lab {
  background: var(--gradient);
  color: #0c0a0d;
  box-shadow: 4px 4px 0 color-mix(in srgb, var(--wine) 55%, transparent);
  white-space: nowrap;
}

.btn--lab:hover {
  box-shadow: 6px 6px 0 color-mix(in srgb, var(--coral) 45%, transparent);
}

/* Theme toggle como switch (pista + perilla) */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.header__theme-btn {
  width: 62px;
  height: 34px;
  padding: 0;
  border-radius: 999px;
  font-size: 0;
  color: transparent;
  background: color-mix(in srgb, var(--coral) 16%, transparent);
  border-color: color-mix(in srgb, var(--coral) 35%, transparent);
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--coral) 20%, transparent),
    0 4px 14px rgba(0, 0, 0, 0.14);
  transition: background 200ms ease, border-color 200ms ease;
  position: relative;
}

.header__theme-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--coral) 22%, transparent),
    color-mix(in srgb, var(--coral) 6%, transparent)
  );
  opacity: 0.9;
  pointer-events: none;
  z-index: 0;
}

.header__theme-btn::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 5px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--text);
  transform: translateY(-50%) translateX(28px);
  transition: transform 200ms ease, background 200ms ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  pointer-events: none;
  z-index: 2;
}

.header__theme-btn .header__theme-icon {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 1;
  opacity: 0.5;
  transition: opacity 200ms ease, color 200ms ease;
}

.header__theme-btn .header__theme-icon svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.header__theme-btn .header__theme-icon--light {
  left: 10px;
}

.header__theme-btn .header__theme-icon--dark {
  right: 10px;
}

.header__theme-btn .header__theme-icon--dark svg {
  fill: currentColor;
  stroke: none;
}

.header__theme-btn:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 3px;
}

/* En modo oscuro: perilla a la izquierda */
html[data-theme="dark"] .header__theme-btn::after {
  transform: translateY(-50%) translateX(0);
}

html[data-theme="light"] .header__theme-btn .header__theme-icon--light {
  color: var(--coral);
  opacity: 1;
}

html[data-theme="light"] .header__theme-btn .header__theme-icon--dark {
  color: var(--text-muted);
  opacity: 0.45;
}

html[data-theme="dark"] .header__theme-btn .header__theme-icon--dark {
  color: var(--coral);
  opacity: 1;
}

html[data-theme="dark"] .header__theme-btn .header__theme-icon--light {
  color: var(--text-muted);
  opacity: 0.45;
}

/* Evita el hover "rojo" heredado de `.btn--outline:hover` */
.header__theme-btn.btn--outline:hover {
  background: color-mix(in srgb, var(--coral) 26%, transparent);
  border-color: color-mix(in srgb, var(--coral) 45%, transparent);
}

main {
  position: relative;
  z-index: 1;
}

.section {
  content-visibility: auto;
  contain-intrinsic-size: 900px;
}

.hero {
  content-visibility: visible;
  contain-intrinsic-size: auto;
}

.hero {
  padding: 3rem 4vw 5rem;
  min-height: min(92vh, 900px);
  display: flex;
  align-items: center;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
}

.hero__tag {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--coral);
  margin: 0 0 1rem;
  transform: skewX(-6deg);
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.25rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin: 0 0 1.25rem;
  text-transform: uppercase;
}

.hero__title-line {
  display: block;
}

.hero__title-line--accent {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(2px 4px 0 rgba(162, 75, 94, 0.4));
  transform: translateX(4px) rotate(-1deg);
}

.hero__lead {
  color: var(--text-muted);
  max-width: 32ch;
  margin: 0 0 2rem;
  font-size: 1.1rem;
}

.hero__lead-line {
  display: inline;
}

@media (min-width: 961px) {
  .hero__lead {
    max-width: 44ch;
  }

  .hero__lead-line {
    white-space: nowrap;
  }

  .hero__caption {
    max-width: none;
    white-space: nowrap;
  }
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero__visual {
  position: relative;
}

.hero__frame {
  position: relative;
  border: 3px solid;
  border-image: linear-gradient(145deg, var(--coral), var(--wine)) 1;
  padding: 0;
  background: var(--bg-elevated);
  transform: rotate(2deg);
  box-shadow:
    12px 12px 0 rgba(234, 90, 91, 0.2),
    -8px 24px 48px rgba(0, 0, 0, 0.45);
}

.hero__img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: saturate(1.15) contrast(1.05);
}

.hero__glitch {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 2;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--text);
  text-shadow:
    2px 0 var(--coral),
    -2px 0 var(--wine);
  animation: glitch-skew 4s infinite ease-in-out;
  pointer-events: none;
}

.hero__glitch::before,
.hero__glitch::after {
  content: attr(data-text);
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  overflow: hidden;
}

.hero__glitch::before {
  clip-path: inset(0 0 60% 0);
  color: var(--coral);
  transform: translate(-3px, -1px);
  opacity: 0.85;
}

.hero__glitch::after {
  clip-path: inset(55% 0 0 0);
  color: var(--wine);
  transform: translate(3px, 2px);
  opacity: 0.85;
}

@keyframes glitch-skew {
  0%,
  90%,
  100% {
    transform: translate(0) skew(0deg);
  }
  92% {
    transform: translate(-4px, 2px) skew(-2deg);
  }
  94% {
    transform: translate(3px, -1px) skew(1deg);
  }
}

.hero__badge {
  position: absolute;
  bottom: 1rem;
  right: -0.5rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 0.4rem 0.65rem;
  background: var(--bg);
  color: var(--coral);
  border: 1px solid var(--wine);
  transform: rotate(-5deg);
  z-index: 2;
}

.hero__caption {
  margin: 1.5rem 0 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  max-width: 28ch;
  transform: rotate(-1deg);
}

.section {
  padding: 4.5rem 4vw;
  position: relative;
}

.section__head {
  max-width: 1280px;
  margin: 0 auto 2.5rem;
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  text-transform: uppercase;
  letter-spacing: -0.03em;
  margin: 0 0 0.5rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section__sub {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.1rem;
}

.section__title--with-icon {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.section__title-icon {
  width: 1.1em;
  height: 1.1em;
  color: var(--coral);
  display: inline-flex;
  transform: rotate(-9deg) translateY(1px);
}

.section__title-icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.section__head--split {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.section__head__actions {
  display: flex;
  align-items: center;
  gap: 1rem 1.25rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.section__stamp {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(234, 90, 91, 0.55);
  text-transform: uppercase;
  transform: rotate(-8deg);
  user-select: none;
}

.specialties {
  background:
    radial-gradient(ellipse 80% 50% at 80% 20%, rgba(234, 90, 91, 0.12), transparent),
    var(--bg);
}

.card-stack {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 1280px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.card {
  background: var(--bg-elevated);
  padding: 1.75rem;
  border: 1px solid rgba(162, 75, 94, 0.35);
  position: relative;
  cursor: pointer;
  transition: transform 0.2s, border-color 0.2s;
}

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

.card__link-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  text-decoration: none;
}

.card:hover {
  border-color: var(--coral);
  transform: scale(1.02);
}

.card--tilt:nth-child(1) {
  transform: rotate(-1.5deg);
}

.card--tilt:nth-child(2) {
  transform: rotate(1deg) translateY(12px);
}

.card--tilt:nth-child(3) {
  transform: rotate(-0.8deg);
}

.card--tilt:hover {
  transform: rotate(0deg) scale(1.02) translateY(0);
}

.card__num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--wine);
  display: block;
  margin-bottom: 0.75rem;
}

.card__icon {
  width: 42px;
  height: 42px;
  margin-bottom: 0.9rem;
  color: var(--coral);
}

.card__icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 0 0 0.75rem;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

.card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.98rem;
}

.manifesto {
  padding: 5rem 4vw;
  overflow: hidden;
}

.manifesto__inner {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}

.manifesto__quote {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  line-height: 1.15;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  position: relative;
  z-index: 1;
}

.manifesto__quote em {
  font-style: normal;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.manifesto__author {
  display: inline-block;
  margin-top: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.62em;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.manifesto__noise {
  position: absolute;
  inset: -20%;
  background: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 8px,
    rgba(234, 90, 91, 0.03) 8px,
    rgba(234, 90, 91, 0.03) 9px
  );
  pointer-events: none;
  animation: noise-shift 20s linear infinite;
}

@keyframes noise-shift {
  to {
    transform: translate(40px, 40px);
  }
}

.projects {
  background:
    radial-gradient(ellipse 60% 40% at 10% 80%, rgba(162, 75, 94, 0.14), transparent),
    var(--bg);
}

.project-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.project-card {
  position: relative;
  background: var(--bg-elevated);
  border: 1px solid rgba(162, 75, 94, 0.4);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.project-card__link-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  text-decoration: none;
}

.project-card__media,
.project-card__body {
  position: relative;
  z-index: 1;
}

.project-card--a {
  transform: rotate(-1.2deg);
}

.project-card--b {
  transform: translateY(18px) rotate(0.8deg);
}

.project-card--c {
  transform: rotate(-0.5deg);
}

.project-card:hover {
  border-color: var(--coral);
  box-shadow: 8px 8px 0 rgba(234, 90, 91, 0.15);
  transform: rotate(0deg) translateY(0) scale(1.01);
}

.project-card__media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-bottom: 2px solid rgba(234, 90, 91, 0.25);
}

.project-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.1);
  transition: transform 0.35s ease;
}

.project-card:hover .project-card__media img {
  transform: scale(1.06);
}

.project-card__body {
  padding: 1.35rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.5rem;
}

.project-card__tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--coral);
}

.project-card__title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

.project-card__desc {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  flex: 1;
}

.project-card__meta {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--wine);
  margin-top: 0.5rem;
}

.lab {
  background: var(--bg-elevated);
  border-top: 1px solid rgba(162, 75, 94, 0.2);
  border-bottom: 1px solid rgba(162, 75, 94, 0.2);
}

.lab-list {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 1280px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.lab-item {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.25rem 1.5rem;
  align-items: start;
  padding: 1.75rem 0;
  border-bottom: 1px dashed rgba(162, 75, 94, 0.35);
}

.lab-item__link {
  position: absolute;
  inset: 0;
  z-index: 2;
  text-decoration: none;
}

.lab-item__status,
.lab-item__content,
.lab-item__id {
  position: relative;
  z-index: 1;
}

.lab-item:first-child {
  padding-top: 0;
}

.lab-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.lab-item:nth-child(even) {
  margin-left: clamp(0px, 4vw, 3rem);
}

.lab-item__status {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.35rem 0.55rem;
  border: 1px solid var(--wine);
  color: var(--coral);
  transform: rotate(-4deg);
  white-space: nowrap;
}

.lab-item__status--hot {
  border-color: var(--coral);
  font-size: 1rem;
  line-height: 1;
  padding: 0.25rem 0.45rem;
}

.lab-item__title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin: 0 0 0.35rem;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

.lab-item__text {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.98rem;
}

.lab-item__id {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: rgba(154, 138, 148, 0.65);
  align-self: center;
}

.blog {
  background:
    radial-gradient(ellipse 50% 60% at 90% 30%, rgba(234, 90, 91, 0.1), transparent),
    var(--bg);
}

.blog-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.blog-card {
  background: var(--bg-elevated);
  padding: 1.75rem;
  border: 1px solid rgba(162, 75, 94, 0.35);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transform: rotate(0.6deg);
  transition: border-color 0.2s, transform 0.2s;
}

.blog-card:nth-child(2) {
  transform: rotate(-0.8deg) translateY(10px);
}

.blog-card:nth-child(3) {
  transform: rotate(0.4deg);
}

.blog-card:hover {
  border-color: var(--coral);
  transform: rotate(0deg) translateY(-4px);
}

.blog-card--accent {
  background: linear-gradient(165deg, rgba(234, 90, 91, 0.09), var(--bg-elevated));
  border-color: rgba(234, 90, 91, 0.45);
}

.blog-card__date {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--wine);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.blog-card__title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  line-height: 1.2;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

.blog-card__title a {
  color: inherit;
  text-decoration: none;
  background: linear-gradient(transparent 88%, rgba(234, 90, 91, 0.35) 88%);
  transition: color 0.2s;
}

.blog-card__title a:hover {
  color: var(--coral);
}

.blog-card__excerpt {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  flex: 1;
}

.blog-card__read {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--coral);
}

.lore {
  padding: 5rem 4vw;
  background:
    linear-gradient(180deg, transparent 0%, rgba(162, 75, 94, 0.06) 50%, transparent 100%),
    var(--bg);
}

.lore__layout {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem 4rem;
  align-items: start;
}

.lore__kicker {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--coral);
  margin: 0 0 1rem;
  transform: skewX(-5deg);
}

.lore__title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  margin: 0 0 1.25rem;
}

.lore__gradient {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lore__lead {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.08rem;
  line-height: 1.6;
}

.lore__more {
  margin: 1.15rem 0 0;
}

.lore__timeline {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.lore-node {
  position: relative;
  padding: 1.35rem 1.5rem;
  background: var(--bg-elevated);
  border-left: 4px solid;
  border-image: var(--gradient) 1;
  transform: rotate(-0.5deg);
  box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.25);
}

.lore-node--flip {
  transform: rotate(0.8deg) translateX(-8px);
  border-left: none;
  border-right: 4px solid var(--coral);
  box-shadow: inset 0 0 0 1px rgba(162, 75, 94, 0.35);
}

.lore-node__year {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--coral);
  display: block;
  margin-bottom: 0.5rem;
}

.lore-node__text {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.98rem;
}

.page-hero {
  position: relative;
  z-index: 1;
  padding: clamp(3rem, 8vw, 5rem) 4vw 2rem;
  max-width: 1280px;
  margin: 0 auto;
}

.page-hero__tag {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--coral);
  margin: 0 0 1rem;
}

.page-hero__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
}

.page-hero__title-accent {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.page-hero__lead {
  margin: 0;
  max-width: 42rem;
  color: var(--text-muted);
  font-size: 1.08rem;
  line-height: 1.6;
}

.page-hero__lead code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  padding: 0.1em 0.35em;
  background: rgba(162, 75, 94, 0.12);
  border-radius: 4px;
}

html[data-theme="light"] .page-hero__lead code {
  background: rgba(0, 102, 254, 0.08);
}

.about-page-intro {
  position: relative;
  z-index: 1;
  padding: 0 4vw 3rem;
  max-width: 1280px;
  margin: 0 auto;
}

.about-page-intro__text {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.65;
  max-width: 52rem;
}

.collab {
  position: relative;
  z-index: 1;
  padding: 1rem 4vw 5rem;
  background:
    radial-gradient(ellipse 55% 45% at 85% 15%, rgba(162, 75, 94, 0.08), transparent),
    var(--bg);
}

.collab__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: 1.75rem;
  max-width: 1280px;
  margin: 0 auto;
}

.collab-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-elevated);
  border: 1px solid rgba(162, 75, 94, 0.35);
  overflow: hidden;
  transform: rotate(-0.35deg);
  box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.collab-card:nth-child(even) {
  transform: rotate(0.45deg);
}

.collab-card:hover {
  transform: rotate(0deg) translateY(-5px);
  box-shadow: 8px 10px 0 rgba(234, 90, 91, 0.14);
}

.collab-card__photo {
  aspect-ratio: 1;
  overflow: hidden;
  border-bottom: 2px solid rgba(234, 90, 91, 0.28);
  background: var(--bg);
}

.collab-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.collab-card__body {
  padding: 1.3rem 1.4rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  flex: 1;
}

.collab-card__name {
  font-family: var(--font-display);
  font-size: 1.18rem;
  line-height: 1.15;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

.collab-card__desc {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.96rem;
  line-height: 1.55;
  flex: 1;
}

.collab-card__link {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--coral);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  align-self: flex-start;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, gap 0.2s ease, border-color 0.2s ease;
}

.collab-card__link:hover {
  color: var(--text);
  gap: 0.55rem;
  border-bottom-color: rgba(234, 90, 91, 0.45);
}

.collab-card__link:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 3px;
}

.collab-card__link svg {
  width: 0.85rem;
  height: 0.85rem;
  flex-shrink: 0;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.2;
}

html[data-theme="light"] .collab {
  background:
    radial-gradient(ellipse 55% 45% at 85% 15%, rgba(0, 102, 254, 0.08), transparent),
    var(--bg);
}

html[data-theme="light"] .collab-card {
  border: 1px solid rgba(0, 102, 254, 0.38);
}

html[data-theme="light"] .collab-card:hover {
  box-shadow: 8px 10px 0 rgba(0, 102, 254, 0.12);
}

html[data-theme="light"] .collab-card__photo {
  border-bottom: 2px solid rgba(0, 102, 254, 0.22);
}

.page-back {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 0 0 1.25rem;
}

.page-back__link {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--coral);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: color 0.2s ease, gap 0.2s ease;
}

.page-back__link:hover {
  color: var(--text);
  gap: 0.5rem;
}

.page-back__link:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 3px;
}

.article-page {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
  padding: 0;
}

.article-page__header {
  margin-bottom: 2rem;
}

.article-page__meta {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--wine);
  margin: 0 0 0.75rem;
}

.article-page__title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1.08;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  margin: 0 0 0.75rem;
}

.article-page__dek {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1.5;
}

.detail-cover {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

.detail-cover__frame {
  border: 0;
  border-radius: 0;
  overflow: hidden;
  box-shadow: none;
  transform: none;
}

.detail-cover__frame img {
  width: 100%;
  height: clamp(220px, 44vw, 520px);
  object-fit: cover;
  display: block;
}

.detail-page {
  position: relative;
  z-index: 1;
}

.detail-layout {
  width: min(100% - 8vw, 1280px);
  margin: 1.5rem auto 3.5rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
  gap: 1.5rem;
  align-items: start;
}

.detail-content {
  position: relative;
  z-index: 2;
  width: min(100% - 8vw, 980px);
  margin: 1.5rem auto 3.5rem;
  padding: clamp(1.25rem, 3vw, 2.4rem);
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid rgba(162, 75, 94, 0.2);
  border-top: 4px solid rgba(162, 75, 94, 0.55);
  color: #201a21;
  box-shadow: 0 16px 38px rgba(10, 8, 12, 0.14);
}

.detail-layout .detail-content {
  width: auto;
  margin: 0;
}

.detail-page .article-page__header {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(162, 75, 94, 0.2);
}

.detail-page .article-page__meta {
  color: #8a4051;
}

.detail-page .article-page__title,
.detail-page .article-prose h2,
.detail-page .article-prose h3,
.detail-page .article-prose strong,
.detail-page .article-prose blockquote {
  color: #1b161c;
}

.detail-page .article-page__dek,
.detail-page .article-prose,
.detail-page .detail-meta,
.detail-page .detail-meta__id {
  color: #635665;
}

.detail-page .article-prose {
  font-size: 1.07rem;
  line-height: 1.72;
}

.detail-page .detail-meta__tag {
  color: #b94e65;
}

.detail-page .article-prose code {
  background: rgba(162, 75, 94, 0.12);
}

.detail-page .article-prose pre {
  background: #faf6f8;
  border: 1px solid rgba(162, 75, 94, 0.3);
}

.detail-inline-cover {
  margin: 0 0 1.5rem;
  border: 1px solid rgba(162, 75, 94, 0.28);
  border-radius: 12px;
  overflow: hidden;
  background: #f8f2f5;
}

.detail-inline-cover img {
  width: 100%;
  height: clamp(180px, 30vw, 320px);
  object-fit: cover;
  display: block;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  margin: 0 0 1.5rem;
}

.detail-meta__tag {
  color: var(--coral);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.detail-meta__id {
  color: rgba(154, 138, 148, 0.75);
}

.article-prose {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text-muted);
}

.article-prose > *:first-child {
  margin-top: 0;
}

.article-prose > *:last-child {
  margin-bottom: 0;
}

.article-prose h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 2rem 0 0.75rem;
}

.article-prose h3 {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin: 1.5rem 0 0.5rem;
}

.article-prose p {
  margin: 0 0 1rem;
}

.article-prose ul,
.article-prose ol {
  margin: 0 0 1rem;
  padding-left: 1.35rem;
}

.article-prose li {
  margin-bottom: 0.35rem;
}

.article-prose strong {
  color: var(--text);
  font-weight: 600;
}

.article-prose code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  padding: 0.12em 0.35em;
  background: rgba(162, 75, 94, 0.15);
  border-radius: 4px;
}

.article-prose pre {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.5;
  padding: 1rem 1.15rem;
  margin: 0 0 1.25rem;
  overflow-x: auto;
  background: var(--bg-elevated);
  border: 1px dashed rgba(162, 75, 94, 0.4);
  border-radius: 4px;
}

.article-prose pre code {
  padding: 0;
  background: none;
  font-size: inherit;
}

.article-prose blockquote {
  margin: 0 0 1.25rem;
  padding: 0.75rem 0 0.75rem 1.1rem;
  border-left: 4px solid var(--coral);
  font-style: italic;
  color: var(--text);
}

.detail-page .article-prose a {
  color: var(--coral);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.detail-page .article-prose a:hover {
  color: var(--text);
}

.post-author {
  margin-top: 2rem;
}

.post-author__label {
  margin: 0 0 0.7rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #a66878;
}

.author-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.9rem;
  align-items: start;
  padding: 0.95rem 1.05rem;
  border: 1px solid rgba(162, 75, 94, 0.3);
  border-radius: 14px;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.96), rgba(250, 245, 248, 0.95));
}

.author-card__avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid rgba(162, 75, 94, 0.35);
  background: #f4edf1;
}

.author-card__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.author-card__name {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
  line-height: 1.1;
  color: #201a21;
}

.author-card__role {
  margin: 0.14rem 0 0.45rem;
  font-size: 0.88rem;
  color: #643342;
}

.author-card__bio {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.45;
  color: #3c2d35;
}

.author-card__bio a {
  color: #7d3f50;
  text-underline-offset: 0.14em;
}

.author-card__bio a:hover {
  color: #1b161c;
}

.author-card__social {
  display: flex;
  gap: 0.45rem;
}

.author-card__social-link {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border: 1px solid rgba(162, 75, 94, 0.4);
  color: #fff6fa;
  background: #231c23;
  transition: transform 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

.author-card__social-link svg {
  width: 0.98rem;
  height: 0.98rem;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.author-card__social-link:hover {
  transform: translateY(-1px);
  border-color: rgba(234, 90, 91, 0.8);
}

.author-card__social-link--x {
  background: #0e0d0f;
}

.author-card__social-link--ig {
  border-color: #ff2f85;
  background: #ff1180;
}

.author-card__social-link:focus-visible {
  outline: 2px dashed rgba(234, 90, 91, 0.85);
  outline-offset: 2px;
}

.related-posts {
  margin-top: 3rem;
  padding-top: 1.6rem;
  border-top: 2px dashed rgba(162, 75, 94, 0.4);
  background: transparent;
}

.detail-layout > .related-posts {
  margin-top: 0;
  padding: 1rem;
  border: 0;
  border-top: 2px dashed rgba(162, 75, 94, 0.35);
  background: transparent;
  align-self: start;
}

.detail-layout > .related-posts .related-posts__grid {
  grid-template-columns: 1fr;
  gap: 0.9rem;
}

.related-posts__title {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2vw, 1.4rem);
  text-transform: uppercase;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin: 0 0 1.5rem;
}

.related-posts__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

.related-post-card {
  position: relative;
  border: 2px solid rgba(162, 75, 94, 0.3);
  background: linear-gradient(145deg, #faf6f8, #ffffff);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
  transform: rotate(-0.5deg);
  cursor: pointer;
}

.related-post-card:nth-child(2) {
  transform: rotate(0.3deg) translateY(4px);
}

.related-post-card:nth-child(3) {
  transform: rotate(-0.3deg);
}

.related-post-card:hover {
  border-color: rgba(162, 75, 94, 0.7);
  transform: rotate(0) translateY(-4px);
  box-shadow: 10px 12px 0 rgba(234, 90, 91, 0.14), -2px 3px 8px rgba(0, 0, 0, 0.12);
}

.related-post-link {
  position: absolute;
  inset: 0;
  z-index: 2;
  text-decoration: none;
}

.related-post-link:focus-visible {
  outline: 2px dashed rgba(234, 90, 91, 0.9);
  outline-offset: -5px;
  border-radius: 10px;
}

.related-post-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  transition: transform 0.2s ease;
}

.related-post-card:hover img {
  transform: scale(1.08);
}

.related-post-card__content {
  padding: 1rem;
}

.related-post-card__meta {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #8a4051;
  margin: 0 0 0.5rem;
}

.related-post-card__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.25;
  color: #1b161c;
  text-transform: uppercase;
}

.disqus-section {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 2px dashed rgba(162, 75, 94, 0.4);
}

#disqus_thread {
  color: #201a21;
}

.disqus-section h3 {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  text-transform: uppercase;
  letter-spacing: -0.02em;
  color: #1b161c;
  margin: 0 0 1.5rem;
}

.section--listing {
  position: relative;
  z-index: 1;
  padding-bottom: 3rem;
}

.blog-hub {
  position: relative;
  z-index: 1;
  padding-bottom: 3.5rem;
}

.blog-hub__hero {
  width: min(100% - 4vw, 1360px);
  margin: 0 auto;
}

.blog-hub__hero .blog-hub__banner {
  width: 100%;
  margin: 0;
}

.blog-hub__body {
  width: min(100% - 8vw, 1280px);
  margin: 1.15rem auto 0;
  display: grid;
  gap: 1.3rem;
}

.blog-hub__banner {
  position: relative;
  width: 100%;
  margin: 0;
  min-height: 380px;
  max-height: 560px;
  overflow: hidden;
  border: 0;
  background: #02070d;
  touch-action: pan-y;
}

.blog-hub__banner::after {
  content: none;
}

.blog-hub__banner-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.blog-hub__banner-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.55s ease, transform 0.6s ease;
  pointer-events: none;
}

.blog-hub__banner-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 7, 13, 0.04) 20%, rgba(2, 7, 13, 0.4) 56%, rgba(2, 7, 13, 0.82) 100%);
  z-index: 1;
}

.blog-hub__banner-slide.is-active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.blog-hub__banner img {
  width: 100%;
  height: clamp(380px, 44vw, 560px);
  object-fit: cover;
  display: block;
}

.blog-hub__banner-copy {
  position: absolute;
  left: clamp(1rem, 4vw, 4rem);
  right: auto;
  top: clamp(4.25rem, 8vw, 6.5rem);
  transform: none;
  z-index: 2;
  width: min(46vw, 600px);
  max-width: 600px;
  display: grid;
  gap: 0.7rem;
  justify-items: start;
  text-align: left;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
}

.blog-hub__banner-kicker {
  display: none;
}

.blog-hub__banner-date {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
    bottom: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.blog-hub__banner-title {
  margin: 0;
  max-width: none;
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3.4vw, 3rem);
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  color: #ffffff;
  position: relative;
  transform: none;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.42);
}

.blog-hub__banner-summary {
  margin: 0;
  max-width: 34rem;
  font-size: 0.88rem;
  font-weight: 400;
  line-height: 1.4;
  color: #e9edf4;
}

.blog-hub__banner-cta {
  width: fit-content;
  margin-top: 0.25rem;
}

.blog-hub__banner-cta:hover {
  transform: translate(-2px, -2px);
}

.blog-hub__banner-title::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 100%;
  max-width: 320px;
  height: 3px;
  background: var(--coral);
  opacity: 1;
  transform: skewX(-3deg);
}

.blog-hub__banner-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 3.35rem;
  height: 3.35rem;
  border: 1px solid rgba(255, 186, 84, 0.9);
  border-radius: 999px;
  background: #f39200;
  color: #ffffff;
  font-size: 2.15rem;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 3;
  box-shadow: 0 8px 16px rgba(243, 146, 0, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease, opacity 0.18s ease;
}

@media (hover: hover) and (pointer: fine) {
  .blog-hub__banner-control {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-50%) scale(0.92);
  }

  .blog-hub__banner:hover .blog-hub__banner-control,
  .blog-hub__banner:focus-within .blog-hub__banner-control {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(-50%) scale(1);
  }
}

@media (hover: none), (pointer: coarse) {
  .blog-hub__banner-control {
    display: none;
  }
}

.blog-hub__banner-control:hover {
  transform: translateY(-50%) scale(1.04);
  border-color: rgba(255, 207, 122, 1);
  background: #ff9f1c;
  box-shadow: 0 10px 20px rgba(243, 146, 0, 0.26);
}

html[data-theme="dark"] .blog-hub__banner-control {
  color: #120b02;
}

.blog-hub__banner-control--prev {
  left: 1.1rem;
}

.blog-hub__banner-control--next {
  right: 1.1rem;
}

.blog-hub__banner-dots {
  position: absolute;
  left: 50%;
  bottom: 0.65rem;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  z-index: 3;
}

.blog-hub__banner-dot {
  width: 2rem;
  height: 0.34rem;
  border-radius: 999px;
  border: 0;
  background: rgba(243, 146, 0, 0.28);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, width 0.2s ease;
}

.blog-hub__banner-dot.is-active {
  width: 3rem;
  transform: scale(1);
  background: #f39200;
}

html[data-theme="dark"] .blog-hub__banner-dot {
  background: rgba(255, 255, 255, 0.22);
}

html[data-theme="dark"] .blog-hub__banner-dot.is-active {
  background: #f39200;
}

.blog-hub__masthead {
  width: min(100% - 8vw, 1280px);
  margin: 1rem auto 1.35rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem;
  border: 2px dashed rgba(234, 90, 91, 0.45);
  background: linear-gradient(165deg, rgba(234, 90, 91, 0.08), rgba(162, 75, 94, 0.05));
  transform: rotate(-0.25deg);
}

.blog-hub__brand {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: clamp(1.5rem, 3vw, 2.3rem);
  font-weight: 700;
  color: #eaf2ff;
  letter-spacing: -0.02em;
  position: relative;
}

.blog-hub__brand::before {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--coral), transparent);
  opacity: 0.6;
}

.blog-hub__brand img {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  filter: drop-shadow(0 0 4px rgba(234, 90, 91, 0.4));
}

.blog-hub__topics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.blog-hub__topic-link {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  color: #a9b5cb;
  border: 2px solid rgba(234, 90, 91, 0.55);
  background: rgba(234, 90, 91, 0.08);
  padding: 0.45rem 0.85rem;
  transform: rotate(-0.2deg) skewX(-1deg);
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-block;
  cursor: pointer;
}

.blog-hub__topic-link:hover {
  border-color: var(--coral);
  background: rgba(234, 90, 91, 0.15);
  transform: rotate(0) skewX(0) scale(1.03);
  color: #eaf2ff;
}

.blog-hub__content {
  width: min(100% - 8vw, 1280px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 2.1fr) minmax(260px, 0.9fr);
  gap: 1.3rem;
  align-items: start;
}

.blog-hub__main {
  display: grid;
  gap: 1rem;
  align-content: start;
}

.blog-hub__featured {
  position: relative;
  display: grid;
  grid-template-columns: minmax(260px, 1.25fr) minmax(0, 1fr);
  border: 2px solid rgba(234, 90, 91, 0.5);
  background: linear-gradient(145deg, rgba(5, 9, 19, 0.92), rgba(14, 16, 20, 0.92));
  overflow: hidden;
  transform: rotate(-0.35deg) translateY(0);
  transition: all 0.2s ease;
  box-shadow: 5px 6px 0 rgba(234, 90, 91, 0.16), -3px 3px 10px rgba(0, 0, 0, 0.26);
}

.blog-hub__featured:hover {
  transform: rotate(0) translateY(-4px);
  box-shadow: 8px 9px 0 rgba(234, 90, 91, 0.24), -3px 3px 12px rgba(0, 0, 0, 0.34);
  border-color: var(--coral);
}

.blog-hub__featured-link,
.blog-hub__card-link {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.blog-hub__featured-media {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
}

.blog-hub__featured-copy {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.blog-hub__featured-copy time,
.blog-hub__card time {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8aa2d1;
}

.blog-hub__featured-copy h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.4vw, 2.1rem);
  line-height: 1.1;
  color: #edf3ff;
  text-transform: uppercase;
}

.blog-hub__featured-copy p {
  margin: 0;
  color: #bbc8dd;
  font-size: 0.98rem;
  line-height: 1.58;
}

.blog-hub__featured-copy span {
  margin-top: auto;
  font-size: 0.82rem;
  color: #88a3d7;
}

.blog-hub__sidebar {
  border: 2px solid rgba(162, 75, 94, 0.55);
  background: linear-gradient(145deg, rgba(5, 9, 19, 0.9), rgba(9, 12, 17, 0.95));
  padding: 1rem;
  transform: rotate(0.2deg);
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.blog-hub__sidebar::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--coral), transparent);
  opacity: 0.4;
}

.blog-hub__sidebar:hover {
  border-color: var(--coral);
  transform: rotate(0);
  box-shadow: 4px 8px 12px rgba(234, 90, 91, 0.15);
}

.blog-hub__sidebar h2 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: -0.01em;
  color: #edf3ff;
  text-transform: uppercase;
}

.blog-hub__spot-item + .blog-hub__spot-item {
  margin-top: 0.95rem;
  padding-top: 0;
  border-top: none;
}

.blog-hub__spot-item {
  position: relative;
  border: 2px solid rgba(162, 75, 94, 0.4);
  background: linear-gradient(155deg, rgba(8, 10, 16, 0.92), rgba(16, 17, 22, 0.96));
  overflow: hidden;
  transition: all 0.2s ease;
  transform: rotate(-0.2deg);
  cursor: pointer;
}

.blog-hub__spot-item:nth-child(2) {
  --rotate: -0.2deg;
}

.blog-hub__spot-item:nth-child(3) {
  --rotate: 0.2deg;
  transform: rotate(0.2deg);
}

.blog-hub__spot-link {
  position: absolute;
  inset: 0;
  z-index: 2;
  text-decoration: none;
}

.blog-hub__spot-item img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.18);
  display: block;
  transition: transform 0.2s ease;
}

.blog-hub__spot-item:hover img {
  transform: scale(1.05);
}

.blog-hub__spot-item h3 {
  margin: 0.65rem 0 0;
  padding: 0 0.65rem 0.65rem;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.3;
  color: #d2e1ff;
  position: relative;
  z-index: 1;
}

.blog-hub__spot-item:hover {
  transform: rotate(0) translateY(-3px);
  border-color: var(--coral);
  box-shadow: 3px 6px 0 rgba(234, 90, 91, 0.17), -2px 2px 6px rgba(0, 0, 0, 0.28);
}

.blog-hub__social {
  margin-top: 1.1rem;
  padding-top: 1rem;
  border-top: 2px solid rgba(243, 146, 0, 0.75);
}

.blog-hub__social-heading {
  margin-bottom: 0.45rem;
}

.blog-hub__social-heading h2 {
  font-size: 1rem;
  letter-spacing: -0.01em;
}

.blog-hub__social-legal {
  margin: 0;
  padding-top: 0.2rem;
  font-size: 0.72rem;
  line-height: 1.35;
  color: #111111;
}

.blog-hub__social-legal-block {
  margin-top: 0.95rem;
  padding-top: 0.85rem;
  border-top: 2px solid rgba(243, 146, 0, 0.85);
}

html[data-page="blog"][data-theme="light"] .blog-hub__social-legal {
  color: #000000;
}

html[data-page="blog"][data-theme="dark"] .blog-hub__social-legal {
  color: #9a9a9a;
}

.blog-hub__social-list {
  display: grid;
  gap: 0.45rem;
  padding-top: 0.95rem;
}

.blog-hub__social-link {
  display: flex;
  align-items: center;
  gap: 0.78rem;
  min-height: 2.8rem;
  padding: 0.5rem 0.7rem;
  border: 1px solid rgba(18, 15, 20, 0.08);
  border-radius: 999px;
  background: rgba(18, 15, 20, 0.03);
  box-shadow: 0 1px 0 rgba(18, 15, 20, 0.03);
  text-decoration: none;
  color: var(--blog-text);
  font-size: 0.95rem;
  line-height: 1.1;
  transition: transform 0.2s ease, color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.blog-hub__social-link:hover {
  transform: translateX(4px);
  color: var(--blog-text-strong);
  background: rgba(var(--accent-rgb), 0.06);
  border-color: rgba(var(--accent-rgb), 0.16);
}

.blog-hub__social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  flex: 0 0 2rem;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(243, 245, 250, 0.9));
  border: 1px solid rgba(18, 15, 20, 0.1);
  box-shadow: 0 1px 2px rgba(18, 15, 20, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.7);
  color: var(--blog-text-strong);
}

.blog-hub__social-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.blog-hub__social-link--youtube:hover {
  color: #ff2d2d;
}

.blog-hub__social-link--youtube .blog-hub__social-icon {
  color: #ff2d2d;
}

.blog-hub__social-link--instagram:hover {
  color: #f77737;
}

.blog-hub__social-link--instagram .blog-hub__social-icon {
  color: #f77737;
}

.blog-hub__social-link--facebook:hover {
  color: #1877f2;
}

.blog-hub__social-link--facebook .blog-hub__social-icon {
  color: #1877f2;
}

.blog-hub__social-link--tiktok:hover {
  color: #25f4ee;
}

.blog-hub__social-link--tiktok .blog-hub__social-icon {
  color: #25f4ee;
}

.blog-hub__social-link--x:hover {
  color: #ffffff;
}

.blog-hub__social-link--x .blog-hub__social-icon {
  color: #111111;
}

.blog-hub__social-link--twitch:hover {
  color: #9146ff;
}

.blog-hub__social-link--twitch .blog-hub__social-icon {
  color: #9146ff;
}

.blog-hub__social-link--whatsapp:hover {
  color: #25d366;
}

.blog-hub__social-link--whatsapp .blog-hub__social-icon {
  color: #25d366;
}

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

.blog-hub__card {
  position: relative;
  border: 2px solid rgba(162, 75, 94, 0.4);
  background: linear-gradient(155deg, rgba(8, 10, 16, 0.92), rgba(16, 17, 22, 0.96));
  overflow: hidden;
  transition: all 0.2s ease;
  transform: rotate(var(--card-rotation, -0.35deg));
  box-shadow: 3px 4px 0 rgba(234, 90, 91, 0.13);
}

.blog-hub__card:nth-child(1) {
  --card-rotation: -0.6deg;
  transform: rotate(-0.6deg) translateY(0);
}

.blog-hub__card:nth-child(2) {
  --card-rotation: 0.45deg;
  transform: rotate(0.45deg) translateY(4px);
}

.blog-hub__card:nth-child(3) {
  --card-rotation: -0.25deg;
  transform: rotate(-0.25deg);
}

.blog-hub__card:hover {
  transform: rotate(0) translateY(-4px) scale(1.01);
  border-color: var(--coral);
  box-shadow: 6px 8px 0 rgba(234, 90, 91, 0.21), -2px 2px 8px rgba(0, 0, 0, 0.34);
}

.blog-hub__card img {
  width: 100%;
  aspect-ratio: 16 / 8;
  object-fit: cover;
  display: block;
}

.blog-hub__card div {
  padding: 0.55rem 0.65rem 0.65rem;
}

.blog-hub__card h3 {
  margin: 0.2rem 0 0;
  font-size: 0.9rem;
  line-height: 1.2;
  color: #e6eeff;
  display: -webkit-box;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.blog-hub__latest {
  display: grid;
  gap: 0.85rem;
  margin-top: 0.2rem;
}

.blog-hub__section-heading {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.blog-hub__section-heading h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1.7vw, 1.4rem);
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--blog-text-strong);
  white-space: nowrap;
}

.blog-hub__section-heading span {
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, #f39200 0%, rgba(243, 146, 0, 0.3) 70%, rgba(243, 146, 0, 0) 100%);
}

.blog-hub__latest-grid {
  display: grid;
  gap: 0.85rem;
}

.blog-hub__latest-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(180px, 240px) minmax(0, 1fr);
  align-items: stretch;
  overflow: hidden;
  border: 2px solid var(--blog-panel-border-strong);
  background: var(--blog-latest-card-bg);
  box-shadow: 3px 4px 0 var(--blog-latest-card-shadow);
  transform: rotate(-0.2deg);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.blog-hub__latest-card:nth-child(even) {
  transform: rotate(0.15deg);
}

.blog-hub__latest-card:hover {
  transform: rotate(0) translateY(-3px);
  border-color: var(--blog-panel-border-strong);
  box-shadow: 6px 8px 0 var(--blog-latest-card-shadow), -2px 2px 8px rgba(0, 0, 0, 0.3);
}

.blog-hub__latest-link {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: transparent;
  color: inherit;
  outline: none;
}

.blog-hub__latest-card img {
  width: 100%;
  height: 100%;
  min-height: 170px;
  object-fit: cover;
  display: block;
}

.blog-hub__latest-copy {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 1rem 1rem 1.05rem;
}

.blog-hub__latest-copy time {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blog-text-soft);
}

.blog-hub__latest-copy h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.5vw, 1.28rem);
  line-height: 1.12;
  text-transform: uppercase;
  color: var(--blog-text-strong);
}

.blog-hub__latest-copy p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.48;
  color: var(--blog-text-muted);
}

html[data-page="blog"][data-theme="light"] .blog-hub__latest-card:hover {
  background: #fff4de;
  box-shadow: 6px 8px 0 rgba(243, 146, 0, 0.22), -2px 2px 8px rgba(0, 0, 0, 0.08);
}

html[data-page="blog"][data-theme="dark"] .blog-hub__latest-card:hover {
  background: linear-gradient(145deg, rgba(18, 10, 0, 0.96), rgba(8, 5, 0, 0.99));
}

html[data-theme="light"] .blog-hub__banner {
  border-bottom-color: rgba(0, 102, 254, 0.3);
}

html[data-theme="light"] .blog-hub__banner::after {
  content: none;
}

html[data-theme="light"] .blog-hub__banner-title::after {
  background: #0066fe;
  opacity: 1;
}

html[data-page="blog"][data-theme="light"] .blog-hub__banner-title {
  color: #ffffff;
  -webkit-text-stroke: 0;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.42);
}

html[data-page="blog"][data-theme="light"] .blog-hub__banner-summary {
  color: #eff4ff;
}

html[data-page="blog"][data-theme="light"] .blog-hub__banner-cta {
  border-color: #f39200;
  background: #f39200;
  color: #140d03;
}

html[data-page="blog"][data-theme="light"] .blog-hub__banner-control {
  border-color: rgba(255, 186, 84, 0.9);
  background: #f39200;
  color: #ffffff;
}

html[data-page="blog"][data-theme="light"] .blog-hub__banner-control:hover {
  border-color: rgba(255, 207, 122, 1);
  background: #ff9f1c;
}

html[data-page="blog"][data-theme="light"] .blog-hub__banner-dot {
  border-color: rgba(243, 146, 0, 0.5);
  background: rgba(243, 146, 0, 0.18);
}

html[data-page="blog"][data-theme="light"] .blog-hub__banner-dot.is-active {
  background: #f39200;
  border-color: #f39200;
}

html[data-theme="light"] .blog-hub__brand {
  color: #13284f;
}

html[data-theme="light"] .blog-hub__masthead {
  border-color: rgba(0, 102, 254, 0.4);
  background: linear-gradient(165deg, rgba(0, 102, 254, 0.08), rgba(0, 102, 254, 0.04));
}

html[data-theme="light"] .blog-hub__topics span {
  color: #2e4f88;
  border-color: rgba(0, 102, 254, 0.5);
  background: rgba(0, 102, 254, 0.1);
}

html[data-theme="light"] .blog-hub__topic-link {
  color: #2e4f88;
  border-color: rgba(0, 102, 254, 0.5);
  background: rgba(0, 102, 254, 0.1);
}

html[data-theme="light"] .blog-hub__topic-link:hover {
  color: #0066fe;
  border-color: rgba(0, 102, 254, 0.8);
  background: rgba(0, 102, 254, 0.18);
}

html[data-theme="light"] .blog-hub__featured,
html[data-theme="light"] .blog-hub__sidebar,
html[data-theme="light"] .blog-hub__card,
html[data-theme="light"] .blog-hub__spot-item {
  border-color: rgba(243, 146, 0, 0.55);
  background: transparent;
  box-shadow: 3px 4px 0 rgba(184, 104, 0, 0.18);
}

html[data-theme="light"] .blog-hub__featured:hover,
html[data-theme="light"] .blog-hub__card:hover,
html[data-theme="light"] .blog-hub__spot-item:hover {
  background: #fff4de;
  box-shadow: 6px 8px 0 rgba(243, 146, 0, 0.22), -2px 2px 8px rgba(0, 0, 0, 0.08);
}

html[data-theme="light"] .blog-hub__featured-copy h2,
html[data-theme="light"] .blog-hub__sidebar h2,
html[data-theme="light"] .blog-hub__card h3 {
  color: #102340;
}

html[data-theme="light"] .blog-hub__featured-copy p,
html[data-theme="light"] .blog-hub__spot-item h3 {
  color: #355386;
}

html[data-theme="light"] .blog-hub__featured-copy span,
html[data-theme="light"] .blog-hub__featured-copy time,
html[data-theme="light"] .blog-hub__card time {
  color: #295cc0;
}

html[data-theme="light"] .post-author__label {
  color: #2e4f88;
}

html[data-theme="light"] .author-card {
  border-color: rgba(0, 102, 254, 0.28);
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.98), rgba(244, 248, 255, 0.98));
}

html[data-theme="light"] .author-card__avatar {
  border-color: rgba(0, 102, 254, 0.3);
  background: #f2f7ff;
}

html[data-theme="light"] .author-card__name {
  color: #15284f;
}

html[data-theme="light"] .author-card__role {
  color: #2f4f84;
}

html[data-theme="light"] .author-card__bio {
  color: #365386;
}

html[data-theme="light"] .author-card__bio a {
  color: #0066fe;
}

html[data-theme="light"] .author-card__bio a:hover {
  color: #003f9f;
}

html[data-theme="light"] .author-card__social-link {
  border-color: rgba(0, 102, 254, 0.35);
}

html[data-theme="light"] .author-card__social-link:focus-visible {
  outline-color: rgba(0, 102, 254, 0.75);
}

html[data-theme="light"] .blog-hub__brand::before {
  background: linear-gradient(90deg, #0066fe, transparent);
}

html[data-theme="light"] .article-prose pre {
  border-color: rgba(0, 102, 254, 0.35);
}

html[data-theme="light"] .article-prose code {
  background: rgba(0, 102, 254, 0.1);
}

.contact {
  padding-bottom: 6rem;
}

.contact__box {
  width: min(100%, 1280px);
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(1.5rem, 5vw, 3rem);
  border: 2px dashed rgba(162, 75, 94, 0.5);
  background: linear-gradient(160deg, rgba(234, 90, 91, 0.08), rgba(162, 75, 94, 0.05));
  text-align: center;
  transform: rotate(-0.5deg);
  overflow-x: clip;
}

.contact__box .btn {
  max-width: 100%;
  overflow-wrap: anywhere;
}

.contact__title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  margin: 0 0 0.75rem;
  text-transform: uppercase;
}

.contact__text {
  color: var(--text-muted);
  margin: 0 0 1.5rem;
}

.site-footer {
  position: relative;
  z-index: 1;
  padding: 1.5rem 4vw;
  border-top: 1px solid rgba(162, 75, 94, 0.2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.site-footer__links {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.site-footer__links a {
  color: var(--text-muted);
  text-decoration: none;
}

.site-footer__links a:hover {
  color: var(--coral);
}

.site-footer__links a + a::before {
  content: "\2022";
  margin-right: 0.7rem;
  color: var(--wine);
}

.site-footer__meta {
  letter-spacing: 0.06em;
}

.footer__chaos {
  color: var(--wine);
  letter-spacing: 0.08em;
  display: inline-block;
  transition: color 0.15s ease;
}

.footer__chaos:hover {
  color: var(--coral);
  animation: footer-glitch 220ms steps(2, end) infinite;
  text-shadow:
    -1px 0 rgba(95, 211, 143, 0.55),
    1px 0 rgba(78, 205, 196, 0.45),
    0 0 8px rgba(95, 211, 143, 0.25);
}

@keyframes footer-glitch {
  0% {
    transform: translate(0, 0);
    opacity: 1;
  }
  20% {
    transform: translate(-1px, 0);
    opacity: 0.92;
  }
  40% {
    transform: translate(1px, -1px);
    opacity: 0.78;
  }
  60% {
    transform: translate(-1px, 1px);
    opacity: 0.95;
  }
  80% {
    transform: translate(1px, 0);
    opacity: 0.84;
  }
  100% {
    transform: translate(0, 0);
    opacity: 1;
  }
}

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

  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: min(340px, 86vw);
    z-index: 30;
    position: fixed;
    isolation: isolate;
    flex-direction: column;
    align-items: flex-start;
    flex-wrap: nowrap;
    gap: 0.75rem;
    padding: 5.2rem 1.25rem 1.25rem;
    margin: 0;
    overflow-x: hidden;
    pointer-events: none;
    opacity: 0;
    transform: translateX(105%);
    transition: transform 200ms ease, opacity 200ms ease;
    overflow-y: auto;
    background: color-mix(in srgb, var(--bg) 92%, transparent);
    background-image:
      radial-gradient(ellipse 70% 50% at 10% 10%, color-mix(in srgb, var(--coral) 18%, transparent), transparent 60%),
      radial-gradient(ellipse 60% 40% at 90% 25%, color-mix(in srgb, var(--wine) 12%, transparent), transparent 55%),
      radial-gradient(ellipse 50% 50% at 50% 85%, color-mix(in srgb, var(--coral) 10%, transparent), transparent 60%),
      color-mix(in srgb, var(--bg) 92%, transparent);
    border-left: 1px solid color-mix(in srgb, var(--coral) 25%, transparent);
    backdrop-filter: blur(20px);
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.14);
    overscroll-behavior: contain;
  }

  .nav::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(0, 0, 0, 0.04) 2px,
      rgba(0, 0, 0, 0.04) 3px
    );
    opacity: 0.28;
    mix-blend-mode: multiply;
  }

  .nav.nav--open {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav a {
    width: 100%;
    padding: 0.65rem 0.65rem;
    border-left: 2px solid transparent;
    font-family: var(--font-mono);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 0.82rem;
    border-radius: 0;
  }

  .nav__social {
    flex-wrap: nowrap;
    gap: 0.55rem;
    padding-bottom: 0.25rem;
    scrollbar-width: none;
  }

  .nav__social::-webkit-scrollbar {
    display: none;
  }

  .nav__social .header__social-link {
    flex: 0 0 auto;
    white-space: nowrap;
    width: auto;
    padding: 0.35rem 0.45rem;
    border-left: 1px solid var(--header-social-border);
  }

  .nav a:hover {
    transform: translateY(-2px) rotate(-0.5deg);
    border-left-color: var(--coral);
    background: color-mix(in srgb, var(--bg-elevated) 65%, transparent);
  }

  .nav__social .header__social-link:hover {
    color: var(--coral);
    border-color: color-mix(in srgb, var(--coral) 35%, transparent);
    background-color: color-mix(in srgb, var(--bg-elevated) 65%, transparent);
    transform: translateY(-2px);
  }

  @keyframes nav-sweep {
    0% {
      transform: translateX(-40%);
      opacity: 0.08;
    }
    50% {
      transform: translateX(10%);
      opacity: 0.22;
    }
    100% {
      transform: translateX(-40%);
      opacity: 0.08;
    }
  }

  .nav__extras {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    padding-top: 1rem;
    margin-top: 0.25rem;
    border-top: 1px dashed color-mix(in srgb, var(--coral) 22%, transparent);
  }

  .nav-close {
    display: inline-flex;
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 50;
    width: 42px;
    height: 42px;
    padding: 0;
    border-radius: 12px;
    border: 1px solid color-mix(in srgb, var(--coral) 35%, transparent);
    background: color-mix(in srgb, var(--bg) 92%, transparent);
    backdrop-filter: blur(18px);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: transform 200ms ease, border-color 200ms ease;
  }

  .nav-close:hover {
    transform: translateY(-2px);
    border-color: color-mix(in srgb, var(--coral) 60%, transparent);
  }

  .nav-close__x {
    width: 18px;
    height: 18px;
    position: relative;
  }

  .nav-close__x::before,
  .nav-close__x::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 18px;
    height: 2px;
    background: var(--coral);
    border-radius: 999px;
    transform-origin: center;
  }

  .nav-close__x::before {
    transform: translate(-50%, -50%) rotate(45deg);
  }

  .nav-close__x::after {
    transform: translate(-50%, -50%) rotate(-45deg);
  }

  .header__social {
    display: none;
  }

  #theme-toggle {
    display: none;
  }

  .hero__visual {
    order: -1;
  }

  .hero__frame {
    transform: rotate(0deg);
    max-width: 560px;
    margin: 0 auto;
  }

  .card-stack {
    grid-template-columns: 1fr;
  }

  .card--offset,
  .card--tilt:nth-child(1),
  .card--tilt:nth-child(2),
  .card--tilt:nth-child(3) {
    transform: none;
  }

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

  .project-card--a,
  .project-card--b,
  .project-card--c {
    transform: none;
  }

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

  .blog-hub__masthead,
  .blog-hub__content {
    width: min(100% - 6vw, 1280px);
  }

  .blog-hub__hero {
    width: min(100% - 6vw, 1280px);
    margin-top: 0;
  }

  .blog-hub__body {
    width: min(100% - 6vw, 1280px);
    margin-top: 1rem;
    gap: 1rem;
  }

  .blog-hub__topics {
    width: 100%;
    flex-wrap: nowrap;
    gap: 0.4rem;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 0.1rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .blog-hub__topics::-webkit-scrollbar {
    display: none;
  }

  .blog-hub__topic-link {
    flex: 0 0 auto;
    white-space: nowrap;
    font-size: clamp(0.68rem, 1.9vw, 0.76rem);
    padding: 0.35rem 0.62rem;
    transform: none;
  }

  .blog-hub__banner {
    width: 100%;
    height: clamp(300px, 56vw, 420px);
    min-height: 300px;
    max-height: 420px;
  }

  .blog-hub__banner img {
    height: 100%;
  }

  .blog-hub__banner-copy {
    position: absolute;
    left: 50%;
    right: auto;
    top: auto;
    bottom: 1.2rem;
    transform: translateX(-50%);
    width: calc(100% - 2.5rem);
    max-width: 34rem;
    gap: 0.5rem;
    justify-items: center;
    text-align: center;
    padding: 0;
    z-index: 4;
  }

  .blog-hub__banner-title {
    font-size: clamp(1.35rem, 4.8vw, 2rem);
    text-align: center;
  }

  .blog-hub__banner-summary {
    font-size: 0.88rem;
    line-height: 1.35;
    text-align: center;
  }

  .blog-hub__banner-title::after {
    left: 50%;
    transform: translateX(-50%) skewX(-3deg);
    max-width: min(18rem, 78vw);
  }

  .blog-hub__content {
    grid-template-columns: 1fr;
  }

  .blog-hub__featured {
    grid-template-columns: 1fr;
    transform: rotate(-0.5deg);
  }

  .blog-hub__featured-media {
    min-height: 220px;
    max-height: 320px;
  }

  .blog-hub__grid {
    grid-template-columns: 1fr;
  }

  .blog-hub__card:nth-child(1),
  .blog-hub__card:nth-child(2),
  .blog-hub__card:nth-child(3) {
    transform: rotate(0);
  }

  .blog-hub__latest-card {
    grid-template-columns: minmax(200px, 0.95fr) minmax(0, 1fr);
  }

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

  .lab-item {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .lab-item__status,
  .lab-item__status--hot {
    transform: rotate(-1deg);
    justify-self: start;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    min-width: 0;
    padding: 0.36rem 0.95rem;
    letter-spacing: 0.06em;
  }

  .lab-item__status--hot {
    width: 100%;
    min-width: 0;
    font-size: 0.9rem;
    padding: 0.32rem 0.8rem;
  }

  .lab-item:nth-child(even) {
    margin-left: 0;
  }

  .lab-item__id {
    justify-self: start;
  }

  .section__stamp {
    opacity: 0.45;
  }

  .header__cta {
    display: none;
  }

  .detail-content {
    width: min(100% - 6vw, 980px);
    margin-top: 1rem;
    border-radius: 14px;
  }

  .detail-layout {
    width: min(100% - 6vw, 1280px);
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 1rem;
  }

  .detail-layout .detail-content {
    width: auto;
    margin-top: 0;
  }

  .detail-layout > .related-posts {
    padding: 0;
    border: 0;
    background: transparent;
  }

  .author-card {
    grid-template-columns: auto 1fr;
  }

  .author-card__social {
    grid-column: 1 / -1;
    justify-content: flex-end;
    margin-top: -0.2rem;
  }

  .related-posts__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .nav {
    left: 0;
    right: 0;
    width: 100%;
    border-left: none;
    gap: 1rem;
    padding-left: 4vw;
    padding-right: 4vw;
  }

  .header__social-link {
    width: 1.85rem;
    height: 1.85rem;
  }

  .logo__img {
    height: 30px;
  }

  .hero {
    padding-top: 2rem;
  }

  .contact__box {
    transform: none;
  }

  .contact__box .btn {
    width: 100%;
  }

  .detail-content {
    width: calc(100% - 1.5rem);
    margin-top: 0.75rem;
    margin-bottom: 2.5rem;
    padding: 1rem;
    border-radius: 12px;
  }

  .detail-layout {
    width: calc(100% - 1.5rem);
    margin-top: 0.75rem;
    margin-bottom: 2.5rem;
    gap: 0.8rem;
  }

  .detail-layout .detail-content {
    width: auto;
    margin: 0;
  }

  .detail-inline-cover img {
    height: 190px;
  }

  .blog-hub__masthead,
  .blog-hub__content,
  .blog-hub__banner {
    width: calc(100% - 1.5rem);
  }

  .blog-hub__hero {
    width: calc(100% - 1.5rem);
    margin-top: 0;
  }

  .blog-hub__body {
    width: calc(100% - 1.5rem);
    margin-top: 0.9rem;
    gap: 1rem;
  }

  .blog-hub__topics {
    gap: 0.3rem;
  }

  .blog-hub__topic-link {
    font-size: 0.66rem;
    padding: 0.32rem 0.54rem;
  }

  .blog-hub__banner {
    height: clamp(260px, 62vw, 360px);
    min-height: 260px;
    max-height: 360px;
  }

  .blog-hub__masthead {
    margin-top: 0.75rem;
    margin-bottom: 0.9rem;
    flex-direction: column;
    align-items: flex-start;
    transform: rotate(0);
  }

  .blog-hub__featured {
    transform: rotate(0);
  }

  .blog-hub__sidebar {
    transform: rotate(0);
  }

  .blog-hub__latest-card {
    transform: rotate(0);
  }

  .blog-hub__latest-card:hover {
    transform: translateY(-3px);
  }

  .blog-hub__latest-copy {
    padding: 0.9rem 0.9rem 1rem;
  }

  .blog-hub__banner-copy {
    position: absolute;
    left: 50%;
    right: auto;
    top: auto;
    bottom: 1rem;
    transform: translateX(-50%);
    width: calc(100% - 2rem);
    max-width: 28rem;
    gap: 0.4rem;
    justify-items: center;
    text-align: center;
    padding: 0 0.25rem;
  }

  .blog-hub__banner-date {
    font-size: 0.72rem;
  }

  .blog-hub__banner-title {
    max-width: none;
    font-size: clamp(1.15rem, 6.5vw, 1.55rem);
    transform: none;
    text-align: center;
  }

  .blog-hub__banner-summary {
    max-width: none;
    font-size: 0.78rem;
    line-height: 1.32;
    text-align: center;
  }

  .blog-hub__banner-title::after {
    left: 50%;
    transform: translateX(-50%) skewX(-3deg);
    max-width: min(14rem, 70vw);
  }

  .blog-hub__banner-cta {
    padding: 0.52rem 0.85rem;
    font-size: 0.68rem;
    border-width: 1px;
    letter-spacing: 0.04em;
  }

  .blog-hub__banner-control {
    width: 2.4rem;
    height: 2.4rem;
    font-size: 1.55rem;
  }

  .blog-hub__banner-control--prev {
    left: 0.5rem;
  }

  .blog-hub__banner-control--next {
    right: 0.5rem;
  }

  .blog-hub__banner-dots {
    bottom: 0.45rem;
    gap: 0.4rem;
  }

  .related-posts__grid {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  .related-post-card:nth-child(2),
  .related-post-card:nth-child(3) {
    transform: rotate(0);
  }

  .blog-hub__latest-card {
    grid-template-columns: 1fr;
  }

  .blog-hub__latest-card img {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }
}

@media (min-width: 961px) {
  .blog-hub__hero {
    width: 100vw;
    max-width: none;
    margin-left: calc(50% - 50vw);
    margin-top: 0;
  }

  .blog-hub__banner {
    min-height: 560px;
    max-height: 820px;
  }

  .blog-hub__banner img {
    height: clamp(560px, 62vw, 820px);
  }

  .blog-hub__banner-copy {
    top: clamp(5.5rem, 10vw, 8rem);
    bottom: auto;
    transform: none;
    width: min(44vw, 580px);
  }

  .blog-hub__banner-dots {
    bottom: 1rem;
    gap: 0.6rem;
  }

  .blog-hub__featured {
    grid-template-columns: minmax(0, 1.45fr) minmax(300px, 1fr);
    max-height: clamp(250px, 20vw, 320px);
  }

  .blog-hub__featured-media {
    min-height: 100%;
    height: 100%;
  }

  .blog-hub__featured-copy {
    padding: 1rem 1.1rem;
    gap: 0.55rem;
  }

  .blog-hub__featured-copy h2 {
    font-size: clamp(1.15rem, 1.6vw, 1.6rem);
  }

  .blog-hub__featured-copy p {
    font-size: 0.92rem;
    line-height: 1.45;
  }
}

@media (pointer: coarse) {
  .bg-scene__lab {
    animation: lab-blobs-mobile 38s linear infinite alternate;
  }

  .bg-scene__lab::before {
    opacity: 0.3;
    animation-duration: 120s;
  }

  .bg-scene__lab::after {
    opacity: 0.16;
    animation-duration: 10s;
  }

  #wireframe-canvas {
    opacity: 0.56;
  }

  .bg-scene__scanlines {
    opacity: 0.3;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bg-scene__lab,
  .bg-scene__lab::before,
  .bg-scene__lab::after,
  .manifesto__noise,
  .hero__glitch {
    animation: none !important;
  }
}
