/* =====================================================================
   iLy Rosewood — styles
   Colours live in :root. Change --accent / --rose to re-skin the site.
   ===================================================================== */
:root {
  /* Purple is her favourite colour: aubergine ground, violet accent, amber kept from the covers.
     Previous warm-plum values, if ever wanted back: bg #0e0a0c, bg-2 #150f12, surface #1c1419,
     surface-2 #241a20, rose #d9456a, rose-2 #f08aa5. */
  --bg: #100b1b;
  --bg-2: #170f27;
  --surface: #1b1329;
  --surface-2: #241935;
  --line: rgba(240, 232, 250, 0.1);
  --ink: #f3ecf7;
  --ink-2: rgba(243, 236, 247, 0.72);
  --ink-3: rgba(243, 236, 247, 0.46);
  --accent: #dcb253;      /* gold */
  --accent-2: #f3dc93;    /* pale gold for italics and hovers */
  --rose: #9b5cf6;        /* violet; the variable keeps its old name so nothing else changes */
  --rose-2: #c69bff;
  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(16px, 5vw, 72px);
  --max: 1280px;
  --radius: 20px;
  --ease: cubic-bezier(.2,.7,.2,1);
}

*,*::before,*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; padding: 8px 14px; background: var(--accent); color: #000; border-radius: 8px; }
.skip:focus { left: 8px; }

/* ---------- ambience ---------- */
.grain { position: fixed; inset: -50%; z-index: 1; pointer-events: none; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 1.2s steps(6) infinite; }
@keyframes grain { 0%{transform:translate(0,0)} 50%{transform:translate(-3%,2%)} 100%{transform:translate(2%,-3%)} }
.glow { position: fixed; z-index: 0; pointer-events: none; border-radius: 50%; filter: blur(90px); opacity: .55; }
.glow-a { width: 60vw; height: 60vw; left: -20vw; top: -20vw; background: radial-gradient(closest-side, rgba(120,70,220,.32), transparent 70%); animation: drift 26s ease-in-out infinite alternate; }
.glow-b { width: 50vw; height: 50vw; right: -15vw; bottom: -10vw; background: radial-gradient(closest-side, rgba(155,92,246,.45), transparent 70%); animation: drift 32s ease-in-out infinite alternate-reverse; }
@keyframes drift { to { transform: translate(8vw, 6vh) scale(1.15); } }
.cursor { position: fixed; z-index: 2; left: 0; top: 0; width: 360px; height: 360px; margin: -180px 0 0 -180px; pointer-events: none; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(220,178,83,.10), transparent 70%); opacity: 0; transition: opacity .4s; }
@media (pointer: fine) { body.has-cursor .cursor { opacity: 1; } }
.progress { position: fixed; z-index: 60; left: 0; top: 0; width: 100%; height: 2px; background: transparent; }
.progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), var(--rose)); transform-origin: left; }
@supports (animation-timeline: scroll()) {
  .progress span { width: 100%; transform: scaleX(0); animation: grow linear both; animation-timeline: scroll(root); }
  @keyframes grow { to { transform: scaleX(1); } }
}

main { position: relative; z-index: 3; }
.section { position: relative; max-width: var(--max); margin: 0 auto; padding: clamp(72px, 10vw, 140px) var(--gutter); }

/* ---------- type ---------- */
.display, .display-md { font-family: var(--serif); font-weight: 400; letter-spacing: -.02em; line-height: 1.02; margin: 0; font-variation-settings: "opsz" 144, "SOFT" 30; text-wrap: balance; }
.display { font-size: clamp(42px, 6.6vw, 96px); }
.display-md { font-size: clamp(32px, 4.4vw, 60px); }
.display em, .display-md em, .brand-name em { font-style: italic; font-weight: 300; color: var(--accent-2); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px; font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-3); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 14px var(--accent); flex: none; }
.dot.pulse { animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(220,178,83,.15); } }
.lede { font-size: clamp(17px, 1.4vw, 21px); color: var(--ink-2); max-width: 56ch; margin: 18px 0 0; text-wrap: pretty; }
.body { color: var(--ink-2); max-width: 60ch; }
.hook { font-family: var(--serif); font-style: italic; font-size: clamp(20px, 2vw, 27px); line-height: 1.35; color: var(--ink); margin: 22px 0 14px; font-variation-settings: "opsz" 48, "SOFT" 60; }
.fine { font-size: 13px; color: var(--ink-3); line-height: 1.5; }
.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 64px); }

/* ---------- buttons ---------- */
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 999px; font-weight: 600; font-size: 15px; letter-spacing: .01em; transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .3s, color .3s; white-space: nowrap; }
.btn:active { transform: scale(.98); }
.btn-primary { background: linear-gradient(135deg, var(--accent-2), var(--accent) 60%, #b8882c); color: #1a0f05; box-shadow: 0 10px 30px -10px rgba(220,178,83,.6); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -12px rgba(220,178,83,.75); }
.btn-primary .arrow { transition: transform .3s var(--ease); }
.btn-primary:hover .arrow { transform: translateX(4px); }
.btn-ghost { border: 1px solid var(--line); color: var(--ink); background: rgba(255,255,255,.02); backdrop-filter: blur(8px); }
.btn-ghost:hover { border-color: rgba(246,234,217,.35); background: rgba(255,255,255,.05); }
.btn-sm { padding: 10px 16px; font-size: 13.5px; }

/* ---------- nav ---------- */
.nav { position: fixed; z-index: 50; top: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; padding: 14px var(--gutter); }
/* The blur lives on a pseudo-element: a backdrop-filter on .nav itself would trap the
   fixed full-screen mobile menu inside the 60px bar. */
.nav::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(13,9,20,.72); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); border-bottom: 1px solid var(--line); opacity: 0; transition: opacity .4s; }
.nav.solid::before { opacity: 1; }
.brand { display: flex; align-items: center; gap: 12px; position: relative; z-index: 2; }
.brand-mark { display: block; width: 38px; height: 38px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(244,237,228,.25), 0 6px 18px -6px rgba(0,0,0,.6); }
.brand-name { font-family: var(--serif); font-size: 22px; letter-spacing: -.01em; }
.nav-links { display: flex; align-items: center; gap: 30px; font-size: 14.5px; font-weight: 500; color: var(--ink-2); }
.nav-links a { position: relative; padding: 6px 0; transition: color .3s; }
.nav-links a:not(.nav-cta)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease); }
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-cta { padding: 10px 18px !important; border-radius: 999px; border: 1px solid rgba(220,178,83,.5); color: var(--accent-2) !important; }
.nav-cta:hover { background: rgba(220,178,83,.1); }
.burger { display: none; width: 44px; height: 44px; position: relative; z-index: 2; }
.burger span { position: absolute; left: 11px; width: 22px; height: 1.5px; background: var(--ink); transition: transform .35s var(--ease), top .35s var(--ease); }
.burger span:nth-child(1) { top: 17px; } .burger span:nth-child(2) { top: 26px; }
.burger[aria-expanded="true"] span:nth-child(1) { top: 21.5px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { top: 21.5px; transform: rotate(-45deg); }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; max-width: var(--max); margin: 0 auto; padding: clamp(110px, 16vh, 170px) var(--gutter) 80px; display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: clamp(24px, 4vw, 64px); }
.hero-copy { position: relative; z-index: 2; }
.stores { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 0; margin: 38px 0 0; font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.stores li::before { content: "✦"; margin-right: 8px; color: var(--accent); font-size: 9px; vertical-align: 2px; }
.hero-art { position: relative; height: clamp(380px, 56vw, 620px); perspective: 1400px; }
.lamp { position: absolute; inset: 20% 10%; border-radius: 50%; background: radial-gradient(closest-side, rgba(240,200,110,.45), rgba(220,178,83,.08) 55%, transparent 72%); filter: blur(30px); z-index: 0; animation: breathe 7s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.12); opacity: .8; } }
.stack { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .6s var(--ease); }
.stack .cover { position: absolute; left: 50%; top: 50%; width: clamp(150px, 20vw, 230px); aspect-ratio: 313 / 500; border-radius: 6px; overflow: hidden; transform-style: preserve-3d;
  box-shadow: 0 40px 80px -20px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.06) inset; will-change: transform; transition: transform .7s var(--ease), box-shadow .5s; }
.stack .cover img { width: 100%; height: 100%; object-fit: cover; }
.stack .cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, rgba(255,255,255,.18), transparent 40%, transparent 60%, rgba(255,255,255,.06)); mix-blend-mode: screen; pointer-events: none; }
.stack .cover:hover { z-index: 9 !important; }
.scroll-hint { position: absolute; left: 50%; bottom: 26px; width: 22px; height: 36px; margin-left: -11px; border: 1.5px solid var(--ink-3); border-radius: 12px; }
.scroll-hint span { position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: var(--accent); animation: wheel 1.8s ease-in-out infinite; }
@keyframes wheel { 50% { transform: translateY(10px); opacity: .2; } }

/* ---------- marquee ---------- */
.marquee { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 16px 0; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 48px; width: max-content; animation: marquee 40s linear infinite; font-family: var(--serif); font-size: clamp(20px, 2.4vw, 30px); font-style: italic; color: var(--ink-3); white-space: nowrap; }
.marquee-track span::after { content: "✦"; margin-left: 48px; color: var(--accent); font-style: normal; font-size: .5em; vertical-align: .35em; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- featured ---------- */
.featured { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.featured-cover { display: grid; place-items: center; perspective: 1400px; }
.book3d { position: relative; width: clamp(220px, 26vw, 330px); aspect-ratio: 313 / 500; transform-style: preserve-3d; transform: rotateY(-22deg) rotateX(4deg); transition: transform .8s var(--ease); border-radius: 4px 10px 10px 4px; }
.featured-cover:hover .book3d { transform: rotateY(-10deg) rotateX(2deg); }
.book3d img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 4px 10px 10px 4px; box-shadow: 0 50px 100px -30px rgba(0,0,0,.9); backface-visibility: hidden; }
.book3d::before { content: ""; position: absolute; top: 2px; bottom: 2px; left: -1px; width: 34px; transform-origin: left; transform: rotateY(-90deg) translateX(-17px); background: linear-gradient(90deg, #f1e9da 0 14%, #e4dccb 14% 16%, #f1e9da 16% 38%, #e4dccb 38% 40%, #f1e9da 40% 100%); }
.book3d::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(110deg, rgba(255,255,255,.22), transparent 35%, transparent 70%, rgba(0,0,0,.25)); pointer-events: none; }
.featured-copy .cta-row { margin-top: 26px; }
.featured .fine { margin-top: 22px; max-width: 60ch; }

/* ---------- books grid ---------- */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(18px, 2.4vw, 32px); }
.card { position: relative; display: flex; flex-direction: column; gap: 16px; padding: 18px; border-radius: var(--radius); background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.012)); border: 1px solid var(--line); transition: border-color .4s, transform .5s var(--ease), background .4s; }
.card:hover { border-color: rgba(220,178,83,.35); transform: translateY(-6px); }
.card-cover { position: relative; border-radius: 10px; overflow: hidden; aspect-ratio: 313 / 500; perspective: 900px; cursor: pointer; }
.card-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.card:hover .card-cover img { transform: scale(1.04); }
.card-cover .shine { position: absolute; inset: 0; background: radial-gradient(240px circle at var(--mx,50%) var(--my,50%), rgba(255,255,255,.22), transparent 60%); opacity: 0; transition: opacity .4s; mix-blend-mode: screen; pointer-events: none; }
.card:hover .shine { opacity: 1; }
.card-new { position: absolute; top: 12px; left: 12px; padding: 6px 10px; border-radius: 999px; background: var(--accent); color: #1a0f05; font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.card h3 { font-family: var(--serif); font-weight: 400; font-size: 24px; line-height: 1.1; margin: 0; letter-spacing: -.015em; }
.card .sub { font-size: 13px; color: var(--ink-3); margin: 4px 0 0; letter-spacing: .04em; }
.card .meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12.5px; color: var(--ink-3); margin: 0; }
.card .hook { font-size: 16.5px; margin: 0; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-actions { margin-top: auto; display: flex; flex-wrap: wrap; gap: 8px; }
.heat { display: inline-flex; gap: 3px; align-items: center; font-size: 12px; color: var(--ink-3); letter-spacing: .06em; }
.heat i { width: 9px; height: 13px; display: inline-block; clip-path: polygon(50% 0, 85% 35%, 100% 65%, 80% 100%, 20% 100%, 0 65%, 15% 35%); background: rgba(244,234,219,.14); }
.heat i.on { background: linear-gradient(180deg, var(--accent-2), var(--rose)); }
.heat b { font-weight: 600; margin-left: 6px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.tags li { font-size: 11.5px; padding: 4px 9px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-3); }

/* ---------- pull quote ---------- */
.quote { text-align: center; }
.quote blockquote { margin: 0 auto; max-width: 980px; padding: clamp(28px, 5vw, 64px) var(--gutter); border-radius: 28px; background: radial-gradient(120% 140% at 50% 120%, rgba(155,92,246,.16), transparent 60%), rgba(255,255,255,.015); border: 1px solid var(--line); }
.quote p { font-style: italic; font-variation-settings: "opsz" 144, "SOFT" 80; }
.quote cite { display: block; margin-top: 24px; font-style: normal; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }
.quote cite::before { content: "— "; color: var(--accent); }

/* ---------- about ---------- */
.about { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.portrait { position: sticky; top: 110px; aspect-ratio: 4 / 5; border-radius: 28px; overflow: hidden; background: radial-gradient(90% 70% at 70% 20%, rgba(220,178,83,.35), transparent 60%), radial-gradient(70% 60% at 20% 90%, rgba(155,92,246,.38), transparent 60%), var(--surface); border: 1px solid var(--line); display: grid; place-items: center; }
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.portrait .mono { font-family: var(--serif); font-style: italic; font-size: clamp(120px, 16vw, 220px); line-height: 1; color: transparent; background: linear-gradient(135deg, var(--accent-2), var(--rose-2)); -webkit-background-clip: text; background-clip: text; font-variation-settings: "opsz" 144, "SOFT" 100; }
.portrait .mono-cap { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); }
.bio p { color: var(--ink-2); font-size: 17.5px; max-width: 60ch; }
.bio p:first-child { font-family: var(--serif); font-size: clamp(20px, 1.7vw, 24px); line-height: 1.4; color: var(--ink); font-variation-settings: "opsz" 48, "SOFT" 40; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 36px 0 0; padding-top: 28px; border-top: 1px solid var(--line); }
.facts dt { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 6px; }
.facts dd { margin: 0; font-size: 15px; color: var(--ink); }

/* ---------- newsletter ---------- */
.news-card { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 5vw, 72px); align-items: center; padding: clamp(32px, 5vw, 72px); border-radius: 32px; border: 1px solid rgba(220,178,83,.25); background: radial-gradient(90% 120% at 0% 0%, rgba(220,178,83,.18), transparent 55%), radial-gradient(70% 100% at 100% 100%, rgba(155,92,246,.2), transparent 55%), var(--surface); overflow: hidden; }
.news-form { display: grid; gap: 12px; }
.news-form input[type=email] { width: 100%; padding: 16px 20px; border-radius: 999px; border: 1px solid var(--line); background: rgba(0,0,0,.3); color: var(--ink); font: inherit; outline: none; transition: border-color .3s, box-shadow .3s; }
.news-form input[type=email]:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(220,178,83,.15); }
.news-form .btn { justify-content: center; }
.hp { position: absolute; left: -9999px; }
.form-msg { margin: 0; min-height: 1.4em; font-size: 14px; color: var(--accent-2); }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.ccard { padding: 28px; border-radius: var(--radius); border: 1px solid var(--line); background: rgba(255,255,255,.02); transition: border-color .4s, transform .5s var(--ease); }
.ccard:hover { border-color: rgba(246,234,217,.3); transform: translateY(-4px); }
.ccard h3 { margin: 0 0 8px; font-family: var(--serif); font-weight: 400; font-size: 24px; }
.ccard p { margin: 0 0 16px; color: var(--ink-3); font-size: 14.5px; }
.ccard a.mail { font-size: 17px; color: var(--accent-2); word-break: break-all; border-bottom: 1px solid rgba(220,178,83,.3); }
.ccard a.mail:hover { border-color: var(--accent-2); }
.socials { display: flex; flex-wrap: wrap; gap: 8px; }
.socials a { padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line); font-size: 13.5px; transition: border-color .3s, background .3s; }
.socials a:hover { border-color: var(--accent); background: rgba(220,178,83,.08); }

/* ---------- footer ---------- */
.footer { position: relative; z-index: 3; border-top: 1px solid var(--line); padding: 48px var(--gutter) calc(40px + env(safe-area-inset-bottom)); }
.footer-inner { max-width: var(--max); margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; color: var(--ink-3); font-size: 14px; }
.footer p { margin: 0; }

/* ---------- dialog ---------- */
.sheet { position: fixed; inset: 0; width: min(1040px, calc(100% - 32px)); max-height: calc(100% - 32px); margin: auto; padding: 0; border: 1px solid var(--line); border-radius: 28px; background: var(--bg-2); color: var(--ink); overflow: hidden; opacity: 0; transform: translateY(24px) scale(.98); transition: opacity .35s var(--ease), transform .45s var(--ease), overlay .45s allow-discrete, display .45s allow-discrete; }
.sheet[open] { opacity: 1; transform: none; }
@starting-style { .sheet[open] { opacity: 0; transform: translateY(24px) scale(.98); } }
.sheet::backdrop { background: rgba(7,4,12,.7); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.sheet-inner { display: grid; grid-template-columns: 320px 1fr; max-height: calc(100svh - 32px); }
.sheet-cover { padding: 36px; display: grid; place-items: start center; background: radial-gradient(80% 60% at 50% 30%, rgba(220,178,83,.18), transparent 70%); }
.sheet-cover img { width: 100%; max-width: 260px; border-radius: 8px; box-shadow: 0 40px 80px -24px rgba(0,0,0,.9); }
.sheet-copy { padding: 44px 44px 40px 8px; overflow: auto; overscroll-behavior: contain; }
.sheet-copy .sub { margin: 6px 0 14px; color: var(--ink-3); letter-spacing: .04em; }
.sheet-blurb { margin-top: 22px; }
.sheet-blurb p { color: var(--ink-2); max-width: 62ch; }
.sheet-blurb p:first-child { font-family: var(--serif); font-size: 21px; line-height: 1.4; color: var(--ink); font-variation-settings: "opsz" 48, "SOFT" 40; }
.sheet-close { position: absolute; top: 14px; right: 14px; z-index: 2; width: 44px; height: 44px; border-radius: 50%; font-size: 26px; line-height: 1; background: rgba(255,255,255,.06); border: 1px solid var(--line); transition: background .3s, transform .3s; }
.sheet-close:hover { background: rgba(255,255,255,.12); transform: rotate(90deg); }
body.locked { overflow: hidden; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal:nth-child(2) { transition-delay: .08s; } .reveal:nth-child(3) { transition-delay: .16s; } .reveal:nth-child(4) { transition-delay: .24s; } .reveal:nth-child(5) { transition-delay: .32s; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  body { font-size: 16px; }
  .nav { padding: 10px 16px; }
  .burger { display: block; }
  .nav-links { position: fixed; inset: 0; z-index: 1; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 8px; padding: 90px 28px 40px; background: rgba(13,9,20,.96); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); font-family: var(--serif); font-size: 40px; font-weight: 300; color: var(--ink); clip-path: circle(0 at calc(100% - 32px) 32px); transition: clip-path .7s var(--ease); pointer-events: none; }
  .nav-links.open { clip-path: circle(150% at calc(100% - 32px) 32px); pointer-events: auto; }
  .nav-links a:not(.nav-cta)::after { display: none; }
  .nav-cta { margin-top: 24px; font-family: var(--sans); font-size: 15px; font-weight: 600; }
  .hero { grid-template-columns: 1fr; padding-top: 96px; padding-bottom: 72px; gap: 8px; min-height: auto; }
  .hero-art { order: -1; height: clamp(300px, 70vw, 420px); margin: 0 calc(-1 * var(--gutter)); }
  .stack .cover { width: clamp(118px, 30vw, 170px); }
  .scroll-hint { display: none; }
  .featured { grid-template-columns: 1fr; }
  .book3d { transform: rotateY(-14deg) rotateX(2deg); width: clamp(200px, 56vw, 280px); }
  .about { grid-template-columns: 1fr; }
  .portrait { position: static; max-width: 360px; }
  .facts { grid-template-columns: 1fr; gap: 14px; }
  .news-card { grid-template-columns: 1fr; border-radius: 24px; }
  .sheet { width: 100%; max-height: 100%; inset: auto 0 0 0; border-radius: 24px 24px 0 0; transform: translateY(40px); }
  .sheet-inner { grid-template-columns: 1fr; max-height: 92svh; overflow: auto; }
  .sheet-cover { padding: 28px 28px 0; }
  .sheet-cover img { max-width: 170px; }
  .sheet-copy { padding: 24px 22px 40px; overflow: visible; }
  .sheet-blurb p:first-child { font-size: 19px; }
}
@media (max-width: 560px) {
  .grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .card { padding: 12px; gap: 10px; }
  .card h3 { font-size: 18px; }
  .card .hook, .card .tags, .card .meta { display: none; }
  .card-actions .btn { padding: 9px 12px; font-size: 12.5px; }
  .card-actions .bn { display: none; }
  .cta-row .btn { flex: 1 1 auto; justify-content: center; }
  .stores { gap: 8px 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .marquee-track { animation: none; }
}
