/* CALM AGAIN — sales page. Default CSS is the complete static page (no JS / reduced motion);
   html.motion switches the Turn to a pinned, scroll-driven stage. */

/* ───────── Grid helpers ───────── */
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 16px; }
@media (min-width: 600px) { .grid { grid-template-columns: repeat(8, minmax(0, 1fr)); column-gap: 20px; } }
@media (min-width: 1024px) { .grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; } }
.grid > * { grid-column: 1 / -1; min-width: 0; }

/* ───────── Night (hero + moments + start of the Turn) ───────── */
.night { position: relative; background: var(--night); color: var(--paper); }
.night-layer {
  position: sticky; top: 0; height: 100vh; height: 100svh; margin-bottom: -100vh; margin-bottom: -100svh;
  overflow: hidden; pointer-events: none; z-index: 0;
}
.night-layer .grain {
  position: absolute; inset: 0; opacity: .045;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
.thoughts { position: absolute; inset: 0; }
.thought { position: absolute; left: 0; top: 0; white-space: nowrap; will-change: transform; }
.thought .tv { display: block; opacity: 0; transition: opacity 1.2s var(--ease-out); }
.thought.is-on .tv { opacity: var(--o, .3); }
.thought .td {
  display: block; font: italic 400 var(--fs, 1rem)/1.2 var(--f-book); color: var(--paper);
  animation: drift var(--d, 18s) ease-in-out infinite alternate; animation-delay: var(--dl, 0s);
  transition: opacity .6s var(--ease-out), filter .6s var(--ease-out);
}
@keyframes drift {
  0% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(var(--dx, 8px), var(--dy, -6px), 0); }
  100% { transform: translate3d(calc(var(--dx, 8px) * -.6), calc(var(--dy, -6px) * -.8), 0); }
}
html.is-paused .thought .td { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .thought .td, .cue i { animation: none; } .thought .tv { transition: none; } }

/* Hero */
.hero { position: relative; z-index: 1; min-height: 100vh; min-height: 100svh; display: grid; place-items: center; text-align: center; padding-block: calc(var(--header-h) + var(--s-8)) var(--s-10); }
.hero-copy { display: grid; justify-items: center; gap: var(--s-5); }
.hero h1 { font-size: var(--t-xxl); line-height: .95; max-width: 12ch; }
.hero .sub { max-width: 40ch; color: rgba(242, 235, 228, .72); }
.hero-ctas { display: grid; justify-items: center; gap: var(--s-2); margin-top: var(--s-4); }
.hero-ctas .btn { min-width: 260px; }
.hero .micro { font-size: var(--t-xs); color: var(--cream-muted); letter-spacing: .02em; }
.cue { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); display: grid; justify-items: center; gap: 10px; font: 500 var(--t-xs)/1 var(--f-text); letter-spacing: .12em; text-transform: uppercase; color: var(--cream-muted); }
.cue i { width: 1px; height: 44px; background: linear-gradient(var(--cream-muted), transparent); transform-origin: top; animation: cue 2.6s var(--ease-inout) infinite; }
@keyframes cue { 0% { transform: scaleY(0); } 55% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }
@media (max-width: 599px) {
  .hero h1 { font-size: clamp(2.6rem, 11vw, 3.4rem); }
  .hero-ctas { width: 100%; }
  .hero-ctas .btn { width: 100%; min-width: 0; }
  .cue { display: none; }
}

/* Moments */
.moments { position: relative; z-index: 1; padding-block: var(--section); }
.moments .intro { display: grid; gap: var(--s-5); align-content: start; }
.moments h2 { font-size: var(--t-xl); line-height: 1.02; max-width: 14ch; }
.moments .intro p { color: var(--cream-muted); max-width: 40ch; }
.moment-list { display: grid; }
.moment { display: grid; gap: var(--s-3); padding-block: var(--s-6); border-top: 1px solid var(--hair-dark); }
.moment:last-child { border-bottom: 1px solid var(--hair-dark); }
.moment time { font: 500 var(--t-xs)/1.4 var(--f-text); letter-spacing: .12em; color: rgba(242, 235, 228, .5); font-variant-numeric: tabular-nums; }
.moment p { font: 400 var(--t-l)/1.2 var(--f-display); max-width: 28ch; }
.moments .bridge { display: grid; justify-items: start; gap: var(--s-2); margin-top: var(--s-7); }
.moments .bridge p { font: italic 400 var(--t-l)/1.2 var(--f-display); }
@media (min-width: 1024px) {
  .moments .intro { grid-column: 1 / 6; position: sticky; top: calc(var(--header-h) + var(--s-8)); align-self: start; }
  .moments .list-col { grid-column: 7 / 13; }
}
@media (max-width: 1023px) { .moments .list-col { margin-top: var(--s-8); } }

/* ───────── The Turn (static default: quote block + still dawn frame) ───────── */
.turn { position: relative; z-index: 1; }
.turn-stage { position: relative; }
.turn-bg { display: none; }
.turn-q { background: var(--night); color: var(--paper); text-align: center; padding: var(--section) var(--gutter); display: grid; justify-items: center; gap: var(--s-5); }
.turn-q blockquote { font: 400 var(--t-xl)/1.12 var(--f-book); max-width: 20ch; text-wrap: balance; }
.turn-q .w { transition: opacity .2s; }
.turn-q cite { font: 500 var(--t-xs)/1.4 var(--f-text); font-style: normal; letter-spacing: .12em; text-transform: uppercase; color: var(--cream-muted); }
.turn-frame { position: relative; height: 100vh; height: 100svh; min-height: 520px; overflow: hidden; background: var(--paper); }
.lake { position: absolute; inset: 0; }
.lake-img { position: absolute; left: 0; top: 0; width: 100%; height: 100%; object-fit: cover; object-position: 72% 60%; max-width: none; }
.lake-gl { position: absolute; inset: 0; width: 100%; height: 100%; }
.haze { position: absolute; left: 50%; top: var(--line-y, 74%); width: min(110vw, 1100px); height: 46vh; transform: translate(-50%, -62%); background: radial-gradient(50% 50% at 50% 50%, rgba(247, 242, 236, .55), rgba(247, 242, 236, 0) 70%); pointer-events: none; }
.dissolve { position: absolute; left: 0; right: 0; bottom: 0; height: 14%; background: linear-gradient(rgba(242, 235, 228, 0), var(--paper)); }
.horizon { position: absolute; left: 0; right: 0; top: var(--line-y, 74%); height: 1px; transform-origin: center;
  background: linear-gradient(90deg, rgba(23, 22, 42, 0), rgba(23, 22, 42, .5) 18%, rgba(23, 22, 42, .5) 82%, rgba(23, 22, 42, 0)); }
.glow { position: absolute; left: 50%; top: var(--line-y, 74%); width: min(90vw, 900px); height: 40vh; transform: translate(-50%, -50%); background: radial-gradient(50% 50% at 50% 50%, rgba(224, 154, 128, .55), rgba(224, 154, 128, 0) 70%); opacity: 0; pointer-events: none; }
.dawn-logo { position: absolute; left: var(--logo-x, 50%); top: var(--line-y, 74%); width: min(72vw, 720px); transform: translate(-50%, var(--logo-dy, -79.5%)); color: var(--ink); }
.dawn-logo .logo { width: 100%; }
.dawn-logo .ll { display: none; }  /* the full-width horizon is the line */

/* Motion mode: one pinned 100vh stage */
html.motion .turn-stage { height: 100vh; height: 100svh; overflow: hidden; }
html.motion .turn-bg { display: block; position: absolute; inset: 0; background: var(--night); }
html.motion .turn-q { position: absolute; inset: 0; background: none; place-content: center; padding: 0 var(--gutter); }
html.motion .turn-frame { position: absolute; inset: 0; height: auto; min-height: 0; background: none; }
html.motion .turn-frame .lake, html.motion .turn-frame .haze, html.motion .turn-frame .dissolve { opacity: 0; }
html.motion .horizon { transform: scaleX(.18); background: linear-gradient(90deg, rgba(242, 235, 228, 0), var(--dawn) 25%, var(--paper) 50%, var(--dawn) 75%, rgba(242, 235, 228, 0)); }
html.motion .dawn-logo { clip-path: inset(0 0 100% 0); }
html.motion .dawn-logo .lr { opacity: 0; }
html.gl .dawn-logo .lr { display: none; }   /* the shader draws the rippling reflection */

/* ───────── Paper sections ───────── */
.paper { background: var(--paper); color: var(--ink); position: relative; z-index: 1; }
.sec { padding-block: var(--section); }
.sec h2 { font-size: var(--t-xl); line-height: 1.02; max-width: 18ch; }
.lede { max-width: 46ch; }

/* Book + first page */
.book-copy { display: grid; gap: var(--s-5); align-content: start; justify-items: start; }
.book-copy .meta { font-size: var(--t-s); color: var(--muted); }
.sheet-wrap { position: relative; margin-top: var(--s-8); }
.sheet {
  position: relative; background: var(--page); color: var(--ink); padding: clamp(32px, 5vw, 64px) clamp(24px, 5vw, 64px) 0;
  box-shadow: 0 40px 80px -40px rgba(13, 16, 32, .28), 0 1px 0 rgba(23, 22, 42, .04);
  font: 400 1.125rem/1.62 var(--f-book); overflow: hidden;
}
.sheet::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--ink); opacity: .5; transform-origin: left; }
.chap-open { text-align: center; margin-bottom: 1.6em; }
.chap-open .k { display: block; font-size: .72em; letter-spacing: .2em; text-transform: uppercase; }
.chap-open .t { display: block; font-size: 1.6em; line-height: 1.15; margin-top: .4em; }
.book-text p { text-indent: 1.2em; }
.book-text p:first-child, .book-text .no-indent { text-indent: 0; }
.lead-in { text-transform: uppercase; font-size: .82em; letter-spacing: .06em; }
.sheet .fadeline { -webkit-mask-image: linear-gradient(#000, transparent 85%); mask-image: linear-gradient(#000, transparent 85%); }
.sheet-cta { display: grid; justify-items: center; gap: var(--s-2); padding: var(--s-5) 0 clamp(32px, 5vw, 56px); text-align: center; position: relative; }
.sheet-cta .micro { font-size: var(--t-xs); color: var(--muted); }
.sheet-cta .btn { max-width: 100%; white-space: normal; text-align: center; line-height: 1.25; padding-block: 12px; }
@media (min-width: 1024px) {
  .book-copy { grid-column: 1 / 6; position: sticky; top: calc(var(--header-h) + var(--s-8)); align-self: start; }
  .sheet-wrap { grid-column: 7 / 13; margin-top: 0; }
}
@media (min-width: 600px) { .sheet { font-size: 1.25rem; } }

/* Contents */
.contents-head { display: grid; gap: var(--s-4); margin-bottom: var(--s-8); }
.toc { display: grid; }
.toc-row { position: relative; padding-block: var(--s-6); display: grid; gap: var(--s-3); }
.toc-row::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--hair); transform-origin: left; transition: transform .9s var(--ease-out); }
.toc-row:last-child::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--hair); }
html.motion .toc-row:not(.is-drawn)::before { transform: scaleX(0); }
.toc-row .num { font: 400 var(--t-l)/1 var(--f-display); color: var(--muted); }
.toc-row .ttl { font: 400 var(--t-l)/1.15 var(--f-display); }
.toc-row .desc { color: var(--muted); font-size: var(--t-s); max-width: 44ch; }
.toc-row .tools { font: italic 400 1.0625rem/1.5 var(--f-book); color: var(--ink); margin-top: var(--s-2); }
.toc-row .head { display: flex; gap: var(--s-4); align-items: baseline; }
@media (min-width: 1024px) {
  .toc-row { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: baseline; }
  .toc-row .head { grid-column: 1 / 8; display: grid; grid-template-columns: subgrid; }
  .toc-row .num { grid-column: 1 / 2; }
  .toc-row .ttl { grid-column: 2 / 8; }
  .toc-row .side { grid-column: 8 / 13; }
}
.note { margin-top: var(--section); }
.note-inner { display: grid; gap: var(--s-5); justify-items: start; }
@media (min-width: 1024px) { .note-inner { grid-column: 3 / 11; } }
.note h3 { font-size: var(--t-l); line-height: 1.2; max-width: 22ch; }
.note .facs { background: var(--page); padding: clamp(24px, 4vw, 48px); font: 400 1.25rem/1.62 var(--f-book); box-shadow: 0 30px 60px -40px rgba(13, 16, 32, .22); }
.note .facs p + p { text-indent: 1.2em; }
.note .sig { display: block; margin-top: 1em; font-style: italic; text-align: right; }
.note .research { color: var(--muted); font-size: var(--t-s); max-width: 58ch; }
details.d { border-top: 1px solid var(--hair); width: 100%; }
details.d:last-of-type { border-bottom: 1px solid var(--hair); }
details.d summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: var(--s-4); min-height: 56px; font: 500 var(--t-s)/1.4 var(--f-text); }
details.d summary::-webkit-details-marker { display: none; }
details.d summary::after { content: "+"; content: "+" / ""; font: 400 1.25rem/1 var(--f-text); transition: transform .3s var(--ease-out); }
details.d[open] summary::after { transform: rotate(45deg); }
details.d[open] { background: color-mix(in srgb, var(--paper-deep) 55%, transparent); }
details.d .dbody { padding: 0 0 var(--s-5); color: var(--muted); font-size: var(--t-s); max-width: 60ch; }
details.d .dbody li { padding-block: 4px; }
details.d .dbody em { color: var(--ink); }
.note details.d, .faq details.d { padding-inline: var(--s-4); }

/* Edition */
.gap-sent { font: 400 var(--t-l)/1.25 var(--f-display); max-width: 30ch; }
@media (min-width: 1024px) { .gap-sent { font-size: clamp(2.25rem, 1.6rem + 1.6vw, 3.25rem); } .gap-block { grid-column: 1 / 11; } }
.gap-sent select { max-width: 100%; min-height: 44px;
  font: inherit; color: inherit; background: transparent; border: 0; border-bottom: 1px solid currentColor; border-radius: 0;
  padding: 0 1.1em 0 0; margin: 0 .1em; cursor: pointer; -webkit-appearance: none; appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - .55em) 55%, calc(100% - .3em) 55%; background-size: .25em .25em; background-repeat: no-repeat;
}
.gap-sent select:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.gap-out { margin-top: var(--s-5); font-size: var(--t-m); }
.gap-out b { font: 400 1.6em/1 var(--f-display); font-variant-numeric: tabular-nums; }
.gap-bars { display: grid; gap: var(--s-2); margin-top: var(--s-6); max-width: 760px; font-size: var(--t-xs); color: var(--muted); }
.gbar { height: 1px; background: var(--ink); opacity: .55; }
.gbar.read { width: 3px; height: 9px; opacity: 1; margin-top: -4px; }
.offer { margin-top: var(--section); row-gap: var(--s-7); align-items: start; }
.offer-cover { display: block; width: min(100%, 360px); cursor: pointer; border: 0; padding: 0; background: none; perspective: 1400px; }
.offer-cover img { width: 100%; aspect-ratio: 800 / 1280; object-fit: cover; box-shadow: 0 40px 80px -30px rgba(13, 16, 32, .35); }
@media (min-width: 1024px) { .offer-cover-col { grid-column: 1 / 6; } .offer-details { grid-column: 7 / 13; } }
@media (max-width: 1023px) { .offer-cover { margin-inline: auto; width: min(60%, 300px); } }
.offer-details { display: grid; gap: var(--s-5); }
.offer-details h2 { font-style: italic; }
.offer .pname { font: 500 var(--t-s)/1.4 var(--f-text); letter-spacing: .02em; }
.price-big { font: 400 var(--t-xl)/1 var(--f-display); font-variant-numeric: tabular-nums; min-width: 4ch; display: inline-block; }
[data-ca-price] { transition: opacity .2s var(--ease-out); font-variant-numeric: tabular-nums; }
[data-ca-price].is-swapping { opacity: 0; }
.once { color: var(--muted); font-size: var(--t-s); margin-top: calc(var(--s-4) * -1); }
.spec { display: grid; border-top: 1px solid var(--hair); }
.spec > div { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: var(--s-4); padding-block: var(--s-3); border-bottom: 1px solid var(--hair); font-size: var(--t-s); }
.spec dt { font: 500 var(--t-xs)/1.9 var(--f-text); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 479px) { .spec > div { grid-template-columns: 1fr; gap: 2px; } }
.offer .buy { width: 100%; }
@media (min-width: 600px) { .offer .buy { width: auto; min-width: 320px; } }
.status { min-height: 1.4em; font-size: var(--t-s); color: var(--ink); }
.status:empty { min-height: 0; }
.fine { font-size: var(--t-xs); color: var(--muted); line-height: 1.6; }
.fine a { color: var(--ink); }
.faq { display: grid; margin-top: var(--s-5); }

/* Footer extras on the sales page */
.lake-strip { position: absolute; left: 0; right: 0; top: 0; height: 140px; background: url("../img/lake-strip.webp") center 60% / cover; opacity: .35; -webkit-mask-image: linear-gradient(#000, transparent); mask-image: linear-gradient(#000, transparent); pointer-events: none; }
.epigraph { display: grid; gap: var(--s-3); }
.epigraph blockquote { font: italic 400 var(--t-l)/1.25 var(--f-book); max-width: 30ch; }
.epigraph cite { font: 500 var(--t-xs)/1.4 var(--f-text); font-style: normal; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

main { padding-bottom: 0; }
@media (max-width: 759px) { main { padding-bottom: 0; } }

.gap-dot { margin-left: -.2em; }
.price-pair { display: inline; white-space: nowrap; }
