/* =========================================================
   Aster Walk Again – E-Brochure landing page
   Palette taken from the brochures: deep navy, teal-green
   accent, sky-blue highlights.
   ========================================================= */
:root {
  --bg: #031220;
  --bg-2: #062038;
  --bg-3: #0a2c4a;
  --panel: rgba(255, 255, 255, .045);
  --panel-2: rgba(255, 255, 255, .07);
  --line: rgba(255, 255, 255, .1);
  --line-2: rgba(255, 255, 255, .18);
  --text: #eef6fb;
  --muted: #9cb3c4;
  --dim: #6f8ba0;
  --teal: #2bb58a;
  --teal-2: #4fd8ad;
  --sky: #6fc6f0;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 30px 80px -20px rgba(0, 0, 0, .65);
  --ease: cubic-bezier(.22, .8, .24, 1);
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Figtree", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.no-scroll { overflow: hidden; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.1; letter-spacing: -.02em; font-weight: 700; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--teal-2); outline-offset: 3px; border-radius: 8px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--teal); color: #032; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }

.i { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.i--fill { fill: currentColor; stroke: none; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--teal-2);
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--teal); border-radius: 2px; }
.eyebrow--sm { font-size: 11px; }
.eyebrow--sm::before { width: 18px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 24px; border-radius: 999px;
  font-weight: 700; font-size: 15px; text-decoration: none; white-space: nowrap;
  transition: transform .25s var(--ease), background .25s, box-shadow .25s, border-color .25s;
}
.btn--sm { height: 42px; padding: 0 18px; font-size: 14px; gap: 8px; }
.btn--sm .i { width: 16px; height: 16px; }
.btn--primary {
  color: #03211a;
  background: linear-gradient(135deg, var(--teal-2), var(--teal));
  box-shadow: 0 12px 30px -10px rgba(43, 181, 138, .6), inset 0 1px 0 rgba(255,255,255,.35);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -12px rgba(43, 181, 138, .75), inset 0 1px 0 rgba(255,255,255,.35); }
.btn--ghost { border: 1px solid var(--line-2); background: rgba(255,255,255,.03); }
.btn--ghost:hover { background: rgba(255,255,255,.08); transform: translateY(-2px); }
.btn--soft { background: var(--panel-2); border: 1px solid var(--line); }
.btn--soft:hover { background: rgba(255,255,255,.12); }
.btn--play { background: rgba(43,181,138,.14); color: var(--teal-2); border: 1px solid rgba(79,216,173,.35); }
.btn--play:hover { background: rgba(43,181,138,.24); }

.icon-btn {
  width: 44px; height: 44px; border-radius: 50%;
  display: inline-grid; place-items: center;
  border: 1px solid var(--line); background: var(--panel-2);
  transition: background .2s, transform .2s, opacity .2s;
  text-decoration: none;
}
.icon-btn:hover:not(:disabled) { background: rgba(255,255,255,.14); transform: translateY(-1px); }
.icon-btn:disabled { opacity: .3; cursor: default; }

/* ---------- Header ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  transition: background .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(3, 18, 32, .78);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-color: var(--line);
}
.nav__inner { height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav__logo img { height: 44px; width: auto; }
.nav__links { display: flex; gap: 32px; font-weight: 600; font-size: 15px; }
.nav__links a { text-decoration: none; color: var(--muted); transition: color .2s; }
.nav__links a:hover { color: var(--text); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(32px, 6vw, 72px) 0 clamp(64px, 9vw, 120px); margin-top: -76px; padding-top: calc(76px + clamp(32px, 6vw, 72px)); }
.hero__glow {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(60% 60% at 78% 30%, rgba(42, 126, 190, .35), transparent 70%),
    radial-gradient(40% 50% at 10% 90%, rgba(43, 181, 138, .14), transparent 70%),
    linear-gradient(180deg, #05182b 0%, var(--bg) 100%);
}
.hero__rings {
  position: absolute; right: -10%; top: 50%; width: 900px; height: 900px; translate: 0 -50%;
  border-radius: 50%; pointer-events: none; opacity: .5;
  background: repeating-radial-gradient(circle, transparent 0 46px, rgba(43,181,138,.22) 47px 48px, transparent 49px 60px);
  -webkit-mask: radial-gradient(circle, #000 30%, transparent 70%);
          mask: radial-gradient(circle, #000 30%, transparent 70%);
}
.hero__grid { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { font-size: clamp(40px, 6vw, 76px); font-weight: 800; margin: 18px 0 22px; letter-spacing: -.035em; }
.hero h1 em { font-style: normal; background: linear-gradient(100deg, var(--teal-2), var(--sky)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(17px, 1.5vw, 19px); color: var(--muted); max-width: 540px; }
.pin { width: 10px; height: 10px; border-radius: 50%; background: var(--teal-2); box-shadow: 0 0 0 4px rgba(79,216,173,.2); }
.hero .eyebrow::before { display: none; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero__stats { display: flex; flex-wrap: wrap; gap: 14px 40px; margin: 48px 0 0; padding-top: 28px; border-top: 1px solid var(--line); }
.hero__stats div { min-width: 0; }
.hero__stats dt { font-size: 22px; font-weight: 800; letter-spacing: -.01em; }
.hero__stats dd { margin: 2px 0 0; font-size: 13px; color: var(--dim); }

/* Fanned covers */
.hero__fan { position: relative; height: clamp(380px, 46vw, 580px); perspective: 1600px; }
.fan__item {
  --rot: calc(var(--o, 0) * var(--rstep, 9deg));
  --x: calc(var(--o, 0) * var(--step, 30%));
  position: absolute; left: 50%; top: 50%;
  width: clamp(170px, 21vw, 280px); aspect-ratio: 595 / 842;
  transform: translate(-50%, -50%) translateX(var(--x)) translateY(calc(abs(var(--o, 0)) * 16px)) rotate(var(--rot));
  border-radius: 8px; overflow: hidden;
  box-shadow: var(--shadow), 0 0 0 1px rgba(255,255,255,.08);
  transition: transform .5s var(--ease), box-shadow .5s;
  animation: fanIn .9s var(--ease) both; animation-delay: calc(var(--i) * 90ms + 150ms);
  z-index: calc(var(--i) + 1);
}
@supports not (width: abs(1px)) {
  .fan__item { transform: translate(-50%, -50%) translateX(var(--x)) rotate(var(--rot)); }
}
.fan__item img { width: 100%; height: 100%; object-fit: cover; }
.fan__item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.28), transparent 8%, transparent 92%, rgba(255,255,255,.06)); }
.fan__label {
  position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 2;
  padding: 8px 12px; border-radius: 10px; font-size: 13px; font-weight: 700;
  background: rgba(3, 18, 32, .75); backdrop-filter: blur(8px);
  opacity: 0; transform: translateY(8px); transition: .35s var(--ease);
}
.fan__item:hover, .fan__item:focus-visible {
  transform: translate(-50%, -50%) translateX(var(--x)) translateY(-28px) rotate(calc(var(--rot) * .4)) scale(1.06);
  z-index: 10; box-shadow: 0 40px 90px -20px rgba(0,0,0,.8), 0 0 0 2px var(--teal-2);
}
.fan__item:hover .fan__label, .fan__item:focus-visible .fan__label { opacity: 1; transform: none; }
@keyframes fanIn { from { opacity: 0; transform: translate(-50%, -30%) rotate(0deg) scale(.9); } }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 120px) 0; position: relative; }
.section__head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 56px); }
.section__head h2 { font-size: clamp(32px, 4.2vw, 52px); font-weight: 800; margin-top: 14px; }
.section__sub { color: var(--muted); font-size: 18px; margin-top: 16px; }
.section__head--row { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }

/* ---------- Equipment cards ---------- */
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.card {
  display: flex; flex-direction: column;
  border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  border: 1px solid var(--line);
  transition: transform .4s var(--ease), border-color .4s, box-shadow .4s;
}
.card:hover { transform: translateY(-6px); border-color: rgba(79,216,173,.35); box-shadow: 0 30px 60px -30px rgba(0,0,0,.8); }
.card__cover { position: relative; display: block; aspect-ratio: 4 / 4.2; overflow: hidden; background: var(--bg-2); width: 100%; }
.card__cover img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .8s var(--ease); }
.card:hover .card__cover img { transform: scale(1.05); }
.card__cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(3,18,32,.85)); }
.card__peek {
  position: absolute; z-index: 2; left: 50%; bottom: 16px; translate: -50% 0;
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px;
  font-size: 13px; font-weight: 700; background: rgba(255,255,255,.14); backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.2); opacity: 0; transform: translateY(8px); transition: .35s var(--ease); white-space: nowrap;
}
.card:hover .card__peek, .card__cover:focus-visible .card__peek { opacity: 1; transform: none; }
.card__body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.card__focus { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--sky); }
.card h3 { font-size: 24px; margin: 8px 0 10px; }
.card__summary { color: var(--muted); font-size: 15px; line-height: 1.55; flex: 1; }
.card__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.card__actions .btn { flex: 1 1 auto; padding: 0 14px; }

/* ---------- Library / viewer ---------- */
.section--library {
  background:
    radial-gradient(50% 60% at 70% 40%, rgba(42,126,190,.22), transparent 70%),
    linear-gradient(180deg, var(--bg), var(--bg-2) 50%, var(--bg));
  border-block: 1px solid var(--line);
}
/* Bookshelf rail – scales to any number of brochures */
.rail { position: relative; margin: 0 0 clamp(28px, 4vw, 48px); }
.rail__track {
  display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x proximity;
  padding: 10px 2px 14px; scrollbar-width: none; scroll-padding-inline: 40px;
}
.rail__track::-webkit-scrollbar { display: none; }
.rail.has-overflow .rail__track {
  -webkit-mask: linear-gradient(90deg, transparent, #000 48px, #000 calc(100% - 48px), transparent);
          mask: linear-gradient(90deg, transparent, #000 48px, #000 calc(100% - 48px), transparent);
  padding-inline: 44px;
}
.rail__arrow { position: absolute; top: 50%; translate: 0 -60%; z-index: 2; display: none; background: rgba(6, 32, 56, .9); }
.rail.has-overflow .rail__arrow { display: inline-grid; }
.rail__arrow--prev { left: -6px; }
.rail__arrow--next { right: -6px; }
.rail__pos { font-size: 14px; color: var(--dim); font-variant-numeric: tabular-nums; letter-spacing: .08em; }
.rail__pos b { font-size: 28px; color: var(--text); font-weight: 800; letter-spacing: -.02em; }
.tab {
  position: relative; flex: none; width: 112px; scroll-snap-align: center;
  display: flex; flex-direction: column; align-items: flex-start; gap: 8px; text-align: left;
  color: var(--muted); font-weight: 700; font-size: 13px; line-height: 1.25;
  transition: color .3s;
}
.tab__cover {
  display: block; width: 100%; aspect-ratio: 480 / 679; border-radius: 8px; overflow: hidden;
  box-shadow: 0 12px 24px -12px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.08);
  transition: transform .4s var(--ease), box-shadow .3s, opacity .3s; opacity: .55;
}
.tab__cover img { width: 100%; height: 100%; object-fit: cover; }
.tab__name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tab__n { position: absolute; top: 6px; left: 6px; font-size: 10px; font-weight: 800; padding: 2px 6px; border-radius: 6px; background: rgba(3,18,32,.75); color: var(--muted); }
.tab:hover { color: var(--text); }
.tab:hover .tab__cover { opacity: .9; transform: translateY(-4px); }
.tab[aria-selected="true"] { color: var(--text); }
.tab[aria-selected="true"] .tab__cover { opacity: 1; transform: translateY(-6px); box-shadow: 0 18px 30px -12px rgba(0,0,0,.9), 0 0 0 2px var(--teal-2); }
.tab[aria-selected="true"] .tab__n { background: var(--teal-2); color: #03211a; }

.viewer { display: grid; grid-template-columns: minmax(300px, 400px) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: start; }

.viewer__info { position: sticky; top: 100px; }
.info__in { opacity: 0; transform: translateY(12px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.info__in.is-in { opacity: 1; transform: none; }
.info__name { font-size: clamp(32px, 3.4vw, 44px); font-weight: 800; margin-top: 12px; }
.info__tag { font-size: 18px; font-weight: 600; color: var(--sky); margin-top: 6px; }
.info__summary { color: var(--muted); margin-top: 14px; }
.info__h { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); margin: 28px 0 14px; }

.video-tile {
  position: relative; display: block; width: 100%; aspect-ratio: 16 / 8; margin-top: 24px;
  border-radius: 16px; overflow: hidden; text-align: left;
  border: 1px solid var(--line); box-shadow: 0 20px 40px -24px rgba(0,0,0,.8);
}
.video-tile img { width: 100%; height: 100%; object-fit: cover; object-position: center 68%; transition: transform .8s var(--ease); }
.video-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(3,18,32,.92) 10%, rgba(3,18,32,.35) 70%, rgba(3,18,32,.2)); }
.video-tile:hover img { transform: scale(1.06); }
.video-tile__play {
  position: absolute; z-index: 2; left: 20px; top: 50%; translate: 0 -50%;
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  color: #03211a; background: linear-gradient(135deg, var(--teal-2), var(--teal));
  box-shadow: 0 0 0 0 rgba(79,216,173,.5); animation: pulse 2.4s infinite;
}
.video-tile__play .i { width: 22px; height: 22px; margin-left: 3px; }
.video-tile__txt { position: absolute; z-index: 2; left: 92px; top: 50%; translate: 0 -50%; font-weight: 700; font-size: 17px; line-height: 1.25; }
.video-tile__txt small { display: block; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--teal-2); margin-bottom: 2px; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(79,216,173,.5); } 70% { box-shadow: 0 0 0 16px rgba(79,216,173,0); } 100% { box-shadow: 0 0 0 0 rgba(79,216,173,0); } }

.hl { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.hl li { display: grid; grid-template-columns: 30px 1fr; gap: 12px; align-items: start; font-size: 15px; color: var(--muted); }
.hl b { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; color: var(--teal-2); border: 1px solid rgba(79,216,173,.4); background: rgba(43,181,138,.1); }
.hl b.dot::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--teal-2); }
.hl strong { display: block; color: var(--text); font-weight: 700; }
.hl--flow { position: relative; }
.hl--flow::before { content: ""; position: absolute; left: 14.5px; top: 18px; bottom: 18px; width: 1px; background: linear-gradient(var(--teal), transparent); }
.hl--flow b { position: relative; background: #082a3d; }

.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 7px 14px; border-radius: 999px; font-size: 14px; font-weight: 600; background: var(--panel-2); border: 1px solid var(--line); }

/* Book */
.viewer__book { display: flex; flex-direction: column; align-items: center; min-width: 0; }
.book-stage {
  position: relative; width: 100%; min-height: 300px;
  /* keep a two-page spread within the viewport height (spread ratio 1190:842) */
  max-width: min(820px, max(420px, calc((100vh - 230px) * 1.413)));
  display: flex; justify-content: center;
}
.book-stage .book { width: 100%; transition: transform .7s var(--ease), opacity .4s; }
.book-stage.is-cover .book { transform: translateX(-25%); }
.book-stage.is-back .book { transform: translateX(25%); }
.book-stage.is-loading .book { opacity: 0; }
.book-stage::after {
  content: ""; position: absolute; left: 10%; right: 10%; bottom: -26px; height: 40px; z-index: -1;
  background: radial-gradient(50% 50% at 50% 50%, rgba(0,0,0,.55), transparent); filter: blur(6px);
}
.book .page { background: #0a2238; overflow: hidden; }
.book .page img { width: 100%; height: 100%; object-fit: cover; user-select: none; -webkit-user-drag: none; pointer-events: none; }
.book-loader {
  position: absolute; inset: 0; display: none; place-content: center; justify-items: center; gap: 14px;
  color: var(--muted); font-size: 14px;
}
.is-loading .book-loader { display: grid; }
.book-loader span { width: 36px; height: 36px; border-radius: 50%; border: 3px solid var(--line-2); border-top-color: var(--teal-2); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.book-controls {
  display: flex; align-items: center; gap: 10px; margin-top: 36px;
  padding: 6px; border-radius: 999px; background: rgba(0,0,0,.25); border: 1px solid var(--line);
}
.book-controls .icon-btn { border-color: transparent; background: transparent; }
.book-controls .icon-btn:hover:not(:disabled) { background: rgba(255,255,255,.1); }
.book-dots { display: flex; gap: 6px; padding: 0 6px; }
.book-dots button { width: 8px; height: 8px; border-radius: 99px; background: var(--line-2); transition: width .3s var(--ease), background .3s; }
.book-dots button.on { width: 24px; background: var(--teal-2); }
.book-sep { width: 1px; height: 22px; background: var(--line); }
.book-hint { margin-top: 12px; font-size: 13px; color: var(--dim); }

/* ---------- CTA ---------- */
.cta {
  position: relative; overflow: hidden;
  border-radius: 28px; padding: clamp(36px, 6vw, 72px);
  background:
    radial-gradient(60% 80% at 100% 0%, rgba(79,216,173,.22), transparent 60%),
    linear-gradient(135deg, #0b3352, #071f36);
  border: 1px solid var(--line-2);
}
.cta__rings {
  position: absolute; right: -180px; bottom: -220px; width: 640px; height: 640px; border-radius: 50%; pointer-events: none;
  background: repeating-radial-gradient(circle, transparent 0 34px, rgba(79,216,173,.3) 35px 36px, transparent 37px 46px);
  -webkit-mask: radial-gradient(circle, #000 35%, transparent 70%); mask: radial-gradient(circle, #000 35%, transparent 70%);
}
.cta__copy { position: relative; max-width: 620px; }
.cta h2 { font-size: clamp(32px, 4.5vw, 56px); font-weight: 800; margin: 14px 0 16px; }
.cta__copy > p { color: #c5d7e4; font-size: 18px; }
.steps { list-style: none; padding: 0; margin: 30px 0 34px; display: grid; gap: 14px; }
.steps li { display: flex; align-items: center; gap: 14px; color: #c5d7e4; }
.steps b { width: 34px; height: 34px; flex: none; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.1); border: 1px solid var(--line-2); font-size: 14px; }
.steps strong { color: var(--text); }
.fine { margin-top: 16px; font-size: 13px; color: var(--muted); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 40px 0 48px; }
.footer__inner { display: grid; gap: 12px; justify-items: start; }
.footer img { height: 40px; width: auto; opacity: .9; margin-bottom: 6px; }
.footer p { color: var(--muted); font-size: 14px; }
.footer a { color: var(--teal-2); text-decoration: none; }
.footer__legal { font-size: 12px !important; color: var(--dim) !important; }

/* ---------- Modals ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; }
.modal[hidden] { display: none; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(1, 8, 15, .85); backdrop-filter: blur(10px); opacity: 0; transition: opacity .25s; }
.modal.open .modal__backdrop { opacity: 1; }
.modal__panel {
  position: relative; width: min(1100px, 100%, calc((100vh - 130px) * 16 / 9));
  background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 22px; overflow: hidden;
  box-shadow: 0 40px 120px rgba(0,0,0,.7);
  opacity: 0; transform: translateY(20px) scale(.98); transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.modal.open .modal__panel { opacity: 1; transform: none; }
.modal__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 16px 16px 24px; border-bottom: 1px solid var(--line); }
.modal__bar h3 { font-size: 20px; margin-top: 2px; }
.modal__media { aspect-ratio: 16 / 9; background: #000; }
.modal__bar > div { flex: 1; min-width: 0; }
.modal__bar { gap: 8px; }

/* ---------- Share menu + toast ---------- */
.share-pop {
  position: fixed; z-index: 120; width: 220px; padding: 8px;
  background: rgba(8, 36, 60, .96); backdrop-filter: blur(16px);
  border: 1px solid var(--line-2); border-radius: 16px;
  box-shadow: 0 24px 60px -12px rgba(0,0,0,.7);
  opacity: 0; transform: translateY(6px) scale(.96); transform-origin: bottom center;
  transition: opacity .2s, transform .35s cubic-bezier(.34, 1.56, .64, 1);
}
.share-pop.open { opacity: 1; transform: none; }
.share-pop[hidden] { display: none; }
.share-pop__t { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); padding: 6px 10px 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.share-pop [role=menuitem] {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 10px 12px; border-radius: 10px; font-size: 14px; font-weight: 600; text-decoration: none; text-align: left;
  transition: background .15s, padding-left .25s cubic-bezier(.34, 1.56, .64, 1);
}
.share-pop [role=menuitem]:hover, .share-pop [role=menuitem]:focus-visible { background: rgba(255,255,255,.08); padding-left: 16px; outline: none; }
.share-pop [role=menuitem] .i { color: var(--teal-2); }
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 130; translate: -50% 0;
  padding: 12px 20px; border-radius: 999px; font-size: 14px; font-weight: 700;
  color: #03211a; background: linear-gradient(135deg, var(--teal-2), var(--teal));
  box-shadow: 0 16px 40px -10px rgba(0,0,0,.6);
  opacity: 0; transform: translateY(20px) scale(.9); pointer-events: none;
  transition: opacity .25s, transform .4s cubic-bezier(.34, 1.56, .64, 1);
}
.toast.show { opacity: 1; transform: none; }

/* 9:16 videos (e.g. Cyberdyne, or any video on an upright phone) */
.modal--vertical .modal__panel { width: min(460px, 100%, calc((100vh - 110px) * 9 / 16)); }
.modal--vertical .modal__media { aspect-ratio: 9 / 16; }
.modal--vertical .modal__bar { padding: 12px 12px 12px 18px; }
.modal--vertical .modal__bar h3 { font-size: 17px; }
.modal__media video, .modal__media iframe { width: 100%; height: 100%; border: 0; display: block; background: #000; }

.soon { position: relative; width: 100%; height: 100%; display: grid; place-items: center; text-align: center; overflow: hidden; }
.soon > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(14px) brightness(.4); transform: scale(1.1); }
.soon__in { position: relative; max-width: 420px; padding: 24px; display: grid; justify-items: center; gap: 10px; }
.soon__icon { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.12); border: 1px solid var(--line-2); margin-bottom: 6px; }
.soon__icon .i { width: 24px; height: 24px; margin-left: 3px; }
.soon__t { font-size: 22px; font-weight: 800; }
.soon__in p:not(.soon__t) { color: #c5d7e4; font-size: 15px; margin-bottom: 8px; }

.modal--book { padding: 0; }
.fs-stage { position: relative; z-index: 1; transition: opacity .3s; opacity: 0; }
.modal--book.open .fs-stage { opacity: 1; }
.fs-stage .book { transition: transform .7s var(--ease); }
.fs-stage.is-cover .book { transform: translateX(-25%); }
.modal__x { position: absolute; top: 16px; right: 16px; z-index: 3; }
.modal__nav { position: absolute; top: 50%; translate: 0 -50%; z-index: 3; width: 52px; height: 52px; }
.modal__nav--prev { left: 20px; }
.modal__nav--next { right: 20px; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease) var(--d, 0ms), transform .8s var(--ease) var(--d, 0ms); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .viewer { grid-template-columns: 1fr; }
  .viewer__info { position: static; order: 2; }
  .viewer__book { order: 1; }
  .info__in { max-width: 720px; }
}
@media (max-width: 900px) {
  .nav__links { display: none; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__fan { height: clamp(320px, 80vw, 460px); margin-top: 8px; }
  .fan__item { width: clamp(140px, 36vw, 230px); }
}
@media (max-width: 640px) {
  .nav__inner { height: 64px; }
  .nav__logo img { height: 34px; }
  .nav .btn--sm { height: 38px; padding: 0 14px; font-size: 13px; }
  .hero { margin-top: -64px; padding-top: calc(64px + 28px); }
  .hero__cta .btn { flex: 1 1 100%; }
  .hero__stats { gap: 14px 24px; }
  .hero__stats dt { font-size: 18px; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .card { border-radius: 16px; }
  .card__cover { aspect-ratio: 3 / 3.4; }
  .card__peek { display: none; }
  .card__body { padding: 12px 12px 14px; }
  .card__focus { font-size: 10px; letter-spacing: .06em; }
  .card h3 { font-size: 17px; margin: 4px 0 0; }
  .card__summary { display: none; }
  .card__actions { margin-top: 10px; gap: 6px; flex-wrap: nowrap; }
  .card__actions .btn { height: 36px; font-size: 12.5px; padding: 0 8px; flex: 1 1 0; min-width: 0; gap: 6px; }
  .card__actions .btn--play span { display: none; }
  .card__actions .btn--play { flex: 0 0 36px; padding: 0; }
  .section__head--row { display: block; }
  .rail__arrow { display: none !important; }
  .rail__track { margin: 0 calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); }
  .tab { width: 92px; }
  .filters { gap: 10px; }
  .filters__search { flex: 1 1 100%; order: -1; }
  .book-hint { display: none; }
  .video-tile { aspect-ratio: 16 / 9; }
  .modal { padding: 10px; }
  .modal__nav { display: none; }
}
@media (max-width: 380px) {
  .nav .btn--sm { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* =========================================================
   Scale: filters, "+more" cover, card badge, prev/next nav
   ========================================================= */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.filters { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 10px; }
.filters[hidden] { display: none; }
.filters__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.fchip {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 999px;
  font-size: 14px; font-weight: 700; color: var(--muted);
  background: var(--panel); border: 1px solid var(--line);
  transition: background .25s, color .25s, border-color .25s;
}
.fchip span { font-size: 12px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 99px; display: inline-grid; place-items: center; background: rgba(255,255,255,.08); }
.fchip:hover { color: var(--text); border-color: var(--line-2); }
.fchip[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: transparent; }
.fchip[aria-pressed="true"] span { background: var(--teal); color: #03211a; }
.filters__search {
  display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 16px; min-width: min(320px, 100%);
  border-radius: 999px; background: rgba(0,0,0,.25); border: 1px solid var(--line); color: var(--dim);
  transition: border-color .2s, box-shadow .2s;
}
.filters__search:focus-within { border-color: rgba(79,216,173,.6); box-shadow: 0 0 0 4px rgba(79,216,173,.12); }
.filters__search input { flex: 1; min-width: 0; height: 100%; background: none; border: 0; outline: none; color: var(--text); font: inherit; font-size: 15px; }
.filters__search input::placeholder { color: var(--dim); }
.filters__count { font-size: 13px; color: var(--dim); margin: 0 0 18px; }
.card[hidden] { display: none; }
.empty { text-align: center; padding: 48px 16px; display: grid; justify-items: center; gap: 14px; color: var(--muted); }
.empty[hidden] { display: none; }
.empty__t { font-size: 18px; font-weight: 700; color: var(--text); }
.cards { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.card__badge {
  position: absolute; z-index: 2; top: 12px; right: 12px; width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center; color: #03211a; background: linear-gradient(135deg, var(--teal-2), var(--teal));
  box-shadow: 0 6px 16px -4px rgba(0,0,0,.6);
}
.card__badge .i { width: 14px; height: 14px; margin-left: 2px; }

.fan__more {
  display: grid; place-content: center; justify-items: center; gap: 4px; text-decoration: none;
  background: linear-gradient(160deg, #0d3a5e, #062038); border: 1px dashed rgba(79,216,173,.5);
}
.fan__more::after { display: none; }
.fan__more-n { font-size: clamp(36px, 4vw, 56px); font-weight: 800; letter-spacing: -.03em; color: var(--teal-2); line-height: 1; }
.fan__more-t { font-size: 14px; font-weight: 700; color: var(--muted); }

.book-count { font-size: 13px; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; padding: 0 6px; white-space: nowrap; }
.book-dots[hidden] { display: none; }

.info__nav { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 32px; padding-top: 22px; border-top: 1px solid var(--line); }
.info__nav button {
  display: grid; gap: 2px; padding: 12px 14px; border-radius: 14px; text-align: left; min-width: 0;
  background: var(--panel); border: 1px solid var(--line); transition: background .2s, border-color .2s, transform .3s var(--ease);
}
.info__nav button:last-child { text-align: right; }
.info__nav button:hover { background: var(--panel-2); border-color: var(--line-2); transform: translateY(-2px); }
.info__nav small { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.info__nav span { font-weight: 700; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

@media (max-width: 640px) {
  .book-count { font-size: 12px; }
  .book-controls { gap: 4px; }
}
@media (max-width: 640px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* =========================================================
   Readable flipbook: book spans the section, details below
   ========================================================= */
.section--library .wrap { max-width: 1480px; }
.viewer { grid-template-columns: 1fr; gap: clamp(36px, 5vw, 64px); }
.viewer__book { order: 1; }
.viewer__info { order: 2; position: static; }
.book-stage {
  /* as large as the screen allows: full width, or full height for a two-page spread */
  max-width: min(1400px, max(340px, calc((100vh - 150px) * 1.413)));
}
.info__in { max-width: none; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 clamp(32px, 5vw, 72px); align-items: start; }
.info__a, .info__b { min-width: 0; }
.info__b > .info__h:first-child { margin-top: 0; }
.info__nav { grid-column: 1 / -1; }
.info__a .video-tile { max-width: 520px; }

.read-btn {
  display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px 0 14px;
  border-radius: 999px; font-weight: 700; font-size: 14px; white-space: nowrap;
  color: #03211a; background: linear-gradient(135deg, var(--teal-2), var(--teal));
  transition: transform .3s cubic-bezier(.34, 1.56, .64, 1), box-shadow .25s;
  box-shadow: 0 8px 20px -8px rgba(43, 181, 138, .6);
}
.read-btn:hover { transform: translateY(-2px); }

/* Full-screen reader */
.modal--book { display: block; }
.fs-scroll {
  position: absolute; inset: 0; z-index: 1; overflow: auto; overscroll-behavior: contain;
  display: flex; padding: 56px 0 76px; scrollbar-width: thin;
}
.fs-stage { margin: auto; flex: none; }
.modal--book.is-zoomed .fs-scroll { cursor: grab; }
.fs-scroll.is-panning { cursor: grabbing; user-select: none; }
.modal--book.is-zoomed .fs-stage .book { transform: none !important; }
.fs-bar {
  position: absolute; z-index: 3; left: 50%; bottom: 16px; translate: -50% 0;
  display: flex; align-items: center; gap: 4px; padding: 6px; border-radius: 999px;
  background: rgba(6, 32, 56, .92); border: 1px solid var(--line-2); backdrop-filter: blur(12px);
  box-shadow: 0 16px 40px -12px rgba(0,0,0,.7);
}
.fs-bar .icon-btn { border-color: transparent; background: transparent; }
.fs-bar__pct { min-width: 64px; height: 44px; border-radius: 999px; font-weight: 800; font-size: 14px; font-variant-numeric: tabular-nums; }
.fs-bar__pct:hover { background: rgba(255,255,255,.08); }
.fs-bar__sep { width: 1px; height: 22px; background: var(--line); margin: 0 4px; }
.fs-bar__page { font-size: 13px; font-weight: 700; color: var(--muted); padding: 0 12px 0 4px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.fs-tip {
  position: absolute; z-index: 3; left: 50%; top: 18px; translate: -50% 0; white-space: nowrap;
  font-size: 13px; color: var(--muted); padding: 8px 14px; border-radius: 999px; background: rgba(6, 32, 56, .9);
  opacity: 0; transition: opacity .4s; pointer-events: none;
}
.fs-tip.show { opacity: 1; }
.modal__nav, .modal__x { z-index: 4; }

@media (max-width: 900px) {
  .info__in { grid-template-columns: 1fr; }
  .info__b { margin-top: 4px; }
  .info__b > .info__h:first-child { margin-top: 28px; }
}
@media (max-width: 640px) {
  .book-stage { max-width: none; }
  .read-btn span { display: none; }
  .read-btn { width: 44px; padding: 0; justify-content: center; }
  .fs-scroll { padding: 52px 0 72px; }
  .fs-bar__page { display: none; }
  .fs-tip { white-space: normal; width: max-content; max-width: calc(100vw - 32px); text-align: center; }
}

/* =========================================================
   Book + video screen side by side, details underneath
   ========================================================= */
.viewer {
  grid-template-columns: minmax(0, 1fr) clamp(300px, 24vw, 360px);
  grid-template-areas: "book side" "info info";
  gap: clamp(32px, 4vw, 56px) clamp(28px, 3vw, 48px);
  align-items: start;
}
.viewer__book { grid-area: book; order: 0; }
.viewer__side { grid-area: side; position: sticky; top: 100px; }
.viewer__info { grid-area: info; order: 0; }
.book-stage { max-width: min(1060px, max(340px, calc((100vh - 150px) * 1.413))); }

.viewer__side .info__in { display: block; }
.viewer__side .info__name { font-size: clamp(28px, 2.6vw, 38px); }
.viewer__side .info__summary { font-size: 15px; }

.video-screen {
  display: block; width: 100%; margin-top: 24px; text-align: left;
  border-radius: 18px; overflow: hidden; background: rgba(0,0,0,.3);
  border: 1px solid var(--line-2); box-shadow: 0 24px 50px -24px rgba(0,0,0,.9);
  transition: transform .4s cubic-bezier(.34, 1.56, .64, 1), border-color .3s;
}
.video-screen:hover { transform: translateY(-4px); border-color: rgba(79,216,173,.5); }
.video-screen__media { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; }
.video-screen__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.video-screen:hover .video-screen__media img { transform: scale(1.06); }
.video-screen__media::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at center, rgba(3,18,32,.15), rgba(3,18,32,.55)); }
.video-screen .video-tile__play { left: 50%; top: 50%; translate: -50% -50%; width: 68px; height: 68px; z-index: 2; }
.video-screen .video-tile__play .i { width: 26px; height: 26px; }
.video-screen__txt { display: block; padding: 14px 16px 16px; font-weight: 700; font-size: 16px; line-height: 1.3; }
.video-screen__txt small { display: block; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--teal-2); margin-bottom: 3px; }
.video-soon { display: flex; align-items: center; gap: 10px; margin-top: 22px; padding: 14px 16px; border-radius: 14px; border: 1px dashed var(--line-2); color: var(--dim); font-size: 14px; font-weight: 600; }

.viewer__info .info__in { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
.viewer__info .info__h { margin-top: 0; }

@media (max-width: 1100px) {
  .viewer { grid-template-columns: 1fr; grid-template-areas: "book" "side" "info"; }
  .viewer__side { position: static; }
  .viewer__side .info__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 32px; align-items: start; }
  .viewer__side .info__in > :not(.video-screen):not(.video-soon) { grid-column: 1; }
  .viewer__side .video-screen, .viewer__side .video-soon { grid-column: 2; grid-row: 1 / span 4; margin-top: 0; }
}
@media (max-width: 700px) {
  .viewer__side .info__in { grid-template-columns: 1fr; }
  .viewer__side .video-screen, .viewer__side .video-soon { grid-column: 1; grid-row: auto; margin-top: 20px; }
  .viewer__info .info__in { grid-template-columns: 1fr; }
  .viewer__info .info__c .info__h { margin-top: 28px; }
}

/* =========================================================
   Side flip buttons on either side of the brochure
   ========================================================= */
.book-frame { position: relative; width: 100%; display: flex; align-items: center; justify-content: center; gap: clamp(8px, 1.5vw, 20px); }
.book-frame .book-stage { flex: 1 1 auto; min-width: 0; }
.side-flip {
  flex: none; width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center; color: var(--text);
  background: rgba(255,255,255,.07); border: 1px solid var(--line-2);
  backdrop-filter: blur(10px);
  box-shadow: 0 14px 30px -14px rgba(0,0,0,.8);
  transition: background .25s, border-color .25s, opacity .25s, transform .35s cubic-bezier(.34, 1.56, .64, 1);
}
.side-flip .i { width: 24px; height: 24px; stroke-width: 2.4; }
.side-flip:hover:not(:disabled) { background: linear-gradient(135deg, var(--teal-2), var(--teal)); border-color: transparent; color: #03211a; }
.side-flip--prev:hover:not(:disabled) { transform: translateX(-4px) scale(1.06); }
.side-flip--next:hover:not(:disabled) { transform: translateX(4px) scale(1.06); }
.side-flip:active:not(:disabled) { scale: .9; }
.side-flip:disabled { opacity: .2; cursor: default; }

/* phones: no room beside the page, so float the arrows over its edges */
@media (max-width: 640px) {
  .book-frame { display: block; }
  .side-flip {
    position: absolute; top: 50%; z-index: 6; translate: 0 -50%;
    width: 42px; height: 42px; background: rgba(3, 18, 32, .72);
  }
  .side-flip .i { width: 20px; height: 20px; }
  .side-flip--prev { left: 4px; }
  .side-flip--next { right: 4px; }
  .side-flip:disabled { opacity: 0; pointer-events: none; }
}

/* Fix: side column owns the whole right lane so the sticky video can't cover the details */
@media (min-width: 1101px) {
  .viewer { grid-template-areas: "book side" "info side"; }
  .viewer__side { align-self: start; }
  .viewer__info .info__in { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
/* Bigger book on short laptop screens (e.g. 1366×768): use more of the height,
   and never let a spread drop below ~620px wide */
.book-stage { max-width: min(1060px, max(760px, calc((100vh - 96px) * 1.413))); }
@media (max-width: 1100px) { .book-stage { max-width: min(1060px, max(340px, calc((100vh - 96px) * 1.413))); } }
@media (max-width: 640px) { .book-stage { max-width: none; } }
