/* Bold display: Helvetica Neue Condensed Black (installed on most Macs).
   Small labels: IBM Plex Mono. Body: Helvetica Neue. */
@font-face {
  font-family: "HN Condensed Black";
  src: local("Helvetica Neue Condensed Black"),
       local("HelveticaNeue-CondensedBlack"),
       local("HelveticaNeueCondensedBlack"),
       local("Helvetica Neue Condensed Bold");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f4eee3;
  --ink: #2c2722;
  --muted: #6f655b;
  --line: rgba(44, 39, 34, 0.16);
  --coral: #d4654e;
  --gold: #c98a3b;
  --cream: #fbf6ee;
  --shadow: 0 30px 70px rgba(70, 42, 18, 0.16);
  --display: "HN Condensed Black", "Helvetica Neue Condensed Black", "HelveticaNeue-CondensedBlack", "Arial Narrow", "Helvetica Neue", Helvetica, sans-serif;
  --body: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

.display {
  font-family: var(--display);
  font-weight: 900;
  font-stretch: condensed;
  letter-spacing: -0.02em;
}
.mono {
  font-family: var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 500;
}

.entry {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: #f7f1e6;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 28px 32px 36px;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}
.entry.is-gone { opacity: 0; visibility: hidden; pointer-events: none; }
.entry-top, .entry-bot {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  color: var(--muted);
}
.entry-mid { display: grid; place-items: center; text-align: center; }
.pct {
  font-family: var(--display);
  font-size: clamp(72px, 14vw, 180px);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 0.8;
}
.pct span { font-size: 0.4em; }
.entry-lines { margin-top: 22px; color: var(--muted); display: grid; gap: 6px; }
.enter-btn {
  margin-top: 34px;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  border-radius: 999px;
  padding: 14px 34px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 13px;
  font-family: var(--display);
  font-weight: 900;
  opacity: 0;
  transform: translateY(8px);
  transition: 0.45s ease;
}
.enter-btn.is-on { opacity: 1; transform: none; }
.enter-btn:hover { background: var(--ink); color: var(--cream); }

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 18px 28px;
  mix-blend-mode: multiply;
}
.brand {
  font-family: var(--display);
  font-weight: 900;
  letter-spacing: -0.03em;
  font-size: 22px;
}
.brand i { font-style: normal; color: var(--coral); }
.indicator {
  justify-self: center;
  border: 1px solid var(--line);
  background: rgba(251, 246, 238, 0.78);
  backdrop-filter: blur(8px);
  border-radius: 999px;
  padding: 8px 14px;
  min-width: 220px;
  text-align: center;
}
.nav-right { justify-self: end; display: flex; gap: 10px; align-items: center; }
.chip {
  border: 1px solid var(--line);
  background: rgba(251, 246, 238, 0.78);
  backdrop-filter: blur(8px);
  border-radius: 999px;
  padding: 8px 14px;
  color: var(--ink);
}

.menu {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(244, 238, 227, 0.97);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  padding: 88px 64px 32px;
  opacity: 0;
  visibility: hidden;
  transition: 0.45s ease;
  overflow: auto;
}
.menu.is-open { opacity: 1; visibility: visible; }
.menu > div { max-height: calc(100vh - 120px); overflow: auto; }
.menu a {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 1px solid var(--line);
  padding: 8px 0;
  font-family: var(--display);
  font-size: clamp(18px, 2vw, 28px);
  font-weight: 900;
  letter-spacing: -0.03em;
}
.menu a span { font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; color: var(--muted); }
.menu a:hover { color: var(--coral); }
.menu-side { align-self: end; color: var(--muted); display: grid; gap: 10px; }
.menu-close { position: absolute; top: 22px; right: 28px; }

.hero {
  position: relative;
  min-height: 100vh;
  color: #fffaf3;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(70, 46, 18, 0.08), rgba(48, 28, 10, 0.18) 42%, rgba(36, 22, 10, 0.55)),
    url("assets/city.jpg") center 42% / cover no-repeat;
  transform: scale(1.06);
}
.z-loop { animation: kenburns 22s ease-in-out infinite alternate, dissolve 9s ease-in-out infinite; }
@keyframes kenburns { from { transform: scale(1.04); } to { transform: scale(1.14) translate3d(0, -1.4%, 0); } }
@keyframes dissolve { 0%, 100% { opacity: 1; } 50% { opacity: 0.78; } }
.z-hover { transition: transform 1.6s ease; }
.z-hover:hover, .window:hover .z-hover, .frame:hover .z-hover, figure:hover .z-hover { transform: scale(1.08); }
.z-small { transition: transform 0.55s ease; }
.z-small:hover, .window:hover .z-small, .frame:hover .z-small, figure:hover .z-small { transform: scale(1.03); }
.z-gallery { transition: transform 0.8s ease; }
.z-gallery:hover, .window:hover .z-gallery, .frame:hover .z-gallery, figure:hover .z-gallery { transform: scale(1.05); }
.hero-inner {
  position: relative;
  z-index: 1;
  width: min(1440px, calc(100% - 64px));
  margin: 0 auto 54px;
}
.kicker { opacity: 0.86; margin-bottom: 18px; }
h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(64px, 10vw, 156px);
  line-height: 0.82;
  letter-spacing: -0.03em;
  max-width: 12ch;
}
.hero-row {
  margin-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
}
.hero-note { max-width: 380px; color: rgba(255,250,243,0.9); line-height: 1.5; font-size: 16px; }
.discover {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border-radius: 999px;
  background: var(--cream);
  color: var(--ink);
  padding: 14px 22px;
  font-family: var(--display);
  font-weight: 900;
  letter-spacing: 0.08em;
  font-size: 16px;
}
.discover:hover { background: var(--ink); color: var(--cream); }

.marquee { background: var(--ink); color: var(--cream); overflow: hidden; white-space: nowrap; }
.marquee-track { display: inline-block; padding: 14px 0; animation: tick 32s linear infinite; }
.marquee b {
  font-family: var(--display);
  font-weight: 900;
  letter-spacing: 0.08em;
  font-size: 15px;
  margin: 0 22px;
}
.marquee i { color: var(--gold); font-style: normal; }
@keyframes tick { to { transform: translateX(-50%); } }

.section { position: relative; padding: 88px 0 40px; overflow: visible; }
.hero { overflow: visible; }
.wrap { width: min(1320px, calc(100% - 64px)); margin: 0 auto; }
.sec-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 18px;
}
.sec-head h2, .book h1, .page-title {
  margin: 8px 0 0;
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(48px, 6vw, 88px);
  letter-spacing: -0.03em;
  line-height: 0.84;
}

.windows {
  display: flex;
  gap: 10px;
  height: 70vh;
  min-height: 520px;
}
.window {
  position: relative;
  flex: 0.55 1 0;
  min-width: 0;
  border-radius: 18px;
  overflow: hidden;
  cursor: pointer;
  background: #efe6d6;
  transition: flex 0.7s cubic-bezier(.2,.8,.2,1);
}
.window.is-open { flex: 3.4 1 0; cursor: default; }
.window img.cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  transition: width 0.7s cubic-bezier(.2,.8,.2,1), transform 0.8s ease;
}
.window:hover img.cover { transform: scale(1.05); }
.window.is-open img.cover { width: 54%; }
.window .shade {
  position: absolute;
  inset: auto 0 0 0;
  padding: 16px;
  background: linear-gradient(transparent, rgba(36, 22, 10, 0.55));
  color: #fffaf3;
  font-family: var(--display);
  font-weight: 900;
  font-size: 26px;
  letter-spacing: -0.03em;
  transition: opacity 0.35s;
}
.window.is-open .shade { opacity: 0; }
.panel {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 46%;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: #fbf6ee;
  opacity: 0;
  pointer-events: none;
  transform: translateX(12px);
  transition: opacity 0.45s ease 0.15s, transform 0.45s ease 0.15s;
}
.window.is-open .panel { opacity: 1; transform: none; pointer-events: auto; }
.panel h3 {
  margin: 6px 0 10px;
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(34px, 3.4vw, 58px);
  letter-spacing: -0.03em;
  line-height: 0.86;
}
.panel p { margin: 0 0 16px; line-height: 1.5; color: #433d36; }
.panel .row { display: flex; justify-content: space-between; align-items: center; gap: 14px; width: 100%; flex-wrap: wrap; }
.panel .title-banner {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  object-position: center;
  background: transparent;
  border-radius: 12px;
}
.banner-link { display: block; width: 100%; overflow: hidden; border-radius: 12px; margin-bottom: 12px; }
.banner-link .title-banner { width: 100%; height: auto; margin: 0; }
.dots { display: flex; gap: 8px; margin: 0 0 14px; }
.dots button {
  width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid var(--line); background: transparent;
  font-family: var(--mono); font-size: 11px; color: var(--ink);
}
.dots button.on { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.play {
  font-family: var(--display);
  font-weight: 900;
  letter-spacing: 0.03em;
  background: var(--ink);
  color: var(--cream);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 15px;
}
.play:hover { background: var(--coral); }
.book-card {
  display: block;
  background: #f7f1e6;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.book-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.book-card img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  object-position: center 42%;
  background: #f3ecdf;
}
.book-card .meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  padding: 16px 18px 18px;
}
.book-card h3 {
  margin: 4px 0 0;
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(32px, 3vw, 46px);
  letter-spacing: -0.03em;
  line-height: 0.86;
}
.book-card .go { color: var(--coral); }
.catalog .lead { grid-column: 1 / -1; }
.catalog .lead img { height: 460px; object-position: center 46%; }

.clouds {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(420px 180px at 12% 18%, rgba(255,255,255,0.7), transparent 70%),
    radial-gradient(520px 220px at 80% 8%, rgba(255, 236, 205, 0.85), transparent 70%),
    radial-gradient(380px 160px at 70% 78%, rgba(255,255,255,0.55), transparent 70%);
}
.drop {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 42px;
  align-items: center;
  padding: 54px 0;
  border-bottom: 1px solid var(--line);
}
.drop.reverse { grid-template-columns: 1.18fr 0.82fr; }
.drop.reverse .copy { order: 2; }
.num { color: var(--coral); margin-bottom: 10px; }
.drop h3 {
  margin: 0 0 18px;
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(52px, 6vw, 96px);
  letter-spacing: -0.03em;
  line-height: 0.82;
}
.drop .meta { display: grid; gap: 7px; color: var(--muted); margin-bottom: 18px; }
.drop .meta b { color: var(--ink); font-weight: 500; }
.drop p { margin: 0 0 22px; max-width: 42ch; line-height: 1.55; color: #433d36; font-size: 16px; }
.text-link {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 3px;
  font-family: var(--display);
  font-weight: 900;
  letter-spacing: 0.04em;
  font-size: 16px;
}
.frame {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  min-height: 520px;
  box-shadow: var(--shadow);
  background: #e7d7c2;
}
.frame img { width: 100%; height: 620px; object-fit: cover; }
.frame .tag {
  position: absolute;
  left: 16px;
  top: 16px;
  background: rgba(251,246,238,0.88);
  border-radius: 999px;
  padding: 8px 12px;
}
.dotline {
  position: absolute;
  left: 46%;
  top: 180px;
  bottom: 80px;
  border-left: 1px dashed rgba(44,39,34,0.25);
  pointer-events: none;
}
.mission {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 20px 0 10px;
}
.logo-card {
  background: #f7f1e6 url("assets/ai-and-me.jpg") center 42% / cover no-repeat;
  min-height: 520px;
  border-radius: 28px;
  box-shadow: var(--shadow);
}
.mission h2 {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(42px, 4.6vw, 72px);
  letter-spacing: -0.03em;
  line-height: 0.86;
  margin: 12px 0 18px;
}
.mission p { line-height: 1.6; color: #433d36; font-size: 17px; max-width: 46ch; }
.stats { display: flex; gap: 28px; margin-top: 28px; }
.stats strong {
  display: block;
  font-family: var(--display);
  font-weight: 900;
  font-size: 34px;
  letter-spacing: -0.03em;
}
.stats span { color: var(--muted); }
.gallery {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 0.9fr;
  grid-template-rows: 280px 280px;
  gap: 14px;
}
.gallery figure {
  margin: 0;
  border-radius: 22px;
  overflow: hidden;
  position: relative;
  background: #e6d8c6;
}
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery .wide { grid-column: 1 / 2; grid-row: 1 / 3; }
.gallery figcaption {
  position: absolute;
  left: 14px;
  bottom: 12px;
  background: rgba(251,246,238,0.88);
  border-radius: 999px;
  padding: 7px 11px;
}
.chip.is-on { background: var(--ink); color: var(--cream); }
.mote {
  position: fixed;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff 0, #f0c27a 40%, transparent 70%);
  pointer-events: none;
  z-index: 50;
  mix-blend-mode: multiply;
  transform: translate(-50%, -50%);
}

.cast-floor {
  position: relative;
  margin-top: 8px;
  padding: 28px 8px 18px;
  background:
    linear-gradient(#d8c193, #d8c193) 0 86% / 100% 18px no-repeat,
    linear-gradient(#b99f6c, #b99f6c) 0 86% / 100% 3px no-repeat;
}
.cast {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 18px 10px;
  align-items: end;
}
.cast-bot {
  text-align: center;
  cursor: pointer;
  outline: none;
}
.cast-stage {
  height: 240px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  position: relative;
  overflow: visible;
  padding-top: 28px;
}
.cast-bot { overflow: visible; }
.cast-windows .window.is-open .panel { overflow: visible; }
.cast-windows .window.is-open .panel .cast-bot,
.cast-windows .window.is-open .panel .cast-stage { overflow: visible; }
.cast-bot.fly .cast-stage { height: 230px; align-items: center; }
.cast-windows { height: 72vh; min-height: 560px; }
.cast-windows .window.is-open { flex: 5.4 1 0; }
.cast-windows .window.is-open .cover-box { width: 38%; }
.cast-windows .window.is-open .panel {
  width: 62%;
  overflow: auto;
}
.cast-windows .window.is-open .panel p {
  overflow: visible;
  max-width: none;
}
.cover-box {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #f3ecdf;
  pointer-events: none;
  transition: width 0.7s cubic-bezier(.2,.8,.2,1);
}
.window.is-open .cover-box { width: 54%; }
.robot-big {
  position: absolute;
  left: var(--x, 50%);
  top: 50%;
  height: var(--size, 72%);
  width: auto;
  max-width: 92%;
  object-fit: contain;
  transform: translate(-50%, -50%) scaleX(var(--sx, 1)) scaleY(var(--sy, 1)) rotate(var(--rot, 0deg));
  transform-origin: center center;
  pointer-events: auto;
}
.robot-big.m1:hover { animation: motion1 3.6s ease-in-out infinite; }
.robot-big.m2:hover { animation: motion2 0.6s cubic-bezier(.3,1.55,.45,1); }
@keyframes motion1 {
  0%, 100% { transform: translate(-50%, -50%) scaleX(var(--sx, 1)) scaleY(var(--sy, 1)) rotate(var(--rot, 0deg)); }
  50% { transform: translate(-50%, calc(-50% - 8px)) scaleX(var(--sx, 1)) scaleY(var(--sy, 1)) rotate(calc(var(--rot, 0deg) - 1deg)); }
}
@keyframes motion2 {
  0% { transform: translate(-50%, -50%) scaleX(var(--sx, 1)) scaleY(var(--sy, 1)) rotate(var(--rot, 0deg)); }
  35% { transform: translate(-50%, calc(-50% - 22px)) scaleX(var(--sx, 1)) scaleY(var(--sy, 1)) rotate(calc(var(--rot, 0deg) - 8deg)); }
  70% { transform: translate(-50%, -50%) scaleY(0.94) scaleX(var(--sx, 1)) rotate(var(--rot, 0deg)); }
  100% { transform: translate(-50%, -50%) scaleX(var(--sx, 1)) scaleY(var(--sy, 1)) rotate(var(--rot, 0deg)); }
}
  35% { transform: translateX(-50%) translateY(-16%) scaleX(var(--sx, 1)) scaleY(var(--sy, 1)) rotate(calc(var(--rot, 0deg) - 6deg)); }
  70% { transform: translateX(-50%) translateY(0) scaleY(0.94) scaleX(var(--sx, 1)) rotate(var(--rot, 0deg)); }
  100% { transform: translateX(-50%) scaleX(var(--sx, 1)) scaleY(var(--sy, 1)) rotate(var(--rot, 0deg)); }
}
.floater { position: absolute; z-index: 30; pointer-events: auto; cursor: grab; touch-action: none; margin: 0; }
.floater.is-drag { cursor: grabbing; z-index: 35; }
.floater.is-drag img { animation: none !important; }
.floater img {
  pointer-events: auto;
  height: var(--h, 160px);
  width: auto;
  display: block;
  transform: scaleX(var(--sx, 1)) scaleY(var(--sy, 1)) rotate(var(--rot, 0deg));
  filter: drop-shadow(0 10px 8px rgba(44,39,34,.16));
}
.floater.m1:hover img { animation: motion1b 3.6s ease-in-out infinite; }
.floater.m2:hover img { animation: motion2b 0.6s cubic-bezier(.3,1.55,.45,1); }
@keyframes motion1b {
  0%, 100% { transform: scaleX(var(--sx, 1)) scaleY(var(--sy, 1)) rotate(var(--rot, 0deg)); }
  50% { transform: translateY(-8px) scaleX(var(--sx, 1)) scaleY(var(--sy, 1)) rotate(calc(var(--rot, 0deg) - 1deg)); }
}
@keyframes motion2b {
  0% { transform: scaleX(var(--sx, 1)) scaleY(var(--sy, 1)) rotate(var(--rot, 0deg)); }
  35% { transform: translateY(-22%) scaleX(var(--sx, 1)) scaleY(var(--sy, 1)) rotate(calc(var(--rot, 0deg) - 8deg)); }
  70% { transform: translateY(0) scaleY(0.94) scaleX(var(--sx, 1)) rotate(var(--rot, 0deg)); }
  100% { transform: scaleX(var(--sx, 1)) scaleY(var(--sy, 1)) rotate(var(--rot, 0deg)); }
}
.board-stage {
  position: relative;
  min-height: 72vh;
  border-radius: 24px;
  background: #f7f1e6;
  border: 1px dashed #d8cbb8;
  overflow: hidden;
}
.board-bg-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  pointer-events: none;
}
.board-rail {
  position: absolute;
  top: 12px;
  right: 12px;
  bottom: 12px;
  width: 96px;
  overflow: auto;
  background: rgba(251, 246, 238, 0.94);
  border-radius: 18px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 6;
}
.board-rail button { border: 0; background: transparent; padding: 0; cursor: grab; }
.board-rail img { width: 100%; height: 68px; object-fit: contain; }
.sticker { position: absolute; cursor: grab; z-index: 2; touch-action: none; }
.sticker-spin { transform: scale(var(--scale, 1)) rotate(var(--rot, 0deg)); transform-origin: center center; }
.sticker img { height: 170px; width: auto; pointer-events: none; filter: drop-shadow(0 10px 8px rgba(44,39,34,.16)); animation: motion1b 3.6s ease-in-out infinite; }
.sticker:hover img { animation: motion2b 0.55s cubic-bezier(.3, 1.55, .45, 1) infinite; }
.sticker .h { position: absolute; width: 16px; height: 16px; border-radius: 50%; border: 2px solid #fff; pointer-events: auto; padding: 0; z-index: 3; }
.sticker .h.rot { top: 50%; right: -18px; transform: translateY(-50%); cursor: grab; background: #d4654e; }
.sticker .h.scale { right: -8px; bottom: -8px; cursor: nwse-resize; background: #2c2722; }
.board-clear { position: absolute; left: 16px; bottom: 16px; z-index: 6; }
.board-bg { position: absolute; left: 16px; bottom: 62px; z-index: 6; }
.board-picker {
  position: absolute;
  left: 16px;
  bottom: 108px;
  z-index: 7;
  display: none;
  width: 220px;
  max-height: 280px;
  overflow: auto;
  background: #fbf6ee;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 8px;
}
.board-picker.is-open { display: grid; gap: 8px; }
.board-picker button { border: 0; background: transparent; padding: 0; border-radius: 10px; overflow: hidden; }
.board-picker img { width: 100%; height: 72px; object-fit: cover; display: block; }
.panel { overflow: hidden; }
.cast-windows .window.is-open .panel { overflow: auto; }
.cast-stage { overflow: visible; }
.panel .cast-bot { margin: 0 0 10px; }
.cast-stage { transform: scaleX(var(--sx, 1)) scaleY(var(--sy, 1)) rotate(var(--rot, 0deg)); transform-origin: center bottom; }
.cast-bot img {
  height: var(--h, 190px);
  width: auto;
  max-width: 100%;
  object-fit: contain;
  transform-origin: 50% 100%;
  animation: var(--move, bob) var(--dur, 4.5s) ease-in-out var(--delay, 0s) infinite;
  filter: drop-shadow(0 8px 0 rgba(44, 39, 34, 0.08));
}
.cast-bot.fly img { transform-origin: 50% 50%; }
.cast-bot.is-hop img { animation: pop var(--pop, 0.55s) cubic-bezier(.3, 1.55, .45, 1) 1; }
.cast-bot h3 {
  margin: 8px 0 0;
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(22px, 2vw, 32px);
  letter-spacing: -0.03em;
  line-height: 0.9;
  color: color-mix(in srgb, var(--c) 70%, var(--ink));
}
.cast-bot .role { color: var(--muted); margin-top: 4px; }
@keyframes bob {
  0%, 100% { transform: translateY(0) rotate(var(--tilt, 0deg)); }
  50% { transform: translateY(calc(var(--amp) * -1)) rotate(calc(var(--tilt) * -1)); }
}
@keyframes sway {
  0%, 100% { transform: rotate(calc(var(--tilt) * -1)); }
  50% { transform: rotate(var(--tilt)); }
}
@keyframes tilt {
  0%, 100% { transform: translateY(0) rotate(calc(var(--tilt) * -0.4)); }
  40% { transform: translateY(calc(var(--amp) * -0.6)) rotate(var(--tilt)); }
  70% { transform: translateY(2px) rotate(calc(var(--tilt) * -0.2)); }
}
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(var(--tilt)); }
  50% { transform: translateY(calc(var(--amp) * -1.4)) rotate(calc(var(--tilt) * -1)); }
}
@keyframes drift {
  0%, 100% { transform: translate(0, 0) rotate(calc(var(--tilt) * -0.5)); }
  50% { transform: translate(var(--amp), calc(var(--amp) * -0.7)) rotate(var(--tilt)); }
}
@keyframes wiggle {
  0%, 100% { transform: rotate(calc(var(--tilt) * -1)); }
  25% { transform: rotate(var(--tilt)) translateY(-3px); }
  75% { transform: rotate(calc(var(--tilt) * -0.6)) translateY(2px); }
}
@keyframes bounce {
  0%, 100% { transform: translateY(0) scaleY(1); }
  35% { transform: translateY(calc(var(--amp) * -1)) scaleY(1.04); }
  60% { transform: translateY(0) scaleY(0.96); }
}
@keyframes pop {
  0% { transform: none; }
  35% { transform: translateY(var(--pop-y, -18%)) rotate(var(--pop-r, -4deg)); }
  70% { transform: translateY(0) scaleY(0.94) rotate(calc(var(--pop-r, -4deg) * -0.3)); }
  100% { transform: none; }
}
@media (max-width: 900px), (max-aspect-ratio: 1/1) {
  .cast-windows { height: auto; flex-direction: column; }
  .cast-windows .window, .cast-windows .window.is-open { flex: none; min-height: 520px; }
  .cast-windows .window.is-open .cover-box { display: none; }
  .cast-windows .window.is-open .panel {
    width: 100%;
    height: 100%;
    top: 0;
    display: grid;
    grid-template-columns: minmax(140px, 42%) 1fr;
    align-items: end;
    gap: 8px 14px;
    padding: 18px 16px 20px;
    overflow: visible;
  }
  .cast-windows .window.is-open .panel .cast-bot {
    grid-column: 1;
    grid-row: 1 / span 4;
    height: 100%;
    margin: 0;
    align-self: end;
  }
  .cast-windows .window.is-open .panel .cast-stage {
    height: 100%;
    overflow: visible;
    align-items: flex-end;
  }
  .cast-windows .window.is-open .panel .cast-bot img {
    height: 92%;
    max-height: 460px;
  }
  .cast-windows .window.is-open .panel .mono,
  .cast-windows .window.is-open .panel h3,
  .cast-windows .window.is-open .panel p {
    grid-column: 2;
  }
}
.book {
  padding: 120px 0 70px;
}
.book-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 42px;
  align-items: center;
}
.cover {
  background: #f7f1e6;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: block;
}
.cover img { width: 100%; height: auto; display: block; transition: transform 0.8s ease; }
.cover:hover img { transform: scale(1.05); }
.book p { line-height: 1.6; font-size: 17px; max-width: 46ch; color: #433d36; }
.text-col .book-actions { max-width: 46ch; width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 8px; }
.play, .price-link, .amazon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--ink);
  color: var(--cream);
  border-radius: 999px;
  padding: 8px 14px;
  font-family: var(--display);
  font-weight: 900;
  letter-spacing: 0.03em;
  font-size: 15px;
  transform: translate(var(--x, 0px), var(--y, 0px)) scale(var(--scale, 1));
  transform-origin: center center;
}
.play:hover, .price-link:hover, .amazon:hover { background: var(--coral); }
.play small {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  opacity: 0.7;
}
.back { display: inline-block; margin-bottom: 14px; }
.cover-col { display: flex; flex-direction: column; align-items: flex-end; gap: 16px; }
.cover-col .play { margin-left: auto; }
.text-col { display: flex; flex-direction: column; }
.text-col .price-link { align-self: flex-end; margin-top: 12px; }
.book-actions .play, .book-actions .price-link, .book-actions .amazon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--ink);
  color: var(--cream);
  border-radius: 999px;
  padding: 8px 14px;
  font-family: var(--display);
  font-weight: 900;
  letter-spacing: 0.03em;
  font-size: 15px;
  transform: translate(var(--x, 0px), var(--y, 0px)) scale(var(--scale, 1));
  transform-origin: center center;
}
.book-actions .play:hover, .book-actions .price-link:hover, .book-actions .amazon:hover { background: var(--coral); }
.byline { margin: -4px 0 12px; color: var(--muted); }
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(36, 22, 10, 0.78);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px 28px;
}
.lightbox[hidden] { display: none; }
.lightbox img {
  max-width: min(1100px, 92vw);
  max-height: 86vh;
  object-fit: contain;
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(0,0,0,.35);
  background: #f7f1e6;
}
.lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: var(--ink);
  color: var(--cream);
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  font-family: var(--display);
  font-weight: 900;
}
.gallery figure, .logo-card { cursor: zoom-in; }

footer {
  margin-top: 40px;
  background: #2c2722;
  color: #f6efe4;
  padding: 48px 0 28px;
}
.giant {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(72px, 16vw, 220px);
  line-height: 0.78;
  letter-spacing: -0.04em;
  margin: 10px 0 24px;
}
.giant em { font-style: normal; color: #e7a08f; }
.foot-grid {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid rgba(246,239,228,0.16);
  padding-top: 18px;
  color: rgba(246,239,228,0.72);
}

@media (max-width: 900px) {
  .nav { grid-template-columns: 1fr auto; }
  .indicator { display: none; }
  .menu { grid-template-columns: 1fr; padding: 90px 24px 32px; }
  .hero-inner, .wrap { width: calc(100% - 36px); }
  .drop, .drop.reverse, .mission, .gallery, .catalog, .book-grid { grid-template-columns: 1fr; }
  .drop.reverse .copy { order: 0; }
  .gallery { grid-template-rows: none; }
  .gallery .wide { grid-column: auto; grid-row: auto; height: 280px; }
  .frame img { height: 420px; }
  .frame { min-height: 0; }
  .dotline, .mote { display: none; }
  .windows { height: auto; flex-direction: column; }
  .window, .window.is-open { flex: none; min-height: 440px; }
  .window.is-open img.cover { width: 100%; height: 46%; }
  .panel { width: 100%; height: 54%; top: auto; }
  .entry { padding: 20px; }
}

.cart-page, .cart-grid { display: grid; gap: 28px; }
.cart-grid { grid-template-columns: 1.4fr .8fr; align-items: start; }
.cart-line { display: grid; grid-template-columns: 92px 1fr auto; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cart-line img { width: 92px; height: 92px; object-fit: cover; border-radius: 14px; }
.cart-line h3 { margin: 0 0 4px; font-family: var(--display); font-size: 28px; }
.qty { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.qty button { border: 1px solid var(--ink); background: transparent; border-radius: 999px; width: 28px; height: 28px; }
.qty .text { width: auto; padding: 0 8px; border: 0; }
.cart-sum, .checkout { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 22px; }
.cart-sum .row, .checkout .row2 { display: flex; justify-content: space-between; gap: 12px; margin: 8px 0; }
.cart-sum .total { font-size: 22px; margin-top: 12px; }
.checkout label { display: block; margin: 10px 0; font-family: var(--mono); font-size: 12px; }
.checkout input { width: 100%; margin-top: 6px; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; font: inherit; }
.pay-grid { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 16px; }
.pay { border: 1px solid var(--ink); background: transparent; border-radius: 999px; padding: 8px 14px; font-family: var(--display); font-weight: 900; }
.pay.on { background: var(--ink); color: var(--cream); }
.amazon { background: var(--ink); color: var(--cream); }
.jump { position: relative; }
.jump-btn { border: 0; background: transparent; color: inherit; cursor: pointer; font: inherit; }
.jump-list {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 180px;
  max-height: 280px;
  overflow: auto;
  background: #fbf6ee;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 6px;
  display: none;
  z-index: 20;
}
.jump.is-open .jump-list { display: grid; }
.jump-list a { display: block; padding: 7px 10px; font-size: 12px; letter-spacing: 0.04em; color: var(--ink); border-radius: 8px; }
.jump-list a:hover { background: #efe6d8; }
.reset { margin-left: 8px; font-size: 11px; }
.more-btn { margin: 12px 0 0; }
.cart-chip [data-cart-count] { position: absolute; top: -6px; right: -6px; background: var(--coral); color: #fff; border-radius: 999px; font-size: 10px; padding: 2px 5px; }
@media (max-width: 800px) { .cart-grid { grid-template-columns: 1fr; } }
