
  .as-bk {
    --bk-navy: #203f67;
    --bk-teal: #0799A5;
    --bk-teal-dark: #087f8a;
    --bk-ink: #172334;
    --bk-body: #5c6875;
    --bk-line: #dfe7ec;
    --bk-paper: #fbfaf7;

    width: 100%;
    padding: 64px 24px 72px;
    box-sizing: border-box;
    background: #ffffff;
    color: var(--bk-ink);
    font-family: inherit;
  }

  .as-bk * { box-sizing: border-box; }

  .as-bk__container { max-width: 1240px; margin: 0 auto; }

  /* ---------------- header ---------------- */
  .as-bk__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 30px;
  }

  .as-bk__kicker {
    margin-bottom: 12px;
    color: var(--bk-teal);
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: 1.8px;
  }

  .as-bk__title {
    margin: 0 0 10px;
    font-size: clamp(30px, 3.6vw, 44px);
    line-height: 1.12;
    font-weight: 730;
    letter-spacing: -0.02em;
    color: var(--bk-navy);
  }

  .as-bk__sub {
    margin: 0;
    max-width: 660px;
    font-size: 14px;
    line-height: 1.62;
    color: var(--bk-body);
  }

  .as-bk__nav {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 0 0 auto;
  }

  .as-bk__arrow {
    width: 50px;
    height: 50px;
    border: 1px solid var(--bk-line);
    border-radius: 50%;
    background: #ffffff;
    color: var(--bk-navy);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.12s ease;
  }
  .as-bk__arrow:hover { background: var(--bk-teal); border-color: var(--bk-teal); color: #ffffff; }
  .as-bk__arrow:active { transform: scale(0.94); }
  .as-bk__arrow:disabled { opacity: 0.35; cursor: default; }
  .as-bk__arrow:disabled:hover { background: #ffffff; border-color: var(--bk-line); color: var(--bk-navy); }

  .as-bk__count {
    display: inline-flex;
    align-items: baseline;
    gap: 3px;
    min-width: 62px;
    justify-content: center;
    font-size: 14px;
    color: var(--bk-body);
  }
  .as-bk__count b { font-size: 19px; font-weight: 760; color: var(--bk-navy); }
  .as-bk__count i { font-style: normal; opacity: 0.5; }

  /* ---------------- stage / book ---------------- */
  .as-bk__stage { outline: none; }
  .as-bk__stage:focus-visible .as-bk__book { box-shadow: 0 0 0 3px rgba(7, 153, 165, 0.35); }

  .as-bk__book {
    position: relative;
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    aspect-ratio: 1240 / 500;
    border-radius: 6px;
    box-shadow: 0 30px 70px rgba(23, 47, 78, 0.16);
    transition: opacity 0.35s ease;
  }
  .as-bk__book.is-resetting { opacity: 0.25; }

  /* left page (first spread only) */
  .as-bk__left {
    position: absolute;
    left: 0;
    top: 0;
    width: 50%;
    height: 100%;
    z-index: 1;
    background: var(--bk-paper);
    border: 1px solid var(--bk-line);
    border-right: none;
    border-radius: 6px 0 0 6px;
    overflow: hidden;
  }

  /* end paper under the right stack */
  .as-bk__base {
    position: absolute;
    left: 50%;
    top: 0;
    width: 50%;
    height: 100%;
    z-index: 0;
    background: var(--bk-paper);
    border: 1px solid var(--bk-line);
    border-left: none;
    border-radius: 0 6px 6px 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .as-bk__base-mark {
    display: flex;
    align-items: center;
    gap: 14px;
    color: #a9b6c0;
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
  }
  .as-bk__base-mark em { font-style: normal; }
  .as-bk__base-bar { width: 42px; height: 1px; background: #d7e0e6; }

  /* The sheet stack. Perspective lives here (not on the book) so that the
     leaves stay in a normal 2D stacking context and z-index still works. */
  .as-bk__leaves {
    position: absolute;
    inset: 0;
    z-index: 2;
    perspective: 2200px;
    perspective-origin: 50% 46%;
  }

  .as-bk__leaf {
    position: absolute;
    left: 50%;
    top: 0;
    width: 50%;
    height: 100%;
    transform-origin: left center;
    transform-style: preserve-3d;
    transition: transform 0.95s cubic-bezier(0.22, 0.68, 0.28, 1);
    will-change: transform;
  }
  .as-bk__leaf.is-flipped { transform: rotateY(-180deg); }

  .as-bk__face {
    position: absolute;
    inset: 0;
    overflow: hidden;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
  }
  .as-bk__face--front {
    transform: rotateY(0deg);
    background: #ffffff;
    border: 1px solid var(--bk-line);
    border-left: none;
    border-radius: 0 6px 6px 0;
  }
  .as-bk__face--back {
    transform: rotateY(180deg);
    background: var(--bk-paper);
    border: 1px solid var(--bk-line);
    border-right: none;
    border-radius: 6px 0 0 6px;
  }

  /* fold shading: the front page is lit from the spine, the back page from its own spine edge */
  .as-bk__face--front::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(23, 47, 78, 0.20) 0%, rgba(23, 47, 78, 0.04) 9%, rgba(255, 255, 255, 0) 22%);
    pointer-events: none;
  }
  .as-bk__face--back::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(270deg, rgba(23, 47, 78, 0.20) 0%, rgba(23, 47, 78, 0.04) 9%, rgba(255, 255, 255, 0) 22%);
    pointer-events: none;
  }

  /* shadow that travels with the sheet while it turns */
  .as-bk__leaf.is-flipping .as-bk__face--back { box-shadow: inset 26px 0 34px rgba(23, 47, 78, 0.16); }

  /* ---------------- page content ---------------- */
  .as-bk__page {
    position: absolute;
    inset: 0;
    padding: 44px 46px 38px;
    display: flex;
    flex-direction: column;
  }

  .as-bk__page-top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
  }
  .as-bk__page-no {
    font-size: 34px;
    font-weight: 780;
    line-height: 1;
    color: var(--bk-teal);
    letter-spacing: -0.02em;
  }
  .as-bk__page-tag {
    padding: 4px 11px;
    border: 1px solid var(--bk-line);
    border-radius: 3px;
    background: #ffffff;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--bk-navy);
  }

  .as-bk__page-title {
    margin: 0 0 14px;
    font-size: clamp(19px, 1.9vw, 25px);
    line-height: 1.24;
    font-weight: 740;
    letter-spacing: -0.01em;
    color: var(--bk-navy);
  }

  .as-bk__page-text {
    margin: 0 0 18px;
    font-size: 13.5px;
    line-height: 1.66;
    color: var(--bk-body);
  }

  .as-bk__specs {
    list-style: none;
    margin: 0 0 18px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 9px;
  }
  .as-bk__specs li {
    position: relative;
    padding-left: 20px;
    font-size: 13px;
    line-height: 1.5;
    color: var(--bk-ink);
  }
  .as-bk__specs li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 7px;
    width: 8px;
    height: 8px;
    border-radius: 2px;
    background: var(--bk-teal);
  }

  .as-bk__page-foot {
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid var(--bk-line);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #93a2ae;
  }

  .as-bk__cta {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 18px;
    padding: 11px 20px;
    border-radius: 3px;
    background: var(--bk-teal);
    color: #ffffff !important;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none !important;
    transition: background 0.18s ease, gap 0.18s ease;
  }
  .as-bk__cta:hover { background: var(--bk-teal-dark); gap: 11px; }

  /* ---------------- image side : drawing plate ----------------
     Source images are 16:9 to 2.2:1 while the page is portrait.
     Keeping the whole image (no crop) is mandatory, so the empty
     space is turned into a deliberate figure plate: grid wash,
     figure number at the top, caption at the bottom, framed image. */
  .as-bk__media {
    position: absolute;
    inset: 0;
    margin: 0;
    padding: 78px 24px 92px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f5f8fa;
    background-image:
      linear-gradient(135deg, var(--bk-wash, rgba(7, 153, 165, 0.07)) 0%, rgba(32, 63, 103, 0.09) 100%),
      repeating-linear-gradient(0deg, rgba(32, 63, 103, 0.035) 0 1px, transparent 1px 28px),
      repeating-linear-gradient(90deg, rgba(32, 63, 103, 0.035) 0 1px, transparent 1px 28px);
  }
  .as-bk__media img {
    display: block;
    /* natural aspect ratio: the complete render stays visible, never cropped */
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    background: #ffffff;
    border: 1px solid rgba(32, 63, 103, 0.16);
    box-shadow: 0 18px 38px rgba(23, 47, 78, 0.20), 0 2px 6px rgba(23, 47, 78, 0.10);
  }
  .as-bk__fig-label {
    position: absolute;
    top: 24px;
    right: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #8497a6;
  }
  .as-bk__fig-label span:last-child {
    padding: 4px 9px;
    border: 1px solid rgba(32, 63, 103, 0.16);
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.78);
    color: var(--bk-navy);
  }
  .as-bk__figcap {
    position: absolute;
    left: 24px;
    right: 24px;
    bottom: 26px;
    padding-left: 14px;
    border-left: 3px solid var(--bk-teal);
    font-size: 12px;
    line-height: 1.55;
    font-weight: 600;
    color: #5f7180;
  }

  .as-bk__stamp {
    position: absolute;
    left: 24px;
    top: 20px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 10px 17px 10px 13px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 10px 26px rgba(23, 47, 78, 0.14);
  }
  .as-bk__stamp-no {
    font-size: 20px;
    font-weight: 780;
    color: var(--bk-teal);
    line-height: 1;
  }
  .as-bk__stamp-name {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--bk-navy);
  }

  /* ---------------- spine shadow ---------------- */
  .as-bk__spine {
    position: absolute;
    left: 50%;
    top: 0;
    width: 78px;
    height: 100%;
    transform: translateX(-50%);
    background: linear-gradient(90deg,
                rgba(23, 47, 78, 0) 0%,
                rgba(23, 47, 78, 0.11) 42%,
                rgba(23, 47, 78, 0.14) 50%,
                rgba(23, 47, 78, 0.05) 58%,
                rgba(23, 47, 78, 0) 100%);
    pointer-events: none;
    z-index: 900;
  }

  /* ---------------- page rail ---------------- */
  .as-bk__rail {
    position: relative;
    display: flex;
    justify-content: space-between;
    gap: 8px;
    max-width: 1240px;
    margin: 26px auto 0;
    padding-top: 16px;
  }
  .as-bk__rail::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 2px;
    background: var(--bk-line);
  }
  .as-bk__tick {
    position: relative;
    flex: 1 1 0;
    border: none;
    background: none;
    padding: 14px 0 0;
    cursor: pointer;
    text-align: left;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #9aa8b4;
    transition: color 0.2s ease;
  }
  .as-bk__tick::before {
    content: "";
    position: absolute;
    left: 0;
    top: -16px;
    width: 2px;
    height: 12px;
    background: #cfdae1;
    transition: background 0.2s ease, height 0.2s ease;
  }
  .as-bk__tick:hover { color: var(--bk-navy); }
  .as-bk__tick.is-active { color: var(--bk-teal); }
  .as-bk__tick.is-active::before { background: var(--bk-teal); height: 16px; top: -18px; }
  .as-bk__tick.is-done { color: #6d7c89; }

  @media (max-width: 900px) {
    .as-bk { padding: 48px 18px 56px; }
    .as-bk__head { flex-direction: column; align-items: flex-start; gap: 18px; }
    .as-bk__book {
      aspect-ratio: auto;
      max-width: 560px;
      display: flex;
      flex-direction: column;
      gap: 16px;
      box-shadow: none;
    }
    .as-bk__left {
      position: static;
      width: 100%;
      height: auto;
      border: 1px solid var(--bk-line);
      border-radius: 6px;
      display: none;
    }
    .as-bk__left.is-current { display: block; }
    .as-bk__base { display: none; }
    .as-bk__leaves { position: static; perspective: none; display: flex; flex-direction: column; gap: 16px; }
    .as-bk__leaf {
      position: static;
      width: 100%;
      height: auto;
      transform: none !important;
      display: none;
    }
    /* the written detail always sits above the picture */
    .as-bk__leaf.is-current-text { order: 1; }
    .as-bk__leaf.is-current-image { order: 2; }
    .as-bk__leaf.is-current-image,
    .as-bk__leaf.is-current-text { display: block; }
    .as-bk__face {
      position: static;
      inset: auto;
      border-radius: 6px;
      border: 1px solid var(--bk-line);
    }
    .as-bk__face--front { border-left: 1px solid var(--bk-line); }
    .as-bk__face--back {
      border-right: 1px solid var(--bk-line);
      /* in the single column layout the sheet is no longer mirrored,
         so drop the 3D flip and make the page face the reader */
      transform: none;
      backface-visibility: visible;
      -webkit-backface-visibility: visible;
    }
    .as-bk__face--front::after,
    .as-bk__face--back::after { display: none; }
    .as-bk__leaf.is-current-image .as-bk__face--back { display: none; }
    .as-bk__leaf.is-current-text .as-bk__face--front { display: none; }
    .as-bk__media { position: relative; aspect-ratio: auto; padding: 76px 20px 82px; }
    .as-bk__media img { max-width: 100%; max-height: none; }
    .as-bk__stamp { left: 20px; top: 18px; }
    .as-bk__fig-label { top: 22px; right: 20px; }
    .as-bk__figcap { left: 20px; right: 20px; bottom: 22px; font-size: 11.5px; }
    .as-bk__page { position: relative; padding: 30px 26px 26px; }
    .as-bk__leaf.is-entering .as-bk__face--front { animation: asBkIn 0.5s ease both; }
    .as-bk__spine { display: none; }
    .as-bk__rail { max-width: 560px; flex-wrap: wrap; gap: 4px; }
    .as-bk__tick { flex: 0 0 auto; padding: 10px 8px 0 0; }
    .as-bk__tick::before { display: none; }
  }

  @keyframes asBkIn {
    from { opacity: 0; transform: translateX(26px); }
    to   { opacity: 1; transform: translateX(0); }
  }

  @media (prefers-reduced-motion: reduce) {
    .as-bk__leaf { transition: none; }
    .as-bk__leaf.is-entering .as-bk__face--front { animation: none; }
  }
