
:root {
  --slate-0: #0b0d0f;
  --slate-1: #1a1e22;
  --slate-2: #2c3238;
  --line: #3a4148;
  --silver: #dfe3e6;
  --silver-2: #b9c0c6;
  --muted: #8e979f;
  --display: "Cormorant Garamond", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --body: "Spectral", "Palatino Linotype", Palatino, Georgia, serif;
  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' seed='7'/%3E%3CfeColorMatrix values='0 0 0 0 .62 0 0 0 0 .66 0 0 0 0 .7 0 0 0 .6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  box-sizing: border-box;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
*, *::before, *::after { box-sizing: inherit; }
html { scroll-behavior: smooth; scroll-padding-top: calc(env(safe-area-inset-top, 0px) + 84px); }
body {
  margin: 0;
  font-family: var(--body); font-weight: 300; font-size: 18px; line-height: 1.7;
  color: var(--silver-2);
  background:
    radial-gradient(ellipse 90% 50% at 45% -8%, #4a525a 0%, transparent 60%),
    var(--slate-1);
  -webkit-font-smoothing: antialiased;
}
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; opacity: .22; background-image: var(--noise); z-index: 0; }
a { color: var(--silver); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 1px solid var(--silver); outline-offset: 4px; }
img { max-width: 100%; height: auto; display: block; }

/* header */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 10;
  padding: calc(env(safe-area-inset-top, 0px) + 14px) clamp(18px, 4vw, 48px) 14px;
  display: flex; align-items: center; gap: 14px;
  background: linear-gradient(to bottom, rgba(20,23,26,.92), rgba(20,23,26,.0));
}
.site-header.scrolled { background: rgba(20,23,26,.94); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.home-mark { width: 44px; height: 44px; display: block; flex: none; }
.home-mark svg { width: 100%; height: 100%; display: block; }
.wordmark { font-family: var(--display); font-weight: 600; letter-spacing: .16em; font-size: 15px; color: var(--silver); text-decoration: none; white-space: nowrap; }
.intro-pending .home-mark, .intro-pending .wordmark { opacity: 0; }
.home-mark, .wordmark { transition: opacity .5s ease; }

.reel { padding: 92px 0 26px; }
.reel-head { max-width: 1200px; margin: 0 auto 14px; padding: 0 22px; font-family: var(--display); letter-spacing: .32em; text-transform: uppercase; font-size: 13px; color: var(--muted); }
.reel-row { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px max(22px, calc((100vw - 1200px) / 2)) 14px; scrollbar-width: none; }
.reel-row::-webkit-scrollbar { display: none; }
.reel-card { position: relative; flex: 0 0 clamp(150px, 18vw, 226px); aspect-ratio: 9 / 16; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; padding: 0; background: #000; cursor: pointer; scroll-snap-align: start; transition: transform .35s ease, border-color .35s ease; }
.reel-card:hover { transform: translateY(-4px); border-color: var(--silver-2); }
.reel-card video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.reel-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(0,0,0,.88)); }
.reel-badge { position: absolute; z-index: 2; top: 10px; left: 10px; font: 600 10px/1 system-ui, sans-serif; letter-spacing: .14em; text-transform: uppercase; color: #fff; background: rgba(150,20,30,.85); padding: 6px 8px; border-radius: 3px; }
.reel-title { position: absolute; z-index: 2; left: 12px; right: 12px; bottom: 14px; text-align: left; font-family: var(--display); font-size: clamp(16px, 1.6vw, 21px); line-height: 1.15; color: #fff; }
.reel-play { position: absolute; z-index: 2; right: 12px; top: 10px; width: 30px; height: 30px; border-radius: 50%; border: 1px solid rgba(255,255,255,.7); color: #fff; font-size: 11px; display: grid; place-items: center; }
@media (max-width: 600px) { .reel-play { display: none; } .reel-badge { font-size: 9px; letter-spacing: .1em; padding: 5px 6px; right: 10px; width: max-content; max-width: calc(100% - 20px); } }
.edition-note { font-size: .92em; color: var(--muted); font-style: italic; margin: .2em 0 .6em; }
.project .logline, .wt-text .logline { margin: .8em 0; line-height: 1.6; }
.proj-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 1em; }
.webtoon .wt-grid { display: grid; grid-template-columns: minmax(200px, 300px) 1fr; gap: 36px; align-items: start; max-width: 1000px; margin: 0 auto; }
.wt-video { position: relative; aspect-ratio: 9/16; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; padding: 0; cursor: pointer; background: #000; }
.wt-video img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 760px) { .webtoon .wt-grid { grid-template-columns: 1fr; } .wt-video { max-width: 320px; margin: 0 auto; } }
.reel-lb { position: fixed; inset: 0; z-index: 1000; background: rgba(0,0,0,.94); display: grid; place-items: center; padding: env(safe-area-inset-top, 0px) 0 env(safe-area-inset-bottom, 0px); }
.reel-lb[hidden] { display: none; }
.reel-lb video { max-width: 100vw; max-height: 92vh; aspect-ratio: 9 / 16; background: #000; }
.reel-x { position: absolute; top: calc(10px + env(safe-area-inset-top, 0px)); right: 14px; font-size: 34px; color: #fff; background: none; border: 0; cursor: pointer; }

.site-nav { margin-left: auto; display: flex; align-items: center; gap: clamp(14px, 2.4vw, 30px); }
.site-nav a { color: var(--silver-2); text-decoration: none; font-size: 15px; }
.site-nav a:hover { color: #fff; }
.lang { font-family: var(--display); font-weight: 600; letter-spacing: .08em; border: 1px solid var(--line); border-radius: 2px; padding: 2px 9px; }
@media (max-width: 760px) {
  .site-nav .navlink { display: none; }
  .wordmark { font-size: 13px; }
}

main { position: relative; z-index: 1; }
.wrap { width: min(1080px, 100% - 2 * clamp(20px, 5vw, 56px)); margin-inline: auto; }
section { padding-block: clamp(64px, 10vw, 120px); }
h2 {
  font-family: var(--display); font-weight: 500; color: var(--silver);
  font-size: clamp(34px, 5vw, 52px); line-height: 1.1; margin: 0 0 clamp(36px, 5vw, 60px);
}
h3 { font-family: var(--display); font-weight: 600; color: var(--silver); font-size: clamp(26px, 3.2vw, 34px); line-height: 1.15; margin: 0 0 6px; }
.genre { font-style: italic; color: var(--muted); margin: 0 0 18px; font-size: 16px; }
.tagline { font-family: var(--display); font-style: italic; font-size: clamp(21px, 2.4vw, 25px); color: var(--silver); line-height: 1.35; margin: 0 0 22px; }
p { margin: 0 0 1em; max-width: 36em; }

/* featured */
.featured { min-height: 100svh; display: flex; align-items: center; padding-top: calc(env(safe-area-inset-top, 0px) + 100px); }
.featured .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.featured .cover { max-height: 78svh; width: auto; margin-inline: auto; box-shadow: 0 30px 80px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.06); }
.featured h1 { font-family: var(--display); font-weight: 500; color: #fff; font-size: clamp(40px, 6vw, 72px); line-height: 1.02; margin: 0 0 14px; }
.featured .tagline { font-size: clamp(23px, 2.8vw, 30px); }
.status { display: inline-block; font-family: var(--display); font-weight: 600; letter-spacing: .1em; color: var(--silver); border: 1px solid var(--line); padding: 4px 14px; margin-top: 8px; }
@media (max-width: 760px) {
  .featured .wrap { grid-template-columns: 1fr; }
  .featured .cover { width: min(300px, 78vw); margin-inline: auto; }
  .featured { min-height: 0; }
}

/* books */
.book { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.book + .book { margin-top: clamp(64px, 9vw, 110px); }
.book .cover { box-shadow: 0 20px 50px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.05); }
.rating { font-size: 15px; color: var(--muted); margin: -8px 0 18px; }
details { margin: 4px 0 22px; }
summary { cursor: pointer; color: var(--silver); list-style: none; display: inline-flex; align-items: center; gap: 10px; font-size: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; width: 7px; height: 7px; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: rotate(45deg) translateY(-3px); transition: transform .25s; }
details[open] summary::after { transform: rotate(-135deg) translateY(-1px); }
details[open] summary { margin-bottom: 14px; }
.buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-block; text-decoration: none; color: var(--slate-0); font-weight: 400; font-size: 16px;
  padding: 10px 22px; border-radius: 2px;
  background: linear-gradient(180deg, #f4f6f8 0%, #b9c0c6 55%, #e6eaed 100%);
  box-shadow: 0 1px 0 rgba(255,255,255,.5) inset, 0 6px 18px rgba(0,0,0,.35);
}
.btn:hover { filter: brightness(1.07); }
@media (max-width: 760px) {
  .book { grid-template-columns: 1fr; }
  .book .cover { width: min(240px, 64vw); }
}

/* screen */
.screen { background: rgba(0,0,0,.18); }
.lead { color: var(--muted); font-style: italic; margin: -36px 0 48px; }
.project + .project { margin-top: 56px; }
.project .alt { font-style: italic; color: var(--muted); margin: 0 0 18px; }
dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 28px; margin: 0; }
dt { color: var(--silver); font-family: var(--display); font-weight: 600; font-size: 19px; }
dd { margin: 0; }
.cta { margin-top: 48px; }
@media (max-width: 560px) { dl { grid-template-columns: 1fr; gap: 0; } dd { margin-bottom: 10px; } }

/* about / contact */
.about p { font-size: 20px; }
.mail { font-family: var(--display); font-size: clamp(26px, 4vw, 38px); color: #fff; text-decoration: none; border-bottom: 1px solid var(--line); }
.mail:hover { border-color: var(--silver); }
.btn.ghost.msg::before { display: none; }
.btn.ghost.msg { text-decoration: none; }
footer { position: relative; z-index: 1; padding: 40px 0 calc(40px + env(safe-area-inset-bottom, 0px)); color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }

/* ---------- intro overlay ---------- */
.intro {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center;
  background:
    radial-gradient(ellipse 90% 60% at 45% -10%, #4a525a 0%, transparent 60%),
    radial-gradient(ellipse at 50% 120%, #000 0%, transparent 60%),
    var(--slate-1);
  cursor: pointer;
  transition: opacity .6s ease;
}
.intro::before { content: ""; position: absolute; inset: 0; opacity: .22; background-image: var(--noise); }
.intro.done { opacity: 0; pointer-events: none; }
.intro .logo { width: min(94vw, 760px, 150vh); height: auto; overflow: visible; position: relative; }
.skip {
  position: absolute; bottom: calc(env(safe-area-inset-bottom, 0px) + 22px); left: 50%; transform: translateX(-50%);
  font: italic 14px var(--serif); color: var(--muted); background: none; border: 0; cursor: pointer;
  opacity: 0; animation: fadeIn .6s 1.2s forwards;
}
.skip:focus-visible { outline: 1px solid var(--silver); outline-offset: 4px; }

/* line drawing */
.intro .lines path { stroke-dasharray: 0 2; stroke-dashoffset: -.5; animation: draw 1.7s cubic-bezier(.6,.05,.3,1) forwards; }
.intro .rays { opacity: 0; animation: fadeTo55 1s .9s forwards; }
/* iris */
.intro .irisGroup { opacity: 0; transform: scale(.6); transform-box: fill-box; transform-origin: center; animation: irisIn .9s 1.15s cubic-bezier(.2,.7,.2,1) forwards; }
/* letters */
.intro .ltr { opacity: 0; animation: fadeIn .55s forwards; }
.intro .opus .ltr { animation-delay: calc(1.75s + var(--i) * .08s); }
.intro .orig .ltr { animation-delay: calc(1.95s + var(--i) * .05s); }
/* sheen */
.intro .sheen { transform: translateX(-560px) skewX(-20deg); animation: sheen 1.1s 2.55s ease-in-out forwards; }

@keyframes draw { to { stroke-dasharray: 1 2; stroke-dashoffset: 0; } }
@keyframes fadeIn { to { opacity: 1; } }
@keyframes fadeTo55 { to { opacity: .55; } }
@keyframes irisIn { to { opacity: 1; transform: scale(1); } }
@keyframes sheen { to { transform: translateX(560px) skewX(-20deg); } }

/* skipped / finished state: everything shown */
.intro.instant .lines path { animation: none; stroke-dasharray: none; stroke-dashoffset: 0; }
.intro.instant .rays { animation: none; opacity: .55; }
.intro.instant .irisGroup { animation: none; opacity: 1; transform: none; }
.intro.instant .ltr { animation: none; opacity: 1; }
.intro.instant .sheen { display: none; }
.intro.flying .lines, .intro.flying .words, .intro.flying .sheenWrap { opacity: 0; transition: opacity .35s ease; }

@media (prefers-reduced-motion: reduce) {
  .intro { display: none; }
  .intro-pending .home-mark, .intro-pending .wordmark { opacity: 1; }
}


/* ---------- book trailers ---------- */
.t-video { position: absolute; inset: 0; display: grid; place-items: center; padding: 72px 0 24px; }
.t-video video { width: min(92vw, calc((100vh - 96px) * 9 / 16)); width: min(92vw, calc((100svh - 96px) * 9 / 16)); height: auto; aspect-ratio: 9 / 16; background: #000; box-shadow: 0 30px 80px rgba(0,0,0,.7); cursor: pointer; }
.btn.ghost { background: none; color: var(--silver); border: 1px solid var(--line); box-shadow: none; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font: inherit; font-size: 16px; }
.btn.ghost::before { content: ""; width: 0; height: 0; border-left: 9px solid currentColor; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.btn.ghost:hover { border-color: var(--silver); filter: none; }
.trailer { position: fixed; inset: 0; z-index: 200; background: #050607; color: #fff; opacity: 0; transition: opacity .45s ease; overflow: hidden; }
.trailer.on { opacity: 1; }
.trailer[hidden] { display: none; }
.trailer::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 70% 55% at 50% 50%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%); opacity: .55; pointer-events: none; }
.t-ctrl { position: absolute; top: calc(env(safe-area-inset-top, 0px) + 18px); z-index: 3; background: none; border: 1px solid rgba(255,255,255,.25); color: #ddd; font: 15px var(--body); padding: 6px 14px; border-radius: 2px; cursor: pointer; }
.t-close { right: clamp(16px, 4vw, 40px); }
.t-sound { left: clamp(16px, 4vw, 40px); }
.t-ctrl:hover { border-color: #fff; color: #fff; }
.t-step { position: absolute; inset: 0; display: grid; place-items: center; padding: 0 8vw; text-align: center; opacity: 0; transform: scale(.985); transition: opacity .7s ease, transform 3.2s linear; }
.t-step.show { opacity: 1; transform: scale(1.03); }
.t-step.cut { transition: none; transform: none; }
.t-year { font-family: var(--display); font-weight: 600; letter-spacing: .32em; text-transform: uppercase; font-size: clamp(20px, 2.6vw, 30px); color: var(--accent); }
.t-line { font-family: var(--display); font-style: italic; font-weight: 500; font-size: clamp(30px, 5.2vw, 66px); line-height: 1.12; max-width: 17ch; }
.t-punch { font-family: var(--display); font-weight: 500; font-size: clamp(30px, 5vw, 62px); line-height: 1.15; }
.t-punch span { display: block; }
.t-punch span + span { color: var(--accent); }
.t-word { font-family: "Oswald", "DejaVu Sans Condensed", "Arial Narrow", sans-serif; font-weight: 600; letter-spacing: .02em; font-size: clamp(64px, 15vw, 210px); line-height: 1; }
.t-word.accent { color: var(--accent); }
.t-final { position: absolute; inset: 0; display: grid; grid-template-columns: auto minmax(0, 28rem); gap: clamp(24px, 5vw, 64px); align-items: center; justify-content: center; padding: 80px 6vw; opacity: 0; transition: opacity .8s ease; }
.t-final.show { opacity: 1; }
.t-final img { max-height: min(70vh, 640px); width: auto; box-shadow: 0 30px 80px rgba(0,0,0,.7); }
.t-final h3 { font-size: clamp(30px, 4vw, 46px); color: #fff; }
.t-final .genre { margin-bottom: 26px; }
.t-final .buttons { margin-top: 8px; }
.t-replay { background: none; border: 0; color: var(--muted); font: italic 16px var(--body); cursor: pointer; padding: 0; margin-top: 22px; }
.t-replay:hover { color: #fff; }
@media (max-width: 700px) {
  .t-final { grid-template-columns: 1fr; justify-items: center; text-align: center; align-content: center; gap: 22px; }
  .t-final img { max-height: 46vh; }
  .t-final .buttons { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { .t-step, .t-final { transition: none; transform: none; } }
