:root {
  --stage-night: #091c24;
  --stage-ink: #122a30;
  --stage-mint: #c4e5d3;
  --stage-copper: #efab84;
  --stage-paper: #f6efe0;
}

.site-header {
  background: #0b2029f2;
  backdrop-filter: blur(12px);
}
.header-inner { width: min(100% - 2 * var(--side), 81rem); }

.hero {
  position: relative;
  isolation: isolate;
  background: var(--stage-night);
}

.scene-field,
.hero::after,
.watch::before,
.offer::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
}

.scene-field {
  inset: -9%;
  background:
    url("/assets/daykit-desk-contours.svg") 62% 48% / cover no-repeat,
    radial-gradient(ellipse at 68% 52%, #568774 0%, #284c49 22%, transparent 63%),
    radial-gradient(ellipse at 95% 4%, #624b41 0%, transparent 54%);
  opacity: .86;
  transform: translate3d(var(--field-x, 0px), var(--field-y, 0px), 0) scale(var(--field-zoom, 1));
}

.hero::after {
  background:
    linear-gradient(90deg, #091c24 3%, #091c24c4 34%, transparent 72%),
    linear-gradient(0deg, #091c24bd, transparent 27%);
}

.hero-layout {
  position: relative;
  width: min(100% - 2 * var(--side), 81rem);
  grid-template-columns: minmax(0, .97fr) minmax(0, 1.03fr);
  gap: clamp(1rem, 3.5vw, 3.7rem);
  min-height: clamp(38rem, 86svh, 57rem);
  padding-block: clamp(3rem, 7vh, 5.5rem);
}

.hero-copy { position: relative; z-index: 4; }
.hero h1 { font-size: clamp(3rem, min(1.8rem + 6.25vw, 21cqi), 7.5rem); }
.hero h1 em { color: var(--stage-mint); }
.hero .kicker { color: #dfeddf; letter-spacing: .13em; }
.hero .signal { background: var(--stage-copper); box-shadow: 0 0 12px #edaa855e; }
.hero-description { color: #d3e1de; margin-bottom: .9rem; }
.hero .button-mint { background: var(--stage-mint); box-shadow: 0 8px 26px #091c2459; }
.hero .button-mint:hover { background: #e4f1df; }
.author-byline {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: .16rem .4rem;
  color: #d2e0db;
  margin: 0 0 1.12rem;
  font-size: .88rem;
}
.author-byline a { color: #f7eee1; font-weight: 700; }
.author-byline a:hover { color: var(--stage-copper); }
.hero-format { color: #bcd2ce; }

.hero-art {
  padding: 2.3rem 0 2.55rem;
  perspective: 1100px;
  transform: translate3d(0, var(--art-y, 0px), 0);
}

.hero-art::after {
  content: "";
  position: absolute;
  inset: 12% 5%;
  z-index: -2;
  border: 1px solid #bedfc253;
  border-radius: 50%;
  transform: rotate(-20deg);
  box-shadow: 0 0 0 24px #b7debc0a, 0 0 0 55px #b7debc08, inset 0 0 75px #bdd5b713;
  pointer-events: none;
}

.scene-sculpture {
  position: absolute;
  z-index: -1;
  width: 126%;
  height: 121%;
  top: -11%;
  left: -13%;
  pointer-events: none;
}

.hero-lines { z-index: 0; opacity: .68; top: 8%; width: 110%; left: -5%; }
.hero-book {
  z-index: 3;
  width: min(58%, 22.1rem);
  transform: translate3d(var(--book-x, 0px), var(--book-y, 0px), 0)
    rotateY(var(--book-yaw, -7deg)) rotateX(var(--book-pitch, 4deg)) rotateZ(var(--book-roll, -6deg));
  animation: cover-entrance .9s cubic-bezier(.18, .68, .34, 1) both;
}
@keyframes cover-entrance {
  from { opacity: 0; translate: 0 22px; }
  to { opacity: 1; translate: 0 0; }
}
.hero-book img {
  box-shadow: .48rem .38rem 0 #eadfc4, .64rem .49rem 0 #91a89c, .72rem .62rem 0 #4f6b68,
    1.5rem 1.8rem 3.4rem #061719eb, 0 .4rem 5rem #b8e1bc40;
  border-color: #d1e4c9;
}
.hero-book figcaption { color: #e8ece0; letter-spacing: .17em; }
.hero-plate {
  position: absolute;
  z-index: 1;
  top: 18%;
  left: 50%;
  width: min(42%, 16rem);
  height: auto;
  border: 1px solid #b9c8aa;
  border-radius: .27rem;
  opacity: .86;
  box-shadow: 0 .85rem 2.35rem #061519b0;
  transform-origin: center 70%;
  pointer-events: none;
}
.plate-left {
  transform: translate3d(calc(-50% + var(--left-x, -96px)), var(--left-y, 26px), 0)
    rotateY(13deg) rotateZ(var(--left-roll, -17deg));
}
.plate-right {
  transform: translate3d(calc(-50% + var(--right-x, 99px)), var(--right-y, 11px), 0)
    rotateY(-13deg) rotateZ(var(--right-roll, 12deg));
}
.art-note {
  z-index: 4;
  right: 1%;
  bottom: 19%;
  border: 1px solid #ffdbb475;
  border-radius: .15rem;
  background: #efb290;
  transform: translateY(var(--tag-y, 0px)) rotate(6deg);
  box-shadow: 0 .55rem 1.3rem #071b2a72;
}

.motion-toggle {
  display: inline-flex;
  gap: .5rem;
  align-items: center;
  min-height: 2.5rem;
  margin-top: .5rem;
  padding: .17rem .72rem;
  color: #d6e7df;
  background: #0b20298c;
  border: 1px solid #9fbead67;
  border-radius: 2rem;
  font-size: .78rem;
  cursor: pointer;
}
.motion-toggle::before { content: "Ⅱ"; color: var(--stage-copper); }
.motion-toggle[aria-pressed="true"]::before { content: "▷"; }
.motion-toggle:hover { background: #315250; color: #fff; }

.chapter-map {
  position: sticky;
  z-index: 8;
  top: calc(4.35rem + env(safe-area-inset-top, 0px));
  background: #122a30f7;
  color: #c9ddd5;
  border-block: 1px solid #7da1954a;
}
.chapter-links {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
.chapter-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  min-height: 3.05rem;
  padding: .35rem .25rem;
  border-inline-end: 1px solid #8faf9e35;
  border-block-end: 2px solid transparent;
  font-size: .82rem;
  line-height: 1.15;
  text-align: center;
  text-decoration: none;
}
.chapter-links a:first-child { border-inline-start: 1px solid #8faf9e35; }
.chapter-links a span { color: #e9b89b; font-variant-numeric: tabular-nums; font-size: .72em; }
.chapter-links a:hover,
.chapter-links a[aria-current="location"] { color: #fff; background: #294842; border-block-end-color: var(--stage-copper); }
.chapter-links a:focus-visible { outline-offset: -4px; outline-color: var(--stage-copper); }
html { scroll-padding-top: 8rem; }

.edition-strip { background: #d9e8da; }
.edition-inner > span { min-height: 4.25rem; }

.author-note,
.method,
.preview,
.watch,
.offer { position: relative; isolation: isolate; overflow: clip; }
.author-note {
  background:
    radial-gradient(ellipse at 22% 0%, #e2ecdc 0%, transparent 51%),
    linear-gradient(142deg, #f6f1e4, #fbf7ed 51%, #f0e6d4);
}
.author-note::before {
  position: absolute;
  content: "";
  z-index: -1;
  inset: -5% 53% -30% -26%;
  background: url("/assets/daykit-desk-contours.svg") center / cover no-repeat;
  filter: brightness(.3);
  opacity: .15;
  transform: translateY(var(--scene-drift, 0px));
  pointer-events: none;
}
.author-note .section-grid { align-items: center; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
.author-note h2 { max-width: 11ch; font-size: clamp(2.8rem, 1.4rem + 5.2vw, 6.1rem); }
.author-copy { padding-block: .4rem; padding-left: clamp(.95rem, 3vw, 2.2rem); }
.author-copy p { color: #435454; font-size: clamp(1.02rem, .95rem + .37vw, 1.2rem); }
.author-mark { margin-top: 1.5rem; width: 3.1rem; height: 3.1rem; border-radius: .6rem; }

.method {
  background:
    linear-gradient(130deg, #fcf7ee 26%, #f9f6ee99 75%),
    repeating-linear-gradient(90deg, #7e928923 0 1px, transparent 1px 48px),
    repeating-linear-gradient(0deg, #7e928923 0 1px, transparent 1px 48px),
    #f3f1e7;
  background-position: 0 0, var(--scene-drift, 0px) 0, 0 var(--scene-drift, 0px);
}
.example-card { background: linear-gradient(140deg, #f3f6e9, #dcebe0); box-shadow: .46rem .46rem 0 #c3d9cb, 0 1.2rem 2.4rem #23473c17; }

.preview {
  background:
    radial-gradient(ellipse at 50% 69%, #ffffed 0%, transparent 62%),
    linear-gradient(160deg, #e7e5d6, #d5e2d5 95%);
}
.preview::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 5% -7%;
  background: url("/assets/daykit-desk-contours.svg") 67% 48% / cover no-repeat;
  filter: brightness(.47) saturate(.8);
  opacity: .24;
  transform: translateY(var(--scene-drift, 0px));
  pointer-events: none;
}

.watch,
.offer {
  background:
    radial-gradient(ellipse at 81% 56%, #365d51 0%, #17363a 31%, transparent 70%),
    var(--stage-night);
}
.watch::before,
.offer::before {
  inset: -8%;
  background: url("/assets/daykit-desk-contours.svg") 70% 50% / cover no-repeat;
  opacity: .54;
  transform: translate3d(0, var(--scene-drift, 0px), 0);
}
.watch::after,
.offer::after {
  position: absolute;
  z-index: -1;
  inset: -16% 0;
  background-image:
    radial-gradient(circle at 15% 20%, #cbecce80 0 1px, transparent 3px),
    radial-gradient(circle at 70% 42%, #efae8970 0 1px, transparent 2.5px),
    radial-gradient(circle at 44% 62%, #b4d3b768 0 1px, transparent 3px);
  background-size: 149px 127px, 191px 153px, 257px 203px;
  mask-image: radial-gradient(ellipse at 75% 55%, #000, transparent 74%);
  transform: translate3d(0, calc(var(--scene-drift, 0px) * -1.4), 0);
  pointer-events: none;
  content: "";
}
.watch-player { background: #0b2127b8; box-shadow: 0 1.6rem 4rem #071b22ab; }
.offer { color: var(--stage-paper); }
.offer .kicker { color: var(--stage-mint); }
.offer .section-copy > p:not(.kicker) { color: #d3e3da; }
.offer h2 { max-width: 13ch; }
.offer-list li::before { color: var(--stage-copper); }
.offer-scene {
  position: absolute;
  z-index: -1;
  right: -4%;
  bottom: -22%;
  width: min(72%, 64rem);
  opacity: .65;
  transform: translate3d(0, var(--scene-drift, 0px), 0) rotate(-9deg);
  pointer-events: none;
}
.price-card {
  background: linear-gradient(148deg, #fcf5e7, #e5f1dc);
  color: var(--ink);
  border-color: #c1dfc1;
  box-shadow: .5rem .52rem 0 #61938280, 0 1.55rem 4rem #071b22a8;
}
.price-card .kicker { color: var(--teal); }
.questions { background: #f9f4e8; }
.site-footer, .mobile-dock { background: var(--stage-night); }

.motion-off { scroll-behavior: auto; }
.motion-off *, .motion-off *::before, .motion-off *::after { animation: none !important; transition: none !important; }
.motion-off .will-reveal { opacity: 1; translate: none; }

@media (min-width: 59rem) and (min-height: 43rem) and (prefers-reduced-motion: no-preference) {
  html.has-scene:not(.motion-off) .hero { min-height: calc(clamp(38rem, 86svh, 57rem) + 26svh); overflow: clip; }
  html.has-scene:not(.motion-off) .hero-layout { position: sticky; top: 4.35rem; }
}

@media (max-width: 62rem) {
  .hero-plate { width: min(48%, 13rem); }
  .plate-left { transform: translate3d(calc(-50% + var(--left-x, -58px)), var(--left-y, 21px), 0) rotate(var(--left-roll, -15deg)); }
  .plate-right { transform: translate3d(calc(-50% + var(--right-x, 57px)), var(--right-y, 7px), 0) rotate(var(--right-roll, 12deg)); }
}

@media (max-width: 53rem), (max-height: 39rem) {
  .hero-layout { min-height: 0; padding-block: clamp(2.3rem, 6.8vw, 4rem); }
}

@media (max-width: 42rem) {
  html { scroll-padding-top: 4.65rem; }
  .hero-layout { grid-template-columns: minmax(0, 1fr); gap: .75rem; padding-block: 2.2rem 1.65rem; }
  .hero-art { padding-block: 1.65rem; }
  .hero-book { width: min(55%, 15rem); }
  .hero::after { background: linear-gradient(180deg, #091c24ed 5%, #091c24b5 42%, transparent 76%, #091c247d); }
  .scene-field { background-position: 70% 50%, center, center; }
  .chapter-map { position: static; }
  .chapter-links a { display: grid; gap: .15rem; min-height: 3.4rem; font-size: .7rem; }
  .author-note .section-grid { grid-template-columns: minmax(0, 1fr); }
  .author-mark { display: none; }
  .art-note { right: 1.5%; bottom: 12%; }
}

@media (max-width: 26rem) {
  .hero h1 { font-size: clamp(2.7rem, 16cqi, 4.5rem); }
  .art-note { font-size: .68rem; }
  .chapter-links a { font-size: .64rem; }
}

@media (prefers-reduced-motion: reduce) {
  .motion-toggle { display: none !important; }
}
