:root {
  color-scheme: dark;
  --void: #050207;
  --void-rgb: 5, 2, 7;
  --bg: var(--void);
  --bg-soft: #120a16;
  --panel: rgba(22, 13, 27, 0.86);
  --panel-strong: rgba(35, 20, 43, 0.94);
  --text: #fff7fb;
  --muted: #cfbfd3;
  --soft: #9d88a5;
  --line: rgba(255, 255, 255, 0.12);
  --pink: #ff5ccd;
  --violet: #8c5cff;
  --cyan: #78e7ff;
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.34);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-pill: 999px;
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  min-height: 100vh;
  background: var(--void);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.65;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, black, transparent 72%);
}

a {
  color: inherit;
}

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

.skip-link {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 100;
  transform: translateY(-140%);
  padding: 0.7rem 1rem;
  border-radius: var(--radius-pill);
  background: var(--text);
  color: var(--bg);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem max(1rem, calc((100vw - var(--max)) / 2 + 1rem));
  border-bottom: 1px solid var(--line);
  background: rgba(var(--void-rgb), 0.84);
  backdrop-filter: blur(20px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  font-weight: 850;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  width: 2.15rem;
  height: 2.15rem;
  place-items: center;
  border-radius: 0.8rem;
  background: linear-gradient(135deg, var(--pink), var(--violet));
  box-shadow: 0 0 24px rgba(255, 92, 205, 0.3);
  color: white;
  font-size: 0.82rem;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.site-nav a {
  border-radius: var(--radius-pill);
  padding: 0.5rem 0.78rem;
  color: var(--muted);
  font-size: 0.91rem;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 0.55rem 0.85rem;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.section {
  position: relative;
  width: min(calc(100% - 2rem), var(--max));
  margin-inline: auto;
  padding-block: clamp(3rem, 6vw, 5.6rem);
}

.section-narrow {
  width: min(calc(100% - 2rem), 1040px);
  margin-inline: auto;
}

.hero {
  isolation: isolate;
  display: grid;
  gap: 1.25rem;
  padding-top: 1.25rem;
}

.hero-art {
  isolation: isolate;
  position: relative;
  margin: 0;
  min-height: 0;
  border: 0;
  overflow: hidden;
  background: var(--void);
  box-shadow: none;
}

.hero-art::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -3rem -7vw;
  background:
    radial-gradient(ellipse at 50% 45%, rgba(var(--void-rgb), 0.98), rgba(var(--void-rgb), 0.86) 52%, rgba(var(--void-rgb), 0) 78%),
    radial-gradient(ellipse at 50% 50%, rgba(255, 92, 205, 0.06), transparent 68%);
  filter: blur(28px);
  pointer-events: none;
}

.hero-art::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  background:
    linear-gradient(to right, var(--void) 0%, rgba(var(--void-rgb), 0.94) 4%, rgba(var(--void-rgb), 0) 17%, rgba(var(--void-rgb), 0) 83%, rgba(var(--void-rgb), 0.94) 96%, var(--void) 100%),
    linear-gradient(to bottom, var(--void) 0%, rgba(var(--void-rgb), 0.9) 8%, rgba(var(--void-rgb), 0) 26%, rgba(var(--void-rgb), 0) 64%, rgba(var(--void-rgb), 0.94) 90%, var(--void) 100%),
    radial-gradient(ellipse at 50% 42%, transparent 40%, rgba(var(--void-rgb), 0.74) 100%);
  pointer-events: none;
}

.hero-art img {
  width: 100%;
  aspect-ratio: 21 / 9;
  height: auto;
  object-fit: cover;
  object-position: center;
  opacity: 0.92;
  -webkit-mask-image: radial-gradient(ellipse 94% 78% at center, #000 48%, rgba(0, 0, 0, 0.86) 64%, transparent 100%);
  mask-image: radial-gradient(ellipse 94% 78% at center, #000 48%, rgba(0, 0, 0, 0.86) 64%, transparent 100%);
}

.hero-card,
.reader-note,
.about-card,
.info-card,
.contact-panel,
.folder-card,
.book-card,
.qna-card,
.detail-card,
.legal-card {
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.064), rgba(255, 255, 255, 0.022)),
    var(--panel);
  box-shadow: 0 18px 58px rgba(0, 0, 0, 0.26);
}

.hero-card {
  display: grid;
  gap: 0.8rem;
  max-width: 860px;
  margin-inline: auto;
  padding: clamp(1.25rem, 4vw, 2.35rem);
  text-align: center;
  min-width: 0;
}

.eyebrow {
  margin: 0 0 0.35rem;
  color: var(--cyan);
  font-size: 0.75rem;
  font-weight: 850;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

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

h1,
h2,
h3 {
  line-height: 1.08;
  letter-spacing: -0.045em;
}

h1 {
  margin-bottom: 0.2rem;
  font-size: clamp(3.2rem, 10vw, 6.4rem);
  text-shadow: 0 0 42px rgba(255, 92, 205, 0.22);
  overflow-wrap: anywhere;
}

h2 {
  margin-bottom: 0.8rem;
  font-size: clamp(2rem, 4.6vw, 3.6rem);
}

h3 {
  margin-bottom: 0.65rem;
  font-size: clamp(1.2rem, 2vw, 1.5rem);
}

.hero-bio {
  max-width: 45rem;
  margin-inline: auto;
  margin-bottom: 0;
  color: var(--text);
  font-size: clamp(1.08rem, 2vw, 1.35rem);
}

.hero-note,
.section-heading p,
.folder-card p,
.detail-card p,
.reader-note p,
.about-card p,
.contact-panel p,
.legal-card p {
  color: var(--muted);
}

.hero-note {
  max-width: 42rem;
  margin-inline: auto;
  margin-bottom: 0.4rem;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.button {
  display: inline-flex;
  min-height: 2.95rem;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-pill);
  padding: 0.78rem 1rem;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-weight: 850;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
  overflow-wrap: anywhere;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(255, 92, 205, 0.7);
  background: rgba(255, 255, 255, 0.12);
}

.button-primary {
  border-color: rgba(255, 92, 205, 0.45);
  background: linear-gradient(135deg, rgba(255, 92, 205, 0.96), rgba(140, 92, 255, 0.96));
  color: white;
  box-shadow: 0 12px 28px rgba(255, 92, 205, 0.18);
}

.section-heading {
  max-width: 48rem;
  margin: 0 auto 2rem;
  text-align: center;
}

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

.info-card {
  display: grid;
  align-content: start;
  gap: 0.8rem;
  padding: clamp(1.15rem, 3vw, 1.65rem);
}

.info-card h2 {
  margin-bottom: 0;
  font-size: clamp(1.55rem, 3vw, 2.35rem);
}

.info-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.info-card a:not(.button) {
  color: var(--cyan);
  font-weight: 850;
  text-decoration: none;
}

.info-card a:not(.button):hover,
.info-card a:not(.button):focus-visible {
  text-decoration: underline;
}

.mini-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 0.35rem;
}

.folder-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr));
  gap: 1.1rem;
}

.folder-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 1rem;
  min-height: 100%;
  padding: clamp(1.1rem, 2.5vw, 1.55rem);
  min-width: 0;
}

.folder-card-link {
  color: inherit;
  text-decoration: none;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease;
}

.folder-card-link:hover,
.folder-card-link:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(120, 231, 255, 0.42);
  background:
    linear-gradient(180deg, rgba(120, 231, 255, 0.07), rgba(255, 255, 255, 0.022)),
    var(--panel);
}

.tilt-card {
  --tilt-x: 0;
  --tilt-y: 0;
}

.featured-folder {
  grid-column: 1 / -1;
  overflow: visible;
  min-height: clamp(29rem, 48vw, 36rem);
  align-content: center;
  padding: clamp(1.35rem, 4vw, 2rem);
  border: 0;
  background: transparent;
  box-shadow: none;
}

.featured-folder::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: inherit;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.064), rgba(255, 255, 255, 0.022)),
    var(--panel);
  box-shadow:
    0 18px 58px rgba(0, 0, 0, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

.featured-folder::after {
  content: "";
  position: absolute;
  z-index: 3;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(90deg, rgba(var(--void-rgb), 0.88) 0%, rgba(var(--void-rgb), 0.68) 48%, rgba(var(--void-rgb), 0.25) 100%),
    radial-gradient(circle at 86% 18%, rgba(120, 231, 255, 0.12), transparent 30%),
    radial-gradient(circle at 84% 80%, rgba(255, 92, 205, 0.16), transparent 36%);
  pointer-events: none;
}

.featured-folder:hover,
.featured-folder:focus-visible {
  background: transparent;
  border-color: transparent;
}

.featured-folder .folder-main,
.featured-folder .folder-meta,
.featured-folder .text-link {
  position: relative;
  z-index: 5;
  max-width: 37rem;
}

.featured-folder .folder-meta {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.folder-art-peek {
  position: absolute;
  z-index: 2;
  top: clamp(-8.4rem, -8vw, -4.6rem);
  right: clamp(-5rem, -4vw, -2.2rem);
  width: min(49%, 32rem);
  max-width: 37rem;
  pointer-events: none;
  transform:
    translate3d(calc(var(--tilt-x) * 9px), calc(var(--tilt-y) * -7px), 0)
    rotate(calc(var(--tilt-x) * 1.6deg));
  filter:
    drop-shadow(0 34px 50px rgba(0, 0, 0, 0.62))
    drop-shadow(0 0 32px rgba(255, 92, 205, 0.13));
  animation:
    characterFloat 6.6s ease-in-out infinite,
    characterAlive 4.8s ease-in-out infinite;
}

.folder-art-peek img {
  width: 100%;
  opacity: 0.94;
  -webkit-mask-image:
    linear-gradient(to bottom, black 0%, black 83%, rgba(0, 0, 0, 0.94) 91%, transparent 100%);
  mask-image:
    linear-gradient(to bottom, black 0%, black 83%, rgba(0, 0, 0, 0.94) 91%, transparent 100%);
}

.folder-front-lip,
.story-front-lip {
  position: absolute;
  z-index: 6;
  pointer-events: none;
}

.folder-front-lip {
  top: -0.08rem;
  right: clamp(0.2rem, 3vw, 2.3rem);
  width: min(42%, 30rem);
  height: 5.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0 var(--radius-lg) 0 0;
  background:
    linear-gradient(to bottom, rgba(22, 13, 27, 0.96), rgba(22, 13, 27, 0.66) 44%, transparent 100%);
  box-shadow:
    0 -18px 36px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.folder-front-lip::after {
  content: "";
  position: absolute;
  right: 0.45rem;
  top: 0.68rem;
  width: clamp(3.5rem, 9vw, 7rem);
  height: 0.44rem;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(120, 231, 255, 0), rgba(120, 231, 255, 0.32), rgba(255, 92, 205, 0.18));
  animation: scanGlint 3.8s ease-in-out infinite;
}

.motion-mark {
  position: absolute;
  display: grid;
  width: 2.1rem;
  height: 2.1rem;
  place-items: center;
  border-radius: 999px;
  background: rgba(5, 2, 7, 0.72);
  color: var(--cyan);
  font-weight: 950;
  line-height: 1;
  text-shadow: 0 0 16px rgba(120, 231, 255, 0.65);
  box-shadow: 0 0 22px rgba(120, 231, 255, 0.14);
  animation:
    markPulse 2.4s ease-in-out infinite,
    markDrift 5.5s ease-in-out infinite;
}

.folder-mark-one {
  top: 11%;
  right: 6%;
}

.folder-mark-two {
  top: 24%;
  left: 8%;
  color: var(--pink);
  text-shadow: 0 0 16px rgba(255, 92, 205, 0.72);
  animation-delay: -0.9s;
}

.folder-main p {
  margin-bottom: 0;
  overflow-wrap: break-word;
}

.folder-kicker {
  margin-bottom: 0.35rem;
  color: var(--pink);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.folder-meta {
  display: grid;
  gap: 0.65rem;
  margin: 0;
}

.folder-meta div {
  border-top: 1px solid var(--line);
  padding-top: 0.65rem;
}

.folder-meta dt {
  color: var(--soft);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.folder-meta dd {
  margin: 0.18rem 0 0;
  color: var(--text);
}

.story-meta {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 1.25rem;
}

.text-link {
  justify-self: start;
  border-radius: var(--radius-pill);
  padding: 0.45rem 0.75rem;
  background: rgba(120, 231, 255, 0.08);
  color: var(--cyan);
  font-weight: 900;
  text-decoration: none;
}

.text-link:hover,
.text-link:focus-visible {
  background: rgba(120, 231, 255, 0.14);
  text-decoration: underline;
}

.reader-note {
  display: grid;
  grid-template-columns: minmax(190px, 0.35fr) minmax(0, 1fr);
  gap: 1.4rem;
  align-items: start;
  padding: clamp(1.25rem, 4vw, 2rem);
}

.reader-note p {
  margin-bottom: 0;
  font-size: 1.02rem;
}

.about-card {
  max-width: 820px;
  margin-inline: auto;
  padding: clamp(1.25rem, 4vw, 2rem);
  text-align: center;
}

.about-card p {
  margin-bottom: 0;
}

.about-card .button {
  margin-top: 1.25rem;
}

.about-long {
  max-width: 920px;
  margin-inline: auto;
}

.about-long p {
  font-size: clamp(1rem, 1.6vw, 1.12rem);
}

.story-hero p {
  max-width: 68rem;
}

.story-hero-with-art {
  position: relative;
  isolation: isolate;
  overflow: visible;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(17rem, 0.98fr);
  gap: clamp(1rem, 4vw, 2rem);
  align-items: center;
  min-height: clamp(32rem, 54vw, 43rem);
  border: 0;
  background: transparent;
  box-shadow: none;
}

.story-hero-with-art::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: inherit;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.064), rgba(255, 255, 255, 0.022)),
    var(--panel);
  box-shadow:
    0 18px 58px rgba(0, 0, 0, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

.story-hero-with-art::after {
  content: "";
  position: absolute;
  z-index: 3;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(90deg, rgba(var(--void-rgb), 0.92) 0%, rgba(var(--void-rgb), 0.6) 52%, rgba(var(--void-rgb), 0.12) 100%),
    radial-gradient(circle at 80% 30%, rgba(255, 92, 205, 0.16), transparent 35%),
    radial-gradient(circle at 76% 80%, rgba(120, 231, 255, 0.12), transparent 38%);
  pointer-events: none;
}

.story-hero-copy,
.story-hero-art {
  position: relative;
}

.story-hero-copy {
  z-index: 5;
}

.story-hero-art {
  z-index: 2;
  align-self: stretch;
  display: grid;
  margin: 0;
  place-items: end center;
  min-height: 25rem;
  pointer-events: none;
}

.story-hero-art img {
  width: min(100%, 34rem);
  max-height: 40rem;
  object-fit: contain;
  transform:
    translate3d(calc(var(--tilt-x) * 10px), calc(var(--tilt-y) * -8px), 0)
    rotate(calc(var(--tilt-x) * 1.4deg));
  filter:
    drop-shadow(0 36px 52px rgba(0, 0, 0, 0.66))
    drop-shadow(0 0 26px rgba(255, 92, 205, 0.12));
  animation:
    characterFloat 7.4s ease-in-out infinite,
    characterAlive 5.2s ease-in-out infinite;
  -webkit-mask-image: linear-gradient(to bottom, black 0%, black 82%, rgba(0, 0, 0, 0.92) 92%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 0%, black 82%, rgba(0, 0, 0, 0.92) 92%, transparent 100%);
}

.story-front-lip {
  top: -0.08rem;
  right: clamp(0.2rem, 3vw, 2.2rem);
  width: min(44%, 31rem);
  height: 5.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0 var(--radius-lg) 0 0;
  background:
    linear-gradient(to bottom, rgba(22, 13, 27, 0.96), rgba(22, 13, 27, 0.62) 44%, transparent 100%);
  box-shadow:
    0 -18px 36px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.story-front-lip::after {
  content: "";
  position: absolute;
  right: 0.55rem;
  top: 0.7rem;
  width: clamp(3.5rem, 9vw, 7rem);
  height: 0.44rem;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 92, 205, 0), rgba(255, 92, 205, 0.28), rgba(120, 231, 255, 0.2));
  animation: scanGlint 4.1s ease-in-out infinite;
}

.story-mark-one {
  top: 14%;
  right: 7%;
}

.story-mark-two {
  top: 26%;
  left: 8%;
  color: var(--pink);
  animation-delay: -1.1s;
}

.book-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr));
  gap: 1rem;
}

.qna-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 21rem), 1fr));
  gap: 1rem;
}

.book-card {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 1rem;
  padding: clamp(1.15rem, 3vw, 1.65rem);
}

.book-card > *:not(.book-sticker) {
  position: relative;
  z-index: 1;
}

.book-card-featured {
  grid-column: 1 / -1;
  overflow: visible;
  min-height: clamp(30rem, 44vw, 36rem);
  align-content: center;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.book-card-featured::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: inherit;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.064), rgba(255, 255, 255, 0.022)),
    var(--panel);
  box-shadow:
    0 18px 58px rgba(0, 0, 0, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

.book-card-featured::after {
  content: "click the store portal";
  position: absolute;
  z-index: 4;
  right: clamp(1.3rem, 5vw, 4rem);
  bottom: clamp(1.1rem, 4vw, 3rem);
  max-width: 11rem;
  border: 1px solid rgba(120, 231, 255, 0.22);
  border-radius: 999px;
  padding: 0.55rem 0.85rem;
  background: rgba(5, 2, 7, 0.78);
  color: var(--cyan);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 0 22px rgba(120, 231, 255, 0.16);
  animation: markPulse 2.6s ease-in-out infinite;
  pointer-events: none;
}

.book-card-featured > *:not(.book-sticker) {
  z-index: 5;
  max-width: 39rem;
}

.book-sticker {
  position: absolute;
  z-index: 2;
  right: clamp(-6rem, -5vw, -2rem);
  bottom: clamp(-11rem, -12vw, -7rem);
  width: min(45%, 23rem);
  opacity: 0.92;
  pointer-events: none;
  filter:
    saturate(1.18)
    drop-shadow(0 28px 44px rgba(0, 0, 0, 0.58))
    drop-shadow(0 0 28px rgba(255, 92, 205, 0.12));
  transform:
    translate3d(calc(var(--tilt-x, 0) * -6px), calc(var(--tilt-y, 0) * 5px), 0)
    rotate(calc(var(--tilt-x, 0) * -1.2deg));
  animation:
    characterFloat 8.2s ease-in-out infinite reverse,
    characterAlive 4.6s ease-in-out infinite;
  -webkit-mask-image: linear-gradient(to bottom, black 0%, black 78%, rgba(0, 0, 0, 0.92) 90%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 0%, black 78%, rgba(0, 0, 0, 0.92) 90%, transparent 100%);
}

.book-card p,
.qna-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.qna-card {
  padding: clamp(1.1rem, 3vw, 1.55rem);
}

.qna-card h3 {
  margin-bottom: 0.55rem;
}

@keyframes characterFloat {
  0%,
  100% {
    translate: 0 0;
  }

  50% {
    translate: 0 -0.55rem;
  }
}

@keyframes characterAlive {
  0%,
  100% {
    scale: 1;
    filter: saturate(1.08) drop-shadow(0 34px 50px rgba(0, 0, 0, 0.62));
  }

  45% {
    scale: 1.012;
    filter: saturate(1.2) drop-shadow(0 38px 56px rgba(0, 0, 0, 0.66));
  }

  70% {
    scale: 1.004;
  }
}

@keyframes markPulse {
  0%,
  100% {
    scale: 1;
    rotate: -4deg;
    opacity: 0.78;
  }

  50% {
    scale: 1.12;
    rotate: 5deg;
    opacity: 1;
  }
}

@keyframes markDrift {
  0%,
  100% {
    translate: 0 0;
  }

  35% {
    translate: 0.28rem -0.22rem;
  }

  70% {
    translate: -0.18rem 0.18rem;
  }
}

@keyframes scanGlint {
  0%,
  100% {
    opacity: 0.2;
    translate: -0.35rem 0;
  }

  45% {
    opacity: 1;
    translate: 0.35rem 0;
  }
}

.button-muted {
  justify-self: start;
  color: var(--muted);
  cursor: default;
}

.button-muted:hover,
.button-muted:focus-visible {
  transform: none;
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
}

.button-disabled {
  opacity: 0.72;
  pointer-events: none;
}

.folder-details {
  display: grid;
  gap: 1.15rem;
}

.detail-card {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 1.25rem;
  padding: clamp(1.2rem, 3vw, 1.8rem);
  scroll-margin-top: 6rem;
  min-width: 0;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.detail-grid > section {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 1rem;
  background: rgba(255, 255, 255, 0.045);
}

.detail-grid h3 {
  margin-bottom: 0.45rem;
  font-size: 1.05rem;
}

.detail-grid p {
  margin-bottom: 0;
}

.contact-panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  align-items: start;
  padding: clamp(1.25rem, 4vw, 2rem);
}

.contact-panel > div:first-child {
  min-width: 0;
}

.contact-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0;
}

.contact-actions .button {
  width: 100%;
  min-height: 3.1rem;
}

.contact-card {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 0.5rem 0.85rem;
  margin: 0;
  border-top: 1px solid var(--line);
  padding-top: 1.1rem;
  color: var(--muted);
  font-style: normal;
}

.contact-card span {
  color: var(--soft);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact-card a {
  color: var(--text);
  text-decoration: none;
}

.contact-card a:hover,
.contact-card a:focus-visible {
  color: var(--cyan);
  text-decoration: underline;
}

.site-footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  padding: 2rem max(1rem, calc((100vw - var(--max)) / 2 + 1rem));
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer p {
  margin: 0.6rem 0 0;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.9rem;
}

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

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--text);
  text-decoration: underline;
}

.footer-brand {
  color: var(--text);
}

.legal-page {
  min-height: 70vh;
}

.legal-card {
  padding: clamp(1.25rem, 4vw, 2.4rem);
}

.legal-card h1 {
  font-size: clamp(2.6rem, 8vw, 5rem);
}

.legal-card h2 {
  margin-top: 2rem;
  font-size: clamp(1.6rem, 4vw, 2.6rem);
}

.draft-warning {
  border: 1px solid rgba(255, 196, 87, 0.5);
  border-radius: var(--radius-md);
  padding: 1rem;
  background: rgba(255, 196, 87, 0.1);
  color: #ffe0a6 !important;
}

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

@media (max-width: 980px) {
  .detail-card {
    grid-template-columns: 1fr;
  }

  .detail-grid,
  .featured-folder .folder-meta,
  .story-hero-with-art,
  .story-meta {
    grid-template-columns: 1fr;
  }

  .featured-folder {
    min-height: 40rem;
  }

  .featured-folder .folder-main,
  .featured-folder .folder-meta,
  .featured-folder .text-link {
    max-width: 100%;
  }

  .folder-art-peek {
    top: auto;
    right: -5rem;
    bottom: -10rem;
    width: min(82%, 30rem);
    opacity: 0.42;
  }

  .story-hero-with-art {
    min-height: auto;
  }

  .story-hero-art {
    min-height: 24rem;
    margin-top: -2rem;
    opacity: 0.78;
  }

}

@media (max-width: 760px) {
  .site-header {
    align-items: flex-start;
    flex-wrap: wrap;
  }

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

  .site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    background: rgba(255, 255, 255, 0.045);
  }

  .hero {
    padding-top: 1rem;
  }

  .hero-card {
    text-align: left;
  }

  .hero-bio,
  .hero-note {
    margin-inline: 0;
  }

  .hero-actions,
  .contact-actions {
    justify-content: stretch;
  }

  .hero-actions .button,
  .contact-actions .button {
    width: 100%;
  }

  .start-grid,
  .folder-grid,
  .reader-note,
  .contact-actions {
    grid-template-columns: 1fr;
  }

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

  .contact-card span:not(:first-child) {
    margin-top: 0.5rem;
  }

  .site-footer {
    flex-direction: column;
  }

  .site-footer nav {
    justify-content: flex-start;
  }
}

@media (max-width: 480px) {
  .section {
    width: min(calc(100% - 1rem), var(--max));
  }

  .site-header,
  .site-footer {
    padding-inline: 0.7rem;
  }

  .eyebrow {
    letter-spacing: 0.1em;
  }

  .hero-art img {
    aspect-ratio: 4 / 3;
  }

  .hero-art,
  .hero-card,
  .reader-note,
  .about-card,
  .contact-panel,
  .folder-card,
  .qna-card,
  .detail-card {
    border-radius: 20px;
  }

  h1 {
    font-size: clamp(3rem, 16vw, 4.2rem);
  }

  .featured-folder {
    min-height: 42rem;
  }

  .folder-art-peek {
    top: auto;
    right: -6.5rem;
    bottom: -8.5rem;
    width: min(110%, 29rem);
    opacity: 0.3;
  }

  .story-hero-art {
    min-height: 20rem;
    opacity: 0.68;
  }

  .book-sticker {
    width: 13rem;
    opacity: 0.18;
  }
}

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

  .reveal {
    opacity: 1;
    transform: none;
  }

  .folder-art-peek,
  .story-hero-art img,
  .book-sticker,
  .motion-mark {
    animation: none !important;
  }
}
