/* Kindle concept case study: shared tokens + product mockups (used by a.html and b.html) */
@font-face { font-family: "Irregardless"; src: url("../../fonts/IrregardlessVariable.ttf") format("truetype"); font-weight: 100 1000; font-display: swap; }

:root {
  --canvas: #F5F5F5;
  --dot: #CBCBCB;
  --ink: #1E1E1E;
  --ink-soft: #5C5C5C;
  --ink-faint: #9A9A9A;
  --violet: #9747FF;
  --violet-deep: #7A2BE2;
  --select: #0D99FF;
  --sticky: #FFE38F;

  /* the product's own materials */
  --paper: #F7F5EF;          /* e-ink page */
  --paper-ink: #2A2722;
  --hl: #FFD84D;             /* the word being read aloud */
  --hl-soft: rgba(255, 216, 77, .32);
  --listen: #9747FF;         /* audio */
  --sky: #1F5FD1;
  --sky-bg: #EEF4FF; --sky-line: #C5D8FB; --sky-chip: #D9E6FD; --sky-chip-line: #8FB3F2;
  --warn: #E5484D;
  --ok: #14AE5C;

  --font-display: "Irregardless", "Arial Narrow", system-ui, sans-serif;
  --font-ui: "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --font-book: "Literata", Georgia, serif;

  --shadow-elevated: 0 0 0 .5px rgba(30,30,30,.10), 0 1px 2px rgba(30,30,30,.06), 0 6px 16px -4px rgba(40,20,80,.08);
  --shadow-floating: 0 0 0 .5px rgba(30,30,30,.14), 0 2px 6px rgba(30,30,30,.06), 0 12px 32px -8px rgba(60,30,120,.16);
  --shadow-device: 0 2px 4px rgba(20,10,40,.14), 0 30px 60px -20px rgba(30,20,80,.40);
  --shadow-dark: 0 2px 4px rgba(0,0,0,.12), 0 14px 36px -8px rgba(20,10,40,.40);

  --gutter: clamp(20px, 6vw, 72px);   /* page side margin: roomy on desktop, still breathing on phones */
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); font-family: var(--font-ui); line-height: 1.7; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--select); outline-offset: 3px; border-radius: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.dots {
  background-color: var(--canvas);
  background-image: radial-gradient(circle at 1px 1px, var(--dot) 1px, transparent 1.4px);
  background-size: 24px 24px; background-position: 12px 12px;
}

/* ---------- top chrome ---------- */
.topbar { position: fixed; inset: 0 0 auto 0; z-index: 60; display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; padding: 12px clamp(12px, 2vw, 24px); pointer-events: none; }
.pill { pointer-events: auto; display: flex; align-items: center; height: 44px; background: #fff; border-radius: 12px; box-shadow: var(--shadow-floating); }
.pill a, .pill span { display: inline-flex; align-items: center; gap: 8px; height: 100%; padding: 0 14px; font-size: 14.5px; font-weight: 500; text-decoration: none; white-space: nowrap; }
.pill a { border-radius: 12px; transition: background-color .15s ease, transform .3s var(--spring); }
.pill a:hover { background: #F0F0F0; }
.pill a:active { transform: scale(.97); }
.pill .crumb { color: var(--ink-faint); padding-left: 0; }
.pill .sep { width: 1px; height: 100%; padding: 0; background: #EAEAEA; }
.btn-violet {
  pointer-events: auto; display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px;
  background: var(--violet); color: #fff; border-radius: 8px; font: 500 14px/1 var(--font-ui); text-decoration: none;
  box-shadow: 0 4px 12px -4px rgba(151,71,255,.55);
  transition: transform .35s var(--spring), background-color .15s ease;
}
.btn-violet:hover { background: var(--violet-deep); transform: translateY(-1px); }
.btn-violet:active { transform: scale(.97); }
.ico { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* layout compare switch (review aid) */
.compare {
  position: fixed; left: 50%; bottom: 16px; z-index: 60; transform: translateX(-50%);
  display: flex; align-items: center; gap: 4px; padding: 5px 5px 5px 14px;
  background: var(--ink); color: #fff; border-radius: 12px; box-shadow: var(--shadow-dark);
  font: 500 12.5px/1 var(--font-ui);
}
.compare span { color: rgba(255,255,255,.6); margin-right: 6px; white-space: nowrap; }
.compare a { white-space: nowrap; padding: 8px 12px; border-radius: 8px; text-decoration: none; transition: background-color .15s ease, transform .3s var(--spring); }
.compare a:hover { background: rgba(255,255,255,.12); }
.compare a:active { transform: scale(.96); }
.compare a[aria-current="page"] { background: var(--violet); }

/* ---------- type ---------- */
.display { font-family: var(--font-display); font-weight: 900; line-height: .84; letter-spacing: -0.015em; margin: 0; }
.eyebrow { font: 500 12px/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-faint); }
.lede { font-size: clamp(17px, 1.35vw, 20px); color: var(--ink-soft); }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 7px;
  background: #fff; box-shadow: var(--shadow-elevated); font: 500 12px/1.2 var(--font-mono); color: var(--ink-soft);
}

/* ---------- device mock (phone running the Kindle app) ---------- */
.kdev {
  --dw: 300px;
  width: var(--dw); aspect-ratio: 9 / 18.5; flex: none;
  padding: calc(var(--dw) * .035); border-radius: calc(var(--dw) * .15);
  background: #141414; box-shadow: var(--shadow-device), inset 0 0 0 1.5px #2C2C2C;
  font-size: calc(var(--dw) * .043);
}
.k-screen {
  position: relative; height: 100%; border-radius: calc(var(--dw) * .12); overflow: hidden;
  background: var(--paper); color: var(--paper-ink);
  display: flex; flex-direction: column; gap: .75em; padding: 1.1em 1.15em 1.2em;
}
.k-status { display: flex; justify-content: space-between; align-items: center; font: 600 .78em/1 var(--font-ui); opacity: .8; }
.k-app { font: 600 .82em/1 var(--font-ui); letter-spacing: .02em; padding: .3em .6em; border-radius: 99em; background: rgba(42,39,34,.07); }
.k-app.is-audible { background: #FFE7C2; color: #8A4B00; }
.k-top { display: flex; align-items: center; gap: .5em; font: 600 .95em/1.2 var(--font-ui); }
.k-top .k-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.k-top .k-aa { font: 500 .9em/1 var(--font-book); opacity: .6; }
.k-top svg { width: 1.1em; height: 1.1em; }

.k-cover { display: none; justify-content: center; padding: .4em 0 .2em; }
.cover {
  position: relative; width: 62%; aspect-ratio: 2 / 3; border-radius: .35em; overflow: hidden;
  background: radial-gradient(circle at 70% 26%, #F5E9B8 0 9%, transparent 9.5%), linear-gradient(170deg, #1F3B57 0%, #1B4D45 55%, #0F2A2A 100%);
  box-shadow: 0 .5em 1.4em -0.4em rgba(0,0,0,.45);
  display: flex; flex-direction: column; justify-content: flex-end; padding: .8em; color: #F5E9B8;
}
.cover::before { content: ""; position: absolute; inset: auto -10% 18% -10%; height: 34%; background: radial-gradient(ellipse at 50% 100%, #2F6B4F 0 55%, transparent 56%), radial-gradient(ellipse at 20% 100%, #24563F 0 45%, transparent 46%); }
.cover-t { position: relative; font: italic 600 1.15em/1.05 var(--font-book); }
.cover-a { position: relative; font: 500 .62em/1.4 var(--font-ui); letter-spacing: .12em; text-transform: uppercase; opacity: .8; margin-top: .4em; }

.k-text { flex: 1; min-height: 0; overflow: hidden; }
.k-text p { margin: 0; font: 400 1.02em/1.62 var(--font-book); }
.w { border-radius: .2em; padding: 0 .06em; margin: 0 -.06em; box-decoration-break: clone; -webkit-box-decoration-break: clone; transition: background-color .18s ease; }
.kdev[data-mode="both"] .w.on, .kdev[data-mode="listen"] .w.on { background: var(--hl); }
.kdev[data-mode="both"] .w.said { background: var(--hl-soft); }

.k-player { display: none; align-items: center; gap: .6em; padding: .55em .6em; border-radius: .8em; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.k-play { width: 2.1em; height: 2.1em; border-radius: 50%; background: var(--paper-ink); color: var(--paper); display: grid; place-items: center; flex: none; transition: transform .3s var(--spring); }
.k-play:hover { transform: scale(1.06); }
.k-play:active { transform: scale(.92); }
.k-play svg { width: .9em; height: .9em; fill: currentColor; }
.k-play .i-pause { display: none; }
.kdev.is-playing .k-play .i-play { display: none; }
.kdev.is-playing .k-play .i-pause { display: block; }
.k-wave { flex: 1; display: flex; align-items: center; gap: 2px; height: 1.8em; }
.k-wave i { flex: 1; border-radius: 2px; background: #D7D2C6; transform-origin: center; }
.k-wave i.done { background: var(--listen); }
.k-rate { font: 600 .72em/1 var(--font-mono); opacity: .6; }

.k-foot { display: grid; gap: .45em; }
.k-loc { display: flex; justify-content: space-between; font: 500 .74em/1 var(--font-ui); opacity: .7; }
.k-loc b { font-weight: 600; opacity: 1; }
.k-loc .synced { color: var(--ok); font-weight: 600; opacity: 1; }
.k-bar { height: .32em; border-radius: 99em; background: rgba(42,39,34,.12); overflow: hidden; }
.k-bar i { display: block; height: 100%; width: 100%; border-radius: inherit; background: var(--paper-ink); transform-origin: left; transform: scaleX(var(--p, .38)); transition: transform .9s var(--ease-out); }

/* Read · Listen · Both */
.seg { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); padding: .25em; border-radius: 99em; background: rgba(42,39,34,.08); }
.seg-ind { position: absolute; top: .25em; bottom: .25em; left: .25em; width: calc((100% - .5em) / 3); border-radius: 99em; background: var(--paper-ink); transform: translateX(calc(var(--i, 2) * 100%)); transition: transform .5s var(--spring); }
.seg button { position: relative; z-index: 1; padding: .55em 0; border-radius: 99em; font: 600 .8em/1 var(--font-ui); color: var(--paper-ink); transition: color .2s ease, transform .3s var(--spring); }
.seg button[aria-pressed="true"] { color: var(--paper); }
.seg button:active { transform: scale(.94); }
.kdev[data-mode="read"] .seg { --i: 0; }
.kdev[data-mode="listen"] .seg { --i: 1; }
.kdev[data-mode="both"] .seg { --i: 2; }

/* what each mode shows */
.kdev[data-mode="listen"] .k-text { display: none; }
.kdev[data-mode="listen"] .k-cover { display: flex; flex: 1; align-items: center; }
.kdev[data-mode="listen"] .k-player, .kdev[data-mode="both"] .k-player { display: flex; }
.kdev .k-text, .kdev .k-cover, .kdev .k-player { animation: kfade .45s var(--ease-out); }
@keyframes kfade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- annotations ---------- */
.note-pin {
  display: inline-flex; align-items: center; gap: 8px; max-width: 240px;
  padding: 8px 12px 9px; border-radius: 4px 14px 14px 14px; background: #fff; box-shadow: var(--shadow-floating);
  font: 500 13px/1.4 var(--font-ui);
}
.note-pin::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--c, var(--violet)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c, var(--violet)) 22%, transparent); }
.note-pin.warn { --c: var(--warn); }
.note-pin.good { --c: var(--ok); }

/* ---------- checkout: today vs concept ---------- */
.checkout { position: relative; display: grid; width: min(420px, 100%); }
.checkout > .co { grid-area: 1 / 1; }
.co { background: #fff; border-radius: 18px; box-shadow: var(--shadow-floating); padding: 20px; font-size: 13.5px; line-height: 1.45; }
.co h4 { margin: 0; font: 600 16px/1.3 var(--font-ui); }
.co .by { color: var(--ink-faint); font-size: 12.5px; margin-top: 2px; }
.co-head { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.co-head .cover { width: 46px; flex: none; font-size: 6px; padding: 4px; }

.co-old .blk { transition: opacity .35s ease, transform .6s var(--ease-out); }
.co-old .row { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 9px 0; border-top: 1px solid #EFEFEF; }
.co-old .price { font-weight: 600; }
.co-old .tiny { font-size: 11px; color: var(--ink-faint); }
.co-old .fake-btn { display: block; text-align: center; padding: 9px; border-radius: 99px; font-weight: 600; font-size: 12.5px; margin-top: 8px; }
.co-old .b1 { background: #FFD814; }
.co-old .b2 { background: #FFA41C; }
.co-old .b3 { background: #F0F2F2; border: 1px solid #D5D9D9; }
.co-old .upsell { margin-top: 10px; padding: 10px; border-radius: 8px; background: #F3F7FF; border: 1px dashed #A9C1EE; font-size: 12px; }
.co-old .check { display: flex; gap: 8px; align-items: flex-start; font-size: 12px; color: var(--ink-soft); }
.co-old .check i { flex: none; width: 13px; height: 13px; border: 1.5px solid #9A9A9A; border-radius: 3px; margin-top: 2px; }
.co-old .confuse { position: absolute; z-index: 2; }

.co-new { opacity: 0; pointer-events: none; }
.co-new .blk { opacity: 0; transform: translateY(14px) scale(.98); transition: opacity .4s ease, transform .7s var(--spring); }
.opt { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; border: 1.5px solid #E6E6E6; margin-top: 8px; }
.opt .r { width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid #B5B5B5; flex: none; }
.opt .t { flex: 1; }
.opt .t b { display: block; font-size: 14px; }
.opt .t span { color: var(--ink-faint); font-size: 12px; }
.opt .p { font-weight: 600; }
.opt.on { border-color: var(--ink); background: #FAFAFA; }
.opt.on .r { border: 5px solid var(--ink); }
.opt .best { font: 600 10px/1 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; padding: 4px 6px; border-radius: 4px; background: var(--hl); margin-left: 6px; vertical-align: 2px; }
.gets { list-style: none; margin: 14px 0 0; padding: 12px 14px; border-radius: 12px; background: var(--sky-bg); display: grid; gap: 6px; font-size: 12.5px; }
.gets li { display: flex; gap: 8px; align-items: center; }
.gets li::before { content: ""; width: 14px; height: 14px; flex: none; border-radius: 50%; background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 9px no-repeat; }
.own { margin-top: 10px; font-size: 12px; color: var(--ink-soft); }
.own a { color: var(--sky); font-weight: 600; text-decoration: none; }
.buy { display: block; width: 100%; margin-top: 14px; padding: 13px; border-radius: 12px; background: var(--ink); color: #fff; font-weight: 600; font-size: 14px; text-align: center; }
.illus { margin-top: 8px; text-align: center; font: 400 10.5px/1.3 var(--font-mono); color: var(--ink-faint); }

.checkout.is-new .co-old { pointer-events: none; }
.checkout.is-new .co-old .blk { opacity: 0; transform: translate(var(--wx, 0), -18px) rotate(var(--wr, 0deg)) scale(.7); }
.checkout.is-new .co-new { opacity: 1; pointer-events: auto; }
.checkout.is-new .co-new .blk { opacity: 1; transform: none; }
.checkout.is-new .co-old .blk:nth-child(2) { transition-delay: .04s; } .checkout.is-new .co-old .blk:nth-child(3) { transition-delay: .08s; }
.checkout.is-new .co-old .blk:nth-child(4) { transition-delay: .12s; } .checkout.is-new .co-old .blk:nth-child(5) { transition-delay: .16s; }
.checkout.is-new .co-new .blk:nth-child(1) { transition-delay: .35s; } .checkout.is-new .co-new .blk:nth-child(2) { transition-delay: .43s; }
.checkout.is-new .co-new .blk:nth-child(3) { transition-delay: .51s; } .checkout.is-new .co-new .blk:nth-child(4) { transition-delay: .59s; }
.checkout.is-new .co-new .blk:nth-child(5) { transition-delay: .67s; } .checkout.is-new .co-new .blk:nth-child(6) { transition-delay: .75s; }
.co-new { transition: opacity .01s linear .3s; }

.wand {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 10px;
  background: var(--violet); color: #fff; font: 600 14px/1 var(--font-ui);
  box-shadow: 0 6px 16px -6px rgba(151,71,255,.6);
  transition: transform .35s var(--spring), background-color .15s ease;
}
.wand:hover { background: var(--violet-deep); transform: translateY(-1px) rotate(-1deg); }
.wand:active { transform: scale(.95); }
.wand svg { width: 18px; height: 18px; }
.spark { position: fixed; z-index: 80; width: 10px; height: 10px; pointer-events: none; }

/* ---------- film / storyboard ---------- */
.film { position: relative; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; background: #141414; box-shadow: var(--shadow-device); }
.film video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: none; }
.film.has-video video { display: block; }
.film.has-video .board, .film.has-video .tag { display: none; }
/* the Runway export has 100px black bars on each side (1080×720 picture in a 1280×720 file): frame the picture, not the bars */
.film.has-video { aspect-ratio: 3 / 2 !important; }
.film.has-video video { left: -9.26%; width: 118.52%; object-fit: fill; }
.board { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.scene { position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; padding: clamp(12px, 2vw, 24px); color: #fff; overflow: hidden; }
.scene .art { position: absolute; inset: 0; }
.scene .t { position: relative; font: 500 11px/1 var(--font-mono); letter-spacing: .06em; opacity: .75; }
.scene .h { position: relative; font: 600 clamp(14px, 1.6vw, 20px)/1.2 var(--font-ui); }
.scene .m { position: relative; align-self: flex-start; padding: 5px 10px; border-radius: 99px; background: #fff; color: var(--ink); font: 600 12px/1 var(--font-ui); }
.film .tag { position: absolute; left: 14px; top: 14px; z-index: 2; padding: 5px 9px; border-radius: 6px; background: rgba(0,0,0,.55); color: #fff; font: 500 11px/1 var(--font-mono); letter-spacing: .04em; }

/* ---------- stats ---------- */
.stat-num { font-family: var(--font-display); font-weight: 900; font-size: clamp(64px, 7vw, 112px); line-height: .85; letter-spacing: -0.02em; }
.stat-txt { margin-top: 10px; font-size: 15px; line-height: 1.5; color: var(--ink-soft); }
.src { display: inline-flex; gap: 4px; margin-top: 10px; font: 500 12px/1 var(--font-mono); color: var(--sky); text-decoration: none; }
.src:hover { text-decoration: underline; }

/* ---------- footer ---------- */
.disclaimer { font: 400 12px/1.6 var(--font-mono); color: var(--ink-faint); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
}
@media (max-width: 640px) {
  .pill .crumb { display: none; }
  .compare span { display: none; }
}

/* ---------- contact menu (same as the homepage) ---------- */
.contact { position: relative; pointer-events: auto; }
.contact .btn-violet .chev { transition: transform .35s var(--spring); }
.contact .btn-violet[aria-expanded="true"] .chev { transform: rotate(180deg); }
.menu {
  position: absolute; right: 0; top: calc(100% + 10px); min-width: 248px; padding: 8px;
  background: #1E1E1E; color: #fff; border-radius: 14px; box-shadow: var(--shadow-dark);
  opacity: 0; transform: translateY(-6px) scale(.97); transform-origin: top right; pointer-events: none;
  transition: opacity .18s ease, transform .35s var(--spring);
}
.menu.open { opacity: 1; transform: none; pointer-events: auto; }
.menu a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 8px; font-size: 14px; line-height: 1.3; text-decoration: none; color: #fff; transition: background-color .12s ease, transform .3s var(--spring); }
.menu a:hover, .menu a:focus-visible { background: var(--violet); outline: none; }
.menu a:active { transform: scale(.98); }
.menu .meta { margin-left: auto; font: 400 11px/1 var(--font-mono); color: rgba(255,255,255,.55); }
.menu a:hover .meta, .menu a:focus-visible .meta { color: rgba(255,255,255,.85); }
.menu hr { border: 0; height: 1px; background: rgba(255,255,255,.12); margin: 6px 4px; }

/* ---------- top-right pill: avatar, clock, contact (matches the homepage) ---------- */
.tr-pill { pointer-events: auto; display: flex; align-items: center; gap: 8px; padding: 5px 5px 5px 8px; background: #fff; border-radius: 12px; box-shadow: var(--shadow-floating); }
.avatar { width: 28px; height: 28px; border-radius: 999px; background: var(--violet); color: #fff; display: grid; place-items: center; font: 500 15px/1 var(--font-ui); }
.clock { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 10px 0 8px; border: 1px solid #E6E6E6; border-radius: 8px; font-family: var(--font-mono); font-size: 13px; letter-spacing: .02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.clock .tz { font-size: 10px; color: var(--ink-faint); letter-spacing: .06em; }
.clock .ap { font-size: 11px; }
.clock .colon { animation: blink 2s steps(1) infinite; }
@keyframes blink { 50% { opacity: .25; } }
.clock .sky { width: 18px; height: 18px; display: grid; place-items: center; }
.tr-pill .btn-violet { height: 34px; box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 4px 12px -4px rgba(151,71,255,.55); }
@media (max-width: 640px) { .clock .tz, .clock .sky { display: none; } .clock { height: 32px; padding: 0 8px; font-size: 12px; } .avatar { width: 26px; height: 26px; font-size: 14px; } }
@media (max-width: 480px) { .tr-pill .clock { display: none; } }

/* next project: a separate band after the case study, so it never reads as part of it */
.next-band { margin-top: clamp(56px, 8vw, 96px); background: #fff; border-top: 1px solid #E6E6E4; }
.next-band a { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: clamp(28px, 4vw, 44px); color: var(--ink); text-decoration: none; }
.next-band a:focus-visible { outline: 2px solid var(--select); outline-offset: -4px; border-radius: 8px; }
.nb-txt { display: grid; gap: 8px; min-width: 0; }
.nb-k { font: 500 12px/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-faint); }
.nb-t { font: 600 clamp(22px, 2.4vw, 32px)/1.15 var(--font-ui); letter-spacing: -.02em; }
.nb-go { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--ink); color: #fff; transition: transform .45s var(--spring), background-color .2s ease; }
.nb-go svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.next-band a:hover .nb-go { transform: translateX(6px); background: var(--violet); }
.next-band a:active .nb-go { transform: translateX(2px) scale(.94); }

/* next project, treatment B: a dark band with a peek at the next project's work */
.next-band .nb-img { display: none; }
.next-band.b { background: #1E1E1E; border-top: 0; color: #fff; }
.next-band.b a { color: #fff; padding-block: clamp(36px, 5vw, 64px); }
.next-band.b .nb-k { color: rgba(255,255,255,.55); }
.next-band.b .nb-t { font-size: clamp(26px, 3vw, 42px); }
.next-band.b .nb-img { display: block; flex: none; width: clamp(200px, 26vw, 360px); aspect-ratio: 16 / 10; margin-left: auto; border-radius: 14px; overflow: hidden; background: #2A2A2A; box-shadow: 0 18px 40px -18px rgba(0,0,0,.6); }
.next-band.b .nb-img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--spring); }
.next-band.b a:hover .nb-img img { transform: scale(1.05); }
.next-band.b .nb-go { background: #fff; color: #1E1E1E; }
.next-band.b a:hover .nb-go { background: var(--violet); color: #fff; }
@media (max-width: 640px) {
  .next-band.b a { flex-wrap: wrap; }
  .next-band.b .nb-img { order: -1; width: 100%; margin: 0 0 4px; }
}

/* ===== next project: a sticky note, centered as the page's sign-off (like the homepage's closing note) ===== */
.nx { display: flex; justify-content: center; padding: clamp(72px, 10vw, 128px) 0 clamp(80px, 12vw, 150px); }
.nx > a { display: inline-flex; color: var(--ink); text-decoration: none; }
.nx a:focus-visible { outline: 2px solid var(--select); outline-offset: 6px; border-radius: 6px; }
.nx .nw { white-space: nowrap; }
.nx-k { font: 500 12px/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: rgba(30,30,30,.55); }
.nx-t { font: 600 clamp(22px, 2.2vw, 30px)/1.15 var(--font-ui); letter-spacing: -.02em; }

/* 1 · sticky note */
.nx1 { align-items: flex-end; gap: 6px; margin-left: -116px; }   /* the arrow hangs off to the left so the note itself sits centered */
.nx1-arrow { width: 110px; height: 64px; flex: none; margin-bottom: 38px; overflow: visible; }
.nx1-arrow path { fill: none; stroke: #1E1E1E; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 200; stroke-dashoffset: 200; transition: stroke-dashoffset 1s ease .2s; }
.nx.in .nx1-arrow path { stroke-dashoffset: 0; }
.nx1-note { display: grid; gap: 12px; width: min(420px, 78vw); padding: 22px 22px 26px; background: #FFE58A; border-radius: 3px; transform: rotate(-2.5deg);
  box-shadow: 0 1px 1px rgba(80,60,0,.08), 0 14px 22px -8px rgba(120,90,0,.3); transition: transform .5s var(--spring), box-shadow .3s ease; }
.nx1-go { justify-self: start; font: 500 15px/1.4 var(--font-ui); color: var(--ink); text-decoration: underline wavy transparent; text-decoration-thickness: 1.5px; text-underline-offset: 5px; transition: text-decoration-color .2s ease; }
.nx1:hover .nx1-go, .nx1:focus-visible .nx1-go { text-decoration-color: var(--violet); }
.nx1:hover .nx1-note { transform: rotate(2deg); box-shadow: 0 1px 1px rgba(80,60,0,.08), 0 20px 28px -10px rgba(120,90,0,.36); }   /* the whole note tips a little further, no lift */
.nx1:active .nx1-note { transform: rotate(-2.5deg) scale(.985); }

@media (max-width: 640px) { .nx1-arrow { display: none; } .nx1 { margin-left: 0; } }
@media (prefers-reduced-motion: reduce) { .nx1-arrow path { transition: none; } }

/* no lonely words: headings break into even lines, paragraphs avoid a single word on the last line */
h1, h2, h3, .display, .proj-title, .big, blockquote, .nb-t, .nx-t { text-wrap: balance; }
p, li, dd, figcaption { text-wrap: pretty; }
