/* CyberHasp home page: the family safety book (assets/homebook.js). A printed book, so paper and cloth keep their
   own colours whatever the site theme is. Sizes come from the script: --w, --h (one page), --m (board margin), --x0. */
.hbook-sec{position:relative;overflow:hidden;padding-bottom:clamp(36px,5vw,72px)}
.hbook-sec::before{content:"";position:absolute;inset:0;pointer-events:none;
  background:radial-gradient(60% 46% at 50% 62%,color-mix(in srgb,var(--accent) 18%,transparent),transparent 72%),
    radial-gradient(40% 30% at 50% 66%,color-mix(in srgb,var(--accent-2) 10%,transparent),transparent 70%)}
.hbook-sec .wrap{position:relative}
.hb-head{margin-bottom:clamp(8px,2vw,22px)}
.hb-head h2{margin-bottom:12px}
.hbook{--paper:#FBF7EE;--paper-2:#EFE6D0;--edge:#D5C7A8;--ink:#1D2233;--ink-2:#4A5167;--ink-acc:#07507F;
  --serif:"Iowan Old Style","Palatino Linotype",Palatino,"Book Antiqua",Georgia,serif;
  --cloth:repeating-linear-gradient(45deg,rgba(255,255,255,.035) 0 1px,transparent 1px 3px),repeating-linear-gradient(-45deg,rgba(0,0,0,.14) 0 1px,transparent 1px 3px),linear-gradient(160deg,#1C3373,#0C1840 72%)}
.hb-stage{position:relative;padding:calc(var(--m) + 10px) 0 calc(var(--m) + 54px)}
.hb{position:relative;margin:0 auto;width:calc(var(--w) * 2);height:var(--h);perspective:2400px;will-change:transform;touch-action:pan-y;
  user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;cursor:grab;color:var(--ink)}
.hb.one{width:var(--w);clip-path:inset(-80px -80px -90px 0)}
.hb.drag{cursor:grabbing}
.hb:focus-visible{outline:2px solid var(--accent-2);outline-offset:calc(var(--m) + 8px);border-radius:8px}

/* the boards: cloth-covered, a little bigger than the pages; they carry the shadow on the table */
.hb-board{position:absolute;z-index:0;top:calc(var(--m) * -1);width:calc(var(--w) + var(--m));height:calc(var(--h) + var(--m) * 2);
  background:var(--cloth);transition:opacity .25s;will-change:transform;
  box-shadow:0 34px 60px -22px rgba(0,0,0,.8),0 12px 24px -12px rgba(0,0,0,.55),inset 0 0 0 1px rgba(255,255,255,.06)}
.hb-board.l{left:calc(var(--x0) - var(--w) - var(--m));border-radius:7px 2px 2px 7px}
.hb-board.r{left:var(--x0);border-radius:2px 7px 7px 2px}
.hb-board.off{opacity:0}
/* the page block under the open pages; its edges are drawn by the script (box-shadow, one line per few leaves) */
.hb-stack{position:absolute;z-index:1;top:0;width:var(--w);height:var(--h);background:var(--paper-2);will-change:transform}
.hb-stack.l{left:calc(var(--x0) - var(--w));border-radius:3px 0 0 3px}
.hb-stack.r{left:var(--x0);border-radius:0 3px 3px 0}

/* ---------- a page ---------- */
.hp{position:absolute;top:0;left:0;width:var(--w);height:var(--h);overflow:hidden;
  display:flex;flex-direction:column;--k:1;--px:clamp(20px,7.5%,44px);color:var(--ink);font-family:var(--font);
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .42 0 0 0 0 .34 0 0 0 0 .2 0 0 0 .08 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    radial-gradient(130% 95% at 50% 38%,var(--paper) 58%,#F2EADA)}
.hp.R{border-radius:0 3px 3px 0}.hp.L{border-radius:3px 0 0 3px}
/* light on the paper: the gutter curves down into the spine, the outer edge is a touch darker */
.hp::before,.hp::after{content:"";position:absolute;top:0;bottom:0;pointer-events:none;z-index:6}
.hp.R::after{left:0;width:16%;background:linear-gradient(90deg,rgba(64,44,12,.34),rgba(64,44,12,.12) 22%,rgba(64,44,12,.03) 60%,transparent)}
.hp.L::after{right:0;width:16%;background:linear-gradient(270deg,rgba(64,44,12,.34),rgba(64,44,12,.12) 22%,rgba(64,44,12,.03) 60%,transparent)}
.hp.R::before{right:0;width:10%;background:linear-gradient(270deg,rgba(80,60,24,.1),transparent)}
.hp.L::before{left:0;width:10%;background:linear-gradient(90deg,rgba(80,60,24,.1),transparent)}
.hb.one .hp.R::after{width:7%}
.hp-folio{position:absolute;z-index:2;bottom:16px;font:500 12.5px/1 var(--serif);color:var(--ink-2);letter-spacing:.04em}
.hp.R .hp-folio{right:var(--px)}.hp.L .hp-folio{left:var(--px)}
.hb.one .hp .hp-folio{left:auto;right:var(--px)}
.hp-run{flex:none;display:flex;justify-content:space-between;gap:12px;margin:0 var(--px);padding:calc(var(--px) * .85) 0 10px;
  border-bottom:1px solid rgba(29,34,51,.14);font:600 10.5px/1 var(--font);letter-spacing:.17em;text-transform:uppercase;color:var(--ink-2)}
.hp-body{position:relative;z-index:1;flex:1;min-height:0;overflow:hidden;padding:calc(18px * var(--k)) var(--px) 0;margin-bottom:42px}
.hb-cut{display:none!important}

/* chapter text */
.hp-no{display:block;font:800 calc(52px * var(--k))/1 var(--font);letter-spacing:-.04em;color:transparent;
  -webkit-text-stroke:1.4px color-mix(in srgb,var(--ink-acc) 50%,transparent);margin-bottom:calc(6px * var(--k))}
.hp .eyebrow{color:var(--ink-acc);font-size:calc(11.5px * var(--k));letter-spacing:.15em}
.hp .eyebrow::before{width:18px}
.hp .pill{background:#0A6FB0;color:#fff;font-size:10.5px;padding:2px 8px}
.hp-title{font:700 calc(29px * var(--k))/1.12 var(--font);letter-spacing:-.022em;margin:calc(8px * var(--k)) 0 calc(12px * var(--k));color:var(--ink)}
.hp-title .grad{background:linear-gradient(100deg,#0B4FD8,#0A8FC2);-webkit-background-clip:text;background-clip:text;color:transparent}
.hp .lead{max-width:none;font:calc(16.5px * var(--k))/1.5 var(--serif);color:var(--ink-2);margin:0 0 calc(14px * var(--k))}
.hp .lst{gap:calc(8px * var(--k));font-size:calc(14.5px * var(--k));line-height:1.45;margin:0;color:var(--ink)}
.hp .lst li::before{width:19px;height:19px;font-size:10.5px;margin-top:2px}
.hp .lst.yes li::before{background:rgba(10,111,176,.13);color:#07507F}
.hp .fine{margin-top:calc(12px * var(--k));font:italic calc(12.5px * var(--k))/1.45 var(--serif);color:var(--ink-2)}
.hp .more{margin-top:calc(16px * var(--k));gap:8px}
.hp .btn{height:auto;min-height:38px;padding:8px 16px;font-size:13.5px;box-shadow:none}
.hp .btn-line{background:transparent;border:1px solid rgba(29,34,51,.28);color:var(--ink)}
.hp .btn-line:hover{border-color:var(--ink-acc);color:var(--ink-acc)}
.hp a:focus-visible,.hp button:focus-visible{outline:2px solid var(--ink-acc);outline-offset:2px}

/* a photo page: the picture printed to the edges, CyberHasp's alert stuck over its foot, a caption below */
.hp-photo{position:relative;flex:none;height:63%;margin:0;z-index:1}
.hp-photo img{width:100%;height:100%;object-fit:cover;display:block;-webkit-user-drag:none}
.hp-photo::after{content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(180deg,rgba(255,232,190,.1),rgba(255,232,190,.04) 40%,rgba(8,10,24,.28))}
.hp-pop{position:absolute;z-index:2;left:7%;right:7%;bottom:-40px;display:flex;gap:12px;align-items:flex-start;padding:14px 16px;border-radius:16px;
  background:rgba(8,12,30,.93);color:#fff;font-family:var(--font);box-shadow:0 20px 34px -16px rgba(0,0,0,.65);border:1px solid rgba(255,255,255,.12)}
.hp-pop .dot{flex:none;width:38px;height:38px;border-radius:11px;display:grid;place-items:center;background:linear-gradient(135deg,#1E5BFF,#2EC5FF)}
.hp-pop .dot svg{width:20px;height:20px;color:#fff}
.hp-pop .m{display:block;font:500 10.5px/1.3 var(--mono);letter-spacing:.08em;opacity:.7}
.hp-pop b{display:block;font-size:calc(15px * var(--k));line-height:1.3;margin:2px 0}
.hp-pop small{display:block;font-size:calc(13px * var(--k));opacity:.85;line-height:1.4}
.hp-sms{position:absolute;z-index:2;top:7%;left:6%;max-width:74%;padding:12px 14px;border-radius:16px 16px 16px 4px;background:rgba(255,255,255,.96);
  color:#1D2233;box-shadow:0 16px 30px -12px rgba(0,0,0,.6);font:calc(13px * var(--k))/1.45 var(--font)}
.hp-sms-from{display:block;font:600 10.5px/1 var(--mono);letter-spacing:.06em;color:#4A5167;margin-bottom:6px}
.hp-sms-b mark{background:rgba(214,48,40,.14);color:#B3261E;border-radius:4px;padding:0 3px}
.hp-cap{position:relative;z-index:1;margin:auto var(--px) 48px;padding-top:58px;font:italic calc(14.5px * var(--k))/1.5 var(--serif);color:var(--ink-2)}
.hp-cap b{display:block;font:600 10.5px/1 var(--font);font-style:normal;letter-spacing:.17em;text-transform:uppercase;color:var(--ink-acc);margin-bottom:6px}

/* the founder: a full-page portrait */
.hp.full .hp-photo{position:absolute;inset:0;height:auto}
.hp.full .hp-photo img{object-position:50% 22%}
.hp-fcard{position:absolute;z-index:2;left:7%;right:7%;bottom:7%;padding:18px 20px;border-radius:14px;background:rgba(251,247,238,.95);
  box-shadow:0 20px 40px -16px rgba(0,0,0,.6)}
.hp-fcard .hp-title{font-size:calc(20px * var(--k));margin:8px 0 4px}
.hp-link{display:inline-block;margin-top:8px;font:600 13.5px/1.3 var(--font);color:var(--ink-acc);text-decoration:underline;text-underline-offset:3px}

/* contents */
.hp-kicker{display:block;margin-top:6px;font:600 calc(11px * var(--k))/1 var(--font);letter-spacing:.18em;text-transform:uppercase;color:var(--ink-acc)}
.hp.toc .hp-title{font-size:calc(27px * var(--k))}
.hp-toc{list-style:none;margin:calc(14px * var(--k)) 0 0;padding:0;display:grid;gap:2px}
.hp-toc button{display:flex;align-items:baseline;gap:10px;width:100%;min-height:44px;padding:calc(10px * var(--k)) 6px;text-align:left;border-radius:8px;
  font:500 calc(16.5px * var(--k))/1.3 var(--serif);color:var(--ink);transition:background .2s}
.hp-toc button:hover{background:rgba(7,80,127,.08)}
.hp-toc .c{min-width:24px;font:700 12px/1 var(--font);letter-spacing:.06em;color:var(--ink-acc)}
.hp-toc .dots{flex:1;min-width:16px;border-bottom:1.5px dotted rgba(29,34,51,.32);transform:translateY(-4px)}
.hp-toc .n{font:500 13px/1 var(--font);color:var(--ink-2)}
.hp-chips{display:flex;flex-wrap:wrap;gap:8px;margin-top:calc(18px * var(--k))}
.hp-chips span{display:inline-flex;align-items:center;gap:6px;padding:5px 11px;border-radius:999px;background:rgba(7,80,127,.08);font-size:12px;color:var(--ink-2)}
.hp-chips svg{width:14px;height:14px;color:var(--ink-acc)}

/* the inside of the front cover: patterned endpaper with a bookplate */
.hp.endp{align-items:center;justify-content:center;
  background:radial-gradient(circle at 11px 11px,rgba(255,255,255,.13) 1.6px,transparent 2.2px) 0 0/22px 22px,
    radial-gradient(circle at 0 0,rgba(46,197,255,.2) 1.4px,transparent 2px) 0 0/22px 22px,linear-gradient(160deg,#18306E,#0D1A45)}
.hp-plate{width:min(72%,300px);padding:26px 20px 22px;border-radius:6px;background:var(--paper);text-align:center;display:flex;flex-direction:column;align-items:center;gap:8px;
  box-shadow:0 12px 26px -10px rgba(0,0,0,.6);outline:1px solid rgba(29,34,51,.22);outline-offset:-9px}
.hp-plate-logo{width:42px;height:47px}
.hp-plate-ex{font:italic 600 24px/1.1 var(--serif);color:var(--ink)}
.hp-plate-line{width:70%;border-bottom:1.5px dotted rgba(29,34,51,.4);margin:6px 0 2px}
.hp-plate-who{font:italic 17px/1.3 var(--serif);color:var(--ink-acc)}
.hp-plate-by{margin-top:6px;font:600 10px/1.3 var(--font);letter-spacing:.16em;text-transform:uppercase;color:var(--ink-2)}

/* the covers: cloth board, foil lettering, a hinge groove beside the spine */
.hp.cover{justify-content:center;color:#F1E3B8;background:var(--cloth)}
.hp.cover::before{left:16px;right:16px;top:16px;bottom:16px;width:auto;border:1px solid rgba(233,210,150,.45);border-radius:3px;background:none;box-shadow:inset 0 0 0 4px rgba(12,24,64,.5),inset 0 0 0 5px rgba(233,210,150,.25)}
.hp.cover::after{display:none}
.hp-hinge{position:absolute;top:0;bottom:0;left:9px;width:5px;background:linear-gradient(90deg,rgba(0,0,0,.35),rgba(255,255,255,.08));z-index:2}
.hp.cover.back .hp-hinge{left:auto;right:9px;background:linear-gradient(270deg,rgba(0,0,0,.35),rgba(255,255,255,.08))}
.hp-cv{position:relative;z-index:1;display:flex;flex-direction:column;align-items:center;text-align:center;gap:12px;padding:0 13%}
.hp-cv-logo{width:70px;height:78px;filter:drop-shadow(0 2px 0 rgba(0,0,0,.4)) drop-shadow(0 0 18px rgba(46,197,255,.25))}
.hp-cv-brand{font:600 12px/1 var(--font);letter-spacing:.34em;text-transform:uppercase;color:#E6CF8E}
.hp-cv-title{font:700 clamp(30px,calc(var(--w) * .085),44px)/1.06 var(--serif);letter-spacing:-.01em;
  background:linear-gradient(180deg,#FFF4CC,#D8B154 55%,#F5DE9C);-webkit-background-clip:text;background-clip:text;color:transparent;filter:drop-shadow(0 2px 1px rgba(0,0,0,.45))}
.hp-cv-sub{font:500 13px/1.7 var(--font);color:rgba(241,227,184,.78);max-width:30ch}
.hp-cv-quote{font:italic 600 clamp(22px,calc(var(--w) * .055),30px)/1.25 var(--serif);color:#F1E3B8;max-width:20ch}
.hp-cv-go{margin-top:14px;padding:9px 16px;border:1px solid rgba(233,210,150,.5);border-radius:999px;font:600 11.5px/1 var(--font);letter-spacing:.14em;text-transform:uppercase;color:#E6CF8E}
.hb.small .hp-cv{gap:9px}

/* the back of a leaf on a phone */
.hp.blank{background:radial-gradient(120% 90% at 60% 40%,#FBF7EE 55%,#ECE2CB)}

/* the closing page: start free */
.hp.cta .hp-body{display:flex;flex-direction:column;justify-content:center}
.hp.cta .hp-title{font-size:calc(32px * var(--k))}
.hp-by{display:flex;gap:12px;align-items:center;margin-top:calc(18px * var(--k));padding-top:14px;border-top:1px solid rgba(29,34,51,.14)}
.hp-by img{flex:none;width:54px;height:54px;border-radius:50%;object-fit:cover}
.hp-by b{display:block;font:600 13.5px/1.35 var(--font)}
.hp-by .hp-link{margin-top:2px;font-size:13px}

/* one page at a time (phones): the photo on top, then the chapter */
.hp.combo .hp-photo{height:var(--phh,37%)}
.hp.combo .hp-pop{bottom:-32px;left:5%;right:5%;padding:11px 13px;gap:10px;border-radius:14px}
.hp.combo .hp-pop .dot{width:32px;height:32px;border-radius:9px}
.hp.combo .hp-sms{display:none}
.hp.combo .hp-body{padding-top:48px;margin-bottom:38px}
.hp.combo .hp-title{font-size:calc(25px * var(--k))}
.hb.one .hp.cta .hp-title{font-size:calc(28px * var(--k))}

/* ---------- a chapter spread: one photo across both pages (assets/homebook.js: spreadPage) ----------
   The picture is twice a page wide; the left page shows its left half, the right page its right half. */
.hp.sp{background:#141A2E;color:#fff}
.hp-sp{position:absolute;inset:0;margin:0;overflow:hidden;z-index:0}
.hp-sp img{position:absolute;top:0;left:0;width:calc(var(--w) * 2);height:100%;max-width:none;object-fit:cover;display:block;-webkit-user-drag:none}
.hp.sp-r .hp-sp img{left:calc(var(--w) * -1)}
.hp-sp::after{content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(180deg,rgba(8,12,30,.28),transparent 22%,transparent 55%,rgba(8,12,30,.45))}
/* the text half: darker toward the bottom, where the words sit */
.hp.sp-t .hp-sp::after{background:linear-gradient(180deg,rgba(8,12,30,.5),rgba(8,12,30,.05) 18%,rgba(8,12,30,.1) 30%,rgba(8,12,30,.74) 50%,rgba(8,12,30,.93) 78%)}
.hp.sp .hp-run{color:rgba(255,255,255,.82);border-color:rgba(255,255,255,.3)}
.hp.sp-t .hp-body{display:flex;flex-direction:column;text-shadow:0 1px 8px rgba(0,0,0,.6)}
.hp.sp-t .hp-body>:first-child{margin-top:auto}
.hp.sp .eyebrow{color:#8FD3FF}
.hp.sp .hp-title{color:#fff;text-shadow:0 2px 12px rgba(0,0,0,.35)}
.hp.sp .hp-title .grad{background:linear-gradient(100deg,#7CC4FF,#6FF0E0);-webkit-background-clip:text;background-clip:text;color:transparent}
.hp.sp .lead{color:rgba(255,255,255,.88)}
.hp.sp .lst{color:#fff}
.hp.sp .lst.yes li::before{background:rgba(143,211,255,.22);color:#BFE6FF}
.hp.sp .btn-line{border-color:rgba(255,255,255,.55);color:#fff}
.hp.sp .btn-line:hover{border-color:#8FD3FF;color:#8FD3FF}
.hp.sp .hp-folio{color:rgba(255,255,255,.75)}
/* the gutter of a photo spread: a soft fold, not the paper's warm shade */
.hp.sp.R::after{width:9%;background:linear-gradient(90deg,rgba(0,0,0,.42),rgba(0,0,0,.12) 40%,transparent)}
.hp.sp.L::after{width:9%;background:linear-gradient(270deg,rgba(0,0,0,.42),rgba(0,0,0,.12) 40%,transparent)}
.hp.sp::before{display:none}
/* the photo half: the alert card (and the scam text) on the picture, the caption at the foot */
.hp-sp-over{position:absolute;inset:0;margin:0;z-index:1;pointer-events:none}
.hp-sp-over>*{pointer-events:auto}
.hp.sp .hp-sp-over .hp-pop{bottom:112px}
.hp.sp-p .hp-cap{position:absolute;left:var(--px);right:var(--px);bottom:38px;margin:0;padding:0;color:rgba(255,255,255,.88);text-shadow:0 1px 6px rgba(0,0,0,.5)}
.hp.sp-p .hp-cap b{color:#8FD3FF}
/* the theme line on the photo half without the alert card (owner, 29 Nov 2026), over a soft shade so it reads on any photo */
.hp.sp-b .hp-sp::after{content:"";position:absolute;inset:auto 0 0;height:58%;background:linear-gradient(rgba(6,12,28,0),rgba(6,12,28,.82));pointer-events:none}
.hp.sp-b .hp-run{position:relative;z-index:1}
.hp-theme{position:absolute;z-index:1;left:var(--px);right:var(--px);bottom:46px;margin:0;font:italic calc(18px * var(--k))/1.42 var(--serif);color:#fff;text-shadow:0 1px 8px rgba(0,0,0,.55);text-wrap:pretty}
.hp-theme b{display:block;font:600 10.5px/1 var(--font);font-style:normal;letter-spacing:.17em;text-transform:uppercase;color:#8FD3FF;margin-bottom:8px}

/* ---------- the layers a page lives in (assets/homebook.js: rig) ----------
   slot: a big box that clips (at rest just round its page; mid-turn its edge lies on the crease, or it swings round
   the spine), frame: the page's own box. Turning changes only their transforms and opacity. */
.hb-s{position:absolute;left:0;top:0;width:var(--S);height:calc(var(--S) * 2);overflow:hidden;visibility:hidden;pointer-events:none;
  transform-origin:0 0;will-change:transform;backface-visibility:hidden;-webkit-backface-visibility:hidden}
.hb-s.on{visibility:visible}
.hb-f{position:absolute;left:0;top:0;width:var(--w);height:var(--h);overflow:hidden;transform-origin:0 0;will-change:transform;isolation:isolate;
  pointer-events:auto;backface-visibility:hidden;-webkit-backface-visibility:hidden}
/* a hard board's frame shows the cloth round its page */
.hb-f.hard{overflow:visible}
.hb-f.hard::before{content:"";position:absolute;z-index:-1;top:calc(var(--m) * -1);bottom:calc(var(--m) * -1);background:var(--cloth);box-shadow:0 0 0 1px rgba(0,0,0,.2)}
.hb-f.hard.R::before{left:0;right:calc(var(--m) * -1);border-radius:2px 7px 7px 2px}
.hb-f.hard.L::before{left:calc(var(--m) * -1);right:0;border-radius:7px 2px 2px 7px}
/* the shadow a folded page throws on what lies under it */
.hb-fbs{position:absolute;left:0;top:0;width:var(--w);height:var(--h);transform-origin:0 0;will-change:transform,opacity;opacity:0;
  box-shadow:0 2px 16px 1px rgba(10,8,4,.42);backface-visibility:hidden;-webkit-backface-visibility:hidden}
/* on the folded paper: dark right at the crease, a bright sheen where it curves, then flat */
.hb-gl{position:absolute;left:0;top:0;z-index:7;width:100px;height:100px;transform-origin:0 0;will-change:transform,opacity;opacity:0;pointer-events:none;
  background:linear-gradient(90deg,rgba(0,0,0,.2) 0,rgba(255,255,255,.34) 6%,rgba(255,255,255,.1) 20%,transparent 42%,rgba(60,40,10,.05) 75%,rgba(60,40,10,.14))}
/* a board turned away from the light */
.hb-dk{position:absolute;inset:calc(var(--m) * -1);z-index:8;background:#000;opacity:0;pointer-events:none;will-change:opacity}
/* in the fold: the shadow the lifted paper throws on the page below, kept to that page */
.hb-ucl{position:absolute;left:0;top:0;z-index:3;width:var(--w);height:var(--h);overflow:hidden;pointer-events:none;will-change:transform}
.hb-ush{position:absolute;left:0;top:0;width:100px;height:100px;transform-origin:0 0;will-change:transform,opacity;opacity:0;
  background:linear-gradient(90deg,rgba(24,16,4,.55),rgba(24,16,4,.2) 30%,rgba(24,16,4,.05) 70%,transparent)}
/* the shadow of a swinging board on the pages */
.hb-hsh{position:absolute;left:0;top:0;z-index:3;width:var(--w);height:var(--h);pointer-events:none;opacity:0;will-change:transform,opacity}
.hb-hsh.r{background:linear-gradient(90deg,rgba(8,6,2,.5),rgba(8,6,2,.16) 40%,transparent 85%)}
.hb-hsh.l{background:linear-gradient(270deg,rgba(8,6,2,.5),rgba(8,6,2,.16) 40%,transparent 85%)}

/* ---------- under the book ---------- */
.hb-nav{display:flex;align-items:center;justify-content:center;gap:12px;flex-wrap:wrap;margin-top:-18px;position:relative;z-index:1}
.hb-nav>button{flex:none;width:46px;height:46px;border-radius:50%;display:grid;place-items:center;border:1px solid var(--line);background:var(--surface);color:var(--text);transition:border-color .2s,opacity .2s}
.hb-nav>button:hover:not(:disabled){border-color:var(--accent)}
.hb-nav>button:disabled{opacity:.35;cursor:default}
.hb-tabs{display:flex;flex-wrap:wrap;justify-content:center;gap:6px}
.hb-tabs button{min-height:40px;padding:8px 15px;border-radius:999px;border:1px solid var(--line);background:color-mix(in srgb,var(--surface) 75%,transparent);
  font-size:13.5px;font-weight:500;color:var(--muted);transition:color .2s,border-color .2s,background .2s}
.hb-tabs button:hover{color:var(--text);border-color:var(--accent)}
.hb-tabs button[aria-current="true"]{background:var(--fill);color:var(--on-accent);border-color:transparent}
.hb-at{margin-top:14px;text-align:center;font-size:13.5px;font-weight:500;color:var(--text)}
.hb-hint{margin-top:4px;text-align:center;font-size:12.5px;color:var(--muted)}
@media (max-width:759px){
  .hb-nav{display:grid;grid-template-columns:46px 1fr 46px;gap:10px;margin-top:-30px}
  .hb-tabs{position:relative;flex-wrap:nowrap;justify-content:flex-start;overflow-x:auto;scrollbar-width:none;padding:2px}
  .hb-tabs::-webkit-scrollbar{display:none}
  .hb-tabs button{flex:none;min-height:38px;padding:7px 13px;font-size:13px}
}

/* ---------- the book in the home hero, standing in 3D over the background video (owner, 12 Nov 2026) ----------
   The hero is always dark (its video), so it carries dark tokens whatever the site's light or dark mode. */
.hero{--text:#EEF3FF;--muted:#B8C5E8;--surface:rgba(12,18,44,.78);--surface-2:rgba(24,36,82,.86);--line:rgba(255,255,255,.18);align-items:center}
.hero .hero-grid{grid-template-columns:minmax(0,.84fr) minmax(0,1.16fr);gap:clamp(20px,3vw,48px);align-items:center}
.hero h1{font-size:clamp(34px,3.6vw,62px)}
.hero-ctl{top:52px;bottom:auto}
.hero-vis{position:relative;perspective:1700px;perspective-origin:50% 38%}
.hv-tilt{position:relative;transform-style:preserve-3d;transform:rotateX(7deg) rotateY(-16deg);will-change:transform}
/* behind the book: the CyberHasp shield in light, and a glow */
.hv-shield{position:absolute;left:50%;top:44%;width:80%;aspect-ratio:100/112;transform:translate(-50%,-50%) translateZ(-160px);pointer-events:none;overflow:visible}
.hv-shield path{fill:color-mix(in srgb,var(--accent) 10%,transparent);stroke:var(--accent-2);stroke-width:.8;filter:drop-shadow(0 0 3px var(--accent-2))}
.hv-glow{position:absolute;left:50%;top:44%;width:90%;aspect-ratio:1;border-radius:50%;transform:translate(-50%,-50%) translateZ(-220px);pointer-events:none;
  background:radial-gradient(closest-side,color-mix(in srgb,var(--accent-2) 30%,transparent),color-mix(in srgb,var(--accent) 12%,transparent) 55%,transparent)}
.hero-vis:not(.on) .hv-shield,.hero-vis:not(.on) .hv-glow{display:none}
/* the video's alert card floats in front of the book's corner */
.hero-vis.on .scene{position:absolute;z-index:6;left:-64px;bottom:64px;width:290px;max-width:none;transform:translateZ(90px);
  box-shadow:0 30px 60px -20px rgba(0,0,0,.75)}
.hero-book{position:relative}
.hero-book .hb-stage{padding:calc(var(--m) + 4px) 0 calc(var(--m) + 22px)}
.hero-book .hb-nav{margin-top:-10px;gap:8px}
/* one row at every width: arrows either side, the chapter tabs scroll between them (at 1024 px they wrapped,
   leaving the back arrow above the tabs and the next arrow below; 16 Nov 2026) */
.hero-book .hb-nav{display:grid;grid-template-columns:40px minmax(0,1fr) 40px;align-items:center}
.hero-book .hb-tabs{flex-wrap:nowrap;justify-content:safe center;overflow-x:auto;scrollbar-width:none;padding:2px}
.hero-book .hb-tabs::-webkit-scrollbar{display:none}
.hero-book .hb-tabs button{flex:none}
.hero-book .hb-nav>button{width:40px;height:40px;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}
.hero-book .hb-tabs button{min-height:34px;padding:5px 11px;font-size:12.5px;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}
.hero-book .hb-at{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.hero-book .hb-hint{margin-top:8px;font-size:12px;color:rgba(255,255,255,.7);text-shadow:0 1px 6px rgba(0,0,0,.6)}
/* smaller pages: tighter type */
.hero-book .hp{--px:clamp(14px,7%,26px)}
.hero-book .hp-no{display:none}
.hero-book .hp-run{font-size:9px;padding-bottom:8px}
.hero-book .hp-body{padding-top:calc(12px * var(--k));margin-bottom:30px}
.hero-book .hp .eyebrow{font-size:calc(10px * var(--k))}
.hero-book .hp-title{font-size:calc(21px * var(--k));margin:calc(6px * var(--k)) 0 calc(8px * var(--k))}
.hero-book .hp .lead{font-size:calc(13.5px * var(--k));margin-bottom:calc(10px * var(--k))}
.hero-book .hp .lst{font-size:calc(12.5px * var(--k));gap:calc(6px * var(--k))}
.hero-book .hp .lst li::before{width:16px;height:16px;font-size:9px}
.hero-book .hp .fine{font-size:calc(11px * var(--k))}
.hero-book .hp .more{margin-top:calc(10px * var(--k))}
.hero-book .hp .more .btn{min-height:30px;padding:5px 11px;font-size:11.5px}
.hero-book .hp-folio{bottom:11px;font-size:11px}
.hero-book .hp-pop{padding:10px 12px;gap:9px;border-radius:12px;bottom:-30px}
.hero-book .hp-pop .dot{width:30px;height:30px;border-radius:9px}
.hero-book .hp-pop .dot svg{width:16px;height:16px}
.hero-book .hp-pop b{font-size:calc(12.5px * var(--k))}.hero-book .hp-pop small{font-size:calc(11px * var(--k))}.hero-book .hp-pop .m{font-size:9px}
.hero-book .hp-sms{font-size:calc(11px * var(--k));padding:9px 11px}
.hero-book .hp-cap{padding-top:40px;margin-bottom:34px;font-size:calc(12px * var(--k))}
.hero-book .hp.toc .hp-title{font-size:calc(19px * var(--k))}
.hero-book .hp-toc button{min-height:30px;padding:calc(6px * var(--k)) 4px;font-size:calc(13.5px * var(--k))}
.hero-book .hp-chips span{font-size:10.5px;padding:4px 8px}
.hero-book .hp-plate{padding:18px 14px 16px}.hero-book .hp-plate-ex{font-size:18px}.hero-book .hp-plate-who{font-size:14px}
.hero-book .hp-fcard{padding:12px 14px}.hero-book .hp-fcard .hp-title{font-size:calc(15px * var(--k))}
.hero-book .hp.cta .hp-title{font-size:calc(24px * var(--k))}
.hero-book .hp-cv-sub{font-size:11px}.hero-book .hp-cv-go{font-size:10px;padding:7px 12px}
@media (max-width:900px){
  .hero .hero-grid{grid-template-columns:minmax(0,1fr)}
  .hero-vis{margin-top:8px}
  .hv-tilt{transform:rotateX(4deg) rotateY(-7deg)}
}
@media (max-width:760px){.hero-vis.on .scene{display:none}.hero-ctl{top:auto;bottom:14px}}
/* phones: both pages open side by side (owner, 16 Nov 2026), so each page is narrow; the alert card on the
   photo shrinks to its headline so the photo still shows, and the margins tighten */
.hero-book .hb.tiny .hp{--px:10px}
.hero-book .hb.tiny .hp-run{font-size:7.5px;padding-bottom:5px}
.hero-book .hb.tiny .hp-pop{left:6px;right:6px;bottom:6px;padding:6px 8px;gap:6px;border-radius:9px}
.hero-book .hb.tiny .hp-pop .dot{width:20px;height:20px;border-radius:6px}
.hero-book .hb.tiny .hp-pop .dot svg{width:12px;height:12px}
.hero-book .hb.tiny .hp-pop .m,.hero-book .hb.tiny .hp-pop small{display:none}
.hero-book .hb.tiny .hp-pop b{font-size:10.5px;line-height:1.25}
.hero-book .hb.tiny .hp-sms{font-size:9px;padding:6px 7px}
.hero-book .hb.tiny .hp-cap{padding-top:28px;margin-bottom:24px;font-size:9.5px}
.hero-book .hb.tiny .hp-folio{bottom:7px;font-size:9px}
.hero-book .hb.tiny .hp-body{margin-bottom:22px}
.hero-book .hp.sp-p .hp-cap{bottom:28px}.hero-book .hb.tiny .hp.sp-p .hp-cap{bottom:20px}
.hero-book .hp.sp .hp-sp-over .hp-pop{bottom:84px}.hero-book .hb.tiny .hp.sp .hp-sp-over .hp-pop{bottom:26px}
.hero-book .hb.tiny .hp.sp-p .hp-cap{display:none}
.hero-book .hp-theme{bottom:34px;font-size:calc(14.5px * var(--k))}
.hero-book .hp-theme b{font-size:9.5px;margin-bottom:6px}
.hero-book .hb.tiny .hp-theme{bottom:20px;font-size:10px}
.hero-book .hb.tiny .hp-theme b{font-size:7.5px;margin-bottom:4px}
.hero-book .hb.tiny .hp.sp-t .hp-sp::after{background:linear-gradient(180deg,rgba(8,12,30,.6),rgba(8,12,30,.55) 22%,rgba(8,12,30,.88) 55%,rgba(8,12,30,.94))}
.hero-book .hb.tiny .hp-cv-sub{font-size:9px}.hero-book .hb.tiny .hp-cv-go{font-size:9px;padding:5px 9px}
/* the smallest phones (320px): the contents title fits its page; the scam text gives way to the alert card */
.hero-book .hb.xs .hp.toc .hp-title{font-size:calc(14px * var(--k))}
.hero-book .hb.xs .hp-sms{display:none}
.hero-book .hb.tiny .hp-plate{padding:12px 8px 10px}.hero-book .hb.tiny .hp-plate-ex{font-size:14px}.hero-book .hb.tiny .hp-plate-who{font-size:11px}
/* no live blur in front of or around the book: it would be redrawn on every frame of a page turn */
.hero-vis.on .scene{-webkit-backdrop-filter:none;backdrop-filter:none;background:rgba(8,12,30,.95)}
.hero-book .hb-nav>button,.hero-book .hb-tabs button{-webkit-backdrop-filter:none;backdrop-filter:none;background:rgba(10,16,40,.85)}
.hero-book .hb-tabs button[aria-current="true"]{background:var(--fill)}
/* the video's alert card is not shown in the hero (owner, 12 Nov 2026); home.js still updates it, unseen */
.hero-vis .scene{display:none!important}

/* ---------- the last spread: a newspaper, "The CyberHasp Times" (owner, 15 Nov 2026) ----------
   Wide screens: one newspaper across both pages. ns-sheet is laid out once, two pages wide; the left page shows its
   left half and the right page its right half (ns-sheet.r is shifted left by a page width), so the masthead, the
   banner and the rules run straight across the fold. The grid is symmetric, so the fold falls in the gutter between
   the two halves and no column is cut. Newsprint colour across the whole sheet; no folios on these pages.
   Sized from the page width (--w). */
.hp.news{background:#F1ECDD}
.hp.news .hp-folio{display:none}
.hp.news::after{opacity:.55}
.ns-sheet{--u:calc(var(--w) / 86);--px:calc(var(--u) * 5.2);--fold:calc(var(--u) * 7);position:absolute;top:0;left:0;bottom:0;width:calc(var(--w) * 2);
  display:flex;flex-direction:column;padding:calc(var(--u) * 5) var(--px) calc(var(--u) * 3.6);font-family:var(--serif);color:var(--ink);
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .3 0 0 0 0 .27 0 0 0 0 .2 0 0 0 .1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    linear-gradient(90deg,#EFE9D8,#F5F0E3 30%,#F5F0E3 70%,#EFE9D8)}
.ns-sheet.r{left:calc(var(--w) * -1)}
.ns-sheet p{margin:0}
.ns-top{flex:none;text-align:center}
.ns-mast{display:grid;grid-template-columns:1fr auto 1fr;align-items:end;gap:var(--u);padding-bottom:calc(var(--u) * 1.4);border-bottom:calc(var(--u) * .8) double var(--ink)}
.ns-mast b{font:900 calc(var(--u) * 9.6)/.95 var(--serif);letter-spacing:-.015em;white-space:nowrap}
.ns-mast span{font:600 calc(var(--u) * 1.9)/1.35 var(--font);letter-spacing:.14em;text-transform:uppercase;color:var(--ink-2);text-align:left}
.ns-mast span:last-child{text-align:right}
.ns-date{display:flex;justify-content:space-between;padding:calc(var(--u) * .9) 0;border-bottom:1px solid var(--ink);font:italic calc(var(--u) * 2.2)/1.2 var(--serif);color:var(--ink-2)}
.ns-ban{margin:calc(var(--u) * 2.6) auto calc(var(--u) * 1.2);max-width:92%;font:800 calc(var(--u) * 5.4)/1.08 var(--serif);letter-spacing:-.012em;text-wrap:balance}
.ns-deck{font:italic calc(var(--u) * 2.7)/1.3 var(--serif);color:var(--ink-2);padding-bottom:calc(var(--u) * 2);border-bottom:1px solid var(--ink)}
/* two halves, the fold in the gutter between them; each half has two columns with a rule */
.ns-grid{flex:1;min-height:0;display:grid;grid-template-columns:1fr 1fr;column-gap:calc(var(--fold) * 2);padding-top:calc(var(--u) * 2.4)}
.ns-half{display:grid;grid-template-columns:1fr 1fr;column-gap:calc(var(--u) * 3.2);min-height:0}
.ns-col{min-width:0;display:flex;flex-direction:column;gap:calc(var(--u) * 1.4)}
.ns-col+.ns-col{border-left:1px solid rgba(29,34,51,.22);padding-left:calc(var(--u) * 3.2);margin-left:calc(var(--u) * -1.6)}
.ns-kick{font:700 calc(var(--u) * 2.1)/1 var(--font);letter-spacing:.16em;text-transform:uppercase;color:#B3261E;padding-bottom:calc(var(--u) * .8);border-bottom:2px solid #B3261E;align-self:flex-start}
.ns-h{margin:0;font:800 calc(var(--u) * 3.4)/1.12 var(--serif);text-wrap:balance}
/* left-aligned: the columns are too narrow for justified type without wide gaps */
.ns-txt,.ns-brief{font:calc(var(--u) * 2.45)/1.42 var(--serif);text-align:left}
.ns-txt b,.ns-brief b{font-family:var(--font);font-weight:700}
.ns-txt b{font-size:.9em;letter-spacing:.04em;text-transform:uppercase}
.ns-brief{padding-bottom:calc(var(--u) * 1.2);border-bottom:1px dotted rgba(29,34,51,.35)}
.ns-box{padding:calc(var(--u) * 1.8) calc(var(--u) * 2);border:1.5px solid var(--ink);background:rgba(255,255,255,.4)}
.ns-box>b{display:block;font:700 calc(var(--u) * 2)/1 var(--font);letter-spacing:.14em;text-transform:uppercase;margin-bottom:calc(var(--u) * 1.2)}
.ns-box p{display:flex;flex-direction:column;padding:calc(var(--u) * .7) 0;border-top:1px dotted rgba(29,34,51,.3);font:calc(var(--u) * 2.2)/1.25 var(--serif)}
.ns-box em{font:800 normal calc(var(--u) * 3.6)/1.05 var(--serif);color:#B3261E}
.ns-notice{padding:calc(var(--u) * 1.5) calc(var(--u) * 1.8);background:#1D2233;color:#FBF7EE;font:calc(var(--u) * 2.3)/1.35 var(--serif)}
.ns-notice b{display:block;font:700 calc(var(--u) * 1.9)/1 var(--font);letter-spacing:.16em;text-transform:uppercase;color:#FFB4AA;margin-bottom:calc(var(--u) * .7)}
.ns-notice strong{font-family:var(--font)}
.ns-ad{margin-top:auto;padding:calc(var(--u) * 1.8) calc(var(--u) * 1.6);border:1.5px dashed var(--ink);text-align:center;display:flex;flex-direction:column;align-items:center;gap:calc(var(--u) * .7)}
.ns-ad span{font:600 calc(var(--u) * 1.6)/1 var(--font);letter-spacing:.18em;text-transform:uppercase;color:var(--ink-2)}
.ns-ad b{font:800 calc(var(--u) * 4)/1 var(--font);letter-spacing:-.02em;color:#07507F}
.ns-ad small{font:italic calc(var(--u) * 2.1)/1.3 var(--serif);color:var(--ink-2)}
.ns-btn{margin-top:calc(var(--u) * .5);padding:calc(var(--u) * 1.3) calc(var(--u) * 3);border-radius:99px;background:#1E5BFF;color:#fff!important;font:700 calc(var(--u) * 2.3)/1 var(--font);text-decoration:none}
.ns-src{flex:none;margin-top:calc(var(--u) * 2)!important;padding-top:calc(var(--u) * 1.2);border-top:1px solid var(--ink);text-align:center;font:italic calc(var(--u) * 1.8)/1.3 var(--serif);color:var(--ink-2)}

/* Phones (one page at a time): the same paper on a single page */
.hp.news .np{--u:calc(var(--w) / 84 * var(--k));padding-top:calc(var(--u) * 6);font-family:var(--serif);color:var(--ink);display:flex;flex-direction:column}
.np>*{flex:none}
.np p{margin:0}
.np-mast{display:flex;align-items:center;justify-content:space-between;gap:6px;padding-bottom:calc(var(--u) * 1.5);border-bottom:3px double var(--ink)}
.np-mast b{font:900 calc(var(--u) * 6.4)/1 var(--serif);letter-spacing:-.01em;text-align:center;white-space:nowrap}
.np-mast span{flex:1;font:600 calc(var(--u) * 2)/1.2 var(--font);letter-spacing:.12em;text-transform:uppercase;color:var(--ink-2)}
.np-mast span:last-child{text-align:right}
.np-date{display:flex;justify-content:space-between;gap:8px;padding:calc(var(--u) * 1) 0;border-bottom:1px solid var(--ink);font:italic calc(var(--u) * 2.3)/1.2 var(--serif);color:var(--ink-2)}
.np-kick{margin-top:calc(var(--u) * 3)!important;font:700 calc(var(--u) * 2.2)/1 var(--font);letter-spacing:.16em;text-transform:uppercase;color:#B3261E}
.np-h1{margin:calc(var(--u) * 1.4) 0 calc(var(--u) * 1.4);font:800 calc(var(--u) * 6.6)/1.06 var(--serif);letter-spacing:-.015em;text-wrap:balance}
.np-deck{font:italic calc(var(--u) * 3)/1.35 var(--serif);color:var(--ink-2);padding-bottom:calc(var(--u) * 2);border-bottom:1px solid rgba(29,34,51,.25)}
.np-box{margin-top:calc(var(--u) * 3);padding:calc(var(--u) * 2) calc(var(--u) * 2.6);border:1.5px solid var(--ink);background:rgba(255,255,255,.35)}
.np-box>b{display:block;font:700 calc(var(--u) * 2.2)/1 var(--font);letter-spacing:.14em;text-transform:uppercase;margin-bottom:calc(var(--u) * 1.4)}
.np-box ul{list-style:none;margin:0;padding:0;display:grid;gap:calc(var(--u) * .9)}
.np-box li{display:flex;align-items:baseline;gap:calc(var(--u) * 1.6);font:calc(var(--u) * 2.6)/1.3 var(--serif)}
.np-box em{flex:none;min-width:24%;font:800 normal calc(var(--u) * 3.6)/1 var(--serif);color:#B3261E}
.np-sec{display:flex;justify-content:space-between;align-items:baseline;padding:calc(var(--u) * 4) 0 calc(var(--u) * 1);border-bottom:3px double var(--ink);
  font:700 calc(var(--u) * 2.2)/1 var(--font);letter-spacing:.16em;text-transform:uppercase}
.np-world{margin-top:calc(var(--u) * 1.6)!important;font:calc(var(--u) * 2.9)/1.42 var(--serif)}
.np-world b{font-family:var(--font);font-weight:700}
.np-notice{margin-top:calc(var(--u) * 2.6);padding:calc(var(--u) * 1.6) calc(var(--u) * 2.2);background:#1D2233;color:#FBF7EE;font:calc(var(--u) * 2.6)/1.38 var(--serif)}
.np-notice b{display:block;font:700 calc(var(--u) * 2)/1 var(--font);letter-spacing:.16em;text-transform:uppercase;color:#FFB4AA;margin-bottom:calc(var(--u) * .8)}
.np-notice strong{font-family:var(--font)}
.np-src{margin-top:auto!important;padding-top:calc(var(--u) * 1.6);font:italic calc(var(--u) * 1.9)/1.3 var(--serif);color:var(--ink-2)}
