/*
Theme Name: Oscar Navas
Theme URI: https://www.oscarnavas.com/
Author: Oscar Navas & Codex
Description: Tema propio para OscarNavas.com, con blog, secciones editoriales y modulos interactivos.
Version: 0.1.133
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 8.0
Text Domain: oscarnavas
*/

:root {
  color-scheme: dark;
  --ink: #f3f0e5;
  --muted: #c8c1ad;
  --paper: #171a16;
  --surface: rgba(17, 20, 17, 0.78);
  --surface-strong: rgba(9, 11, 9, 0.84);
  --line: rgba(237, 229, 199, 0.2);
  --accent: #d6c36a;
  --accent-strong: #fff0a6;
  --warm: #d99a64;
  --subtitle: #e5b17c;
  --shadow: 0 22px 54px rgba(0, 0, 0, 0.42);
  --floating-glass: linear-gradient(180deg, rgba(17, 20, 17, 0.58), rgba(9, 11, 9, 0.46));
  --floating-shadow: 0 18px 42px rgba(0, 0, 0, 0.24);
  --font-ui: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-serif: "Libre Baskerville", Georgia, "Times New Roman", serif;
  --font-display: "SF Gothican", "Cooper Black", var(--font-serif);
  --font-disintegrate: "Disintegrate", "Cooper Black", var(--font-serif);
  --shell-width: min(1120px, calc(100% - 40px));
  --shell-padding: 38px 0 78px;
  --key-height: clamp(320px, calc(100svh - 230px), 640px);
  --key-gap: clamp(8px, 1.25vw, 20px);
  --key-width: min(
    calc(var(--key-height) * 0.333333),
    calc((100vw - 36px - (7 * var(--key-gap))) * 0.125)
  );
}


@font-face {
  font-family: "Libre Baskerville";
  src: url("assets/font/strategy/LibreBaskerville-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Libre Baskerville";
  src: url("assets/font/strategy/LibreBaskerville-Bold.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Libre Baskerville";
  src: url("assets/font/strategy/LibreBaskerville-Italic.ttf") format("truetype");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "SF Gothican";
  src: url("assets/font/SF-Gothican.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Disintegrate";
  src: url("assets/font/DISINTEG.TTF") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--paper);
}

body {
  --bg-offset: 0vw;
  min-height: 100vh;
  margin: 0;
  overflow-x: clip;
  color: var(--ink);
  background: transparent;
  font-family: var(--font-ui);
}

html {
  overflow-x: clip;
}

body::before,
body::after {
  position: fixed;
  inset: 0;
  content: "";
  pointer-events: none;
}

body::before {
  z-index: -2;
  background: url("assets/img/background.jpg") center / cover no-repeat;
  background: image-set(
    url("assets/img/background.avif") type("image/avif"),
    url("assets/img/background.webp") type("image/webp"),
    url("assets/img/background.jpg") type("image/jpeg")
  ) center / cover no-repeat;
}

body::after {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(10, 12, 10, 0.72), rgba(10, 12, 10, 0.28)),
    radial-gradient(circle at 20% 22%, rgba(214, 195, 106, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(5, 6, 5, 0.12), rgba(5, 6, 5, 0.62));
}

a {
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  margin: 0;
  padding: 14px clamp(20px, 6vw, 80px);
  border-bottom: 1px solid rgba(237, 229, 199, 0.1);
  background: linear-gradient(180deg, rgba(12, 14, 12, 0.5), rgba(12, 14, 12, 0.18));
  backdrop-filter: blur(12px);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.16);
}

.brand-nav {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px clamp(14px, 2vw, 24px);
}

.brand,
.brand-submenu a,
.kicker,
.dream-copy {
  font-family: var(--font-display);
  font-synthesis: weight;
  font-weight: 700;
  line-height: 1;
  text-shadow:
    0 3px 4px rgba(0, 0, 0, 0.48),
    0 0 1px rgba(255, 255, 255, 0.35);
}

.brand {
  color: var(--ink);
  font-size: 1.7rem;
  text-decoration: none;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

.brand:hover,
.brand:focus-visible,
.brand[aria-current="page"] {
  color: var(--accent-strong);
  outline: none;
  text-decoration-line: underline;
}

.brand-menu-item {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.brand-submenu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  z-index: 90;
  display: grid;
  gap: 4px;
  min-width: 178px;
  padding: 10px;
  border: 1px solid rgba(237, 229, 199, 0.18);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(17, 20, 17, 0.9), rgba(8, 10, 8, 0.82));
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.34);
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 160ms ease, transform 160ms ease;
  backdrop-filter: blur(14px);
}

.brand-menu-item::after {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 12px;
  content: "";
}

.brand-menu-item:hover .brand-submenu,
.brand-menu-item:focus-within .brand-submenu {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  transform: translateY(0);
}

.brand-submenu a {
  padding: 9px 10px;
  border-radius: 6px;
  color: var(--ink);
  font-size: 1.05rem;
  text-decoration: none;
}

.brand-submenu a:hover,
.brand-submenu a:focus-visible {
  background: rgba(255, 240, 166, 0.1);
  color: var(--accent-strong);
  outline: none;
}

.menu-toggle {
  display: none;
}

.dream-stage {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 100%;
  min-height: 100svh;
  padding: clamp(128px, 23svh, 190px) clamp(18px, 4vw, 72px) clamp(84px, 12svh, 150px);
  isolation: isolate;
}

.dream-stage::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  background: url("assets/img/background.jpg") center / cover no-repeat;
  background: image-set(
    url("assets/img/background.avif") type("image/avif"),
    url("assets/img/background.webp") type("image/webp"),
    url("assets/img/background.jpg") type("image/jpeg")
  ) center / cover no-repeat;
  content: "";
}

.dream-stage::after {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 50% 46%, transparent 0 42%, rgba(0, 0, 0, 0.18) 70%),
    linear-gradient(180deg, rgba(7, 8, 7, 0.18), rgba(7, 8, 7, 0.42));
  content: "";
  pointer-events: none;
}

.dream-copy {
  position: absolute;
  top: clamp(28px, 6.6svh, 72px);
  left: clamp(22px, 4vw, 62px);
  right: clamp(22px, 4vw, 62px);
  z-index: 2;
  color: #f1ead8;
  pointer-events: none;
  text-align: right;
}

.dream-quote {
  max-width: 1480px;
  margin: 0 0 0 auto;
  font-size: clamp(1.38rem, 2.28vw, 2.92rem);
  line-height: 1.02;
}

.dream-quote span {
  display: block;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.writing-entry-link {
  position: absolute;
  left: max(clamp(18px, 4vw, 72px), calc((100vw - ((8 * var(--key-width)) + (7 * var(--key-gap)))) / 2));
  top: clamp(104px, 16svh, 150px);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  min-height: 64px;
  padding: 0.78rem 1.55rem 0.9rem;
  border: 1px solid rgba(255, 240, 166, 0.34);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(255, 240, 166, 0.18), rgba(217, 154, 100, 0.08)),
    rgba(14, 16, 13, 0.7);
  color: var(--accent-strong);
  font-family: var(--font-display);
  font-synthesis: weight;
  text-decoration: none;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.72);
  box-shadow:
    0 18px 32px rgba(0, 0, 0, 0.28),
    inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.writing-entry-link::before {
  width: 0.9rem;
  height: 0.9rem;
  border: 1px solid currentColor;
  border-radius: 50% 0 50% 50%;
  background: rgba(255, 240, 166, 0.12);
  content: "";
  transform: rotate(-34deg);
}

.writing-entry-link:hover,
.writing-entry-link:focus-visible {
  border-color: rgba(255, 240, 166, 0.76);
  box-shadow:
    0 22px 40px rgba(0, 0, 0, 0.34),
    0 0 24px rgba(255, 240, 166, 0.16);
  outline: none;
  transform: translateY(-2px);
}

.writing-entry-link__eyebrow {
  color: var(--warm);
  font-size: clamp(0.92rem, 1.45vw, 1.2rem);
}

.writing-entry-link__title {
  color: #fff;
  font-size: clamp(1.42rem, 2.45vw, 2.2rem);
}

.key-strip {
  display: grid;
  grid-template-columns: repeat(8, var(--key-width));
  gap: var(--key-gap);
  align-items: end;
  justify-content: center;
  width: min-content;
  max-width: calc(100vw - 36px);
  z-index: 1;
}

.dream-key {
  position: relative;
  display: block;
  width: var(--key-width);
  height: var(--key-height);
  overflow: hidden;
  border: 0;
  background: #111;
  box-shadow:
    0 24px 36px rgba(0, 0, 0, 0.38),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  opacity: 0.92;
  outline: none;
  transform: translateY(calc((var(--i) - 3.5) * 0.5px));
  transition: box-shadow 180ms ease, filter 180ms ease, opacity 180ms ease, transform 180ms ease;
}

.dream-key::before,
.dream-key::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  pointer-events: none;
}

.dream-key::before {
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.54) 46% 54%, rgba(0, 0, 0, 0.18));
}

.dream-key::after {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 18%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.16), rgba(0, 0, 0, 0.02) 42%, rgba(0, 0, 0, 0.18)),
    linear-gradient(90deg, rgba(255, 255, 255, 0.1), transparent 22%, transparent 78%, rgba(0, 0, 0, 0.22));
}

.dream-key:hover,
.dream-key:focus-visible {
  opacity: 1;
  box-shadow:
    0 30px 46px rgba(0, 0, 0, 0.44),
    0 0 26px rgba(255, 240, 166, 0.16),
    inset 0 0 0 1px rgba(255, 240, 166, 0.22);
  filter: saturate(1.12);
  transform: translateY(calc((var(--i) - 3.5) * 0.5px - 8px));
}

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

.key-label {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  color: #fff;
  font-family: var(--font-display);
  font-synthesis: weight;
  font-size: min(clamp(1.5rem, 3.18vw, 3.4rem), calc(var(--key-height) * 0.1));
  font-weight: 700;
  line-height: 1;
  padding: 0.12em 0.18em 0.2em;
  text-shadow:
    -1px -1px 0 rgba(0, 0, 0, 0.9),
    1px -1px 0 rgba(0, 0, 0, 0.9),
    -1px 1px 0 rgba(0, 0, 0, 0.9),
    1px 1px 0 rgba(0, 0, 0, 0.9),
    0 0 12px rgba(255, 244, 194, 0.36);
  transform: translate(-50%, -50%) rotate(-90deg);
  transform-origin: center;
  white-space: nowrap;
  pointer-events: none;
}

.site-url {
  position: absolute;
  right: clamp(22px, 4vw, 62px);
  bottom: clamp(22px, 4vw, 54px);
  color: #fff;
  font-family: var(--font-disintegrate);
  font-size: clamp(1.15rem, 2.5vw, 2.55rem);
  font-synthesis: none;
  text-decoration: none;
  text-shadow:
    0 3px 4px rgba(0, 0, 0, 0.48),
    0 0 1px rgba(255, 255, 255, 0.35);
}

/* Original landing key treatment from the static site. */
.key-strip {
  overflow-x: visible;
  overflow-y: visible;
  padding: 0;
}

.dream-key {
  min-height: 0;
  flex: 0 0 auto;
}

.dream-key::before {
  background:
    linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.18) 0%,
      rgba(0, 0, 0, 0.3) 18%,
      rgba(0, 0, 0, 0.44) 34%,
      rgba(0, 0, 0, 0.54) 46%,
      rgba(0, 0, 0, 0.54) 54%,
      rgba(0, 0, 0, 0.44) 66%,
      rgba(0, 0, 0, 0.3) 82%,
      rgba(0, 0, 0, 0.18) 100%
    );
}

.key-label--with-icon,
.key-label--galaxy {
  display: inline-flex;
  align-items: center;
  gap: 0.44em;
}

.key-label:has(.key-icon--blog) {
  gap: 0.58em;
}

.key-icon,
.key-galaxy-orbit {
  position: relative;
  flex: 0 0 auto;
  width: 0.78em;
  height: 0.78em;
}

.key-icon {
  color: #fff0a6;
  filter: drop-shadow(0 0 9px rgba(255, 240, 166, 0.42));
}

.key-icon::before,
.key-icon::after,
.key-galaxy-orbit::before,
.key-galaxy-orbit::after {
  position: absolute;
  content: "";
}

.key-icon--blog {
  border: 0.055em solid rgba(255, 240, 166, 0.82);
  border-radius: 0.1em;
  background:
    linear-gradient(currentColor 0 0) 0.14em 0.24em / 0.34em 0.045em no-repeat,
    linear-gradient(currentColor 0 0) 0.14em 0.4em / 0.5em 0.045em no-repeat,
    rgba(255, 240, 166, 0.07);
  animation: key-quill-css 4s ease-in-out infinite;
}

.key-icon--blog::before {
  right: 0.08em;
  top: -0.14em;
  width: 0.14em;
  height: 0.74em;
  border-radius: 80% 80% 45% 45%;
  background:
    linear-gradient(118deg, transparent 0 44%, rgba(17, 18, 15, 0.58) 45% 54%, transparent 55%),
    currentColor;
  box-shadow: 0 0 0.24em rgba(255, 240, 166, 0.28);
  transform: rotate(43deg);
  transform-origin: center bottom;
}

.key-icon--blog::after {
  right: 0.06em;
  top: 0.55em;
  width: 0.25em;
  height: 0.055em;
  border-radius: 0.04em;
  background: #d99a64;
  transform: rotate(-38deg);
}

.key-icon--about {
  border: 0.06em solid rgba(255, 240, 166, 0.78);
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, currentColor 0 0.08em, transparent 0.09em);
  box-shadow:
    inset 0 0 0 0.05em rgba(255, 240, 166, 0.1),
    0 0 0.18em rgba(255, 240, 166, 0.18);
  animation: key-profile-css 4.6s ease-in-out infinite;
}

.key-icon--about::before {
  inset: 0.14em;
  background: currentColor;
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
}

.key-icon--about::after {
  left: 50%;
  top: 50%;
  width: 0.12em;
  height: 0.12em;
  border-radius: 50%;
  background: #d99a64;
  transform: translate(-50%, -50%);
}

.key-icon--book {
  border-bottom: 0.07em solid currentColor;
  animation: key-shelf-css 4.2s ease-in-out infinite;
}

.key-icon--book::before,
.key-icon--book::after {
  bottom: 0.08em;
  border-radius: 0.04em 0.04em 0.01em 0.01em;
  background: currentColor;
}

.key-icon--book::before {
  left: 0.05em;
  width: 0.13em;
  height: 0.55em;
  box-shadow:
    0.17em 0.04em 0 -0.01em #d99a64,
    0.34em -0.02em 0 0 rgba(255, 240, 166, 0.88),
    0.52em 0.07em 0 -0.02em rgba(156, 246, 200, 0.9);
}

.key-icon--book::after {
  right: 0.06em;
  width: 0.14em;
  height: 0.5em;
  background: rgba(255, 240, 166, 0.72);
  transform: rotate(-7deg);
  transform-origin: bottom center;
}

.key-icon--audio::before {
  left: 50%;
  top: 0.08em;
  width: 0.28em;
  height: 0.48em;
  border-radius: 999px;
  background: currentColor;
  transform: translateX(-50%);
  transform-origin: center bottom;
  animation: key-mic-head-pulse 2.45s ease-in-out infinite;
}

.key-icon--audio::after {
  left: 50%;
  bottom: 0.08em;
  width: 0.48em;
  height: 0.34em;
  border: 0.06em solid currentColor;
  border-top: 0;
  border-radius: 0 0 50% 50%;
  box-shadow: 0 0.22em 0 -0.1em currentColor;
  transform: translateX(-50%);
}

.key-icon--media {
  border: 0.06em solid currentColor;
  border-radius: 0.12em;
  animation: key-screen-flicker 3.4s ease-in-out infinite;
}

.key-icon--media::before {
  left: 0.31em;
  top: 0.22em;
  width: 0;
  height: 0;
  border-top: 0.16em solid transparent;
  border-bottom: 0.16em solid transparent;
  border-left: 0.25em solid currentColor;
}

.key-icon--media::after {
  left: 50%;
  bottom: -0.16em;
  width: 0.32em;
  height: 0.06em;
  border-radius: 999px;
  background: currentColor;
  transform: translateX(-50%);
}

.key-icon--award {
  animation: key-award-twinkle 2.8s ease-in-out infinite;
}

.key-icon--award::before {
  inset: 0.04em;
  background: currentColor;
  clip-path: polygon(50% 0, 62% 35%, 100% 35%, 69% 57%, 80% 96%, 50% 72%, 20% 96%, 31% 57%, 0 35%, 38% 35%);
}

.key-icon--award::after {
  left: 50%;
  bottom: -0.08em;
  width: 0.38em;
  height: 0.2em;
  border: 0.06em solid #d99a64;
  border-top: 0;
  border-radius: 0 0 0.08em 0.08em;
  transform: translateX(-50%);
}

.key-icon--contact {
  border: 0.07em solid currentColor;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, currentColor 0 0.12em, transparent 0.13em);
  animation: key-contact-simple 3.8s ease-in-out infinite;
}

.key-icon--contact::before {
  inset: -0.12em;
  border: 0.06em solid currentColor;
  border-radius: 50%;
  opacity: 0;
  animation: key-contact-ring 2.4s ease-out infinite;
}

.key-icon--contact::after {
  right: 0.02em;
  top: 0.02em;
  width: 0.15em;
  height: 0.15em;
  border-radius: 50%;
  background: #d99a64;
}

.key-galaxy-orbit {
  border: 1px solid rgba(255, 240, 166, 0.62);
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(255, 240, 166, 0.28);
}

.key-galaxy-orbit::before {
  inset: 28%;
  border-radius: 50%;
  background: #fff0a6;
  box-shadow:
    0 0 10px rgba(255, 240, 166, 0.72),
    0.42em -0.22em 0 -0.17em #d99a64,
    -0.32em 0.32em 0 -0.17em #9cf6c8;
}

.key-galaxy-orbit::after {
  inset: 2px;
  border: 1px solid rgba(156, 246, 200, 0.52);
  border-radius: 50%;
  transform: rotate(28deg) scaleX(1.42);
  animation: key-galaxy-orbit 4.8s linear infinite;
}

.dream-key:hover,
.dream-key:focus-visible {
  box-shadow:
    0 30px 54px rgba(0, 0, 0, 0.48),
    0 0 0 2px rgba(240, 231, 190, 0.72),
    0 0 34px rgba(240, 231, 190, 0.18);
  filter: saturate(1.06) contrast(1.06);
  opacity: 1;
  transform: translateY(-10px);
}

.dream-key.is-disabled {
  cursor: not-allowed;
  opacity: 0.78;
  filter: saturate(0.78) contrast(0.96);
}

.dream-key.is-disabled::after {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 18%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.22), rgba(0, 0, 0, 0.08) 42%, rgba(0, 0, 0, 0.28)),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08), transparent 22%, transparent 78%, rgba(0, 0, 0, 0.24)),
    repeating-linear-gradient(
      -18deg,
      transparent 0 0.7rem,
      rgba(255, 240, 166, 0.09) 0.75rem 0.82rem,
      transparent 0.88rem 1.5rem
    );
  animation: pending-key-scan 5.2s linear infinite;
}

.dream-key.is-disabled img {
  filter: grayscale(0.24) brightness(0.72);
  transform: scale(1.01);
}

.dream-key.is-disabled .key-label {
  color: rgba(255, 240, 166, 0.88);
  animation: pending-key-label 3.4s ease-in-out infinite;
}

.dream-key.is-disabled .key-icon {
  color: rgba(255, 240, 166, 0.86);
  filter:
    drop-shadow(0 0 6px rgba(255, 240, 166, 0.34))
    drop-shadow(0 0 14px rgba(217, 154, 100, 0.18));
}

.dream-key.is-disabled:hover,
.dream-key.is-disabled:focus-visible {
  box-shadow:
    0 24px 42px rgba(0, 0, 0, 0.44),
    0 0 0 1px rgba(255, 240, 166, 0.34),
    inset 0 0 34px rgba(255, 240, 166, 0.06);
  filter: saturate(0.88) contrast(1);
  opacity: 0.86;
  transform: translateY(calc((var(--i) - 3.5) * 0.5px));
}

.site-url {
  left: clamp(22px, 4vw, 62px);
  right: auto;
  bottom: clamp(20px, 3.5svh, 40px);
  z-index: 2;
  font-size: clamp(1.8rem, 4vw, 4.2rem);
  line-height: 0.95;
}

.site-url:hover,
.site-url:focus-visible {
  outline: none;
  text-shadow:
    0 3px 4px rgba(0, 0, 0, 0.5),
    0 0 18px rgba(255, 255, 255, 0.32);
}

@keyframes key-galaxy-orbit {
  to {
    transform: rotate(388deg) scaleX(1.42);
  }
}

@keyframes key-quill-css {
  50% {
    transform: translateY(-0.05em) rotate(3deg);
    filter: drop-shadow(0 0 0.42em rgba(255, 240, 166, 0.6));
  }
}

@keyframes key-profile-css {
  50% {
    transform: translateY(-0.04em);
    box-shadow: 0 0 0.48em rgba(255, 240, 166, 0.28);
  }
}

@keyframes key-shelf-css {
  50% {
    transform: translateY(-0.04em) rotate(1deg);
  }
}

@keyframes key-mic-head-pulse {
  0%,
  100% {
    background: #fff0a6;
    box-shadow: 0 0 0.18em rgba(255, 240, 166, 0.28);
    transform: translateX(-50%) scale(0.96, 0.98);
  }

  50% {
    background: #f0c383;
    box-shadow: 0 0 0.34em rgba(240, 195, 131, 0.48);
    transform: translateX(-50%) scale(1.08, 1.1);
  }
}

@keyframes key-screen-flicker {
  0%,
  100% {
    box-shadow: inset 0 0 0 rgba(255, 240, 166, 0), 0 0 0.12em rgba(255, 240, 166, 0.18);
  }

  45%,
  52% {
    box-shadow: inset 0 0 0.28em rgba(255, 240, 166, 0.22), 0 0 0.32em rgba(255, 240, 166, 0.34);
  }
}

@keyframes key-award-twinkle {
  50% {
    transform: rotate(10deg) scale(1.08);
    filter: drop-shadow(0 0 0.42em rgba(255, 240, 166, 0.7));
  }
}

@keyframes key-contact-simple {
  50% {
    transform: translateY(-0.05em);
    filter: drop-shadow(0 0 0.48em rgba(255, 240, 166, 0.58));
  }
}

@keyframes key-contact-ring {
  0% {
    opacity: 0.56;
    transform: scale(0.7);
  }

  100% {
    opacity: 0;
    transform: scale(1.18);
  }
}

@keyframes pending-key-scan {
  to {
    background-position: 0 0, 0 0, 0 0, 0 2.8rem;
  }
}

@keyframes pending-key-label {
  0%,
  100% {
    text-shadow:
      -1px -1px 0 rgba(0, 0, 0, 0.9),
      1px -1px 0 rgba(0, 0, 0, 0.9),
      -1px 1px 0 rgba(0, 0, 0, 0.9),
      1px 1px 0 rgba(0, 0, 0, 0.9),
      0 0 8px rgba(255, 240, 166, 0.28);
  }

  50% {
    text-shadow:
      -1px -1px 0 rgba(0, 0, 0, 0.9),
      1px -1px 0 rgba(0, 0, 0, 0.9),
      -1px 1px 0 rgba(0, 0, 0, 0.9),
      1px 1px 0 rgba(0, 0, 0, 0.9),
      0 0 18px rgba(255, 240, 166, 0.5),
      0 0 30px rgba(217, 154, 100, 0.22);
  }
}

.content-shell {
  width: var(--shell-width);
  margin: 0 auto;
  padding: var(--shell-padding);
}

.content-shell--work {
  width: min(900px, calc(100% - 40px));
}

.page-hero,
.post-card,
.entry-content,
.comments-area {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-strong);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.page-hero {
  margin-bottom: 28px;
  padding: clamp(24px, 5vw, 46px);
}

.kicker {
  margin: 0 0 16px;
  color: #fff;
  font-size: clamp(1.35rem, 2.8vw, 2.6rem);
}

h1,
.entry-title {
  max-width: 12ch;
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(3.2rem, 8vw, 6.8rem);
  line-height: 0.93;
  letter-spacing: 0;
}

.intro-subtitle {
  max-width: 760px;
  margin: 28px 0 0;
  color: var(--subtitle);
  font-family: var(--font-serif);
  font-size: clamp(1.22rem, 2.2vw, 1.72rem);
  font-style: italic;
  line-height: 1.28;
}

.entry-content {
  padding: clamp(22px, 4vw, 34px);
}

.entry-content--inside {
  margin-top: 24px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.entry-content p,
.entry-content li {
  color: var(--ink);
  font-size: 1.04rem;
  line-height: 1.76;
}

.entry-content a,
.post-card a {
  color: var(--accent-strong);
  font-weight: 700;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

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

.archive-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 12px;
  margin: 0 0 24px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(9, 11, 9, 0.72);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.24);
}

.archive-filters label {
  display: grid;
  gap: 6px;
  min-width: min(100%, 210px);
}

.archive-filters span {
  color: var(--muted);
  font-size: 0.86rem;
}

.archive-filters select,
.archive-filters button,
.archive-filters__reset {
  min-height: 42px;
  border: 1px solid rgba(237, 229, 199, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink);
  font: inherit;
}

.archive-filters select {
  padding: 0 36px 0 12px;
}

.archive-filters button,
.archive-filters__reset {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  color: var(--accent-strong);
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.archive-filters button:hover,
.archive-filters button:focus-visible,
.archive-filters__reset:hover,
.archive-filters__reset:focus-visible {
  border-color: rgba(255, 240, 166, 0.5);
  background: rgba(255, 240, 166, 0.08);
  outline: none;
}

.navigation.pagination {
  margin-top: 26px;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.nav-links .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid rgba(237, 229, 199, 0.2);
  border-radius: 8px;
  background: rgba(9, 11, 9, 0.72);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.nav-links .page-numbers.current {
  border-color: rgba(255, 240, 166, 0.56);
  color: var(--accent-strong);
}

.nav-links a.page-numbers:hover,
.nav-links a.page-numbers:focus-visible {
  border-color: rgba(255, 240, 166, 0.5);
  background: rgba(255, 240, 166, 0.08);
  outline: none;
}

.post-card {
  padding: clamp(20px, 4vw, 30px);
}

.post-card h2 {
  margin: 0 0 12px;
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.05;
}

.blog-shell {
  --blog-reading-width: min(760px, 100%);
}

.blog-shell .page-hero {
  display: grid;
  gap: 0;
  margin-bottom: 18px;
  padding: clamp(18px, 3vw, 28px);
}

.blog-shell .kicker {
  margin-bottom: 10px;
  font-size: clamp(1.15rem, 2.1vw, 1.85rem);
}

.blog-shell .page-hero h1,
.blog-shell .page-hero .entry-title {
  font-size: clamp(2.45rem, 5.6vw, 4.8rem);
}

.blog-shell .intro-subtitle {
  margin-top: 16px;
  font-size: clamp(1.08rem, 1.8vw, 1.42rem);
}

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

.blog-sidebar {
  position: sticky;
  top: 84px;
  display: grid;
  gap: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(9, 11, 9, 0.78);
  box-shadow: var(--floating-shadow);
  backdrop-filter: blur(14px);
}

.blog-sidebar__section {
  display: grid;
  gap: 10px;
}

.blog-sidebar__section + .blog-sidebar__section {
  padding-top: 16px;
  border-top: 1px solid rgba(237, 229, 199, 0.12);
}

.blog-sidebar h2 {
  margin: 0;
  color: var(--warm);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.blog-recent-list {
  display: grid;
  gap: 8px;
}

.blog-filter,
.blog-rss,
.blog-tag-cloud a,
.blog-search button,
.copy-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid rgba(237, 229, 199, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.blog-filter {
  justify-content: space-between;
  gap: 12px;
  width: 100%;
}

.blog-filter small {
  color: var(--muted);
  font-size: 0.78rem;
}

.blog-filter:hover,
.blog-filter:focus-visible,
.blog-filter.is-active,
.blog-rss:hover,
.blog-rss:focus-visible,
.blog-tag-cloud a:hover,
.blog-tag-cloud a:focus-visible,
.blog-tag-cloud a.is-active,
.blog-search button:hover,
.blog-search button:focus-visible,
.copy-link:hover,
.copy-link:focus-visible {
  border-color: rgba(255, 240, 166, 0.56);
  background: rgba(255, 240, 166, 0.09);
  color: var(--accent-strong);
  outline: none;
}

.blog-search {
  display: grid;
  gap: 9px;
}

.blog-search label {
  display: grid;
  gap: 5px;
}

.blog-search span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.blog-search input {
  width: 100%;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid rgba(237, 229, 199, 0.18);
  border-radius: 8px;
  background: rgba(8, 10, 8, 0.72);
  color: var(--ink);
  font: inherit;
}

.blog-category-select {
  display: grid;
  gap: 6px;
}

.blog-category-select span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.blog-category-select select {
  width: 100%;
  min-height: 42px;
  padding: 0 36px 0 12px;
  border: 1px solid rgba(237, 229, 199, 0.18);
  border-radius: 8px;
  background: rgba(8, 10, 8, 0.72);
  color: var(--ink);
  font: inherit;
}

.blog-category-select select:focus-visible {
  border-color: rgba(255, 240, 166, 0.56);
  outline: none;
}

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

.blog-tag-cloud a {
  min-height: 32px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 0.82rem;
}

.blog-recent-list a {
  display: grid;
  gap: 5px;
  padding: 10px;
  border: 1px solid rgba(237, 229, 199, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
  text-decoration: none;
}

.blog-recent-list a:hover,
.blog-recent-list a:focus-visible {
  border-color: rgba(255, 240, 166, 0.48);
  color: var(--accent-strong);
  outline: none;
}

.blog-recent-list strong {
  font-family: var(--font-serif);
  font-size: 1.02rem;
  line-height: 1.15;
}

.blog-recent-list small {
  color: var(--muted);
  font-size: 0.82rem;
}

.blog-list {
  display: grid;
  gap: 16px;
}

.blog-card {
  display: grid;
  grid-template-columns: minmax(180px, 0.42fr) minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(214, 195, 106, 0.08), transparent 52%),
    var(--surface);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(8px);
}

.blog-card--featured {
  grid-template-columns: minmax(260px, 0.52fr) minmax(0, 1fr);
  border-color: rgba(255, 240, 166, 0.28);
  background:
    linear-gradient(90deg, rgba(217, 154, 100, 0.12), transparent 56%),
    var(--surface-strong);
  box-shadow: var(--shadow);
}

.blog-card__media {
  min-height: 100%;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
}

.blog-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 210px;
  object-fit: cover;
  transition: transform 280ms ease, filter 280ms ease;
}

.blog-card:hover .blog-card__media img,
.blog-card:focus-within .blog-card__media img {
  filter: saturate(1.08);
  transform: scale(1.025);
}

.blog-card__body {
  display: grid;
  align-content: center;
  gap: 12px;
  padding: clamp(20px, 3.8vw, 34px);
}

.blog-card__eyebrow {
  width: fit-content;
  margin: 0;
  padding: 7px 10px;
  border: 1px solid rgba(255, 240, 166, 0.26);
  border-radius: 8px;
  background: rgba(255, 240, 166, 0.08);
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.blog-card h2 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(1.65rem, 3.2vw, 2.8rem);
  line-height: 1.06;
}

.blog-card h2 a {
  color: var(--ink);
  text-decoration: none;
}

.blog-card h2 a:hover,
.blog-card h2 a:focus-visible {
  color: var(--accent-strong);
  outline: none;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.post-meta a {
  color: var(--accent-strong);
  text-decoration-color: rgba(255, 240, 166, 0.44);
  text-underline-offset: 3px;
}

.post-meta span + span::before {
  content: "/";
  margin-right: 10px;
  color: rgba(200, 193, 173, 0.54);
}

.blog-card p:not(.post-meta, .blog-card__eyebrow, .blog-card__actions) {
  margin: 0;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.62;
}

.blog-card__actions {
  margin: 0;
}

.blog-card__actions a {
  color: var(--accent-strong);
  font-weight: 900;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.work-card {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  min-height: 128px;
  padding: 16px 18px;
  background: var(--surface);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(8px);
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease,
    background 160ms ease;
}

.work-card:hover,
.work-card:focus-within {
  border-color: rgba(214, 195, 106, 0.58);
  background: rgba(24, 28, 23, 0.88);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.work-card--ficcion_sonora,
.work-card--multimedia_item {
  grid-template-columns: 58px minmax(0, 1fr);
}

.work-card h2 {
  max-width: 36ch;
  margin-bottom: 9px;
  font-family: var(--font-serif);
  font-size: clamp(1.05rem, 2vw, 1.36rem);
  line-height: 1.18;
}

.work-card h2 a {
  color: var(--ink);
  text-decoration: none;
}

.work-card h2 a:hover,
.work-card h2 a:focus-visible {
  color: var(--accent-strong);
  outline: none;
}

.work-thumb {
  display: block;
  overflow: hidden;
}

.work-thumb--cover {
  grid-row: 1 / span 2;
  width: 62px;
  height: 96px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.34);
}

.work-thumb--cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.work-thumb--icon,
.work-card__action,
.icon-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 240, 166, 0.28);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.28);
}

.work-thumb--icon img,
.work-card__action img,
.icon-action img {
  display: block;
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.work-card__action {
  grid-column: 3;
  grid-row: 1 / span 2;
  align-self: center;
  justify-self: end;
  width: 40px;
  height: 40px;
  margin-top: -4px;
}

.work-card__body {
  min-width: 0;
}

.header-tools {
  position: fixed;
  top: 84px;
  right: max(20px, calc((100vw - 1120px) / 2));
  z-index: 20;
  display: grid;
  justify-items: end;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--floating-glass);
  box-shadow: var(--floating-shadow);
  backdrop-filter: blur(16px);
}

.post-type-archive-publicacion .header-tools {
  right: calc(max(20px, calc((100vw - 1120px) / 2)) - (100vw - 100%));
}

.post-type-archive-ficcion_sonora .header-tools,
.post-type-archive-multimedia_item .header-tools {
  right: auto;
  left: max(20px, calc((100vw - 1120px) / 2));
  justify-items: start;
}

.filter-control {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.author {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.filter-control select {
  min-width: 150px;
  padding: 9px 34px 9px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(17, 20, 17, 0.84);
  color: var(--ink);
  font: inherit;
  text-transform: none;
}

.filter-control select:focus-visible {
  border-color: rgba(214, 195, 106, 0.72);
  outline: none;
}

.work-archive.stage {
  --panel-index: 0;
  width: 100vw;
  overflow: hidden;
  transition: height 220ms ease;
}

.work-archive .page-track {
  display: flex;
  align-items: flex-start;
  width: max-content;
  transform: translateX(calc(var(--panel-index) * -100vw));
  transition: transform 760ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.work-archive .page-panel {
  flex: 0 0 100vw;
  min-height: calc(100vh - 94px);
  padding: 28px max(20px, calc((100vw - 1120px) / 2)) 80px;
}

.work-archive .home {
  display: grid;
  grid-template-columns: minmax(0, 0.98fr) minmax(320px, 1.02fr);
  gap: 56px;
  align-items: start;
}

.work-archive .intro {
  position: sticky;
  top: 28px;
  justify-self: start;
  padding-top: 174px;
  text-align: left;
}

.post-type-archive-publicacion .work-archive .intro {
  justify-self: end;
  text-align: right;
}

.post-type-archive-publicacion .work-archive .intro p {
  margin-left: auto;
}

.work-archive .intro .kicker {
  color: #fff;
  font-family: var(--font-display);
  font-synthesis: none;
  font-size: clamp(1.35rem, 2.8vw, 2.6rem);
  font-weight: 400;
  line-height: 1;
  text-shadow:
    0 3px 4px rgba(0, 0, 0, 0.48),
    0 0 1px rgba(255, 255, 255, 0.35);
  text-transform: none;
}

.work-archive .intro h1 {
  max-width: 10ch;
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(3.2rem, 7vw, 5.4rem);
  line-height: 0.93;
  letter-spacing: 0;
}

.work-archive .intro-subtitle {
  max-width: 560px;
  margin: 28px 0 0;
  color: var(--subtitle);
  font-family: var(--font-serif);
  font-size: clamp(1.22rem, 2.2vw, 1.72rem);
  font-style: italic;
  line-height: 1.28;
}

.work-archive .galaxy-link {
  position: relative;
  display: inline-grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  width: min(100%, 360px);
  max-width: 360px;
  margin-top: 30px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 240, 166, 0.36);
  border-radius: 8px;
  overflow: hidden;
  background:
    radial-gradient(circle at 22px 50%, rgba(255, 240, 166, 0.22), transparent 52px),
    rgba(24, 28, 23, 0.84);
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.34),
    0 0 26px rgba(214, 195, 106, 0.12);
  color: var(--ink);
  text-align: left;
  text-decoration: none;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.work-archive .galaxy-link::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 0 34%, rgba(255, 240, 166, 0.14) 44%, transparent 54% 100%);
  content: "";
  transform: translateX(-120%);
  animation: galaxy-sweep 3.8s ease-in-out infinite;
  pointer-events: none;
}

.work-archive .galaxy-link:hover,
.work-archive .galaxy-link:focus-visible {
  border-color: rgba(255, 240, 166, 0.72);
  box-shadow:
    0 22px 52px rgba(0, 0, 0, 0.44),
    0 0 34px rgba(214, 195, 106, 0.2);
  outline: none;
  transform: translateY(-3px);
}

.work-archive .galaxy-link strong,
.work-archive .galaxy-link small {
  display: block;
}

.work-archive .galaxy-link strong {
  font-family: var(--font-serif);
  font-size: 1.12rem;
  line-height: 1.1;
}

.work-archive .galaxy-link small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.3;
}

.work-archive .galaxy-link.timeline-link {
  margin-top: 14px;
}

.work-archive .galaxy-orbit {
  position: relative;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 240, 166, 0.42);
  border-radius: 50%;
}

.work-archive .galaxy-orbit::before,
.work-archive .galaxy-orbit::after {
  position: absolute;
  border-radius: 50%;
  content: "";
}

.work-archive .galaxy-orbit::before {
  inset: 8px;
  background: var(--accent-strong);
  box-shadow:
    0 0 12px rgba(255, 240, 166, 0.72),
    16px -8px 0 -5px var(--warm),
    -12px 12px 0 -5px #9cf6c8;
}

.work-archive .galaxy-orbit::after {
  inset: 1px;
  border: 1px solid rgba(156, 246, 200, 0.48);
  transform: rotate(28deg) scaleX(1.42);
  animation: galaxy-orbit 4.8s linear infinite;
}

@keyframes galaxy-sweep {
  0%,
  58% {
    transform: translateX(-120%);
  }

  100% {
    transform: translateX(120%);
  }
}

@keyframes galaxy-orbit {
  to {
    transform: rotate(388deg) scaleX(1.42);
  }
}

.work-archive .story-list {
  display: grid;
  gap: 14px;
}

.work-archive .story-link {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  min-height: 128px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(8px);
  color: var(--ink);
  text-decoration: none;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease,
    background 160ms ease;
}

.post-type-archive-ficcion_sonora .work-archive .story-link {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  min-height: 116px;
  padding: 24px;
}

.post-type-archive-multimedia_item .work-archive .story-link {
  grid-template-columns: 58px minmax(0, 1fr);
}

.work-archive .story-link:hover,
.work-archive .story-link:focus-visible {
  border-color: rgba(214, 195, 106, 0.58);
  background: rgba(24, 28, 23, 0.88);
  box-shadow: var(--shadow);
  outline: none;
  transform: translateY(-2px);
}

.work-archive .story-link[hidden] {
  display: none;
}

.work-archive .story-thumb {
  grid-row: 1 / span 2;
  width: 62px;
  height: 96px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 4px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.34);
}

.work-archive .video-thumb {
  width: 44px;
  height: 44px;
  padding: 8px;
  border-color: rgba(255, 240, 166, 0.28);
  border-radius: 8px;
  object-fit: contain;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.28);
}

.work-archive .story-copy {
  min-width: 0;
}

.work-archive .story-link strong {
  display: block;
  margin-bottom: 9px;
  font-family: var(--font-serif);
  font-size: clamp(1.05rem, 2vw, 1.36rem);
  line-height: 1.18;
}

.post-type-archive-ficcion_sonora .work-archive .story-link strong {
  margin-bottom: 8px;
  font-size: 1.45rem;
  line-height: 1.15;
}

.work-archive .story-link small {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.35;
}

.post-type-archive-ficcion_sonora .work-archive .story-link small {
  display: grid;
  gap: 2px;
  font-size: 0.98rem;
  line-height: 1.45;
}

.work-archive .story-link small span + span::before {
  content: "/";
  margin-right: 10px;
  color: rgba(200, 193, 173, 0.54);
}

.post-type-archive-ficcion_sonora .work-archive .story-link small span + span::before {
  content: none;
  margin-right: 0;
}

.work-archive .listen-action,
.work-archive .story-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 240, 166, 0.28);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.28);
}

.work-archive .listen-action {
  flex: 0 0 auto;
}

.work-archive .listen-action img {
  display: block;
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.work-archive .story-download {
  grid-column: 3;
  grid-row: 1 / span 2;
  justify-self: end;
  align-self: center;
  width: 40px;
  height: 40px;
  margin-top: -4px;
  padding: 7px;
  object-fit: contain;
}

.back-to-top {
  position: fixed;
  right: max(20px, calc((100vw - 1120px) / 2));
  bottom: 24px;
  z-index: 20;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--floating-glass);
  color: var(--accent-strong);
  box-shadow: var(--floating-shadow);
  cursor: pointer;
  backdrop-filter: blur(16px);
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease,
    background 160ms ease;
}

.post-type-archive-ficcion_sonora .back-to-top,
.post-type-archive-multimedia_item .back-to-top {
  right: auto;
  left: max(20px, calc((100vw - 1120px) / 2));
}

.back-to-top-icon {
  display: block;
  width: 27px;
  height: 27px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.9;
}

.back-to-top:hover,
.back-to-top:focus-visible {
  border-color: rgba(255, 240, 166, 0.72);
  background: linear-gradient(180deg, rgba(25, 29, 24, 0.68), rgba(12, 14, 12, 0.56));
  box-shadow: var(--shadow);
  outline: none;
  transform: translateY(-2px);
}

.work-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 20px 0 0;
}

.story-page.work-single {
  width: auto;
  max-width: none;
  margin: 0;
  padding-block: 24px 78px;
  padding-inline: max(20px, calc((100vw - 900px) / 2));
}

.detail-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: end;
  gap: 10px 12px;
  margin: 0;
}

.return-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-width: 118px;
  min-height: 38px;
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--floating-glass);
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 900;
  letter-spacing: 0.01em;
  text-decoration: none;
  box-shadow: var(--floating-shadow);
  backdrop-filter: blur(16px);
  transition:
    border-color 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.return-index i {
  display: block;
  width: 10px;
  height: 10px;
  border-color: currentColor;
  border-style: solid;
  border-width: 2px 2px 0 0;
}

.return-index--left i {
  transform: rotate(-135deg);
}

.return-index:hover,
.return-index:focus-visible {
  border-color: rgba(255, 240, 166, 0.72);
  background: linear-gradient(180deg, rgba(25, 29, 24, 0.68), rgba(12, 14, 12, 0.56));
  color: var(--ink);
  box-shadow: var(--shadow);
  outline: none;
  transform: translateY(-2px);
}

.detail-nav--return-left .return-index {
  grid-column: 1;
  justify-self: start;
}

.detail-nav .nav-prev {
  grid-column: 1;
  grid-row: 2;
  justify-self: start;
}

.detail-nav .nav-next {
  grid-column: 2;
  grid-row: 2;
  justify-self: end;
}

.nav-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 128px;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--accent-strong);
  font-size: 0.92rem;
  font-weight: 800;
  text-decoration: none;
  backdrop-filter: blur(8px);
  transition:
    border-color 160ms ease,
    background 160ms ease,
    transform 160ms ease;
}

.nav-arrow:hover,
.nav-arrow:focus-visible {
  border-color: rgba(214, 195, 106, 0.58);
  background: rgba(24, 28, 23, 0.88);
  outline: none;
  transform: translateY(-2px);
}

.nav-arrow.is-disabled,
.nav-arrow.is-disabled:hover {
  border-color: var(--line);
  background: var(--surface);
  color: rgba(243, 240, 229, 0.38);
  cursor: default;
  opacity: 0.72;
  transform: none;
}

.book-detail,
.audio-detail,
.video-detail {
  display: grid;
  gap: 26px;
  padding: 38px 0 0;
}

.book-detail {
  justify-items: center;
}

.book-cover {
  display: block;
  width: auto;
  max-width: min(100%, 360px);
  max-height: 500px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.5);
}

.book-info,
.audio-info,
.player-panel {
  width: min(760px, 100%);
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-strong);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.audio-info,
.player-panel,
.video-detail .book-info,
.video-embed {
  width: 100%;
}

.book-info h1,
.audio-info h1,
.video-detail h1 {
  max-width: 100%;
  font-size: clamp(1.8rem, 4.4vw, 3.65rem);
  line-height: 1.02;
}

.audio-info h1 {
  font-size: clamp(2rem, 5.4vw, 4.15rem);
  line-height: 1;
}

.player-panel iframe {
  display: block;
  width: 100%;
  min-height: 200px;
  border: 0;
}

.video-embed {
  overflow: hidden;
  border: 1px solid rgba(237, 229, 199, 0.18);
  border-radius: 8px;
  background: rgba(9, 11, 9, 0.82);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.5);
}

.video-embed iframe {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border: 0;
}

.work-facts,
.book-facts,
.audio-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 26px 0 0;
}

.work-facts p,
.fact-item {
  min-width: 0;
  margin: 0;
  padding: 14px;
  border: 1px solid rgba(237, 229, 199, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--muted);
}

.work-facts strong,
.fact-item dt {
  display: block;
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.fact-item dd {
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 0.98rem;
  line-height: 1.35;
}

.links-fact dd {
  display: flex;
  align-items: center;
  min-height: 34px;
}

.download-fact {
  grid-column: 1 / -1;
  border-color: rgba(217, 154, 100, 0.32);
  background: rgba(217, 154, 100, 0.12);
}

.download-formats {
  display: flex;
  flex-wrap: nowrap;
  gap: 12px;
  justify-content: flex-end;
}

.goodreads-link,
.ivoox-link,
.video-link,
.download-format {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  text-decoration: none;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    transform 160ms ease;
}

.goodreads-link,
.ivoox-link {
  width: 34px;
  height: 34px;
  border-radius: 6px;
}

.video-link {
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 240, 166, 0.28);
  background: rgba(255, 255, 255, 0.08);
}

.download-format {
  width: 62px;
  height: 62px;
  padding: 6px;
  border: 1px solid rgba(255, 240, 166, 0.32);
  background: rgba(255, 255, 255, 0.08);
}

.goodreads-link:hover,
.goodreads-link:focus-visible,
.ivoox-link:hover,
.ivoox-link:focus-visible,
.video-link:hover,
.video-link:focus-visible,
.download-format:hover,
.download-format:focus-visible {
  border-color: rgba(214, 195, 106, 0.72);
  background: rgba(24, 28, 23, 0.88);
  outline: none;
  transform: translateY(-2px);
}

.goodreads-link img,
.ivoox-link img,
.video-link img {
  display: block;
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.download-format img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.book-description,
.audio-description {
  margin: 24px 0 0;
  color: var(--ink);
  font-size: 1.04rem;
  line-height: 1.7;
}

.book-description a,
.audio-description a {
  color: var(--accent-strong);
  font-weight: 800;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.book-description a:hover,
.book-description a:focus-visible,
.audio-description a:hover,
.audio-description a:focus-visible {
  color: #fff;
  outline: none;
}

.single-ficcion_sonora .back-to-top,
.single-multimedia_item .back-to-top {
  left: max(20px, calc((100vw - 1120px) / 2));
  right: auto;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.35;
}

.post-meta span {
  display: inline;
}

.post-meta span + span::before {
  content: "/";
  margin-right: 10px;
  color: rgba(200, 193, 173, 0.54);
}

.blog-shell--single {
  width: min(1120px, calc(100% - 40px));
}

.blog-hero {
  width: 100%;
}

.blog-layout--single .blog-main {
  min-width: 0;
}

.blog-layout--single .blog-main > .page-hero,
.blog-layout--single .blog-main > .blog-detail,
.blog-layout--single .blog-main > .post-navigation,
.blog-layout--single .blog-main > .comments-area,
.blog-layout--single .blog-main > .related-posts {
  width: 100%;
}

.blog-hero .entry-title {
  max-width: 13ch;
  font-size: clamp(2.35rem, 5.4vw, 4.65rem);
}

.blog-hero__meta {
  margin-top: 16px;
}

.blog-cover {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  width: 100%;
  margin: -4px 0 24px;
  overflow: visible;
  background: transparent;
  filter: drop-shadow(0 26px 54px rgba(0, 0, 0, 0.36));
}

.blog-cover::before {
  content: none;
}

.blog-cover img {
  display: block;
  width: min(100%, 620px);
  height: min(620px, calc(100vw - 70px));
  object-fit: cover;
  filter: grayscale(0.1) contrast(1.1) saturate(0.86);
  transform: scale(1.035);
  clip-path: polygon(8% 5%, 86% 2%, 98% 16%, 96% 80%, 82% 96%, 23% 94%, 5% 82%, 0 21%);
  mask-image: radial-gradient(ellipse at 49% 54%, #000 0 34%, rgba(0, 0, 0, 0.9) 43%, rgba(0, 0, 0, 0.48) 53%, rgba(0, 0, 0, 0.12) 61%, transparent 69%);
  mask-repeat: no-repeat;
  mask-size: 100% 100%;
}

.blog-detail .entry-content {
  width: 100%;
  margin: 0;
  padding: clamp(24px, 4vw, 42px);
}

.blog-detail .entry-content p,
.blog-detail .entry-content li {
  font-size: clamp(1.05rem, 1.8vw, 1.18rem);
  line-height: 1.82;
}

.blog-detail .entry-content h2,
.blog-detail .entry-content h3 {
  margin: 1.8em 0 0.65em;
  color: var(--accent-strong);
  font-family: var(--font-serif);
  line-height: 1.1;
}

.blog-detail .entry-content h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.7rem);
}

.blog-detail .entry-content h3 {
  font-size: clamp(1.35rem, 2.4vw, 1.95rem);
}

.blog-detail .entry-content blockquote {
  margin: 28px 0;
  padding: 16px 18px;
  border-left: 3px solid var(--accent-strong);
  background: rgba(255, 240, 166, 0.06);
  color: var(--ink);
}

.blog-detail .entry-content figure {
  margin: 30px 0;
}

.blog-detail .entry-content img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid rgba(237, 229, 199, 0.16);
  border-radius: 8px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.34);
}

.blog-detail .entry-content figcaption {
  margin-top: 9px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.blog-detail .entry-content > * {
  max-width: var(--blog-reading-width);
  margin-left: auto;
  margin-right: auto;
}

.blog-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  width: var(--blog-reading-width);
  margin: 0 auto 28px;
}

.blog-meta--hero {
  width: 100%;
  margin: 18px 0 0;
}

.blog-meta p {
  margin: 0;
  padding: 9px 12px;
  border: 1px solid rgba(237, 229, 199, 0.16);
  border-radius: 999px;
  background: rgba(9, 11, 9, 0.72);
  color: var(--muted);
}

.blog-meta strong {
  color: var(--accent-strong);
}

.blog-meta a {
  color: var(--ink);
  text-decoration-color: rgba(255, 240, 166, 0.48);
  text-underline-offset: 3px;
}

.copy-link {
  font: inherit;
}

.related-posts {
  width: 100%;
  margin: 28px auto 0;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-strong);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.related-posts h2 {
  margin: 0 0 18px;
  font-family: var(--font-serif);
  font-size: clamp(1.55rem, 3vw, 2.35rem);
}

.related-posts__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.related-post-card {
  padding: 16px;
  border: 1px solid rgba(237, 229, 199, 0.16);
  border-radius: 8px;
  background: rgba(9, 11, 9, 0.58);
}

.related-post-card h3 {
  margin: 0 0 10px;
  font-family: var(--font-serif);
  font-size: 1.22rem;
  line-height: 1.15;
}

.related-post-card a {
  color: var(--ink);
  text-decoration: none;
}

.related-post-card a:hover,
.related-post-card a:focus-visible {
  color: var(--accent-strong);
  outline: none;
  text-decoration: underline;
}

.related-post-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.post-navigation {
  margin-top: 28px;
}

.post-navigation .nav-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.post-navigation .nav-previous,
.post-navigation .nav-next {
  min-width: 0;
}

.post-navigation .nav-next {
  text-align: right;
}

.post-navigation a {
  display: grid;
  gap: 6px;
  min-height: 100%;
  padding: 18px;
  border: 1px solid rgba(237, 229, 199, 0.16);
  border-radius: 8px;
  background: rgba(9, 11, 9, 0.72);
  color: var(--ink);
  text-decoration: none;
}

.post-navigation span {
  color: var(--muted);
  font-size: 0.86rem;
}

.post-navigation strong {
  overflow-wrap: anywhere;
  color: var(--accent-strong);
  line-height: 1.25;
}

.comments-area {
  margin-top: 28px;
  padding: clamp(22px, 4vw, 34px);
}

.comments-area h2,
.comment-reply-title {
  margin: 0 0 18px;
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
}

.comment-list {
  display: grid;
  gap: 14px;
  margin: 0 0 28px;
  padding-left: 22px;
}

.comment-body {
  padding: 16px;
  border: 1px solid rgba(237, 229, 199, 0.14);
  border-radius: 8px;
  background: rgba(9, 11, 9, 0.52);
}

.comment-meta,
.comment-notes,
.logged-in-as,
.form-allowed-tags {
  color: var(--muted);
  font-size: 0.92rem;
}

.comment-form {
  display: grid;
  gap: 14px;
}

.comment-form p {
  margin: 0;
}

.comment-form label {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid rgba(237, 229, 199, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink);
  font: inherit;
}

.comment-form textarea {
  min-height: 150px;
  resize: vertical;
}

.comment-form .submit {
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid rgba(255, 240, 166, 0.38);
  border-radius: 8px;
  background: rgba(255, 240, 166, 0.08);
  color: var(--accent-strong);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.comment-form .submit:hover,
.comment-form .submit:focus-visible {
  border-color: rgba(255, 240, 166, 0.6);
  background: rgba(255, 240, 166, 0.13);
  outline: none;
}

.about-shell,
.contact-shell {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 38px 0 78px;
}

.about-hero,
.contact-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.74fr) minmax(0, 1.26fr);
  gap: clamp(34px, 6vw, 72px);
  align-items: start;
}

.portrait {
  position: sticky;
  top: 28px;
  margin: 0;
}

.portrait-fade {
  position: relative;
  width: min(100%, 430px);
  aspect-ratio: 0.76;
  overflow: visible;
  background: transparent;
  filter: drop-shadow(0 26px 54px rgba(0, 0, 0, 0.36));
}

.portrait-fade img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.18) contrast(1.12) saturate(0.78);
  transform: scale(1.055);
  clip-path: polygon(8% 5%, 86% 2%, 98% 16%, 96% 80%, 82% 96%, 23% 94%, 5% 82%, 0 21%);
  mask-image: radial-gradient(ellipse at 49% 54%, #000 0 34%, rgba(0, 0, 0, 0.9) 43%, rgba(0, 0, 0, 0.48) 53%, rgba(0, 0, 0, 0.12) 61%, transparent 69%);
  mask-repeat: no-repeat;
  mask-size: 100% 100%;
}

.bio-card,
.contact-section,
.contact-privacy {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-strong);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.bio-card {
  margin-top: 32px;
  padding: clamp(22px, 4vw, 34px);
}

.bio-card p {
  margin: 0;
  color: var(--ink);
  font-size: 1.04rem;
  line-height: 1.76;
}

.bio-card p + p {
  margin-top: 1.08em;
}

.bio-card a {
  color: var(--accent-strong);
  font-weight: 700;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.privacy-shell {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 38px 0 78px;
}

.privacy-card section + section {
  margin-top: 28px;
}

.privacy-card h2 {
  margin: 0 0 12px;
  color: var(--accent-strong);
  font-family: var(--font-serif);
  font-size: clamp(1.45rem, 3vw, 2.1rem);
}

.privacy-reset {
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid rgba(255, 240, 166, 0.38);
  border-radius: 8px;
  background: rgba(255, 240, 166, 0.08);
  color: var(--accent-strong);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.privacy-reset:hover,
.privacy-reset:focus-visible {
  border-color: rgba(255, 240, 166, 0.6);
  background: rgba(255, 240, 166, 0.13);
  outline: none;
}

.timeline-link,
.privacy-link-card {
  position: relative;
  display: inline-grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  width: min(100%, 420px);
  margin-top: 28px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 240, 166, 0.36);
  border-radius: 8px;
  overflow: hidden;
  background:
    radial-gradient(circle at 22px 50%, rgba(255, 240, 166, 0.22), transparent 52px),
    var(--surface);
  color: var(--ink);
  text-align: left;
  text-decoration: none;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.34), 0 0 26px rgba(214, 195, 106, 0.12);
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.timeline-link::after,
.privacy-link-card::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 0 34%, rgba(255, 240, 166, 0.14) 44%, transparent 54% 100%);
  content: "";
  transform: translateX(-120%);
  animation: timeline-sweep 3.8s ease-in-out infinite;
  pointer-events: none;
}

.timeline-link:hover,
.timeline-link:focus-visible,
.privacy-link-card:hover,
.privacy-link-card:focus-visible {
  border-color: rgba(255, 240, 166, 0.72);
  box-shadow:
    0 22px 52px rgba(0, 0, 0, 0.44),
    0 0 34px rgba(214, 195, 106, 0.2);
  outline: none;
  transform: translateY(-3px);
}

.timeline-link strong,
.privacy-link-card strong {
  display: block;
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 1.18rem;
  line-height: 1.1;
}

.timeline-link small,
.privacy-link-card small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.3;
}

.timeline-link-mark {
  position: relative;
  width: 34px;
  height: 42px;
}

.timeline-link-mark::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: var(--accent-strong);
  box-shadow: 0 0 16px rgba(255, 240, 166, 0.45);
  content: "";
}

.timeline-link-mark::after {
  position: absolute;
  top: 4px;
  left: 50%;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--warm);
  box-shadow:
    0 15px 0 var(--accent),
    0 30px 0 #9eb9a6;
  content: "";
  transform: translateX(-5px);
}

.privacy-link-mark,
.email-icon {
  width: 34px;
  height: 34px;
  border: 1px solid var(--accent-strong);
  border-radius: 50%;
  box-shadow: 0 0 18px rgba(255, 240, 166, 0.18);
}

@keyframes timeline-sweep {
  0%,
  58% {
    transform: translateX(-120%);
  }

  100% {
    transform: translateX(120%);
  }
}

.contact-layout {
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
}

.contact-section {
  padding: clamp(20px, 4vw, 30px);
}

.contact-section + .contact-section,
.contact-privacy {
  margin-top: 22px;
}

.contact-section h2 {
  margin: 0 0 16px;
  color: var(--accent-strong);
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
}

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

.social-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 70px;
  padding: 12px;
  border: 1px solid rgba(237, 229, 199, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
  text-decoration: none;
  transition: border-color 160ms ease, transform 160ms ease, background 160ms ease;
}

.social-card:hover,
.social-card:focus-visible {
  border-color: rgba(255, 240, 166, 0.5);
  background: rgba(255, 240, 166, 0.08);
  outline: none;
  transform: translateY(-2px);
}

.social-icon {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.social-card strong {
  display: block;
  color: #fff;
}

.social-card small {
  color: var(--muted);
}

.email-card {
  grid-template-columns: 42px minmax(0, 1fr);
}

.email-address {
  overflow-wrap: anywhere;
}

body.page-id-6 .contact-shell {
  min-height: 100vh;
  padding: 28px 0 70px;
}

body.page-id-6 .contact-layout {
  grid-template-columns: minmax(0, 0.96fr) minmax(340px, 1.04fr);
  gap: clamp(34px, 6vw, 72px);
}

body.page-id-6 .contact-copy {
  position: sticky;
  top: 28px;
}

body.page-id-6 .contact-copy > .intro-subtitle {
  max-width: 460px;
}

body.page-id-6 h1 {
  max-width: 11ch;
  font-size: clamp(3rem, 6.6vw, 5.8rem);
}

body.page-id-6 .contact-section,
body.page-id-6 .contact-privacy {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

body.page-id-6 .contact-section + .contact-section {
  margin-top: 34px;
}

body.page-id-6 .contact-privacy {
  display: flex;
  justify-content: flex-end;
  margin-top: clamp(6px, 2vw, 18px);
}

body.page-id-6 .contact-section h2 {
  margin: 0 0 14px;
  color: var(--warm);
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

body.page-id-6 .email-section {
  margin-top: 28px;
}

body.page-id-6 .contact-sections {
  display: grid;
  gap: 34px;
}

body.page-id-6 .social-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

body.page-id-6 .social-card {
  --brand: var(--accent);
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  min-height: 104px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--brand), transparent 84%), transparent 54%),
    var(--surface);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  color: var(--ink);
  text-decoration: none;
  user-select: none;
  backdrop-filter: blur(8px);
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease,
    background 160ms ease;
}

body.page-id-6 .social-card:hover,
body.page-id-6 .social-card:focus-visible {
  border-color: color-mix(in srgb, var(--brand), white 20%);
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--brand), transparent 76%), transparent 58%),
    rgba(24, 28, 23, 0.88);
  box-shadow:
    var(--shadow),
    0 0 28px color-mix(in srgb, var(--brand), transparent 82%);
  outline: none;
  transform: translateY(-2px);
}

body.page-id-6 .social-card strong,
body.page-id-6 .social-card small {
  display: block;
}

body.page-id-6 .social-card strong {
  margin-bottom: 7px;
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 2.4vw, 1.68rem);
  line-height: 1.1;
}

body.page-id-6 .social-card small {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.35;
}

body.page-id-6 .social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  padding: 6px;
  border: 1px solid color-mix(in srgb, var(--brand), white 20%);
  border-radius: 8px;
  background: color-mix(in srgb, var(--brand), transparent 82%);
  color: #fff;
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
  object-fit: contain;
  box-shadow:
    0 12px 24px rgba(0, 0, 0, 0.3),
    0 0 18px color-mix(in srgb, var(--brand), transparent 78%);
}

body.page-id-6 .email-card {
  --brand: var(--warm);
}

body.page-id-6 .email-card strong {
  font-size: clamp(1.05rem, 2.4vw, 1.38rem);
  overflow-wrap: anywhere;
}

body.page-id-6 .email-icon {
  position: relative;
  width: 52px;
  height: 52px;
  padding: 0;
  border: 1px solid color-mix(in srgb, var(--warm), white 20%);
  border-radius: 8px;
  background: color-mix(in srgb, var(--warm), transparent 82%);
  box-shadow:
    0 12px 24px rgba(0, 0, 0, 0.3),
    0 0 18px color-mix(in srgb, var(--warm), transparent 78%);
}

body.page-id-6 .email-icon::before {
  width: 29px;
  height: 20px;
  border: 3px solid #fff;
  border-radius: 4px;
  content: "";
}

body.page-id-6 .email-icon::after {
  position: absolute;
  width: 21px;
  height: 21px;
  border-right: 3px solid #fff;
  border-bottom: 3px solid #fff;
  content: "";
  transform: translateY(-4px) rotate(45deg) scaleX(0.95);
}

body.page-id-6 .facebook {
  --brand: #1877f2;
}

body.page-id-6 .instagram {
  --brand: #e4405f;
}

body.page-id-6 .youtube {
  --brand: #ff0033;
}

body.page-id-6 .x {
  --brand: #f3f0e5;
}

body.page-id-6 .threads {
  --brand: #ffffff;
}

body.page-id-6 .twitch {
  --brand: #9146ff;
}

body.page-id-6 .spotify {
  --brand: #1db954;
}

body.page-id-6 .bluesky {
  --brand: #1185fe;
}

body.page-id-6 .ivoox {
  --brand: #ff6a21;
}

body.page-id-6 .privacy-link-card {
  width: min(360px, 100%);
  min-height: 68px;
  margin-top: 0;
}

body.page-id-6 .contact-sections {
  gap: 34px;
}

body.page-id-6 .contact-section + .contact-section {
  margin-top: 0;
}

body.page-id-6 .social-card strong {
  font-size: clamp(1.25rem, 2.4vw, 1.68rem);
}

body.page-id-6 .email-card strong {
  font-size: clamp(1.05rem, 2.4vw, 1.38rem);
}

body.page-id-6 .email-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-color: color-mix(in srgb, var(--warm), white 20%);
  border-radius: 8px;
  background: color-mix(in srgb, var(--warm), transparent 82%);
  box-shadow:
    0 12px 24px rgba(0, 0, 0, 0.3),
    0 0 18px color-mix(in srgb, var(--warm), transparent 78%);
}

body.page-id-6 .email-icon::before {
  position: static;
  width: 29px;
  height: 20px;
  border: 3px solid #fff;
  border-radius: 4px;
  content: "";
}

body.page-id-6 .email-icon::after {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 21px;
  height: 21px;
  border: 0;
  border-right: 3px solid #fff;
  border-bottom: 3px solid #fff;
  border-radius: 0;
  box-shadow: none;
  content: "";
  transform: translate(-50%, calc(-50% - 4px)) rotate(45deg) scaleX(0.95);
}

body.page-id-6 .privacy-link-mark {
  position: relative;
  display: inline-block;
  width: 38px;
  height: 38px;
  border: 1px solid color-mix(in srgb, var(--accent), white 20%);
  border-radius: 8px;
  background: color-mix(in srgb, var(--accent), transparent 84%);
  box-shadow:
    0 10px 22px rgba(0, 0, 0, 0.28),
    0 0 16px color-mix(in srgb, var(--accent), transparent 80%);
}

body.page-id-6 .privacy-link-mark::before {
  position: absolute;
  left: 50%;
  top: 48%;
  width: 16px;
  height: 12px;
  border: 2px solid var(--accent-strong);
  border-radius: 2px;
  background: transparent;
  box-shadow: none;
  content: "";
  transform: translate(-50%, -20%);
}

body.page-id-6 .privacy-link-mark::after {
  position: absolute;
  left: 50%;
  top: 9px;
  width: 12px;
  height: 11px;
  border: 2px solid var(--accent-strong);
  border-bottom: 0;
  border-radius: 999px 999px 0 0;
  background: transparent;
  box-shadow: none;
  content: "";
  transform: translateX(-50%);
}

@media (max-width: 980px) {
  .site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    padding: 14px 20px;
  }

  .brand-nav {
    position: relative;
    display: grid;
    justify-items: start;
    gap: 0;
    max-width: min(360px, calc(100vw - 28px));
    overflow: visible;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 38px;
    margin-right: 0;
    border: 1px solid rgba(237, 229, 199, 0.34);
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(17, 20, 17, 0.94), rgba(8, 10, 8, 0.88));
    color: var(--ink);
    backdrop-filter: blur(10px);
  }

  .menu-toggle span {
    display: block;
    width: 19px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    box-shadow: 0 6px 0 currentColor, 0 -6px 0 currentColor;
    transform: translateY(0);
  }

  .menu-toggle span + span {
    display: none;
  }

  .menu-toggle span:first-child {
    transform: none;
  }

  .menu-toggle span:last-child {
    transform: none;
  }

  .site-menu > .brand,
  .site-menu > .brand-menu-item {
    display: none;
  }

  .site-menu.is-open {
    position: relative;
    top: auto;
    left: auto;
    z-index: 90;
    display: grid;
    align-items: stretch;
    gap: 10px;
    width: min(360px, calc(100vw - 28px));
    padding: 50px 10px 10px;
    border: 1px solid rgba(237, 229, 199, 0.34);
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(17, 20, 17, 0.995), rgba(8, 10, 8, 0.97));
    box-shadow: var(--floating-shadow);
    backdrop-filter: blur(16px);
  }

  .site-menu.is-open > .menu-toggle {
    position: absolute;
    top: 0;
    left: 0;
  }

  .site-menu.is-open > .brand,
  .site-menu.is-open > .brand-menu-item {
    display: grid;
  }

  .site-menu.is-open .brand-menu-item::after {
    content: none;
  }

  .site-menu.is-open .brand {
    padding: 9px 10px;
    font-size: 1.35rem;
  }

  .site-menu.is-open .brand-submenu {
    position: static;
    display: grid;
    gap: 4px;
    min-width: 0;
    padding: 0 0 2px 18px;
    border: 0;
    background: transparent;
    box-shadow: none;
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
    transform: none;
    backdrop-filter: none;
  }

  .site-menu.is-open .brand-submenu a {
    font-size: 1.12rem;
    opacity: 0.86;
  }

  .dream-stage {
    min-height: auto;
    padding-top: 160px;
  }

  .writing-entry-link {
    left: 20px;
  }

  .key-strip {
    grid-template-columns: repeat(2, minmax(132px, 1fr));
    width: min(100%, 420px);
  }

  .dream-key {
    width: 100%;
    height: 148px;
  }

  .key-label {
    max-width: calc(100% - 18px);
    font-size: clamp(1.35rem, 8vw, 2.4rem);
    overflow-wrap: anywhere;
    text-align: center;
    transform: translate(-50%, -50%);
    white-space: normal;
  }

  .about-hero,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .portrait {
    position: static;
  }

  .portrait-fade {
    width: 100%;
  }

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

  body.page-id-6 .contact-shell {
    width: min(100% - 32px, 1120px);
    padding-bottom: 46px;
  }

  body.page-id-6 .contact-layout {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  body.page-id-6 .contact-copy {
    position: static;
  }

  body.page-id-6 .contact-privacy {
    justify-content: flex-start;
    margin-top: 0;
  }

  body.page-id-6 .social-card {
    grid-template-columns: 50px minmax(0, 1fr);
    gap: 15px;
    min-height: 92px;
    padding: 16px;
  }

  body.page-id-6 .social-icon,
  body.page-id-6 .email-icon {
    width: 48px;
    height: 48px;
  }

  .work-card {
    grid-template-columns: 58px minmax(0, 1fr);
    min-height: 112px;
    padding: 14px;
  }

  .work-card--publicacion {
    grid-template-columns: 62px minmax(0, 1fr) 40px;
  }

  .work-card__action {
    width: 40px;
    height: 40px;
  }

  .post-type-archive-publicacion .site-header,
  .post-type-archive-ficcion_sonora .site-header,
  .post-type-archive-multimedia_item .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .header-tools {
    position: static;
    justify-items: start;
    width: 100%;
    margin: 0;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--floating-glass);
    box-shadow: var(--floating-shadow);
    backdrop-filter: blur(16px);
  }

  .filter-control {
    width: 100%;
    justify-content: space-between;
  }

  .filter-control select {
    min-width: 0;
    width: min(220px, 58vw);
  }

  .work-archive .page-panel {
    min-height: auto;
    padding: 28px 16px 62px;
  }

  .work-archive .home,
  .post-type-archive-publicacion .work-archive .home {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .work-archive .intro {
    position: static;
    grid-row: 1;
    padding-top: 0;
    text-align: left;
  }

  .work-archive .story-list {
    grid-row: 2;
  }

  .post-type-archive-publicacion .work-archive .intro {
    justify-self: start;
    text-align: left;
  }

  .post-type-archive-publicacion .work-archive .intro p {
    margin-left: 0;
  }

  .work-archive .galaxy-link {
    width: min(100%, 360px);
  }

  .work-archive .story-link,
  .post-type-archive-ficcion_sonora .work-archive .story-link,
  .post-type-archive-multimedia_item .work-archive .story-link {
    grid-template-columns: 58px minmax(0, 1fr);
    min-height: 112px;
    padding: 14px;
  }

  .post-type-archive-publicacion .work-archive .story-link {
    grid-template-columns: 58px minmax(0, 1fr) auto;
    gap: 14px;
  }

  .post-type-archive-ficcion_sonora .work-archive .story-link {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    min-height: 0;
    padding: 24px;
  }

  .post-type-archive-ficcion_sonora .work-archive .listen-action {
    grid-column: auto;
    grid-row: auto;
    justify-self: auto;
    margin-top: 0;
  }

  .work-archive .story-thumb {
    width: 52px;
    height: 82px;
  }

  .work-archive .story-link small {
    display: grid;
    gap: 2px;
  }

  .work-archive .story-link small span + span::before {
    content: none;
    margin-right: 0;
  }

  .work-archive .listen-action,
  .work-archive .story-download {
    grid-column: 2;
    grid-row: auto;
    justify-self: start;
    width: 40px;
    height: 40px;
    margin-top: 4px;
  }

  .post-type-archive-publicacion .work-archive .story-download {
    grid-column: 3;
    grid-row: 1 / span 2;
    justify-self: end;
    align-self: center;
    width: 36px;
    height: 36px;
    margin-top: 0;
    padding: 6px;
  }

  .post-type-archive-ficcion_sonora .work-archive .listen-action {
    grid-column: auto;
    grid-row: auto;
    justify-self: auto;
    margin-top: 0;
  }

  .back-to-top,
  .post-type-archive-ficcion_sonora .back-to-top,
  .post-type-archive-multimedia_item .back-to-top {
    left: auto;
    right: 18px;
    bottom: 18px;
    width: 48px;
    height: 48px;
  }

  .story-page.work-single {
    padding-block: 18px 62px;
    padding-inline: 16px;
  }

  .detail-nav {
    margin-top: 0;
  }

  .nav-arrow {
    min-width: 0;
    flex: 1;
  }

  .book-info,
  .audio-info,
  .player-panel {
    padding: 20px;
  }

  .content-shell,
  .content-shell--work {
    width: min(100% - 32px, 1120px);
    padding: 28px 0 62px;
  }

  .work-facts,
  .book-facts,
  .audio-facts {
    grid-template-columns: 1fr;
  }

  .post-navigation .nav-links {
    grid-template-columns: 1fr;
  }

  .post-navigation .nav-next {
    text-align: left;
  }

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

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

  .blog-search label,
  .blog-search input,
  .blog-search button,
  .blog-rss {
    width: 100%;
  }

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

  .blog-card__media img {
    min-height: 190px;
    max-height: 320px;
  }

  .blog-meta,
  .blog-detail .entry-content,
  .blog-hero {
    width: 100%;
  }

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

@media (max-width: 760px) {
  .site-header {
    left: 0;
    right: 0;
    width: 100vw;
    max-width: none;
    min-height: 58px;
    margin: 0;
    padding: 10px clamp(14px, 4vw, 22px);
    background: linear-gradient(180deg, rgba(12, 14, 12, 0.54), rgba(12, 14, 12, 0.2));
  }

  .site-menu {
    position: absolute;
    top: 10px;
    left: clamp(14px, 4vw, 22px);
    z-index: 95;
    width: max-content;
    max-width: min(360px, calc(100vw - 28px));
  }

  .site-menu.is-open {
    position: absolute;
    top: 10px;
    left: clamp(14px, 4vw, 22px);
    width: min(360px, calc(100vw - 28px));
  }

  .header-tools {
    margin-top: 52px;
  }
}

@media (max-width: 760px) {
  :root {
    --key-height: auto;
    --key-width: min(clamp(58px, 20vw, 96px), calc((100vw - 46px) * 0.25));
    --key-gap: 10px;
  }

  .home .dream-stage {
    display: grid;
    align-items: center;
    justify-items: center;
    min-height: 100svh;
    padding: clamp(142px, 24svh, 184px) 16px 92px;
  }

  .home .dream-copy {
    top: 24px;
    left: 16px;
    right: 16px;
    text-align: center;
  }

  .home .dream-quote {
    max-width: 100%;
    margin-inline: auto;
    font-size: clamp(1.08rem, 4.08vw, 1.72rem);
    line-height: 1.06;
    text-align: center;
  }

  .home .key-strip {
    grid-template-columns: repeat(4, var(--key-width));
    row-gap: 14px;
    width: min-content;
    max-width: calc(100vw - 36px);
    overflow: visible;
    padding: 0;
  }

  .home .dream-key {
    width: auto;
    height: auto;
    aspect-ratio: 1 / 3;
  }

  .home .key-label {
    max-width: none;
    font-size: clamp(1.22rem, 5.6vw, 1.78rem);
    overflow-wrap: normal;
    text-align: left;
    transform: translate(-50%, -50%) rotate(-90deg);
    white-space: nowrap;
  }

  .home .dream-key:nth-child(7) .key-label {
    font-size: clamp(0.92rem, 4.1vw, 1.28rem);
  }

  .home .writing-entry-link {
    left: max(16px, calc((100vw - ((4 * var(--key-width)) + (3 * var(--key-gap)))) / 2));
    top: clamp(104px, 18svh, 134px);
    min-height: 48px;
    padding: 0.56rem 1rem 0.64rem;
  }

  .home .site-url {
    left: 16px;
    right: 16px;
    bottom: 24px;
    font-size: clamp(1.55rem, 8vw, 2.4rem);
  }
}

@media (max-width: 760px) and (max-height: 740px) {
  :root {
    --key-width: min(clamp(50px, 18vw, 74px), calc((100vw - 46px) * 0.25));
  }

  .home .dream-stage {
    padding-top: clamp(112px, 20svh, 136px);
    padding-bottom: 70px;
  }

  .home .dream-copy {
    top: 18px;
  }

  .home .dream-quote {
    font-size: clamp(0.98rem, 3.64vw, 1.32rem);
  }

  .home .key-strip {
    row-gap: 10px;
  }

  .home .key-label {
    font-size: clamp(1rem, 4.8vw, 1.42rem);
  }

  .home .dream-key:nth-child(7) .key-label {
    font-size: clamp(0.8rem, 3.6vw, 1.06rem);
  }

  .home .writing-entry-link {
    top: 88px;
  }

  .home .site-url {
    bottom: 16px;
    font-size: clamp(1.24rem, 7vw, 1.9rem);
  }
}

@media (max-width: 430px) {
  :root {
    --key-width: min(clamp(54px, 20.5vw, 82px), calc((100vw - 46px) * 0.25));
  }
}

@media (max-width: 430px) and (max-height: 740px) {
  :root {
    --key-width: min(clamp(50px, 18vw, 74px), calc((100vw - 46px) * 0.25));
  }
}

@supports (view-transition-name: none) {
  ::view-transition {
    background: var(--paper);
  }

  ::view-transition-image-pair(root) {
    isolation: isolate;
  }

  ::view-transition-old(root) {
    animation: work-page-out 260ms ease both;
    mix-blend-mode: normal;
    z-index: 1;
  }

  ::view-transition-new(root) {
    animation: work-page-in 320ms cubic-bezier(0.2, 0.76, 0.26, 1) both;
    mix-blend-mode: normal;
    z-index: 2;
  }

  ::view-transition-group(root) {
    animation-duration: 320ms;
  }

  html[data-work-transition="index"]::view-transition-old(root) {
    animation-name: work-page-to-index-out;
  }

  html[data-work-transition="index"]::view-transition-new(root) {
    animation-name: work-page-to-index-in;
  }

  html[data-work-transition="prev"]::view-transition-old(root) {
    animation-name: work-page-reverse-out;
  }

  html[data-work-transition="prev"]::view-transition-new(root) {
    animation-name: work-page-reverse-in;
  }

  html[data-work-transition="next"]::view-transition-old(root),
  html[data-work-transition="detail"]::view-transition-old(root) {
    animation-name: work-page-out;
  }

  html[data-work-transition="next"]::view-transition-new(root),
  html[data-work-transition="detail"]::view-transition-new(root) {
    animation-name: work-page-in;
  }
}

@keyframes work-page-out {
  from {
    opacity: 1;
    transform: translateX(0);
  }

  to {
    opacity: 0;
    transform: translateX(-28px);
  }
}

@keyframes work-page-in {
  from {
    opacity: 0;
    transform: translateX(34px);
  }

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

@keyframes work-page-reverse-out {
  from {
    opacity: 1;
    transform: translateX(0);
  }

  to {
    opacity: 0;
    transform: translateX(32px);
  }
}

@keyframes work-page-reverse-in {
  from {
    opacity: 0;
    transform: translateX(-34px);
  }

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

@keyframes work-page-to-index-out {
  from {
    opacity: 1;
    transform: translateY(0);
  }

  to {
    opacity: 0;
    transform: translateY(24px);
  }
}

@keyframes work-page-to-index-in {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }

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

@media (prefers-reduced-motion: reduce) {
  @supports (view-transition-name: none) {
    ::view-transition-old(root),
    ::view-transition-new(root),
    ::view-transition-group(root) {
      animation-duration: 1ms;
    }
  }
}
