/* From Russia With Love for Capitalism — one-page book site
   Red, gold and black from his cover and banners, pushed vivid: crimson fields, gold foil, night black. */

/* ---------- fonts ---------- */
@font-face {
  font-family: "Sofia Sans Extra Condensed";
  src: url("/fonts/sofia-sans-extra-condensed-normal-600-900-latin.woff2") format("woff2");
  font-weight: 600 900; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+2605, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Sofia Sans Extra Condensed";
  src: url("/fonts/sofia-sans-extra-condensed-normal-600-900-cyrillic.woff2") format("woff2");
  font-weight: 600 900; font-style: normal; font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Sofia Sans";
  src: url("/fonts/sofia-sans-normal-300-800-latin.woff2") format("woff2");
  font-weight: 300 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Sofia Sans Semi Condensed";
  src: url("/fonts/sofia-sans-semi-condensed-normal-400-700-latin.woff2") format("woff2");
  font-weight: 400 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Forum";
  src: url("/fonts/forum-normal-400-latin.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "PT Serif";
  src: url("/fonts/pt-serif-italic-400-latin.woff2") format("woff2");
  font-weight: 400; font-style: italic; font-display: swap;
}

/* ---------- tokens ---------- */
:root {
  --night: #0a0606;
  --coal: #150b0b;
  --coal-2: #1d0f0e;
  --crimson: #e3232c;
  --kremlin: #b0121b;
  --blood: #7a0a11;
  --ember: #ff6b2c;
  --gold: #f7be45;
  --gold-hi: #ffe3a0;
  --cream: #fff5e6;
  --cream-2: #e6d8c6;
  --cream-3: #bfae98;
  --line: rgba(255, 214, 140, .14);
  --line-2: rgba(255, 214, 140, .28);

  --foil: linear-gradient(100deg, #fff0bf 0%, #f7be45 30%, #e38b1f 56%, #ffd777 80%, #fff3c9 100%);
  --sunrise: linear-gradient(100deg, #7a0a11 0%, #e3232c 34%, #ff6b2c 66%, #f7be45 100%);

  --f-display: "Sofia Sans Extra Condensed", "Arial Narrow", Impact, sans-serif;
  --f-body: "Sofia Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-ui: "Sofia Sans Semi Condensed", "Sofia Sans", system-ui, sans-serif;
  --f-accent: "PT Serif", Georgia, "Times New Roman", serif;
  --f-inscr: "Forum", "Times New Roman", serif;

  --wrap: 1240px;
  --gutter: clamp(20px, 5vw, 64px);
  --hdr: 76px;
  --pad-y: clamp(88px, 10vw, 150px);
  --r-lg: 28px;
  --r-md: 20px;
  --r-sm: 14px;
}
@media (max-width: 1023px) { :root { --hdr: 64px; } }

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scrollbar-color: var(--crimson) var(--night);
  scrollbar-width: thin;
  background: var(--night);
}
html.menu-open { overflow: hidden; }
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--night); }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, var(--crimson), var(--gold)); border: 3px solid var(--night); border-radius: 12px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }
::-webkit-scrollbar-corner { background: var(--night); }
::selection { background: var(--crimson); color: var(--cream); }

body {
  margin: 0;
  background: var(--night);
  color: var(--cream-2);
  font: 400 18px/1.62 var(--f-body);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: var(--gold-hi); text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--cream); }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; font-weight: 400; }
cite { font-style: italic; }
strong { font-weight: 700; color: var(--cream); }
[id] { scroll-margin-top: calc(var(--hdr) + 12px); }
:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 3px; border-radius: 6px; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--gold); color: var(--night); padding: 12px 18px; border-radius: 999px;
  font: 700 14px/1 var(--f-ui); letter-spacing: .1em; text-transform: uppercase; text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.band { padding-block: var(--pad-y); position: relative; }
.red { color: var(--crimson); text-shadow: 0 0 46px rgba(227, 35, 44, .55); }
.stars { color: var(--gold); letter-spacing: .3em; }
.nowrap { white-space: nowrap; }
.foil {
  background: var(--foil); -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
}

/* ---------- type ---------- */
.tag {
  display: inline-flex; align-items: center; gap: 10px;
  margin: 0 0 24px; padding: 8px 15px 8px 12px;
  border-radius: 999px;
  font: 700 12.5px/1 var(--f-ui); letter-spacing: .2em; text-transform: uppercase;
  color: var(--gold-hi);
  background: rgba(247, 190, 69, .09);
  border: 1px solid rgba(247, 190, 69, .3);
  align-self: flex-start; justify-self: start;
}
.tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--crimson); box-shadow: 0 0 0 3px rgba(227, 35, 44, .28); }
.tag--light { color: var(--cream); background: rgba(255, 245, 230, .12); border-color: rgba(255, 245, 230, .38); }
.tag--light::before { background: var(--night); box-shadow: 0 0 0 3px rgba(10, 6, 6, .2); }
.tag--glass { color: var(--cream); background: rgba(10, 6, 6, .38); border-color: rgba(255, 245, 230, .3); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }

.h2 { margin: 0 0 28px; }
.h2 > span {
  display: block; text-wrap: balance;
  font: 900 clamp(48px, 6.4vw, 98px)/.86 var(--f-display);
  text-transform: uppercase; letter-spacing: .004em;
  color: var(--cream);
}
.h2 > em {
  display: block; width: fit-content; max-width: 100%; text-wrap: balance;
  margin-top: .16em; padding-bottom: .08em;
  font: italic 400 clamp(28px, 3.2vw, 48px)/1.1 var(--f-accent);
  background: var(--foil); -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
}
.h3 {
  font: 700 13px/1.2 var(--f-ui); letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 18px;
}
.lede { font-size: clamp(19px, 1.55vw, 22.5px); line-height: 1.5; color: var(--cream); font-weight: 500; }

/* ---------- buttons ---------- */
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 54px; padding: 0 28px;
  font: 700 14.5px/1 var(--f-ui); letter-spacing: .1em; text-transform: uppercase;
  border-radius: 999px; border: 1px solid transparent;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .25s ease, box-shadow .25s ease, background-color .25s ease, color .25s ease, border-color .25s ease;
}
.btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .5) 50%, transparent 70%);
  transform: translateX(-130%);
  transition: transform .8s ease;
}
.btn:hover::after { transform: translateX(130%); }
.btn:hover { transform: translateY(-2px); }
.btn--gold {
  background: var(--foil); color: #1a0b05;
  box-shadow: 0 12px 34px -12px rgba(247, 190, 69, .8), inset 0 0 0 1px rgba(255, 246, 214, .55);
}
.btn--gold:hover { color: #1a0b05; box-shadow: 0 18px 44px -12px rgba(247, 190, 69, .95), inset 0 0 0 1px rgba(255, 246, 214, .7); }
.btn--ghost {
  color: var(--cream); background: rgba(255, 245, 230, .06); border-color: rgba(255, 230, 190, .3);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.btn--ghost:hover { color: var(--gold-hi); border-color: var(--gold); background: rgba(247, 190, 69, .1); }
.btn--cream { background: var(--cream); color: #8e0b12; box-shadow: 0 14px 34px -14px rgba(0, 0, 0, .6); }
.btn--cream:hover { color: #8e0b12; background: #fff; }
.btn--dark { background: #170808; color: var(--gold-hi); box-shadow: 0 14px 34px -14px rgba(60, 20, 0, .6); }
.btn--dark:hover { color: var(--gold-hi); background: #000; }
.btn:disabled { opacity: .7; cursor: progress; transform: none; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

/* the live "coming soon" pill */
.status {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 14px 8px 12px; border-radius: 999px;
  font: 700 12px/1 var(--f-ui); letter-spacing: .18em; text-transform: uppercase;
  color: var(--cream);
  background: rgba(227, 35, 44, .2);
  border: 1px solid rgba(255, 110, 100, .5);
  white-space: nowrap;
}
.status i { position: relative; width: 8px; height: 8px; border-radius: 50%; background: #ff4b4b; flex: 0 0 auto; }
.status i::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid #ff4b4b; animation: ping 2.2s cubic-bezier(0, 0, .2, 1) infinite; }
@keyframes ping { from { transform: scale(.45); opacity: .95; } to { transform: scale(1.9); opacity: 0; } }
.status--lg { font-size: 14px; padding: 11px 18px 11px 14px; }

/* ---------- header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  background-color: var(--night);
  border-bottom: 0;
  box-shadow: none;
  transition: background-color .3s ease;
}
.site-header.at-top {
  background-color: transparent;
  background-image: linear-gradient(180deg, rgba(10, 6, 6, .78), rgba(10, 6, 6, 0));
}
html.menu-open .site-header { background-color: var(--night); background-image: none; }
.site-header__inner {
  width: min(100% - 2 * var(--gutter), 1320px); margin-inline: auto;
  height: var(--hdr);
  display: flex; align-items: center; gap: 18px;
}
.site-header__progress {
  position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: var(--sunrise);
  transform: scaleX(var(--progress, 0)); transform-origin: left;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--cream); text-decoration: none; min-width: 0; }
.brand:hover { color: var(--cream); }
.brand__star { color: var(--gold); font-size: 16px; text-shadow: 0 0 14px rgba(247, 190, 69, .7); }
.brand__name {
  font: 800 20px/1 var(--f-display); letter-spacing: .04em; text-transform: uppercase;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 26px; }
.site-nav__list { display: flex; align-items: center; gap: 24px; list-style: none; margin: 0; padding: 0; }
.site-nav__list a {
  font: 600 14px/1 var(--f-ui); letter-spacing: .1em; text-transform: uppercase; white-space: nowrap;
  color: var(--cream); text-decoration: none; padding: 9px 0; position: relative;
}
.site-nav__list a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px; background: var(--sunrise);
  transform: scaleX(0); transform-origin: left; transition: transform .3s ease;
}
.site-nav__list a:hover { color: var(--gold-hi); }
.site-nav__list a:hover::after { transform: scaleX(1); }
.site-nav__cta { min-height: 44px; padding: 0 22px; font-size: 13px; }
.site-nav__phone { display: none; }
.menu-toggle { display: none; }

@media (max-width: 1439px) and (min-width: 1024px) {
  .brand__name { font-size: 17px; line-height: 1.02; }
  .brand__l1, .brand__l2 { display: block; }
}
@media (max-width: 1359px) and (min-width: 1024px) {
  .site-nav, .site-nav__list { gap: 20px; }
}
@media (max-width: 1199px) and (min-width: 1024px) {
  .brand__name { font-size: 16px; }
  .site-nav { gap: 16px; }
  .site-nav__list { gap: 13px; }
  .site-nav__list a { font-size: 12.5px; letter-spacing: .07em; }
  .site-nav__cta { min-height: 40px; padding: 0 16px; font-size: 12px; }
}
@media (max-width: 1023px) {
  .site-header.at-top { background-color: var(--night); background-image: none; border-bottom-color: var(--line); }
  .brand__name { font-size: 17px; }
  .menu-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    margin-left: auto; flex: 0 0 auto;
    width: 46px; height: 46px; padding: 0;
    background: rgba(255, 245, 230, .05); border: 1px solid var(--line-2); border-radius: 50%; color: var(--gold-hi); cursor: pointer;
  }
  .menu-toggle__bars { position: relative; width: 18px; height: 12px; display: block; }
  .menu-toggle__bars i {
    position: absolute; left: 0; width: 100%; height: 2px; background: currentColor; border-radius: 2px;
    transition: transform .25s ease, opacity .2s ease, top .25s ease;
  }
  .menu-toggle__bars i:nth-child(1) { top: 0; }
  .menu-toggle__bars i:nth-child(2) { top: 5px; }
  .menu-toggle__bars i:nth-child(3) { top: 10px; }
  .menu-toggle[aria-expanded="true"] .menu-toggle__bars i:nth-child(1) { top: 5px; transform: rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .menu-toggle__bars i:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] .menu-toggle__bars i:nth-child(3) { top: 5px; transform: rotate(-45deg); }

  .site-nav {
    display: none;
    position: fixed; top: var(--hdr); left: 0; right: 0; bottom: 0; z-index: 59;
    margin: 0; padding: 14px var(--gutter) 40px;
    flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 28px;
    background: var(--night);
    border-top: 1px solid var(--line);
    overflow-y: auto;
  }
  .site-nav.is-open { display: flex; }
  .site-nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav__list a {
    display: block; padding: 16px 0;
    font: 900 40px/1 var(--f-display); letter-spacing: .01em; text-transform: uppercase;
    border-bottom: 1px solid var(--line);
  }
  .site-nav__list a::after { display: none; }
  .site-nav__cta { min-height: 56px; align-self: flex-start; padding: 0 32px; font-size: 14px; }
  .site-nav__phone { display: block; margin: 0; font: 500 17px/1.4 var(--f-body); color: var(--cream-2); }
}
@media (max-width: 600px) { .brand__name { font-size: 15.5px; } }

/* ---------- hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--night);
  min-height: clamp(760px, 100svh, 1060px);
  display: grid; align-items: center;
  padding-top: var(--hdr);
}
.hero__bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hero__still, .hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__still { object-fit: cover; object-position: 52% 50%; transform: scale(1.036); filter: saturate(1.12) contrast(1.04); }
.hero__canvas { opacity: 0; transition: opacity 1.4s ease; }
.hero__bg.is-live .hero__canvas { opacity: 1; }
.hero__shade {
  position: absolute; inset: 0;
  background:
    radial-gradient(46% 58% at 21% 56%, rgba(10, 6, 6, .58), rgba(10, 6, 6, 0) 100%),
    linear-gradient(90deg, rgba(10, 6, 6, .8) 0%, rgba(10, 6, 6, .52) 22%, rgba(10, 6, 6, .14) 42%, rgba(10, 6, 6, 0) 56%),
    linear-gradient(0deg, rgba(10, 6, 6, .9) 0%, rgba(10, 6, 6, 0) 22%);
}
.hero__inner {
  width: min(100% - 2 * var(--gutter), 1320px); margin-inline: auto;
  display: grid; grid-template-columns: minmax(0, 1.14fr) minmax(0, .86fr);
  align-items: center; gap: clamp(24px, 4vw, 64px);
  padding-block: clamp(40px, 6vh, 80px) clamp(70px, 9vh, 110px);
}
.hero__copy { max-width: 680px; }
.hero__copy .hero__byline, .hero__motto, .hero__sub, .hero__lead, .hero__copy .form-note { text-shadow: 0 1px 16px rgba(0, 0, 0, .8), 0 0 2px rgba(0, 0, 0, .55); }
.hero__kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 0 0 22px; }
.hero__byline { font: 600 15px/1.3 var(--f-ui); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-hi); }
.hero__title {
  font: 900 clamp(58px, 8.5vw, 138px)/.85 var(--f-display);
  text-transform: uppercase; letter-spacing: .003em;
  color: var(--cream);
  margin: 0;
  text-shadow: 0 4px 40px rgba(0, 0, 0, .5);
}
.hero__line { display: block; }
.hero__title .red {
  -webkit-text-stroke: clamp(2px, .3vw, 4px) var(--cream);
  paint-order: stroke fill;
  text-shadow: none;
}
.hero__motto {
  display: flex; align-items: center; gap: 16px;
  font: 400 clamp(14px, 1.15vw, 17px)/1.2 var(--f-inscr); letter-spacing: .3em; text-transform: uppercase;
  color: var(--gold-hi);
  margin: 26px 0 18px;
}
.hero__motto::after { content: ""; flex: 0 1 120px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--gold), transparent); }
.hero__sub { font: italic 400 clamp(22px, 2vw, 29px)/1.3 var(--f-accent); color: var(--cream); margin: 0 0 30px; max-width: 30ch; }
.hero__lead { font: 700 15px/1.4 var(--f-ui); letter-spacing: .08em; text-transform: uppercase; color: var(--cream); margin: 0 0 12px; }
.hero__next {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 10px;
  font: 700 12px/1 var(--f-ui); letter-spacing: .22em; text-transform: uppercase; color: var(--cream); text-decoration: none;
  text-shadow: 0 1px 10px rgba(0, 0, 0, .8);
}
.hero__next:hover { color: var(--gold-hi); }
.hero__next-arrow {
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid rgba(255, 245, 230, .45); font-size: 14px;
  animation: nudge 1.8s ease-in-out infinite alternate;
}
@keyframes nudge { from { transform: translateY(-2px); } to { transform: translateY(4px); } }

/* the floating book */
.hero__book {
  --bw: clamp(250px, 28vw, 420px);
  position: relative; display: grid; place-items: center;
  padding-block: 20px 60px;
}
.hero__book::before {
  content: ""; position: absolute; left: 50%; top: 46%; width: calc(var(--bw) * 2.05); aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(255, 200, 90, .4), rgba(255, 107, 44, .16) 45%, rgba(227, 35, 44, .08) 62%, rgba(227, 35, 44, 0));
  pointer-events: none;
}
.book-float { margin: 0; position: relative; perspective: 1700px; perspective-origin: 50% 40%; }
.book {
  --bh: calc(var(--bw) * 1.31656); /* the final cover: 1439 / 1093 */
  --bt: calc(var(--bw) * .108);
  --ry: 27deg; --rx: -4deg; --rz: 0deg; --fy: 0px;
  position: relative; width: var(--bw); height: var(--bh);
  transform-style: preserve-3d;
  transform: translateY(var(--fy)) rotateX(var(--rx)) rotateY(var(--ry)) rotateZ(var(--rz));
  will-change: transform;
}
.book__face { position: absolute; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.book__front {
  inset: 0; transform: translateZ(calc(var(--bt) / 2));
  border-radius: 2px 6px 6px 2px; overflow: hidden;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .35);
  background: #1a0c0a;
}
.book__front img { width: 100%; height: 100%; object-fit: cover; }
.book__front::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, .42) 0%, rgba(0, 0, 0, .1) 2.4%, rgba(255, 240, 210, .14) 3.4%, rgba(0, 0, 0, 0) 6%),
    linear-gradient(115deg, rgba(255, 238, 205, 0) 38%, rgba(255, 238, 205, .15) 48%, rgba(255, 238, 205, 0) 58%);
  background-size: 100% 100%, 260% 100%;
  background-position: 0 0, var(--sheen, 70%) 0;
}
.book__spine {
  top: 0; left: calc(50% - var(--bt) / 2);
  width: var(--bt); height: var(--bh);
  transform: rotateY(-90deg) translateZ(calc(var(--bw) / 2));
  background: linear-gradient(90deg, #170504 0%, #5a0f12 16%, #8a141b 48%, #520d10 80%, #140403 100%);
  display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  padding: calc(var(--bt) * .55) 0;
  border-radius: 3px 0 0 3px;
}
.book__spine-stars { writing-mode: vertical-rl; font: 400 calc(var(--bt) * .26)/1 var(--f-body); color: var(--gold); letter-spacing: .15em; }
.book__spine-title {
  writing-mode: vertical-rl;
  font: 800 calc(var(--bt) * .44)/1 var(--f-display); letter-spacing: .07em; text-transform: uppercase;
  color: var(--gold-hi); white-space: nowrap;
}
.book__spine-author {
  writing-mode: vertical-rl;
  font: 400 calc(var(--bt) * .32)/1 var(--f-inscr); letter-spacing: .2em; text-transform: uppercase;
  color: var(--cream); white-space: nowrap;
}
.book__pages {
  top: 4px; left: calc(50% - (var(--bt) - 6px) / 2);
  width: calc(var(--bt) - 6px); height: calc(var(--bh) - 8px);
  transform: rotateY(90deg) translateZ(calc(var(--bw) / 2 - 4px));
  background:
    linear-gradient(90deg, rgba(60, 30, 10, .25), rgba(60, 30, 10, 0) 30%, rgba(60, 30, 10, 0) 70%, rgba(60, 30, 10, .25)),
    repeating-linear-gradient(90deg, #f3e8d2 0 1px, #dccaa8 1px 2px);
}
.book__top, .book__bottom {
  left: 4px; top: calc(50% - (var(--bt) - 6px) / 2);
  width: calc(var(--bw) - 8px); height: calc(var(--bt) - 6px);
  background: repeating-linear-gradient(0deg, #f1e5cd 0 1px, #d8c5a2 1px 2px);
}
.book__top { transform: rotateX(90deg) translateZ(calc(var(--bh) / 2 - 4px)); }
.book__bottom { transform: rotateX(-90deg) translateZ(calc(var(--bh) / 2 - 4px)); }
.book__back {
  inset: 0; transform: rotateY(180deg) translateZ(calc(var(--bt) / 2));
  background: linear-gradient(135deg, #6a1013, #240505);
  border-radius: 6px 2px 2px 6px;
}
.book-shadow {
  position: absolute; left: 50%; bottom: -46px;
  width: calc(var(--bw) * 1.15); height: calc(var(--bw) * .17);
  transform: translateX(-46%) scale(var(--ss, 1));
  background: radial-gradient(closest-side, rgba(0, 0, 0, .8), rgba(0, 0, 0, 0));
  opacity: var(--so, .85);
  pointer-events: none;
}

/* ---------- the letter flip (Cyrillic ↔ Latin) ---------- */
.flip { display: inline-block; white-space: nowrap; }
.flip__word { display: inline-flex; }
.fl {
  position: relative; display: inline-block;
  transition: width .7s cubic-bezier(.65, 0, .35, 1);
  text-align: center;
  perspective: 700px;
}
.fl__in {
  display: block; position: relative;
  transform-style: preserve-3d;
  transition: transform .75s cubic-bezier(.55, -0.25, .3, 1.35);
}
.fl__in::before, .fl__in::after {
  display: block; text-align: center;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
}
.fl__in::before { content: attr(data-a); }
.fl__in::after { content: attr(data-b); position: absolute; left: 50%; top: 0; transform: translateX(-50%) rotateX(180deg); white-space: nowrap; }
.fl.is-ru .fl__in { transform: rotateX(180deg); }
.flip.no-anim .fl, .flip.no-anim .fl__in { transition: none !important; }

/* ---------- ticker: a band of gold foil ---------- */
.ticker {
  position: relative; overflow: hidden;
  background: var(--foil);
  box-shadow: 0 0 50px -10px rgba(247, 190, 69, .5);
  z-index: 2;
}
.ticker__track { display: flex; width: max-content; animation: belt 105s linear infinite; }
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__copy { display: flex; flex-shrink: 0; margin: 0; padding: 0; list-style: none; }
.ticker__copy li {
  display: flex; align-items: center; white-space: nowrap;
  font: 900 clamp(21px, 2vw, 29px)/1 var(--f-display); letter-spacing: .06em; text-transform: uppercase;
  color: #1a0b05;
  padding-block: 19px;
}
.ticker__copy li::after { content: "★"; color: var(--kremlin); font-size: .66em; margin-inline: 30px; }
@keyframes belt { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- the book: a bento of facts ---------- */
.book-intro { background: var(--night); padding-bottom: calc(var(--pad-y) + 40px); }
.bento {
  display: grid;
  grid-template-columns: minmax(0, 1.36fr) minmax(0, .86fr) minmax(0, .86fr);
  grid-template-rows: auto auto auto;
  gap: 18px;
}
.tile {
  position: relative; overflow: hidden;
  border-radius: var(--r-lg);
  padding: clamp(24px, 2.6vw, 40px);
  background: var(--coal);
  border: 1px solid var(--line);
  margin: 0;
}
.tile--lead {
  grid-column: 1; grid-row: 1 / span 2;
  display: flex; flex-direction: column; justify-content: center;
  background:
    radial-gradient(110% 80% at 0% 0%, rgba(227, 35, 44, .22), rgba(227, 35, 44, 0) 60%),
    radial-gradient(80% 70% at 100% 100%, rgba(247, 190, 69, .1), rgba(247, 190, 69, 0) 60%),
    var(--coal);
}
.tile--lead p:not(.tag):not(.lede) { color: var(--cream-2); }
.tile--cover {
  grid-column: 2; grid-row: 1 / span 2;
  min-height: 440px; padding: 0;
  background:
    radial-gradient(70% 55% at 50% 42%, rgba(255, 200, 90, .45), rgba(255, 107, 44, .15) 55%, rgba(0, 0, 0, 0) 75%),
    linear-gradient(180deg, #2a0b0b, #120707);
}
.tile--cover img {
  position: absolute; inset: 30px 26px;
  width: calc(100% - 52px); height: calc(100% - 60px);
  object-fit: contain;
  filter: drop-shadow(0 26px 30px rgba(0, 0, 0, .6));
  transition: transform .5s ease;
}
.tile--cover:hover img { transform: translateY(-6px) rotate(-1deg); }
.tile--red {
  grid-column: 3; grid-row: 1;
  border: 0;
  background: radial-gradient(100% 90% at 100% 0%, rgba(255, 107, 44, .5), rgba(255, 107, 44, 0) 60%), linear-gradient(155deg, #e3232c 0%, #b0121b 55%, #7a0a11 100%);
  color: var(--cream);
}
.tile--status {
  grid-column: 3; grid-row: 2;
  background: radial-gradient(90% 80% at 100% 100%, rgba(227, 35, 44, .2), rgba(227, 35, 44, 0) 60%), var(--coal-2);
}
.tile--gold {
  grid-column: 1 / -1; grid-row: 3;
  border: 0;
  display: flex; align-items: center; justify-content: space-between; gap: 18px 40px; flex-wrap: wrap;
  padding-block: clamp(22px, 2.4vw, 32px);
  background: var(--foil);
  color: #1a0b05;
}
.tile__label { font: 700 12px/1.2 var(--f-ui); letter-spacing: .2em; text-transform: uppercase; margin: 0; color: var(--gold-hi); }
.tile--red .tile__label { color: var(--cream); }
.tile__big {
  font: 900 clamp(40px, 3.9vw, 60px)/.88 var(--f-display); text-transform: uppercase; letter-spacing: .005em;
  color: var(--cream); margin: 16px 0 12px;
}
.tile__text { font-size: 16.5px; line-height: 1.5; margin: 0; color: var(--cream-2); }
.tile--red .tile__text { color: var(--cream); }
.themes { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.themes li {
  padding: 7px 12px; border-radius: 999px;
  font: 700 11.5px/1.1 var(--f-ui); letter-spacing: .14em; text-transform: uppercase;
  color: var(--cream); background: rgba(10, 6, 6, .22); border: 1px solid rgba(255, 245, 230, .42);
}
.tile--status .tile__big { margin: 18px 0 16px; }
.tile__motto { font: 400 clamp(18px, 2vw, 28px)/1.2 var(--f-inscr); letter-spacing: .26em; text-transform: uppercase; text-wrap: balance; margin: 0; color: #1a0b05; }
.tile__motto span { color: var(--kremlin); letter-spacing: .3em; }
.tile--gold .tile__text { color: #3d1a06; font-weight: 600; }

/* ---------- three systems, one life: a crimson field ---------- */
.story {
  position: relative; z-index: 1;
  margin-top: -40px;
  border-radius: 44px 44px 0 0;
  background:
    radial-gradient(70% 55% at 88% 0%, rgba(255, 140, 60, .45), rgba(255, 140, 60, 0) 62%),
    radial-gradient(70% 70% at 0% 100%, rgba(50, 0, 4, .6), rgba(50, 0, 4, 0) 70%),
    linear-gradient(162deg, #cf1d25 0%, #a9111a 52%, #7a0a11 100%);
  color: var(--cream);
  overflow: hidden;
}
.story::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background: repeating-linear-gradient(115deg, rgba(255, 255, 255, .035) 0 2px, transparent 2px 22px);
}
.story .wrap { position: relative; }
.story__head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; column-gap: 40px; }
.story__head .tag { grid-column: 1 / -1; justify-self: start; }
.story__head .h2 { margin: 0; }
.story .h2 > em { background: none; color: var(--cream); -webkit-text-fill-color: currentColor; }
.story__intro { margin: 0; max-width: 30ch; text-align: right; text-wrap: balance; font: italic 400 19px/1.4 var(--f-accent); color: var(--cream); }
.acts { list-style: none; margin: clamp(40px, 6vw, 72px) 0 0; padding: 0; border-top: 1px solid rgba(255, 240, 225, .3); }
.act {
  display: grid; grid-template-columns: 70px minmax(0, 1.35fr) minmax(0, 1fr);
  align-items: center; gap: clamp(16px, 3vw, 48px);
  padding-block: clamp(22px, 3vw, 40px);
  border-bottom: 1px solid rgba(255, 240, 225, .3);
  cursor: pointer;
  transition: background-color .35s ease;
}
.act:hover { background-color: rgba(10, 6, 6, .12); }
.act__num { font: 400 18px/1 var(--f-inscr); letter-spacing: .24em; color: var(--cream); }
.act__word {
  font: 900 clamp(56px, 9.4vw, 140px)/.84 var(--f-display);
  text-transform: uppercase; letter-spacing: .006em;
  white-space: nowrap;
  margin: 0;
}
.act--1 .act__word { color: #1a0505; }
.act--2 .act__word { color: var(--cream); }
.act--3 .act__word { color: #ffcc55; text-shadow: 0 0 40px rgba(255, 190, 70, .45); }
.act__line { font: italic 400 clamp(22px, 2.2vw, 31px)/1.2 var(--f-accent); margin: 0; color: var(--cream); }
.act__note { font: 600 16px/1.45 var(--f-body); margin: 10px 0 0; max-width: 34ch; color: #ffece0; text-wrap: balance; }
.story__coda {
  margin: clamp(34px, 5vw, 56px) 0 0; text-wrap: balance;
  font: 400 clamp(16px, 1.3vw, 19px)/1.4 var(--f-inscr); letter-spacing: .24em; text-transform: uppercase; color: var(--cream);
}
.story__coda span { color: #ffcc55; }

/* ---------- inside the book: a contents page ---------- */
.contents {
  --ink: #1c0d08; --ink-2: #4a2a1f; --rubric: #b0121b; --rubric-2: #7a0a11;
  position: relative; z-index: 2;
  margin-top: -40px;
  border-radius: 44px 44px 0 0;
  color: var(--ink);
  background-color: #f6ecdb;
  background-image:
    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 .32 0 0 0 0 .18 0 0 0 0 .1 0 0 0 .06 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    radial-gradient(80% 50% at 50% 0%, rgba(255, 255, 255, .6), rgba(255, 255, 255, 0) 70%),
    radial-gradient(55% 45% at 100% 100%, rgba(176, 18, 27, .08), rgba(176, 18, 27, 0) 70%);
  box-shadow: 0 -24px 60px -30px rgba(0, 0, 0, .55);
}
.tag--ink { color: var(--rubric-2); background: rgba(176, 18, 27, .07); border-color: rgba(176, 18, 27, .32); }
.contents .h2 > span { color: var(--ink); }
.contents .h2 > em { background: none; color: var(--rubric); -webkit-text-fill-color: currentColor; }
.contents__head { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 48px; align-items: end; }
.contents__head .tag { grid-column: 1 / -1; }
.contents__head .h2 { margin: 0; }
.contents__intro { margin: 0; max-width: 24ch; text-align: right; text-wrap: balance; font: italic 400 clamp(19px, 1.6vw, 23px)/1.35 var(--f-accent); color: var(--ink-2); }
.parts {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(40px, 6vw, 96px); row-gap: clamp(48px, 5vw, 72px);
  margin-top: clamp(44px, 5vw, 68px);
}
.part { border-top: 3px solid var(--rubric); padding-top: 20px; }
.part__name { margin: 0 0 4px; font: 900 clamp(46px, 4.6vw, 70px)/.86 var(--f-display); text-transform: uppercase; letter-spacing: .004em; color: var(--ink); }
.part__label { display: block; margin-bottom: 12px; font: 700 12.5px/1.2 var(--f-ui); letter-spacing: .2em; color: var(--rubric); }
.chapters { list-style: none; margin: 0; padding: 0; }
.ch {
  display: grid; grid-template-columns: 72px minmax(0, 1fr); column-gap: 16px;
  padding: 22px 0; border-bottom: 1px solid rgba(28, 13, 8, .14);
}
.ch:last-child { border-bottom: 0; padding-bottom: 0; }
.ch__no { display: flex; flex-direction: column; align-items: flex-start; font: 900 54px/.8 var(--f-display); color: var(--rubric); }
.ch__no small { margin-bottom: 7px; font: 700 10.5px/1 var(--f-ui); letter-spacing: .16em; text-transform: uppercase; color: var(--rubric-2); }
.ch__title { margin: 3px 0 8px; font: 800 clamp(25px, 2.1vw, 31px)/.95 var(--f-display); text-transform: uppercase; letter-spacing: .01em; color: var(--ink); text-wrap: balance; }
.ch__title--none { margin: 0; }
.ch__text { margin: 0; font-size: 17px; line-height: 1.5; color: var(--ink-2); text-wrap: pretty; }
.ch__text em { font-style: normal; font-weight: 700; color: var(--ink); white-space: nowrap; }
.ch__phrases { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ch__phrases li { padding: 7px 12px; border-radius: 14px; font: 700 12.5px/1.25 var(--f-ui); letter-spacing: .04em; color: var(--rubric-2); background: rgba(176, 18, 27, .07); border: 1px solid rgba(176, 18, 27, .26); }
.contents__close {
  display: flex; align-items: center; justify-content: space-between; gap: 18px 32px; flex-wrap: wrap;
  margin-top: clamp(48px, 5vw, 72px); padding-top: 28px; border-top: 2px solid var(--ink);
}
.contents__close p { margin: 0; font: italic 400 clamp(20px, 2vw, 28px)/1.25 var(--f-accent); color: var(--ink); text-wrap: balance; }

/* ---------- where the skylines meet ---------- */
.seam {
  position: relative; isolation: isolate; overflow: hidden;
  height: clamp(560px, 86vh, 840px);
  background-color: var(--night);
  background-image: linear-gradient(115deg, #3b0a0a 0 50%, #3a2a10 50% 100%);
}
.seam__bg { position: absolute; inset: 0; z-index: -1; }
.seam__img, .seam__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.seam__img { object-fit: cover; filter: saturate(1.15) contrast(1.05); }
.seam__img--a { object-position: 50% 55%; }
.seam__img--b { object-position: 38% 50%; clip-path: polygon(61% 0, 100% 0, 100% 100%, 39% 100%); }
.seam__canvas { opacity: 0; transition: opacity 1.2s ease; touch-action: pan-y; }
.seam.is-live .seam__canvas { opacity: 1; }
.seam__shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(60% 55% at 0% 0%, rgba(10, 6, 6, .72), rgba(10, 6, 6, 0) 70%),
    radial-gradient(60% 55% at 100% 100%, rgba(10, 6, 6, .78), rgba(10, 6, 6, 0) 70%);
}
.seam__copy {
  position: relative; height: 100%;
  width: min(100% - 2 * var(--gutter), 1320px); margin-inline: auto;
  padding-block: clamp(40px, 6vw, 80px);
  display: grid; grid-template-rows: auto 1fr;
  pointer-events: none;
}
.seam__copy .tag { justify-self: start; }
.seam__title {
  display: grid; grid-template-rows: auto 1fr; height: 100%;
  font: 900 clamp(48px, 7vw, 112px)/.86 var(--f-display); text-transform: uppercase; letter-spacing: .005em;
  color: var(--cream);
  text-shadow: 0 4px 40px rgba(0, 0, 0, .65);
}
.seam__a { align-self: start; }
.seam__b { align-self: end; justify-self: end; text-align: right; }
.seam__b .foil { text-shadow: none; filter: drop-shadow(0 4px 24px rgba(0, 0, 0, .6)); }

/* ---------- author ---------- */
.author { background: radial-gradient(60% 60% at 15% 50%, rgba(227, 35, 44, .16), rgba(227, 35, 44, 0) 70%), var(--night); }
.author__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(44px, 7vw, 110px); align-items: center; }
.portrait { position: relative; margin: 0; max-width: 470px; justify-self: center; width: 100%; }
.portrait__ring {
  display: block; padding: 6px;
  border-radius: 999px 999px 30px 30px;
  background: conic-gradient(from 210deg at 50% 40%, #ffe3a0, #f7be45, #ff6b2c, #e3232c, #7a0a11, #e3232c, #f7be45, #ffe3a0);
  box-shadow: 0 40px 90px -40px rgba(227, 35, 44, .8), 0 0 120px -50px rgba(247, 190, 69, .7);
}
.portrait__ring img {
  width: 100%; height: auto; aspect-ratio: 760 / 891; object-fit: cover;
  border-radius: 999px 999px 25px 25px;
}
.author__copy { max-width: 620px; }
.author__names { font-size: 19.5px; color: var(--cream-2); }
.author__names .foil { font-weight: 800; }

/* ---------- Mark's AI Agents ---------- */
.agents {
  background:
    linear-gradient(180deg, var(--night) 0%, rgba(10, 6, 6, 0) 24%, rgba(10, 6, 6, 0) 76%, var(--night) 100%),
    radial-gradient(48% 52% at 90% 34%, rgba(255, 107, 44, .2), rgba(255, 107, 44, 0) 70%),
    radial-gradient(52% 56% at 6% 70%, rgba(227, 35, 44, .24), rgba(227, 35, 44, 0) 70%),
    var(--night);
  padding-top: clamp(64px, 7vw, 110px);
  padding-bottom: clamp(56px, 6vw, 90px);
}
.agents__head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); column-gap: 48px; align-items: end; }
.agents__head .tag { grid-column: 1 / -1; }
.agents__head .h2 { margin: 0; }
.agents__lede { margin: 0; max-width: 30ch; justify-self: end; text-wrap: balance; }
.agents__lede strong { color: var(--gold-hi); }
.agents__grid { list-style: none; margin: clamp(36px, 5vw, 56px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.agent {
  position: relative;
  padding: clamp(24px, 2.4vw, 34px);
  border-radius: var(--r-lg);
  background: linear-gradient(160deg, rgba(255, 245, 230, .055), rgba(255, 245, 230, .01) 60%), var(--coal);
  border: 1px solid var(--line);
  transition: border-color .3s ease, transform .3s ease;
}
.agent:hover { border-color: rgba(247, 190, 69, .45); transform: translateY(-3px); }
.agent__icon {
  display: grid; place-items: center;
  width: 56px; height: 56px; margin-bottom: 22px;
  border-radius: 18px;
  background: var(--sunrise);
  box-shadow: 0 14px 30px -14px rgba(227, 35, 44, .85);
}
.agent__icon svg { width: 26px; height: 26px; fill: none; stroke: var(--cream); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.agent__name { font: 900 clamp(28px, 2.4vw, 36px)/.95 var(--f-display); text-transform: uppercase; letter-spacing: .01em; color: var(--cream); margin: 0 0 10px; }
.agent__text { margin: 0; font-size: 17px; line-height: 1.5; color: var(--cream-2); }
.agents__close {
  display: flex; align-items: center; justify-content: space-between; gap: 18px 40px; flex-wrap: wrap;
  margin-top: 18px;
  padding: clamp(22px, 2.4vw, 32px) clamp(24px, 2.6vw, 40px);
  border-radius: var(--r-lg);
  background: var(--foil);
}
.agents__line { margin: 0; font: italic 400 clamp(22px, 2.3vw, 32px)/1.2 var(--f-accent); color: #1a0b05; text-wrap: balance; }

/* ---------- follow: a red card and a gold card ---------- */
.follow { background: var(--night); padding-top: clamp(56px, 6vw, 96px); padding-bottom: clamp(64px, 7vw, 100px); }
.follow__head { text-align: center; max-width: 900px; margin-inline: auto; }
.follow__head .h2 > em { margin-inline: auto; }
.follow__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(18px, 2.4vw, 28px); margin-top: clamp(36px, 5vw, 60px); }
.channel {
  position: relative; overflow: hidden;
  border-radius: var(--r-lg);
  padding: clamp(24px, 3vw, 40px);
  display: flex; flex-direction: column; align-items: flex-start;
  transition: transform .35s ease, box-shadow .35s ease;
}
.channel:hover { transform: translateY(-4px); }
.channel--red {
  background: radial-gradient(110% 90% at 100% 0%, rgba(255, 107, 44, .5), rgba(255, 107, 44, 0) 60%), linear-gradient(155deg, #e3232c 0%, #b0121b 55%, #6e0a10 100%);
  color: var(--cream);
  box-shadow: 0 40px 80px -40px rgba(227, 35, 44, .7);
}
.channel--gold {
  background: radial-gradient(110% 90% at 0% 0%, rgba(255, 255, 255, .45), rgba(255, 255, 255, 0) 55%), var(--foil);
  color: #1a0b05;
  box-shadow: 0 40px 80px -40px rgba(247, 190, 69, .6);
}
.channel__art {
  width: 100%; height: 260px; margin-bottom: 26px;
  display: grid; place-items: center;
  border-radius: var(--r-md);
  overflow: hidden;
}
.channel--red .channel__art { background: radial-gradient(90% 90% at 50% 100%, rgba(255, 200, 120, .18), rgba(0, 0, 0, 0) 70%), rgba(40, 2, 6, .42); }
.channel--gold .channel__art { background: radial-gradient(90% 90% at 50% 100%, rgba(255, 170, 60, .25), rgba(0, 0, 0, 0) 70%), #1c0b06; }
.channel__tag { font: 700 12.5px/1 var(--f-ui); letter-spacing: .2em; text-transform: uppercase; margin: 0 0 12px; }
.channel--red .channel__tag { color: var(--gold-hi); }
.channel--gold .channel__tag { color: #7a0a11; }
.channel__title { font: 900 clamp(36px, 3.4vw, 52px)/.9 var(--f-display); text-transform: uppercase; margin: 0 0 12px; }
.channel__text { margin: 0 0 28px; font-size: 17.5px; font-weight: 500; }
.channel--red .channel__text { color: var(--cream); }
.channel--gold .channel__text { color: #2e1205; }
.channel .btn { margin-top: auto; }
.follow__note { text-align: center; margin: 34px 0 0; color: var(--cream-2); }
.follow__note strong { color: var(--gold-hi); }

/* podcast waveform */
.wave { display: flex; align-items: center; gap: 5px; height: 160px; width: min(86%, 440px); filter: drop-shadow(0 0 7px rgba(255, 210, 120, .4)); }
.wave i {
  flex: 1 1 0; height: 100%; border-radius: 4px;
  background: linear-gradient(180deg, #fff5e6, #ffcc55);
  transform: scaleY(var(--h, .4)); transform-origin: 50% 50%;
  animation: wave var(--d, 1.2s) ease-in-out var(--o, 0s) infinite alternate;
}
@keyframes wave { from { transform: scaleY(calc(var(--h, .4) * .25)); } to { transform: scaleY(var(--h, .4)); } }

/* the Happy Minute dial */
.dial { position: relative; width: 230px; aspect-ratio: 1; }
.dial svg { width: 100%; height: 100%; overflow: visible; }
.dial__ticks line { stroke: rgba(247, 190, 69, .25); stroke-width: 2; stroke-linecap: round; transition: stroke .3s ease; }
.dial__ticks line.on { stroke: var(--gold); }
.dial__ticks line.now { stroke: #fff3d1; }

/* ---------- hear first ---------- */
.hear {
  background-color: var(--night);
  background-image:
    linear-gradient(180deg, var(--night) 0%, rgba(10, 6, 6, .1) 22%, rgba(10, 6, 6, 0) 62%, rgba(10, 6, 6, .35) 86%, var(--night) 100%),
    url("/images/sunrise.webp");
  background-size: 100% 100%, cover;
  background-position: center, 50% 100%;
  padding-top: clamp(64px, 7vw, 100px);
  padding-bottom: clamp(220px, 26vw, 380px);
}
.hear__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(40px, 7vw, 110px); align-items: start; }
.hear__form { max-width: 640px; }
.hear__info {
  background: rgba(16, 8, 8, .6);
  border: 1px solid rgba(255, 230, 190, .16);
  border-radius: var(--r-lg);
  padding: clamp(26px, 3vw, 40px);
  backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .8);
}
.steps { list-style: none; counter-reset: step; margin: 0 0 34px; padding: 0; }
.steps li {
  counter-increment: step; position: relative;
  padding: 0 0 18px 54px; margin: 0 0 18px;
  border-bottom: 1px solid var(--line);
  color: var(--cream-2); font-size: 17px; line-height: 1.5;
}
.steps li:last-child { margin-bottom: 0; }
.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: -3px;
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  font: 900 20px/1 var(--f-display); color: #1a0b05;
  background: var(--foil);
  box-shadow: 0 6px 18px -6px rgba(247, 190, 69, .8);
}
.expect { list-style: none; margin: 0; padding: 0; }
.expect li { position: relative; padding-left: 20px; margin-bottom: 9px; font-size: 16px; line-height: 1.45; color: var(--cream-2); }
.expect li::before { content: "★"; position: absolute; left: 0; top: .1em; font-size: 11px; color: var(--crimson); }
.hear__motto {
  position: absolute; left: 0; right: 0; bottom: clamp(70px, 9vw, 130px);
  margin: 0; text-align: center;
  font: 400 clamp(15px, 1.5vw, 21px)/1.3 var(--f-inscr); letter-spacing: .34em; text-transform: uppercase;
  color: #fff3dc; text-shadow: 0 2px 18px rgba(0, 0, 0, .8);
}

/* ---------- forms ---------- */
.pill {
  display: flex; align-items: center; gap: 4px;
  width: 100%; max-width: 640px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(16, 8, 8, .55);
  border: 1px solid rgba(255, 230, 190, .3);
  backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3);
  box-shadow: 0 20px 50px -24px rgba(0, 0, 0, .9), inset 0 1px 0 rgba(255, 255, 255, .06);
  transition: border-color .25s ease, box-shadow .25s ease;
}
.pill:focus-within { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(247, 190, 69, .2), 0 20px 50px -24px rgba(0, 0, 0, .9); }
.pill__input {
  min-width: 0; flex: 1.4 1 0;
  height: 50px; padding: 0 20px;
  font: 500 17px/1 var(--f-body); color: var(--cream);
  background: transparent; border: 0; border-radius: 999px;
  appearance: none;
}
.pill__input--name { flex: 1 1 0; border-right: 1px solid rgba(255, 230, 190, .2); border-radius: 999px 0 0 999px; }
.pill__input::placeholder { color: rgba(230, 216, 198, .72); }
.pill__input:focus { outline: none; background: rgba(255, 245, 230, .06); }
.pill__input:focus-visible { outline: none; }
.pill__btn { flex: 0 0 auto; min-height: 50px; }
.form-note { margin: 12px 0 0 8px; font: 500 15px/1.4 var(--f-body); color: var(--cream-2); }
.form-status { margin: 10px 0 0 8px; min-height: 1.4em; font: 600 16.5px/1.45 var(--f-body); color: var(--gold-hi); }
.form-status:empty { display: none; }
.form-status.is-error { color: #ff9c8c; }
form.is-sent .pill, form.is-sent .form-note { display: none; }

.field { display: grid; gap: 8px; min-width: 0; }
.field__label { font: 700 13px/1.2 var(--f-ui); letter-spacing: .1em; text-transform: uppercase; color: var(--cream); }
.field__opt { text-transform: none; letter-spacing: .02em; color: var(--cream-2); font-weight: 500; }
.field__req { color: var(--gold-hi); }
.field__input {
  width: 100%; min-height: 54px; padding: 13px 16px;
  font: 500 17px/1.3 var(--f-body); color: var(--cream);
  background: rgba(255, 245, 230, .05);
  border: 1px solid rgba(255, 230, 190, .2); border-radius: var(--r-sm);
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
  appearance: none;
}
.field__input:hover { border-color: rgba(255, 230, 190, .38); }
.field__input:focus { outline: none; border-color: var(--gold); background: rgba(255, 245, 230, .08); box-shadow: 0 0 0 4px rgba(247, 190, 69, .18); }
.field__input:user-invalid { border-color: #ff8a7a; }
.field__select {
  background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%);
  background-position: calc(100% - 22px) 52%, calc(100% - 16px) 52%;
  background-size: 6px 6px, 6px 6px; background-repeat: no-repeat;
  padding-right: 44px;
}
.field__select option { background: var(--coal); color: var(--cream); }
.field__area { min-height: 150px; resize: vertical; }

.contact {
  background:
    linear-gradient(180deg, var(--night) 0%, rgba(10, 6, 6, 0) 30%, rgba(10, 6, 6, 0) 75%, var(--night) 100%),
    radial-gradient(55% 60% at 92% 42%, rgba(227, 35, 44, .26), rgba(227, 35, 44, 0) 70%),
    radial-gradient(45% 55% at 6% 70%, rgba(247, 190, 69, .1), rgba(247, 190, 69, 0) 70%),
    var(--night);
  padding-top: clamp(56px, 6vw, 96px);
  padding-bottom: clamp(64px, 7vw, 96px);
}
.contact__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(40px, 7vw, 110px); align-items: start; }
.details { list-style: none; margin: 34px 0 0; padding: 0; display: grid; gap: 12px; }
.details li {
  display: grid; grid-template-columns: 48px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 16px;
  align-items: center;
  padding: 14px 18px 14px 14px;
  border-radius: var(--r-md);
  background: rgba(255, 245, 230, .04);
  border: 1px solid var(--line);
}
.details__icon {
  grid-row: 1 / span 2; width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--sunrise);
}
.details__icon svg { width: 22px; height: 22px; fill: var(--cream); }
.details__label { font: 700 11.5px/1.2 var(--f-ui); letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.details a, .details__value { font: 600 18.5px/1.35 var(--f-body); color: var(--cream); overflow-wrap: anywhere; text-decoration: none; }
.details a:hover { color: var(--gold-hi); }
.contact-form {
  display: grid; gap: 16px;
  background: rgba(20, 10, 10, .65);
  border: 1px solid rgba(255, 230, 190, .14);
  border-radius: var(--r-lg);
  padding: clamp(24px, 3vw, 40px);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .9);
}
.contact-form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.contact-form .btn { justify-self: start; }
form.is-sent .field, form.is-sent .contact-form__row, form.is-sent > .btn { display: none; }

/* ---------- questions ---------- */
.faq { background: var(--night); padding-top: clamp(48px, 5vw, 80px); padding-bottom: clamp(64px, 7vw, 100px); }
.faq__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 12px; }
.qa {
  padding: clamp(22px, 2.4vw, 30px);
  border-radius: var(--r-md);
  background: var(--coal);
  border: 1px solid var(--line);
  transition: border-color .3s ease, transform .3s ease, background-color .3s ease;
}
.qa:hover { border-color: rgba(247, 190, 69, .4); transform: translateY(-2px); background: var(--coal-2); }
.qa h3 { display: flex; gap: 12px; align-items: baseline; font: 700 19.5px/1.3 var(--f-body); color: var(--cream); margin: 0 0 10px; }
.qa h3::before { content: "★"; flex: 0 0 auto; font-size: 13px; color: var(--crimson); transform: translateY(-2px); }
.qa p { margin: 0; padding-left: 25px; font-size: 17px; line-height: 1.55; color: var(--cream-2); }

/* ---------- area ---------- */
.area { background: var(--night); padding-top: clamp(28px, 4vw, 48px); }
.area__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); gap: 40px; align-items: end; margin-bottom: 34px; }
.area__head .h2 { margin: 0; }
.area__note { margin: 0; color: var(--cream-2); }
.map-frame {
  position: relative;
  border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--line-2);
  background: var(--coal);
  box-shadow: 0 40px 80px -40px rgba(227, 35, 44, .45);
}
.map-frame::before {
  content: "★  San Francisco Bay Area, California";
  position: absolute; inset: 0; display: grid; place-items: center; padding: 24px; text-align: center;
  font: 400 15px/1.5 var(--f-inscr); letter-spacing: .3em; text-transform: uppercase; color: var(--gold);
}
.map-frame iframe { position: relative; display: block; width: 100%; height: 380px; filter: sepia(.3) saturate(1.3) hue-rotate(-12deg) contrast(1.03); }

/* ---------- footer ---------- */
.site-footer {
  background: radial-gradient(60% 80% at 50% 0%, rgba(227, 35, 44, .14), rgba(227, 35, 44, 0) 70%), #070404;
  border-top: 1px solid var(--line);
  padding: clamp(56px, 7vw, 96px) 0 34px;
}
.site-footer__top { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 32px 48px; margin-bottom: clamp(44px, 5vw, 70px); }
.site-footer__mark {
  margin: 0;
  font: 900 clamp(64px, 10.4vw, 160px)/.84 var(--f-display); text-transform: uppercase; letter-spacing: .004em;
  background: var(--foil); -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
}
.site-footer__mark span { display: block; }
.site-footer__cta { max-width: 300px; }
.site-footer__cta p { color: var(--cream-2); font-size: 17px; margin-bottom: 18px; }
.site-footer__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px; padding-top: 36px; border-top: 1px solid var(--line); }
.site-footer__label { font: 700 12px/1.3 var(--f-ui); letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin: 0 0 14px; }
.site-footer__col ul { list-style: none; margin: 0; padding: 0; }
.site-footer__col li { margin: 0 0 10px; font-size: 17px; color: var(--cream-2); overflow-wrap: anywhere; }
.site-footer__col a { color: var(--cream); text-decoration: none; }
.site-footer__col a:hover { color: var(--gold-hi); text-decoration: underline; }
.site-footer__fine { margin: 44px 0 0; padding-top: 22px; border-top: 1px solid var(--line); font-size: 14.5px; line-height: 1.55; color: #b8a994; max-width: 880px; }
.site-footer__base { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 16px; font: 700 12.5px/1.4 var(--f-ui); letter-spacing: .14em; text-transform: uppercase; }
.site-footer__base p { margin: 0; color: #b8a994; }
.site-footer__base a { color: var(--gold-hi); text-decoration: none; }

/* ---------- responsive ---------- */
@media (max-width: 1023px) {
  .hero { min-height: 0; align-items: start; }
  .hero__bg { bottom: auto; height: clamp(560px, 80vw, 760px); }
  .hero__bg::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 45%;
    background: linear-gradient(180deg, rgba(10, 6, 6, 0), var(--night));
  }
  .hero__shade { background: linear-gradient(180deg, rgba(10, 6, 6, .4) 0%, rgba(10, 6, 6, 0) 26%, rgba(10, 6, 6, 0) 60%, rgba(10, 6, 6, .5) 100%); }
  .hero__still { object-position: 50% 50%; }
  .hero__inner { grid-template-columns: minmax(0, 1fr); gap: 8px; padding-block: 30px 90px; }
  .hero__book { order: -1; --bw: clamp(220px, 46vw, 340px); padding-block: 8px 64px; }
  .hero__copy { max-width: 700px; }
  .hero__title { font-size: clamp(54px, 12.6vw, 116px); }
  .hero__next { display: none; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile--lead { grid-column: 1 / -1; grid-row: auto; }
  .tile--cover { grid-column: 1; grid-row: 2 / span 2; }
  .tile--red { grid-column: 2; grid-row: 2; }
  .tile--status { grid-column: 2; grid-row: 3; }
  .tile--gold { grid-column: 1 / -1; grid-row: 4; }
  .author__grid, .hear__grid, .contact__grid { grid-template-columns: minmax(0, 1fr); }
  .act { grid-template-columns: 54px minmax(0, 1fr); row-gap: 14px; }
  .act__text { grid-column: 2; }
  .story__head { grid-template-columns: minmax(0, 1fr); row-gap: 14px; }
  .story__intro { text-align: left; max-width: none; }
  .portrait { max-width: 400px; }
  .area__head { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .site-footer__top { grid-template-columns: minmax(0, 1fr); }
  .agents__head { grid-template-columns: minmax(0, 1fr); row-gap: 18px; }
  .contents__head { grid-template-columns: minmax(0, 1fr); row-gap: 16px; }
  .contents__intro { text-align: left; max-width: none; }
  .parts { grid-template-columns: minmax(0, 1fr); }
  .agents__lede { justify-self: start; max-width: 40ch; }
  .agents__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  body { font-size: 17px; }
  .pill { flex-direction: column; align-items: stretch; gap: 6px; border-radius: 26px; padding: 8px; }
  .pill__input { flex: 0 0 auto; height: 52px; border-radius: 18px; background: rgba(255, 245, 230, .05); }
  .pill__input--name { border-right: 0; border-radius: 18px; }
  .pill__btn { width: 100%; }
  .bento { grid-template-columns: minmax(0, 1fr); }
  .tile--lead, .tile--red, .tile--status, .tile--gold { grid-column: 1; grid-row: auto; }
  .tile--cover { display: none; }
  .follow__grid, .faq__grid, .contact-form__row { grid-template-columns: minmax(0, 1fr); }
  .story { border-radius: 30px 30px 0 0; }
  .seam { height: clamp(580px, 140vw, 740px); }
  .seam__img--b { clip-path: polygon(0 58%, 100% 40%, 100% 100%, 0 100%); }
  .seam__title { font-size: clamp(46px, 12.4vw, 76px); }
  .hear { background-size: 100% 100%, auto 460px; background-repeat: no-repeat; padding-bottom: 300px; }
  .hear__motto { bottom: 96px; display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: 14px; letter-spacing: .22em; }
  .map-frame iframe { height: 300px; }
  .channel__art { height: 230px; }
  .site-footer__grid { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .agents__grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .contents { border-radius: 30px 30px 0 0; }
  .ch { grid-template-columns: 58px minmax(0, 1fr); column-gap: 12px; padding: 18px 0; }
  .ch__no { font-size: 42px; }
  .ch__no small { font-size: 9.5px; letter-spacing: .1em; margin-bottom: 6px; }
  .ch__title { font-size: 23px; }
  .ch__text { font-size: 16px; }
  .ch__phrases li { font-size: 12px; letter-spacing: .02em; }
  .contents__close .btn { width: 100%; }
  .agent { display: grid; grid-template-columns: 48px minmax(0, 1fr); column-gap: 16px; align-items: start; padding: 20px; border-radius: var(--r-md); }
  .agent__icon { grid-row: 1 / span 2; width: 48px; height: 48px; margin: 0; border-radius: 15px; }
  .agent__icon svg { width: 23px; height: 23px; }
  .agent__name { font-size: 26px; margin: 2px 0 6px; }
  .agent__text { font-size: 16px; }
  .agents__close .btn { width: 100%; }
}
@media (max-width: 520px) {
  .tag { font-size: 11.5px; letter-spacing: .16em; }
  .tile__motto { font-size: 17px; letter-spacing: .16em; }
  .tile__motto span { display: block; margin-bottom: 8px; }
  .hero__byline { font-size: 13px; letter-spacing: .1em; }
  .act { grid-template-columns: 34px minmax(0, 1fr); column-gap: 12px; }
  .act__num { font-size: 14px; }
  .hero__motto { letter-spacing: .22em; gap: 10px; }
  .hero__motto::after { display: none; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker__track, .wave i, .status i::after, .hero__next-arrow { animation: none; }
  .hero__canvas, .seam__canvas { transition: none; }
  .btn, .btn::after, .channel, .qa, .agent, .tile--cover img, .fl, .fl__in { transition: none; }
}

/* ------------------------------------------------------------------ footer credit (go-live, 2026-11-18) */
.site-footer .foot-copy-line a { color: inherit; font-weight: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; white-space: nowrap; }
@media (min-width: 821px) { .foot-copy-line { white-space: nowrap; } }

/* ------------------------------------------------------------------ Google Analytics note (2026-11-18) */
.site-footer__fine .site-footer__ga { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
