/* Writers Run — homepage prototype v0.1
   Each block below maps to one future Shopify theme section. */

:root {
  --night: #0A0E13;
  --ice: #121B26;
  --snow: #F3F6F8;
  --fur: #E8E3D9;
  --glacier: #9CC2D8;
  --ember: #E8623A;
  --rule: rgba(243, 246, 248, .12);
  --muted: rgba(243, 246, 248, .68);
  --gutter: clamp(16px, 5vw, 72px);
  --serif: "Instrument Serif", "Times New Roman", serif;
  --sans: "Archivo", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--night);
  color: var(--snow);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, p { margin: 0; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; }
a { color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

#sky { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
/* no z-index here on purpose: a stacking context on main would stop the wolf layers' "screen" blending
   from reaching the page background and the star canvas behind them (they would show as black boxes) */
main, .site-footer { position: relative; }

.mono { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow { color: var(--glacier); margin-bottom: 14px; }
.fine { color: rgba(243, 246, 248, .55); letter-spacing: .1em; }
.lede { color: var(--muted); max-width: 46ch; }

h1 { font-weight: 800; font-stretch: 68%; text-transform: uppercase; font-size: clamp(54px, 10vw, 148px); line-height: .88; letter-spacing: -.005em; }
h1 em { text-transform: none; font-size: 1.04em; letter-spacing: -.02em; }
h2 { font-weight: 800; font-stretch: 70%; text-transform: uppercase; font-size: clamp(34px, 5.4vw, 76px); line-height: .94; }
h2 em { text-transform: none; font-size: 1.06em; letter-spacing: -.015em; }
h3 { font-weight: 700; font-stretch: 78%; font-size: 20px; letter-spacing: .01em; text-transform: uppercase; }

/* ---------- buttons, forms ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent;
  font: 700 13px/1 var(--sans); font-stretch: 85%; letter-spacing: .1em; text-transform: uppercase; text-decoration: none;
  cursor: pointer; transition: transform .2s ease, background-color .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible, input:focus-visible, a:focus-visible { outline: 2px solid var(--glacier); outline-offset: 3px; }
.btn-small { min-height: 38px; padding: 0 16px; font-size: 11.5px; }
.btn-ember { background: var(--ember); color: var(--night); }
.btn-ember:hover { background: #F0744E; }
.btn-ghost { background: transparent; color: var(--snow); border-color: rgba(243, 246, 248, .3); }
.btn-ghost:hover { border-color: var(--snow); }

.signup { display: flex; gap: 8px; margin-top: 26px; max-width: 440px; }
.signup input {
  flex: 1; min-width: 0; min-height: 48px; padding: 0 18px; border-radius: 999px;
  background: rgba(10, 14, 19, .55); border: 1px solid rgba(243, 246, 248, .28); color: var(--snow);
  font: 400 16px var(--sans); backdrop-filter: blur(6px);
}
.signup input::placeholder { color: rgba(243, 246, 248, .45); }
.signup-note { margin-top: 12px; }
.signup-note.is-status { color: var(--snow, #F3F6F8); }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px var(--gutter);
  transition: background-color .3s ease, backdrop-filter .3s ease, border-color .3s ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled { background: rgba(10, 14, 19, .72); backdrop-filter: blur(14px); border-bottom-color: var(--rule); }
/* Logo: Manuscript wordmark with the Monitor pulse (a heart trace with the W in it) between the two words */
.wordmark { display: inline-flex; align-items: center; gap: .16em; font: italic 400 30px/1 var(--serif); letter-spacing: -.01em; text-decoration: none; white-space: nowrap; }
.wordmark svg { width: 2.6em; height: auto; margin-top: .1em; overflow: visible; }
.wordmark svg path { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: butt; stroke-linejoin: miter; stroke-miterlimit: 10; vector-effect: non-scaling-stroke; }
.site-nav { display: flex; gap: 28px; }
.site-nav a { font: 600 12px var(--sans); font-stretch: 85%; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; opacity: .8; }
.site-nav a:hover { opacity: 1; }

/* ---------- pinned sections ---------- */
.pin { position: relative; height: var(--len, 300vh); --p: 0; }
.stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }

/* scene pieces shared by hero and film */
.aurora { position: absolute; inset: -10% -10% 30% -10%; filter: blur(70px); opacity: .5; mix-blend-mode: screen; pointer-events: none; }
.aurora i { position: absolute; border-radius: 50%; animation: drift 26s ease-in-out infinite alternate; }
.aurora i:nth-child(1) { left: 8%; top: 18%; width: 46%; height: 30%; background: #3FE0B0; opacity: .55; }
.aurora i:nth-child(2) { left: 38%; top: 6%; width: 50%; height: 26%; background: #5C8DFF; opacity: .45; animation-duration: 34s; animation-delay: -8s; }
.aurora i:nth-child(3) { left: 58%; top: 24%; width: 34%; height: 22%; background: #9D6BFF; opacity: .28; animation-duration: 41s; animation-delay: -15s; }
.aurora-strong { opacity: .8; }
@keyframes drift { from { transform: translate3d(-4%, 0, 0) scale(1) rotate(-4deg); } to { transform: translate3d(6%, 8%, 0) scale(1.18) rotate(5deg); } }

.moon {
  position: absolute; right: 12%; top: 16%; width: clamp(44px, 6vw, 92px); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 38% 36%, #FFFDF6 0%, var(--fur) 55%, #BDB7AA 100%);
  box-shadow: 0 0 60px 18px rgba(232, 227, 217, .18), 0 0 160px 60px rgba(156, 194, 216, .10);
  transform: translateY(calc(var(--p) * -60px));
}
.ridge { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 40%; }
.ridge-far { fill: #0E1620; }
.ridge-near { fill: #16222E; stroke: rgba(156, 194, 216, .38); stroke-width: 1.2; vector-effect: non-scaling-stroke; }

/* placeholder slots: mark where a wolf clip or product photo will go */
.slot, .tile-media, .card-img {
  position: relative;
  border: 1px dashed rgba(243, 246, 248, .26);
  border-radius: 6px;
  background: radial-gradient(60% 60% at 50% 55%, rgba(232, 227, 217, .10), rgba(232, 227, 217, 0) 70%);
}
.slot-label {
  position: absolute; left: 12px; bottom: 10px; right: 12px;
  font: 400 10.5px/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: rgba(243, 246, 248, .5);
}
.slot-label-center { left: 50%; right: auto; bottom: 8%; transform: translateX(-50%); white-space: nowrap; }

/* ---------- 1. hero: the wolf walks in on its own ---------- */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 640px; overflow: hidden; }
.hero .moon { transform: none; }
.hero .ridge { transition: opacity 1s ease; }
.hero.has-wolf .ridge { opacity: .55; } /* the clip brings its own pool of lit snow; the drawn ridge carries the rest */

/* wolf layer: clips are shot on pure black, and "screen" makes the black disappear over the night sky */
.hero-wolf {
  position: absolute; right: 0; bottom: 0; width: 74%; height: 74%; mix-blend-mode: screen; pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 34%); mask-image: linear-gradient(90deg, transparent 0, #000 34%);
}
.hero-wolf video, .hero-wolf img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 74% 100%; }
.hero-wolf .hero-loop { opacity: 0; transition: opacity .35s linear; }
.hero.loop-live .hero-loop { opacity: 1; }
.hero.loop-live .hero-walk { opacity: 0; transition: opacity .2s linear .4s; }
.hero-wolf .hero-still { opacity: 0; transition: opacity 1.4s ease; }
.hero-wolf .hero-still.is-tall { object-position: 55% 100%; }
.hero.is-still .hero-still { opacity: 1; }

/* SCENE MODE: the clips are full forest scenes, so they fill the hero and nothing is blended.
   The drawn sky, moon and ridge step aside; a soft gradient keeps the logo readable and melts the
   bottom edge of the film into the page. */
.hero.is-scene .aurora, .hero.is-scene .moon, .hero.is-scene .ridge { display: none; }
.hero.is-scene .hero-wolf { inset: 0; width: 100%; height: 100%; mix-blend-mode: normal; -webkit-mask-image: none; mask-image: none; }
/* the new film is composed for this layout: the wolf stands in the right quarter, clear of the centred logo,
   so the picture is shown at its natural size with no enlarging. When a window crops the sides, keep the left. */
.hero.is-scene .hero-wolf video, .hero.is-scene .hero-wolf img { object-position: 30% 60%; }
@media (min-width: 761px) and (max-width: 1199px) and (orientation: landscape) {
  .hero-copy .lede { max-width: 24em; }
}
.hero.is-scene::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(10, 14, 19, .74) 0%, rgba(10, 14, 19, .34) 32%, rgba(10, 14, 19, 0) 56%, rgba(10, 14, 19, 0) 80%, var(--night) 100%);
}
.hero.is-scene .hero-copy, .hero.is-scene .slot-product, .hero.is-scene .scroll-hint { z-index: 2; }
/* film grain over the scene: real footage has texture; AI footage is too clean, and grain also hides compression banding */
.hero.is-scene::after {
  content: ""; position: absolute; inset: -60px; z-index: 1; pointer-events: none; opacity: .11; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1s steps(6) infinite;
}
@keyframes grain { 0% { transform: translate(0, 0); } 20% { transform: translate(-18px, 12px); } 40% { transform: translate(14px, -22px); } 60% { transform: translate(-26px, -8px); } 80% { transform: translate(22px, 18px); } 100% { transform: translate(0, 0); } }

/* logo front and centre; the wolf layer sits bottom right so the two never collide */
.hero-copy { position: absolute; left: 50%; top: clamp(92px, 15vh, 160px); transform: translateX(-50%); width: min(620px, 88vw); text-align: center; }
.hero-copy .eyebrow { margin-bottom: 8px; }
.hero-logo { margin: 0; font: inherit; text-transform: none; letter-spacing: 0; display: grid; justify-items: center; }
.hero-wordmark { font: italic 400 clamp(62px, 8.6vw, 128px)/.95 var(--serif); letter-spacing: -.015em; white-space: nowrap; margin-top: -.06em; }
.hero-copy .lede { margin: 20px auto 0; font-size: 19px; max-width: 30em; }
.hero-copy .signup { margin: 26px auto 0; max-width: 400px; }

/* the monitor: faint full line, a bright trace that sweeps through it, and the red dot leading the trace.
   Stroke widths are in drawing units because non-scaling strokes break the pathLength dash trick. */
.monitor { width: min(430px, 72vw); height: auto; overflow: visible; }
.monitor path { fill: none; stroke: currentColor; stroke-linecap: butt; stroke-linejoin: miter; stroke-miterlimit: 10; }
.monitor-base { stroke-width: 1.6; opacity: .28; }
.monitor-trace { stroke-width: 1.9; stroke-dasharray: .42 1; stroke-dashoffset: .42; animation: sweep 3.2s linear infinite; }
.monitor-dot { fill: var(--ember); filter: drop-shadow(0 0 5px rgba(232, 98, 58, .9));
  offset-path: path("M4,58 L66,58 Q76,47 86,58 L102,58 L112,24 L130,86 L149,34 L168,86 L188,20 L198,58 L212,58 Q228,42 244,58 L296,58");
  offset-rotate: 0deg; offset-distance: 0%; animation: ride 3.2s linear infinite; }
@keyframes sweep { from { stroke-dashoffset: .42; } to { stroke-dashoffset: -1; } }
@keyframes ride { from { offset-distance: 0%; } to { offset-distance: 100%; } }

/* the header wordmark stays out of the way while the big logo is on screen, then docks in */
.site-header .wordmark { transition: opacity .4s ease; }
body:not(.past-hero) .site-header .wordmark { opacity: 0; pointer-events: none; }

.slot-product {
  position: absolute; left: clamp(16px, 9vw, 150px); bottom: 12%; width: clamp(110px, 12vw, 190px); aspect-ratio: 1 / .82;
  opacity: 0; transform: translateY(16px); transition: opacity .9s ease, transform .9s ease;
}
.hero.wolf-in .slot-product { opacity: 1; transform: none; }
.scroll-hint {
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%);
  display: grid; justify-items: center; gap: 8px; color: rgba(243, 246, 248, .6);
  opacity: 0; transition: opacity .6s ease;
}
.hero.wolf-in .scroll-hint { opacity: 1; }
.has-scrolled .hero .scroll-hint { opacity: 0; }
.scroll-hint i { width: 1px; height: 34px; background: linear-gradient(var(--snow), transparent); animation: hint 1.8s ease-in-out infinite; transform-origin: top; }
@keyframes hint { 0% { transform: scaleY(0); } 60% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* ---------- 2. tiles ---------- */
.section-head { padding: 0 var(--gutter); max-width: 1100px; }
.section-head .lede { margin-top: 18px; }
.section-head .fine { margin-top: 16px; }
.signup .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.tiles { padding: clamp(80px, 14vh, 160px) 0 clamp(120px, 20vh, 240px); background: linear-gradient(var(--night), #0C1219 30%, var(--night)); }
.tile-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 2.4vw, 36px); padding: clamp(48px, 8vh, 96px) var(--gutter) 0; align-items: start; }
.tile { transform: translate3d(0, calc(var(--py, 0) * 1px), 0); will-change: transform; }
.tile-tall { margin-top: 9vh; }
.tile-media { aspect-ratio: 4 / 5; overflow: hidden; background-color: var(--ice); margin-bottom: 16px; transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.tile:hover .tile-media { transform: scale(1.015); }
.tile-media video, .card-img img, .slot video, .slot img, .film video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile h3 { margin-bottom: 4px; }

/* ---------- 3. moon reveal ---------- */
.reveal .stage { display: grid; place-items: center; background: var(--night); }
.reveal-before {
  position: relative; z-index: 1; text-align: center; padding: 0 var(--gutter);
  font: 800 clamp(34px, 6vw, 92px)/.95 var(--sans); font-stretch: 70%; text-transform: uppercase;
  opacity: calc(1 - clamp(0, calc((var(--p) - .30) / .22), 1));
}
.reveal-before em { text-transform: none; font-size: 1.06em; }
.film {
  position: absolute; inset: 0; z-index: 2; overflow: hidden;
  background: linear-gradient(#070B10, #0D1620 60%, #111C28);
  clip-path: circle(calc(4.5vmin + var(--e, 0) * 150vmax) at 78% 22%);
}
.film::before { /* starts as a pale moon disc, then becomes a window onto the film */
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: radial-gradient(circle at 78% 22%, #FFFDF6, var(--fur) 40%, #CFC9BC);
  opacity: calc(1 - clamp(0, calc(var(--p) / .2), 1));
}
.reveal-after {
  position: absolute; left: 50%; top: 46%; transform: translate(-50%, -50%); z-index: 2;
  font-size: clamp(64px, 12vw, 190px); line-height: 1;
  opacity: clamp(0, calc((var(--p) - .72) / .16), 1);
}

/* ---------- 4. pack line: wolves join one at a time ---------- */
.packline { position: relative; padding: clamp(90px, 16vh, 180px) 0 clamp(60px, 10vh, 120px); --p: 0; overflow: hidden; }
.packline-copy { padding: 0 var(--gutter); max-width: 1000px; }
.line-stage { position: relative; height: clamp(170px, 26vh, 260px); margin-top: clamp(30px, 6vh, 70px); }
.trail { position: absolute; inset: auto 0 6% 0; width: 100%; height: 50%; overflow: visible; }
/* no non-scaling-stroke here: it breaks the pathLength dash trick that draws the trail */
.trail path { fill: none; stroke: rgba(156, 194, 216, .5); stroke-width: 1.4; stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--p)); }
/* the leader is first in the row and furthest right; the whole line drifts right as you scroll */
.pack { mix-blend-mode: screen; position: absolute; left: 0; bottom: 18%; display: flex; flex-direction: row-reverse; align-items: flex-end; gap: clamp(2px, 1vw, 18px); transform: translate3d(calc(-38% + var(--p) * 62vw), 0, 0); will-change: transform; }
.line-wolf, .meter-wolf {
  display: block; aspect-ratio: 3 / 2; background: center / contain no-repeat;
  transform: scaleX(-1); /* the photos face left; the pack travels right */
}
.meter-wolf { mix-blend-mode: screen; } /* blends into the meter's own dark backing */
.line-wolf {
  width: clamp(92px, 13vw, 210px); opacity: 0;
  transform: scaleX(-1) translate3d(60px, 0, 0); transition: opacity .7s ease, transform .9s cubic-bezier(.2, .7, .2, 1);
  animation: trot .62s ease-in-out infinite alternate; animation-delay: calc(var(--i) * -.13s);
}
.line-wolf.in { opacity: 1; transform: scaleX(-1); }
@keyframes trot { from { translate: 0 0; } to { translate: 0 -5px; } }

/* pack meter: fixed, bottom left. One wolf per section you have passed; the last place is yours. */
.pack-meter {
  position: fixed; left: var(--gutter); bottom: 14px; z-index: 15; display: grid; gap: 2px; pointer-events: none;
  /* its own dark backing, so the white wolves read over snow as well as over night sky */
  padding: 6px 12px 7px; border-radius: 14px; border: 1px solid var(--rule);
  background: #0D131A; isolation: isolate; /* opaque, so the wolves' black backgrounds vanish into it exactly */
}
.pack-meter-wolves { display: flex; flex-direction: row-reverse; justify-content: flex-end; align-items: flex-end; gap: 1px; }
.meter-wolf { --w: 46px; width: 0; opacity: 0; transform: scaleX(-1) translate3d(14px, 0, 0); transition: width .5s ease, opacity .5s ease .1s, transform .6s cubic-bezier(.2, .7, .2, 1); }
.meter-wolf.in { width: var(--w); opacity: .92; transform: scaleX(-1); }
.meter-you {
  align-self: center; margin-right: 8px; padding: 5px 9px; border: 1px dashed rgba(243, 246, 248, .45); border-radius: 999px;
  font: 400 9.5px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; font-style: normal; color: var(--ember);
  opacity: 0; max-width: 0; padding-left: 0; padding-right: 0; margin-right: 0; border-width: 0; overflow: hidden; white-space: nowrap;
  transition: opacity .5s ease .2s, max-width .5s ease;
}
.pack-meter.at-end .meter-you { opacity: 1; max-width: 60px; padding: 5px 9px; margin-right: 8px; border-width: 1px; }
.pack-meter-label { font-size: 9.5px; color: rgba(243, 246, 248, .55); }

/* ---------- 5. products ---------- */
.products { padding: clamp(60px, 10vh, 120px) 0 clamp(90px, 16vh, 180px); }
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(12px, 1.8vw, 26px); padding: clamp(40px, 7vh, 80px) var(--gutter) 0; }
.card { --p: .5; background: var(--ice); border: 1px solid var(--rule); border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; }
.card-media { aspect-ratio: 1 / 1; overflow: hidden; background: radial-gradient(90% 70% at 50% 100%, #1B2937, var(--ice)); }
.card-img { position: absolute; inset: 9%; transform: translate3d(0, calc((var(--p) - .5) * -36px), 0); will-change: transform; }
.card-media { position: relative; }
/* full photos: a little taller than the card so the parallax never shows an edge */
.card-img.is-photo { inset: -7% 0; }
.card-body { padding: 18px 18px 20px; display: grid; gap: 6px; justify-items: start; }
.card-body .btn { margin-top: 10px; }

/* ---------- 6. the ritual: run, then write ---------- */
.ritual { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(28px, 5vw, 80px); align-items: center; padding: clamp(80px, 14vh, 170px) var(--gutter); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); background: linear-gradient(180deg, rgba(18, 27, 38, .0), rgba(18, 27, 38, .7)); }
.ritual h2 { font-size: clamp(64px, 11vw, 170px); }
.ritual .lede { margin-top: 22px; }
.facts { margin: 34px 0 0; display: grid; gap: 0; max-width: 520px; text-transform: none; letter-spacing: .04em; font-size: 13px; }
.facts div { display: grid; grid-template-columns: 90px 1fr; gap: 12px; padding: 13px 0; border-top: 1px solid var(--rule); }
.facts dt { color: var(--glacier); text-transform: uppercase; letter-spacing: .14em; font-size: 11px; padding-top: 2px; }
.facts dd { margin: 0; }
.mix { background: var(--ice); border: 1px solid var(--rule); border-radius: 10px; padding: 26px; }
.wave { width: 100%; height: 110px; margin: 6px 0 10px; }
.wave path { fill: none; stroke: var(--glacier); stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linecap: butt; stroke-linejoin: miter; stroke-miterlimit: 10; }
.mix-title { font-size: 34px; line-height: 1.1; margin-bottom: 8px; }
.mix-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }

/* ---------- 7. join ---------- */
.join { position: relative; min-height: 100vh; min-height: 100svh; display: grid; align-items: center; padding: 120px var(--gutter); overflow: hidden; --p: 0; }
.join h2 { font: italic 400 clamp(84px, 16vw, 260px)/.9 var(--serif); text-transform: none; letter-spacing: -.03em; }
.join .lede { margin-top: 18px; }
.join-copy { position: relative; z-index: 1; }
.slot-lookback img { -webkit-mask-image: radial-gradient(ellipse 62% 70% at 52% 46%, #000 55%, transparent 100%); mask-image: radial-gradient(ellipse 62% 70% at 52% 46%, #000 55%, transparent 100%); }
.film-still { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.slot-lookback {
  position: absolute; right: clamp(0px, 6vw, 110px); bottom: 12%; width: clamp(180px, 32vw, 520px); aspect-ratio: 4 / 3;
  mix-blend-mode: screen;
  transform: translate3d(calc((1 - var(--p)) * 60px), calc((1 - var(--p)) * -30px), 0);
}

/* ---------- the cursor is the monitor's red dot (mouse users only) ---------- */
.cursor-dot { display: none; }
@media (hover: hover) and (pointer: fine) {
  html.dot-cursor, html.dot-cursor * { cursor: none !important; }
  html.dot-cursor input, html.dot-cursor textarea { cursor: text !important; } /* keep the text caret where people type */
  html.dot-cursor .cursor-dot {
    display: block; position: fixed; left: 0; top: 0; z-index: 100; pointer-events: none;
    width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%;
    background: var(--ember); box-shadow: 0 0 10px rgba(232, 98, 58, .75);
    transform: translate3d(-100px, -100px, 0); opacity: 0;
    transition: width .18s ease, height .18s ease, margin .18s ease, background-color .18s ease, box-shadow .18s ease, opacity .2s ease;
    animation: beat 1.7s ease-in-out infinite;
  }
  html.dot-cursor .cursor-dot.on { opacity: 1; }
  /* over anything clickable it opens into a ring, so you still know it is clickable */
  html.dot-cursor .cursor-dot.is-link { width: 36px; height: 36px; margin: -18px 0 0 -18px; background: rgba(232, 98, 58, .16); box-shadow: inset 0 0 0 1.5px var(--ember); animation: none; }
  html.dot-cursor .cursor-dot.is-text { opacity: 0; }
  html.dot-cursor .cursor-dot.is-down { scale: .7; }
}
@keyframes beat { 0%, 46%, 100% { scale: 1; } 10% { scale: 1.4; } 22% { scale: 1; } 32% { scale: 1.22; } }

/* ---------- footer ---------- */
.site-footer { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 14px 30px; padding: 34px var(--gutter) 44px; border-top: 1px solid var(--rule); }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .site-nav { display: none; }
  .tile-row { grid-template-columns: 1fr 1fr; }
  .tile-row .tile:last-child { grid-column: 1 / -1; max-width: 70%; margin-left: auto; }
  .grid { grid-template-columns: 1fr 1fr; }
  .ritual { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .hero-copy { max-width: 88vw; }
}
@media (max-width: 760px), (orientation: portrait) {
  .hero-copy { top: 88px; }
  .hero-copy .lede { font-size: 17px; }
  .hero-wolf { left: 0; right: 0; bottom: 0; width: 100%; height: 54%; -webkit-mask-image: none; mask-image: none; }
  .hero.has-wolf .ridge { opacity: 0; }
  /* scene mode on phones: the film sits under the copy and its top edge fades into the night */
  .hero.is-scene .hero-wolf { inset: auto 0 0 0; height: 60%; -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 30%); mask-image: linear-gradient(180deg, transparent 0, #000 30%); }
  .hero.is-scene .hero-wolf video, .hero.is-scene .hero-wolf img { object-position: 80% 100%; }
  .hero.is-scene .aurora { display: block; }
  .hero.is-scene::before { background: linear-gradient(180deg, rgba(10, 14, 19, 0) 70%, var(--night) 100%); }
  .hero-wordmark { font-size: clamp(54px, 15vw, 84px); }
  .monitor { width: min(300px, 66vw); }
  .hero-wolf video, .hero-wolf img { object-position: 70% 100%; }
  .hero .signup-note { display: none; }
  .hero .signup-note.is-status { display: block; }   /* the consent line is hidden on phones to save room, but the result of a sign-up must always show */
  .slot-product { left: var(--gutter); bottom: 5%; width: 96px; }
  .meter-wolf { --w: 32px; }
  .hero .moon { top: 54%; right: 9%; }
  .slot-product { bottom: 11%; }
  .pack-meter { bottom: 8px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .signup { flex-direction: column; }
  .signup .btn { width: 100%; }
  .tile-row { grid-template-columns: 1fr; }
  .tile-row .tile:last-child { max-width: 100%; }
  .tile-tall { margin-top: 0; }
  .slot-lookback { opacity: .7; bottom: 4%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .aurora i, .scroll-hint i, .line-wolf, .cursor-dot, .hero.is-scene::after { animation: none !important; }
  .monitor-trace { animation: none; stroke-dasharray: none; }
  .monitor-dot { animation: none; offset-distance: 100%; }
  .tile, .card-img { transform: none !important; }
}
