/* ==========================================================================
   GHORE BOSHE SPOKEN ENGLISH — "First Edition". The page is presented like a
   collector's first edition: Part one (the cover) sits on the cover's own
   night blue with its yellow as the only warm note; Part two (inside) turns
   to ivory paper with the book's pastel boxes. Bodoni Moda headings, printer's
   crop marks and registration targets as the quiet device throughout.
   ========================================================================== */

.gb-page {
  --navy: #0b1a33;
  --navy-2: #10264a;
  --teal: #064972;
  --plum: #2c1828;
  --sun: #fedd2c;
  --ivory: #f5f0e6;
  --paper: #fbf8f2;
  --ink: #231f20;
  --blue: #539ad4;
  --text: #ffffff;
  --text-2: rgba(255, 255, 255, 0.74);
  --text-3: rgba(255, 255, 255, 0.5);
  --line: rgba(255, 255, 255, 0.14);
  --serif: "Bodoni Moda", "Didot", Georgia, serif;
  --sans: "Geist", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --bn: "Noto Serif Bengali", "Hind Siliguri", serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --hdr: 121px; /* .site-header's height (site.css) */
  background: var(--navy);
  color: var(--text);
}

@media (max-width: 767px) {
  .gb-page {
    --hdr: 66px;
  }
}

.gb-page .brand {
  color: var(--text);
}

.gb-page .pill-nav {
  color: #111;
}

.gb-page .site-header {
  position: relative;
  z-index: 5;
}

.gb-page .site-header .pill-chat {
  background: var(--sun);
  color: var(--ink);
}

/* the hero's night runs up behind the header, so the top reads as one surface */
.gb {
  position: relative;
  margin-top: calc(-1 * var(--hdr));
  overflow: clip;
  font-family: var(--sans);
}

.gb-wrap {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: 40px;
}

.gb [lang="bn"] {
  font-family: var(--bn);
}

.gb-mono {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.gb figure {
  margin: 0;
}

.gb img {
  display: block;
  max-width: 100%;
  height: auto;
}

[data-zoom] {
  cursor: zoom-in;
}

/* ---------- printer's marks ---------- */
.gb-crop {
  position: relative;
  color: rgba(255, 255, 255, 0.45);
}

.gb-paper .gb-crop {
  color: rgba(35, 31, 32, 0.4);
}

.gb-crop::after {
  content: "";
  position: absolute;
  inset: -18px;
  pointer-events: none;
  background:
    linear-gradient(currentColor, currentColor) left 0 top 18px / 12px 1px no-repeat,
    linear-gradient(currentColor, currentColor) left 18px top 0 / 1px 12px no-repeat,
    linear-gradient(currentColor, currentColor) right 0 top 18px / 12px 1px no-repeat,
    linear-gradient(currentColor, currentColor) right 18px top 0 / 1px 12px no-repeat,
    linear-gradient(currentColor, currentColor) left 0 bottom 18px / 12px 1px no-repeat,
    linear-gradient(currentColor, currentColor) left 18px bottom 0 / 1px 12px no-repeat,
    linear-gradient(currentColor, currentColor) right 0 bottom 18px / 12px 1px no-repeat,
    linear-gradient(currentColor, currentColor) right 18px bottom 0 / 1px 12px no-repeat;
}

.gb-reg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.2;
  flex: none;
}

/* ---------- type ---------- */
.gb-step {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sun);
}

.gb-step b {
  font-weight: 500;
}

.gb-step span {
  color: var(--text-2);
}

.gb-step span::before {
  content: "— ";
}

.gb-h2 {
  margin: 0 0 22px;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(40px, 5.4vw, 80px);
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.gb-h2 em {
  font-style: italic;
  font-weight: 400;
  color: var(--sun);
}

.gb-h3 {
  margin: 0 0 16px;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(26px, 2.6vw, 36px);
  line-height: 1.15;
}

.gb-intro {
  max-width: 640px;
  margin: 0 0 44px;
  font-size: 18px;
  line-height: 1.65;
  color: var(--text-2);
}

.gb-sec {
  position: relative;
  padding-block: 84px;
}

.gb-kicker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 0 0 26px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-2);
}

.gb-kicker span + span::before {
  content: "◆";
  margin-right: 18px;
  font-size: 8px;
  color: var(--sun);
  vertical-align: 2px;
}

/* ---------- buttons ---------- */
.gb-buy,
.gb-ghost {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: transform 0.4s var(--ease), background-color 0.3s, box-shadow 0.4s var(--ease);
}

.gb-buy {
  background: var(--sun);
  color: var(--ink);
  box-shadow: 0 10px 30px -12px rgba(254, 221, 44, 0.6);
}

.gb-buy svg,
.gb-ghost svg {
  width: 12px;
  height: 12px;
}

.gb-buy:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px -14px rgba(254, 221, 44, 0.8);
}

.gb-ghost {
  border: 1px solid var(--line);
  color: var(--text);
}

.gb-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* ============ the 3D book (hero + finale) ============ */
.gb-book {
  --w: 330px;
  --h: calc(var(--w) * 1.545);
  --d: calc(var(--w) * 0.092);
  position: relative;
  width: var(--w);
  height: var(--h);
  perspective: 2200px;
}

.gb-book-r {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transform: rotateY(var(--ry, 26deg)) rotateX(var(--rx, 6deg));
  animation: gbSway 9s ease-in-out infinite;
}

@keyframes gbSway {
  0%, 100% { transform: rotateY(var(--ry, 26deg)) rotateX(var(--rx, 6deg)) translateY(0); }
  50% { transform: rotateY(calc(var(--ry, 26deg) - 9deg)) rotateX(var(--rx, 6deg)) translateY(-10px); }
}

.gb-f {
  position: absolute;
  display: block;
  backface-visibility: hidden;
}

.gb-f img {
  width: 100%;
  height: 100%;
}

.gb-f-front {
  inset: 0;
  transform: translateZ(calc(var(--d) / 2));
  box-shadow: inset 3px 0 6px rgba(255, 255, 255, 0.12);
}

.gb-f-front::after {
  /* a soft sheen and the hinge crease near the spine */
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.35) 0, rgba(255, 255, 255, 0.16) 1.2%, rgba(0, 0, 0, 0.18) 2.6%, transparent 5%),
    linear-gradient(115deg, rgba(255, 255, 255, 0.14), transparent 40%);
}

.gb-f-back {
  inset: 0;
  transform: rotateY(180deg) translateZ(calc(var(--d) / 2));
}

.gb-f-spine {
  top: 0;
  left: calc(50% - var(--d) / 2);
  width: var(--d);
  height: 100%;
  transform: rotateY(-90deg) translateZ(calc(var(--w) / 2));
}

.gb-f-spine::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.35), rgba(255, 255, 255, 0.08) 40%, rgba(0, 0, 0, 0.3));
}

.gb-f-edge {
  top: 4px;
  bottom: 4px;
  left: calc(50% - var(--d) / 2);
  width: calc(var(--d) - 4px);
  transform: rotateY(90deg) translateZ(calc(var(--w) / 2 - 4px));
  background: repeating-linear-gradient(90deg, #f3eee2 0 1px, #ddd6c6 1px 2px);
}

.gb-f-top,
.gb-f-bot {
  left: 4px;
  right: 4px;
  top: calc(50% - var(--d) / 2);
  height: calc(var(--d) - 4px);
  background: repeating-linear-gradient(0deg, #f3eee2 0 1px, #d9d1bf 1px 2px);
}

.gb-f-top {
  transform: rotateX(90deg) translateZ(calc(var(--h) / 2 - 4px));
}

.gb-f-bot {
  transform: rotateX(-90deg) translateZ(calc(var(--h) / 2 - 4px));
}

.gb-book-shadow {
  position: absolute;
  left: 4%;
  right: -6%;
  bottom: -34px;
  height: 46px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0, 0, 0, 0.55), transparent);
  filter: blur(6px);
  animation: gbShadow 9s ease-in-out infinite;
}

@keyframes gbShadow {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(0.92); opacity: 0.75; }
}

/* ============ Hero ============ */
.gb-hero {
  position: relative;
  min-height: 100vh;
  padding: calc(var(--hdr) + 72px) 0 120px;
  background:
    radial-gradient(70% 60% at 82% 40%, rgba(83, 154, 212, 0.22), transparent 70%),
    radial-gradient(60% 60% at 0% 0%, rgba(6, 73, 114, 0.9), transparent 70%),
    linear-gradient(180deg, var(--navy-2) 0%, var(--navy) 55%, var(--plum) 100%);
  display: flex;
  align-items: center;
}

.gb-cloud {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  overflow: hidden;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 18%, #000 80%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 18%, #000 80%, transparent);
}

.gb-cloud-row {
  display: flex;
  width: max-content;
  white-space: nowrap;
  animation: gbDrift calc(140s + var(--r) * 20s) linear infinite;
  animation-direction: var(--dir, normal);
}

.gb-cloud-row:nth-child(even) {
  --dir: reverse;
}

.gb-cloud-row span {
  padding-right: 0.6em;
}

.gb-cloud-row b {
  margin-right: 0.45em;
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.1;
  color: rgba(255, 255, 255, 0.045);
}

.gb-cloud-row b.w0 { font-size: clamp(64px, 9vw, 140px); font-style: italic; font-weight: 500; }
.gb-cloud-row b.w1 { font-size: clamp(30px, 4vw, 60px); }
.gb-cloud-row b.w2 { font-size: clamp(44px, 6vw, 96px); color: rgba(255, 255, 255, 0.06); }
.gb-cloud-row b.w3 { font-size: clamp(24px, 2.6vw, 40px); font-style: italic; }

@keyframes gbDrift {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.gb-hero-in {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: 48px;
}

.gb-h1 {
  margin: 0 0 28px;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(60px, 8.4vw, 132px);
  line-height: 1.1;
  letter-spacing: -0.015em;
}

.gb-h1 > span,
.gb-h1 > em {
  display: block;
}

.gb-h1 em {
  font-weight: 400;
  font-style: italic;
  color: var(--sun);
}

.gb-h1 .gb-h1-bn {
  margin-bottom: 4px;
  font-size: 0.34em;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-2);
}

.gb-lead {
  max-width: 540px;
  margin: 0 0 34px;
  font-size: 18px;
  line-height: 1.65;
  color: var(--text-2);
}

.gb-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 32px;
  max-width: 580px;
  margin: 0 0 36px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.gb-facts dt {
  margin-bottom: 4px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
}

.gb-facts dd {
  margin: 0;
  font-size: 15px;
  font-weight: 500;
}

.gb-facts .gb-facts-wide {
  grid-column: 1 / -1;
}

.gb-facts .gb-facts-wide dd {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.55;
  color: var(--text-2);
}

.gb-facts a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--sun);
  text-decoration: none;
  border-bottom: 1px solid rgba(254, 221, 44, 0.4);
}

.gb-facts a svg {
  width: 10px;
  height: 10px;
}

.gb-facts div:nth-child(2) dd {
  font-family: var(--serif);
  font-size: 22px;
  font-style: italic;
  color: var(--sun);
}

.gb-hero-book {
  display: grid;
  place-items: center;
  padding-block: 20px 50px;
}

.gb-scroll {
  position: absolute;
  left: 50%;
  bottom: 28px;
  width: 1px;
  height: 56px;
  background: var(--line);
  overflow: hidden;
}

.gb-scroll span {
  position: absolute;
  inset: 0;
  background: var(--sun);
  animation: gbScroll 2.4s var(--ease) infinite;
}

@keyframes gbScroll {
  from { transform: translateY(-100%); }
  to { transform: translateY(100%); }
}

/* ============ 01 Story ============ */
.gb-story {
  background: var(--plum);
  background: linear-gradient(180deg, var(--plum), var(--navy) 60%);
}

.gb-story-in {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 80px;
  align-items: start;
}

.gb-story-copy p:not(.gb-step) {
  max-width: 460px;
  margin: 0 0 18px;
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-2);
}

.gb-quote {
  position: relative;
  padding: 48px 0 0 48px;
  border-left: 1px solid var(--line);
}

.gb-quote::before {
  content: "“";
  position: absolute;
  top: -40px;
  left: 30px;
  font-family: var(--serif);
  font-size: 180px;
  line-height: 1;
  color: var(--sun);
  opacity: 0.9;
}

.gb-quote blockquote {
  margin: 0;
}

.gb-quote-big {
  margin: 0 0 28px;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(28px, 3.2vw, 46px);
  line-height: 1.25;
}

.gb-quote mark {
  padding: 0 0.1em;
  background: linear-gradient(transparent 78%, rgba(254, 221, 44, 0.5) 78%, rgba(254, 221, 44, 0.5) 92%, transparent 92%);
  color: inherit;
}

.gb-quote-small {
  max-width: 600px;
  margin: 0 0 24px;
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-2);
}

.gb-quote figcaption {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
}

.gb-quote figcaption b {
  font-weight: 500;
  color: var(--text);
}

.gb-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 64px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.gb-stats li {
  padding: 34px 24px;
}

.gb-stats li + li {
  border-left: 1px solid var(--line);
}

.gb-stats b {
  display: block;
  margin-bottom: 6px;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(44px, 4.6vw, 68px);
  line-height: 1.1;
  font-variant-numeric: lining-nums tabular-nums;
  font-variation-settings: "opsz" 20;
}

.gb-stats li:nth-child(2) b {
  color: var(--sun);
}

.gb-stats span {
  font-size: 14px;
  color: var(--text-2);
}

.gb-story-after {
  max-width: 760px;
  margin: 48px 0 0;
  font-family: var(--serif);
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.45;
}

/* ============ Part dividers (half-title pages) ============ */
.gb-part {
  padding-block: 56px;
  text-align: center;
  background: var(--navy);
}

.gb-part p {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin: 0;
}

.gb-part .gb-mono {
  color: var(--sun);
}

.gb-part b {
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(56px, 8vw, 120px);
  line-height: 1.1;
}

.gb-part [lang="bn"] {
  font-size: 20px;
  color: var(--text-2);
}

.gb-part p::before,
.gb-part p::after {
  content: "";
  width: 1px;
  height: 40px;
  background: var(--line);
}

.gb-part--paper {
  background: var(--ivory);
  color: var(--ink);
}

.gb-part--paper .gb-mono {
  color: #8a6d00;
}

.gb-part--paper [lang="bn"] {
  color: rgba(35, 31, 32, 0.6);
}

.gb-part--paper p::before,
.gb-part--paper p::after {
  background: rgba(35, 31, 32, 0.18);
}

/* ============ 02 Build (pinned) ============ */
.gb-build {
  padding-bottom: 40px;
}

.gb-build-track {
  position: relative;
  height: 520vh;
  margin-bottom: -6vh; /* the pinned stage's empty foot, so the next section follows closely */
}

.gb-build-stick {
  position: sticky;
  top: 0;
  height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 64px;
}

.gb-build-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: s;
}

.gb-build-steps li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 8px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  opacity: 0.38;
  transition: opacity 0.5s var(--ease);
}

.gb-build-steps li:last-child {
  border-bottom: 1px solid var(--line);
}

.gb-build-steps li.is-on {
  opacity: 1;
}

.gb-build-steps b {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 12px;
  padding-top: 6px;
  color: var(--sun);
}

.gb-build-steps h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 26px;
  line-height: 1.2;
}

.gb-build-steps p {
  max-width: 520px;
  margin: 0;
  overflow: hidden;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--text-2);
  max-height: 0;
  transition: max-height 0.6s var(--ease), margin 0.6s var(--ease);
}

.gb-build-steps li.is-on p {
  max-height: 140px;
  margin-top: 8px;
}

.gb-stack {
  position: relative;
  height: min(76vh, 760px);
  aspect-ratio: 1000 / 1545;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.7);
}

.gb-stack .gb-l {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.9s var(--ease), transform 1.1s var(--ease);
}

.gb-stack .gb-l0 { opacity: 1; }
.gb-stack .gb-l1 { transform: scale(1.08); }
.gb-stack .gb-l2 { transform: translateX(-6%); }
.gb-stack .gb-l3 { transform: translateY(5%); }
.gb-stack .gb-l4 { transform: translateY(-4%) scale(0.96); }
.gb-stack .gb-l5a { transform: translateX(-4%); }
.gb-stack .gb-l5b { transform: translateY(-14%); }

.gb-stack .gb-l.is-on {
  opacity: 1;
  transform: none;
}

.gb-stack-cap {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 24px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-2);
}

.gb-approved {
  padding: 4px 12px;
  border: 1px solid var(--sun);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sun);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.5s, transform 0.5s var(--ease);
}

.gb-stack.is-done .gb-approved {
  opacity: 1;
  transform: none;
}

/* ============ 03 Proofs ============ */
.gb-proof-sheet {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
  padding: 56px;
  border-radius: 6px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.03)),
    var(--navy-2);
  box-shadow: inset 0 0 0 1px var(--line);
}

.gb-proof-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px 22px;
}

.gb-proof img {
  width: 100%;
  border-radius: 2px;
  box-shadow: 0 18px 30px -18px rgba(0, 0, 0, 0.8);
  transition: transform 0.5s var(--ease), opacity 0.4s;
}

.gb-proof:not(.is-pick) img {
  opacity: 0.6;
}

.gb-proof:hover img {
  opacity: 1;
  transform: translateY(-4px);
}

.gb-proof figcaption,
.gb-final figcaption {
  margin-top: 12px;
  font-size: 13px;
  color: var(--text-2);
}

.gb-proof figcaption b,
.gb-final figcaption b {
  margin-right: 6px;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 11px;
  color: var(--sun);
}

.gb-final {
  position: relative;
}

.gb-final img {
  width: 100%;
  box-shadow: 0 40px 70px -30px rgba(0, 0, 0, 0.85);
}

.gb-final figcaption {
  position: absolute;
  top: calc(100% + 24px);
  left: 0;
}

.gb-stamp {
  position: absolute;
  top: -34px;
  right: -34px;
  width: 116px;
  height: 116px;
  transform: rotate(-12deg);
}

.gb-stamp svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.gb-stamp circle {
  fill: rgba(11, 26, 51, 0.82);
  stroke: var(--sun);
  stroke-width: 1.6;
}

.gb-stamp circle + circle {
  fill: none;
  stroke-width: 1;
}

.gb-stamp text {
  font-family: var(--mono);
  font-size: 10.4px;
  letter-spacing: 0.14em;
  fill: var(--sun);
}

.gb-stamp path:last-child {
  fill: none;
  stroke: var(--sun);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ============ 04 Jacket (pinned unfold) ============ */
.gb-jacket {
  padding-bottom: 72px;
}

.gb-jk-track {
  position: relative;
  height: 340vh;
  margin-bottom: -10vh;
}

.gb-jk-stick {
  position: sticky;
  top: 0;
  height: 100vh;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.gb-jk {
  --F: 300px;
  --s: 1;
  --tx: 0px;
  --ry: 28deg;
  --rx: 4deg;
  --aS: -90deg;
  --aB: -90deg;
  --aFR: 178deg;
  --aFL: -178deg;
  --leg: 0;
  position: relative;
  width: 100%;
  height: 100%;
  perspective: 2600px;
}

.gb-jk-rig {
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--F);
  height: calc(var(--F) * 1.545);
  margin: calc(var(--F) * -0.7725) 0 0 calc(var(--F) * -0.5);
  transform-style: preserve-3d;
  transform: translateX(var(--tx)) scale(var(--s)) rotateY(var(--ry)) rotateX(var(--rx));
}

.jk {
  position: absolute;
  top: 0;
  height: 100%;
  transform-style: preserve-3d;
}

.jk > img {
  display: block;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
}

.jk-in {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #ece6d8, #f6f2e8 50%, #e9e2d2);
  transform: rotateY(180deg);
  backface-visibility: hidden;
}

.jk-front {
  position: relative;
  width: 100%;
}

.jk-flapR {
  left: 100%;
  width: 54.6%;
  transform-origin: 0 50%;
  transform: rotateY(var(--aFR));
}

.jk-spine {
  right: 100%;
  width: 9.2%;
  transform-origin: 100% 50%;
  transform: rotateY(var(--aS));
}

.jk-back {
  right: 100%;
  width: calc(var(--F));
  transform-origin: 100% 50%;
  transform: rotateY(var(--aB));
}

.jk-flapL {
  right: 100%;
  width: 54.6%;
  transform-origin: 100% 50%;
  transform: rotateY(var(--aFL));
}

.gb-jk-legend {
  position: absolute;
  left: 50%;
  top: calc(50% + var(--F) * 0.7725 * var(--s) + 26px);
  width: calc(var(--F) * 3.184 * var(--s));
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: 0.546fr 1fr 0.092fr 1fr 0.546fr;
  margin: 0;
  padding: 0;
  list-style: none;
  opacity: var(--leg);
  font-size: 13px;
  color: var(--text);
  text-align: center;
}

.gb-jk-legend li {
  padding-top: 12px;
  border-top: 1px solid var(--line);
  white-space: nowrap;
}

.gb-jk-legend li:nth-child(3) {
  padding-top: 36px;
  border-top-color: var(--sun);
}

.gb-jk-legend b {
  margin-right: 4px;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 11px;
  color: var(--sun);
}

.gb-jk-legend span {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: var(--text-3);
}

.gb-wrapfig {
  display: none;
  margin-top: 40px !important;
}

.gb-jk-flat {
  position: absolute;
  left: 50%;
  top: 50%;
  width: calc(var(--F) * 3.184 * var(--s));
  max-width: none !important;
  height: auto;
  transform: translate(-50%, -50%);
  opacity: var(--flat, 0);
  pointer-events: none;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.7);
}

.gb-jk.is-flat .gb-jk-flat {
  pointer-events: auto;
}

.gb-wrapfig img {
  width: 100%;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.7);
}

.gb-wrapfig figcaption {
  margin-top: 30px;
  font-size: 13px;
  color: var(--text-3);
}

/* ============ Part two: paper ============ */
.gb-paper {
  background: var(--ivory);
  color: var(--ink);
  --text-2: rgba(35, 31, 32, 0.72);
  --text-3: rgba(35, 31, 32, 0.5);
  --line: rgba(35, 31, 32, 0.14);
}

.gb-paper .gb-step {
  color: #2f6fa8;
}

.gb-paper .gb-h2 em {
  color: var(--blue);
}

.gb-paper .gb-sec {
  padding-block: 72px;
}

.gb-paper .gb-sec + .gb-sec {
  border-top: 1px solid var(--line);
}

/* ---------- 05 System ---------- */
.gb-sys {
  display: grid;
  grid-template-columns: minmax(0, 520px) minmax(0, 1fr);
  gap: 72px;
  align-items: start;
}

.gb-sys-page {
  background: #fff;
  box-shadow: 0 30px 60px -32px rgba(35, 31, 32, 0.45);
}

.gb-sys-page img {
  width: 100%;
}

.gb-guides {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s var(--ease);
}

.gb-sys-page.is-guides .gb-guides {
  opacity: 1;
}

.gb-guides .g-trim {
  fill: none;
  stroke: rgba(35, 31, 32, 0.25);
  stroke-width: 0.6;
}

.gb-guides .g-margin {
  fill: none;
  stroke: #e5007e;
  stroke-width: 0.8;
}

.gb-guides .g-col {
  fill: none;
  stroke: #7a5cff;
  stroke-width: 0.8;
}

.gb-guides .g-base {
  fill: none;
  stroke: #00a3e0;
  stroke-width: 0.5;
  opacity: 0.45;
}

.gb-guides .g-dim path {
  stroke: #e5007e;
  stroke-width: 0.6;
}

.gb-guides .g-dim text {
  font-family: var(--mono);
  font-size: 7px;
  fill: #e5007e;
  text-anchor: middle;
}

.gb-guides .g-pin circle {
  fill: var(--ink);
}

.gb-guides .g-pin text {
  font-family: var(--mono);
  font-size: 8.5px;
  font-weight: 500;
  fill: #fff;
  text-anchor: middle;
}

.gb-toggle {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: inline-flex;
  gap: 6px;
  padding: 8px 14px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.gb-toggle span {
  color: #ff5fb4;
}

.gb-anat {
  margin: 0 0 40px;
  padding: 0;
  list-style: none;
}

.gb-anat li {
  display: grid;
  grid-template-columns: 34px 150px 1fr;
  align-items: baseline;
  gap: 10px;
  padding: 13px 0;
  border-top: 1px solid var(--line);
  font-size: 15px;
}

.gb-anat li:last-child {
  border-bottom: 1px solid var(--line);
}

.gb-anat b {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 11px;
}

.gb-anat > li > span {
  font-weight: 600;
}

.gb-anat em {
  font-style: normal;
  color: var(--text-2);
}

.gb-specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 32px;
  margin: 0;
}

.gb-specs dt {
  margin-bottom: 6px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
}

.gb-specs dd {
  margin: 0;
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1.35;
}

.gb-specs dd span {
  display: inline;
  font-family: var(--sans);
  font-size: 13px;
  color: var(--text-3);
}

.gb-specs dd span::before {
  content: " ";
}

.gb-sw {
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--c);
  vertical-align: -1px;
}

.gb-colours {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 56px;
  margin: 72px 0;
}

.gb-col-block p {
  max-width: 460px;
  margin: 0 0 24px;
  line-height: 1.6;
  color: var(--text-2);
}

.gb-levels,
.gb-pairs {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.gb-levels {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.gb-pairs {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.gb-levels button,
.gb-pairs button {
  width: 100%;
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: copy;
}

.gb-levels button {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 120px;
  padding: 14px;
  border-radius: 4px;
  background: var(--c);
  transition: transform 0.4s var(--ease);
}

.gb-levels b {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 22px;
}

.gb-levels span,
.gb-pairs span {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
}

.gb-pairs i {
  display: block;
  height: 74px;
  margin-bottom: 8px;
  border-radius: 4px;
  background: linear-gradient(var(--a) 0 32%, var(--b) 32%);
  transition: transform 0.4s var(--ease);
}

.gb-levels button:hover,
.gb-pairs button:hover i {
  transform: translateY(-3px);
}

.gb-copied {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 50;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-family: var(--mono);
  font-size: 12px;
  transform: translate(-50%, 20px);
  opacity: 0;
  transition: opacity 0.3s, transform 0.4s var(--ease);
  pointer-events: none;
}

.gb-copied.is-on {
  opacity: 1;
  transform: translate(-50%, 0);
}

.gb-applied {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 40px;
  margin-top: 40px;
}

.gb-applied img {
  width: 100%;
  background: #fff;
  box-shadow: 0 24px 40px -26px rgba(35, 31, 32, 0.5);
}

.gb-applied figcaption {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 30px;
  font-size: 13px;
  color: var(--text-2);
}

.gb-lvl {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 3px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  background: #e7e2d6;
}

.gb-lvl--easy { background: #cbe2a5; }
.gb-lvl--medium { background: #fed8a8; }
.gb-lvl--hard { background: #fac1c2; }
.gb-lvl--advanced { background: #b2d9f3; }

/* ---------- 06 Four passes ---------- */
.gb-pass {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.gb-pass-card svg,
.gb-pass-card img {
  display: block;
  width: 100%;
  aspect-ratio: 396 / 612;
  height: auto;
  background: #fff;
  box-shadow: 0 24px 40px -26px rgba(35, 31, 32, 0.5);
}

.gb-pass-card[data-pass="sketch"] svg {
  background: #fdfbf5;
}

.gb-pass-card figcaption {
  margin-top: 16px;
  font-family: var(--serif);
  font-size: 20px;
}

.gb-pass-card figcaption b {
  margin-right: 8px;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 11px;
  color: #2f6fa8;
  vertical-align: 3px;
}

.gb-pass-card figcaption span {
  display: block;
  margin-top: 4px;
  font-family: var(--sans);
  font-size: 13px;
  color: var(--text-2);
}

/* sketch strokes draw themselves */
.gb-pass svg .sk {
  fill: none;
  stroke: #3a3632;
  stroke-width: 1.15;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.85;
}

.gb-pass svg .sk-soft {
  stroke-width: 0.6;
  opacity: 0.45;
}

.gb-pass svg .sk-note {
  font-family: "Kalam", cursive;
  font-size: 13px;
  fill: #b0412c;
}

.gb-pass svg .sk-arrow {
  fill: none;
  stroke: #8a3b2c;
  stroke-width: 0.8;
  stroke-linecap: round;
}

/* ---------- 07 Play: page 09, live ---------- */
.pg {
  position: relative;
  max-width: 880px;
  margin-inline: auto;
  container-type: inline-size;
}

.pg-sheet {
  --u: calc(100cqw / 396);
  position: relative;
  padding: calc(42 * var(--u)) calc(39 * var(--u)) calc(30 * var(--u)) calc(42 * var(--u));
  background: #fff;
  color: var(--ink);
  font-family: "Montserrat", var(--sans);
  font-weight: 500;
  font-size: calc(8 * var(--u));
  line-height: 1.875;
  box-shadow: 0 40px 70px -40px rgba(35, 31, 32, 0.55), 0 0 0 1px rgba(35, 31, 32, 0.06);
}

.pg [lang="bn"] {
  font-family: "Hind Siliguri", var(--bn);
}

.pg-head {
  margin: 0;
  text-align: center;
  font-size: calc(12 * var(--u));
  line-height: 1.6;
}

.pg-head [lang="bn"] {
  font-size: calc(13 * var(--u));
  font-weight: 600;
}

.pg-title {
  margin: calc(4 * var(--u)) 0 calc(6 * var(--u));
  text-align: center;
}

.pg-title span {
  position: relative;
  display: inline-block;
  padding: calc(2 * var(--u)) calc(14 * var(--u));
  border-radius: calc(5 * var(--u));
  background: var(--blue);
  color: #fff;
  font-weight: 700;
  font-size: calc(13 * var(--u));
  line-height: 1.6;
}

.pg-title span::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid var(--ink);
  border-radius: calc(5 * var(--u));
  transform: translate(calc(3 * var(--u)), calc(-3 * var(--u))) rotate(-0.6deg);
  z-index: -1;
}

.pg-title span {
  z-index: 0;
  isolation: isolate;
}

.pg-class {
  margin: 0;
  text-align: center;
  font-weight: 700;
  font-size: calc(12 * var(--u));
  line-height: 1.5;
}

.pg-pill {
  display: inline-block;
  padding: 0 calc(5 * var(--u));
  background: #cbe2a5;
}

.pg-pill--lvl {
  min-width: calc(70 * var(--u));
}

.pg-inst {
  margin: calc(6 * var(--u)) 0 calc(8 * var(--u));
  text-align: center;
  font-weight: 500;
  font-size: calc(9 * var(--u));
}

.pg-body {
  display: grid;
  grid-template-columns: minmax(0, 173fr) minmax(0, 134fr);
  gap: calc(8 * var(--u));
  align-items: start;
}

.pg-lines {
  margin: 0;
  padding: 0;
  list-style: none;
}

.pg-line {
  position: relative;
  display: flex;
  gap: 0.35em;
  margin-bottom: calc(0.5 * var(--u));
}

.pg-n {
  flex: none;
}

.pg-hint {
  font-weight: 500;
}

.pg-hint--subjects { color: #b26bac; }
.pg-hint--hobbies { color: #539ad4; }
.pg-hint--sports { color: #9bcb3b; }
.pg-hint--movies { color: #f16163; }
.pg-hint--because { color: #5dc1a0; }
.pg-hint--jobs { color: #fbae52; }

.pg-in,
.pg-slot {
  display: inline-block;
  min-width: calc(30 * var(--u));
  height: 1.5em;
  margin: 0;
  padding: 0 0.2em;
  border: 0;
  border-bottom: 1px solid var(--ink);
  border-radius: 0;
  background: transparent;
  color: #1f4fbf;
  font-family: "Kalam", cursive;
  font-size: 1.12em;
  line-height: 1.3;
  vertical-align: baseline;
  outline: none;
  transition: background-color 0.2s, border-color 0.2s;
}

.pg-in {
  width: calc(46 * var(--u));
}

.pg-in:focus {
  background: rgba(83, 154, 212, 0.1);
  border-bottom-color: var(--blue);
}

.pg-slot {
  cursor: pointer;
  text-align: left;
}

.pg-slot:hover,
.pg-slot.is-target {
  background: color-mix(in srgb, var(--hc, #539ad4) 22%, transparent);
}

.pg-slot.is-filled {
  height: auto;
  min-height: 1.5em;
  white-space: normal;
}

.pg-line[data-n="7"] .pg-slot, .pg-line[data-n="8"] .pg-slot { --hc: #b26bac; }
.pg-line[data-n="9"] .pg-slot { --hc: #539ad4; }
.pg-line[data-n="10"] .pg-slot { --hc: #9bcb3b; }
.pg-line[data-n="13"] .pg-slot { --hc: #f16163; }
.pg-line[data-n="15"] .pg-slot { --hc: #5dc1a0; }
.pg-line[data-n="16"] .pg-slot { --hc: #fbae52; }

.pg-mark {
  position: absolute;
  right: calc(100% + 0.6em);
  top: 0;
  font-family: "Kalam", cursive;
  font-style: normal;
  font-size: 1.6em;
  line-height: 1.1;
  opacity: 0;
  transform: scale(1.6) rotate(-8deg);
  transition: opacity 0.3s, transform 0.4s var(--ease);
}

.pg-line.is-right .pg-mark,
.pg-line.is-wrong .pg-mark {
  opacity: 1;
  transform: none;
}

.pg-line.is-right .pg-mark::before {
  content: "✓";
  color: #2e9b4f;
}

.pg-line.is-wrong .pg-mark::before {
  content: "✗";
  color: #d23b3b;
}

.pg-line.is-wrong .pg-in,
.pg-line.is-wrong .pg-slot {
  border-bottom: 2px solid #d23b3b;
}

.pg-line.is-wrong .pg-slot.is-bad,
.pg-line.is-wrong .pg-in:placeholder-shown {
  animation: pgShake 0.45s;
}

@keyframes pgShake {
  25% { transform: translateX(-3px); }
  50% { transform: translateX(3px); }
  75% { transform: translateX(-2px); }
}

.pg-bank {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: calc(3.4 * var(--u)) calc(3.3 * var(--u));
}

.pg-box {
  overflow: hidden;
  border-radius: calc(4 * var(--u));
  background: var(--b);
}

.pg-box--sports { --a: #9bcb3b; --b: #cbe2a5; }
.pg-box--jobs { --a: #fbae52; --b: #fed1a1; }
.pg-box--hobbies { --a: #539ad4; --b: #a2d2ef; grid-column: 1 / -1; }
.pg-box--movies { --a: #f16163; --b: #fac0c1; }
.pg-box--subjects { --a: #b26bac; --b: #dbb4d3; }
.pg-box--because { --a: #5dc1a0; --b: #cbe2a5; grid-column: 1 / -1; }

.pg-box-h {
  margin: 0;
  height: calc(14 * var(--u));
  display: grid;
  place-items: center;
  background: var(--a);
  color: #fff;
  font-weight: 700;
  font-size: calc(8 * var(--u));
}

.pg-box ul {
  margin: 0;
  padding: calc(2 * var(--u)) calc(5 * var(--u)) calc(6 * var(--u));
  list-style: none;
}

.pg-chip {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0 calc(1.5 * var(--u));
  border: 0;
  border-radius: calc(2 * var(--u));
  background: transparent;
  color: var(--ink);
  font: inherit;
  line-height: 1.25;
  padding-block: calc(1.1 * var(--u));
  text-align: left;
  cursor: grab;
  touch-action: none;
  transition: background-color 0.2s, transform 0.2s var(--ease);
}

.pg-chip:hover {
  background: rgba(255, 255, 255, 0.6);
}

.pg-chip.is-armed {
  background: #fff;
  box-shadow: inset 0 0 0 1.5px var(--a);
}

.pg-chip.is-used {
  text-decoration: underline;
  text-decoration-color: var(--a);
  text-decoration-thickness: 2px;
}

.pg-ghost {
  position: fixed;
  z-index: 60;
  padding: 6px 12px;
  border-radius: 6px;
  background: var(--a, #539ad4);
  color: #fff;
  font-family: "Montserrat", var(--sans);
  font-weight: 600;
  font-size: 14px;
  pointer-events: none;
  box-shadow: 0 12px 24px -10px rgba(0, 0, 0, 0.4);
  transform: translate(-50%, -120%) rotate(-3deg);
}

.pg-folio {
  margin: calc(10 * var(--u)) 0 0;
  text-align: center;
  font-size: calc(9 * var(--u));
}

.pg-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 28px;
}

.pg-status {
  margin: 0;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text-2);
}

.pg-btns {
  display: flex;
  gap: 10px;
}

.pg-reset,
.pg-check {
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: transform 0.3s var(--ease), background-color 0.3s;
}

.pg-reset {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
}

.pg-check {
  border: 0;
  background: var(--ink);
  color: #fff;
}

.pg-check:hover {
  transform: translateY(-2px);
}

.pg-result {
  margin-top: 28px;
  padding: 28px 32px;
  border-radius: 6px;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--line);
  text-align: center;
}

.pg-score {
  margin: 0 0 8px;
  font-size: clamp(20px, 2.6vw, 30px);
  font-weight: 600;
}

.pg-score b {
  display: inline-block;
  min-width: 2.2em;
  padding: 0 0.3em;
  border-bottom: 2px solid var(--ink);
  color: #1f4fbf;
}

.pg-note {
  margin: 0;
  color: var(--text-2);
}

.pg-picker {
  position: absolute;
  z-index: 20;
  width: min(420px, 92cqw);
  padding: 14px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 30px 60px -20px rgba(35, 31, 32, 0.45), 0 0 0 1px rgba(35, 31, 32, 0.08);
  font-family: "Montserrat", var(--sans);
}

.pg-picker-h {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 0 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
}

.pg-picker-x {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: #f1ede4;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.pg-picker-g {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.pg-picker-g .pk {
  overflow: hidden;
  border-radius: 6px;
  background: var(--b);
}

.pg-picker-g .pk p {
  margin: 0;
  padding: 3px 8px;
  background: var(--a);
  color: #fff;
  font-weight: 700;
  font-size: 12px;
}

.pg-picker-g .pk div {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 6px;
}

.pg-picker-g button {
  padding: 4px 8px;
  border: 0;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink);
  font: 500 12.5px/1.25 "Montserrat", var(--sans);
  text-align: left;
  cursor: pointer;
}

.pg-picker-g button:hover {
  background: #fff;
}

.pg-burst {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.pg-burst i {
  position: absolute;
  top: 0;
  width: 8px;
  height: 8px;
  border-radius: 1px;
}

/* ---------- 08 All the pages ---------- */
.gb-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin: -24px 0 40px;
  padding: 0;
  list-style: none;
  font-size: 14px;
  color: var(--text-2);
}

.gb-legend .gb-lvl {
  margin-right: 10px;
}

/* one sheet, no single page to lift: no drag, no selection */
.gb-collage img {
  width: 100%;
  -webkit-user-drag: none;
  user-select: none;
  -webkit-touch-callout: none;
}

/* ============ Finale ============ */
.gb-end {
  position: relative;
  padding: 104px 0;
  background:
    radial-gradient(60% 70% at 20% 50%, rgba(83, 154, 212, 0.2), transparent 70%),
    linear-gradient(180deg, var(--navy), var(--plum));
}

.gb-end-in {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 96px;
  align-items: center;
}

.gb-end .gb-book {
  --w: 280px;
  --ry: -24deg;
}

.gb-end-copy > p:not(.gb-kicker) {
  max-width: 480px;
  margin: 0 0 32px;
  font-size: 18px;
  line-height: 1.65;
  color: var(--text-2);
}

.gb-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.gb-end-copy > .gb-iti {
  margin: 0 0 6px;
  font-size: 22px;
  color: var(--sun);
}

.gb-rk {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
  font-size: 15px;
  color: var(--text-2);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 4px;
  transition: color 0.3s;
}

.gb-rk:hover {
  color: var(--sun);
}

.gb-rk svg {
  width: 10px;
  height: 10px;
}

/* ============ Responsive ============ */
@media (max-width: 1100px) {
  .gb-hero-in {
    grid-template-columns: 1fr;
  }

  .gb-hero-book {
    order: -1;
  }

  .gb-book {
    --w: 260px;
  }

  .gb-story-in,
  .gb-sys {
    grid-template-columns: 1fr;
    gap: 56px;
  }

  .gb-sys-page {
    max-width: 520px;
  }

  .gb-proof-sheet {
    grid-template-columns: 1fr;
  }

  .gb-final {
    max-width: 360px;
    margin: 0 auto 50px;
    order: -1;
  }

}

@media (max-width: 767px) {
  .gb-wrap {
    padding-inline: 16px;
  }

  .gb-sec,
  .gb-paper .gb-sec {
    padding-block: 56px;
  }

  .gb-hero {
    min-height: 0;
    padding: calc(var(--hdr) + 40px) 0 90px;
  }

  .gb-hero-in {
    gap: 28px;
  }

  .gb-book {
    --w: 196px;
  }

  .gb-h1 {
    font-size: clamp(48px, 15vw, 64px);
    line-height: 1.12;
  }

  .gb-h2 {
    font-size: clamp(36px, 10.4vw, 46px);
    line-height: 1.12;
  }

  .gb-lead,
  .gb-intro,
  .gb-story-copy p:not(.gb-step) {
    font-size: 16px;
  }

  .gb-intro {
    margin-bottom: 40px;
  }

  .gb-facts {
    gap: 14px 18px;
  }

  .gb-facts dd {
    font-size: 14px;
  }

  .gb-quote {
    padding: 40px 0 0 20px;
  }

  .gb-quote::before {
    top: -30px;
    left: 10px;
    font-size: 120px;
  }

  .gb-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 64px;
  }

  .gb-stats li {
    padding: 24px 14px;
  }

  .gb-stats li:nth-child(3) {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .gb-stats li:nth-child(4) {
    border-top: 1px solid var(--line);
  }

  .gb-part {
    padding-block: 40px;
  }

  /* build: the cover sits on top, the current step under it */
  .gb-build-track {
    height: 460vh;
    margin-bottom: -14vh;
  }

  .gb-build-stick {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    align-content: center;
    gap: 44px;
  }

  .gb-stack {
    order: -1;
    justify-self: center;
    height: min(50vh, 400px);
  }

  .gb-stack-cap {
    top: calc(100% + 12px);
  }

  .gb-build-steps {
    position: relative;
    min-height: 150px;
  }

  .gb-build-steps li {
    position: absolute;
    inset: 0 0 auto;
    border: 0 !important;
    padding: 0;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s, transform 0.5s var(--ease);
  }

  .gb-build-steps li.is-on {
    opacity: 1;
    transform: none;
  }

  .gb-build-steps h3 {
    font-size: 22px;
  }

  .gb-build-steps p {
    max-height: none;
    margin-top: 6px;
    font-size: 14.5px;
  }

  .gb-proof-sheet {
    padding: 36px 20px 28px;
  }

  .gb-proof-grid {
    gap: 22px 12px;
  }

  .gb-proof figcaption {
    font-size: 11.5px;
  }

  .gb-final {
    max-width: 240px;
  }

  .gb-stamp {
    width: 88px;
    height: 88px;
    top: -26px;
    right: -30px;
  }

  .gb-jk-track {
    height: 260vh;
    margin-bottom: -28vh;
  }

  .gb-jk-legend {
    display: none;
  }

  .gb-anat li {
    grid-template-columns: 30px 1fr;
  }

  .gb-anat em {
    grid-column: 2;
    font-size: 14px;
  }

  .gb-specs {
    grid-template-columns: 1fr;
  }

  .gb-colours {
    grid-template-columns: 1fr;
    margin: 56px 0;
  }

  .gb-levels {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gb-levels button {
    height: 90px;
  }

  .gb-applied,
  .gb-pass {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 36px 16px;
  }

  .gb-applied figcaption {
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 26px;
    font-size: 12px;
  }

  .gb-pass-card figcaption {
    font-size: 17px;
  }

  .gb-end {
    padding: 72px 0;
  }

  .gb-end-in {
    grid-template-columns: 1fr;
    gap: 64px;
    justify-items: center;
  }

  .gb-end .gb-book {
    --w: 190px;
  }

  .pg-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .pg-btns > * {
    flex: 1;
  }

  .pg-result {
    padding: 22px 16px;
  }
}

/* the page reflows on narrow screens: the lesson first, the word bank under it */
@container (max-width: 620px) {
  .pg-sheet {
    --u: 1.78px;
    padding: 28px 16px 18px 34px;
  }

  .pg-body {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .pg-in {
    width: 120px;
  }

  .pg-title span {
    padding-inline: 10px;
    font-size: 17px;
  }

  .pg-class {
    font-size: 19px;
  }

  .pg-pill--lvl {
    min-width: 0;
    padding-inline: 12px;
  }

  .pg-picker {
    position: fixed;
    left: 8px !important;
    right: 8px;
    top: auto !important;
    bottom: 8px;
    width: auto;
    max-height: 70vh;
    overflow: auto;
  }
}

/* ============ Reduced motion: everything simply there ============ */
@media (prefers-reduced-motion: reduce) {
  .gb-cloud-row,
  .gb-book-r,
  .gb-book-shadow,
  .gb-scroll span {
    animation: none;
  }

  .gb-build-track,
  .gb-jk-track {
    height: auto;
    margin-bottom: 0;
  }

  .gb-build-stick,
  .gb-jk-stick {
    position: relative;
    height: auto;
    padding-block: 40px;
  }

  .gb-build-steps {
    min-height: 0;
  }

  .gb-build-steps li {
    position: static;
    opacity: 1;
    transform: none;
  }

  .gb-build-steps li p {
    max-height: none;
    margin-top: 8px;
  }

  .gb-stack .gb-l {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .gb-jk-stick {
    display: none;
  }

  .gb-wrapfig {
    display: block;
  }
}

/* the shared footer stays white under the night finale */
.gb-page .site-footer {
  position: relative;
  margin-top: 0;
  padding-top: 64px;
  background: #fff;
  color: #000;
}

/* ---------- Before the hero builds ---------- */
.pre-motion .gb-hero-copy > *,
.pre-motion .gb-hero-book {
  opacity: 0;
}
