

:root {
  --bg: #0d1118; --bg-2: #141a24; --bg-3: #1b2230;
  --fg: #ece6da; --fg-2: #a9b0bd; --line: rgb(236 230 218 / .12);
  --seal: #b14a45; --seal-ink: #f6efe6; --page: #e9e3d6;
  --shadow: 0 24px 48px -16px rgb(0 0 0 / .65);
  --display: "Cormorant Garamond", "EB Garamond", Georgia, serif;
  --body: "Manrope", "Segoe UI", system-ui, sans-serif;
  --ease: cubic-bezier(.23, 1, .32, 1);
  --r: 6px;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) {
  --bg: #f2f1ed; --bg-2: #e8e6e0; --bg-3: #dedbd3;
  --fg: #141a26; --fg-2: #4d5566; --line: rgb(20 26 38 / .14);
  --seal: #9a3632; --seal-ink: #fbf7f1; --page: #fbf8f2;
  --shadow: 0 24px 44px -18px rgb(20 26 38 / .35);
  color-scheme: light; } }
:root[data-theme="light"] {
  --bg: #f2f1ed; --bg-2: #e8e6e0; --bg-3: #dedbd3;
  --fg: #141a26; --fg-2: #4d5566; --line: rgb(20 26 38 / .14);
  --seal: #9a3632; --seal-ink: #fbf7f1; --page: #fbf8f2;
  --shadow: 0 24px 44px -18px rgb(20 26 38 / .35);
  color-scheme: light; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 400 1rem/1.65 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--bg); }
::selection { background: var(--seal); color: var(--seal-ink); }
img { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 3px; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--seal); outline-offset: 3px; border-radius: 2px; }
.wrap { max-width: 1200px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
h1, h2, h3 { font-family: var(--display); font-weight: 500; line-height: 1.08; letter-spacing: -.01em; text-wrap: balance; margin: 0; }
h2 { font-size: clamp(2rem, 4.2vw, 3.2rem); text-transform: capitalize; font-weight: 700; -webkit-text-stroke: .012em currentColor; letter-spacing: -.015em; }
p { text-wrap: pretty; margin: 0; }
.muted { color: var(--fg-2); }
section { padding-block: clamp(64px, 9vw, 120px); }


.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1px solid var(--line); background: transparent; font-weight: 600; font-size: .95rem; text-decoration: none; cursor: pointer; transition: transform 160ms var(--ease), background-color 200ms ease, border-color 200ms ease; }
.btn:active { transform: scale(.97); }
.btn-seal { background: var(--seal); border-color: var(--seal); color: var(--seal-ink); }
@media (hover: hover) and (pointer: fine) { .btn:hover { border-color: var(--fg-2); } .btn-seal:hover { filter: brightness(1.08); border-color: var(--seal); } }


.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: color-mix(in oklab, var(--bg) 82%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.top .wrap { display: flex; align-items: center; gap: 24px; height: 72px; }
.mark { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-size: 1.45rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
.mark img { width: 40px; height: 40px; filter: drop-shadow(0 2px 4px rgb(0 0 0 / .35)); transition: transform 400ms var(--ease); }
@media (hover: hover) and (pointer: fine) { .mark:hover img { transform: rotate(-10deg) scale(1.06); } }
.nav { display: flex; gap: 26px; margin-left: auto; font-size: .92rem; }
.nav a { text-decoration: none; color: var(--fg-2); transition: color 200ms ease; }
.nav a:hover { color: var(--fg); }
.tools { display: flex; gap: 8px; }
.tool { min-width: 44px; height: 44px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: transparent; cursor: pointer; font-size: .82rem; font-weight: 600; letter-spacing: .04em; display: inline-grid; place-items: center; transition: transform 160ms var(--ease); }
.tool:active { transform: scale(.95); }
.tool svg { width: 18px; height: 18px; }
@media (max-width: 860px) { .nav { display: none; } .tools { margin-left: auto; } }


.hero { overflow: clip; padding-block: clamp(32px, 6vw, 72px) clamp(56px, 8vw, 96px); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 32px; align-items: center; }
.hero .role { font-size: .8rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--fg-2); display: flex; align-items: center; gap: 14px; }
.hero .role::before { content: ""; width: 36px; height: 1px; background: var(--seal); }
.hero h1 { margin-top: 22px; font-family: "Abril Fatface", "Playfair Display", Georgia, serif; font-weight: 400; font-size: clamp(3rem, 5.8vw, 5.6rem); line-height: 1; letter-spacing: -.01em; white-space: nowrap; }
.hero h1 .w { display: block; clip-path: inset(-1em -1em -.55em -1em); padding-bottom: .1em; }
.hero h1 .w > span { display: inline-block; animation: lift 1100ms var(--ease) both, glowtext 6s ease-in-out 1.4s infinite; text-shadow: 0 0 .22em color-mix(in oklab, var(--fg-2) 45%, transparent), 0 0 .6em color-mix(in oklab, var(--fg-2) 25%, transparent); }
.hero h1 .w:nth-child(2) > span { animation-delay: 140ms, 2s; }
@keyframes glowtext { 0%, 100% { text-shadow: 0 0 .22em color-mix(in oklab, var(--fg-2) 40%, transparent), 0 0 .6em color-mix(in oklab, var(--fg-2) 20%, transparent); } 50% { text-shadow: 0 0 .3em color-mix(in oklab, var(--fg-2) 70%, transparent), 0 0 .9em color-mix(in oklab, var(--fg-2) 45%, transparent); } }
@keyframes lift { from { transform: translateY(105%); } }
.hero .lede, .hero .ctas, .hero .count { animation: fade 900ms 450ms var(--ease) both; }
@keyframes fade { from { opacity: 0; transform: translateY(10px); } }
.hero .lede { font-size: clamp(1.05rem, 1.6vw, 1.22rem); max-width: 34ch; margin-top: 22px; color: var(--fg-2); }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero .count { margin-top: 36px; display: flex; gap: 32px; font-size: .9rem; color: var(--fg-2); }
.hero .count b { display: block; font-family: var(--display); font-size: 2.2rem; font-weight: 500; color: var(--fg); line-height: 1; font-variant-numeric: tabular-nums; }


.flow { position: relative; display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.stage { position: relative; height: clamp(340px, 40vw, 480px); perspective: 1200px; touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none; outline: none; }
.stage.dragging { cursor: grabbing; }
.stage .slot { position: absolute; left: 50%; top: 50%; width: clamp(170px, 18vw, 230px); aspect-ratio: 2 / 3; margin: 0; padding: 0; border: 0; background: none; cursor: pointer; transform-style: preserve-3d; transition: transform 800ms var(--ease), opacity 600ms ease, filter 600ms ease; will-change: transform; }
.stage.dragging .slot { transition: none; }
.stage .slot img { width: 100%; height: 100%; object-fit: cover; border-radius: 2px 5px 5px 2px; box-shadow: var(--shadow); -webkit-box-reflect: below 6px linear-gradient(transparent 70%, rgb(255 255 255 / .12)); pointer-events: none; }
.stage .slot::after { content: ""; position: absolute; inset: 0 auto 0 0; width: 10px; border-radius: 2px 0 0 2px; background: linear-gradient(90deg, rgb(0 0 0 / .35), transparent); }
.stage .slot.side img { filter: brightness(.55) saturate(.8); }
.flow .caption { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 16px; padding-top: 18px; border-top: 1px solid var(--line); }
.flow .caption .info { min-width: 0; }
.flow .caption .t { font-family: var(--display); font-size: 1.3rem; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: opacity 250ms ease; }
.flow .caption .n { font-size: .8rem; color: var(--fg-2); font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.arrow { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: transparent; display: grid; place-items: center; cursor: pointer; transition: transform 160ms var(--ease), border-color 200ms ease; }
.arrow:active { transform: scale(.94); }
.arrow svg { width: 18px; height: 18px; }
@media (hover: hover) and (pointer: fine) { .arrow:hover { border-color: var(--fg-2); } }
.progress { height: 1px; background: var(--line); overflow: hidden; }
.progress i { display: block; height: 100%; width: 100%; background: var(--fg-2); transform-origin: left; transform: scaleX(0); }
.progress i.run { animation: fill 3.5s linear forwards; }
@keyframes fill { to { transform: scaleX(1); } }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: minmax(0, 1fr); } .stage { height: 330px; } }


.book { --w: 220px; --d: 26px; position: relative; width: var(--w); aspect-ratio: 1 / var(--ratio, 1.5); transform-style: preserve-3d; transform: rotateY(-28deg) rotateX(4deg); transition: transform 700ms var(--ease); }
.book > * { position: absolute; }
.book .front { inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 1px 4px 4px 1px; transform: translateZ(calc(var(--d) / 2)); box-shadow: inset 4px 0 8px rgb(0 0 0 / .25); }
.book .spine { top: 0; left: 0; width: var(--d); height: 100%; background: linear-gradient(90deg, rgb(0 0 0 / .35), rgb(255 255 255 / .08) 40%, rgb(0 0 0 / .2)), var(--spine, #333); transform: rotateY(-90deg) translateZ(calc(var(--d) / 2)); transform-origin: center; left: calc(var(--d) / -2); }
.book .pages { top: 2%; right: 0; width: var(--d); height: 96%; background: repeating-linear-gradient(90deg, var(--page) 0 2px, color-mix(in oklab, var(--page) 80%, #000) 2px 3px); transform: rotateY(90deg) translateZ(calc(var(--w) - var(--d) / 2)); transform-origin: left; right: auto; left: calc(var(--d) / -2); }
.book .back { inset: 0; background: var(--spine, #333); transform: translateZ(calc(var(--d) / -2)) rotateY(180deg); border-radius: 4px 1px 1px 4px; }
.book-shadow { filter: drop-shadow(0 30px 40px rgb(0 0 0 / .5)); }


.featured .wrap { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.featured .holder { display: grid; place-items: center; perspective: 1600px; padding: 24px 0; }
.featured .book { --w: clamp(200px, 26vw, 300px); --d: 30px; }
@media (hover: hover) and (pointer: fine) { .featured .holder:hover .book { transform: rotateY(-8deg) rotateX(2deg); } }
.featured .label { font-size: .85rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--seal); }
.featured h2 { margin-top: 14px; font-size: clamp(2.2rem, 4.6vw, 3.6rem); }
.featured .sub { margin-top: 18px; font-family: var(--display); font-style: italic; font-size: clamp(1.25rem, 2vw, 1.55rem); line-height: 1.35; color: var(--fg-2); max-width: 36ch; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: transparent; font-size: .85rem; display: inline-flex; align-items: center; cursor: pointer; transition: background-color 200ms ease, color 200ms ease, transform 160ms var(--ease); }
.chip:active { transform: scale(.96); }
.chip[aria-pressed="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.featured .chips { margin-top: 26px; }
.price { margin-top: 26px; font-size: .95rem; color: var(--fg-2); }
.price b { color: var(--fg); font-variant-numeric: tabular-nums; }
.featured .ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
@media (max-width: 860px) { .featured .wrap { grid-template-columns: minmax(0, 1fr); } }


.quote { background: var(--bg-2); }
.quotes { margin: 0 auto; max-width: 900px; min-height: clamp(260px, 30vw, 330px); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; transition: opacity 600ms var(--ease), filter 600ms var(--ease), transform 600ms var(--ease); }
.quotes.out { opacity: 0; filter: blur(10px); transform: translateY(8px); }
.quotes blockquote { margin: 0; max-width: 24ch; font-family: var(--display); font-weight: 500; font-size: clamp(2rem, 4.6vw, 3.8rem); line-height: 1.1; text-wrap: balance; }
.quotes blockquote em { color: var(--seal); }
.quotes figcaption { margin-top: 22px; color: var(--fg-2); font-size: .95rem; }
.qdots { display: flex; justify-content: center; gap: 4px; margin-top: 28px; }
.qdots button { width: 44px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.qdots button::before { content: ""; width: 24px; height: 2px; border-radius: 2px; background: var(--line); transition: background-color 300ms ease, width 300ms var(--ease); }
.qdots button[aria-current="true"]::before { width: 36px; background: var(--seal); }
@media (prefers-reduced-motion: reduce) { .quotes { transition: none; } }


.head { display: flex; flex-direction: column; gap: 10px; margin-bottom: 40px; max-width: 60ch; }
.shelf { display: flex; gap: clamp(20px, 3vw, 40px); align-items: flex-end; padding: 8px 4px 0; border-bottom: 10px solid var(--bg-3); box-shadow: 0 14px 20px -14px rgb(0 0 0 / .5); overflow-x: auto; scrollbar-width: thin; }
.shelf .item { flex: 0 0 auto; width: clamp(130px, 15vw, 170px); padding: 0; border: 0; background: none; text-align: left; cursor: pointer; perspective: 900px; padding-bottom: 14px; }
.shelf .book { --w: clamp(130px, 15vw, 170px); --d: 18px; transform: rotateY(-18deg); }
@media (hover: hover) and (pointer: fine) { .shelf .item:hover .book { transform: rotateY(0) translateY(-8px); } }
.picks .shelf .item { width: clamp(150px, 20vw, 220px); }
.picks .shelf .book { --w: clamp(150px, 20vw, 220px); --d: 22px; }


.series { background: var(--bg-2); }
.series .wrap { display: block; }
.series-shelf { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); }
.series-group h3 { font-family: var(--body); font-size: .8rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--fg-2); margin-bottom: 22px; display: flex; align-items: center; gap: 12px; }
.series-group h3::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.series-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 2vw, 24px); }
.vol { padding: 0; border: 0; background: none; cursor: pointer; text-align: left; display: flex; flex-direction: column; gap: 12px; perspective: 900px; }
.vol .book { --w: 100%; --d: 16px; width: 100%; transform: rotateY(-14deg); }
.vol .num { font-size: .75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--seal); }
.vol .t { font-family: var(--display); font-size: 1.15rem; line-height: 1.2; margin-top: -6px; }
.vol .cta { font-size: .82rem; color: var(--fg-2); text-decoration: underline; text-underline-offset: 3px; }
@media (hover: hover) and (pointer: fine) { .vol:hover .book { transform: rotateY(0) translateY(-8px); } .vol:hover .cta { color: var(--fg); } }
@media (max-width: 860px) { .series-shelf { grid-template-columns: minmax(0, 1fr); } }


.themes ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; border-top: 1px solid var(--line); }
.themes li { border-bottom: 1px solid var(--line); }
.themes li button { width: 100%; display: flex; align-items: center; gap: 16px; padding: 22px 0; background: none; border: 0; cursor: pointer; text-align: left; }
.themes .name { font-family: var(--display); font-size: clamp(1.6rem, 2.6vw, 2.2rem); line-height: 1.1; flex: 1; transition: color 200ms ease; }
.themes .n { color: var(--fg-2); font-size: .9rem; font-variant-numeric: tabular-nums; }
.fan { display: flex; }
.fan img { width: 34px; height: 51px; object-fit: cover; border-radius: 2px; margin-left: -14px; box-shadow: 0 4px 10px rgb(0 0 0 / .4); transition: transform 300ms var(--ease); }
@media (hover: hover) and (pointer: fine) { .themes li button:hover .name { color: var(--seal); } .themes li button:hover .fan img:nth-child(1) { transform: rotate(-8deg) translateX(-6px); } .themes li button:hover .fan img:nth-child(3) { transform: rotate(8deg) translateX(6px); } }
@media (max-width: 760px) { .themes ul { grid-template-columns: minmax(0, 1fr); } }


.filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 18px; }
.search { flex: 1 1 260px; display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 18px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg-2); }
.search input { flex: 1; min-width: 0; border: 0; background: transparent; outline: none; font-size: 1rem; caret-color: var(--seal); }
.search svg { width: 18px; height: 18px; color: var(--fg-2); flex: none; }
.filters select { min-height: 48px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg-2); }
.lib .chips { margin-bottom: 32px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 40px 24px; }
.card { padding: 0; border: 0; background: none; text-align: left; cursor: pointer; display: flex; flex-direction: column; gap: 12px; }
.card .cv { position: relative; aspect-ratio: 2 / 3; border-radius: 2px 4px 4px 2px; overflow: hidden; box-shadow: var(--shadow); transition: transform 400ms var(--ease); }
.card .cv::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 8px; background: linear-gradient(90deg, rgb(0 0 0 / .3), transparent); z-index: 1; }
.card img { width: 100%; height: 100%; object-fit: cover; }
.card .t { font-family: var(--display); font-size: 1.12rem; line-height: 1.2; font-weight: 600; }
.card .m { font-size: .8rem; color: var(--fg-2); margin-top: -6px; }
@media (hover: hover) and (pointer: fine) { .card:hover .cv { transform: translateY(-6px) rotate(-1deg); } }
.empty { padding: 48px 0; color: var(--fg-2); }
@media (max-width: 480px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 16px; } }


.about .wrap { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.about figure { margin: 0; position: sticky; top: 100px; }
.about figure img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 20%; border-radius: var(--r); }
.about .bio { display: flex; flex-direction: column; gap: 18px; font-size: 1.06rem; max-width: 62ch; }
.about .bio p:first-of-type { font-family: var(--display); font-size: clamp(1.4rem, 2.2vw, 1.75rem); line-height: 1.35; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 18px; padding-top: 24px; border-top: 1px solid var(--line); }
.facts b { display: block; font-family: var(--display); font-size: 2.4rem; font-weight: 500; line-height: 1; font-variant-numeric: tabular-nums; }
.facts span { font-size: .85rem; color: var(--fg-2); }
@media (max-width: 860px) { .about .wrap { grid-template-columns: minmax(0, 1fr); } .about figure { position: static; max-width: 420px; } }


footer { border-top: 1px solid var(--line); padding-block: 48px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: center; justify-content: space-between; font-size: .9rem; color: var(--fg-2); }


.totop { position: fixed; right: calc(20px + env(safe-area-inset-right, 0px)); bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 25; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: var(--bg-2); display: grid; place-items: center; cursor: pointer; opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity 250ms ease, transform 250ms var(--ease); box-shadow: var(--shadow); }
.totop.on { opacity: 1; transform: none; pointer-events: auto; }
.totop svg { width: 20px; height: 20px; }


dialog { width: min(980px, calc(100% - 32px)); max-height: calc(100dvh - 32px); padding: 0; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--fg); box-shadow: 0 40px 80px rgb(0 0 0 / .5); overflow: auto; }
dialog::backdrop { background: rgb(5 7 12 / .7); backdrop-filter: blur(4px); }
dialog[open] { animation: rise 320ms var(--ease); }
@keyframes rise { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.sheet { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 32px; padding: clamp(24px, 4vw, 48px); }
.sheet .holder { display: grid; place-items: center; perspective: 1600px; background: var(--bg-2); border-radius: var(--r); padding: 40px 16px; min-height: 380px; touch-action: pan-y; cursor: grab; }
.sheet .book { --w: clamp(170px, 22vw, 240px); --d: 28px; }
.sheet h3 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
.sheet .sub { margin-top: 12px; font-family: var(--display); font-style: italic; font-size: 1.3rem; line-height: 1.35; color: var(--fg-2); }
.sheet .desc { margin-top: 18px; display: flex; flex-direction: column; gap: 12px; font-size: .98rem; max-height: 14em; overflow: auto; padding: 0 6px 1.5em 0; -webkit-mask-image: linear-gradient(to bottom, #000 80%, transparent); mask-image: linear-gradient(to bottom, #000 80%, transparent); }
.featured .fdesc { margin-top: 18px; max-width: 52ch; color: var(--fg-2); display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.sheet dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px 20px; margin: 26px 0 0; font-size: .92rem; }
.sheet dt { color: var(--fg-2); }
.sheet dd { margin: 0; }
.sheet .ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.sheet .more { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 24px; }
.sheet .more h4 { margin: 0 0 16px; font-size: .9rem; font-weight: 600; color: var(--fg-2); }
.sheet .more .row { display: flex; gap: 16px; overflow-x: auto; padding-bottom: 6px; }
.sheet .more button { flex: 0 0 auto; width: 92px; padding: 0; border: 0; background: none; cursor: pointer; }
.sheet .more img { width: 92px; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 2px; box-shadow: 0 8px 16px rgb(0 0 0 / .35); }
.close { position: sticky; top: 12px; float: right; margin: 12px 12px -56px 0; z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--bg-2); cursor: pointer; display: grid; place-items: center; }
.close svg { width: 18px; height: 18px; }
@media (max-width: 760px) { .sheet { grid-template-columns: minmax(0, 1fr); } .sheet .holder { min-height: 320px; } }


.js .reveal { opacity: 0; filter: blur(10px); transform: translateY(18px); transition: opacity 900ms var(--ease), filter 900ms var(--ease), transform 900ms var(--ease); }
.js .reveal.in { opacity: 1; filter: none; transform: none; }

.swap { transition: opacity 220ms ease, filter 220ms ease; }
.swap.out { opacity: 0; filter: blur(6px); }

.drum { display: inline-flex; overflow: hidden; height: 1.2em; line-height: 1.2; vertical-align: bottom; }
.drum > span { display: flex; flex-direction: column; transition: transform 1400ms var(--ease); }
.drum > span > span { height: 1.2em; }

.card .cv, .stage .slot img, .shelf .book .front { background: var(--bg-3); }

.menu-btn { display: none; }
.menu { position: absolute; top: calc(100% - 6px); right: max(16px, env(safe-area-inset-right, 0px)); width: min(280px, calc(100vw - 32px)); padding: 8px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-2); box-shadow: var(--shadow); transform-origin: top right; transition: opacity 200ms var(--ease), transform 200ms var(--ease), filter 200ms ease, visibility 0s 200ms; opacity: 0; transform: scale(.96) translateY(-4px); filter: blur(4px); visibility: hidden; }
.menu.open { opacity: 1; transform: none; filter: none; visibility: visible; transition-delay: 0s; }
.menu a { display: flex; align-items: center; min-height: 48px; padding: 0 14px; border-radius: 8px; text-decoration: none; font-size: 1.05rem; }
.menu a:active { background: var(--bg-3); }
@media (max-width: 860px) { .menu-btn { display: inline-grid; } }

dialog.closing { animation: sink 180ms var(--ease) forwards; }
dialog.closing::backdrop { opacity: 0; transition: opacity 180ms ease; }
@keyframes sink { to { opacity: 0; transform: translateY(10px) scale(.98); } }

.lib .chips + .grid { margin-top: 0; }

h2.deco { line-height: 1.32; }
h2.deco .hl { background: linear-gradient(var(--seal), var(--seal)) no-repeat 0 100% / 0% 3px; padding-bottom: .1em; transition: background-size 1200ms var(--ease) 200ms; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
h2.deco.drawn .hl { background-size: 100% 3px; }

.readbar { position: fixed; top: env(safe-area-inset-top, 0px); left: 0; right: 0; height: 3px; z-index: 30; pointer-events: none; }
.readbar i { display: block; height: 100%; background: var(--seal); transform-origin: left; transform: scaleX(0); }

.totop { background: var(--bg-2); color: var(--fg); }
.totop .ring { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); transform: rotate(-90deg); }
.totop .ring circle { fill: none; stroke-width: 2; }
.totop .ring .track { stroke: var(--line); }
.totop .ring .bar { stroke: var(--seal); stroke-linecap: round; }
@media (hover: hover) and (pointer: fine) { .totop:hover { color: var(--seal); } }
.totop:active { transform: scale(.94); }

.hero h1 { position: relative; isolation: isolate; }

.hero h1 .seal { display: inline-block; width: .95em; height: .95em; margin-left: .22em; vertical-align: -.08em; filter: drop-shadow(0 .06em .1em rgb(0 0 0 / .45)); animation: stamp 700ms cubic-bezier(.2, 1.4, .4, 1) 1.1s both; }
@keyframes stamp { 0% { opacity: 0; transform: scale(1.8) rotate(-30deg); filter: blur(4px) drop-shadow(0 0 0 transparent); } 70% { opacity: 1; filter: none; } 100% { opacity: 1; transform: scale(1) rotate(-8deg); } }
@media (max-width: 480px) { .mark { font-size: 1.25rem; } .mark img { width: 34px; height: 34px; } }

.portrait .frame { position: relative; overflow: hidden; border-radius: var(--r); aspect-ratio: 4 / 5; background: var(--bg-2); clip-path: inset(var(--cut, 0%) 0 0 0 round var(--r)); }
.portrait .frame img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; border-radius: 0; aspect-ratio: auto; transform: scale(var(--zoom, 1)); transform-origin: center 30%; transition: opacity 900ms var(--ease), filter 1100ms var(--ease); }
.portrait.loading .frame img { opacity: 0; filter: blur(18px) saturate(.6); }
.portrait .frame::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(100deg, transparent 30%, color-mix(in oklab, var(--fg) 9%, transparent) 50%, transparent 70%) 0 0 / 250% 100%; opacity: 0; transition: opacity 500ms ease; }
.portrait.loading .frame::before { opacity: 1; animation: shimmer 1.4s linear infinite; }
.portrait .frame::after { content: ""; position: absolute; left: 0; right: 0; top: var(--cut, 0%); height: 2px; z-index: 2; background: var(--seal); opacity: var(--edge, 0); box-shadow: 0 0 12px var(--seal); transition: opacity 300ms ease; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }
@media (max-width: 860px) { .portrait .frame { aspect-ratio: 1 / 1; } }

.contact { background: var(--bg-2); }
.contact-card { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 40px; padding: clamp(24px, 4vw, 40px); border: 1px solid var(--line); border-radius: 12px; background: var(--bg); }
.clabel { display: block; font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-2); margin-bottom: 8px; }
.email { font-family: var(--display); font-size: clamp(1.5rem, 3.4vw, 2.3rem); font-weight: 600; text-decoration: none; word-break: break-all; transition: color 200ms ease; }
@media (hover: hover) and (pointer: fine) { .email:hover { color: var(--seal); } }
.cbtns { display: flex; flex-wrap: wrap; gap: 12px; }
.copied { flex-basis: 100%; margin: -8px 0 0; min-height: 1.4em; font-size: .9rem; color: var(--fg-2); }
.closer { border-top: 1px solid var(--line); text-align: center; }
.closer h2 { max-width: 18ch; margin: 0 auto; }
.closer p { margin: 18px auto 0; max-width: 46ch; color: var(--fg-2); }
.closer .ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }


.more-btn { display: flex; justify-content: center; margin-top: 40px; }
.shelf { scroll-snap-type: x mandatory; scroll-padding-inline: 4px; }
.shelf .item { scroll-snap-align: start; }
footer a { display: inline-flex; align-items: center; min-height: 44px; }
footer .social { gap: 8px; text-decoration: none; margin-right: auto; color: var(--fg); }
footer .social svg { width: 20px; height: 20px; }
@media (hover: hover) and (pointer: fine) { footer .social:hover { color: var(--seal); } }
.about .follow { margin-top: 28px; }
@media (pointer: coarse) { .chip { min-height: 44px; padding: 0 16px; } }
@media (max-width: 860px) {
  .hero .count { display: none; }
  .hero .ctas { margin-top: 26px; }
  .hero .flow { margin-top: 8px; }
  .quotes { min-height: 230px; }
  .quote { padding-block: 56px; }
  section { padding-block: 64px; }
  .head { margin-bottom: 28px; }
  .shelf { margin-inline: calc(-1 * max(16px, env(safe-area-inset-left, 0px))); padding-inline: max(16px, env(safe-area-inset-left, 0px)); scrollbar-width: none; }
  .shelf::-webkit-scrollbar { display: none; }
  .about figure img { aspect-ratio: 1 / 1; object-position: center 22%; }
  .lib .chips { flex-wrap: nowrap; overflow-x: auto; margin-inline: -16px; padding-inline: 16px; scrollbar-width: none; }
  .lib .chips::-webkit-scrollbar { display: none; }
  .lib .chips .chip { flex: none; }
  .filters select { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; filter: none; transform: none; transition: none; }
  .swap, .drum > span, .menu, h2.deco .hl { transition: none; }
  .hero h1 .w > span, .hero h1 .seal { animation: none; }
  .hero h1 .seal { transform: rotate(-8deg); }
  dialog.closing { animation: none; }
  html { scroll-behavior: auto; }
  .ring { animation: none; }
  .book, .card .cv, .shelf .book { transition: none; }
  dialog[open], .hero h1 .w > span, .hero .lede, .hero .ctas, .hero .count { animation: none; }
  .stage .slot { transition: none; }
}
