/* ==========================================================================
   HOME · 홈 (/)
   대담함은 히어로 한 곳에(살아 있는 실). 나머지는 글자, 여백, 가는 선.
   저절로 움직이는 것은 첫 화면의 첫 등장 하나뿐. 나머지 움직임은 스크롤·포인터에 답한다.
   ========================================================================== */

/* ---------- hero: 두 줄기가 한 점에서 ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  margin-top: calc(-1 * var(--header-h));
  height: 100vh; height: 100svh; min-height: 600px; max-height: 1440px;
  display: flex; align-items: center;
}
/* 실은 첫 화면 아래 가장자리에서 흐려진다(캔버스가 직접 그린다. 바탕을 칠하지 않아 아래 섹션과 이음매가 없다) */
.hero-field { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; pointer-events: none; }
.hero-scrim {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  /* 글 뒤는 실이 지나도 어둡게: 제목 대비 3:1, 본문 4.5:1 을 지킨다(tools/tests/home_contrast.py) */
  background: radial-gradient(48% 50% at 21% 53%, rgba(7, 10, 15, 0.76) 0%, rgba(7, 10, 15, 0.5) 45%, rgba(7, 10, 15, 0) 100%);
}
.hero-inner {
  width: min(100% - 32px, var(--wrap-wide)); margin-inline: auto;
  padding-top: var(--header-h);
}
.hero-title {
  font-family: var(--f-display-latin); font-weight: 400; font-style: normal;
  font-size: clamp(3.3rem, 7.4vw, 7rem); line-height: 0.95; letter-spacing: -0.022em;
  color: var(--text); width: fit-content;
}
.hero-title span { display: block; white-space: nowrap; }
.hero-sub {
  margin-top: clamp(22px, 2.4vw, 32px); max-width: 27em;
  font-size: clamp(1.04rem, 1.3vw, 1.2rem); line-height: 1.72; color: #BAC5D3;
}
.hero-cta { margin-top: clamp(28px, 3vw, 40px); display: flex; flex-wrap: wrap; gap: 12px; }
.hero-cta .btn-note { display: inline-block; max-width: 11em; overflow: hidden; text-overflow: ellipsis; font-weight: 520; opacity: .72; }

/* 첫 등장(홈의 유일한 자동 연출): 실이 끝에서부터 그려지는 동안 첫 줄이 초점을 잡고,
   두 줄기가 만나 불꽃이 번쩍이는 순간(1040ms)에 'connected.' 가 또렷해진다. 캔버스가 이 시각에 박자를 맞춘다 */
@media (prefers-reduced-motion: no-preference) {
  .hero-title span { animation: hero-word var(--d-5) var(--ease-expo) backwards; }
  .hero-title span:first-child { animation-delay: 540ms; }
  .hero-title span:last-child { animation-delay: 800ms; }
  .hero-sub { animation: hero-in 900ms var(--ease-expo) 1180ms backwards; }
  .hero-cta { animation: hero-in 900ms var(--ease-expo) 1300ms backwards; }
}
@keyframes hero-word {
  from { opacity: 0; filter: blur(14px); transform: translateY(0.12em); }
  to { opacity: 1; filter: blur(0); transform: none; }
}
@keyframes hero-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* 내려가면 첫 화면 글이 실 속으로 물러난다(스크롤에 묶인 애니메이션, JS 없음). 실은 캔버스가 매듭으로 조인다 */
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .hero-inner { animation: hero-out linear both; animation-timeline: scroll(root); animation-range: 0 70vh; }
    @keyframes hero-out { to { opacity: 0; transform: translateY(-36px); } }
  }
}

@media (max-width: 719px), (max-aspect-ratio: 19/20) {
  .hero { align-items: flex-end; min-height: 640px; }
  .hero-inner { padding-bottom: max(44px, 6svh); }
  .hero-scrim {
    background: linear-gradient(180deg, rgba(7, 10, 15, 0) 40%, rgba(7, 10, 15, 0.74) 58%, rgba(7, 10, 15, 0.8) 84%, rgba(7, 10, 15, 0) 100%);
  }
  .hero-title { font-size: clamp(3rem, 14.2vw, 5.6rem); }
  .hero-sub { max-width: 24em; }
}
@media (max-width: 420px) {
  .hero-cta .btn { flex: 1 1 auto; }
}

/* ---------- act: 히어로 다음은 조용하게 ---------- */
.act { position: relative; padding-block: clamp(84px, 10.5vw, 148px); }
:where(.act) p, :where(.note) dd { text-wrap: pretty; }
.act-lead { text-wrap: balance; }
.act-head { display: grid; gap: 18px; max-width: 44rem; margin-bottom: clamp(40px, 5.5vw, 72px); }
.act-title {
  font-family: var(--f-display); font-weight: var(--w-display);
  font-size: clamp(2.05rem, 3.7vw, 3.15rem); line-height: 1.22; letter-spacing: -0.02em; text-wrap: balance;
}
.act-lead { color: var(--text-2); font-size: clamp(1.02rem, 1.25vw, 1.12rem); line-height: 1.78; max-width: 34em; }

/* ---------- name: Ether · X · Xync ---------- */
.name-act { padding-top: clamp(112px, 14vw, 200px); }
.name-fig { position: relative; margin: 0; display: grid; }
.name-word {
  order: 2; position: relative;
  font-family: var(--f-display-latin); font-weight: 400; font-style: normal;
  font-size: clamp(4.4rem, 21vw, 20rem); line-height: 1; letter-spacing: -0.03em;
  color: var(--text); white-space: nowrap; justify-self: start;
}
.name-word .part { display: inline-block; }
.name-word .probe { display: inline-block; width: 0; height: 0; vertical-align: baseline; }
.name-notes { order: 1; margin: 0; display: contents; }
.name-notes .note { margin: 0; }
.note dt { font-family: var(--f-display-latin); font-size: 1.7rem; line-height: 1; letter-spacing: -0.01em; margin-bottom: 10px; }
.note dd { margin: 0; color: var(--text-2); font-size: 1rem; line-height: 1.7; max-width: 22em; }
.note-ether dt { color: var(--ether); }
.note-x dt { color: var(--spark); }
.note-xync dt { color: var(--xync); }
.name-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.name-lines .br { fill: none; stroke-width: 1.25; stroke-linecap: round; stroke-linejoin: round; }
.name-lines .br-ether { stroke: var(--ether); }
.name-lines .br-xync { stroke: var(--xync); }
.name-lines .ld { fill: none; stroke: rgba(234, 240, 247, 0.55); stroke-width: 1; }
.name-lines .dot { fill: #fff; }
.name-lines .halo { fill: url(#name-halo); }

/* 넓은 화면: 주석이 글자 위아래로, 가는 선으로 이어진다 */
@media (min-width: 900px) {
  .name-fig {
    grid-template-columns: var(--x-c, 57%) 1fr;
    grid-template-areas: "ether x" "word word" "gap xync";
    column-gap: 0;
  }
  .name-word { grid-area: word; margin-block: 34px 44px; }
  .note-ether { grid-area: ether; align-self: end; padding: 0 48px 0 24px; }
  .note-x { grid-area: x; align-self: end; padding-left: 24px; }
  .name-fig .note-xync { grid-area: xync; margin-left: calc(var(--xync-l, 50%) - var(--x-c, 57%)); padding-left: 24px; }
  .note-ether dd, .note-x dd, .note-xync dd { max-width: 21em; }
}
/* 좁은 화면: 단어 아래로 세 주석을 차례로 */
@media (max-width: 899px) {
  .name-fig { gap: 0; }
  .name-word { order: 0; margin-block: 30px 42px; font-size: min(27vw, 11rem); }
  .name-notes .note { order: 3; padding: 20px 0; border-top: 1px solid var(--line); }
  .note dt { font-size: 1.5rem; margin-bottom: 8px; }
}

/* ---------- map: 한 점에서 다섯 곳으로 ---------- */
.map { position: relative; max-width: 1180px; margin-inline: auto; }
.map-threads { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.map-threads path { fill: none; stroke-width: 1.3; stroke-linecap: round; transition: opacity var(--d-3), stroke-width var(--d-3); opacity: .55; }
.map-threads .t-ether { stroke: var(--ether); }
.map-threads .t-xync { stroke: var(--xync); }
.map-threads .t-ai { stroke: url(#map-ai); stroke-dasharray: 2 7; opacity: .75; }
.map[data-active] .map-threads path { opacity: .22; }
.map[data-active="library"] .map-threads [data-k="library"],
.map[data-active="games"] .map-threads [data-k="games"],
.map[data-active="apps"] .map-threads [data-k="apps"],
.map[data-active="community"] .map-threads [data-k="community"],
.map[data-active="ai"] .map-threads [data-k="ai"] { opacity: 1; stroke-width: 1.8; }
.map-core {
  position: absolute; width: 10px; height: 10px; border-radius: 50%; background: #fff;
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.06), 0 0 24px 6px rgba(255, 255, 255, 0.28);
}
.map-nodes { list-style: none; }
.node a { display: grid; gap: 6px; padding: 10px 0; border-radius: var(--r-sm); }
.node-name { font-size: 1.42rem; font-weight: 760; letter-spacing: -0.025em; line-height: 1.3; display: inline-flex; align-items: center; gap: 12px; }
.node-desc { color: var(--text-2); font-size: .98rem; line-height: 1.6; }
.node-fact { color: var(--text); font-size: .92rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.node-dot { width: 11px; height: 11px; border-radius: 50%; flex: none; }
.node-library .node-dot, .node-apps .node-dot { background: var(--ether); }
.node-games .node-dot, .node-community .node-dot { background: var(--xync); }
.node-ai .node-dot { background: transparent; border: 1.5px dashed var(--text-2); }
.node a:hover .node-name { color: #fff; }
.node a:hover .node-name, .node a:focus-visible .node-name { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }

@media (min-width: 900px) {
  .map { min-height: 600px; }
  .map-core { left: 50%; top: 47%; transform: translate(-50%, -50%); }
  .map-nodes { position: absolute; inset: 0; }
  .node { position: absolute; width: min(30%, 330px); }
  .node a { position: relative; }
  .node-dot { position: absolute; top: 19px; }
  .node-library { left: 0; top: 0; text-align: right; }
  .node-community { left: 0; bottom: 0; text-align: right; }
  .node-games { right: 0; top: 0; }
  .node-apps { right: 0; bottom: 0; }
  .node-library a, .node-community a { padding-right: 30px; }
  .node-library .node-dot, .node-community .node-dot { right: 0; }
  .node-games a, .node-apps a { padding-left: 30px; }
  .node-games .node-dot, .node-apps .node-dot { left: 0; }
  .node-ai { left: 50%; bottom: -18px; transform: translateX(-50%); width: 250px; text-align: center; }
  .node-ai a { padding-top: 30px; justify-items: center; }
  .node-ai .node-dot { left: 50%; top: 0; margin-left: -5.5px; }
  .node-library .node-desc, .node-community .node-desc, .node-games .node-desc, .node-apps .node-desc { max-width: 17em; }
  .node-library a, .node-community a { justify-items: end; }
}
@media (max-width: 899px) {
  .map { padding-left: 34px; }
  .map::before {
    content: ""; position: absolute; left: 5px; top: 6px; bottom: 36px; width: 1.5px;
    background: linear-gradient(180deg, #fff, var(--ether) 18%, var(--ether) 42%, var(--xync) 62%, var(--xync) 88%, rgba(255, 138, 102, 0));
    opacity: .6; transform-origin: top;
  }
  .map-threads { display: none; }
  .map-core { left: 0; top: 0; }
  .node a { position: relative; padding: 14px 0 22px; }
  .node-dot { position: absolute; left: -34px; top: 22px; }
  .map-nodes { padding-top: 26px; }
}

/* 지도는 하나의 스크롤 장면: 지도가 화면에 들어오는 동안 실이 한 점에서 다섯 곳으로 뻗고,
   실이 닿는 곳의 점이 켜진다. 지원하지 않으면(또는 움직임 줄이기) 다 이어진 정지 그림 */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .map { view-timeline: --map block; }
    .map-threads path:not(.t-ai) { stroke-dasharray: 1 1; animation: map-draw linear both; animation-timeline: --map; animation-range: entry 25% cover 40%; }
    .map-threads .t-ai { animation: map-ai linear both; animation-timeline: --map; animation-range: cover 34% cover 44%; }
    .map-core { animation: map-core linear both; animation-timeline: --map; animation-range: entry 15% cover 30%; }
    .node-dot { animation: map-dot linear both; animation-timeline: --map; animation-range: cover 30% cover 42%; }
    .node-ai .node-dot { animation-range: cover 38% cover 46%; }
    @keyframes map-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
    @keyframes map-ai { from { opacity: 0; } to { opacity: .75; } }
    @keyframes map-core {
      from { opacity: .3; box-shadow: 0 0 0 0 rgba(255, 255, 255, 0), 0 0 0 0 rgba(255, 255, 255, 0); }
      to { opacity: 1; }
    }
    @keyframes map-dot { 0%, 70% { opacity: .28; transform: scale(.55); } 100% { opacity: 1; transform: none; } }
    @media (max-width: 899px) {
      .map::before { animation: map-line linear both; animation-timeline: --map; animation-range: entry 30% cover 62%; }
      .node-dot { animation-timeline: view(); animation-range: entry 60% cover 30%; }
      .node-ai .node-dot { animation-range: entry 60% cover 30%; }
      @keyframes map-line { from { transform: scaleY(0); } to { transform: scaleY(1); } }
    }
  }
}

/* ---------- shelf: 고전 열두 권 ----------
   기본(휴대폰·터치·스크립트 없음): 가로로 넘기는 표지 줄.
   마우스가 있는 넓은 화면(.is-3d, home.js 가 켠다): 책등이 보이게 서 있는 입체 책장.
   가리키거나 초점이 가면 그 책이 앞으로 빠지며 표지를 보여 준다. 책 두께는 실제 분량에 비례한다 */
.shelf-stage { position: relative; }
.shelf-wrap { width: min(100% - 32px, var(--wrap-wide)); margin-inline: auto; }
.shelf {
  list-style: none; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: clamp(8px, 1vw, 14px);
  padding-bottom: 18px; position: relative;
}
.shelf::after { content: ""; position: absolute; left: -12px; right: -12px; bottom: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--line-2) 8%, var(--line-2) 92%, transparent); }
.book {
  display: block; position: relative; border-radius: 3px 5px 5px 3px;
  box-shadow: 0 18px 28px -18px rgba(0, 0, 0, 0.9), 0 2px 6px rgba(0, 0, 0, 0.35);
}
.book-body { display: block; position: relative; border-radius: inherit; overflow: hidden; }
.book-cover { width: 100%; height: auto; aspect-ratio: 2 / 3; object-fit: cover; }
/* 제본 쪽 접힌 자국: 표지 왼쪽 가까이 옅은 골 */
.book-body::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.32), rgba(255, 255, 255, 0.10) 2.6%, rgba(0, 0, 0, 0.12) 5%, rgba(255, 255, 255, 0) 9%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06) inset;
}
.book-spine, .book-pages { display: none; }
.book:focus-visible { outline-offset: 4px; }
.shelf-foot { width: min(100% - 32px, var(--wrap-wide)); margin: 28px auto 0; display: flex; align-items: center; gap: 28px; min-height: 64px; }
.shelf-caption { order: 2; flex: 1; color: var(--text-2); font-size: .98rem; line-height: 1.65; max-width: 46em; }
.shelf-caption b { color: var(--text); font-weight: 700; margin-right: 10px; }
.shelf-caption .meta { color: var(--text-3); margin-right: 10px; }

/* 표지는 서가·책 소개 페이지의 같은 표지와 이어진다(페이지 전환) */
.book[data-slug="the-great-gatsby"] .book-cover { view-transition-name: cover-the-great-gatsby; }
.book[data-slug="peloponnesian-war"] .book-cover { view-transition-name: cover-peloponnesian-war; }
.book[data-slug="origin-of-species"] .book-cover { view-transition-name: cover-origin-of-species; }
.book[data-slug="on-liberty"] .book-cover { view-transition-name: cover-on-liberty; }
.book[data-slug="moral-sentiments"] .book-cover { view-transition-name: cover-moral-sentiments; }
.book[data-slug="wealth-of-nations"] .book-cover { view-transition-name: cover-wealth-of-nations; }
.book[data-slug="crime-and-punishment"] .book-cover { view-transition-name: cover-crime-and-punishment; }
.book[data-slug="interpretation-of-dreams"] .book-cover { view-transition-name: cover-interpretation-of-dreams; }
.book[data-slug="thus-spoke-zarathustra"] .book-cover { view-transition-name: cover-thus-spoke-zarathustra; }
.book[data-slug="siddhartha"] .book-cover { view-transition-name: cover-siddhartha; }
.book[data-slug="meditations"] .book-cover { view-transition-name: cover-meditations; }
.book[data-slug="the-prince"] .book-cover { view-transition-name: cover-the-prince; }

/* 좁은 화면·터치: 가로로 넘기는 표지 줄 */
@media (max-width: 1099px), (hover: none), (pointer: coarse) {
  .shelf-wrap { width: 100%; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .shelf-wrap::-webkit-scrollbar { display: none; }
  .shelf { grid-auto-columns: clamp(128px, 32vw, 168px); width: max-content; padding: 12px max(16px, calc((100vw - var(--wrap)) / 2)) 22px; gap: 14px; }
  .shelf li { scroll-snap-align: start; scroll-margin-left: 16px; }
  .shelf::after { left: 16px; right: 16px; }
  .shelf-caption { display: none; }
  .shelf-foot { justify-content: flex-start; }
}
/* 넘기는 동안 표지가 아주 조금 돌아선다(넘기는 손에 답하는 움직임) */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    @media (max-width: 1099px), (hover: none), (pointer: coarse) {
      .shelf li { animation: book-turn linear both; animation-timeline: view(inline); }
      @keyframes book-turn {
        from { transform: perspective(900px) rotateY(16deg); }
        38%, 62% { transform: perspective(900px) rotateY(0deg); }
        to { transform: perspective(900px) rotateY(-16deg); }
      }
    }
  }
}

/* 입체 책장 */
.shelf.is-3d {
  --cw: 196px; --ch: 294px;
  display: flex; align-items: flex-end; gap: 0; width: max-content; margin-inline: auto;
  height: calc(var(--ch) + 52px); padding: 0 0 22px; padding-right: var(--shift-max, 180px);
}
.shelf.is-3d::after {
  left: -28px; right: -28px; height: 12px; bottom: 10px;
  background: linear-gradient(180deg, rgba(148, 170, 197, 0.16), rgba(148, 170, 197, 0.04) 30%, rgba(0, 0, 0, 0) 100%);
  border-top: 1px solid var(--line-2);
}
.shelf.is-3d li {
  position: relative; flex: none; width: calc(var(--t) + 5px); height: var(--ch);
  transition: transform var(--d-4) var(--ease-expo);
}
.shelf.is-3d li.is-open ~ li { transform: translateX(var(--shift, 180px)); }
@media (max-width: 1239px) { .shelf.is-3d { --cw: 176px; --ch: 264px; } .spine-title { font-size: 13.5px; } }
.shelf.is-3d .book {
  position: absolute; inset: 0; box-shadow: none; border-radius: 0;
  perspective: 1500px; perspective-origin: var(--po, 50%) 34%;
}
/* 책 그림자: 선반 위로 떨어지는 부드러운 그림자. 빠진 책은 그림자가 커지고 흐려진다 */
.shelf.is-3d .book::before {
  content: ""; position: absolute; left: calc(var(--t) * -0.1); bottom: -8px; width: calc(var(--t) * 1.3); height: 14px;
  background: radial-gradient(50% 50% at 50% 50%, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0));
  transition: transform var(--d-4) var(--ease-expo), opacity var(--d-4) var(--ease-expo);
  transform-origin: left center;
}
.shelf.is-3d li.is-open .book::before { transform: translateX(6px) scaleX(4.4) scaleY(1.5); opacity: .8; }
.shelf.is-3d .book-body {
  position: absolute; left: calc(var(--t) / 2 + 2px); bottom: 0; width: var(--cw); height: var(--ch);
  overflow: visible; border-radius: 0;
  transform-style: preserve-3d; transform-origin: 0 50% 0;
  transform: rotateY(var(--ry, 80deg));
  transition: transform var(--d-4) var(--ease-expo);
}
.shelf.is-3d .book-body::after { display: none; }
.shelf.is-3d .book-cover {
  position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto;
  transform: translateZ(calc(var(--t) / 2)); backface-visibility: hidden;
  border-radius: 1px 4px 4px 1px;
}
.shelf.is-3d .book-spine {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  position: absolute; left: 0; top: 0; width: var(--t); height: 100%;
  padding: 26px 0 30px; overflow: hidden;
  transform-origin: left center; transform: translateZ(calc(var(--t) / -2)) rotateY(-90deg);
  backface-visibility: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0) 12px, rgba(255, 255, 255, 0.22) 12px, rgba(255, 255, 255, 0.22) 13px, rgba(255, 255, 255, 0) 13px),
    linear-gradient(0deg, rgba(255, 255, 255, 0) 12px, rgba(255, 255, 255, 0.22) 12px, rgba(255, 255, 255, 0.22) 13px, rgba(255, 255, 255, 0) 13px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.34), rgba(255, 255, 255, 0.08) 24%, rgba(255, 255, 255, 0.02) 50%, rgba(0, 0, 0, 0.16) 78%, rgba(0, 0, 0, 0.42)),
    var(--spine);
  color: rgba(255, 255, 255, 0.94);
}
/* 세로쓰기 규칙: 줄이 여러 개가 되면 왼쪽 줄부터 오른쪽 줄로 읽힌다(vertical-lr). 지은이는 한 줄, 제목은 낱말 단위로만 줄을 바꾼다 */
.spine-title {
  writing-mode: vertical-lr; font-family: var(--f-display); font-weight: var(--w-display-strong);
  font-size: 14.5px; line-height: 1.12; letter-spacing: 0.08em; max-height: 200px; text-wrap: balance;
  word-break: keep-all; overflow-wrap: normal; min-height: 0;
}
.spine-author {
  margin-top: auto; flex: none; white-space: nowrap; writing-mode: vertical-lr; font-size: 11px; font-weight: 560; letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.72);
}
.shelf.is-3d .book-pages {
  display: block; position: absolute; right: 0; top: 3px; bottom: 3px; width: calc(var(--t) - 3px);
  transform-origin: right center; transform: translateZ(calc(var(--t) / -2 + 1.5px)) rotateY(90deg);
  background:
    repeating-linear-gradient(90deg, rgba(90, 80, 60, 0.12) 0 1px, rgba(0, 0, 0, 0) 1px 3px),
    linear-gradient(90deg, #CFC7B4, #E9E2D0 40%, #DDD5C2);
  backface-visibility: hidden;
}
.shelf.is-3d li.is-open .book-body { transform: translate3d(2px, -10px, 64px) rotateY(-7deg); }
.shelf.is-3d .book:focus-visible { outline: none; }
.shelf.is-3d .book:focus-visible .book-cover { outline: 2px solid var(--ether); outline-offset: 5px; }
.shelf-stage.is-3d { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: end; gap: clamp(36px, 4vw, 72px); width: min(100% - 32px, var(--wrap-wide)); margin-inline: auto; }
.shelf-stage.is-3d .shelf-wrap, .shelf-stage.is-3d .shelf-foot { width: auto; margin: 0; }
.shelf-stage.is-3d .shelf-foot { flex-direction: column; align-items: flex-start; gap: 26px; padding-bottom: 30px; min-height: 0; }
.shelf-stage.is-3d .shelf-caption { order: 0; flex: none; max-width: 26em; min-height: 11.5em; display: flex; flex-direction: column; justify-content: flex-end; }
.shelf-stage.is-3d .shelf-caption b {
  display: block; margin: 0 0 10px; font-family: var(--f-display); font-weight: var(--w-display);
  font-size: clamp(1.7rem, 2.3vw, 2.2rem); line-height: 1.2; letter-spacing: -0.02em; text-wrap: balance;
}
.shelf-stage.is-3d .shelf-caption .meta { display: block; margin: 0 0 14px; color: var(--text-2); font-size: .95rem; }

/* ---------- pulse: 커뮤니티의 지금 ---------- */
.pulse-grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(40px, 7vw, 110px); align-items: start; }
.pulse-head .act-lead { margin-top: 18px; }
.pulse-stats { margin-top: 18px; color: var(--text-2); font-size: .95rem; line-height: 1.7; }
.pulse-stats .n { color: var(--text); font-weight: 650; font-variant-numeric: tabular-nums; }
.pulse-go { margin-top: 30px; }
.posts { list-style: none; border-top: 1px solid var(--line); }
.post { border-bottom: 1px solid var(--line); }
.post a { display: grid; gap: 8px; padding: 20px 4px 20px 0; }
.post-board { font-size: .84rem; color: var(--text-3); font-weight: 600; }
.post-title { font-size: 1.12rem; font-weight: 680; letter-spacing: -0.02em; line-height: 1.45; color: var(--text); overflow-wrap: anywhere; }
.post a:hover .post-title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.post-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 14px; color: var(--text-3); font-size: .86rem; }
.post-meta .by { display: inline-flex; align-items: center; gap: 8px; color: var(--text-2); }
.post-meta .cm { display: inline-flex; align-items: center; gap: 5px; font-variant-numeric: tabular-nums; }
.posts.is-loading .post { padding: 22px 0; display: grid; gap: 12px; }
.sk-a { height: 18px; width: 72%; }
.sk-b { height: 12px; width: 38%; }
.invite {
  position: relative; padding: clamp(28px, 4vw, 44px); border-radius: var(--r-lg);
  border: 1px dashed var(--line-input); background: rgba(255, 138, 102, 0.035);
}
.invite h3 { font-size: 1.45rem; letter-spacing: -0.025em; line-height: 1.35; }
.invite p { margin-top: 10px; color: var(--text-2); max-width: 30em; }
.invite .btn { margin-top: 24px; }
.invite.is-quiet { background: rgba(255, 255, 255, 0.02); border-style: solid; border-color: var(--line); }
@media (max-width: 899px) {
  .pulse-grid { grid-template-columns: 1fr; }
}

/* ---------- One Page English ---------- */
.ope-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(40px, 8vw, 120px); align-items: center; }
.ope-state { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; color: var(--text-2); font-size: .92rem; }
.ope-name { margin-top: 22px; font-family: var(--f-display-latin); font-weight: 400; font-size: clamp(3rem, 6.4vw, 5.6rem); line-height: 0.98; letter-spacing: -0.02em; }
.ope-tagline { margin-top: 22px; font-size: clamp(1.1rem, 1.5vw, 1.3rem); line-height: 1.65; max-width: 23em; color: var(--text); font-weight: 520; letter-spacing: -0.015em; }
.ope-price { margin-top: 34px; padding-top: 26px; border-top: 1px solid var(--line); max-width: 30rem; }
.price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 14px; }
.price-num { font-weight: 760; font-size: clamp(1.8rem, 2.7vw, 2.2rem); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; color: var(--ether); }
.price-kind { font-size: 1.08rem; font-weight: 700; }
.price-note { margin-top: 10px; color: var(--text-2); font-size: .96rem; line-height: 1.72; }
.ope-links { margin-top: 32px; }

.phone { margin: 0; position: relative; width: clamp(236px, 22vw, 290px); justify-self: center; }
.phone-body {
  position: relative; padding: 10px; border-radius: 42px;
  background: linear-gradient(160deg, #2A3441, #10151C 38%, #0B0F15 70%, #202833);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08) inset, 0 0 0 1px rgba(0, 0, 0, 0.6), 0 40px 80px -30px rgba(0, 0, 0, 0.95), 0 24px 48px -28px rgba(99, 242, 210, 0.22);
}
.phone-body::before, .phone-body::after { content: ""; position: absolute; right: -2px; width: 3px; border-radius: 2px; background: #1C232D; }
.phone-body::before { top: 22%; height: 11%; }
.phone-body::after { top: 36%; height: 7%; }
.phone-screen { position: relative; border-radius: 32px; overflow: hidden; background: #111715; padding-top: 22px; }
.phone-screen::before { content: ""; position: absolute; top: 8px; left: 50%; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; background: #05080A; box-shadow: 0 0 0 1.5px #1A2220; }
.phone-screen img { width: 100%; height: auto; }
.phone-screen::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.5) inset; pointer-events: none; }
@media (max-width: 859px) {
  .ope-grid { grid-template-columns: 1fr; }
  .phone { width: min(72vw, 270px); margin-top: 8px; }
}

/* ---------- Ether & Xync: 같은 질문, 다른 대답 ---------- */
.ai-act .act-head { margin-inline: auto; text-align: center; justify-items: center; }
.fork { margin: 0 auto; max-width: 1000px; display: grid; justify-items: center; }
.fork-note { order: 0; font-size: .88rem; color: var(--text-3); font-weight: 600; }
.fork-q {
  order: 1; text-wrap: balance; margin-top: 12px; text-align: center; max-width: 24em;
  font-size: clamp(1.25rem, 2.1vw, 1.62rem); font-weight: 650; letter-spacing: -0.028em; line-height: 1.5;
}
.fork-lines { order: 2; display: block; width: 100%; height: 76px; margin-top: 22px; overflow: visible; }
.fork-lines path { fill: none; stroke-width: 1.3; vector-effect: non-scaling-stroke; }
.fork-lines .fl-ether { stroke: var(--ether); }
.fork-lines .fl-xync { stroke: var(--xync); }
.fork-answers { order: 3; width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); }
.answer { padding-top: 22px; border-top: 1.5px solid; }
.answer-ether { border-color: var(--ether); }
.answer-xync { border-color: var(--xync); }
.who { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.who-name { font-family: var(--f-display-latin); font-size: 2.1rem; line-height: 1; }
.answer-ether .who-name { color: var(--ether); }
.answer-xync .who-name { color: var(--xync); }
.who-type { font-size: .86rem; color: var(--text-3); font-weight: 600; }
.say { margin-top: 14px; font-size: 1.06rem; line-height: 1.8; color: var(--text); max-width: 25em; }
.ai-go { margin-top: clamp(44px, 5vw, 64px); text-align: center; }
@media (max-width: 719px) {
  .fork { justify-items: start; }
  .fork-q { text-align: left; }
  .fork-lines { display: none; }
  .fork-answers { grid-template-columns: 1fr; gap: 34px; margin-top: 30px; }
  .ai-act .act-head { text-align: left; justify-items: start; margin-inline: 0; }
  .ai-go { text-align: left; }
}

/* ---------- closing ---------- */
.close-act { padding-bottom: clamp(88px, 10vw, 140px); }
.close-inner { text-align: center; display: grid; justify-items: center; }
.close-point {
  width: 9px; height: 9px; border-radius: 50%; background: #fff; margin-bottom: 36px;
  box-shadow: 0 0 22px 5px rgba(255, 255, 255, 0.3), -60px 0 60px -20px rgba(99, 242, 210, 0.5), 60px 0 60px -20px rgba(255, 138, 102, 0.5);
}
.close-line {
  font-family: var(--f-display); font-weight: var(--w-display);
  font-size: clamp(2.05rem, 4.2vw, 3.3rem); line-height: 1.28; letter-spacing: -0.02em; max-width: 16em;
}
.close-sub { margin-top: 20px; color: var(--text-2); font-size: 1.06rem; line-height: 1.75; max-width: 36em; }
@media (min-width: 560px) { .close-sub span { display: block; } }
.close-cta { margin-top: 34px; }

@media (prefers-reduced-motion: reduce) {
  .hero-title span, .hero-sub, .hero-cta, .hero-inner { animation: none; }
  .shelf.is-3d li, .shelf.is-3d .book-body, .shelf.is-3d .book::before { transition: none; }
}
