@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,500;0,600;0,700;1,500&family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,400&family=Source+Serif+4:ital,opsz,wght@0,8..60,400;0,8..60,600;1,8..60,400&display=swap');

:root {
  --bg: #09090b;
  --bg-elevated: #111114;
  --bg-card: #16161a;
  --bg-card-hover: #1c1c21;
  --border: rgba(255, 255, 255, 0.07);
  --border-hover: rgba(255, 255, 255, 0.14);
  --text: #fafafa;
  --text-secondary: #a1a1aa;
  --text-tertiary: #63636e;
  --accent: #c4a265;
  --accent-light: #dbc08a;
  --accent-dim: rgba(196, 162, 101, 0.12);
  --accent-glow: rgba(196, 162, 101, 0.25);
  --serif: 'Cormorant Garamond', Georgia, serif;
  --reading: 'Source Serif 4', Georgia, serif;
  --sans: 'DM Sans', system-ui, sans-serif;
  --container: 72rem;
  --content: 42rem;
  --page-gutter: 2.75rem;
  --header-h: 4.5rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --radius: 12px;
  --radius-sm: 8px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(196, 162, 101, 0.08), transparent),
    radial-gradient(ellipse 60% 40% at 100% 100%, rgba(196, 162, 101, 0.04), transparent);
}

a { color: inherit; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--page-gutter);
}

.container--narrow {
  width: 100%;
  max-width: var(--content);
  margin-inline: auto;
  padding-inline: var(--page-gutter);
}

/* ── header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  border-bottom: 1px solid var(--border);
  background: rgba(9, 9, 11, 0.82);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  font-family: var(--reading);
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  text-transform: lowercase;
  text-decoration: none;
  color: var(--text);
  white-space: nowrap;
  transition: opacity 0.3s;
}

.brand::after {
  content: '.';
}

.brand:hover {
  opacity: 0.72;
  color: var(--text);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.site-nav a {
  position: relative;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: color 0.25s, background 0.25s;
}

.site-nav a::after {
  content: '';
  position: absolute;
  bottom: 0.15rem;
  left: 50%;
  width: 0;
  height: 1px;
  background: var(--accent);
  transform: translateX(-50%);
  transition: width 0.35s var(--ease);
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--text);
}

.site-nav a.active::after,
.site-nav a:hover::after {
  width: calc(100% - 2rem);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.lang-switch {
  display: flex;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.lang-switch button {
  background: none;
  border: none;
  color: var(--text-tertiary);
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 0.45rem 0.75rem;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}

.lang-switch button.active {
  background: var(--accent-dim);
  color: var(--accent-light);
}

.lang-switch button:not(.active):hover {
  color: var(--text-secondary);
}

.menu-toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}

body.nav-open {
  overflow: hidden;
}

.menu-toggle span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--text);
  border-radius: 1px;
  transition: transform 0.3s, opacity 0.3s;
}

.menu-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ── main layout ── */
main {
  position: relative;
  z-index: 1;
  padding: 4rem 0 6rem;
}

/* ── hero ── */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem 0 4.5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 4rem;
  overflow-x: clip;
  overflow-y: visible;
}

.hero > :not(.hero-mesh):not(.hero-viruses) {
  position: relative;
  z-index: 1;
}

.hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
}

.hero-mesh {
  position: absolute;
  inset: -30% -15%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.55;
  background:
    radial-gradient(ellipse 50% 40% at 15% 25%, rgba(196, 162, 101, 0.14) 0%, transparent 70%),
    radial-gradient(ellipse 45% 35% at 85% 15%, rgba(120, 160, 220, 0.08) 0%, transparent 65%),
    radial-gradient(ellipse 55% 45% at 70% 75%, rgba(196, 162, 101, 0.1) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 25% 80%, rgba(160, 130, 200, 0.06) 0%, transparent 65%),
    radial-gradient(ellipse 35% 30% at 50% 45%, rgba(100, 180, 200, 0.05) 0%, transparent 60%);
  filter: blur(50px);
  animation: meshDrift 40s ease-in-out infinite alternate;
}

.hero-mesh::after {
  content: '';
  position: absolute;
  inset: 10% 5%;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 20%, transparent 75%);
}

@keyframes meshDrift {
  0% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(2%, -1.5%) scale(1.03); }
  66% { transform: translate(-1.5%, 2%) scale(1.02); }
  100% { transform: translate(1%, 1%) scale(1.04); }
}

.hero-viruses {
  position: absolute;
  inset: auto 0 0.75rem;
  width: 100%;
  height: 6rem;
  z-index: 2;
  pointer-events: none;
}

.hero-virus {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  visibility: hidden;
  will-change: transform;
}

.hero-virus.is-visible {
  opacity: 1;
  visibility: visible;
}

.hero-virus.is-alive {
  pointer-events: auto;
  cursor: pointer;
}

.hero-virus.is-alive:focus-visible {
  outline: 2px solid var(--accent-light);
  outline-offset: 3px;
}

.hero-virus.is-pet:not(.is-escaping) {
  pointer-events: none;
}

.hero-virus.is-escaping.is-running {
  pointer-events: auto;
  cursor: pointer;
}

.hero-virus.is-escaping {
  z-index: 200;
}

.hero-virus__pet {
  display: none;
  opacity: 0;
  transform: scale(0.6);
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.35));
}

.hero-virus__pet svg {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-virus.is-pet .hero-virus__body {
  display: none;
}

.hero-virus.is-pet .hero-virus__pet {
  display: block;
  opacity: 1;
  transform: scale(1);
}

.hero-virus.is-running .hero-virus__leg--l {
  animation: petLegL 0.42s steps(2) infinite;
}

.hero-virus.is-running .hero-virus__leg--r {
  animation: petLegR 0.42s steps(2) infinite;
}

.hero-virus.is-running .hero-virus__pet svg {
  animation: petBounce 0.65s ease-in-out infinite alternate;
}

@keyframes petLegL {
  0% { transform: translateY(0); }
  100% { transform: translateY(-2px); }
}

@keyframes petLegR {
  0% { transform: translateY(-2px); }
  100% { transform: translateY(0); }
}

@keyframes petBounce {
  0% { transform: translateY(0); }
  100% { transform: translateY(-1px); }
}

.hero-virus__inner {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-virus__egg {
  position: absolute;
  inset: 22% 32% 10%;
  border-radius: 50% 50% 50% 50% / 58% 58% 42% 42%;
  background:
    radial-gradient(circle at 35% 28%, rgba(180, 255, 200, 0.35), transparent 42%),
    linear-gradient(165deg, #2a2f2c 0%, #171a18 52%, #0d0f0e 100%);
  box-shadow:
    inset -2px -5px 10px rgba(0, 0, 0, 0.45),
    0 0 12px rgba(57, 255, 122, 0.22),
    0 4px 14px rgba(0, 0, 0, 0.4);
  opacity: 0;
  transform: scale(0);
  transform-origin: center bottom;
}

.hero-virus__crack {
  position: absolute;
  inset: 36% 22% auto;
  height: 1.5px;
  background: linear-gradient(90deg, transparent, #39ff7a 18%, #39ff7a 82%, transparent);
  opacity: 0;
  transform: rotate(-8deg);
  box-shadow: 0 0 8px rgba(57, 255, 122, 0.8);
}

.hero-virus__body {
  display: block;
  opacity: 0;
  transform: scale(0);
  filter: drop-shadow(0 0 10px currentColor) drop-shadow(0 0 18px currentColor);
}

.hero-virus__body svg {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-virus__burst {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-virus__burst i {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 1px;
  background: currentColor;
  opacity: 0;
  box-shadow: 0 0 10px currentColor;
  transform: translate(-50%, -50%) rotate(45deg);
}

.hero-virus__flash {
  position: absolute;
  inset: -40%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.95) 0%, var(--virus-flash, rgba(255, 220, 120, 0.55)) 35%, transparent 72%);
  opacity: 0;
  pointer-events: none;
}

.hero-virus--1 {
  width: 2.5rem;
  height: 2.5rem;
  color: #39ff7a;
  --virus-flash: rgba(57, 255, 122, 0.55);
}

.hero-virus--2 {
  width: 3rem;
  height: 3rem;
  color: #ff4747;
  --virus-flash: rgba(255, 71, 71, 0.55);
}

.hero-virus--3 {
  width: 2.25rem;
  height: 2.25rem;
  color: #b56cff;
  --virus-flash: rgba(181, 108, 255, 0.55);
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
  max-width: 100%;
  text-wrap: balance;
}

.hero-eyebrow::before {
  content: '';
  width: 2rem;
  height: 1px;
  background: var(--accent);
}

.hero h1,
.hero-title {
  font-family: var(--serif);
  font-size: clamp(2.75rem, 6vw, 4.5rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
  max-width: 14ch;
}

/* ── animated hero title ── */
.hero-title {
  position: relative;
  font-size: clamp(3rem, 8vw, 5.75rem);
  letter-spacing: -0.03em;
  max-width: 100%;
  width: fit-content;
  margin-inline: auto;
  perspective: 800px;
}

.hero-title-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 60%;
  height: 70%;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse, rgba(196, 162, 101, 0.25), transparent 70%);
  filter: blur(40px);
  pointer-events: none;
}

html:not(.js-hero) .hero-title-glow {
  animation: titleGlowPulse 14s ease-in-out infinite;
}

@keyframes titleGlowPulse {
  0%, 100% { opacity: 0.55; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.1); }
}

.hero-title-inner {
  display: block;
  position: relative;
  z-index: 1;
  transform-style: preserve-3d;
}

html:not(.js-hero) .hero-title-inner {
  animation: titleSway 20s ease-in-out infinite;
}

@keyframes titleSway {
  0%, 100% { transform: perspective(800px) rotateX(0deg) rotateY(0deg) translateY(0); }
  50% { transform: perspective(800px) rotateX(0.5deg) rotateY(0deg) translateY(-1px); }
}

.hero-title-line {
  display: block;
  overflow: visible;
  line-height: 1.05;
  text-align: center;
}

.hero-title-line--gold {
  margin-top: -0.05em;
}

.hero-title-char {
  --i: 0;
  display: inline-block;
}

html:not(.js-hero) .hero-title-char {
  animation: charFloat 9s ease-in-out calc(var(--i) * 0.15s) infinite;
}

.hero-title-char-inner {
  display: inline-block;
  color: var(--text);
}

html:not(.js-hero) .hero-title-char-inner {
  opacity: 0;
  transform: translateY(110%) rotateX(-70deg);
  animation: charReveal 0.85s var(--ease) calc(var(--i) * 0.07s) forwards;
}

html:not(.js-hero) .hero-title-line:first-child .hero-title-char-inner {
  animation:
    charReveal 0.85s var(--ease) calc(var(--i) * 0.07s) forwards,
    charGlow 3s ease-in-out calc(var(--i) * 0.1s + 0.9s) infinite;
}

html:not(.js-hero) .hero-title-line--gold .hero-title-char-inner {
  background: linear-gradient(
    100deg,
    #9a7840 0%,
    #d4b06a 20%,
    #fff8e7 45%,
    #d4b06a 65%,
    #9a7840 90%
  );
  background-size: 400% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation:
    charReveal 0.85s var(--ease) calc(var(--i) * 0.07s) forwards,
    goldShimmer 2.5s linear calc(var(--i) * 0.06s + 0.9s) infinite;
}

html.js-hero .hero-title-char-inner {
  opacity: 0;
}

html.js-hero .hero-title-line--gold .hero-title-char-inner {
  background: linear-gradient(
    100deg,
    #9a7840 0%,
    #d4b06a 20%,
    #fff8e7 45%,
    #d4b06a 65%,
    #9a7840 90%
  );
  background-size: 400% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

html.js-hero .hero-title-inner {
  animation: none;
}

html.js-hero .hero-title-glow {
  animation: none;
  opacity: 0.6;
}

html.js-hero .hero-title-underline {
  animation: none;
  transform: scaleX(0);
}

@keyframes charReveal {
  to {
    opacity: 1;
    transform: translateY(0) rotateX(0);
  }
}

@keyframes charFloat {
  0%, 100% { transform: translateY(0) rotateZ(0deg) scale(1); }
  50% { transform: translateY(-5px) rotateZ(-1deg) scale(1.015); }
}

@keyframes charGlow {
  0%, 100% { text-shadow: 0 0 0 transparent; }
  50% { text-shadow: 0 0 20px rgba(250, 250, 250, 0.25); }
}

@keyframes goldShimmer {
  0% { background-position: 0% center; }
  100% { background-position: 400% center; }
}

.hero-title-underline {
  display: block;
  height: 2px;
  margin-top: 0.75rem;
  max-width: 14rem;
  margin-inline: auto;
  border-radius: 1px;
  background: linear-gradient(90deg, var(--accent), #fff, var(--accent), transparent);
  background-size: 200% 100%;
  transform: scaleX(0);
  transform-origin: center;
}

html:not(.js-hero) .hero-title-underline {
  animation:
    underlineDraw 1s var(--ease) 0.8s forwards,
    underlineShimmer 2.5s linear 2s infinite;
}

@keyframes underlineDraw {
  to { transform: scaleX(1); }
}

@keyframes underlineShimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

.hero-lead {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 36rem;
  line-height: 1.75;
  margin-inline: auto;
  text-align: center;
  text-wrap: pretty;
}

/* ── homepage below hero ── */
.home-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 3.5rem;
}

.home-content .hero-stats {
  margin: -2rem 0 0;
  grid-column: 1 / -1;
}

.home-content .posts-section {
  grid-column: 1 / -1;
  min-width: 0;
}

.home-content .hero-stats,
.home-content .posts-section {
  margin-inline: calc(var(--page-gutter) * -1);
}

.home-content .posts-section .section-head,
.home-content .posts-section .posts-feed {
  padding-inline: var(--page-gutter);
}

.home-content .hero-stats__grid,
.home-content .posts-feed,
.home-content .posts-feed > li,
.home-content .post-card {
  width: 100%;
  max-width: none;
}

.home-content .hero-stats__grid,
.home-content .post-card {
  box-sizing: border-box;
}

/* ── hero stats bar ── */
.hero-stats {
  margin: -2rem 0 3.5rem;
  padding-bottom: 0.5rem;
}

.hero-stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(33, 30, 27, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  overflow: hidden;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 1.35rem 1rem;
  text-align: center;
  border-right: 1px solid var(--border);
}

.hero-stat:last-child {
  border-right: none;
}

.hero-stat dd {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.125rem, 2.2vw, 1.625rem);
  font-weight: 600;
  line-height: 1.2;
  color: var(--accent);
  text-wrap: balance;
}

.hero-stat dt {
  margin: 0;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  line-height: 1.35;
  text-wrap: balance;
}

/* ── section headers ── */
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}

.section-head h2 {
  font-family: var(--serif);
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.section-head span {
  font-size: 0.8125rem;
  color: var(--text-tertiary);
  letter-spacing: 0.04em;
}

.page-head {
  margin-bottom: 3.5rem;
}

.page-head h1 {
  font-family: var(--serif);
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.page-head p {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  max-width: 32rem;
  line-height: 1.75;
}

/* ── posts ── */
.posts-feed {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.post-card {
  display: block;
  text-decoration: none;
  padding: 1.75rem 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: background 0.35s, border-color 0.35s, transform 0.35s var(--ease), box-shadow 0.35s;
}

.post-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
}

.post-card-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
}

.post-content h3 {
  font-family: var(--serif);
  font-size: 1.375rem;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 0.35rem;
  transition: color 0.25s;
}

.post-card:hover .post-content h3 {
  color: var(--accent-light);
}

.post-date {
  display: block;
  margin-bottom: 0.85rem;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text-tertiary);
}

.post-media {
  display: grid;
  grid-template-columns: minmax(8.5rem, 14rem) 1fr;
  gap: 1.25rem;
  align-items: start;
  margin-bottom: 0.875rem;
}

.post-thumb {
  width: 100%;
  max-width: none;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
  margin-bottom: 0;
  background: var(--bg-elevated);
}

.post-thumb img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.45s var(--ease);
}

.post-card:hover .post-thumb img {
  transform: scale(1.04);
}

.post-excerpt {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin: 0;
}

.post-tag + .post-tag {
  margin-left: 0.5rem;
}

.post-tag {
  display: inline-block;
  margin-top: 0.875rem;
  padding: 0.25rem 0.65rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-dim);
  border-radius: 4px;
}

.post-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text-tertiary);
  font-size: 1rem;
  align-self: center;
  transition: border-color 0.3s, color 0.3s, background 0.3s, transform 0.35s var(--ease);
}

.post-card:hover .post-arrow {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
  transform: translateX(4px);
}

/* ── about ── */
.about-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 4rem;
  align-items: start;
}

.about-portrait {
  position: relative;
}

.about-portrait-frame {
  aspect-ratio: 4/5;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  position: relative;
}

.about-portrait-frame::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(160deg, rgba(196, 162, 101, 0.4), transparent 50%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.about-portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.about-portrait-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 4rem;
  font-weight: 600;
  color: var(--text-tertiary);
  background: linear-gradient(145deg, var(--bg-elevated), var(--bg-card));
}

.about-portrait-caption {
  margin-top: 1rem;
  font-size: 0.8125rem;
  color: var(--text-tertiary);
  text-align: center;
}

.about-body p {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
  line-height: 1.8;
}

.about-body p strong {
  color: var(--text);
  font-weight: 500;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 2.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
}

.stat-item {
  padding: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color 0.3s;
}

.stat-item:hover {
  border-color: var(--border-hover);
}

.stat-item dt {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 0.35rem;
}

.stat-item dd {
  font-family: var(--serif);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text);
}

/* ── books ── */
.books-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.book-item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 2.5rem;
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.35s, box-shadow 0.35s, transform 0.35s var(--ease);
}

.book-item:hover {
  border-color: var(--border-hover);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  transform: translateY(-2px);
}

.book-cover {
  aspect-ratio: 2/3;
  border-radius: 6px;
  overflow: hidden;
  position: relative;
  box-shadow: 4px 8px 24px rgba(0, 0, 0, 0.5);
  transition: transform 0.5s var(--ease);
}

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

a.book-cover {
  text-decoration: none;
}

.book-details h3 a {
  text-decoration: none;
  color: inherit;
  transition: color 0.25s;
}

.book-details h3 a:hover {
  color: var(--accent-light);
}

.book-item:hover .book-cover {
  transform: scale(1.02);
}

.book-cover--1 { background: linear-gradient(160deg, #2a2520 0%, #1a1612 100%); }
.book-cover--2 { background: linear-gradient(160deg, #1f2428 0%, #121618 100%); }
.book-cover--3 { background: linear-gradient(160deg, #28201f 0%, #181212 100%); }

.book-cover-inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1rem;
}

.book-cover-inner::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--accent);
}

.book-cover-title {
  font-family: var(--serif);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text);
  position: relative;
}

.book-cover-author {
  font-size: 0.625rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-top: 0.5rem;
  position: relative;
}

.book-details h3 {
  font-family: var(--serif);
  font-size: 1.625rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.book-year {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 1rem;
}

.book-details p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 1.5rem;
  max-width: 36rem;
}

.book-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.book-link--empik {
  border-color: rgba(196, 162, 101, 0.35);
  background: var(--accent-dim);
  color: var(--accent-light);
}

.book-link--empik:hover {
  border-color: var(--accent);
  background: rgba(196, 162, 101, 0.18);
  color: var(--text);
}

.book-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  padding: 0.6rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color 0.3s, background 0.3s, color 0.3s;
}

.book-link svg {
  width: 14px;
  height: 14px;
  transition: transform 0.3s var(--ease);
}

.book-link:hover {
  border-color: var(--accent);
  background: var(--accent-dim);
  color: var(--accent-light);
}

.book-link:hover svg {
  transform: translateX(3px);
}

/* ── contact ── */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.contact-card {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.35s, transform 0.35s var(--ease), box-shadow 0.35s;
}

.contact-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
}

.contact-icon {
  width: 2.75rem;
  height: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-dim);
  border-radius: var(--radius-sm);
  color: var(--accent);
}

.contact-icon svg {
  width: 18px;
  height: 18px;
}

.contact-card .label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

.contact-card .value {
  display: block;
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.4;
  word-break: break-word;
}

.contact-card > div:not(.contact-icon) {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.contact-note {
  padding: 1.5rem 1.75rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ── article page ── */
.article-back {
  display: inline-block;
  margin-bottom: 2rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.25s;
}

.article-back:hover {
  color: var(--accent-light);
}

.article-header {
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  margin-bottom: 1.25rem;
  font-size: 0.8125rem;
  color: var(--text-tertiary);
}

.article-meta time {
  letter-spacing: 0.02em;
}

.article-header h1 {
  font-family: var(--serif);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  max-width: none;
}

.article-cover {
  margin: 0 0 2.5rem;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
}

.article-cover img {
  width: 100%;
  height: auto;
  display: block;
}

.article-body {
  max-width: none;
  font-family: var(--reading);
  font-size: 1.0625rem;
  line-height: 1.85;
  color: #F9F4E9;
}

.article-body p {
  margin-bottom: 1.25rem;
}

.article-body h2,
.article-sources h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 700;
  line-height: 2;
  letter-spacing: -0.02em;
  color: #001651;
  display: inline;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  background: #ffd400;
  padding: 0.12em 0.35em 0.22em;
  box-shadow: 0 2px 0 rgba(255, 212, 0, 0.45);
}

.article-body h2 {
  font-size: clamp(1.35rem, 3vw, 1.65rem);
  margin: 2.75rem 0 1.35rem;
}

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

.article-body ul {
  margin: 0 0 1.25rem;
  padding-left: 1.35rem;
}

.article-body li {
  margin-bottom: 0.5rem;
}

.article-body li:last-child {
  margin-bottom: 0;
}

.article-body ol {
  margin: 0 0 1.25rem;
  padding-left: 1.35rem;
}

.article-body blockquote {
  margin: 0 0 1.25rem;
  padding: 0.75rem 1rem 0.75rem 1.25rem;
  border-left: 3px solid var(--accent);
  color: #F9F4E9;
  font-style: italic;
}

.article-body blockquote p {
  margin-bottom: 0;
}

.article-body p:last-child {
  margin-bottom: 0;
}

.article-sources {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  font-size: 0.9375rem;
  line-height: 1.7;
}

.article-sources h2 {
  font-size: 1.15rem;
  margin: 0 0 1.25rem;
}

.article-sources ol {
  margin: 0;
  padding-left: 1.25rem;
}

.article-sources li {
  margin-bottom: 0.75rem;
}

.article-sources li:last-child {
  margin-bottom: 0;
}

.article-sources a {
  color: var(--accent-light);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.article-sources a:hover {
  color: var(--accent);
}

/* ── footer ── */
.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: 2rem 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-inner p {
  font-size: 0.8125rem;
  color: var(--text-tertiary);
}

.footer-nav {
  display: flex;
  gap: 1.5rem;
}

.footer-nav a {
  font-size: 0.8125rem;
  color: var(--text-tertiary);
  text-decoration: none;
  transition: color 0.25s;
}

.footer-nav a:hover {
  color: var(--text-secondary);
}

/* ── animations ── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

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

.reveal-delay-1 { transition-delay: 0.06s; }
.reveal-delay-2 { transition-delay: 0.12s; }
.reveal-delay-3 { transition-delay: 0.18s; }
.reveal-delay-4 { transition-delay: 0.24s; }

/* ── mobile nav overlay ── */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 98;
  opacity: 0;
  transition: opacity 0.3s;
}

.nav-overlay.visible {
  opacity: 1;
}

/* ── responsive ── */
@media (max-width: 900px) {
  :root {
    --page-gutter: 2rem;
  }

  .about-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .about-portrait {
    max-width: 240px;
  }

  .book-item {
    grid-template-columns: 100px 1fr;
    gap: 1.5rem;
    padding: 1.5rem;
  }

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

  .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem var(--page-gutter) 1.25rem;
    background: rgba(9, 9, 11, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
    transform: translateY(-110%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.4s var(--ease), opacity 0.3s, visibility 0.3s;
    z-index: 99;
  }

  .site-nav.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .site-nav a {
    padding: 0.9rem 0.75rem;
    font-size: 1.05rem;
    border-radius: var(--radius-sm);
  }

  .site-nav a.active {
    background: var(--accent-dim);
  }

  .site-nav a::after { display: none; }

  .menu-toggle { display: flex; }

  .nav-overlay {
    display: block;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
  }

  .nav-overlay.visible {
    pointer-events: auto;
    opacity: 1;
    visibility: visible;
  }

  .brand {
    font-size: 1.15rem;
    max-width: 55vw;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .header-inner {
    gap: 1rem;
  }

  .hero-title {
    font-size: clamp(2.1rem, 10.5vw, 3.4rem);
    letter-spacing: -0.02em;
  }

  .hero-eyebrow {
    font-size: 0.65rem;
    letter-spacing: 0.08em;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero-eyebrow::before {
    width: 1.25rem;
  }

  .hero-lead {
    font-size: 1rem;
    line-height: 1.7;
  }

  .page-head h1 {
    font-size: clamp(1.85rem, 8vw, 2.5rem);
  }
}

@media (max-width: 768px) {
  main { padding: 2rem 0 3.5rem; }

  .hero { padding: 1.25rem 0 2.5rem; margin-bottom: 2.5rem; }

  .home-content .hero-stats {
    margin: -1.25rem 0 0;
  }

  .home-content {
    gap: 2.5rem;
  }

  .hero-stats__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-stat {
    padding: 1.15rem 0.75rem;
  }

  .hero-stat:nth-child(2) {
    border-right: none;
  }

  .hero-stat:nth-child(1),
  .hero-stat:nth-child(2) {
    border-bottom: 1px solid var(--border);
  }

  .hero-title {
    font-size: clamp(2rem, 9.2vw, 3.25rem);
    max-width: 100%;
  }

  .hero-title-line {
    overflow-wrap: break-word;
  }

  .hero-eyebrow {
    max-width: 100%;
  }

  .post-card {
    padding: 1.25rem 1.35rem;
  }

  .post-card-inner {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .post-media {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .post-thumb {
    max-width: 100%;
  }

  .post-arrow { display: none; }

  .book-item {
    grid-template-columns: 1fr;
    padding: 1.25rem;
    justify-items: center;
    text-align: center;
  }

  .book-cover {
    max-width: 10.5rem;
    width: 100%;
    margin-inline: auto;
  }

  .book-actions {
    justify-content: center;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-nav {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 380px) {
  .hero-title {
    font-size: clamp(1.85rem, 8.8vw, 2.65rem);
  }

  .lang-switch button {
    padding: 0.4rem 0.6rem;
  }
}

/* ── book landing page ── */
body.book-lp {
  padding-bottom: 0;
}

body.book-lp.has-mobile-cta {
  padding-bottom: 4.5rem;
}

.book-lp-header {
  position: sticky;
  top: 0;
  z-index: 200;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  background: rgba(9, 9, 11, 0.72);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  transition: border-color 0.3s, box-shadow 0.3s;
}

.book-lp-header.is-scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.book-lp-header .header-inner {
  height: var(--header-h);
}

.book-lp-header .brand {
  font-size: 1.35rem;
}

.book-lp-header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  font-family: var(--sans);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s, background 0.25s, color 0.25s;
}

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

.btn--primary {
  color: #0c0a08;
  background: linear-gradient(135deg, var(--accent-light) 0%, var(--accent) 55%, #a8864a 100%);
  box-shadow: 0 4px 24px var(--accent-glow), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 36px var(--accent-glow), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn--ghost {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-hover);
}

.btn--sm {
  padding: 0.65rem 1.15rem;
  font-size: 0.8125rem;
}

.btn--lg {
  padding: 1rem 2rem;
  font-size: 1rem;
}

.btn svg {
  width: 1.1em;
  height: 1.1em;
  flex-shrink: 0;
}

.book-lp-hero {
  position: relative;
  padding: clamp(3rem, 8vw, 5.5rem) 0 clamp(4rem, 10vw, 6rem);
  overflow: hidden;
}

.book-lp-hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.book-lp-hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.45;
  animation: bookLpOrb 18s ease-in-out infinite;
}

.book-lp-hero__orb--1 {
  width: min(520px, 80vw);
  height: min(520px, 80vw);
  top: -15%;
  right: -10%;
  background: radial-gradient(circle, rgba(196, 162, 101, 0.35), transparent 70%);
}

.book-lp-hero__orb--2 {
  width: min(400px, 70vw);
  height: min(400px, 70vw);
  bottom: -20%;
  left: -15%;
  background: radial-gradient(circle, rgba(120, 90, 200, 0.2), transparent 70%);
  animation-delay: -6s;
}

.book-lp-hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black, transparent);
  opacity: 0.5;
}

@keyframes bookLpOrb {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-3%, 4%) scale(1.05); }
  66% { transform: translate(4%, -2%) scale(0.95); }
}

.book-lp-hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(0.35rem, 1.2vw, 0.85rem);
  align-items: center;
}

.book-lp-hero__content {
  max-width: 34rem;
}

.book-lp-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.85rem;
  margin-bottom: 1.25rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-light);
  background: var(--accent-dim);
  border: 1px solid rgba(196, 162, 101, 0.25);
  border-radius: 999px;
}

.book-lp-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
}

.book-lp-hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.25rem, 5.5vw, 3.75rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}

.book-lp-hero h1 em {
  font-style: italic;
  color: var(--accent-light);
}

.book-lp-hero__lead {
  font-size: clamp(1.0625rem, 2vw, 1.2rem);
  line-height: 1.75;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 34rem;
}

.book-lp-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 2rem;
}

.book-lp-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 2rem;
}

.book-lp-trust span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--text-tertiary);
}

.book-lp-trust span::before {
  content: '✓';
  color: var(--accent);
  font-weight: 700;
}

.book-lp-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
  margin-bottom: 1.75rem;
}

.book-lp-meta span {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 0.35rem 0.75rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 999px;
}

.book-lp-meta__price {
  font-weight: 700 !important;
  color: var(--accent-light) !important;
  border-color: rgba(196, 162, 101, 0.3) !important;
  background: var(--accent-dim) !important;
}

.book-lp-excerpt {
  display: grid;
  grid-template-columns: 1fr minmax(140px, 200px);
  gap: 2.5rem;
  align-items: center;
  max-width: 52rem;
  margin: 0 auto;
}

.book-lp-excerpt h2 {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  margin-bottom: 1rem;
}

.book-lp-excerpt__text {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.book-lp-excerpt__text p {
  margin-bottom: 1rem;
}

.book-lp-excerpt__text p:last-child {
  margin-bottom: 0;
}

.book-lp-excerpt__text strong {
  color: var(--text);
}

.book-lp-excerpt__cover img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

.book-lp-highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.book-lp-highlight {
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
}

.book-lp-highlight h3 {
  font-family: var(--serif);
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.book-lp-highlight p {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--text-secondary);
}

.book-lp-cover-wrap {
  position: relative;
  perspective: 1200px;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.book-lp-cover-wrap:has(.book-lp-cover--promo) {
  justify-content: flex-start;
  width: auto;
  margin-left: -0.25rem;
  padding: 0;
}

.book-lp-cover-wrap:has(.book-lp-cover--promo)::after {
  content: '';
  position: absolute;
  bottom: 8%;
  left: 5%;
  right: 5%;
  height: 18%;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.55), transparent 72%);
  filter: blur(18px);
  pointer-events: none;
  z-index: 0;
}

.book-lp-cover-glow {
  position: absolute;
  inset: 10% 5%;
  background: radial-gradient(ellipse at center, var(--accent-glow), transparent 65%);
  filter: blur(40px);
  opacity: 0.7;
  animation: bookLpPulse 4s ease-in-out infinite;
}

.book-lp-cover-wrap:has(.book-lp-cover--promo) .book-lp-cover-glow {
  display: none;
}

@keyframes bookLpPulse {
  0%, 100% { opacity: 0.55; transform: scale(0.95); }
  50% { opacity: 0.85; transform: scale(1.05); }
}

.book-lp-cover {
  position: relative;
  width: min(100%, 300px);
  transform: rotateY(-12deg) rotateX(4deg);
  transform-style: preserve-3d;
  transition: transform 0.6s var(--ease);
  filter: drop-shadow(-20px 24px 48px rgba(0, 0, 0, 0.65));
}

.book-lp-cover-wrap:hover .book-lp-cover {
  transform: rotateY(-4deg) rotateX(2deg) translateY(-6px);
}

.book-lp-cover img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px 8px 8px 4px;
}

.book-lp-cover--promo {
  position: relative;
  z-index: 1;
  width: min(46vw, 480px);
  max-width: 480px;
  transform: none;
  filter: drop-shadow(0 20px 36px rgba(0, 0, 0, 0.4));
}

.book-lp-cover--promo img {
  width: 100%;
  height: auto;
  border-radius: 0;
  mix-blend-mode: lighten;
}

.book-lp-cover--promo::after {
  display: none;
}

.book-lp-cover-wrap:hover .book-lp-cover--promo {
  transform: translateY(-4px);
}

.book-lp-cover::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255,255,255,0.12) 0%, transparent 40%, rgba(0,0,0,0.15) 100%);
  pointer-events: none;
}

.book-lp-section {
  position: relative;
  z-index: 1;
  padding: clamp(3.5rem, 8vw, 5.5rem) 0;
}

.book-lp-section--alt {
  background: linear-gradient(180deg, transparent, rgba(255,255,255,0.02) 50%, transparent);
  border-block: 1px solid var(--border);
}

.book-lp-section__head {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto 3rem;
}

.book-lp-section__head h2 {
  font-family: var(--serif);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.book-lp-section__head p {
  color: var(--text-secondary);
  font-size: 1.0625rem;
  line-height: 1.7;
}

.book-lp-problems {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.book-lp-problem {
  padding: 1.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.3s, transform 0.3s var(--ease);
}

.book-lp-problem:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
}

.book-lp-problem__icon {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.book-lp-problem h3 {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.65rem;
}

.book-lp-problem p {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--text-secondary);
}

.book-lp-benefits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.book-lp-benefit {
  padding: 1.5rem 1.65rem;
  background: linear-gradient(145deg, var(--bg-card), rgba(22, 22, 26, 0.6));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
}

.book-lp-benefit::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.6;
}

.book-lp-benefit__num {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 600;
  color: var(--accent-dim);
  line-height: 1;
  margin-bottom: 0.75rem;
  color: rgba(196, 162, 101, 0.35);
}

.book-lp-benefit h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.book-lp-benefit p {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

.book-lp-audience {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  max-width: 48rem;
  margin: 0 auto;
}

.book-lp-audience span {
  padding: 0.65rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  transition: border-color 0.25s, color 0.25s;
}

.book-lp-audience span:hover {
  border-color: rgba(196, 162, 101, 0.35);
  color: var(--text);
}

.book-lp-quote {
  max-width: 44rem;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 3rem);
  text-align: center;
  background: var(--accent-dim);
  border: 1px solid rgba(196, 162, 101, 0.2);
  border-radius: var(--radius);
}

.book-lp-quote blockquote {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 500;
  font-style: italic;
  line-height: 1.45;
  color: var(--text);
}

.book-lp-author {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 2.5rem;
  align-items: center;
  max-width: 52rem;
  margin: 0 auto;
}

.book-lp-author__photo {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.book-lp-author__photo img {
  width: 100%;
  height: auto;
  display: block;
}

.book-lp-author h3 {
  font-family: var(--serif);
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.book-lp-author__role {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.book-lp-author p {
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 0.85rem;
}

.book-lp-faq {
  max-width: 40rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.book-lp-faq details {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color 0.25s;
}

.book-lp-faq details[open] {
  border-color: rgba(196, 162, 101, 0.3);
}

.book-lp-faq summary {
  padding: 1.15rem 1.35rem;
  font-weight: 600;
  font-size: 0.9375rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.book-lp-faq summary::-webkit-details-marker { display: none; }

.book-lp-faq summary::after {
  content: '+';
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--accent);
  transition: transform 0.25s;
}

.book-lp-faq details[open] summary::after {
  transform: rotate(45deg);
}

.book-lp-faq details p {
  padding: 0 1.35rem 1.15rem;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

.book-lp-buy {
  text-align: center;
  padding: clamp(3rem, 8vw, 5rem) 0;
}

.book-lp-buy__card {
  max-width: 40rem;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 3rem);
  background: linear-gradient(160deg, var(--bg-card) 0%, rgba(22, 22, 26, 0.8) 100%);
  border: 1px solid rgba(196, 162, 101, 0.25);
  border-radius: calc(var(--radius) + 4px);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255,255,255,0.04);
}

.book-lp-buy__product {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 1.25rem;
  align-items: start;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.book-lp-buy__product img {
  width: 100%;
  border-radius: 4px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.book-lp-buy__edition {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.35rem;
}

.book-lp-buy__product h2 {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.25;
  margin-bottom: 0.5rem;
}

.book-lp-buy__price {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--accent-light);
  margin-bottom: 0.35rem;
}

.book-lp-buy__specs,
.book-lp-buy__release {
  font-size: 0.8125rem;
  color: var(--text-tertiary);
}

.book-lp-buy__card > h2 {
  font-family: var(--serif);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.book-lp-buy__card > p {
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
}

.book-lp-buy__cta {
  width: 100%;
  margin-bottom: 1rem;
}

.book-lp-follow {
  text-align: center;
  padding: 2.5rem 0;
  border-top: 1px solid var(--border);
}

.book-lp-follow h2 {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.book-lp-follow p {
  color: var(--text-secondary);
  max-width: 28rem;
  margin: 0 auto 1.25rem;
}

.book-lp-footer__links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  margin-top: 0.5rem;
}

.book-lp-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  color: var(--text-tertiary);
  transition: color 0.25s;
}

.book-lp-social:hover {
  color: var(--accent-light);
}

.book-lp-social svg {
  width: 1rem;
  height: 1rem;
}

.book-lp-buy__note {
  font-size: 0.8125rem;
  color: var(--text-tertiary);
}

.book-lp-buy__note a {
  color: var(--accent-light);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.book-lp-final {
  text-align: center;
  padding: clamp(3rem, 8vw, 5rem) 0 clamp(4rem, 10vw, 6rem);
  background: radial-gradient(ellipse 80% 60% at 50% 100%, rgba(196, 162, 101, 0.1), transparent);
}

.book-lp-final h2 {
  font-family: var(--serif);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 600;
  max-width: 28rem;
  margin: 0 auto 1.5rem;
  line-height: 1.15;
}

.book-lp-footer {
  position: relative;
  z-index: 1;
  padding: 1.5rem 0;
  border-top: 1px solid var(--border);
  text-align: center;
}

.book-lp-footer p {
  font-size: 0.8125rem;
  color: var(--text-tertiary);
}

.book-lp-footer a {
  color: var(--text-secondary);
  text-decoration: none;
  margin-inline: 0.75rem;
}

.book-lp-footer a:hover {
  color: var(--accent-light);
}

.book-lp-mobile-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 300;
  padding: 0.75rem var(--page-gutter);
  padding-bottom: max(0.75rem, env(safe-area-inset-bottom));
  background: rgba(9, 9, 11, 0.92);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--border);
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.4);
}

.book-lp-mobile-cta .btn {
  width: 100%;
}

@media (min-width: 1100px) {
  .book-lp-hero__inner {
    gap: 0.75rem;
  }

  .book-lp-cover--promo {
    width: min(42vw, 500px);
    max-width: 500px;
  }
}

@media (max-width: 900px) {
  .book-lp-hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .book-lp-hero__content {
    max-width: none;
    order: 2;
  }

  .book-lp-cover-wrap {
    order: 1;
    margin-bottom: 1rem;
  }

  .book-lp-cover-wrap:has(.book-lp-cover--promo) {
    margin-bottom: 1.5rem;
    margin-left: 0;
    justify-content: center;
    width: 100%;
  }

  .book-lp-cover {
    width: min(220px, 55vw);
    transform: rotateY(-6deg) rotateX(2deg);
  }

  .book-lp-cover--promo {
    width: min(100%, 420px);
    max-width: 90vw;
    filter: drop-shadow(0 16px 28px rgba(0, 0, 0, 0.35));
  }

  .book-lp-hero__lead {
    margin-inline: auto;
  }

  .book-lp-hero__actions {
    justify-content: center;
  }

  .book-lp-trust {
    justify-content: center;
  }

  .book-lp-problems,
  .book-lp-benefits,
  .book-lp-highlights {
    grid-template-columns: 1fr;
  }

  .book-lp-excerpt {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .book-lp-excerpt__cover {
    max-width: 160px;
    margin: 0 auto;
    order: -1;
  }

  .book-lp-excerpt .btn {
    width: 100%;
  }

  .book-lp-buy__product {
    grid-template-columns: 80px 1fr;
  }

  .book-lp-author {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .book-lp-author__photo {
    max-width: 180px;
    margin: 0 auto;
  }

  body.book-lp.has-mobile-cta .book-lp-mobile-cta {
    display: block;
  }

  .book-lp-header .btn--primary.btn--sm {
    display: none;
  }
}

/* ── cookie consent ── */
body.cookie-consent-open {
  overflow: hidden;
}

.cookie-consent {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 1rem;
  pointer-events: none;
}

.cookie-consent__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.55s var(--ease);
}

.cookie-consent__panel {
  position: relative;
  width: min(100%, 34rem);
  padding: 1.75rem 1.75rem 1.5rem;
  background: linear-gradient(165deg, #1a1a1f 0%, #121216 100%);
  border: 1px solid var(--border-hover);
  border-radius: calc(var(--radius) + 4px);
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(196, 162, 101, 0.08) inset;
  transform: translateY(calc(100% + 2rem)) scale(0.96);
  opacity: 0;
  transition:
    transform 0.65s var(--ease),
    opacity 0.45s var(--ease);
  pointer-events: auto;
}

.cookie-consent.is-visible {
  pointer-events: auto;
}

.cookie-consent.is-visible .cookie-consent__backdrop {
  opacity: 1;
}

.cookie-consent.is-visible .cookie-consent__panel {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.cookie-consent.is-closing .cookie-consent__backdrop {
  opacity: 0;
}

.cookie-consent.is-closing .cookie-consent__panel {
  transform: translateY(1.5rem) scale(0.98);
  opacity: 0;
}

.cookie-consent__badge {
  width: 2.75rem;
  height: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  border-radius: 50%;
  background: var(--accent-dim);
  color: var(--accent);
}

.cookie-consent__badge svg {
  width: 1.35rem;
  height: 1.35rem;
}

.cookie-consent__title {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}

.cookie-consent__text {
  font-size: 0.9375rem;
  line-height: 1.75;
  color: var(--text-secondary);
  margin-bottom: 1.35rem;
}

.cookie-consent__text a {
  color: var(--accent-light);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.cookie-consent__text a:hover {
  color: var(--text);
}

.cookie-consent__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.cookie-consent__accept,
.cookie-consent__reject {
  flex: 1 1 11rem;
}

@media (max-width: 480px) {
  .cookie-consent {
    padding: 0.75rem;
  }

  .cookie-consent__panel {
    padding: 1.35rem 1.25rem 1.15rem;
  }

  .cookie-consent__actions {
    flex-direction: column;
  }

  .cookie-consent__accept,
  .cookie-consent__reject {
    flex-basis: auto;
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .book-lp-cover { transform: none !important; }
  /* hero title + viruses use Web Animations API — not affected by this rule */
}
