/* ═══════════════════════════════════════════════════════════════
   Baca Bersama · Malaysia Reading Programme
   Palette : navy / crimson / cool paper — no cream, no black
   Type    : Fraunces (WONK on) for display, Plus Jakarta Sans for text
   ═══════════════════════════════════════════════════════════════ */

:root{
  --navy:      #0A1B4D;
  --navy-deep: #050E2C;
  --navy-mid:  #2B4EA8;
  --navy-soft: #6C82BC;
  --red:       #C8102E;
  --red-bright:#E4243F;
  --paper:     #F2F5FB;
  --paper-2:   #E6ECF7;
  --white:     #FFFFFF;
  --line:      #C6D2E8;

  --shell: 1200px;
  --gut: clamp(20px, 5vw, 64px);

  --sans: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --disp: "Fraunces", "Iowan Old Style", Georgia, serif;

  --wonk: "SOFT" 32, "WONK" 1;

  --dock-h: 96px;
}

*,*::before,*::after{ box-sizing:border-box; }

html{ -webkit-text-size-adjust:100%; scroll-behavior:smooth; }

body{
  margin:0;
  padding-bottom: var(--dock-h);
  background: var(--paper);
  color: var(--navy);
  font-family: var(--sans);
  font-size: clamp(15.5px, 1.05vw, 17px);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img{ max-width:100%; display:block; }

::selection{ background: var(--red); color:#fff; }

:focus-visible{
  outline: 3px solid var(--red-bright);
  outline-offset: 3px;
  border-radius: 2px;
}

.wrap{
  width: min(100% - (var(--gut) * 2), var(--shell));
  margin-inline: auto;
}


/* ─── Shared type ──────────────────────────────────────────── */

.h2{
  font-family: var(--disp);
  font-variation-settings: "opsz" 96, var(--wonk);
  font-weight: 500;
  font-size: clamp(30px, 4.4vw, 52px);
  line-height: 1.08;
  letter-spacing: -.018em;
  margin: 0 0 .5em;
  max-width: 17ch;
}
.h2--light{ color: var(--paper); }

.lede{
  font-size: clamp(16px, 1.35vw, 19px);
  color: #3C4E7E;
  max-width: 52ch;
  margin: 0;
}


/* ─── Buttons ──────────────────────────────────────────────── */

.btn{
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 15px 26px;
  border: 2px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -.005em;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s cubic-bezier(.2,.7,.3,1), background-color .18s, color .18s, box-shadow .18s;
}
.btn i{ font-size: 17px; }

.btn__wa{
  width: 24px;
  height: 24px;
  flex: none;
  border-radius: 6px;
}

.btn--primary{
  background: var(--red);
  color: #fff;
  box-shadow: 0 12px 26px -12px rgba(200,16,46,.85);
}
.btn--primary:hover{ background: var(--red-bright); transform: translateY(-2px); }
.btn--primary:active{ transform: translateY(0); }

.btn--ghost{
  background: transparent;
  color: var(--paper);
  border-color: rgba(198,210,232,.42);
}
.btn--ghost:hover{ background: rgba(255,255,255,.09); border-color: rgba(198,210,232,.8); }

.btnrow{
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 34px 0 0;
}

.linkish{
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: var(--red);
}
.linkish:hover{ color: var(--red); }


/* ═══════════ 1 · HERO ═══════════ */

.hero{
  position: relative;
  background: var(--navy);
  color: var(--paper);
  overflow: hidden;
  padding-bottom: 74px;
}

/* songket-inspired weave, very low contrast */
.hero__weave{
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .5;
  background:
    repeating-linear-gradient(56deg,  rgba(255,255,255,.055) 0 1px, transparent 1px 13px),
    repeating-linear-gradient(-56deg, rgba(255,255,255,.04)  0 1px, transparent 1px 13px),
    radial-gradient(120% 90% at 78% 8%, rgba(43,78,168,.55) 0%, transparent 62%),
    radial-gradient(80% 70% at 0% 100%, rgba(200,16,46,.24) 0%, transparent 60%);
}

.hero__inner{
  position: relative;
  z-index: 1;
  width: min(100% - (var(--gut) * 2), var(--shell));
  margin-inline: auto;
  padding: clamp(28px, 4vw, 56px) 0 clamp(40px, 6vw, 76px);
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}

/* wordmark */
.mark{
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 12px;
  align-items: center;
  text-decoration: none;
  color: inherit;
  width: max-content;
  margin-bottom: clamp(28px, 4vw, 48px);
}
.mark__glyph{
  grid-row: 1 / 3;
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 12px 12px 12px 3px;
  background: var(--red);
  color: #fff;
  font-size: 18px;
}
.mark__name{
  font-family: var(--disp);
  font-variation-settings: "opsz" 40, var(--wonk);
  font-weight: 600;
  font-size: 21px;
  line-height: 1.05;
  letter-spacing: -.02em;
}
.mark__sub{
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--navy-soft);
}

.hero__title{
  font-family: var(--disp);
  font-variation-settings: "opsz" 144, var(--wonk);
  font-weight: 500;
  font-size: clamp(40px, 6.6vw, 82px);
  line-height: .99;
  letter-spacing: -.03em;
  margin: 0 0 22px;
  text-wrap: balance;
}

.hero__deck{
  font-size: clamp(16px, 1.35vw, 19px);
  line-height: 1.6;
  color: #C3CFE9;
  max-width: 46ch;
  margin: 0;
}
.hero__deck b{ color: #fff; font-weight: 700; }

/* fact strip — ruled like a ledger, not carded */
.facts{
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 0;
  margin: 40px 0 0;
  border-top: 1px solid rgba(198,210,232,.24);
}
.facts__cell{
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px 20px 4px 0;
  border-right: 1px solid rgba(198,210,232,.18);
}
.facts__cell:last-child{ border-right: 0; }
.facts dt{
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.35;
  min-height: 2.7em;
  color: var(--navy-soft);
  max-width: 15ch;
}
.facts dd{
  margin: 6px 0 0;
  font-family: var(--disp);
  font-variation-settings: "opsz" 60, var(--wonk);
  font-weight: 600;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
  color: #fff;
}

/* ── the fanned book trio ── */

.stage{
  position: relative;
  min-height: clamp(340px, 46vw, 560px);
  display: grid;
  place-items: center;
  perspective: 1400px;
}

.stage__ring{
  position: absolute;
  width: min(94%, 460px);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px dashed rgba(198,210,232,.3);
  animation: spin 64s linear infinite;
}
.stage__ring::after{
  content:"";
  position: absolute;
  inset: 11%;
  border-radius: 50%;
  border: 1px solid rgba(200,16,46,.42);
}

.stage__plinth{
  position: absolute;
  bottom: 6%;
  width: min(80%, 400px);
  height: 70px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(43,78,168,.7), transparent 74%);
  filter: blur(8px);
}

.fan{
  position: relative;
  width: min(100%, 420px);
  aspect-ratio: 1 / 1.02;
  transform-style: preserve-3d;
  will-change: transform;
}

.fan__item{
  position: absolute;
  top: 50%; left: 50%;
  width: 52%;
  margin: 0;
  transform-style: preserve-3d;
  /* JS supplies --px/--py from pointer position */
  --px: 0; --py: 0;
}
.fan__item img{
  width: 100%;
  height: auto;
  /* the renders carry a black vignette — screen knocks it out over navy
     and leaves the spotlight halo, which is the effect we want */
  mix-blend-mode: screen;
  filter: contrast(1.06) saturate(1.04);
}

.fan__item--left{
  transform:
    translate(calc(-132% + var(--px) * 1px), calc(-56% + var(--py) * 1px))
    rotate(-14deg) rotateY(22deg) scale(.86);
  z-index: 1;
}
.fan__item--right{
  transform:
    translate(calc(32% + var(--px) * 1px), calc(-58% + var(--py) * 1px))
    rotate(13deg) rotateY(-22deg) scale(.86);
  z-index: 1;
}
.fan__item--front{
  width: 56%;
  transform:
    translate(calc(-50% + var(--px) * 1px), calc(-42% + var(--py) * 1px))
    rotateY(-4deg) scale(1.02);
  z-index: 3;
}

/* one orchestrated page-load fan-out */
.fan--armed .fan__item{
  transition: transform .95s cubic-bezier(.19,1,.22,1), opacity .7s ease;
}
.fan--idle .fan__item{
  opacity: 0;
  transform: translate(-50%, -40%) rotate(0deg) scale(.86);
}
.fan--idle .fan__item--front{ opacity: 0; }

/* ── obi band ── */

.obi{
  position: relative;
  z-index: 1;
  background: var(--red);
  color: #fff;
  overflow: hidden;
  padding: 13px 0;
  border-top: 1px solid rgba(255,255,255,.18);
}
.obi__track{
  display: flex;
  align-items: center;
  gap: 26px;
  width: max-content;
  animation: slide 44s linear infinite;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .015em;
  white-space: nowrap;
}
.obi__dot{
  width: 5px; height: 5px;
  border-radius: 50%;
  background: rgba(255,255,255,.65);
  flex: none;
}


/* ═══════════ 2 · COLLECTIONS ═══════════ */

.shelf{
  padding: clamp(64px, 9vw, 118px) 0 clamp(56px, 8vw, 104px);
  background:
    linear-gradient(var(--paper), var(--paper)) padding-box;
}

.shelf__head{
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(16px, 3vw, 48px);
  align-items: end;
  margin-bottom: clamp(40px, 6vw, 72px);
}

.picks{
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: clamp(20px, 2.6vw, 34px);
  align-items: start;
}

.pick{ position: relative; }
.pick--b{ transform: translateY(clamp(16px, 3vw, 44px)); }
.pick--c{ transform: translateY(clamp(32px, 6vw, 88px)); }

/* arch-masked plate, dark so the render vignette disappears */
.pick__art{
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 220px 220px 10px 10px;
  overflow: hidden;
  background: radial-gradient(120% 80% at 50% 22%, #10265F 0%, var(--navy-deep) 72%);
  display: grid;
  place-items: center;
  padding: 12% 16% 8%;
  isolation: isolate;
}
.pick__art::after{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(190deg, transparent 46%, rgba(200,16,46,.34));
  opacity: 0;
  transition: opacity .45s ease;
  mix-blend-mode: color;
}
.pick__art img{
  width: 100%;
  height: auto;
  mix-blend-mode: screen;
  transform: rotate(-2deg) scale(1);
  transition: transform .6s cubic-bezier(.19,1,.22,1);
  filter: drop-shadow(0 24px 34px rgba(0,0,0,.5));
}
.pick:hover .pick__art img{ transform: rotate(0deg) scale(1.06); }
.pick:hover .pick__art::after{ opacity: 1; }

/* 三块拱形版面统一，节奏交给上下错位，不靠形状乱变 */

.pick__body{ padding: 22px 4px 0; }

.pick__title{
  font-family: var(--disp);
  font-variation-settings: "opsz" 60, var(--wonk);
  font-weight: 600;
  font-size: clamp(23px, 2.2vw, 29px);
  line-height: 1.1;
  letter-spacing: -.02em;
  margin: 0 0 6px;
}
.pick__kind{
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 700;
  color: var(--red);
}
.pick__body > p{
  margin: 0 0 16px;
  color: #3C4E7E;
  font-size: 15px;
}
.pick__list{
  margin: 0;
  padding: 16px 0 0;
  list-style: none;
  border-top: 1px solid var(--line);
  font-size: 14.5px;
}
.pick__list li{
  position: relative;
  padding: 0 0 8px 18px;
  color: #47598A;
}
.pick__list li::before{
  content: "";
  position: absolute;
  left: 0; top: .62em;
  width: 7px; height: 7px;
  border-radius: 2px 2px 2px 0;
  background: var(--navy-mid);
}

.shelf__cta{
  margin-top: clamp(56px, 9vw, 128px);
  display: flex;
  justify-content: center;
}


/* ═══════════ 3 · STEPS ═══════════ */

.steps{
  background: var(--navy-deep);
  color: var(--paper);
  padding: clamp(64px, 9vw, 112px) 0;
  position: relative;
  overflow: hidden;
}
.steps::before{
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(56deg, rgba(255,255,255,.045) 0 1px, transparent 1px 15px);
  pointer-events: none;
}
.steps .wrap{ position: relative; }

.steps .h2{ margin-bottom: clamp(36px, 5vw, 60px); }

.rail{
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: clamp(20px, 3vw, 44px);
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}
.rail__step{
  position: relative;
  padding-top: 30px;
  border-top: 2px solid rgba(198,210,232,.22);
}
.rail__step::after{
  content: "";
  position: absolute;
  top: -2px; left: 0;
  width: 46px; height: 2px;
  background: var(--red);
}
.rail__num{
  display: block;
  font-family: var(--disp);
  font-variation-settings: "opsz" 72, var(--wonk);
  font-weight: 600;
  font-size: 40px;
  line-height: 1;
  color: var(--navy-soft);
  font-variant-numeric: tabular-nums;
  margin-bottom: 14px;
}
.rail__step h3{
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -.012em;
  margin: 0 0 8px;
  color: #fff;
}
.rail__step p{
  margin: 0;
  color: #B3C1E0;
  font-size: 15px;
  max-width: 34ch;
}

.steps__note{
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin: clamp(40px, 6vw, 64px) 0 0;
  padding: 20px 24px;
  border-radius: 4px 20px 20px 20px;
  background: rgba(200,16,46,.14);
  border: 1px solid rgba(228,36,63,.38);
  color: #E7DDE2;
  font-size: 14.5px;
  max-width: 74ch;
}
.steps__note i{ color: var(--red-bright); font-size: 18px; margin-top: 2px; }


/* ═══════════ 4 · WHY ═══════════ */

.why{ padding: clamp(64px, 9vw, 118px) 0; background: var(--paper); }

.why__grid{
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}

/* 两张照片叠成一组：拱形主图放人，方形小图放文化细节 */
.why__art{
  position: relative;
  padding-bottom: 52px;
}

.why__plate{
  margin: 0;
  border-radius: 260px 260px 14px 14px;
  overflow: hidden;
  background: var(--navy-deep);
}
.why__plate img{
  width: 100%;
  height: auto;          /* 覆盖 HTML height 属性，否则 aspect-ratio 不生效 */
  aspect-ratio: 3 / 4;
  object-fit: cover;
  filter: saturate(.84) contrast(1.04);
  transition: filter .6s ease,
              transform .8s cubic-bezier(.19,1,.22,1),
              clip-path 1.05s cubic-bezier(.19,1,.22,1);
}
.why__plate:hover img{ filter: saturate(1) contrast(1.02); transform: scale(1.04); }

.why__inset{
  position: absolute;
  right: -7%;
  bottom: 0;
  width: 47%;
  margin: 0;
  border: 7px solid var(--paper);
  border-radius: 14px 14px 14px 72px;
  overflow: hidden;
  background: var(--navy-deep);
  box-shadow: 0 26px 54px -22px rgba(5,14,44,.6);
}
.why__inset img{
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform .8s cubic-bezier(.19,1,.22,1),
              clip-path 1.05s cubic-bezier(.19,1,.22,1);
}
.why__inset:hover img{ transform: scale(1.05); }

/* 贴右下角：左下角是 72px 大圆角，标签放那边会被切掉 */
.why__cap{
  position: absolute;
  right: 0; bottom: 0;
  padding: 9px 18px 10px 16px;
  background: var(--red);
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  border-radius: 12px 0 0 0;
}

.why__copy > p{
  margin: 0 0 18px;
  color: #3C4E7E;
  max-width: 54ch;
}

.why__pair{
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: clamp(18px, 2.4vw, 32px);
  margin-top: 34px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}
.why__cell i{
  font-size: 20px;
  color: var(--red);
  margin-bottom: 12px;
  display: block;
}
.why__cell h3{
  font-size: 16.5px;
  font-weight: 700;
  letter-spacing: -.012em;
  margin: 0 0 6px;
}
.why__cell p{
  margin: 0;
  font-size: 14.5px;
  color: #47598A;
}


/* ═══════════ 5 · DETAIL ═══════════ */

.detail{
  padding: clamp(56px, 8vw, 104px) 0 clamp(64px, 9vw, 118px);
  background: var(--paper-2);
}

.detail__grid{
  display: grid;
  grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}

.detail__art{
  position: sticky;
  top: 40px;
  border-radius: 14px 14px 14px 120px;
  overflow: hidden;
  background: var(--navy-deep);
}
.detail__art img{
  width: 100%;
  height: auto;          /* 同上 */
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform .8s cubic-bezier(.19,1,.22,1),
              clip-path 1.05s cubic-bezier(.19,1,.22,1);
}
.detail__art:hover img{ transform: scale(1.05); }

.spec{ margin: 28px 0 36px; }

.spec__row{
  display: grid;
  grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr);
  gap: clamp(14px, 2.4vw, 36px);
  padding: 18px 0;
  border-top: 1px solid var(--line);
}
.spec__row:last-child{ border-bottom: 1px solid var(--line); }

.spec dt{
  display: flex;
  gap: 10px;
  align-items: baseline;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -.01em;
}
.spec dt i{ color: var(--red); font-size: 14px; width: 17px; flex: none; }

.spec dd{
  margin: 0;
  font-size: 15px;
  color: #3C4E7E;
}


/* ═══════════ 6 · FOOTER ═══════════ */

.foot{
  background: var(--navy);
  color: #B3C1E0;
  padding: clamp(56px, 7vw, 88px) 0 40px;
  font-size: 14px;
}

.foot__grid{
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr 1fr;
  gap: clamp(24px, 3.4vw, 48px);
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(198,210,232,.18);
}

.mark__glyph--foot{
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 11px 11px 11px 3px;
  background: var(--red);
  color: #fff;
  font-size: 16px;
  margin-bottom: 14px;
}
.foot__name{
  font-family: var(--disp);
  font-variation-settings: "opsz" 40, var(--wonk);
  font-weight: 600;
  font-size: 20px;
  color: #fff;
  margin: 0 0 6px;
  letter-spacing: -.02em;
}
.foot__tag{ margin: 0; max-width: 26ch; }

.foot__block h3{
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .05em;
  color: var(--navy-soft);
  margin: 0 0 12px;
}
.foot__block p{ margin: 0; line-height: 1.75; }
.foot__block a{ color: #DCE4F5; text-decoration: underline; text-underline-offset: 3px; }
.foot__block a:hover{ color: #fff; }

.foot__legal{ padding-top: 34px; }

.foot__disc{
  margin: 0 0 26px;
  font-size: 12.5px;
  line-height: 1.7;
  color: #8FA2CC;
  max-width: 92ch;
}

.foot__links{
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  margin-bottom: 26px;
}
.foot__links .linkish{
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 18px;
  border: 1px solid rgba(198,210,232,.28);
  border-radius: 999px;
  color: #DCE4F5;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color .18s, border-color .18s, color .18s;
}
.foot__links .linkish i{ color: var(--red-bright); font-size: 13px; }
.foot__links .linkish:hover{
  background: rgba(255,255,255,.07);
  border-color: rgba(198,210,232,.6);
  color: #fff;
}

.foot__copy{ margin: 0; font-size: 12.5px; color: #7D91BF; }


/* ═══════════ Fixed dock ═══════════ */

.dock{
  position: fixed;
  left: 50%;
  bottom: max(16px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 60;
  width: max-content;
  max-width: calc(100vw - 24px);
}

.dock__btn{
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 15px 13px 15px;
  border: 0;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font: inherit;
  cursor: pointer;
  box-shadow: 0 16px 40px -12px rgba(5,14,44,.75), 0 0 0 6px rgba(200,16,46,.14);
  transition: transform .2s cubic-bezier(.2,.7,.3,1), background-color .2s;
}
.dock__btn:hover{ background: var(--red-bright); transform: translateY(-2px); }
.dock__btn:active{ transform: translateY(0); }

.dock__btn .btn__wa{
  width: 34px; height: 34px;
  border-radius: 50%;
  background: #fff;
  padding: 4px;
}
.dock__text{
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -.01em;
}
.dock__meta{
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.18);
  white-space: nowrap;
}


/* ═══════════ Legal sheets ═══════════ */

.sheet{
  width: min(720px, calc(100vw - 32px));
  max-height: min(84vh, 820px);
  padding: 0;
  border: 0;
  border-radius: 20px;
  background: var(--white);
  color: var(--navy);
  box-shadow: 0 40px 90px -30px rgba(5,14,44,.7);
  overflow: hidden;
}
.sheet::backdrop{
  background: rgba(5,14,44,.62);
  backdrop-filter: blur(3px);
}

.sheet__bar{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  background: var(--navy);
  color: #fff;
}
.sheet__bar h2{
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  font-family: var(--disp);
  font-variation-settings: "opsz" 40, var(--wonk);
  font-weight: 600;
  font-size: 21px;
  letter-spacing: -.02em;
}
.sheet__bar h2 i{ color: var(--red-bright); font-size: 17px; }

.sheet__x{
  width: 38px; height: 38px;
  flex: none;
  display: grid; place-items: center;
  border: 1px solid rgba(198,210,232,.3);
  border-radius: 50%;
  background: transparent;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  transition: background-color .18s;
}
.sheet__x:hover{ background: rgba(255,255,255,.12); }

.sheet__body{
  padding: 26px 30px 34px;
  overflow-y: auto;
  max-height: calc(min(84vh, 820px) - 78px);
  overscroll-behavior: contain;
}
.sheet__meta{
  margin: 0 0 22px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  font-weight: 600;
  color: var(--navy-soft);
}
.sheet__body h3{
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: -.012em;
  margin: 22px 0 7px;
}
.sheet__body h3:first-of-type{ margin-top: 0; }
.sheet__body p{
  margin: 0;
  font-size: 14.5px;
  line-height: 1.7;
  color: #3C4E7E;
  max-width: 70ch;
}
.sheet__body a{ color: var(--red); }


/* ═══════════ Reveal ═══════════
   注意：clip-path 只能加在 <img> 上，不能加在被 IntersectionObserver
   观察的元素本身 —— 折叠后的 clip 会让它永远无法与视口相交，动画就死锁了。
   ------------------------------------------------------------------ */

.reveal img{ clip-path: inset(0 0 100% 0); }
.reveal.is-in img{ clip-path: inset(0 0 0 0); }


/* ═══════════ Keyframes ═══════════ */

@keyframes spin{ to{ transform: rotate(360deg); } }
@keyframes slide{ to{ transform: translateX(-50%); } }


/* ═══════════ Responsive ═══════════ */

@media (max-width: 1000px){
  .hero__inner{ grid-template-columns: 1fr; }
  .stage{ order: -1; min-height: 320px; }
  .fan{ width: min(100%, 340px); }

  /* 窄屏收紧扇形，别让两侧的书被切掉 */
  .fan__item--left{
    transform:
      translate(calc(-112% + var(--px) * 1px), calc(-54% + var(--py) * 1px))
      rotate(-12deg) rotateY(18deg) scale(.8);
  }
  .fan__item--right{
    transform:
      translate(calc(14% + var(--px) * 1px), calc(-56% + var(--py) * 1px))
      rotate(11deg) rotateY(-18deg) scale(.8);
  }
  .fan__item--front{
    width: 54%;
    transform:
      translate(calc(-50% + var(--px) * 1px), calc(-44% + var(--py) * 1px))
      rotateY(-3deg) scale(1);
  }
  .shelf__head{ grid-template-columns: 1fr; align-items: start; gap: 18px; }
  .picks{ grid-template-columns: repeat(2, minmax(0,1fr)); }
  .pick--c{ grid-column: 1 / -1; transform: none; max-width: 460px; }
  .rail{ grid-template-columns: 1fr; gap: 26px; }
  .rail__step p{ max-width: 56ch; }
  .why__grid,
  .detail__grid{ grid-template-columns: 1fr; }
  .detail__art{ position: static; }
  .why__plate img{ aspect-ratio: 4 / 3; }
  .detail__art img{ aspect-ratio: 16 / 10; }
  .foot__grid{ grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 640px){
  :root{ --dock-h: 104px; }

  .facts{ grid-template-columns: 1fr 1fr; }
  .facts__cell:nth-child(3){
    grid-column: 1 / -1;
    border-right: 0;
    border-top: 1px solid rgba(198,210,232,.18);
  }
  .facts dt{ max-width: none; }

  .btnrow .btn{ width: 100%; justify-content: center; }

  .picks{ grid-template-columns: 1fr; gap: 40px; }
  .pick--b,
  .pick--c{ transform: none; max-width: none; }
  .pick__art{ border-radius: 200px 200px 10px 10px; }

  .spec__row{ grid-template-columns: 1fr; gap: 8px; }

  .why__art{ padding-bottom: 40px; }
  .why__inset{ right: 0; width: 58%; border-width: 5px; border-radius: 12px 12px 12px 48px; }
  .why__cap{ font-size: 10px; padding: 6px 13px 7px 11px; white-space: nowrap; }

  .foot__grid{ grid-template-columns: 1fr; gap: 30px; }
  .foot__links .linkish{ flex: 1 1 auto; justify-content: center; }

  .dock{ width: calc(100vw - 24px); }
  .dock__btn{
    width: 100%;
    justify-content: center;
    padding: 11px 14px;
  }
  .dock__text{ font-size: 15px; }
  .dock__meta{ display: none; }

  .sheet__body{ padding: 22px 20px 28px; }
}


/* ═══════════ Reduced motion ═══════════ */

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  .stage__ring,
  .obi__track{ animation: none; }
  .reveal img{ clip-path: none; }
  .fan--idle .fan__item{ opacity: 1; }
  *,*::before,*::after{ transition-duration: .01ms !important; }
}
