:root {
  --ink: #1f1b18;
  --brass: #a8804a;
  --brass-dark: #8a6838;
  --slate: #3b7a91;
  --muted: #6b635b;
  --paper: #ffffff;
  --mist: #f3efe8;
  --line: #e2dcd2;
  --orange: #f5a447;
  --blue: #41b9e5;
  --pink: #f06896;
  --purple: #cc65a7;
  --teal: #50c4d0;
  --radius: 12px;
  --head: "Montserrat", system-ui, sans-serif;
  --body: "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; font-family: var(--body); color: var(--ink); background: var(--paper); line-height: 1.6; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--head); line-height: 1.15; margin: 0 0 .5em; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.eyebrow { font-family: var(--head); font-weight: 700; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--brass); margin: 0 0 .6em; }

/* ---------- wordmark ---------- */
.wordmark { display: inline-flex; flex-direction: column; align-items: center; text-decoration: none; color: var(--ink); line-height: 1; margin: 0; }
.wm-name { font: 900 1.45rem/1 var(--head); letter-spacing: .12em; }
.wm-sub { font: 600 .56rem/1 var(--head); letter-spacing: .52em; margin-top: 5px; padding-left: .52em; color: var(--brass); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: .8em 1.4em; border-radius: 999px; font: 600 .95rem var(--head); text-decoration: none; cursor: pointer; border: 2px solid transparent; transition: background .15s, transform .15s, border-color .15s; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #000; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 24px; background: rgba(255,255,255,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nav { display: flex; gap: 22px; }
.nav a { text-decoration: none; font: 600 .9rem var(--head); color: var(--ink); }
.nav a:hover { color: var(--brass); }

/* ---------- hero ---------- */
.hero { display: grid; grid-template-columns: 1fr 1.25fr; gap: 48px; align-items: center; max-width: 1240px; margin: 0 auto; padding: 72px 24px 88px; }
.hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.8rem); font-weight: 800; letter-spacing: -.02em; }
.lede { font-size: 1.1rem; color: var(--muted); max-width: 32em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-art img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 40% 70%; border-radius: var(--radius); box-shadow: 0 30px 60px -20px rgba(0,0,0,.35); }

/* ---------- table of contents ---------- */
.catalog { padding: 72px 0 72px; }
.toc { position: relative; isolation: isolate; container-type: inline-size; max-width: 1240px; margin: 0 auto; aspect-ratio: 1174 / 690; }
.toc-item { position: absolute; width: 17.9%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; background: none; border: 0; padding: 0; cursor: pointer; font: inherit; color: inherit; }
.toc-num { font: 900 2.7cqw/1 var(--head); letter-spacing: -.01em; }
.toc-label { font: 700 1.15cqw/1.2 var(--head); color: var(--slate); text-transform: uppercase; white-space: nowrap; margin-top: .6cqw; }
.toc-stem { width: 2px; height: 3.2cqw; background: #8fb3c2; position: relative; margin-top: .8cqw; }
.toc-stem::before { content: ""; position: absolute; top: 0; left: 50%; width: 1.4cqw; height: 2px; background: #8fb3c2; transform: translateX(-50%); }
.toc-stem::after { content: ""; position: absolute; bottom: -.4cqw; left: 50%; width: .9cqw; height: .9cqw; border-radius: 50%; background: #8fb3c2; transform: translateX(-50%); }
.toc-item img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 50%; border: .55cqw solid currentColor; margin-top: .9cqw; transition: transform .25s, box-shadow .25s; }
.toc-item:hover img, .toc-item:focus-visible img { transform: scale(1.05); box-shadow: 0 14px 30px -10px rgba(0,0,0,.35); }
.toc-item:focus-visible { outline: none; }
.c-orange { color: var(--orange); } .c-blue { color: var(--blue); } .c-pink { color: var(--pink); }
.c-purple { color: var(--purple); } .c-teal { color: var(--teal); }
/* positions follow the printed table of contents */
.pos-1 { left: 9.1%;  top: 48%; }
.pos-2 { left: 24.5%; top: 18.4%; }
.pos-3 { left: 40%;   top: 0; }
.pos-4 { left: 60%;   top: 0; }
.pos-5 { left: 76%;   top: 16%; }   /* label wraps to two lines */
.pos-6 { left: 90.9%; top: 48%; }
.toc-dome { position: absolute; left: 20%; right: 20%; bottom: 0; height: 40%; background: var(--mist); border-radius: 50% 50% 0 0 / 100% 100% 0 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; padding-bottom: 2.5cqw; z-index: -1; }
.wordmark-lg { margin-bottom: 2.6cqw; }
.wordmark-lg .wm-name { font-size: 5.6cqw; }
.wordmark-lg .wm-sub { font-size: 1.5cqw; margin-top: 1cqw; }
.toc-dome h2 { font: 800 4.2cqw/1 var(--head); color: var(--slate); text-transform: uppercase; margin: 0; letter-spacing: .01em; }

/* ---------- flipbook ---------- */
.book-area { max-width: 1400px; margin: 56px auto 0; padding: 0 16px; }
.book-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 18px; }
.book-tabs button { font: 600 .82rem var(--head); padding: .5em 1em; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; }
.book-tabs button:hover { border-color: var(--ink); }
.book-tabs button.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.book-stage { display: flex; align-items: center; gap: 10px; }
.book-frame { flex: 1; min-width: 0; }
.book-nav { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--line); background: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer; color: var(--ink); }
.book-nav:hover { border-color: var(--ink); }
.page { background: #fff; overflow: hidden; }
.page img { width: 100%; height: 100%; object-fit: cover; user-select: none; -webkit-user-drag: none; pointer-events: none; }

/* ---------- contact ---------- */
.contact { padding: 88px 0; background: var(--ink); color: #ece6dd; }
.contact h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); color: #fff; }
.contact-lede { color: #b9afa3; max-width: 36em; margin: 0 0 32px; }
.contact-cards { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 420px); gap: 20px; }
.contact-card { display: flex; flex-direction: column; gap: 6px; padding: 24px 26px; border-radius: var(--radius); background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); text-decoration: none; transition: background .15s, border-color .15s; }
.contact-card:hover { background: rgba(255,255,255,.1); border-color: var(--brass); }
.cc-label { font: 700 .75rem var(--head); letter-spacing: .14em; text-transform: uppercase; color: var(--brass); }
.cc-value { font: 700 1.15rem var(--head); color: #fff; overflow-wrap: anywhere; }
.site-footer { text-align: center; padding: 20px; font-size: .85rem; color: var(--muted); }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 40px; gap: 32px; }
}
@media (max-width: 720px) {
  .nav { gap: 14px; }
  .nav a { font-size: .8rem; }
  .site-header { padding: 10px 16px; }
  .wm-name { font-size: 1.15rem; }
  .wm-sub { font-size: .46rem; }
  .wrap { padding: 0 16px; }
  .hero { padding: 32px 16px 56px; }
  .contact-cards { grid-template-columns: 1fr; }
  .contact-card { padding: 20px; }
  .cc-value { font-size: .95rem; }

  /* table of contents becomes a two-column grid */
  .toc { aspect-ratio: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 28px 16px; padding: 0 16px; }
  .toc-item { position: static; width: auto; transform: none; }
  .toc-num { font-size: 1.6rem; }
  .toc-label { font-size: .72rem; white-space: normal; text-align: center; margin-top: 4px; min-height: 2.4em; }
  .toc-stem { display: none; }
  .toc-item img { width: 82%; border-width: 4px; margin-top: 10px; }
  .toc-dome { position: static; grid-column: 1 / -1; order: -1; height: auto; padding: 24px 16px; border-radius: 16px; z-index: auto; }
  .wordmark-lg { margin-bottom: 12px; }
  .wordmark-lg .wm-name { font-size: 2rem; }
  .wordmark-lg .wm-sub { font-size: .6rem; margin-top: 6px; }
  .toc-dome h2 { font-size: 1.4rem; }

  .book-nav { width: 36px; height: 36px; font-size: 1.3rem; }
  .book-stage { gap: 4px; }
  .book-area { padding: 0 8px; }
}

/* store QR code laid over each catalogue page (see js/qr-spots.js) */
.page img.qr { position: absolute; object-fit: contain; padding: 1.2%; background: #fff; }
