/* Daniel J. Lennox — author site
   Palette pulled from The Seventh Mile cover: pine-black ground, slate fog,
   bone-white title lettering, plus the campfire ember from the cover studies. */
:root {
  --ground: #0a1011;
  --ground-2: #111a1b;
  --slate: #283438;
  --fog: #a6a9a5;
  --bone: #e8e4da;
  --ember: #d9824b;
  --ember-soft: #e8b08a;
  --line: rgba(232, 228, 218, .12);
  --display: "Bebas Neue", "Oswald", Impact, sans-serif;
  --serif: "Newsreader", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(72px, 11vw, 140px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--bone);
  font: 400 1.125rem/1.7 var(--serif);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ember-soft); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ember); }
h1, h2 { font-family: var(--display); font-weight: 400; letter-spacing: .02em; line-height: .95; margin: 0; }
h2 { font-size: clamp(2.6rem, 6vw, 4.4rem); }
h1 span, h2 span { color: var(--fog); }
p { margin: 0 0 1.2em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--bone); color: var(--ground); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }
.eyebrow {
  font: 600 .75rem/1 var(--sans); letter-spacing: .22em; text-transform: uppercase;
  color: var(--ember); margin: 0 0 1.2rem;
}
.muted { color: var(--fog); }
.small { font-size: .9rem; font-family: var(--sans); }

/* NAV */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  transition: background .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled { background: rgba(10, 16, 17, .78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-color: var(--line); }
.nav__inner { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); height: 68px; display: flex; align-items: center; justify-content: space-between; }
.brand { font: 400 1.5rem/1 var(--display); letter-spacing: .08em; color: var(--bone); text-decoration: none; }
.brand:hover { color: var(--bone); }
.nav__links { display: flex; gap: 2rem; align-items: center; }
.nav__links a { font: 500 .85rem/1 var(--sans); color: var(--fog); text-decoration: none; letter-spacing: .04em; }
.nav__links a:hover { color: var(--bone); }
.nav__links .nav__cta { color: var(--ground); background: var(--bone); padding: .7rem 1.1rem; border-radius: 999px; }
.nav__links .nav__cta:hover { background: var(--ember); color: var(--ground); }
.nav__toggle { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 12px 10px; cursor: pointer; }
.nav__toggle span { display: block; height: 2px; background: var(--bone); margin: 6px 0; transition: transform .25s; }
.nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* BUTTONS */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font: 600 .9rem/1 var(--sans); letter-spacing: .03em; text-decoration: none;
  padding: 1rem 1.5rem; border-radius: 999px; transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn--solid { background: var(--ember); color: var(--ground); }
.btn--solid:hover { background: var(--ember-soft); color: var(--ground); transform: translateY(-1px); }
.btn--ghost { border: 1px solid var(--line); color: var(--bone); }
.btn--ghost:hover { border-color: var(--bone); color: var(--bone); }
.btn.is-pending { background: var(--slate); color: var(--fog); cursor: default; transform: none; }
.link-arrow { font: 600 .9rem/1 var(--sans); color: var(--bone); text-decoration: none; display: inline-flex; gap: .5rem; align-items: center; letter-spacing: .03em; }
.link-arrow::after { content: "→"; color: var(--ember); transition: transform .2s; }
.link-arrow:hover { color: var(--bone); }
.link-arrow:hover::after { transform: translateX(4px); }

/* HERO */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: center;
  padding: 120px 0 140px; overflow: hidden;
  background:
    radial-gradient(ellipse 70% 55% at 72% 18%, rgba(96, 110, 115, .38), transparent 70%),
    linear-gradient(180deg, #0d1516 0%, var(--ground) 70%);
}
.hero__fog {
  position: absolute; inset: -20% -10% auto; height: 80%;
  background: radial-gradient(ellipse 40% 30% at 30% 50%, rgba(166, 169, 165, .08), transparent 70%),
              radial-gradient(ellipse 35% 25% at 70% 60%, rgba(166, 169, 165, .07), transparent 70%);
  animation: drift 24s ease-in-out infinite alternate; pointer-events: none;
}
@keyframes drift { to { transform: translateX(6%); } }
.hero__grid { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 6vw, 96px); align-items: center; width: 100%; }
.hero__title { font-size: clamp(4.5rem, 13vw, 10.5rem); margin-bottom: 1.5rem; }
.hero__title span { display: block; }
.hero__lede { font-size: clamp(1.25rem, 2.2vw, 1.6rem); font-style: italic; line-height: 1.45; max-width: 30ch; color: var(--bone); }
.chips { list-style: none; padding: 0; margin: 2rem 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.chips li { font: 500 .78rem/1 var(--sans); letter-spacing: .06em; color: var(--fog); border: 1px solid var(--line); padding: .55rem .9rem; border-radius: 999px; }
.hero__actions { display: flex; gap: .75rem; flex-wrap: wrap; }
.hero__cover { justify-self: center; }
.hero__cover picture { max-width: 420px; }
.hero__trail { position: absolute; left: 50%; bottom: 28px; width: min(900px, 92vw); transform: translateX(-50%); opacity: .35; }

/* SECTIONS */
.section { padding: var(--section) 0; position: relative; }
.section--tight { padding: clamp(48px, 7vw, 88px) 0; }
.section--alt { background: var(--ground-2); border-block: 1px solid var(--line); }
.section__head { margin-bottom: clamp(40px, 6vw, 72px); max-width: 720px; }
.split { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 96px); }
.split__label { position: sticky; top: 110px; align-self: start; }
.prose { max-width: 62ch; }
.prose p { color: #d6d3ca; }
.dropcap::first-letter { font: 400 4.6em/.8 var(--display); float: left; margin: .08em .12em 0 0; color: var(--ember); }

/* QUOTE */
.quote { padding: clamp(80px, 12vw, 160px) 0; text-align: center; background: radial-gradient(ellipse 60% 70% at 50% 50%, rgba(40, 52, 56, .55), transparent 75%); }
.quote blockquote { margin: 0 auto; max-width: 900px; }
.quote p { font: 400 clamp(2.2rem, 5.6vw, 4.6rem)/1.02 var(--display); letter-spacing: .02em; margin: 0; }

/* EMBLEMS */
.emblems__head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; margin-bottom: 2rem; }
.emblems__head .eyebrow { margin: 0; }
.emblems__head .muted { margin: 0; font: .9rem var(--sans); }
.emblems__row { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(9, 1fr); gap: clamp(10px, 2vw, 24px); }
.emblems__row img { width: 100%; opacity: .55; transition: opacity .3s, transform .3s; }
.emblems__row li:hover img { opacity: 1; transform: translateY(-4px) rotate(-3deg); }

/* FILM */
.film { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.laurels { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.laurels li { background: var(--ground-2); padding: clamp(20px, 3vw, 32px); display: flex; flex-direction: column; gap: .6rem; }
.laurels__award { font: 400 clamp(1.6rem, 2.6vw, 2.1rem)/1 var(--display); letter-spacing: .03em; }
.laurels__fest { font: 400 .82rem/1.45 var(--sans); color: var(--fog); }

/* AUTHOR */
.author { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.author__photo { position: sticky; top: 100px; }
.author__photo { margin: 0; border-radius: 16px; overflow: hidden; filter: grayscale(1) contrast(1.05); }
.author__text h2 { margin-bottom: 2rem; }
.signature { font: italic 400 1.4rem/1.4 var(--serif); color: var(--ember-soft); border-left: 2px solid var(--ember); padding-left: 1.2rem; margin: 2rem 0; }

/* GET */
.get { display: grid; grid-template-columns: 4fr 8fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.get__cover picture { max-width: 320px; }
.get__body h2 { margin-bottom: 2rem; }
.specs { display: grid; grid-template-columns: repeat(4, auto); justify-content: start; gap: 1rem 2.5rem; margin: 0 0 2.2rem; }
.specs div { display: flex; flex-direction: column; gap: .35rem; }
.specs dt { font: 600 .7rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--fog); }
.specs dd { margin: 0; font: 500 1rem/1.3 var(--sans); }
.stores { display: flex; gap: .75rem; flex-wrap: wrap; margin-bottom: 1.6rem; }

/* FOOTER */
.footer { padding: 48px 0 40px; border-top: 1px solid var(--line); }
.footer__inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.footer p { margin: 0; }

/* REVEAL */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s ease, transform .9s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .hero__fog { animation: none; }
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .hero__grid, .split, .film, .author, .get { grid-template-columns: 1fr; }
  .hero { padding-top: 100px; }
  .hero__cover { order: -1; }
  .hero__cover picture { max-width: 240px; }
  .split__label { position: static; }
  .emblems__row { grid-template-columns: repeat(5, 1fr); }
  .emblems__row li:nth-child(n+6) { display: none; }
  .specs { grid-template-columns: repeat(2, auto); }
  .get__cover { display: none; }
  .author__photo { max-width: 440px; position: static; }
}
@media (max-width: 720px) {
  .nav__toggle { display: block; }
  .nav__links {
    position: fixed; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(10, 16, 17, .97); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 20px;
    transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
  }
  .nav__links.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .nav__links a { padding: 1rem 0; font-size: 1rem; border-bottom: 1px solid var(--line); }
  .nav__links .nav__cta { margin-top: 1rem; text-align: center; border: 0; }
  .laurels { grid-template-columns: 1fr; }
}

/* ===== HOME ===== */
h3 { font-family: var(--display); font-weight: 400; letter-spacing: .03em; line-height: 1; margin: 0; }
.hero--home { min-height: 92svh; padding-bottom: 80px; }
.hero--home .hero__title { font-size: clamp(4.2rem, 11vw, 9.5rem); }
.hero__portrait { margin: 0; justify-self: end; max-width: 460px; width: 100%; position: relative; }
.hero__portrait::before {
  content: ""; position: absolute; inset: 8% -6% -6% 8%; border: 1px solid var(--line); border-radius: 18px; z-index: -1;
}
.hero__portrait picture { display: block; border-radius: 18px; overflow: hidden; box-shadow: 0 40px 90px -30px rgba(0,0,0,.9); }
.hero__portrait img { filter: grayscale(1) contrast(1.05); }

.stats { border-block: 1px solid var(--line); background: var(--ground-2); }
.stats__row { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.stats__row li { padding: clamp(22px, 3.5vw, 36px) 0; display: flex; flex-direction: column; align-items: center; gap: .4rem; border-left: 1px solid var(--line); }
.stats__row li:first-child { border-left: 0; }
.stats__num { font: 400 clamp(2.4rem, 5vw, 3.6rem)/1 var(--display); }
.stats__label { font: 600 .7rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--fog); text-align: center; }

.section__head--row { display: flex; justify-content: space-between; align-items: end; gap: 2rem; flex-wrap: wrap; max-width: none; }
.section__note { max-width: 38ch; margin: 0; font: .95rem/1.55 var(--sans); }

.feature { display: grid; grid-template-columns: 4fr 7fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.feature__cover { display: block; max-width: 360px; }
.feature .chips { margin: 0 0 1.5rem; }
.feature__title { font-size: clamp(3rem, 7vw, 5.2rem); margin-bottom: 1rem; }
.feature__lede { font-style: italic; font-size: 1.3rem; line-height: 1.45; color: var(--bone); }
.feature__body > p { color: #d6d3ca; max-width: 60ch; }
.feature .hero__actions { margin-top: 1.8rem; }

.films { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 2.5vw, 32px); }
.film-card { display: flex; flex-direction: column; }
/* Award / 988 lines sit at the bottom of each card so the dividers line up across a row */
.film-card__body { flex: 1; display: flex; flex-direction: column; }
.film-card .film-card__body .film-card__honor { margin-top: auto; min-height: calc(2.8em + .7rem + 1px); }
@media (max-width: 720px) { .film-card .film-card__body .film-card__honor { min-height: calc(4.2em + .7rem + 1px); } }
.film-card > a { position: relative; display: block; border-radius: 10px; overflow: hidden; background: #000; box-shadow: 0 20px 40px -20px rgba(0,0,0,.8); }
.film-card > a img { aspect-ratio: 2 / 3; object-fit: cover; width: 100%; transition: transform .6s cubic-bezier(.2,.7,.2,1), opacity .3s; }
.film-card > a:hover img { transform: scale(1.04); }
.film-card__badge { position: absolute; bottom: 10px; left: 10px; font: 600 .66rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; background: var(--ember); color: var(--ground); padding: .45rem .6rem; border-radius: 999px; }
.film-card__body { padding-top: 1.1rem; }
.film-card__type { font: 600 .68rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--ember); margin: 0 0 .6rem; }
.film-card h3 { font-size: 1.9rem; margin-bottom: .6rem; }
.film-card__body p { font-size: .98rem; line-height: 1.55; color: #c9c6bd; margin-bottom: .8rem; }
.film-card__body .film-card__honor { font: 500 .78rem/1.4 var(--sans); color: var(--fog); border-top: 1px solid var(--line); padding-top: .7rem; margin: 0; }

.contact { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.contact__email { display: inline-block; font: 600 clamp(1.25rem, 2.6vw, 1.8rem)/1.2 var(--sans); letter-spacing: -.01em; color: var(--bone); text-decoration: none; border-bottom: 2px solid var(--ember); padding-bottom: .2rem; margin: .4rem 0 1.4rem; word-break: break-all; }
.contact__email:hover { color: var(--ember-soft); }

.author-strip { display: grid; grid-template-columns: 140px 1fr; gap: 2rem; align-items: center; max-width: 820px; border: 1px solid var(--line); border-radius: 16px; padding: 1.5rem; }
.author-strip__img img { border-radius: 10px; filter: grayscale(1); }
.author-strip__text { color: #d6d3ca; }

.footer__links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer__links a { font: 500 .85rem/1 var(--sans); color: var(--fog); text-decoration: none; }
.footer__links a:hover { color: var(--bone); }
.footer__help { color: var(--fog); max-width: 80ch; margin: 1.6rem 0 .8rem; line-height: 1.6; }
.footer__help a { color: var(--bone); }
.footer .wrap > .muted { margin: 0; }

@media (max-width: 1000px) { .films { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 900px) {
  .hero__portrait { justify-self: start; max-width: 340px; order: -1; }
  .hero--home { padding-top: 96px; }
  .feature, .contact { grid-template-columns: 1fr; }
  .feature__cover { max-width: 240px; }
  .stats__row { grid-template-columns: repeat(2, 1fr); }
  .stats__row li:nth-child(3) { border-left: 0; }
  .stats__row li:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 720px) { .films { grid-template-columns: repeat(2, 1fr); } .film-card h3 { font-size: 1.5rem; } }
@media (max-width: 520px) { .author-strip { grid-template-columns: 1fr; } .author-strip__img { max-width: 140px; } }

/* About: wide studio photo */
.about__photo { margin: 0 0 clamp(36px, 5vw, 64px); border-radius: 16px; overflow: hidden; box-shadow: 0 40px 80px -40px rgba(0,0,0,.9); }
.about__photo img { width: 100%; filter: grayscale(1) contrast(1.04); }
.about__grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.about__head { position: sticky; top: 110px; }
.about__head h2 { margin-bottom: 1.5rem; }
@media (max-width: 900px) { .about__grid { grid-template-columns: 1fr; } .about__head { position: static; } }

/* Pre-release */
.chips .chip--soon { color: var(--ground); background: var(--ember); border-color: var(--ember); font-weight: 600; }
.release-note { font: 500 1.05rem/1.5 var(--sans); color: var(--bone); border-left: 2px solid var(--ember); padding-left: 1rem; margin: 0; max-width: 46ch; }

/* Current page in the menu */
.nav__links a[aria-current="page"]:not(.nav__cta) { color: var(--bone); }

/* New-novel notice in the home hero */
.announce {
  display: inline-flex; align-items: center; gap: .7rem; margin-bottom: 1.6rem;
  padding: .35rem .9rem .35rem .35rem; border: 1px solid var(--line); border-radius: 999px;
  background: rgba(232, 228, 218, .04); text-decoration: none; color: var(--bone);
  font: 500 .85rem/1 var(--sans); transition: border-color .2s, background .2s;
}
.announce:hover { border-color: var(--ember); background: rgba(217, 130, 75, .08); color: var(--bone); }
.announce__tag { background: var(--ember); color: var(--ground); font-weight: 600; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; padding: .45rem .65rem; border-radius: 999px; }
.announce__arrow { color: var(--ember); transition: transform .2s; }
.announce:hover .announce__arrow { transform: translateX(3px); }
@media (max-width: 400px) { .announce { font-size: .78rem; gap: .5rem; } }

/* Footer: compact help line */
.footer__inner { padding-bottom: 1.4rem; border-bottom: 1px solid var(--line); }
.footer__help { font: 400 .75rem/1.5 var(--sans); color: var(--fog); opacity: .8; margin: 1.2rem 0 .4rem; max-width: none; }
.footer__help a { color: var(--fog); text-decoration-thickness: 1px; }
.footer .wrap > .muted.small { font-size: .75rem; opacity: .8; }

/* ===== Contact form ===== */
.contact { align-items: start; }
.contact-form { display: grid; gap: 1.1rem; margin-top: 1.4rem; }
.contact-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.contact-form .field { display: flex; flex-direction: column; gap: .45rem; }
.contact-form label { font: 600 .7rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--fog); }
.contact-form input, .contact-form select, .contact-form textarea {
  font: 400 1rem/1.4 var(--sans); color: var(--bone); background: rgba(232, 228, 218, .04);
  border: 1px solid var(--line); border-radius: 10px; padding: .85rem 1rem; width: 100%;
  transition: border-color .2s, background .2s;
}
.contact-form select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--fog) 50%), linear-gradient(135deg, var(--fog) 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 15px) 55%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 2.5rem; }
.contact-form select option { background: var(--ground-2); color: var(--bone); }
.contact-form textarea { resize: vertical; min-height: 9rem; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: none; border-color: var(--ember); background: rgba(232, 228, 218, .07); }
.contact-form .is-invalid { border-color: #d0605a; }
.contact-form button { justify-self: start; border: 0; cursor: pointer; }
.field-error, .form-error { font: 500 .85rem/1.4 var(--sans); color: #e08a84; margin: 0; }
.form-thanks { font: 500 1.05rem/1.5 var(--sans); color: var(--bone); border-left: 2px solid var(--ember); padding-left: 1rem; margin: 1.4rem 0; }
.contact__note { margin-top: 1.4rem; }
.hp-field { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 600px) { .contact-form__row { grid-template-columns: 1fr; } }

/* Trail drawing sits in the normal flow under the hero content, so it can
   never ride up behind the buttons on short screens. */
.hero { flex-direction: column; justify-content: center; align-items: stretch; padding-bottom: clamp(40px, 6vw, 64px); }
.hero__trail { position: relative; left: auto; bottom: auto; transform: none; display: block; margin: clamp(40px, 6vw, 72px) auto 0; }

/* ===== Stats bar: icons, count-up, linked tiles ===== */
.stats { position: relative; overflow: hidden; background: linear-gradient(180deg, var(--ground-2), #0d1415); }
.stats::before { /* faint film-strip perforations along the top and bottom edges */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background:
    repeating-linear-gradient(90deg, rgba(232,228,218,.07) 0 14px, transparent 14px 34px) top / 100% 6px no-repeat,
    repeating-linear-gradient(90deg, rgba(232,228,218,.07) 0 14px, transparent 14px 34px) bottom / 100% 6px no-repeat;
}
.stats__row li { padding: 0; }
.stat {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: .55rem;
  padding: clamp(28px, 4vw, 44px) 1rem; width: 100%; text-decoration: none; color: var(--bone);
  transition: background .35s ease;
}
.stat::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 0; height: 2px; background: var(--ember); transform: translateX(-50%); transition: width .35s ease; }
.stat:hover, .stat:focus-visible { background: radial-gradient(ellipse 70% 90% at 50% 100%, rgba(217,130,75,.12), transparent 70%); color: var(--bone); outline: none; }
.stat:hover::after, .stat:focus-visible::after { width: 56%; }
.stat__icon { width: 34px; height: 34px; fill: none; stroke: var(--fog); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: stroke .3s, transform .35s ease; }
.stat:hover .stat__icon, .stat:focus-visible .stat__icon { stroke: var(--ember); transform: translateY(-3px); }
.stat__num { font: 400 clamp(2.8rem, 5.6vw, 4.2rem)/1 var(--display); letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.stat__plus { color: var(--ember); margin-left: .04em; }
.stat__label { font: 600 .7rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--fog); text-align: center; }
.js .stats__row li { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.js .stats.is-in .stats__row li { opacity: 1; transform: none; }
.js .stats.is-in .stats__row li:nth-child(2) { transition-delay: .1s; }
.js .stats.is-in .stats__row li:nth-child(3) { transition-delay: .2s; }
.js .stats.is-in .stats__row li:nth-child(4) { transition-delay: .3s; }
@media (prefers-reduced-motion: reduce) { .js .stats__row li { opacity: 1; transform: none; transition: none; } }

/* Menu links turn orange on hover (Dan's request) */
.nav__links a:not(.nav__cta):hover, .nav__links a:not(.nav__cta):focus-visible { color: var(--ember); }
.footer__links a:hover { color: var(--ember); }

/* Larger top-menu text (Dan's request) */
.nav__links a:not(.nav__cta) { font-size: .98rem; }
@media (max-width: 720px) { .nav__links a:not(.nav__cta) { font-size: 1.1rem; } }

/* Larger header: name and menu (Dan's request) */
html { scroll-padding-top: 84px; }
.nav__inner { height: 78px; }
.brand { font-size: 1.9rem; }
.nav__links a:not(.nav__cta) { font-size: 1.08rem; }
.footer .brand { font-size: 1.5rem; }
@media (max-width: 720px) {
  .nav__inner { height: 68px; }
  .brand { font-size: 1.6rem; }
  .nav__links { top: 68px; }
  .nav__links a:not(.nav__cta) { font-size: 1.15rem; }
}

/* ===== Festival laurel cards (book page, short film section) ===== */
.laurels { gap: clamp(12px, 1.6vw, 18px); background: none; border: 0; border-radius: 0; overflow: visible; }
.laurels .laurel {
  position: relative; display: grid; grid-template-columns: 34px 1fr 34px; align-items: center; gap: .6rem;
  padding: clamp(20px, 2.6vw, 30px) clamp(12px, 1.6vw, 20px); text-align: center;
  background: radial-gradient(ellipse 80% 70% at 50% 0%, rgba(232,228,218,.05), transparent 70%), var(--ground);
  border: 1px solid var(--line); border-radius: 14px;
  transition: transform .35s cubic-bezier(.2,.7,.2,1), border-color .35s, box-shadow .35s;
}
.laurels .laurel:hover { transform: translateY(-4px); border-color: rgba(217,130,75,.55); box-shadow: 0 18px 40px -22px rgba(217,130,75,.45); }
.laurel__branch { width: 34px; height: 86px; color: var(--ember); opacity: .75; transition: opacity .35s, transform .35s; }
.laurel__branch--r { transform: scaleX(-1); }
.laurel--sel .laurel__branch { color: var(--fog); opacity: .55; }
.laurel:hover .laurel__branch { opacity: 1; }
.laurel__body { display: flex; flex-direction: column; align-items: center; gap: .45rem; min-width: 0; }
.laurel__tag { font: 600 .62rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--ember); }
.laurel--sel .laurel__tag { color: var(--fog); }
.laurel__award { font: 400 clamp(1.45rem, 2.2vw, 1.85rem)/1 var(--display); letter-spacing: .03em; color: var(--bone); }
.laurel__who { font: 500 .8rem/1.3 var(--sans); color: var(--bone); }
.laurel__fest { font: 400 .74rem/1.4 var(--sans); color: var(--fog); max-width: 22ch; }
.js .laurels .laurel { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1), border-color .35s, box-shadow .35s; }
.js .laurels.is-in .laurel { opacity: 1; transform: none; }
.js .laurels.is-in .laurel:nth-child(2) { transition-delay: .1s, .1s, 0s, 0s; }
.js .laurels.is-in .laurel:nth-child(3) { transition-delay: .2s, .2s, 0s, 0s; }
.js .laurels.is-in .laurel:nth-child(4) { transition-delay: .3s, .3s, 0s, 0s; }
.js .laurels.is-in .laurel:hover { transform: translateY(-4px); transition-delay: 0s; }
@media (prefers-reduced-motion: reduce) { .js .laurels .laurel { opacity: 1; transform: none; transition: none; } }
@media (max-width: 720px) { .laurels { grid-template-columns: 1fr; } }

/* Author box: keep the side gutter on narrow screens (its own padding was
   overriding the .wrap gutter, so the border touched the screen edge). */
@media (max-width: 900px) { .wrap.author-strip { margin-left: var(--gutter); margin-right: var(--gutter); } }

/* ===== Tablet (iPad portrait, ~721–900px): keep the desktop side-by-side
   layouts instead of the stacked phone layout. ===== */
@media (min-width: 721px) and (max-width: 900px) {
  .hero__grid, .feature, .contact, .about__grid, .split, .film, .get { grid-template-columns: 1fr 1fr; gap: 36px; }
  .hero { padding-top: 110px; }
  .hero--home .hero__title { font-size: clamp(4rem, 10.5vw, 6rem); }
  .hero__portrait { order: 0; justify-self: end; max-width: 100%; }
  .hero__cover { order: 0; }
  .hero__cover picture { max-width: 300px; }
  .split__label { position: sticky; }
  .about__head { position: sticky; }
  .feature__cover { max-width: 300px; }
  .get__cover { display: block; }
  .get__cover picture { max-width: 100%; }
  .specs { grid-template-columns: repeat(2, auto); }
  .stats__row { grid-template-columns: repeat(4, 1fr); }
  .stats__row li:nth-child(3) { border-left: 1px solid var(--line); }
  .stats__row li:nth-child(n+3) { border-top: 0; }
  .emblems__row { grid-template-columns: repeat(9, 1fr); }
  .emblems__row li:nth-child(n+6) { display: list-item; }
}

/* Keep the "New novel" pill on one line; trim the tall empty hero on tablets */
@media (min-width: 400px) { .announce__tag, .announce__text { white-space: nowrap; } }
.announce__tag { white-space: nowrap; }
@media (min-width: 721px) and (max-width: 900px) {
  .announce { font-size: .78rem; gap: .5rem; }
  .hero--home { min-height: auto; padding-top: 130px; padding-bottom: 90px; }
}
@media (min-width: 901px) and (max-width: 1100px) and (orientation: portrait) {
  .hero--home { min-height: auto; padding-top: 140px; padding-bottom: 100px; }
}
@media (min-width: 721px) and (max-width: 900px) { .film { grid-template-columns: 1fr; } }

/* ===== Chapter One reading page ===== */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.read-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60; pointer-events: none; }
.read-progress span { display: block; height: 100%; width: 0; background: var(--ember); transition: width .1s linear; }
.chapter-hero { padding: 150px 0 40px; text-align: center; background: radial-gradient(ellipse 60% 70% at 50% 20%, rgba(96,110,115,.28), transparent 70%), linear-gradient(180deg, #0d1516, var(--ground)); }
.chapter-hero__inner { display: flex; flex-direction: column; align-items: center; }
.chapter-hero__emblem { width: 120px; height: 120px; opacity: .8; margin: .6rem 0 1.4rem; }
.chapter-hero__title { font-size: clamp(3.4rem, 9vw, 6.5rem); }
.chapter-hero__title span { color: var(--fog); }
.chapter-hero__book { font: italic 400 1.15rem/1.4 var(--serif); color: var(--fog); margin-top: 1rem; }
.chapter-hero__book a { color: var(--bone); }
.chapter { padding-top: clamp(32px, 5vw, 56px); }
.chapter__text { max-width: 62ch; margin: 0 auto; }
.chapter__text p { font-size: clamp(1.1rem, 1.6vw, 1.22rem); line-height: 1.85; color: #d9d6cd; margin: 0 0 1.25em; }
.chapter__text .dropcap::first-letter { font-size: 4.2em; }
.chapter__break { margin: 2.6rem auto; max-width: 260px; opacity: .45; }
.chapter__end { text-align: center; font: 600 .7rem/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--ember); margin: 3rem 0 0; }
.chapter-next { max-width: 720px; text-align: center; margin: 0 auto; }
.chapter-next h2 { margin-bottom: 1rem; }
.chapter-next__text { color: #d6d3ca; font-size: 1.15rem; }
.chapter-next .hero__actions { justify-content: center; margin: 1.6rem 0 1.8rem; }
.chapter-next__legal { margin: 0; }

/* ===== Newsletter signup ===== */
.signup {
  display: grid; grid-template-columns: 5fr 6fr; gap: clamp(28px, 5vw, 64px); align-items: center;
  padding: clamp(28px, 4vw, 48px); border: 1px solid var(--line); border-radius: 18px;
  background: radial-gradient(ellipse 70% 90% at 0% 0%, rgba(217,130,75,.10), transparent 60%), var(--ground-2);
}
/* Same header graphic as the welcome email; spans the card edge to edge.
   The card's padding is clamp(28px, 4vw, 48px), so the banner pulls out by the same amount. */
.signup__banner {
  grid-column: 1 / -1; display: block; overflow: hidden;
  margin: calc(-1 * clamp(28px, 4vw, 48px)) calc(-1 * clamp(28px, 4vw, 48px)) 0;
  border-radius: 17px 17px 0 0; border-bottom: 1px solid var(--line);
}
.signup__banner img { display: block; width: 100%; height: auto; }
/* Book banner: real text over a rotating forest photo. Change the three lines in the HTML for each new book. */
.book-banner { position: relative; container-type: inline-size; aspect-ratio: 1200 / 420; display: grid; align-items: center; justify-content: end; }
.book-banner__bg { position: absolute; inset: 0; background: url(/assets/img/get-bg-2.jpg) center / cover no-repeat; }
.book-banner__bg::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(10,16,17,0) 21%, rgba(10,16,17,.63) 100%), rgba(0,0,0,.38); }
.book-banner__text { position: relative; padding: 0 7cqi 0 0; }
.book-banner__text p { margin: 0; }
.book-banner__kicker { font: 600 max(.68rem, 1.6cqi)/1 var(--sans); white-space: nowrap; letter-spacing: .26em; text-transform: uppercase; color: var(--ember); }
.book-banner__title { font: 400 max(2.6rem, 10cqi)/.95 var(--display); letter-spacing: .03em; text-transform: uppercase; color: var(--bone); white-space: nowrap; margin-top: 1.4cqi !important; }
.book-banner__title::after { content: ""; display: block; width: 11.7cqi; min-width: 56px; height: 3px; background: var(--ember); margin-top: 1.5cqi; }
.book-banner__tag { font: italic 400 max(.8rem, 2.05cqi)/1.4 var(--serif); color: var(--ember-soft); margin-top: 1.3cqi !important; }
.book-banner__tag { white-space: nowrap; }
@media (max-width: 600px) { .book-banner__tag { white-space: normal; font-size: .95rem; } }
@media (max-width: 600px) {
  .book-banner { aspect-ratio: auto; min-height: 250px; justify-content: start; }
  .book-banner__bg::after { background: linear-gradient(90deg, rgba(10,16,17,.55), rgba(10,16,17,.75)), rgba(0,0,0,.3); }
  .book-banner__text { padding: 32px 24px; max-width: none; }
  .book-banner__title { margin-top: .7rem !important; white-space: normal; }
  .book-banner__title::after { margin-top: .75rem; }
  .book-banner__tag { margin-top: .7rem !important; }
}
.signup h2 { margin-bottom: 1rem; }
.signup__text { color: #d6d3ca; margin: 0; max-width: 42ch; }
.signup__form { display: grid; gap: .9rem; }
.signup__fields { display: grid; grid-template-columns: 1fr 1.4fr; gap: .9rem; }
.signup__form .field { display: flex; flex-direction: column; gap: .45rem; }
.signup__form label { font: 600 .7rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--fog); }
.signup__form label .muted { text-transform: none; letter-spacing: 0; font-weight: 500; }
.signup__form input { font: 400 1rem/1.4 var(--sans); color: var(--bone); background: rgba(232,228,218,.04); border: 1px solid var(--line); border-radius: 10px; padding: .85rem 1rem; width: 100%; transition: border-color .2s, background .2s; }
.signup__form input:focus { outline: none; border-color: var(--ember); background: rgba(232,228,218,.07); }
.signup__form .is-invalid { border-color: #d0605a; }
.signup__form button { justify-self: start; border: 0; cursor: pointer; }
.signup__fine { margin: 0; }
.signup__thanks { grid-column: 2; font: 500 1.05rem/1.5 var(--sans); color: var(--bone); border-left: 2px solid var(--ember); padding-left: 1rem; margin: 0; }
#next .signup { margin-bottom: 2rem; }
@media (max-width: 900px) { .signup { grid-template-columns: 1fr; } .signup__thanks { grid-column: 1; } }
@media (max-width: 520px) { .signup__fields { grid-template-columns: 1fr; } }

/* Anything marked hidden stays hidden, even if a layout rule sets display
   (fixes the signup and contact forms staying visible after submitting). */
[hidden] { display: none !important; }

/* ===== Chapter One: page-turning book reader ===== */
.reader-head { padding: 112px 0 18px; text-align: center; }
.reader-head__inner { display: flex; flex-direction: column; align-items: center; }
.reader-head .eyebrow { margin-bottom: .7rem; }
.reader-head__title { font-size: clamp(2.4rem, 5vw, 3.4rem); }
.reader-head__title span { color: var(--fog); }
.reader-head__book { font: italic 400 1.05rem/1.4 var(--serif); color: var(--fog); margin: .5rem 0 0; }
.reader-head__book a { color: var(--bone); }
.chapter { padding: 8px 0 clamp(40px, 6vw, 72px); }
.js .chapter.has-book .chapter__text, .js .chapter.has-book .chapter__end { display: none; }

.book { --pw: 440px; --ph: 680px; --fs: 17px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.book__stage { position: relative; width: calc(var(--pw) * 2); height: var(--ph); perspective: 2600px; }
.book__stage.is-single { width: var(--pw); }
/* stacked page edges under the book */
.book__stage::before, .book__stage::after {
  content: ""; position: absolute; left: 4px; right: 4px; bottom: -6px; height: 8px; border-radius: 0 0 6px 6px;
  background: repeating-linear-gradient(180deg, #d9d1c0 0 1px, #efe8d8 1px 2px); z-index: 0;
}
.book__stage::after { bottom: -3px; left: 2px; right: 2px; height: 4px; }
.page {
  position: absolute; top: 0; width: var(--pw); height: var(--ph); overflow: hidden; z-index: 1;
  background: linear-gradient(180deg, #f6f1e5, #efe8d7); color: #2b2620;
  padding: calc(var(--ph) * .075) calc(var(--pw) * .1) calc(var(--ph) * .09);
  font: 400 var(--fs)/1.58 var(--serif); box-shadow: 0 30px 60px -30px rgba(0,0,0,.85);
  -webkit-font-smoothing: antialiased; cursor: pointer; user-select: none;
}
.page--left { left: 0; border-radius: 6px 2px 2px 6px; }
.page--right { left: var(--pw); border-radius: 2px 6px 6px 2px; }
.is-single .page--right { left: 0; border-radius: 4px 6px 6px 4px; }
.page--left::after, .page--right::after { content: ""; position: absolute; top: 0; bottom: 0; width: 46px; pointer-events: none; }
.page--left::after { right: 0; background: linear-gradient(90deg, transparent, rgba(60,45,25,.18)); }
.page--right::after { left: 0; background: linear-gradient(270deg, transparent, rgba(60,45,25,.2)); }
.is-single .page--right::after { width: 14px; }
.page p { margin: 0; text-indent: 1.4em; text-align: justify; hyphens: auto; -webkit-hyphens: auto; }
.page p.first, .page p.cont { text-indent: 0; }
.page p.cut { text-align-last: justify; }
.page p.first::first-letter { float: left; font: 400 3.6em/.78 var(--display); color: #a85a2c; margin: .06em .1em 0 0; }
.page .pg-break { display: block; width: 46%; margin: .9em auto; opacity: .55; filter: invert(1) brightness(.35); }
.page .pg-chapter { text-align: center; margin: 0 0 1.1em; }
.page .pg-chapter img { display: block; margin: 0 auto; width: 64px; height: 64px; filter: invert(1) brightness(.3); opacity: .8; }
.page .pg-chapter h2 { font: 400 calc(var(--fs) * 1.9)/1 var(--display); letter-spacing: .04em; color: #2b2620; margin: .35em 0 0; }
.page__num { position: absolute; bottom: calc(var(--ph) * .035); left: 0; right: 0; text-align: center; font: 500 11px/1 var(--sans); letter-spacing: .14em; color: #9a8f7c; }
.page--title { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.page--title img { width: 46%; max-width: 190px; filter: invert(1) brightness(.3); opacity: .85; margin-bottom: 1.4em; }
.page--title .t-book { font: 400 calc(var(--fs) * 3.2)/.95 var(--display); letter-spacing: .03em; color: #2b2620; }
.page--title .t-by { font: italic 400 calc(var(--fs) * 1.05)/1.4 var(--serif); color: #6d6253; margin-top: .6em; }
.page--title .t-rule { width: 40px; height: 1px; background: #b9ad97; margin: 1.6em auto; }
.page--title .t-ch { font: 600 11px/1 var(--sans); letter-spacing: .28em; text-transform: uppercase; color: #a85a2c; }
.page--end { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.page--end .t-ch { font: 600 11px/1 var(--sans); letter-spacing: .28em; text-transform: uppercase; color: #a85a2c; }
.page.page--end .t-q { font: italic 400 calc(var(--fs) * 1.15)/1.5 var(--serif); color: #4a4135; margin: 1.2em 0 1.4em; max-width: 22ch; text-indent: 0; text-align: center; text-align-last: center; }
.page--end a { font: 600 13px/1 var(--sans); letter-spacing: .04em; color: #fff; background: #c46f3c; padding: .9em 1.3em; border-radius: 999px; text-decoration: none; }
.page--blank { cursor: default; }
/* the turning leaf */
.leaf { position: absolute; top: 0; width: var(--pw); height: var(--ph); z-index: 5; transform-style: preserve-3d; transition: transform .75s cubic-bezier(.45,.05,.25,1); }
.leaf .page { position: absolute; left: 0 !important; top: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; box-shadow: none; }
.leaf .page.back { transform: rotateY(180deg); }
.leaf::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(0,0,0,.0), rgba(0,0,0,.18)); opacity: 0; transition: opacity .75s; }
.leaf.is-turning::after { opacity: 1; }
.book__controls { display: flex; align-items: center; gap: 18px; }
.book__btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--bone); font-size: 1.2rem; cursor: pointer; transition: border-color .2s, color .2s, opacity .2s; }
.book__btn:hover:not(:disabled) { border-color: var(--ember); color: var(--ember); }
.book__btn:disabled { opacity: .3; cursor: default; }
.book__count { margin: 0; min-width: 9.5em; text-align: center; font: 600 .72rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--fog); }
.book__hint { margin: 0; }
@media (prefers-reduced-motion: reduce) { .leaf { transition: none; } }

/* Running heads (title / author) at the top of text pages */
.page__head { position: absolute; top: calc(var(--ph) * .032); left: 0; right: 0; text-align: center; font: 500 calc(var(--fs) * .62)/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: #8a7d6a; pointer-events: none; }

.signup__finish { display: flex; width: fit-content; margin-top: 14px; }

/* Book page: even space above and below the trail drawing between the hero and The Story */
.hero:has(.hero__trail) { padding-bottom: 0; }
.hero__trail { margin-top: clamp(48px, 7vw, 96px); }
.hero:has(.hero__trail) + .section { padding-top: clamp(36px, 5.2vw, 72px); }
.prose__emblem { display: block; width: clamp(96px, 11vw, 140px); height: auto; margin: 0 auto 1.6rem; opacity: .9; }
.content-note { margin-top: 1.8rem; max-width: 62ch; font-size: .8rem; line-height: 1.5; opacity: .85; }
.content-note a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
/* The 988 line sits below the divider like the award lines on the other film cards */
.film-card__help a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

/* Book reader: novel-like margins. Wider sides with a little extra room at the
   spine, more space above the text, running heads and page numbers set in from the edges. */
.page { padding: calc(var(--ph) * .115) calc(var(--pw) * .13) calc(var(--ph) * .1); }
.page--left { padding-left: calc(var(--pw) * .13); padding-right: calc(var(--pw) * .155); }
.page--right { padding-left: calc(var(--pw) * .155); padding-right: calc(var(--pw) * .13); }
.page__head { top: calc(var(--ph) * .052); }
.page__num { bottom: calc(var(--ph) * .045); }
.is-single .page--right { padding: calc(var(--ph) * .1) calc(var(--pw) * .1) calc(var(--ph) * .09); }

/* Phones held upright: center the homepage portrait and keep it smaller so the
   name and new-novel banner come up sooner. */
@media (max-width: 720px) and (orientation: portrait) {
  .hero__portrait { justify-self: center; max-width: 280px; }
  .hero--home .hero__text { text-align: center; }
  .hero--home .announce { margin-left: auto; margin-right: auto; }
  .hero--home .hero__lede { margin-left: auto; margin-right: auto; text-wrap: balance; }
  .hero--home .hero__actions { justify-content: center; }
  /* The Seventh Mile page hero (the only hero with a book cover) */
  .hero:has(.hero__cover) .hero__text { text-align: center; }
  .hero:has(.hero__cover) .hero__lede { margin-left: auto; margin-right: auto; text-wrap: balance; }
  .hero:has(.hero__cover) .chips, .hero:has(.hero__cover) .hero__actions { justify-content: center; }
  /* Homepage book feature: center the cover, tags, title, tagline, note and buttons;
     the two story paragraphs stay left-aligned for easier reading. */
  .feature__cover { justify-self: center; }
  .feature .chips, .feature .hero__actions { justify-content: center; }
  .feature__title, .feature__lede, .feature__body > .small { text-align: center; }
  .feature__lede { text-wrap: balance; }
}
/* Small phones: About the Author card centered, with a larger photo. */
@media (max-width: 520px) {
  .author-strip { text-align: center; justify-items: center; }
  .author-strip__img { max-width: 210px; }
  .author-strip__text { text-wrap: balance; }
}
/* Festival selections use the same orange laurels and tag as the wins. */
.laurel--sel .laurel__branch { color: var(--ember); opacity: .75; }
.laurel--sel .laurel__tag { color: var(--ember); }


/* ===== Storyboard slideshow (book page) ===== */
.reel{position:relative;width:100%;aspect-ratio:16/9;max-height:min(82vh,760px);overflow:hidden;background:#05090a;border-block:1px solid var(--line)}
.reel__slide{position:absolute;inset:0;margin:0;opacity:0;transition:opacity 1.6s ease;display:grid;align-items:end}
.reel__slide.is-active{opacity:1;z-index:2}
/* The outgoing frame stays fully visible underneath while the next one fades in over it,
   and keeps its zoom, so there is no dip or snap between frames. */
.reel__slide.is-leaving{opacity:1;z-index:1;transition:none}
.reel__slide picture{position:absolute;top:0;bottom:0;left:0;right:0;margin:0 auto;width:min(100%,calc(min(82vh,760px) * 16 / 9));overflow:hidden}
.reel__slide img{width:100%;height:100%;object-fit:cover;object-position:var(--fx,50%) var(--fy,45%);transform:scale(var(--s0,1.03));filter:saturate(.85) contrast(1.03)}
/* Slow drift (Ken Burns). reel.js gives each frame a random start/end zoom and pan
   every time it comes up (--s0/--s1, --x0/--y0, --x1/--y1, and duration --dd), so the motion differs from
   slide to slide: some push in, some pull back, some just glide sideways. The pan never
   exceeds the zoom margin, so no image edge ever shows. */
.reel__slide.is-active img,.reel__slide.is-leaving img{animation:reel-drift var(--dd,15s) linear forwards}
@keyframes reel-drift{
  from{transform:scale(var(--s0,1.03)) translate(var(--x0,0%),var(--y0,0%))}
  to{transform:scale(var(--s1,1.05)) translate(var(--x1,0%),var(--y1,0%))}
}
.reel__slide::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(5,9,10,.3) 0%,rgba(5,9,10,0) 16%,rgba(5,9,10,0) 58%,rgba(5,9,10,.8) 100%)}
.reel__slide figcaption{position:relative;z-index:1;width:100%;padding-bottom:clamp(58px,6vw,84px);display:flex;flex-direction:column;gap:.6rem}
.reel__ch{font:600 .72rem/1 var(--sans);letter-spacing:.24em;text-transform:uppercase;color:var(--ember)}
.reel__q{font:italic 400 clamp(1.25rem,2vw,1.75rem)/1.35 var(--serif);color:var(--bone);max-width:44em;text-wrap:pretty;text-shadow:0 1px 3px rgba(0,0,0,.7),0 2px 18px rgba(0,0,0,.55)}
.reel__slide figcaption>*{opacity:0;transform:translateY(10px);transition:opacity .4s ease,transform .4s ease}
.reel__slide.is-active figcaption>*{opacity:1;transform:none;transition:opacity .9s ease .8s,transform .9s ease .8s}
.reel__bar{position:absolute;z-index:3;left:0;right:0;bottom:0;padding-bottom:clamp(20px,3vw,32px)}
.reel__bar .wrap{display:flex;align-items:center;gap:14px}
.reel__dots{display:flex;gap:6px;flex:1;max-width:520px}
.reel__dot{flex:1;height:23px;padding:10px 0;border:0;margin:0;background:none;cursor:pointer;position:relative}
.reel__dot::before{content:"";position:absolute;left:0;right:0;top:10px;height:3px;border-radius:2px;background:rgba(232,228,218,.22)}
.reel__dot:hover::before{background:rgba(232,228,218,.45)}
.reel__dot::after{content:"";position:absolute;left:0;right:0;top:10px;height:3px;border-radius:2px;background:var(--ember);transform:scaleX(0);transform-origin:left}
.reel__dot.is-done::after{transform:scaleX(1)}
.reel__dot.is-active::after{animation:reel-fill var(--dur,7s) linear forwards}
.reel.is-paused .reel__dot.is-active::after{animation-play-state:paused}
.reel.is-paused .reel__slide.is-active img,.reel.is-paused .reel__slide.is-leaving img{animation-play-state:paused}
@keyframes reel-fill{to{transform:scaleX(1)}}
.reel__btn{width:40px;height:40px;border-radius:50%;border:1px solid rgba(232,228,218,.3);background:rgba(5,9,10,.45);color:var(--bone);display:grid;place-items:center;cursor:pointer;flex:none}
.reel__btn:hover{border-color:var(--ember);color:var(--ember)}
.reel__btn svg{width:14px;height:14px;fill:currentColor}
.reel__btn svg path[fill="none"]{fill:none}
.reel__bar .wrap{gap:10px}
.reel__dots{margin-right:6px}
/* Upright phones and tablets: show each frame whole at full width, caption underneath.
   All slides share one grid cell, so the slideshow keeps the height of the longest caption. */
@media (max-width:1024px) and (orientation:portrait){
  .reel{height:auto;min-height:0;aspect-ratio:auto;max-height:none;display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto auto;background:var(--ground)}
  .reel__slide{position:relative;inset:auto;grid-area:1/1;display:block}
  .reel__slide picture{position:relative;inset:auto;display:block;width:100%;aspect-ratio:16/9}
  .reel__slide img{object-position:50% 50%}
  .reel__slide::after{display:none}
  .reel__slide figcaption{padding:1.1rem var(--gutter) 1rem;text-align:center;align-items:center;gap:.55rem}
  .reel__q{font:italic 400 1.12rem/1.4 var(--serif);letter-spacing:0;text-shadow:none;max-width:30ch;text-wrap:balance}
  .reel__ch{font-size:.62rem}
  .reel__bar{position:relative;grid-area:2/1;padding:0 0 1.1rem}
  .reel__bar .wrap{justify-content:center}
  .reel__btn{width:34px;height:34px}

}
@media (prefers-reduced-motion:reduce){.reel__slide.is-active img,.reel__slide.is-leaving img{animation:none}.reel__slide figcaption>*{transform:none}}

/* ===== The Seventh Mile cover as a 3D paperback =====
   The cover turns slightly away to the left so the page block shows along its right
   edge. ::before is the page block (cream page edges between thin cover-card edges),
   folded back from the right edge; ::after lays the spine hinge crease and a soft
   gloss over the front. Percent widths keep the thickness in proportion at any size. */
.hero__cover picture, .feature__cover picture, .get__cover picture {
  --ry: -28deg;
  position: relative; display: block; transform-style: preserve-3d;
  transform: perspective(1600px) rotateY(var(--ry)) rotateX(3deg);
  transition: transform .8s cubic-bezier(.2, .7, .2, 1);
}
.hero__cover:hover picture, .feature__cover:hover picture, .feature__cover:focus-visible picture { --ry: -12deg; }
.hero__cover img, .feature__cover img, .get__cover img {
  border-radius: 2px 5px 5px 2px;
  box-shadow: 0 40px 70px -24px rgba(0, 0, 0, .85), 22px 26px 50px -18px rgba(0, 0, 0, .7);
}
.hero__cover picture::before, .feature__cover picture::before, .get__cover picture::before {
  content: ""; position: absolute; top: .5%; bottom: .5%; left: calc(100% - 1px); width: 10%;
  transform-origin: left center; transform: rotateY(90deg);
  background:
    linear-gradient(to bottom, rgba(0,0,0,.35), transparent 6%, transparent 94%, rgba(0,0,0,.35)),
    linear-gradient(to right, #1b2124 0 2px, transparent 2px calc(100% - 2px), #1b2124 calc(100% - 2px)),
    linear-gradient(to right, rgba(0,0,0,0), rgba(0,0,0,.4)),
    repeating-linear-gradient(to right, #ddd4c1 0 1px, #bdb39e 1px 2px, #d4cab6 2px 3px);
  border-radius: 0 2px 2px 0;
}
.hero__cover picture::after, .feature__cover picture::after, .get__cover picture::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: 2px 5px 5px 2px;
  transform: translateZ(.5px);
  background:
    linear-gradient(to right, rgba(0,0,0,.55) 0, rgba(0,0,0,.15) 1.2%, rgba(255,255,255,.22) 2.4%, rgba(255,255,255,0) 3.8%, rgba(0,0,0,.28) 4.8%, rgba(0,0,0,0) 7.5%),
    linear-gradient(105deg, rgba(255,255,255,0) 30%, rgba(255,255,255,.07) 46%, rgba(255,255,255,0) 62%),
    linear-gradient(to left, rgba(255,255,255,.08), rgba(255,255,255,0) 1.5%);
}
@media (prefers-reduced-motion: reduce) {
  .hero__cover picture, .feature__cover picture, .get__cover picture { transition: none; }
}

/* Slideshow controls, quieter: thinner, shorter progress bar and small borderless
   buttons, faded back until the visitor hovers the slideshow or tabs into it. */
.reel__bar .wrap{gap:4px}
.reel__dots{max-width:280px;gap:4px;margin-right:10px}
.reel__dot{height:17px;padding:8px 0}
.reel__dot::before,.reel__dot::after{top:8px;height:2px;border-radius:1px}
.reel__dot::before{background:rgba(232,228,218,.18)}
.reel__dot::after{background:rgba(217,130,75,.85)}
.reel__btn{width:28px;height:28px;border:0;background:none;color:rgba(232,228,218,.85)}
.reel__btn svg{width:11px;height:11px}
.reel__btn:hover{color:var(--ember)}
.reel__bar{opacity:.6;transition:opacity .4s}
.reel:hover .reel__bar,.reel__bar:focus-within{opacity:1}
@media (hover:none){.reel__bar{opacity:.8}}
@media (max-width:720px) and (orientation:portrait){
  .reel__btn{width:32px;height:32px}
  .reel__dots{max-width:200px}
}
/* Slideshow controls: no focus ring after a mouse click or tap; a quiet ember ring
   for keyboard users instead of the browser's default blue. */
.reel__btn:focus,.reel__dot:focus{outline:none}
.reel__btn:focus-visible{outline:1.5px solid var(--ember);outline-offset:2px}
.reel__dot:focus-visible{outline:1.5px solid var(--ember);outline-offset:1px}

/* ===== Book-page quote beside a storyboard close-up (Aiden glaring) =====
   Desktop/tablet: the quote sits on the left over plain dark ground; the frame fills
   the right side and fades into the dark behind the text. Phones: the image sits on
   top and fades down into the quote below it. Same italic as the slideshow captions. */
.quote--scene { position: relative; overflow: hidden; background: #0b0f10; text-align: left; padding: clamp(110px, 14vw, 190px) 0; }
.quote__bg {
  position: absolute; top: 0; bottom: 0; left: 32%; right: 0;
  background: url(../img/storyboards/quote-glare-1088.jpg) center 30% / cover no-repeat;
  background-image: image-set(url(../img/storyboards/quote-glare-1088.webp) type("image/webp"), url(../img/storyboards/quote-glare-1088.jpg) type("image/jpeg"));
  filter: saturate(.8) brightness(1.2) contrast(1.05);
}
.quote--scene::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, #0b0f10 30%, rgba(11, 15, 16, .7) 45%, rgba(11, 15, 16, .02) 66%, rgba(11, 15, 16, .2)),
              linear-gradient(180deg, rgba(11, 15, 16, .9), transparent 18%, transparent 82%, rgba(11, 15, 16, .9));
}
.quote--scene .wrap { position: relative; z-index: 2; }
.quote--scene blockquote { margin: 0; max-width: min(520px, 44%); }
@media (min-width: 721px) and (max-width: 1100px) { .quote__bg { left: 38%; } .quote--scene p { font-size: clamp(1.4rem, 2.6vw, 2rem); } }
.quote--scene p { font: italic 400 clamp(1.7rem, 3vw, 2.6rem)/1.3 var(--serif); letter-spacing: 0; text-shadow: 0 2px 22px rgba(0, 0, 0, .65); }
.quote__src { display: block; margin-top: 1.6rem; font: 600 .72rem/1 var(--sans); letter-spacing: .28em; text-transform: uppercase; color: var(--ember); }
@media (max-width: 720px) {
  .quote--scene { text-align: center; padding: min(62vw, 300px) 0 64px; }
  .quote__bg { left: 0; bottom: auto; height: min(78vw, 380px); background-position: 55% 25%;
    background-image: image-set(url(../img/storyboards/quote-glare-720.webp) type("image/webp"), url(../img/storyboards/quote-glare-1088.jpg) type("image/jpeg")); }
  .quote--scene::after { background: linear-gradient(180deg, rgba(11, 15, 16, .6) 0%, rgba(11, 15, 16, .05) 18%, rgba(11, 15, 16, .2) min(40vw, 190px), #0b0f10 min(78vw, 380px)); }
  .quote--scene blockquote { margin: 0 auto; max-width: 30ch; }
  .quote--scene p { font-size: 1.5rem; text-wrap: balance; }
}

/* ===== The Story: heading over a tall misty-forest image =====
   The picture fills the left column and the eyebrow + heading sit on its misty upper
   part (all three share one grid cell). All four edges fade into the page (two
   gradient masks intersected); a soft dark wash behind the text keeps it readable.
   The block's height follows the window so it always fits while pinned. */
.split__label { display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; }
.split__label > * { grid-area: 1 / 1; }
.split__label .eyebrow, .split__label h2 { position: relative; z-index: 2; text-shadow: 0 2px 18px rgba(5, 9, 10, .8), 0 0 2px rgba(5, 9, 10, .5); }
.split__label .eyebrow { align-self: start; padding-top: 18px; }
.split__label h2 { align-self: start; margin-top: calc(18px + 2.4rem); }
.split__art { position: relative; display: block; z-index: 1; margin: 0; }
.split__art img {
  width: 100%; height: clamp(520px, calc(100vh - 150px), 860px); object-fit: cover; object-position: center 40%;
  filter: saturate(.85);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent), linear-gradient(180deg, transparent, #000 8%, #000 80%, transparent);
  -webkit-mask-composite: source-in;
          mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent), linear-gradient(180deg, transparent, #000 8%, #000 80%, transparent);
          mask-composite: intersect;
}
.split__art::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(11, 15, 16, .55), rgba(11, 15, 16, .25) 38%, transparent 55%); }
@media (max-width: 720px) {
  .split__art img { height: min(130vw, 560px); }
  .split__label .eyebrow { padding-top: 10px; }
  .split__label h2 { margin-top: calc(10px + 2.2rem); }
}
/* Wider screens: let the forest bleed past the column into the page margin and the
   gap beside the synopsis (the faded edges keep it from looking boxed in). */
@media (min-width: 721px) {
  .split__art { margin-left: calc(-1 * clamp(24px, 5vw, 90px)); width: calc(100% + clamp(24px, 5vw, 90px) + clamp(16px, 3vw, 56px)); }
}

/* ===== Book page: About the Author, larger =====
   Wider card, bigger portrait, larger text and a second paragraph (from the homepage bio). */
.author-strip { grid-template-columns: minmax(200px, 300px) 1fr; gap: clamp(1.75rem, 4vw, 3.5rem); max-width: 1100px; padding: clamp(1.25rem, 2.5vw, 2.25rem); }
.author-strip__img img { border-radius: 12px; }
.author-strip .eyebrow { margin-bottom: 1rem; }
.author-strip__text { font-size: clamp(1.05rem, 1.35vw, 1.22rem); line-height: 1.7; margin: 0 0 1rem; max-width: 62ch; }
.author-strip .link-arrow { margin-top: .6rem; }
@media (min-width: 521px) and (max-width: 900px) { .author-strip { grid-template-columns: 220px 1fr; } }
@media (max-width: 520px) { .author-strip { grid-template-columns: 1fr; } .author-strip__img { max-width: 210px; } .author-strip__text { margin-left: auto; margin-right: auto; } }

/* The box above is 16:9 like the frames. When the window is too short for that (wide
   monitors, phones on their side), the frame keeps its full 16:9 shape, centered on dark
   ground, so no part of any image is ever cut off.
   Upright tablets use the caption-underneath layout, with slightly larger type. */
@media (min-width:721px) and (max-width:1024px) and (orientation:portrait){
  .reel__q{font-size:1.32rem;max-width:42ch}
  .reel__ch{font-size:.68rem}
  .reel__dots{max-width:280px}
}

/* ===== Book page opening screen: forest background =====
   One of six forest images (picked at random by a tiny inline script in the page) fills
   the screen behind the title and cover. It's dimmed, darkest behind the title on the
   left, with a faint warm glow rising beneath the cover. Phones darken it from the top
   down instead, since the cover sits above the text there. */
.hero__bg { position: absolute; inset: 0; background: center 55% / cover no-repeat; filter: saturate(.8) brightness(.7); }
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 30% 36% at 71% 92%, rgba(217, 120, 60, .13), transparent 70%),
    linear-gradient(90deg, rgba(11, 15, 16, .88) 0%, rgba(11, 15, 16, .6) 38%, rgba(11, 15, 16, .15) 68%, rgba(11, 15, 16, .3)),
    linear-gradient(180deg, rgba(11, 15, 16, .55), transparent 22%);
}
@media (max-width: 900px) {
  .hero__bg { background-position: 70% 50%; }
  .hero__bg::after {
    background:
      radial-gradient(ellipse 60% 26% at 50% 38%, rgba(217, 120, 60, .1), transparent 70%),
      linear-gradient(180deg, rgba(11, 15, 16, .45) 0%, rgba(11, 15, 16, .35) 30%, rgba(11, 15, 16, .82) 55%, #0b0f10 92%);
  }
}
@media (min-width: 721px) and (max-width: 900px) and (orientation: portrait), (min-width: 721px) and (max-width: 900px) and (orientation: landscape) {
  .hero__bg::after {
    background:
      radial-gradient(ellipse 30% 36% at 72% 92%, rgba(217, 120, 60, .13), transparent 70%),
      linear-gradient(90deg, rgba(11, 15, 16, .88) 0%, rgba(11, 15, 16, .6) 45%, rgba(11, 15, 16, .2) 75%, rgba(11, 15, 16, .35)),
      linear-gradient(180deg, rgba(11, 15, 16, .55), transparent 22%);
  }
}

/* Opening screen to The Story: the forest dissolves gradually into the page's own dark
   green (mask, so it shows the hero's base colour, which matches the next section),
   and a smaller trail drawing sits in the green just below it. */
.hero__bg { -webkit-mask-image: linear-gradient(180deg, #000 55%, rgba(0, 0, 0, .55) 75%, transparent 100%); mask-image: linear-gradient(180deg, #000 55%, rgba(0, 0, 0, .55) 75%, transparent 100%); }
.hero--scene { background: var(--ground); }
#book.section { padding-top: clamp(8px, 1.2vw, 16px); }
.story__trail { display: block; width: min(560px, 72vw); height: auto; margin: 0 auto clamp(40px, 6vw, 80px); opacity: .32; }
/* Upright tablets: the full-screen opening leaves a tall empty band under the cover, so
   let it size to its content there, keeping the trail drawing evenly spaced. */
@media (min-width: 721px) and (max-width: 1024px) and (orientation: portrait) {
  .hero--scene { min-height: auto; padding-bottom: 30px; }
}
/* Soft warm halo behind the book so it separates from the forest background. */
.hero--scene .hero__cover { position: relative; isolation: isolate; }
.hero--scene .hero__cover::before {
  content: ""; position: absolute; z-index: -1; inset: -22% -38% -16%; pointer-events: none;
  background: radial-gradient(ellipse 50% 50% at 50% 52%, rgba(217, 120, 60, .15) 0%, rgba(217, 120, 60, .12) 48%, rgba(217, 120, 60, .05) 70%, transparent 100%);
  filter: blur(16px);
}

/* ===== Release section ("Walk the Seventh Mile"): forest background =====
   Mirror of the opening screen: one of six images (picked at random by an inline
   script) with its detail on the left behind the book, darkening toward the text on
   the right, fading into the section colour at top and bottom, and a hint of warm glow
   behind the book. Phones (no cover shown) darken it evenly behind the text. */
.get--scene { position: relative; overflow: hidden; }
.get--scene > .wrap { position: relative; z-index: 1; }
.get__bg {
  position: absolute; inset: 0; background: center 55% / cover no-repeat; filter: saturate(.8) brightness(.72);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 20%, #000 78%, transparent 100%);
          mask-image: linear-gradient(180deg, transparent 0%, #000 20%, #000 78%, transparent 100%);
}
.get__bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(270deg, rgba(11, 15, 16, .9) 0%, rgba(11, 15, 16, .65) 40%, rgba(11, 15, 16, .15) 70%, rgba(11, 15, 16, .3));
}
.get--scene .get__cover { position: relative; isolation: isolate; }
.get--scene .get__cover::before {
  content: ""; position: absolute; z-index: -1; inset: -22% -38% -16%; pointer-events: none;
  background: radial-gradient(ellipse 50% 50% at 50% 52%, rgba(217, 120, 60, .15) 0%, rgba(217, 120, 60, .12) 48%, rgba(217, 120, 60, .05) 70%, transparent 100%);
  filter: blur(16px);
}
@media (max-width: 720px) {
  .get__bg { background-position: 30% 50%; }
  .get__bg::after { background: rgba(11, 15, 16, .72); }
}
/* Release section: push the text block to the right edge of the content area so it
   sits in the empty, darker side of the background image. */
@media (min-width: 721px) {
  .get--scene .get__body { justify-self: end; width: fit-content; max-width: 640px; }
}
/* Release section without the book: the text sits alone on the right half, over the
   darker side of the background, leaving the scene on the left uncovered. */
.get--scene .get { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 721px) {
  .get--scene .get__body { justify-self: end; width: min(680px, 60%); max-width: none; }
}
@media (min-width: 721px) and (max-width: 1024px) {
  .get--scene .get__body { width: min(560px, 62%); }
}
/* Release section text, sized to the screen rather than the page column: it always
   sits in the right ~45% of the window (the dark, empty side of the image), a set
   distance from the right edge, on any width from tablet up. */
@media (min-width: 721px) {
  .get--scene > .wrap.get { max-width: none; padding-left: var(--gutter); padding-right: clamp(24px, 6vw, 120px); }
  .get--scene .get__body { justify-self: end; width: clamp(500px, 44vw, 760px); }
}
@media (min-width: 721px) and (max-width: 1024px) {
  .get--scene .get__body { width: min(620px, 62vw); }
}
@media (min-width: 1025px) and (max-width: 1320px) {
  .get--scene .get__body { width: min(630px, 54vw); }
}

/* Book page opening: fade in one group after another. 1) the eyebrow and title,
   2) the tagline, tags and buttons, 3) the book. (Reduced-motion visitors see
   everything at once, via the existing .reveal rule.) */
.js .hero--scene .reveal { transition-duration: 1.1s, 1.1s; }
.js .hero--scene .hero__text .eyebrow.reveal,
.js .hero--scene .hero__title.reveal { transition-delay: .15s; }
.js .hero--scene .hero__lede.reveal { transition-delay: .9s; }
.js .hero--scene .chips.reveal { transition-delay: 1.05s; }
.js .hero--scene .hero__actions.reveal { transition-delay: 1.2s; }
.js .hero--scene .hero__cover.reveal { transition-delay: 1.9s; transition-duration: 1.4s, 1.4s; }
@media (prefers-reduced-motion: reduce) { .js .hero--scene .reveal { transition: none; } }
/* Smoother version of the opening fade: longer, with a gentle ease-in-out instead of
   the default quick start, a shorter upward drift, and more overlap between groups. */
.js .hero--scene .reveal { transform: translateY(10px); transition-property: opacity, transform; transition-duration: 1.8s, 2.2s; transition-timing-function: cubic-bezier(.45, 0, .25, 1), cubic-bezier(.25, .1, .25, 1); }
.js .hero--scene .reveal.is-in { transform: none; }
.js .hero--scene .hero__text .eyebrow.reveal,
.js .hero--scene .hero__title.reveal { transition-delay: .1s; }
.js .hero--scene .hero__lede.reveal { transition-delay: .8s; }
.js .hero--scene .chips.reveal { transition-delay: 1s; }
.js .hero--scene .hero__actions.reveal { transition-delay: 1.2s; }
.js .hero--scene .hero__cover.reveal { transition-delay: 1.6s; transition-duration: 2.2s, 2.6s; }
@media (prefers-reduced-motion: reduce) { .js .hero--scene .reveal { transition: none; transform: none; } }
/* The warm glow behind the book waits until the book has faded in, then slowly
   comes up (the book starts at 1.6s and is fully in by about 3.8s). */
.js .hero--scene .hero__cover::before { opacity: 0; transition: opacity 3s cubic-bezier(.45, 0, .25, 1) 4.4s; }
.js .hero--scene .hero__cover.is-in::before { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .js .hero--scene .hero__cover::before { opacity: 1; transition: none; } }

/* ===== Chapter One narration (read-along) =====
   A slim player above the book. While it plays, the book turns its own pages and
   the paragraph being read stays dark while the rest of the page dims slightly. */
.listen {
  display: flex; align-items: center; gap: 14px; width: min(100%, calc(var(--pw) * 2)); box-sizing: border-box;
  padding: 10px 16px 10px 10px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 255, 255, .025);
}
.book__stage.is-single ~ .listen, .book:has(.book__stage.is-single) .listen { width: min(100%, var(--pw)); }
.listen__play {
  flex: none; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--ember); color: var(--ground);
  display: grid; place-items: center; cursor: pointer; transition: background .2s, transform .2s;
}
.listen__play:hover { background: var(--ember-soft); }
.listen__play svg { width: 20px; height: 20px; fill: currentColor; }
.listen__play .i-pause, .listen.is-playing .listen__play .i-play { display: none; }
.listen.is-playing .listen__play .i-pause { display: block; }
.listen__main { flex: 1; min-width: 0; display: grid; gap: 7px; }
.listen__label { margin: 0; font: 600 .78rem/1.2 var(--sans); letter-spacing: .04em; color: var(--bone); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.listen__label span { font-weight: 400; color: var(--fog); margin-left: .5em; }
.listen__seek {
  --p: 0%; -webkit-appearance: none; appearance: none; width: 100%; height: 14px; margin: 0; background: transparent; cursor: pointer;
}
.listen__seek::-webkit-slider-runnable-track { height: 3px; border-radius: 2px; background: linear-gradient(90deg, var(--ember) var(--p), rgba(232, 228, 218, .2) var(--p)); }
.listen__seek::-moz-range-track { height: 3px; border-radius: 2px; background: linear-gradient(90deg, var(--ember) var(--p), rgba(232, 228, 218, .2) var(--p)); }
.listen__seek::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 12px; margin-top: -4.5px; border-radius: 50%; background: var(--bone); border: 0; }
.listen__seek::-moz-range-thumb { width: 12px; height: 12px; border-radius: 50%; background: var(--bone); border: 0; }
.listen__time { flex: none; font: 500 .74rem/1 var(--sans); font-variant-numeric: tabular-nums; color: var(--fog); }
.listen__btn, .listen__speed {
  flex: none; height: 34px; min-width: 34px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--bone);
  display: grid; place-items: center; cursor: pointer; font: 600 .74rem/1 var(--sans); padding: 0 8px; transition: border-color .2s, color .2s;
}
.listen__btn:hover, .listen__speed:hover { border-color: var(--ember); color: var(--ember); }
.listen__btn svg { width: 20px; height: 20px; fill: currentColor; }
.listen button:focus { outline: none; }
.listen button:focus-visible { outline: 1.5px solid var(--ember); outline-offset: 2px; }
/* read-along focus on the page */
.page p { transition: color .6s; }
.book.is-narrating .page p { color: #8a8070; }
.book.is-narrating .page p.is-reading { color: #2b2620; }
@media (max-width: 600px) {
  .listen { flex-wrap: wrap; border-radius: 22px; gap: 10px 12px; padding: 10px 12px; }
  .listen__main { flex-basis: calc(100% - 60px); }
  .listen__label span { display: none; }
  .listen__time { margin-left: 58px; }
  .listen__btn { margin-left: auto; }
}

/* The display font (Bebas Neue) is all capitals by design and loads a moment after
   the page. Set these headings in capitals explicitly, so the stand-in font shown
   while it loads also shows capitals instead of the mixed-case source text. */
h1, h2, h3, .brand, .quote p, .laurels__award, .laurel__award, .stats__num, .stat__num,
.page .pg-chapter h2, .page--title .t-book { text-transform: uppercase; }
.quote--scene p { text-transform: none; }
.listen[hidden] { display: none; }

/* Back button at the top of the Chapter One page */
.backlink {
  align-self: flex-start; display: inline-flex; align-items: center; gap: .55rem;
  font: 600 .85rem/1 var(--sans); letter-spacing: .03em; color: var(--bone); text-decoration: none;
  padding: .75rem 1.15rem .75rem 1rem; border: 1px solid var(--line); border-radius: 999px;
  background: rgba(232, 228, 218, .04); margin: 0 0 1.6rem; transition: border-color .2s, background .2s, color .2s;
}
.backlink span { color: var(--ember); font-size: 1.05rem; transition: transform .2s; }
.backlink:hover, .backlink:focus-visible { color: var(--bone); border-color: var(--ember); background: rgba(217, 130, 75, .1); }
.backlink:hover span { transform: translateX(-3px); }
.reader-head { padding-top: 96px; }
@media (max-width: 600px) { .backlink { margin-bottom: 1.3rem; } }

/* ===== Navigation fixes (Nov 2026 audit) ===== */
/* Books drop-down */
.nav__group { position: relative; }
/* Desktop: keep "Books" on the same line as the other menu links */
@media (min-width: 721px) { .nav__group { display: flex; align-items: center; } }
.nav__parent {
  display: inline-flex; align-items: center; gap: .4rem; background: none; border: 0; padding: 0; cursor: pointer;
  font: 500 1.08rem/1 var(--sans); color: var(--fog); letter-spacing: .04em;
}
.nav__parent.is-current { color: var(--bone); }
.nav__parent:hover, .nav__parent:focus-visible, .nav__group:hover .nav__parent { color: var(--ember); }
.nav__caret { width: 11px; height: 8px; transition: transform .2s; }
.nav__parent[aria-expanded="true"] .nav__caret { transform: rotate(180deg); }
.nav__sub {
  position: absolute; top: 100%; left: 50%; min-width: 210px; margin-top: 14px; padding: .5rem;
  display: flex; flex-direction: column; gap: 0;
  background: rgba(14, 21, 22, .98); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .45);
  opacity: 0; visibility: hidden; transform: translate(-50%, -6px); transition: opacity .18s, transform .18s, visibility 0s .18s;
}
.nav__sub::before { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px; } /* hover bridge */
.nav__group:hover .nav__sub, .nav__parent[aria-expanded="true"] + .nav__sub {
  opacity: 1; visibility: visible; transform: translate(-50%, 0); transition: opacity .18s, transform .18s, visibility 0s;
}
.nav__links .nav__sub a { font-size: .98rem; padding: .8rem .9rem; border-radius: 9px; white-space: nowrap; color: var(--fog); }
.nav__links .nav__sub a:hover, .nav__links .nav__sub a:focus-visible { background: rgba(232, 228, 218, .06); color: var(--ember); }
.nav__links .nav__sub a[aria-current="page"] { color: var(--bone); }
.nav__links .nav__sub a[aria-current="page"]::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--ember); margin: 0 .55rem .12em 0; }

/* Phone menu: solid background, book links listed under a "Books" label */
@media (max-width: 720px) {
  .nav__links { background: var(--ground); max-height: calc(100vh - 68px); overflow-y: auto; }
  .nav__parent { pointer-events: none; padding: 1.1rem 0 .4rem; font: 600 .72rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--ember); }
  .nav__parent.is-current { color: var(--ember); }
  .nav__caret { display: none; }
  .nav__sub, .nav__group:hover .nav__sub, .nav__parent[aria-expanded="true"] + .nav__sub {
    position: static; opacity: 1; visibility: visible; transform: none; min-width: 0; margin: 0; padding: 0 0 0 1rem;
    background: none; border: 0; border-left: 1px solid var(--line); border-radius: 0; box-shadow: none; transition: none;
  }
  .nav__sub::before { display: none; }
  .nav__links .nav__sub a { padding: .8rem 0; border-radius: 0; font-size: 1.05rem; }
  .nav__links .nav__sub a:last-child { border-bottom: 0; }
  .nav__group { border-bottom: 1px solid var(--line); padding-bottom: .4rem; }
}

/* Breadcrumb (book page hero) */
.crumbs { display: flex; align-items: center; gap: .6rem; font: 500 .85rem/1 var(--sans); letter-spacing: .04em; color: var(--fog); margin: 0 0 1.4rem; }
.crumbs a { color: var(--bone); text-decoration: none; border-bottom: 1px solid rgba(232, 228, 218, .35); padding-bottom: 2px; }
.crumbs a:hover { color: var(--ember); border-color: var(--ember); }
.crumbs span[aria-hidden] { color: var(--ember); }
.js .hero--scene .crumbs.reveal { transition-delay: .1s; }

/* Back-to-top button */
.to-top {
  position: fixed; right: max(18px, env(safe-area-inset-right)); bottom: max(18px, env(safe-area-inset-bottom)); z-index: 40;
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(14, 21, 22, .9); border: 1px solid var(--line); color: var(--bone);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .25s, transform .25s, visibility 0s .25s, border-color .2s, color .2s;
}
.to-top svg { width: 18px; height: 18px; }
.to-top.is-shown { opacity: 1; visibility: visible; transform: none; transition: opacity .25s, transform .25s, visibility 0s, border-color .2s, color .2s; }
.to-top:hover, .to-top:focus-visible { border-color: var(--ember); color: var(--ember); }
@media (prefers-reduced-motion: reduce) { .to-top { transition: none; } }

/* Footer: more links, wrap neatly */
.footer__links { flex-wrap: wrap; row-gap: .8rem; }
@media (max-width: 720px) and (orientation: portrait) { .hero--scene .crumbs { justify-content: center; } }

/* Books menu: "Read Chapter One" sits indented under The Seventh Mile */
.nav__links .nav__sub a.nav__child { padding-left: 2.1rem; font-size: .92rem; position: relative; }
.nav__links .nav__sub a.nav__child::after { content: ""; position: absolute; left: 1.15rem; top: 50%; width: .55rem; height: 1px; background: rgba(232, 228, 218, .28); }
.nav__links .nav__sub a.nav__child[aria-current="page"]::before { position: absolute; left: .55rem; top: 50%; margin: -3px 0 0; }
@media (max-width: 720px) {
  .nav__links .nav__sub a.nav__child { padding-left: 1.3rem; font-size: 1rem; }
  .nav__links .nav__sub a.nav__child::after { left: .2rem; }
  .nav__links .nav__sub a.nav__child[aria-current="page"]::before { left: -1.4rem; }
}
.nav__links .nav__sub a.nav__child[aria-current="page"]::after { display: none; }
.nav__links .nav__sub a.nav__child[aria-current="page"]::before { left: 1.2rem; }
@media (max-width: 720px) { .nav__links .nav__sub a.nav__child[aria-current="page"]::before { left: .2rem; } }

/* Menu: where you are (current page, or the homepage section in view) */
.nav__links a[aria-current="location"]:not(.nav__cta) { color: var(--bone); }
@media (min-width: 721px) {
  .nav__links > a, .nav__parent { position: relative; }
  .nav__links > a[aria-current]:not(.nav__cta)::after, .nav__parent.is-current::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -9px; height: 2px; border-radius: 2px; background: var(--ember);
  }
  .nav__parent.is-current::after { right: 1.1rem; }
}

/* Outside links: small ↗ shows they open in a new tab */
.ext { display: inline-block; margin-left: .2em; font-size: .85em; color: var(--ember); text-decoration: none; }
.link-arrow--ext::after { content: "↗"; }
.link-arrow--ext:hover::after { transform: translate(2px, -2px); }
.film-card__ext {
  position: absolute; top: 10px; right: 10px; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; font: 600 .9rem/1 var(--sans); color: var(--bone);
  background: rgba(10, 16, 17, .72); border: 1px solid rgba(232, 228, 218, .22);
  opacity: .8; transition: opacity .2s, background .2s, color .2s;
}
.film-card > a:hover .film-card__ext, .film-card > a:focus-visible .film-card__ext { opacity: 1; background: var(--ember); color: var(--ground); border-color: var(--ember); }

/* ===== Page not found (404.html) ===== */
.lost { position: relative; min-height: 100vh; min-height: 100svh; display: grid; align-items: center; padding: 120px 0 80px; overflow: hidden; text-align: center; }
.lost__bg {
  position: absolute; inset: 0; z-index: 0;
  background: url(/assets/img/hero-bg-3.jpg) center / cover no-repeat;
  background-image: image-set(url(/assets/img/hero-bg-3.webp) type("image/webp"), url(/assets/img/hero-bg-3.jpg) type("image/jpeg"));
  opacity: .7;
  -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent 100%); mask-image: linear-gradient(to bottom, #000 55%, transparent 100%);
}
.lost::after { content: ""; position: absolute; inset: 0; z-index: 0; background: radial-gradient(ellipse at center, rgba(10, 16, 17, .35), rgba(10, 16, 17, .85) 75%); }
.lost__inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; }
.lost__title { font-size: clamp(3.2rem, 9vw, 6.5rem); line-height: .95; margin: 0 0 1.2rem; }
.lost__title span { color: var(--fog); }
.lost__text { font: italic 400 clamp(1.1rem, 2.2vw, 1.35rem)/1.5 var(--serif); color: var(--bone); max-width: 32em; margin: 0 0 2.2rem; text-wrap: pretty; }
.lost__actions { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; }
@media (max-width: 520px) { .lost__actions { flex-direction: column; align-items: stretch; width: 100%; max-width: 320px; } .lost__actions .btn { justify-content: center; } }

/* ===== Homepage portrait: new studio photo, no frame, edges feathered into the page ===== */
.hero__portrait::before { display: none; }
.hero__portrait picture { border-radius: 0; box-shadow: none; overflow: visible; }
.hero__portrait img {
  filter: grayscale(1) contrast(1.05);
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 40%, #000 34%, rgba(0,0,0,.6) 52%, rgba(0,0,0,.22) 68%, transparent 84%);
          mask-image: radial-gradient(ellipse 50% 50% at 50% 40%, #000 34%, rgba(0,0,0,.6) 52%, rgba(0,0,0,.22) 68%, transparent 84%);
}
/* Larger than its column; negative margins so the faded edges don't make the hero taller */
@media (min-width: 1201px) {
  .hero__portrait {
    max-width: 950px; width: 210%; justify-self: end; margin-block: -190px -215px;
    margin-right: max(-130px, calc(-0.5 * (100vw - min(100vw, var(--wrap))) - 10px));
  }
}
@media (min-width: 1201px) and (max-width: 1439px) { .hero__portrait { width: 194%; } }
@media (min-width: 901px) and (max-width: 1200px) { .hero__portrait { max-width: 770px; width: 167%; justify-self: end; margin-block: -135px; } }
@media (min-width: 721px) and (max-width: 900px) { .hero__portrait { max-width: none; width: 148%; justify-self: end; margin-block: -70px; } }
@media (max-width: 720px) and (orientation: portrait) {
  .hero__portrait { justify-self: center; max-width: 560px; width: 150%; margin-top: -70px; margin-bottom: -110px; }
}
/* Nudge the portrait a little to the right (Dan's request) */
/* Shifted so the photo's visible right edge sits as far from the screen edge as the text does on the left */
@media (min-width: 1440px) { .hero__portrait { translate: calc(148px + 4vw) 0; } }
@media (min-width: 1201px) and (max-width: 1439px) { .hero__portrait { translate: calc(clamp(126px, calc(199px - (100vw - 1280px) * .45), 226px) + 4vw) 0; } }
@media (min-width: 901px) and (max-width: 1200px) { .hero__portrait { translate: calc(194px + (100vw - 1024px) * .205 + 1.5vw) 0; } }
@media (min-width: 721px) and (max-width: 900px) { .hero__portrait { translate: calc(165px + 4vw) 0; } }
/* Phones: your face sits left of center in the photo, so shift it right to center you on screen */
@media (max-width: 720px) and (orientation: portrait) { .hero__portrait { translate: 11% 0; } }
/* 20% larger on computers and tablets (phones keep their size), grown from the photo's right edge,
   then moved a little further right (Dan's request) */
@media (min-width: 721px) {
  .hero__portrait { scale: 1.2; transform-origin: 69% 42%; }
}

/* ===== About page ===== */
.about-hero { padding: 120px 0 clamp(24px, 4vw, 48px); background: radial-gradient(ellipse 60% 60% at 75% 30%, rgba(96, 110, 115, .28), transparent 70%), linear-gradient(180deg, #0d1516 0%, var(--ground) 80%); }
.about-hero__grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.about-hero__title { font-size: clamp(3.6rem, 9vw, 7.5rem); line-height: .92; margin: 0 0 1.4rem; }
.about-hero__title span:not(.visually-hidden) { color: var(--fog); }
.about-hero .signature { margin: 0; max-width: 30ch; }
.about-hero__photo { margin: 0; justify-self: end; max-width: 420px; width: 100%; }
.about-hero__photo img { width: 100%; filter: grayscale(1) contrast(1.05);
  -webkit-mask-image: radial-gradient(ellipse 58% 58% at 50% 42%, #000 50%, rgba(0,0,0,.5) 72%, transparent 92%);
          mask-image: radial-gradient(ellipse 58% 58% at 50% 42%, #000 50%, rgba(0,0,0,.5) 72%, transparent 92%); }
.about-bio__text { max-width: 68ch; margin: 0 auto; font-size: clamp(1.08rem, 1.4vw, 1.2rem); }
.about-bio__text .dropcap::first-letter { font-size: 4.2em; }
.about-studio .about__photo { margin: 0; }

.about-book { display: grid; grid-template-columns: 240px 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; max-width: 960px; }
.about-book__cover img { border-radius: 4px; box-shadow: 0 30px 60px -25px rgba(0,0,0,.9); transition: transform .3s; }
.about-book__cover:hover img { transform: translateY(-4px); }
.about-book h2 { margin-bottom: 1rem; }
.about-book__lede { font: italic 400 clamp(1.1rem, 1.6vw, 1.3rem)/1.55 var(--serif); color: var(--bone); max-width: 46ch; margin: 0 0 1.8rem; }

.credits { list-style: none; margin: 2rem 0 2.2rem; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 clamp(24px, 4vw, 56px); }
.credits__item { display: flex; flex-direction: column; gap: .3rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.credits__title { font: 400 1.6rem/1.05 var(--display); letter-spacing: .03em; text-transform: uppercase; color: var(--bone); text-decoration: none; }
.credits__title:hover { color: var(--ember); }
.credits__type { font: 600 .68rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--ember); }
.credits__honor { font: 500 .92rem/1.45 var(--sans); color: var(--fog); }
.credits__help { font: 500 .88rem/1.45 var(--sans); color: var(--fog); }
.credits__help a { color: var(--bone); }

.about-press { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.about-press h2 { margin-bottom: .8rem; }
.about-press__text { color: #d6d3ca; max-width: 52ch; margin: 0; line-height: 1.6; }

@media (max-width: 900px) { .credits { grid-template-columns: 1fr; } }
@media (max-width: 720px) {
  .about-hero { padding-top: 96px; }
  .about-hero__grid { grid-template-columns: 1fr; text-align: center; }
  .about-hero__photo { order: -1; justify-self: center; max-width: 300px; margin-bottom: -20px; }
  .about-hero .crumbs { justify-content: center; }
  .about-hero .signature { margin: 0 auto; border-left: 0; padding-left: 0; }
  .about-book { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .about-book__cover { max-width: 200px; }
  .about-book__lede { margin-left: auto; margin-right: auto; }
  .about-book .hero__actions { justify-content: center; }
  .about-press { flex-direction: column; align-items: flex-start; }
}
/* About hero: keep the name and the photo together in the middle instead of at opposite edges */
@media (min-width: 721px) {
  .about-hero__grid { grid-template-columns: auto minmax(0, 440px); justify-content: center; gap: clamp(24px, 4vw, 64px); }
  .about-hero__photo { justify-self: start; max-width: 440px; }
}
.about-hero__title span:not(.visually-hidden) { display: block; }
/* About photo: softer feather so no edge of the picture shows (Dan's request) */
.about-hero__photo img {
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 45%, #000 36%, rgba(0,0,0,.6) 56%, rgba(0,0,0,.22) 72%, transparent 88%);
          mask-image: radial-gradient(ellipse 50% 50% at 50% 45%, #000 36%, rgba(0,0,0,.6) 56%, rgba(0,0,0,.22) 72%, transparent 88%);
}
/* About photo a little larger on computers (Dan's request); faded edges overlap the space around it */
@media (min-width: 901px) {
  .about-hero__grid { grid-template-columns: auto minmax(0, 520px); }
  .about-hero__photo { max-width: 520px; margin-block: -30px; }
}
/* About photo: extra fade along the top edge so no line shows above the head */
.about-hero__photo img {
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 45%, #000 36%, rgba(0,0,0,.6) 56%, rgba(0,0,0,.22) 72%, transparent 88%), linear-gradient(to bottom, transparent 0%, #000 24%);
  -webkit-mask-composite: source-in;
          mask-image: radial-gradient(ellipse 50% 50% at 50% 45%, #000 36%, rgba(0,0,0,.6) 56%, rgba(0,0,0,.22) 72%, transparent 88%), linear-gradient(to bottom, transparent 0%, #000 24%);
          mask-composite: intersect;
}
/* About photo: plain framed picture, no fade (Dan's request) */
.about-hero__photo img { -webkit-mask-image: none; mask-image: none; border-radius: 14px; box-shadow: 0 40px 80px -30px rgba(0,0,0,.9); }
@media (min-width: 901px) { .about-hero__photo { margin-block: 0; } }
@media (max-width: 720px) { .about-hero__photo { margin-bottom: 8px; } }
/* About photo on computers: smaller, top lined up with the top of the text block (Dan's request) */
@media (min-width: 901px) {
  .about-hero__grid { grid-template-columns: auto minmax(0, 380px); align-items: start; }
  .about-hero__photo { max-width: 380px; }
}
/* About photo on computers: 15% smaller again (Dan's request) */
@media (min-width: 901px) {
  .about-hero__grid { grid-template-columns: auto minmax(0, 323px); }
  .about-hero__photo { max-width: 323px; }
}

/* Homepage opening: Dan's quote under the description (moved up from the old About section) */
.hero__quote { font-size: clamp(1.02rem, 1.4vw, 1.22rem); max-width: 36ch; margin: .2rem 0 2.2rem; }
@media (max-width: 720px) and (orientation: portrait) {
  .hero--home .hero__quote { border-left: 0; padding-left: 0; margin-left: auto; margin-right: auto; text-wrap: balance; }
}
.hero__quote { max-width: 48ch; text-wrap: balance; margin: 0 0 1.8rem; padding-top: .1rem; padding-bottom: .1rem; }
.hero--home .hero__lede { margin-bottom: 1.1rem; }

/* End-of-chapter card placed under the last line of the final text page */
.page .pg-end { display: flex; flex-direction: column; align-items: center; text-align: center; margin-top: 3.2em; }
.page .pg-end .t-ch { font: 600 11px/1 var(--sans); letter-spacing: .28em; text-transform: uppercase; color: #a85a2c; }
.page .pg-end .t-q { font: italic 400 calc(var(--fs) * 1.15)/1.5 var(--serif); color: #4a4135; margin: 1.2em 0 1.4em; max-width: 22ch; text-indent: 0; text-align: center; text-align-last: center; hyphens: none; }
.book.is-narrating .page .pg-end .t-q { color: #4a4135; }
.page .pg-end a { font: 600 13px/1 var(--sans); letter-spacing: .04em; color: #fff; background: #c46f3c; padding: .9em 1.3em; border-radius: 999px; text-decoration: none; }

/* While the book is being built, hide the plain chapter text so it doesn't flash,
   and hold the space with a quiet placeholder. */
.book-pending .chapter__text, .book-pending .chapter__end { display: none; }
.book-pending .chapter .wrap::before { content: "Opening the book\2026"; display: flex; align-items: center; justify-content: center; min-height: min(70vh, 680px); font: italic 400 1.05rem/1 var(--serif); color: var(--fog); opacity: .7; }

/* Homepage tagline, set larger */
.hero--home .hero__quote { font-size: clamp(1.25rem, 1.9vw, 1.6rem); line-height: 1.4; max-width: 34ch; }
@media (max-width: 720px) { .hero--home .hero__quote { font-size: 1.38rem; } }

/* About: tighter gap between the hero and the bio */
.about-bio { padding-top: clamp(20px, 2.5vw, 36px); }

/* About photo on computers: top lined up with the "Author · Screenwriter · Filmmaker"
   line (skipping the breadcrumb above it), and a little smaller so the bottom stays put. */
@media (min-width: 901px) {
  .about-hero__grid { grid-template-columns: auto minmax(0, 291px); }
  .about-hero__photo { max-width: 291px; margin-top: calc(1.4rem + 1.05rem); }
}
/* About photo on computers: nudged a little to the left (Dan's request) */
@media (min-width: 901px) { .about-hero__photo { translate: -10px 0; } }
@media (min-width: 1200px) { .about-hero__photo { translate: -28px 0; } }

/* Chapter One book: starts closed on the cover, then opens */
.book__stage { transition: transform 1.6s cubic-bezier(.45,.05,.25,1); }
.book.is-closed .book__stage:not(.is-single) { transform: translateX(calc(var(--pw) * -0.5)); }
.book__stage::before, .book__stage::after { transition: left 1.6s cubic-bezier(.45,.05,.25,1); }
.book.is-closed .book__stage:not(.is-single)::before { left: calc(var(--pw) + 4px); }
.book.is-closed .book__stage:not(.is-single)::after { left: calc(var(--pw) + 2px); }
.page.page--cover { padding: 0; background: #0b0f10; border-radius: 3px 8px 8px 3px; cursor: default; }
.page--cover picture, .page--cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.page.page--cover::after { left: 0; right: auto; width: 9%; background: linear-gradient(90deg, rgba(0,0,0,.55), rgba(255,255,255,.10) 18%, rgba(0,0,0,.22) 34%, transparent); }
.book.is-closed .leaf--cover { box-shadow: 0 30px 60px -28px rgba(0,0,0,.9); }
.book .listen, .book .book__controls, .book .book__hint { transition: opacity 1.8s ease 1.3s; }
.book:not(.is-open) .listen, .book:not(.is-open) .book__controls, .book:not(.is-open) .book__hint { opacity: 0; pointer-events: none; }
.book.no-anim .book__stage, .book.no-anim .book__stage::before, .book.no-anim .book__stage::after, .book.no-anim .listen, .book.no-anim .book__controls, .book.no-anim .book__hint { transition: none !important; }

/* Front matter shown while the book opens */
.page.page--endpaper { background: linear-gradient(180deg, #232b2d, #1a2123); }
.page--halftitle, .page--frontis { display: flex; align-items: center; justify-content: center; }
.page--halftitle .t-half { font: 400 calc(var(--fs) * 1.5)/1 var(--display); letter-spacing: .12em; text-transform: uppercase; color: #2b2620; margin-top: -12%; }
.page--frontis img { width: 34%; height: auto; filter: invert(1) brightness(.3); opacity: .8; margin-top: -10%; }
/* End card: keeps its measured spacing under the last line, and shares any leftover
   room on the page so it sits lower, centered in the empty space. Only the final page
   is affected, so page breaks elsewhere don't change. */
.page div:has(> .pg-end) { display: flex; flex-direction: column; }
.page .pg-end { flex: 1 1 auto; justify-content: center; }

/* Closed book fades in a moment after the page loads */
.book__stage { transition: transform 1.6s cubic-bezier(.45,.05,.25,1), opacity 1.6s ease; }
.book.is-unseen .book__stage { opacity: 0; }
/* End card: sit a little above the middle of the empty space (2 parts above, 3 below).
   The spacers have no height of their own, so page breaks are unaffected. */
.page .pg-end { justify-content: flex-start; }
.page .pg-end::before, .page .pg-end::after { content: ""; display: block; }
.page .pg-end::before { flex: 2 1 0; }
.page .pg-end::after { flex: 3 1 0; }

/* ===== Contact page (moved off the homepage 2026-11-22) ===== */
.contact-page { padding-top: calc(var(--section) + 24px); min-height: 70vh; }
.contact-page h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); }
.contact-page__aside { margin: 1.4rem 0 0; font: 400 .95rem/1.5 var(--sans); color: var(--fog); }
.contact-page__aside a { color: var(--ember-soft); }
/* Intro column shrinks to the heading's width, so the photo and the
   newsletter line line up with both ends of "GET IN TOUCH." */
/* Both columns start at the top. On desktop the form drops by the height of the
   breadcrumb + CONTACT label, so its intro line lines up with the top of "GET IN TOUCH." */
.contact-page .contact { align-items: start; grid-template-columns: auto 1fr; gap: clamp(48px, 6vw, 88px); }
@media (min-width: 901px) { .contact-page .contact__body { margin-top: 4.25rem; } }
.contact-page__intro { width: min-content; }
.contact-page__intro h1 { white-space: nowrap; }
.contact-page__photo { margin: 2.4rem 0 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.contact-page__photo img { display: block; width: 100%; height: auto; }
@media (max-width: 900px) { .contact-page__photo { display: none; } .contact-page__intro { width: auto; } .contact-page .contact { grid-template-columns: 1fr; gap: 32px; } }

/* Homepage statement between Books and Films */
.statement { padding: clamp(32px, 4.4vw, 54px) 0; border-top: 1px solid var(--line); }
.statement__text { font: italic 400 clamp(1.25rem, 2.4vw, 1.85rem)/1.45 var(--serif); color: var(--bone); max-width: 50ch; margin: 0 auto; text-align: center; text-wrap: balance; }
/* Scene-break ornament above and below the statement: hairlines that fade out, small ember diamond */
.statement__break { display: block; width: min(240px, 60vw); height: 12px; margin: 0 auto 1.6rem; overflow: visible; }
.statement__break--below { margin: 1.6rem auto 0; }
.statement__break line { stroke-width: 1; }
.statement__gem { fill: none; stroke: var(--ember); stroke-width: 1.2; }
/* Homepage: tagline sits evenly between the name and the buttons */
.hero--home .hero__title { margin-bottom: 1.1rem; }
.hero--home .hero__quote { margin-bottom: 2.2rem; }
@media (max-width: 720px) and (orientation: portrait) {
  .hero--home .hero__quote { margin-bottom: 1.45rem; }
}
/* Homepage: line the orange "New novel" tag up with the text below (pill border hangs just outside) */
.hero--home .announce { margin-left: calc(-.35rem - 1px); }
@media (max-width: 720px) and (orientation: portrait) {
  .hero--home .announce { margin-left: auto; }
}
/* Homepage: tighten the "New novel" banner to the width of the role line below it */
.hero--home .announce { gap: .5rem; padding-right: .7rem; font-size: .78rem; }
.hero--home .announce__tag { padding: .45rem .5rem; letter-spacing: .08em; }
/* Wide screens: one sentence per line, never re-wrapped */
@media (min-width: 721px) {
  .statement__text { max-width: none; }
  .statement__line { display: block; white-space: nowrap; }
}
