/* 06 · Over Burak + 07 · Let's Connect — one open notebook (the landing after the portal).
   Everything inside the book is sized in em: on screens of 900px and wider the book is one size container and its font-size
   follows the space it gets, so the whole composition scales as one piece and always fits (it never distorts).
   Left page: Over Burak. Right page: the contact form (the form itself: contact.css + js/chapters/contact.js).
   Phones: the left page above the right page, in the same leather binding.
   The opening (closed book → open) is js/chapters/notebook.js; without JavaScript or with reduced motion the book is open. */

.nb { --nb-navy: #141a35; --nb-ink: #121834; --nb-paper: #f8f1e3; --nb-or: #e2701c;
  --nb-noise: 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='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .55 0 0 0 0 .45 0 0 0 0 .3 0 0 0 .08 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
  --nb-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.6' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .7 0 0 0 0 .75 0 0 0 0 .95 0 0 0 .11 0'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E"); }
/* the card frame of the old layout is not used: the book is the object */
.card.nb { padding: 0; background: none; border: 0; box-shadow: none; border-radius: 0; display: grid; place-items: center; grid-template-columns: none; }
.nb-book { position: relative; color: var(--nb-ink); perspective: 160em; }

/* ---------- materials ---------- */
/* the leather boards (one per half: closed, only the right one shows) */
.nb-board { position: absolute; top: 0; bottom: 0; width: 50%; background-color: #161d3c;
  background-image: var(--nb-grain), radial-gradient(130% 90% at 35% 18%, #2a3462 0%, #1a2247 42%, #10162f 100%);
  box-shadow: 0 2.6em 3.2em -1.6em rgba(70, 34, 8, .5), 0 .7em 1.4em -.4em rgba(70, 34, 8, .3), inset 0 .12em 0 rgba(255, 255, 255, .1), inset 0 -.25em .5em rgba(0, 0, 0, .35); }
.nb-board::before { content: ""; position: absolute; inset: .55em; border: .09em dashed rgba(226, 182, 118, .32); border-radius: inherit; }
.nb-board.l { left: 0; border-radius: 1.9em 0 0 1.9em; }
.nb-board.r { right: 0; border-radius: 0 1.9em 1.9em 0; }
.nb-board.l::before { right: 0; border-right: 0; }
.nb-board.r::before { left: 0; border-left: 0; }
/* brass corner fittings on the outer edges */
.nb-board::after { content: ""; position: absolute; top: 13%; bottom: 13%; width: .55em; border-radius: .2em;
  background: linear-gradient(180deg, #f6d78c, #c48a2c 55%, #8b5b16) top / 100% 2.4em no-repeat, linear-gradient(180deg, #f6d78c, #c48a2c 55%, #8b5b16) bottom / 100% 2.4em no-repeat; }
.nb-board.l::after { left: -.22em; } .nb-board.r::after { right: -.22em; }

/* the paper: warm cream with a fine grain, shaded towards the spine, a stack of sheets along the outer edges */
.nb-sheet { position: absolute; top: 1.25em; bottom: 1.9em; background-color: var(--nb-paper); }
.nb-sheet.l { left: 1.75em; right: 50%; border-radius: 1.1em .15em .15em .9em;
  background-image: var(--nb-noise), linear-gradient(270deg, rgba(120, 82, 36, .3) 0, rgba(120, 82, 36, .1) 3.5%, rgba(120, 82, 36, 0) 12%), linear-gradient(90deg, rgba(255, 255, 255, .55), rgba(255, 255, 255, 0) 30%), linear-gradient(180deg, #fbf6ec, #f4ebda);
  box-shadow: -.16em .1em 0 #ebe0cc, -.3em .22em 0 #f7efe1, -.44em .34em 0 #e2d5bf, -.58em .46em 0 #f4ebdc, -.72em .58em 0 #dccdb4, -.86em .7em 0 #efe4d2, -.9em .9em 1.2em rgba(30, 18, 6, .45); }
.nb-sheet.r { left: 50%; right: 1.75em; border-radius: .15em 1.1em .9em .15em;
  background-image: var(--nb-noise), linear-gradient(90deg, rgba(120, 82, 36, .3) 0, rgba(120, 82, 36, .1) 3.5%, rgba(120, 82, 36, 0) 12%), linear-gradient(270deg, rgba(255, 255, 255, .55), rgba(255, 255, 255, 0) 30%), linear-gradient(180deg, #fbf6ec, #f4ebda);
  box-shadow: .16em .1em 0 #ebe0cc, .3em .22em 0 #f7efe1, .44em .34em 0 #e2d5bf, .58em .46em 0 #f4ebdc, .72em .58em 0 #dccdb4, .86em .7em 0 #efe4d2, .9em .9em 1.2em rgba(30, 18, 6, .45); }
.nb-page { position: absolute; inset: 0; }
/* the fold: a soft valley where the pages meet the spine */
.nb-gutter { position: absolute; z-index: 3; left: 50%; top: 1.25em; bottom: 1.9em; width: 3.4em; transform: translateX(-50%); pointer-events: none;
  background: linear-gradient(90deg, rgba(110, 72, 30, 0), rgba(110, 72, 30, .16) 36%, rgba(48, 28, 8, .42) 50%, rgba(110, 72, 30, .16) 64%, rgba(110, 72, 30, 0)); }
.nb-gutter::before { content: ""; position: absolute; left: 50%; bottom: -.74em; width: 1.9em; height: .76em; transform: translateX(-50%);
  background: repeating-linear-gradient(180deg, #e9ddc8 0 .12em, #f6eee0 .12em .25em); clip-path: polygon(0 0, 100% 0, 78% 100%, 22% 100%); }
.nb-gutter::after { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: rgba(40, 24, 8, .35); }
/* the elastic strap with the mountain emblem, over the right edge */
.nb-strap { position: absolute; z-index: 6; right: -1.2em; top: 33%; width: 4.6em; height: 7.6em; border-radius: 1.2em .9em .9em 1.2em; pointer-events: none; display: grid; place-items: center;
  background: var(--nb-grain), linear-gradient(90deg, #0f1530, #222b55 30%, #1a2247 70%, #0d1229);
  box-shadow: -.35em .5em .9em -.2em rgba(20, 10, 2, .5), inset 0 .1em 0 rgba(255, 255, 255, .12), inset .25em 0 .4em rgba(0, 0, 0, .4); }
.nb-strap::before { content: ""; position: absolute; inset: .4em; border: .08em dashed rgba(226, 182, 118, .35); border-radius: .9em .6em .6em .9em; }
.nb-emblem { width: 62%; fill: none; stroke: #ff8a2a; stroke-width: 3.2; stroke-linejoin: round; stroke-linecap: round; filter: drop-shadow(0 .06em 0 rgba(0, 0, 0, .5)); }
/* the pen, resting on the right page */
.nb-pen { position: absolute; z-index: 5; right: 3em; bottom: 8.4em; width: 14.5em; transform: rotate(-24deg); pointer-events: none; filter: drop-shadow(-.2em .7em .45em rgba(50, 26, 6, .35)); transition: opacity .3s ease; }
.nb-book:has(.cx-reveal.open) .nb-pen { opacity: 0; }   /* a written field is open: the pen makes room */

/* the front cover: only there while the book opens (js/chapters/notebook.js) */
.nb-cover { display: none; position: absolute; z-index: 5; top: 0; bottom: 0; left: 50%; width: 50%; transform-origin: 0 50%; transform-style: preserve-3d; pointer-events: none; }
.nb.nb-closed .nb-cover { display: block; }
.nb-cover > div { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.nb-cover-f { border-radius: .5em 1.9em 1.9em .5em; display: grid; place-items: center;
  background: var(--nb-grain), radial-gradient(120% 90% at 40% 25%, #2b3565 0%, #1a2248 45%, #0f152e 100%);
  box-shadow: inset 0 .12em 0 rgba(255, 255, 255, .12), inset .5em 0 .8em -.3em rgba(0, 0, 0, .55), 0 1.6em 2.4em -1em rgba(70, 34, 8, .5); }
.nb-cover-f::before { content: ""; position: absolute; inset: .55em .55em .55em 0; border: .09em dashed rgba(226, 182, 118, .32); border-left: 0; border-radius: inherit; }
.nb-cover-f .nb-emblem { width: 22%; stroke: #d9a24e; opacity: .9; filter: drop-shadow(0 .08em 0 rgba(0, 0, 0, .55)) drop-shadow(0 -.04em 0 rgba(255, 230, 170, .25)); }
.nb-cover-b { transform: rotateY(180deg); border-radius: 1.9em .5em .5em 1.9em;
  background: var(--nb-grain), radial-gradient(130% 90% at 35% 18%, #2a3462 0%, #1a2247 42%, #10162f 100%); }
.nb-cover-b::after { content: ""; position: absolute; top: 1.25em; bottom: 1.9em; left: 1.75em; right: 0; border-radius: 1.1em .15em .15em .9em;
  background: var(--nb-noise), linear-gradient(270deg, rgba(120, 82, 36, .3), rgba(120, 82, 36, 0) 12%), #f6eee0; }

/* ---------- the left page: Over Burak ---------- */
.nb-about { position: relative; z-index: 2; }
.nb .eyebrow.nb-eyebrow { position: relative; margin: 0; font-size: .8em; font-weight: 600; letter-spacing: .14em; color: var(--nb-ink); }
.nb .eyebrow.nb-eyebrow::after { content: ""; position: absolute; left: 0; top: calc(100% + .5em); width: 2.2em; height: .16em; border-radius: 1px; background: var(--orange); }
.nb-title { margin: 0; font-family: var(--f-display); font-weight: 800; letter-spacing: -.045em; line-height: .98; color: var(--nb-ink); text-wrap: balance; }
.nb-title em { font-family: var(--f-serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; color: var(--nb-or); }
.nb-about .nb-title { font-size: 3.35em; margin-top: .62em; }
.nb-about .nb-title em { display: block; font-size: 1.07em; margin-top: .02em; }
.nb-lede { margin: 1.5em 0 0; font-size: 1em; font-weight: 560; line-height: 1.5; color: #1b2038; text-wrap: pretty; }
.nb-text { margin: 1.1em 0 0; font-size: .95em; line-height: 1.55; color: #585c70; text-wrap: pretty; }
.nb-mtn { position: absolute; z-index: 1; fill: none; stroke: #b5a48b; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; opacity: .85; pointer-events: none; }
/* the portrait: the free-standing photo, standing on the bottom of the page (no backdrop, no glow, no edge) */
.nb-photo { position: absolute; z-index: 1; margin: 0; pointer-events: none; }
.nb-photo img { display: block; width: auto; height: 100%; }

/* ---------- the right page: the contact form ---------- */
.nb-sheet.r .nb-title { font-size: 3.05em; margin-top: .62em; transition: font-size .3s var(--ease-out); }
.nb-sheet.r .nb-title em { display: inline; font-size: 1.08em; }
.nb .cx-form { gap: .8em; margin-top: 1.45em; max-width: 30em; }
/* each sentence is one rounded field set into the paper; clicking anywhere on it goes to its field */
.nb .cx-line { position: relative; display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 0; min-height: 3.05em; margin: 0; padding: .7em 2.6em .62em 3.05em;
  font-family: var(--f-display); font-size: 1.1em; font-weight: 600; line-height: 1.3; letter-spacing: -.015em; color: var(--nb-ink);
  border: 1px solid rgba(20, 26, 53, .17); border-radius: 2em; background: linear-gradient(180deg, rgba(255, 255, 255, .5), rgba(255, 255, 255, .22));
  box-shadow: inset 0 .1em .25em rgba(90, 60, 25, .1), 0 1px 0 rgba(255, 255, 255, .85); transition: border-color .2s, box-shadow .2s, background-color .2s; }
.nb .cx-line label { cursor: pointer; margin-right: .3em; }
.nb .cx-line label::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.nb .cx-line:hover { border-color: rgba(20, 26, 53, .3); }
.nb .cx-line:focus-within { border-color: rgba(254, 106, 0, .6); box-shadow: 0 0 0 .2em rgba(254, 106, 0, .14), inset 0 .1em .25em rgba(90, 60, 25, .08); background-color: rgba(255, 255, 255, .35); }
.nb .cx-line:has(input:user-invalid) { border-color: #b3261e; }
.cx-ico { position: absolute; left: 1.05em; top: 50%; width: 1.3em; height: 1.3em; transform: translateY(-50%); pointer-events: none; }
.cx-ico svg { display: block; width: 100%; height: 100%; fill: none; stroke: var(--nb-navy); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.nb .cx-form input { position: relative; z-index: 1; border-bottom: 0; padding: 0 1px; color: var(--nb-ink); font-weight: 600; }
.nb .cx-form input::placeholder { color: #8073a6; }
.nb .cx-form input:focus-visible { background-color: transparent; }
/* the choice: the chevron sits at the end of the field, the list opens under it */
.nb .cx-pick { position: static; }
.nb .cx-select { position: relative; z-index: 1; border-bottom: 0; padding: 0 1px; color: var(--nb-ink); }
.nb .cx-select:hover, .nb .cx-select:focus-visible { background-color: transparent; }
.nb .cx-select .cx-chev { display: none; }
.nb .cx-line:has(.cx-pick)::after { content: ""; position: absolute; right: 1.3em; top: 50%; width: .5em; height: .5em; margin-top: -.4em; pointer-events: none;
  border-right: .14em solid var(--orange); border-bottom: .14em solid var(--orange); transform: rotate(45deg); transition: transform .25s var(--ease-out), margin .25s; }
.nb .cx-line:has([aria-expanded="true"])::after { transform: rotate(225deg); margin-top: -.1em; }
.nb .cx-line:has([aria-expanded="true"]) label::after { pointer-events: none; }   /* open: a click beside the list only closes it */
.nb .cx-menu { left: 2.4em; top: calc(100% + .45em); min-width: 0; font-size: .82em; z-index: 30; }
/* the written fields */
.nb .cx-field label { font-size: .85em; }
.nb .cx-field textarea { font-size: max(16px, .95em); min-height: 3.4em; border-radius: 1em; background: rgba(255, 255, 255, .45); border: 1px solid rgba(20, 26, 53, .15); border-bottom: 1px solid rgba(20, 26, 53, .15); }
.nb .cx-field textarea:focus-visible { border-color: rgba(254, 106, 0, .6); }
.nb .cx-extra textarea { min-height: 4.4em; }
.nb .cx-reveal .cx-field { padding: .1em .1em .2em; }
.nb .cx-extra { margin-top: .15em; }
.nb .cx-toggle { font-size: .9em; padding: .4em .2em; color: #4c5066; }
.nb .cx-plus { border: 0; width: 1.1em; height: 1.1em; }
.nb .cx-plus::before, .nb .cx-plus::after { width: 1em; height: .14em; margin: -.07em 0 0 -.5em; }
/* the button: dark navy, rounded, the orange diamond */
.nb .cx-row { margin-top: .6em; gap: .7em 1.2em; flex-direction: column; align-items: flex-start; }
.nb .cx-send { gap: .85em; padding: 1em 1.5em 1em 1.35em; font-family: var(--f-display); font-size: 1.12em; font-weight: 650; letter-spacing: -.01em; background: var(--nb-ink); color: #fff;
  box-shadow: 0 .7em 1.3em -.6em rgba(18, 24, 52, .6), inset 0 -.12em 0 rgba(0, 0, 0, .3), inset 0 .08em 0 rgba(255, 255, 255, .12); }
.nb .cx-send:hover { background: #1d2550; }
.nb .cx-dia { width: .62em; height: .62em; }
.cx-arrow { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; margin-left: .2em; transition: transform .3s var(--ease-out); }
.nb .cx-send:hover .cx-arrow { transform: translateX(.2em); }
.nb .cx-status { font-size: .88em; }
.nb .cx-mail-m { display: block; margin: .8em 0 0; padding: 0; border: 0; font-size: .82em; color: #6a6478; white-space: normal; }
.nb .cx-mail-m a { color: var(--nb-ink); font-weight: 500; text-decoration: underline; text-decoration-color: var(--orange); text-underline-offset: .2em; }

/* ---------- wide screens: the open book side by side, scaled as one piece ---------- */
@media (min-width: 900px) {
  /* (a roomier book: a little more of the screen, taller pages, wider margins and more air between the parts) */
  .card.nb { container: nb / size; width: 100%; max-width: 1400px; height: min(880px, calc(100svh - 112px)); min-height: 520px; margin-inline: auto; }
  html.fin-3d .cards .card.nb { height: auto; min-height: 0; top: 92px; bottom: 18px; max-height: 880px; max-width: 1400px; }
  .nb-book { font-size: min(calc(100cqw / 81), calc(100cqh / 45.5)); width: 80em; height: 44em; }
  .nb-sheet.l .nb-page { padding: 3.6em 0 0 3.8em; }
  .nb-about { width: 17.4em; }
  .nb-about .nb-title { margin-top: .78em; }
  .nb-lede { margin-top: 1.9em; }
  .nb-text { margin-top: 1.35em; }
  .nb-mtn { left: 2em; bottom: 1.2em; width: 18.5em; }
  .nb-photo { right: .9em; bottom: 0; height: 27.6em; }
  .nb-sheet.r .nb-title { margin-top: .7em; }
  .nb .cx-form { gap: 1em; margin-top: 1.75em; }
  .nb .cx-line { min-height: 3.2em; }
  .nb .cx-row { margin-top: .85em; }
  .nb .cx-mail-m { margin-top: .9em; }
  .nb-sheet.r .nb-page { padding: 3.3em 4em 1.6em 4.3em; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: rgba(20, 26, 53, .25) transparent; border-radius: inherit; }
  /* (only when both written fields are open can the page run longer than the paper: then it scrolls inside the page) */
  .nb .cx-field textarea { height: 3.3em; min-height: 0; }
  .nb .cx-extra textarea { height: 4.2em; }
  .nb .cx-reveal .cx-field { gap: .35em; }
  /* a written field is open: the heading steps back a little so the form keeps fitting on the page */
  .nb-sheet.r:has(.cx-reveal.open) .nb-title { font-size: 2.35em; margin-top: .5em; }
  .nb-sheet.r:has(.cx-reveal.open) .cx-form { margin-top: 1em; gap: .6em; }
  .nb-sheet.r:has(#cx-other-wrap.open):has(#cx-extra-wrap.open) .cx-mail-m { display: none; }
  .nb-sheet.r .nb-title { max-width: 10.5em; }
}
/* screens that are tall for their width (tablets in landscape, 4:3 laptops): a taller, narrower book */
@container nb (max-width: 1100px) and (max-aspect-ratio: 7 / 4) {
  .nb-book { font-size: min(calc(100cqw / 66), calc(100cqh / 50)); width: 65em; height: 47em; }
  .nb-about { width: 15.6em; }
  .nb-about .nb-title { font-size: 2.85em; }
  .nb-photo { height: 23.5em; right: .5em; }
  .nb-mtn { width: 17em; }
  .nb-sheet.r .nb-page { padding: 3.4em 3em 1.8em 3.2em; }
  .nb-sheet.r .nb-title { font-size: 2.7em; }
  .nb-pen { width: 11.5em; right: 2.2em; bottom: 7.4em; }
}

/* ---------- phones and narrow tablets: the left page above the right page ---------- */
@media (max-width: 899px) {
  .card.nb { padding: 0; border-radius: 0; }
  .nb-book { font-size: clamp(15px, 4.1vw, 16.5px); width: 100%; max-width: 38em; margin: 0 auto; padding: 1em .95em 1.35em; }
  .nb-board.l { width: auto; right: 0; border-radius: 1.5em; }
  .nb-board.l::before { right: .55em; border-right: .09em dashed rgba(226, 182, 118, .32); }
  .nb-board.r, .nb-gutter, .nb-pen { display: none; }
  .nb-board::after { top: 9%; bottom: auto; height: 82%; }
  .nb-sheet.l, .nb-sheet.r { position: relative; top: auto; bottom: auto; left: auto; right: auto; }
  .nb-page { position: relative; inset: auto; }
  .nb-sheet.l { border-radius: .9em .9em .1em .1em;
    background-image: var(--nb-noise), linear-gradient(0deg, rgba(120, 82, 36, .13) 0, rgba(120, 82, 36, .04) 1.2%, rgba(120, 82, 36, 0) 3%), linear-gradient(180deg, #fbf6ec, #f4ebda);
    box-shadow: .14em 0 0 #ebe0cc, .28em 0 0 #f7efe1, .42em 0 0 #e2d5bf, .5em .2em .8em rgba(30, 18, 6, .3);
    clip-path: inset(-2em -2em 0 -2em); }   /* one book: the page edges run on along the right, and no shadow falls over the fold */
  .nb-sheet.r { margin-top: 0; border-radius: .1em .1em .9em .9em;
    background-image: var(--nb-noise), linear-gradient(180deg, rgba(120, 82, 36, .13) 0, rgba(120, 82, 36, .04) 1.2%, rgba(120, 82, 36, 0) 3%), linear-gradient(180deg, #f8f1e4, #f4ebda);
    box-shadow: .14em 0 0 #ebe0cc, .28em 0 0 #f7efe1, .42em 0 0 #e2d5bf, .5em .5em .8em rgba(30, 18, 6, .3);
    clip-path: inset(0 -2em -2em -2em); }
  .nb-sheet.l .nb-page { padding: 2.5em 1.7em 0; overflow: hidden; border-radius: inherit; }
  .nb-about .nb-title { font-size: clamp(2.3em, 10.5vw, 2.9em); }
  .nb-lede { font-size: 1.02em; }
  .nb-photo { position: relative; width: min(68%, 15em); margin: 1.4em auto 0; }
  .nb-photo img { width: 100%; height: auto; }
  .nb-mtn { left: 0; right: 0; bottom: 0; width: 100%; opacity: .6; }
  .nb-sheet.r .nb-page { padding: 2.7em 1.5em 2.5em; }
  .nb .cx-form { gap: 1em; margin-top: 1.8em; }
  .nb .cx-row { margin-top: 1em; }
  .nb-lede { margin-top: 1.6em; }
  .nb-text { margin-top: 1.2em; }
  .nb-sheet.r .nb-title { font-size: clamp(2em, 8.6vw, 2.5em); }
  .nb .cx-form { max-width: none; }
  .nb .cx-line { font-size: 1.06em; padding-right: 1.1em; }
  .nb .cx-line:has(.cx-pick) { padding-right: 2.4em; }
  .nb .cx-send { width: 100%; justify-content: center; min-height: 3.3em; }
  .nb .cx-row { flex-direction: column; align-items: stretch; }
  .nb-strap { right: -.7em; top: auto; bottom: 1.1em; width: 3.2em; height: 5.4em; }
  .nb-cover { left: 0; width: 100%; }
  .nb-cover-f { border-radius: 1.5em; align-items: start; padding-top: 1.8em; }   /* the emblem near the top: it is what shows first as the closed book comes up */
  .nb-cover-f .nb-emblem { width: 34%; }
}

@media (prefers-reduced-motion: reduce) { .nb .cx-line, .nb .cx-line::after, .cx-arrow, .nb-pen, .nb-sheet.r .nb-title { transition: none; } }

/* ---------- the closed book: "scroll om te openen" ----------
   Desktop: beside the closed book, halfway up its right edge (the cover is the right half of the book, so left: 100% is
   the cover's right edge), the words with a small arrow below them. Phones, where the closed book stands at the bottom of
   the screen: just above the book, at its right, clear of the figure in the middle of the artwork. It fades out as soon
   as the book starts to open (--nb-p, the openness, set by js/chapters/notebook.js; without JavaScript the book is open
   and the instruction never shows). */
.nb { --nb-p: 1; }
.nb-cue { position: absolute; left: 100%; top: 50%; margin: 0 0 0 clamp(28px, 3.2vw, 60px); transform: translateY(-50%); z-index: 3;
  display: flex; flex-direction: column; align-items: center; gap: 12px; width: max-content; max-width: 10em; text-align: center; text-wrap: balance; pointer-events: none;
  font-family: var(--f-mono); font-size: 13.5px; font-weight: 600; line-height: 1.5; letter-spacing: .22em; text-transform: uppercase; color: #141a35;
  opacity: clamp(0, calc(1 - (var(--nb-p) - .02) * 14), 1); }   /* (gone by ≈ 9% open) */
.nb-cue::before { content: ""; width: 28px; height: 2px; border-radius: 2px; background: var(--nb-or); order: -1; }
.nb-cue-arrow { color: var(--nb-or); font-size: 18px; line-height: 1; letter-spacing: 0; display: inline-block; animation: nb-cue 1.9s ease-in-out infinite; }
@keyframes nb-cue { 0%, 100% { transform: translateY(-2px); opacity: .7; } 50% { transform: translateY(5px); opacity: 1; } }
/* while the book is closed the contact page is no scroll area of its own, so scrolling over the book scrolls the page */
.nb.nb-closed .nb-sheet.r .nb-page { overflow-y: hidden; }
@media (max-width: 899px) {
  /* (above the book's right end, on a quiet pill in the book's paper colour so it stays legible over the artwork) */
  .nb-cue { left: auto; right: .6em; top: auto; bottom: 100%; margin: 0 0 22px; transform: none; flex-direction: row; gap: 10px; max-width: none;
    padding: 8px 14px 8px 16px; border-radius: 999px; font-size: 11px; letter-spacing: .16em; white-space: nowrap;
    background: rgba(248, 241, 227, .94); box-shadow: 0 8px 22px -10px rgba(20, 26, 53, .45); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
  .nb-cue::before { display: none; }
  .nb-cue-arrow { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) { .nb-cue-arrow { animation: none; } }
