@font-face {
  font-family: 'SUIT Variable';
  src: url('/fonts/SUIT-Variable.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* 김혜진 디자인 아카이브 — 스타일
   색상/타이포/간격은 :root 변수에서 조정합니다. SUIT 공식 배포본을 자체 호스팅합니다. */
:root {
  color-scheme: dark;
  --paper: #000000;
  --paper-2: #141414;
  --ink: #ffffff;
  --muted: #c2c2c2;
  --line: #333333;
  --lime: #1c1c1c;
  --olive: #ffffff;
  --dark: #080808;
  --dark-line: #333333;
  --dark-muted: #c2c2c2;

  --sans: 'SUIT Variable', 'SUIT', 'Noto Sans KR', 'Apple SD Gothic Neo', 'Malgun Gothic', system-ui, sans-serif;
  --display: var(--sans);
  --serif: var(--sans);

  --gutter: clamp(20px, 5vw, 72px);
  --max: 1360px;
  --bar: 60px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: 16px; font-weight: 400; line-height: calc(1.7em - 1pt); word-break: keep-all; overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}
[hidden] { display: none !important; }
img { display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
h1, h2, h3, p, dl, dd, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
:focus-visible { outline: 3px solid var(--olive); outline-offset: 4px; }
dialog:focus { outline: none; }
.detail-actions button:focus-visible { outline-offset: 1px; }
body.lock { overflow: hidden; }

.eyebrow {
  display: flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; line-height: calc(1.4em - 1pt);
}
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--olive); }
.serif { font-family: var(--serif); font-weight: 400; font-style: normal; }

/* 공통 폭: 배경은 전체, 내용은 --max 안에 */
.topbar, .wrap, .section, .about, footer {
  padding-inline: max(var(--gutter), calc((100% - var(--max)) / 2));
}

/* ---------- 상단 바 ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20; height: 72px;
  display: flex; justify-content: space-between; align-items: center;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
}
.wordmark { display: flex; align-items: baseline; gap: 0; font-size: 30px; font-weight: 800; letter-spacing: -.08em; line-height: calc(1em - 1pt); }
.wordmark .dot { color: var(--olive); margin-left: 1px; }
.wordmark-sub { margin-left: 14px; font-size: 11px; font-weight: 500; letter-spacing: .08em; color: var(--muted); }
.topbar nav { display: flex; gap: 32px; font-size: 14px; font-weight: 500; }
.topbar nav a { padding: 8px 0; border-bottom: 2px solid transparent; transition: border-color .2s; }
.topbar nav a:hover { border-color: var(--ink); }
.topbar sup { font-size: 11px; color: var(--muted); margin-left: 4px; font-weight: 400; }

/* ---------- 히어로 ---------- */
.hero { padding-top: clamp(32px, 5vw, 72px); padding-bottom: clamp(56px, 8vw, 104px); }
.hero h1 {
  font-family: var(--display); font-weight: 400; letter-spacing: -.045em; line-height: calc(.98em - 1pt);
  font-size: clamp(46px, 12.6vw, 196px); white-space: nowrap; text-align: center;
}

/* 히어로 무대: 직무 라벨 + 문장, 아래 연두 띠 뒤에서 표지가 올라옵니다 */
.hero-stage { position: relative; overflow: hidden; margin-bottom: clamp(48px, 7vw, 96px); min-height: clamp(300px, 31vw, 450px); }
.hero-info { position: relative; z-index: 3; display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; padding-top: clamp(24px, 3.2vw, 48px); }
.hero-role { display: grid; gap: 10px; justify-items: start; }
.hero-arrow { font-size: 18px; line-height: calc(1em - 1pt); }
.hero-role p { font-size: 15px; line-height: calc(1.35em - 1pt); font-weight: 700; letter-spacing: .04em; }
.hero-status { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.hero-statement { text-align: right; max-width: 24ch; }
.hero-tagline { font-size: clamp(18px, 1.7vw, 24px); font-weight: 600; letter-spacing: -.03em; line-height: calc(1.45em - 1pt); }
.hero-lede { font-size: 14px; line-height: calc(1.8em - 1pt); color: var(--muted); margin-top: 10px; }

.hero-peek { position: absolute; left: 50%; bottom: 0; z-index: 1; display: flex; align-items: flex-end; width: clamp(360px, 52vw, 760px); transform: translate(-50%, 33%); }
.hero-peek img { width: 36%; height: auto; box-shadow: 0 2px 4px #00000022, 8px 16px 32px #00000038; }
.hero-peek img + img { margin-left: -4%; }
.hero-peek img:nth-child(1) { transform: rotate(-6deg) translateY(4%); transform-origin: 50% 100%; }
.hero-peek img:nth-child(2) { position: relative; z-index: 2; transform: translateY(-9%); }
.hero-peek img:nth-child(3) { transform: rotate(6deg) translateY(4%); transform-origin: 50% 100%; }

.ticker { position: absolute; left: 0; right: 0; bottom: 0; z-index: 4; overflow: hidden; background: var(--lime); border-block: 1px solid #00000022; padding: 11px 0; }
.ticker-track { display: flex; width: max-content; animation: ticker 38s linear infinite; }
.ticker-track .ticker-copy { flex: none; padding-right: 3.2em; font-size: 13px; font-weight: 400; letter-spacing: -.025em; white-space: nowrap; }
.ticker-track strong { font-weight: 700; }
.ticker-track b { font-weight: 400; margin: 0 .65em; }
.ticker-track em { display: inline-block; font-family: var(--sans); font-style: normal; font-weight: 700; letter-spacing: -.015em; animation: ticker-blink 1.8s ease-in-out infinite; }
@keyframes ticker { to { transform: translateX(-50%); } }
@keyframes ticker-blink { 0%, 100% { opacity: 1; } 50% { opacity: .18; } }

.entry { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.entry-tile { display: block; }
.entry-visual { position: relative; aspect-ratio: 4 / 3.3; overflow: hidden; transition: transform .4s; }
.entry-tile:hover .entry-visual { transform: translateY(-4px); }
.entry-text { display: grid; grid-template-columns: auto 1fr auto; column-gap: 20px; align-items: baseline; padding: 22px 0 24px; }
.entry-no { font-size: 13px; color: var(--muted); grid-row: 1 / 3; }
.entry-text h2 { font-size: clamp(24px, 2.6vw, 34px); font-weight: 600; letter-spacing: -.035em; line-height: calc(1.3em - 1pt); }
.entry-text p { grid-column: 2; font-size: 14px; color: var(--muted); margin-top: 4px; }

.entry-books .entry-visual { background: var(--paper-2); display: flex; align-items: center; justify-content: center; }
.entry-books img { width: 34%; height: auto; box-shadow: 0 1px 2px #0002, 8px 16px 30px #00000040; }
.entry-books img + img { margin-left: -3%; }
.entry-books img:nth-child(1) { transform: translateY(5%) rotate(-3deg); }
.entry-books img:nth-child(2) { position: relative; z-index: 2; transform: translateY(-4%); }
.entry-books img:nth-child(3) { transform: translateY(6%) rotate(3deg); }

.entry-events .entry-visual { background: #141414; }
.entry-events img { position: absolute; box-shadow: 0 2px 4px #00000022, 6px 14px 30px #00000038; }
.entry-events .e-a { left: 6%; top: 50%; width: 62%; height: auto; transform: translateY(-50%); }
.entry-events .e-b { right: 6%; top: 7%; width: 22%; height: 43%; object-fit: cover; object-position: top; }
.entry-events .e-c { right: 6%; bottom: 7%; width: 22%; height: 38%; object-fit: cover; object-position: top; }

/* ---------- 섹션 공통 ---------- */
.section { padding-top: clamp(64px, 9vw, 120px); padding-bottom: clamp(64px, 9vw, 120px); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head h2 { font-size: clamp(38px, 5.4vw, 72px); font-weight: 600; letter-spacing: -.045em; line-height: calc(1.15em - 1pt); margin-top: 18px; }
.section-note { font-size: 14px; line-height: calc(1.85em - 1pt); color: var(--muted); text-align: right; }

.subhead { display: flex; justify-content: space-between; align-items: center; gap: 16px 24px; flex-wrap: wrap; padding-top: 22px; border-top: 1px solid currentColor; margin-bottom: 32px; }
.subhead h3 { font-size: 20px; font-weight: 600; letter-spacing: -.02em; }
.subhead h3 span { font-size: 14px; font-weight: 400; color: var(--muted); margin-left: 6px; }
.subhead-periodical { margin-top: clamp(64px, 8vw, 104px); }

.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filters button { border: 1px solid var(--line); border-radius: 999px; background: transparent; padding: 8px 16px; font-size: 13px; line-height: calc(1.4em - 1pt); transition: background .2s, color .2s, border-color .2s; }
.filters button span { margin-left: 8px; font-size: 12px; opacity: .6; }
.filters button:hover { border-color: currentColor; }
.filters button.active { background: var(--ink); border-color: var(--ink); color: var(--paper); }

.archive-note { font-size: 13px; color: var(--muted); margin-top: 40px; }
.load-error { grid-column: 1 / -1; color: var(--muted); }

/* ---------- 출판 ---------- */
.section-publishing { border-top: 1px solid var(--line); }
.section-publishing .filters button { border-color: var(--line); }
.section-publishing .subhead { color: var(--ink); border-color: var(--ink); }

.book-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 56px 28px; }
.book-card button { display: block; width: 100%; padding: 0; border: 0; background: none; text-align: left; }
.book-cover { position: relative; aspect-ratio: 1 / 1.3; display: grid; place-items: center; background: var(--paper-2); overflow: hidden; }
.book-cover img { width: auto; height: auto; max-width: 80%; max-height: 88%; box-shadow: 0 1px 2px #0002, 6px 14px 24px #00000030; transition: transform .35s; }
.book-card button:hover .book-cover img { transform: translateY(-5px); }
.book-caption { padding-top: 16px; }
.book-publisher { display: flex; justify-content: space-between; font-size: 12px; letter-spacing: .04em; color: var(--muted); }
.book-caption h3 { font-size: 18px; line-height: calc(1.45em - 1pt); font-weight: 600; letter-spacing: -.025em; margin: 8px 0 6px; }
.book-caption p { font-size: 13px; line-height: calc(1.6em - 1pt); color: var(--muted); }
.role-note { display: block; margin-top: 8px; font-size: 12px; line-height: calc(1.5em - 1pt); color: var(--olive); }
.detail-available { display: inline-block; margin-top: 12px; padding-bottom: 3px; border-bottom: 1px solid var(--olive); font-size: 12px; color: var(--ink); }

.periodical-card button { display: block; width: 100%; padding: 0; border: 0; background: none; text-align: left; }
.periodical-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 24px; }
.periodical-head h3 { font-size: 24px; font-weight: 600; letter-spacing: -.03em; }
.periodical-head p { font-size: 14px; color: var(--muted); margin-top: 4px; }
.periodical-head .detail-available { margin-top: 0; white-space: nowrap; }
.periodical-covers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; background: var(--paper-2); padding: clamp(20px, 3vw, 40px); }
.periodical-cover { aspect-ratio: 1191 / 1684; background: #fff; box-shadow: 0 1px 2px #0002, 6px 14px 24px #00000026; overflow: hidden; transition: transform .35s; }
.periodical-cover img { width: 100%; height: 100%; object-fit: cover; }
.periodical-card button:hover .periodical-cover { transform: translateY(-5px); }
.periodical-label { display: block; margin-top: 14px; font-size: 12px; color: var(--muted); }

/* ---------- 행사·홍보 ---------- */
.section-events { background: var(--paper); border-top: 1px solid var(--line); }
.section-events .subhead { border-color: var(--ink); }

.event-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px 32px; }
.event-card button { display: block; width: 100%; padding: 0; border: 0; background: none; text-align: left; }
.event-visual { position: relative; aspect-ratio: 16 / 11; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.event-visual img { width: auto; height: auto; max-width: 86%; max-height: 88%; box-shadow: 6px 14px 30px #0003; transition: transform .45s; }
.event-card button:hover .event-visual img { transform: translateY(-5px); }
.count-pill { position: absolute; left: 16px; top: 16px; padding: 5px 12px; border-radius: 999px; background: var(--paper); color: var(--ink); font-size: 12px; font-weight: 600; line-height: calc(1.4em - 1pt); }
.event-meta { display: grid; grid-template-columns: 36px 1fr; gap: 12px; padding-top: 20px; }
.event-no { font-size: 13px; color: var(--muted); padding-top: 6px; }
.event-meta h3 { font-size: 24px; font-weight: 600; letter-spacing: -.03em; line-height: calc(1.35em - 1pt); }
.event-en { font-family: var(--serif); font-style: normal; font-size: 15px; color: var(--muted); margin-top: 2px; }
.event-sub { display: flex; justify-content: space-between; gap: 16px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }

.visual-scaleup { background: #141414; }
.visual-tips { background: #141414; }
.visual-carbon { background: #141414; }
.visual-edutech { background: #141414; gap: 4%; }
.visual-edutech img { height: 88%; max-width: 40%; max-height: none; }
.visual-sep { background: #141414; align-items: flex-start; justify-content: center; gap: 2.5%; padding-top: 8%; }
.visual-sep img { width: 15%; max-width: none; max-height: none; height: auto; flex: none; }
.visual-sep img:nth-of-type(even) { margin-top: 7%; }
.visual-asthma { background: #141414; }

/* ---------- 소개 ---------- */
.about { background: var(--paper); border-top: 1px solid var(--line); padding-top: clamp(56px, 8vw, 104px); padding-bottom: clamp(56px, 8vw, 104px); display: grid; grid-template-columns: 1fr 2.2fr; gap: 32px; }
.about h2 { font-size: clamp(32px, 4.4vw, 56px); font-weight: 600; line-height: calc(1.3em - 1pt); letter-spacing: -.04em; margin-bottom: 28px; }
.about-body p { max-width: 54ch; font-size: 16px; line-height: calc(1.95em - 1pt); color: #d0d0d0; }
.practice { display: flex; gap: 12px 28px; flex-wrap: wrap; margin-top: 36px; font-size: 12px; letter-spacing: .08em; font-weight: 600; }

footer { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-block: 28px; border-top: 1px solid var(--line); }
footer .wordmark { font-size: 24px; }
footer > span, footer > a:last-child { font-size: 13px; color: var(--muted); }

/* ---------- 상세 보기 (전체 화면) ---------- */
dialog {
  width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: var(--paper); color: var(--ink); overflow: auto; overscroll-behavior: contain;
}
.detail-bar {
  position: sticky; top: 0; z-index: 5; height: var(--bar); padding: 0 clamp(16px, 3vw, 40px);
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  background: var(--paper); border-bottom: 1px solid var(--line);
}
.detail-index { font-size: 12px; letter-spacing: .08em; color: var(--muted); }
.detail-actions { display: flex; align-items: center; gap: 4px; }
.detail-actions button { border: 0; background: none; padding: 10px 14px; font-size: 14px; border-radius: 999px; transition: background .2s; }
.detail-actions button:hover { background: var(--paper-2); }
.detail-actions .close { background: var(--ink); color: var(--paper); margin-left: 8px; display: flex; gap: 10px; align-items: center; }
.detail-actions .close:hover { background: #303030; }
.detail-actions .close b { font-weight: 400; font-size: 20px; line-height: calc(1em - 1pt); }

.detail-layout { display: grid; grid-template-columns: minmax(320px, 420px) 1fr; min-height: calc(100vh - var(--bar)); min-height: calc(100dvh - var(--bar)); }
.detail-info { position: sticky; top: var(--bar); align-self: start; height: calc(100vh - var(--bar)); height: calc(100dvh - var(--bar)); overflow: auto; padding: clamp(28px, 3vw, 48px); border-right: 1px solid var(--line); }
.detail-info h2 { font-size: clamp(28px, 2.8vw, 40px); font-weight: 600; letter-spacing: -.04em; line-height: calc(1.3em - 1pt); margin: 18px 0 10px; }
.detail-en { font-family: var(--serif); font-style: normal; font-size: 18px; color: var(--olive); }
.detail-desc { font-size: 15px; line-height: calc(1.9em - 1pt); margin-top: 28px; color: #d0d0d0; }
.detail-meta { margin-top: 32px; border-top: 1px solid var(--line); }
.detail-meta > div { display: grid; grid-template-columns: 84px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 14px; line-height: calc(1.6em - 1pt); }
.detail-meta > div[hidden] { display: none; }
.detail-meta dt { font-size: 12px; letter-spacing: .06em; color: var(--muted); padding-top: 2px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.tags span { border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; font-size: 12px; }
.detail-role { margin-top: 20px; }

.gallery { background: var(--paper-2); padding: clamp(24px, 4vw, 56px) clamp(20px, 4vw, 64px) 96px; display: grid; gap: 56px; justify-items: center; align-content: start; }
.gallery figure { margin: 0; width: 100%; min-width: 0; max-width: 1000px; }
.gallery figcaption { font-size: 12px; letter-spacing: .04em; color: var(--muted); margin-bottom: 12px; }
.gallery figcaption span { color: var(--ink); font-weight: 600; margin-right: 8px; }
.image-zoom { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.gallery img { width: 100%; height: auto; box-shadow: 0 1px 2px #0002, 0 12px 32px #0000001f; background: #fff; }
.image-hint { display: block; margin-top: 10px; font-size: 12px; color: var(--muted); text-align: left; }

.book-gallery figure { max-width: 760px; }
.book-gallery figure:first-of-type { max-width: none; }
.book-gallery figure:first-of-type .image-zoom { text-align: center; }
.book-gallery figure:first-of-type img { width: auto; max-width: 100%; max-height: 78vh; margin: 0 auto; }
.book-gallery figure:first-of-type figcaption, .book-gallery figure:first-of-type .image-hint { max-width: 760px; margin-inline: auto; text-align: left; }
.book-gallery figure:first-of-type { text-align: center; }

.mag-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 48px 32px; }
.mag-gallery figure { max-width: none; }

/* 뉴스레터 5장: 같은 비율의 프레임에 위쪽부터 보여 주고, 살짝 기울였다가 호버하면 바로 섭니다.
   전체 길이는 이미지를 눌러 확대해서 봅니다. */
.news-gallery { display: flex; flex-wrap: nowrap; justify-content: center; align-items: flex-start; gap: 12px; padding: 56px clamp(16px, 2.5vw, 40px) 96px; }
.news-gallery figure { flex: 1 1 0; min-width: 0; max-width: 260px; width: auto; }
.news-gallery figcaption { line-height: calc(1.5em - 1pt); min-height: 3em; margin-bottom: 40px; }
.news-gallery .image-zoom {
  aspect-ratio: 1 / 3; overflow: hidden; background: #fff;
  box-shadow: 0 2px 4px #00000026, 0 10px 22px #0000002e;
  transform: translateY(var(--dy, 0px)) rotate(var(--tilt, 0deg)); transform-origin: 50% 90%;
  transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s;
  position: relative; z-index: 0;
}
.news-gallery .image-zoom img { width: 100%; height: auto; box-shadow: none; }
.news-gallery .image-zoom:hover, .news-gallery .image-zoom:focus-visible {
  transform: translateY(calc(var(--dy, 0px) - 8px)) rotate(0deg) scale(1.03); z-index: 2;
  box-shadow: 0 6px 10px #00000022, 0 28px 48px #00000040;
}
.news-gallery .image-hint { display: none; }
.news-gallery figure:nth-child(5n+1) { --tilt: 4.5deg; --dy: 8px; }
.news-gallery figure:nth-child(5n+2) { --tilt: 2deg; --dy: -6px; }
.news-gallery figure:nth-child(5n+3) { --tilt: -1deg; --dy: 16px; }
.news-gallery figure:nth-child(5n+4) { --tilt: -4deg; --dy: 0px; }
.news-gallery figure:nth-child(5n+5) { --tilt: -5.5deg; --dy: 12px; }

/* ---------- 이미지 확대 ---------- */
.zoom { position: fixed; inset: 0; z-index: 100; overflow: auto; padding: 72px 20px 48px; text-align: center; background: #000000f2; overscroll-behavior: contain; }
.zoom[hidden] { display: none; }
.zoom button { position: fixed; top: 16px; right: 20px; z-index: 101; border: 0; border-radius: 999px; background: var(--paper); padding: 10px 18px; font-size: 14px; }
.zoom p { font-size: 12px; color: #bbb; }
.zoom img { display: block; margin: 24px auto 0; max-width: none; height: auto; background: #fff; touch-action: pan-x pan-y pinch-zoom; }
.zoom img.tall { width: min(920px, 100%); }

/* ---------- 반응형 ---------- */
@media (max-width: 1100px) {
  .book-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 24px; }
  .section-note { text-align: left; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 20px; }
  .about { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .event-grid { gap: 48px 20px; }
  .detail-layout { grid-template-columns: 1fr; }
  .detail-info { position: static; height: auto; overflow: visible; border-right: 0; border-bottom: 1px solid var(--line); }
  .detail-actions button span { display: none; }
  .mag-gallery { grid-template-columns: 1fr 1fr; gap: 32px 16px; }
}

@media (max-width: 700px) {
  :root { --bar: 56px; }
  body { font-size: 15px; }
  .topbar { height: 60px; }
  .wordmark { font-size: 26px; }
  .wordmark-sub { display: none; }
  .topbar nav { gap: 18px; font-size: 13px; }
  .topbar sup { display: none; }

  .entry { grid-template-columns: 1fr; gap: 40px; }
  .hero-stage { min-height: 480px; }
  .hero-info { flex-direction: column; gap: 20px; }
  .hero-statement { text-align: left; max-width: none; }
  .hero-peek { width: 118vw; transform: translate(-50%, 30%); }
  .entry-text { grid-template-columns: auto 1fr; }

  .book-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 14px; }
  .book-caption h3 { font-size: 15px; }
  .book-caption p { font-size: 12px; }
  .periodical-head { flex-direction: column; align-items: flex-start; gap: 12px; }
  .periodical-covers { grid-template-columns: 1fr 1fr; gap: 16px 14px; padding: 16px; }

  .event-grid { grid-template-columns: 1fr; gap: 44px; }
  .event-meta h3 { font-size: 21px; }
  .event-sub { flex-direction: column; gap: 4px; }

  .filters { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none; width: calc(100% + var(--gutter) * 2); }
  .filters::-webkit-scrollbar { display: none; }
  .filters button { flex: none; white-space: nowrap; }

  .detail-bar { padding: 0 12px 0 16px; }
  .detail-index { font-size: 11px; letter-spacing: .04em; }
  .detail-actions button { padding: 10px; }
  .detail-actions .close { margin-left: 4px; padding: 10px 14px; }
  .detail-info { padding: 28px 20px; }
  .gallery { padding: 20px 14px 72px; gap: 36px; }
  .mag-gallery { grid-template-columns: 1fr; }
  .news-gallery { justify-content: flex-start; overflow-x: auto; gap: 14px; padding: 40px 20px 64px; scroll-snap-type: x proximity; }
  .news-gallery figure { flex: none; width: 168px; max-width: none; scroll-snap-align: center; }
  .book-gallery figure:first-of-type img { max-height: 64vh; }
  .zoom { padding: 64px 0 40px; }
}

@media (min-width: 1550px) { body { box-shadow: 0 0 0 1px var(--line); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker-track { animation: none !important; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- 직접 편집 (편집 권한이 있을 때만 나타남) ---------- */
.event-visual { background: var(--paper-2); }
.fab {
  position: fixed; right: clamp(16px, 3vw, 32px); bottom: calc(clamp(16px, 3vw, 32px) + env(safe-area-inset-bottom, 0px)); z-index: 30;
  display: inline-flex; align-items: center; gap: 8px; padding: 14px 22px; border: 0; border-radius: 999px;
  background: var(--ink); color: var(--paper); font-size: 15px; font-weight: 600; line-height: calc(1em - 1pt);
  box-shadow: 0 6px 20px #00000040; transition: transform .2s, background .2s;
}
.fab[hidden] { display: none; }
.fab b { font-weight: 400; font-size: 20px; line-height: calc(1em - 1pt); }
.fab:hover { transform: translateY(-2px); background: #303030; }
.toast { position: fixed; left: 50%; bottom: 96px; z-index: 300; transform: translateX(-50%); max-width: calc(100vw - 32px); padding: 12px 20px; border-radius: 999px; background: var(--ink); color: var(--paper); font-size: 14px; }
.toast[hidden] { display: none; }

.detail-edit { margin-top: 28px; }
.detail-edit button, .editor .ghost { border: 1px solid var(--ink); border-radius: 999px; background: transparent; padding: 10px 18px; font-size: 14px; transition: background .2s; }
.detail-edit button:hover, .editor .ghost:hover { background: var(--paper-2); }

dialog.editor {
  inset: 0 0 0 auto; margin: 0; width: min(640px, 100vw); max-width: 100vw; height: 100vh; height: 100dvh; max-height: none;
  border: 0; border-left: 1px solid var(--line); padding: 0; background: var(--paper); color: var(--ink); overflow: hidden;
}
dialog.editor::backdrop { background: #00000066; }
dialog.editor form { display: flex; flex-direction: column; height: 100%; }
.editor-bar { display: flex; justify-content: space-between; align-items: center; padding: 16px 24px; border-bottom: 1px solid var(--line); }
.editor-bar h2 { font-size: 20px; font-weight: 600; letter-spacing: -.02em; }
.editor-bar button { width: 40px; height: 40px; border: 0; border-radius: 50%; background: none; font-size: 26px; line-height: calc(1em - 1pt); }
.editor-bar button:hover { background: var(--paper-2); }
.editor-body { flex: 1; overflow-y: auto; padding: 24px; display: grid; gap: 22px; align-content: start; overscroll-behavior: contain; }
.editor-foot { display: flex; align-items: center; gap: 10px; padding: 14px 24px calc(14px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); background: var(--paper); }
.editor-foot .grow { flex: 1; }
.editor .primary { border: 0; border-radius: 999px; background: var(--ink); color: var(--paper); padding: 11px 26px; font-size: 14px; font-weight: 600; }
.editor .primary:hover { background: #303030; }
.editor .primary:disabled { opacity: .5; cursor: default; }
.editor .danger { border: 1px solid #ffffff; border-radius: 999px; background: transparent; color: #ffffff; padding: 10px 18px; font-size: 14px; }
.editor .danger[data-armed="1"] { background: #ffffff; color: #fff; }

.field { display: grid; gap: 8px; min-width: 0; }
.field[hidden] { display: none; }
.field > label, .field > .label { font-size: 13px; font-weight: 600; }
.field small { font-weight: 400; color: var(--muted); margin-left: 6px; font-size: 12px; }
.field em { font-style: normal; font-size: 11px; font-weight: 600; color: var(--olive); margin-left: 6px; }
.field input[type="text"], .field textarea {
  width: 100%; min-width: 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper);
  font: inherit; font-size: 15px; color: var(--ink); line-height: calc(1.5em - 1pt);
}
.field textarea { resize: vertical; line-height: calc(1.7em - 1pt); }
.field input[type="text"]:focus, .field textarea:focus { outline: 2px solid var(--ink); outline-offset: 0; border-color: var(--ink); }

.seg { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px; border: 0; padding: 0; margin: 0; min-width: 0; }
.seg legend { font-size: 13px; font-weight: 600; margin-bottom: 8px; padding: 0; }
.seg label { position: relative; display: block; cursor: pointer; }
.seg input { position: absolute; opacity: 0; inset: 0; }
.seg span { display: grid; gap: 2px; justify-items: center; padding: 12px 8px; border: 1px solid var(--line); border-radius: 10px; font-size: 14px; font-weight: 600; text-align: center; transition: background .2s, border-color .2s; }
.seg small { font-size: 11px; font-weight: 400; color: var(--muted); }
.seg input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.seg input:checked + span small { color: #bfbfbf; }
.seg input:focus-visible + span { outline: 3px solid var(--olive); outline-offset: 2px; }

.drop { display: grid; justify-items: center; gap: 12px; padding: 24px 16px; border: 2px dashed var(--line); border-radius: 12px; text-align: center; transition: background .2s, border-color .2s; }
.drop.over { background: var(--paper-2); border-color: var(--ink); }
.drop p { font-size: 14px; color: var(--muted); }
.drop small { margin: 0; }

.img-list { display: grid; gap: 10px; margin-top: 6px; }
.img-list li { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; padding: 8px; border: 1px solid var(--line); border-radius: 10px; }
.img-list img { width: 64px; height: 64px; object-fit: cover; border-radius: 6px; background: var(--paper-2); }
.img-meta { display: grid; gap: 4px; min-width: 0; }
.img-no { font-size: 11px; font-weight: 700; letter-spacing: .06em; color: var(--olive); }
.img-list .img-label { width: 100%; min-width: 0; padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; font: inherit; font-size: 13px; background: var(--paper); color: var(--ink); }
.img-actions { display: flex; gap: 4px; }
.img-actions button { width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 50%; background: var(--paper); font-size: 15px; line-height: calc(1em - 1pt); }
.img-actions button:hover:not(:disabled) { background: var(--paper-2); border-color: var(--ink); }
.img-actions button:disabled { opacity: .3; cursor: default; }
.editor-status { min-height: 1.5em; font-size: 13px; color: #ffffff; }

@media (max-width: 700px) {
  .seg { grid-template-columns: 1fr; }
  .seg span { grid-auto-flow: column; justify-content: space-between; padding: 12px 14px; }
  .fab { padding: 13px 18px; font-size: 14px; }
  .editor-body { padding: 20px 16px; }
  .editor-bar, .editor-foot { padding-inline: 16px; }
}

.editor-hint { padding: 12px 14px; border-radius: 8px; background: var(--paper-2); font-size: 13px; line-height: calc(1.6em - 1pt); color: var(--muted); }
.editor-hint[hidden], .seg[hidden] { display: none; }

/* ---------- 출판: 온라인 카드뉴스 ---------- */
.subhead-cardnews { margin-top: clamp(64px, 8vw, 104px); }
.cn-card button { display: block; width: 100%; padding: 0; border: 0; background: none; text-align: left; }
.cn-cover { position: relative; aspect-ratio: 1; margin: 0 12px 12px 0; background: var(--paper-2); box-shadow: 6px 6px 0 var(--paper-2), 12px 12px 0 var(--line); transition: transform .3s; }
.cn-cover img { width: 100%; height: 100%; object-fit: cover; }
.cn-card button:hover .cn-cover { transform: translateY(-4px); }
.cn-cover .count-pill { left: 12px; top: 12px; }
.cn-add { display: grid; align-content: center; justify-items: center; gap: 6px; width: calc(100% - 12px); aspect-ratio: 1; margin: 0 12px 12px 0; padding: 20px; border: 2px dashed var(--line); border-radius: 12px; background: transparent; text-align: center; transition: border-color .2s, background .2s; }
.cn-add:hover { border-color: var(--ink); background: var(--paper-2); }
.cn-add b { font-size: 32px; font-weight: 400; line-height: calc(1em - 1pt); }
.cn-add span { font-size: 15px; font-weight: 600; }
.cn-add small { font-size: 12px; line-height: calc(1.6em - 1pt); color: var(--muted); max-width: 22ch; }
@media (max-width: 700px) { .cn-cover, .cn-add { margin: 0 8px 8px 0; box-shadow: 4px 4px 0 var(--paper-2), 8px 8px 0 var(--line); } .cn-add { box-shadow: none; width: calc(100% - 8px); } }

/* ---------- 카드뉴스 상세: 인스타그램 게시물 형태 ---------- */
.ig-gallery { align-content: start; padding-top: clamp(24px, 4vw, 56px); }
.ig-post { width: min(520px, 100%); background: var(--paper); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; box-shadow: 0 1px 2px #0000000f, 0 12px 32px #00000014; }
.ig-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; }
.ig-avatar { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: var(--paper); font-size: 12px; font-weight: 800; letter-spacing: -.04em; box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px var(--lime); }
.ig-head strong { display: block; font-size: 14px; line-height: calc(1.3em - 1pt); }
.ig-head small { display: block; font-size: 12px; color: var(--muted); line-height: calc(1.3em - 1pt); }
.ig-frame { position: relative; width: 100%; background: var(--paper-2); }
.ig-track { display: flex; width: 100%; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; }
.ig-track::-webkit-scrollbar { display: none; }
.ig-slide { flex: 0 0 100%; height: 100%; scroll-snap-align: center; scroll-snap-stop: always; }
.ig-slide .image-zoom { width: 100%; height: 100%; cursor: zoom-in; }
.ig-post .ig-slide img { width: 100%; height: 100%; object-fit: contain; box-shadow: none; background: transparent; }
.ig-count { position: absolute; top: 12px; right: 12px; padding: 4px 10px; border-radius: 999px; background: #000000b3; color: #fff; font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; pointer-events: none; }
.ig-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; border: 0; border-radius: 50%; background: #ffffffe6; color: var(--ink); font-size: 22px; line-height: calc(1em - 1pt); box-shadow: 0 1px 6px #0003; display: grid; place-items: center; padding: 0 0 3px; }
.ig-nav.prev { left: 10px; } .ig-nav.next { right: 10px; }
.ig-nav:hover { background: #fff; }
.ig-dots { display: flex; justify-content: center; gap: 6px; padding: 12px 0 4px; }
.ig-dot { width: 6px; height: 6px; padding: 0; border: 0; border-radius: 50%; background: var(--line); transition: background .2s, transform .2s; }
.ig-dot.on { background: var(--ink); transform: scale(1.25); }
.ig-caption { display: grid; gap: 8px; padding: 8px 14px 18px; font-size: 14px; line-height: calc(1.6em - 1pt); }
.ig-caption strong { font-weight: 700; }
.ig-desc { white-space: pre-line; color: #d0d0d0; }
.ig-tags { color: var(--olive); word-break: break-all; }
.ig-post.single .ig-count, .ig-post.single .ig-nav, .ig-post.single .ig-dots { display: none; }
@media (hover: none) { .ig-nav { display: none; } }
@media (max-width: 700px) { .ig-gallery { padding: 16px 0 72px; } .ig-post { border-radius: 0; border-inline: 0; } }

/* Black / white editorial theme. */
::selection { background: #ffffff; color: #000000; }
body, button, input, textarea, select { font-family: var(--sans); }
body, body *, button, input, textarea, select { letter-spacing: -.05em !important; }
.hero h1 { font-weight: 800; font-size: clamp(32px, 10.2vw, 156px); letter-spacing: -.065em; line-height: calc(1.05em - 1pt); }
.ticker { background: #111111; color: #ffffff; border-color: var(--line); }
.entry-events .entry-visual { background: var(--paper-2); }
.filters button.active { background: #262626; border-color: #ffffff; color: #ffffff; }
.fab, .editor .primary, .detail-actions .close { background: #1c1c1c; color: #ffffff; border: 1px solid #777777; }
.fab:hover, .editor .primary:hover, .detail-actions .close:hover { background: #333333; color: #ffffff; }
.seg input:checked + span { background: #262626; border-color: #ffffff; color: #ffffff; }
.seg input:checked + span small { color: #eeeeee; }
.editor .danger[data-armed="1"] { background: #333333; color: #ffffff; }
.ig-avatar { background: #222222; color: #ffffff; }
.ig-nav { background: #111111e6; color: #ffffff; border: 1px solid #777777; }
.ig-nav:hover { background: #333333; }
.ig-dot.on { background: #ffffff; }
:where(input, textarea)::placeholder { color: #999999; opacity: 1; }
@media (max-width: 700px) { .hero h1 { font-size: clamp(28px, 9.7vw, 68px); letter-spacing: -.055em; } }

/* Thumbnail artwork sits directly on the site's black canvas. */
.entry-books .entry-visual,
.entry-events .entry-visual,
.book-cover,
.periodical-covers,
.periodical-cover,
.event-visual,
.cn-cover,
.img-list img {
  background: transparent;
  box-shadow: none;
}
.hero-peek img,
.entry-visual img,
.book-cover img,
.event-visual img {
  box-shadow: none;
}

/* Three main portfolio categories. */
.entry { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.entry-text { grid-template-columns: auto 1fr; column-gap: 14px; }
.web-entry-visual { display: grid; place-items: center; }
.web-entry-visual > span { position: relative; font-size: clamp(42px, 5vw, 76px); font-weight: 800; line-height: calc(1em - 1pt); letter-spacing: -.06em; }
.section-web { border-top: 1px solid var(--line); }
.web-empty { grid-column: 1 / -1; padding: 48px 0; color: var(--muted); }
.web-empty button { margin-top: 20px; border: 1px solid var(--line); border-radius: 999px; padding: 12px 20px; background: transparent; color: var(--ink); }
.web-empty button:hover { border-color: var(--ink); }
@media (max-width: 700px) {
  .entry { grid-template-columns: 1fr; }
  .web-entry-visual > span { font-size: clamp(56px, 12vw, 88px); }
  .topbar nav { gap: 12px; font-size: 12px; }
}

/* Independent personal-work board. */
.entry { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.entry-personal .web-entry-visual > span { font-size: clamp(26px, 3.2vw, 48px); }
.section-personal { border-top: 1px solid var(--line); }
@media (min-width: 701px) and (max-width: 1100px) { .entry { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) {
  .entry { grid-template-columns: 1fr; }
  .entry-personal .web-entry-visual > span { font-size: clamp(36px, 8vw, 56px); }
  .topbar { height: auto; min-height: 60px; gap: 12px; padding-block: 14px; }
  .topbar nav { flex: 1; min-width: 0; flex-wrap: wrap; justify-content: flex-end; gap: 4px 12px; }
}

/* Book interiors remain separate from the cover and promotional gallery. */
.body-editor-note { color: var(--muted); font-size: 13px; line-height: calc(1.7em - 1pt); margin: 4px 0 12px; }
.body-preview { width: 100%; min-width: 0; margin: 0 0 32px; padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.body-preview-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.body-preview-heading h3 { color: #fff; font-size: 20px; font-weight: 600; }
.body-preview-heading > span, .reader-help { color: var(--muted); font-size: 12px; }
.body-preview-empty p { color: var(--muted); font-size: 14px; }
.body-add { margin-top: 16px; padding: 10px 18px; background: transparent; border: 1px solid var(--line); color: #fff; border-radius: 24px; }
.book-reader { max-width: 100%; outline-offset: 8px; }
/* Each half keeps its place, including the empty left side of the first page. */
.reader-stage { position: relative; width: min(100%, 1100px); margin-inline: auto; perspective: 2200px; isolation: isolate; touch-action: pan-y; }
.reader-page { position: absolute; top: 0; width: 50%; height: 100%; background: transparent; border: 0; padding: 0; overflow: hidden; display: block; cursor: zoom-in; }
.reader-left { left: 0; }
.reader-right { right: 0; }
.reader-page img, .reader-face img { display: block; width: 100%; height: 100%; object-fit: contain; user-select: none; box-shadow: none; background: transparent; }
.reader-left img { object-position: right center; }
.reader-right img { object-position: left center; }
.reader-blank { pointer-events: none; background: transparent; }
.reader-blank img, .reader-blank .image-hint { visibility: hidden; }
.reader-sheet { position: absolute; top: 0; right: 0; width: 50%; height: 100%; z-index: 2; transform-origin: left center; transform-style: preserve-3d; pointer-events: none; }
.reader-sheet[data-direction="back"] { left: 0; right: auto; transform-origin: right center; }
.reader-face { position: absolute; inset: 0; overflow: hidden; background: #000; backface-visibility: hidden; }
.reader-front { transform: rotateY(0deg); }
.reader-back { transform: rotateY(180deg); }
.reader-face::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, #0003, transparent 12%, transparent 85%, #0002); }
.reader-spine { position: absolute; z-index: 3; top: 0; bottom: 0; left: calc(50% - 4px); width: 8px; background: linear-gradient(90deg,transparent,#0004,transparent); pointer-events: none; }
.reader-controls { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 20px; }
.reader-controls button { background: transparent; border: 1px solid var(--line); color: #fff; border-radius: 24px; padding: 11px 20px; min-height: 44px; }
.reader-controls button:hover:not(:disabled), .body-add:hover { background: #222; border-color: #aaa; }
.reader-controls button:disabled { opacity: .3; cursor: default; }
.reader-position { font-size: 13px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.reader-caption { margin-top: 18px; font-size: 14px; color: #fff; text-align: center; overflow-wrap: anywhere; }
.reader-help { margin-top: 8px; text-align: center; line-height: calc(1.7em - 1pt); }
@media (max-width: 700px) {
  .body-preview { width: calc(100% - 32px); margin-inline: 16px; }
  .reader-stage { max-height: none; }
  .reader-controls button { padding: 10px 15px; }
  .img-list li { gap: 8px; grid-template-columns: 48px minmax(0,1fr) auto; }
  .img-list img { width: 48px; height: 60px; }
  .img-actions { gap: 2px; }
  .img-actions button { width: 30px; height: 34px; }
}

.reader-page .image-hint { position: absolute; right: 12px; bottom: 12px; background: #000b; color: #fff; border-radius: 20px; padding: 7px 12px; margin: 0; }

.body-filename { display: block; font-size: 12px; color: var(--muted); overflow-wrap: anywhere; margin-bottom: 5px; }

@media (max-width: 700px) { .reader-page .image-hint { font-size: 10px; padding: 5px 7px; right: 5px; bottom: 5px; } }

/* Contact collage: live typography and the original book covers in CSS 3D. */
.hero { padding-top: 0; }
.topbar,
.hero-stage {
  color: #111827;
  background-color: #fbfdff;
  background-image:
    linear-gradient(rgba(151, 202, 232, .2) 1px, transparent 1px),
    linear-gradient(90deg, rgba(151, 202, 232, .2) 1px, transparent 1px);
  background-size: 28px 28px;
}
.topbar {
  border-bottom-color: rgba(151, 202, 232, .42);
  backdrop-filter: blur(10px);
}
.topbar .wordmark-sub,
.topbar sup { color: #66717d; }
.topbar nav a:hover { border-color: #111827; }
.hero-stage { min-height: 0; padding-bottom: 48px; margin-bottom: clamp(28px, 4vw, 56px); }
.hero-collage { position: relative; height: clamp(570px, 49vw, 720px); isolation: isolate; }
.hero .collage-title { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .01em; color: #111827; font-family: var(--sans); font-size: clamp(96px, 14vw, 208px); font-weight: 800; line-height: .9; white-space: nowrap; z-index: 2; pointer-events: none; }
.collage-title > span { display: block; }
.name-highlight { position: relative; color: #080808; padding: .015em .08em .055em; transform: rotate(-3deg); }
.name-highlight::before { content: ''; position: absolute; inset: .1em -.025em .01em; background: #ffe547; z-index: -1; transform: skewX(-4deg); border-radius: 2px; }
.hero-stage .ticker { color: #111827; background: rgba(251, 253, 255, .92); border-color: rgba(151, 202, 232, .42); }
.floating-book { position: absolute; width: clamp(120px, 12vw, 184px); z-index: 3; scale: 1.32; animation: book-bob 6s ease-in-out infinite; pointer-events: none; filter: drop-shadow(0 14px 14px #3452); }
.book-object { position: relative; transform: rotate(var(--book-angle)); transform-origin: center; }
.book-object img { width: 100%; height: auto; }
.book-one { --book-angle: -16deg; left: 20%; top: 34%; animation-delay: -.8s; }
.book-two { --book-angle: 16deg; right: 24%; top: 8%; width: clamp(88px, 8.5vw, 126px); animation-delay: -2s; }
.book-three { --book-angle: 13deg; right: 19%; bottom: 14%; animation-delay: -3.5s; }
.book-four { --book-angle: -12deg; left: 27%; bottom: 8%; width: clamp(90px, 9vw, 134px); animation-delay: -1.5s; }
.book-five { --book-angle: 9deg; left: 7%; top: 42%; width: clamp(88px, 8.5vw, 126px); animation-delay: -4.5s; }
.book-six { --book-angle: 10deg; right: 7%; top: 3%; width: clamp(84px, 7.8vw, 115px); animation-delay: -2.8s; }
.book-one, .book-three { width: clamp(88px, 8.5vw, 126px); }
.floating-decor { position: absolute; z-index: 3; width: clamp(34px, 3.2vw, 50px); height: auto; scale: 1.5; pointer-events: none; object-fit: contain; animation: decor-drift 5s ease-in-out infinite; filter: drop-shadow(0 7px 8px #3452); }
.decor-plane { left: 39%; top: 9%; width: clamp(46px, 4.2vw, 64px); rotate: -8deg; animation-delay: -.7s; }
.decor-heart-yellow { left: 33%; top: 25%; rotate: -8deg; animation-delay: -2.1s; }
.decor-heart-red { right: 32%; top: 17%; rotate: 8deg; animation-delay: -3.4s; }
.decor-heart-blue { right: 4%; top: 48%; rotate: 10deg; animation-delay: -1.6s; }
.decor-tree { left: 7%; bottom: 16%; width: clamp(38px, 3.5vw, 54px); rotate: -5deg; animation-delay: -4.2s; }
.decor-sparkles { right: 31%; bottom: 8%; width: clamp(36px, 3.4vw, 52px); rotate: 7deg; animation-delay: -2.8s; }
@keyframes book-bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }
@keyframes decor-drift { 0%, 100% { translate: 0 0; } 50% { translate: 0 -5px; } }
@media (max-width: 700px) {
  .hero-collage { height: 610px; }
  .hero .collage-title { font-size: clamp(72px, 17vw, 118px); gap: .02em; }
  .floating-book { width: 94px; }
  .book-one { top: 28%; left: 12%; width: 70px; }
  .book-two { top: 10%; right: 15%; width: 68px; }
  .book-three { bottom: 16%; right: 11%; width: 70px; }
  .book-four { bottom: 23%; left: 16%; width: 72px; }
  .book-five { top: 15%; left: 17%; width: 63px; }
  .book-six { top: auto; bottom: 2%; right: 10%; width: 68px; }
  .floating-decor { width: 28px; }
  .decor-plane { left: 40%; top: 3%; width: 38px; }
  .decor-heart-yellow { left: 42%; top: 20%; }
  .decor-heart-red { right: 8%; top: 18%; }
  .decor-heart-blue { right: 2%; top: 48%; }
  .decor-tree { left: 3%; bottom: 5%; width: 32px; }
  .decor-sparkles { right: 34%; bottom: 3%; width: 31px; }
}
@media (prefers-reduced-motion: reduce) { .floating-book, .floating-decor { animation: none; } }

.hero-sticker {
  pointer-events: auto;
  touch-action: none;
  user-select: none;
  cursor: grab;
  transform: translate(var(--sticker-x, 0px), var(--sticker-y, 0px));
}
.hero-sticker:focus-visible { outline-color: #1565c0; }
.hero-sticker.is-positioned { z-index: 3; animation: none; }
.hero-sticker.is-dragging { z-index: 5; cursor: grabbing; }

.hero-showguide {
  --sheet-width: clamp(150px, 16.5vw, 234px);
  position: absolute;
  top: 8%;
  left: 60%;
  z-index: 3;
  width: calc(var(--sheet-width) / 4);
  height: calc(var(--sheet-width) * .75);
  padding: 0;
  border: 0;
  background: transparent;
  filter: drop-shadow(3px 6px 5px #3454);
  animation: decor-drift 5s ease-in-out infinite;
}
.hero-showguide[aria-expanded="true"] {
  width: var(--sheet-width);
  height: calc(var(--sheet-width) * 1.5);
}
.hero-showguide .showguide-sheet {
  position: absolute;
  inset: 0 auto auto 0;
  width: var(--sheet-width);
  height: calc(var(--sheet-width) * 1.5);
  pointer-events: none;
  transform-origin: top left;
  transform: perspective(800px) rotateZ(-13deg) rotateX(26deg) rotateY(-12deg);
  transform-style: preserve-3d;
  transition: transform 420ms ease;
}
.hero-showguide[aria-expanded="true"] .showguide-sheet {
  transform: perspective(800px) rotateZ(-5deg) rotateX(14deg) rotateY(-6deg);
}
.hero .floating-book,
.hero .floating-decor,
.hero .hero-showguide { animation: none; }
.showguide-column {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 25%;
  transform-style: preserve-3d;
}
.showguide-column .showguide-column {
  left: 100%;
  width: 100%;
  transform-origin: left center;
  transform: rotateY(var(--fold-angle));
  transition: transform 300ms ease-in-out var(--close-delay);
}
.hero-showguide[aria-expanded="true"] .showguide-column .showguide-column {
  transform: rotateY(0);
  transition-delay: var(--open-delay);
}
.showguide-panel {
  position: absolute;
  inset: 0 0 auto;
  height: 50%;
  background: #fff url('assets/edutech-1.webp') no-repeat;
  background-size: 400% 200%;
}
.showguide-panel:nth-child(2) {
  top: 50%;
  transform-origin: center top;
  transform: rotateX(-179deg);
  transition: transform 320ms ease-in-out;
}
.hero-showguide[aria-expanded="true"] .showguide-panel:nth-child(2) {
  transform: rotateX(0);
  transition-delay: 400ms;
}
.showguide-sheet > .showguide-column::after {
  content: '';
  position: absolute;
  inset: 0 0 50%;
  border-radius: 2px;
  background: #fff url('assets/edutech-fold-cover.webp') center / cover no-repeat;
  box-shadow: 1px 2px #f9fbfd, 2px 4px #b5c2cc, 3px 6px #edf2f6,
    4px 8px #98aab9, 6px 11px 9px #3454;
  transform: translateZ(10px);
  transition: opacity 120ms ease 620ms;
}
.hero-showguide[aria-expanded="true"] .showguide-sheet > .showguide-column::after {
  opacity: 0;
  transition-delay: 0ms;
}
@media (max-width: 700px) {
  .hero-showguide { --sheet-width: 144px; top: 65%; left: 43%; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-showguide { animation: none; }
  .hero-showguide .showguide-sheet, .showguide-column .showguide-column, .showguide-panel:nth-child(2),
  .showguide-sheet > .showguide-column::after { transition: none; }
}
