/* 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); }

.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 30px; }
.hero-actions .btn { min-width: 168px; }
.hero-actions .btn-ghost { background: rgba(10, 14, 19, .35); backdrop-filter: blur(6px); }
.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:
    radial-gradient(ellipse 44% 36% at 50% 41%, rgba(10, 14, 19, .66) 0%, rgba(10, 14, 19, .42) 46%, rgba(10, 14, 19, 0) 80%),
    linear-gradient(180deg, rgba(10, 14, 19, .78) 0%, rgba(10, 14, 19, .40) 32%, rgba(10, 14, 19, .08) 58%, 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, .clearing::after, .join::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; color: var(--snow); font-weight: 500; text-shadow: 0 1px 2px rgba(10, 14, 19, .6), 0 0 24px rgba(10, 14, 19, .85); }
.hero-copy .eyebrow { color: #C4DDEC; text-shadow: 0 1px 2px rgba(10, 14, 19, .6), 0 0 18px rgba(10, 14, 19, .8); }
.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. the shop: a daylight studio in the middle of the night ---------- */
.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; }
.slot video, .slot img, .film video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.studio {
  --ink: #12161B; --ink-muted: rgba(18, 22, 27, .64); --ink-rule: rgba(18, 22, 27, .16); --plaster: #CFC6BA;
  position: relative; background: var(--fur); color: var(--ink);
  padding: clamp(84px, 13vh, 150px) 0 clamp(90px, 15vh, 170px);
}
.studio .eyebrow, .studio .lede { color: var(--ink-muted); }
.shop-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(30px, 3.6vw, 60px) clamp(14px, 2vw, 30px);
  padding: clamp(44px, 7vh, 84px) var(--gutter) 0;
}
@media (min-width: 1280px) { .shop-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }   /* hoodie left, a 2 x 2 of pieces beside it, then a row of four */
.piece { display: flex; flex-direction: column; min-width: 0; }
.piece-open {
  appearance: none; background: none; border: 0; padding: 0; margin: 0; font: inherit; color: inherit; text-align: left;
  display: flex; flex-direction: column; flex: 1; width: 100%; cursor: pointer;
}
.piece-media { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--plaster); }
.piece-media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: opacity .7s ease, transform 1.4s cubic-bezier(.2, .7, .2, 1);
}
.piece-media .b { opacity: 0; }
@media (hover: hover) {
  .piece-open:hover .piece-media .b { opacity: 1; }
  .piece-open:hover .piece-media img { transform: scale(1.025); }
}
.piece-open:focus-visible { outline: none; }
.piece-open:focus-visible .piece-media { outline: 2px solid var(--ink); outline-offset: 4px; }
.piece-info { display: grid; gap: 5px; padding-top: 14px; }
.piece-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.piece-name { font-weight: 700; font-stretch: 78%; font-size: 17px; letter-spacing: .015em; text-transform: uppercase; }
.piece-kind, .piece-price { color: var(--ink-muted); font-size: 10.5px; }
.piece-price { color: var(--ink); white-space: nowrap; }
/* the hoodie leads: two columns wide, two rows tall, its photo stretches to line up with the pieces beside it */
.piece-feature { grid-column: span 2; grid-row: span 2; }
.piece-feature .piece-media { aspect-ratio: auto; flex: 1; min-height: 0; }
.piece-feature .piece-media img { object-position: 50% 22%; }
.piece-feature .piece-name { font-size: 24px; }
.piece-note { justify-content: center; align-items: flex-start; padding: clamp(20px, 2.6vw, 40px); border: 1px solid var(--ink-rule); }
.piece-note-line { font: 400 clamp(24px, 2.5vw, 38px)/1.08 var(--sans); font-stretch: 72%; font-weight: 800; text-transform: uppercase; margin: 12px 0 24px; }
.piece-note-line em { text-transform: none; font-size: 1.08em; letter-spacing: -.01em; display: block; }
.btn-night { background: var(--night); color: var(--snow); }
.btn-night:hover { background: #1B2530; }

/* ---------- 3. the clearing: the same forest as the hero, later that night ---------- */
.clearing { --p: .5; position: relative; min-height: 100vh; min-height: 100svh; overflow: hidden; background: var(--night); display: grid; }
.clearing-media, .join-media { position: absolute; inset: 0; overflow: hidden; }
.clearing-media img, .join-media img {
  position: absolute; left: 0; top: -6%; width: 100%; height: 112%; object-fit: cover; object-position: 50% 60%;
  transform: translate3d(0, calc((var(--p) - .5) * -7%), 0); will-change: transform;
}
/* the photo melts into the night page at the bottom, and carries the same film grain as the hero */
.clearing::before, .join::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(10, 14, 19, .62) 0%, rgba(10, 14, 19, .18) 34%, rgba(10, 14, 19, 0) 58%, rgba(10, 14, 19, 0) 78%, var(--night) 100%);
}
.clearing-copy { position: relative; z-index: 2; align-self: start; justify-self: center; text-align: center; padding: clamp(96px, 17vh, 190px) var(--gutter) 0; max-width: 1100px; }
.clearing-copy h2 { text-shadow: 0 2px 30px rgba(10, 14, 19, .7); }
.clearing-sub { margin-top: 14px; font-size: clamp(26px, 3vw, 44px); line-height: 1.05; color: var(--snow); text-shadow: 0 2px 24px rgba(10, 14, 19, .8); }

/* ---------- 5. the ideas: one real idea per piece ---------- */
.ideas { padding: clamp(84px, 13vh, 150px) 0 clamp(70px, 11vh, 130px); }
.idea {
  --p: .5; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); align-items: center;
  gap: clamp(28px, 6vw, 100px); padding: clamp(52px, 9vh, 110px) var(--gutter) 0;
}
.idea-flip .idea-media { order: 2; }
.idea-media { position: relative; aspect-ratio: 1 / 1; max-height: 84vh; overflow: hidden; background: var(--ice); }
.idea-media[data-idea-media="1"] { aspect-ratio: 4 / 5; justify-self: center; width: 100%; max-width: 620px; }
.idea-media img, .idea-media video {
  position: absolute; left: 0; top: -4%; width: 100%; height: 108%; object-fit: cover;
  transform: translate3d(0, calc((var(--p) - .5) * -5%), 0); will-change: transform;
}
.idea-copy h3 { font-weight: 800; font-stretch: 70%; font-size: clamp(30px, 3.7vw, 56px); line-height: .96; }
.idea-copy h3 em { text-transform: none; font-size: 1.06em; letter-spacing: -.015em; }
.idea-copy > p:not(.eyebrow) { color: var(--muted); max-width: 44ch; margin: 20px 0 28px; }

/* ---------- product view ---------- */
html.pv-open { overflow: hidden; }
.pv {
  --ink: #12161B; --ink-muted: rgba(18, 22, 27, .64); --ink-rule: rgba(18, 22, 27, .16);
  border: 0; padding: 0; margin: auto; max-width: none; max-height: none; overflow: hidden;
  width: min(1180px, calc(100vw - 40px)); height: min(860px, calc(100dvh - 40px));
  background: var(--fur); color: var(--ink);
}
.pv[open] { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); animation: pv-in .35s cubic-bezier(.2, .7, .2, 1); }
.pv::backdrop { background: rgba(6, 9, 12, .74); backdrop-filter: blur(8px); }
@keyframes pv-in { from { opacity: 0; transform: translateY(14px); } }
.pv-gallery { overflow-y: auto; overscroll-behavior: contain; display: grid; gap: 6px; align-content: start; background: #CFC6BA; scrollbar-width: thin; }
.pv-gallery img { display: block; width: 100%; height: auto; }
.pv-info { overflow-y: auto; overscroll-behavior: contain; padding: clamp(30px, 4vw, 60px); padding-top: clamp(56px, 6vw, 72px); display: flex; flex-direction: column; }
.pv-info .eyebrow, .pv .fine { color: var(--ink-muted); }
.pv-info h2 { font-size: clamp(34px, 3.8vw, 54px); }
.pv-line { font: italic 400 clamp(22px, 2.2vw, 30px)/1.15 var(--serif); margin-top: 14px; }
.pv-story { color: var(--ink-muted); margin-top: 18px; max-width: 46ch; }
.pv-details { list-style: none; padding: 0; margin: 26px 0 18px; border-top: 1px solid var(--ink-rule); text-transform: none; letter-spacing: .04em; font-size: 12px; }
.pv-details li { padding: 12px 0; border-bottom: 1px solid var(--ink-rule); }
.pv-buy { margin-top: auto; padding-top: 28px; }
.pv-buy .signup { margin-top: 14px; max-width: none; }
.pv .signup input { background: rgba(18, 22, 27, .05); border-color: rgba(18, 22, 27, .28); color: var(--ink); backdrop-filter: none; }
.pv .signup input::placeholder { color: rgba(18, 22, 27, .45); }
.pv .signup-note.is-status { color: var(--ink); }
.pv .btn:focus-visible, .pv input:focus-visible { outline-color: var(--ink); }
.pv-close {
  position: absolute; top: 14px; right: 14px; z-index: 2; appearance: none; cursor: pointer;
  min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--ink-rule); background: rgba(232, 227, 217, .86); color: var(--ink);
  font: 500 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; backdrop-filter: blur(6px);
}
.pv-close:hover { border-color: var(--ink); }

/* ---------- 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; }

/* ---------- 6. join: the wolf looks back ---------- */
.join { position: relative; min-height: 100vh; min-height: 100svh; display: grid; align-items: center; padding: 120px var(--gutter); overflow: hidden; --p: .5; background: var(--night); }
.join::before { background: linear-gradient(90deg, rgba(10, 14, 19, .78) 0%, rgba(10, 14, 19, .46) 38%, rgba(10, 14, 19, 0) 66%), linear-gradient(180deg, var(--night) 0%, rgba(10, 14, 19, 0) 22%, rgba(10, 14, 19, 0) 80%, var(--night) 100%); }
.join-media img { object-position: 70% 60%; }
.join h2 { font: italic 400 clamp(84px, 14vw, 230px)/.9 var(--serif); text-transform: none; letter-spacing: -.03em; text-shadow: 0 2px 40px rgba(10, 14, 19, .6); }
.join .lede { margin-top: 18px; color: var(--snow); }
.join-copy { position: relative; z-index: 2; max-width: 640px; }
.film-still { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---------- 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: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%;
    background: var(--ember); box-shadow: 0 0 0 1px rgba(10, 14, 19, .35);
    transform: translate3d(-100px, -100px, 0); opacity: 0;
    transition: box-shadow .15s ease, opacity .2s ease;
  }
  html.dot-cursor .cursor-dot.on { opacity: 1; }
  /* steady on purpose: it never pulses or changes size, so it stays an accurate pointer. Over anything clickable it gains a faint halo. */
  html.dot-cursor .cursor-dot.is-link { box-shadow: 0 0 0 1px rgba(10, 14, 19, .35), 0 0 0 6px rgba(232, 98, 58, .22); }
  html.dot-cursor .cursor-dot.is-text { opacity: 0; }
}

/* ---------- 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; }
  .shop-grid { grid-template-columns: 1fr 1fr; }
  .piece-feature { grid-column: 1 / -1; grid-row: auto; }
  .piece-feature .piece-media { aspect-ratio: 1 / 1; flex: none; }
  .idea, .idea-flip { grid-template-columns: 1fr; }
  .idea-flip .idea-media { order: 0; }
  .idea-media { max-height: none; }
  .pv { width: 100vw; height: 100dvh; max-width: 100vw; }
  .pv[open] { display: block; overflow-y: auto; }
  .pv-gallery { display: flex; gap: 4px; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; }
  .pv-gallery img { flex: 0 0 88%; width: 88%; height: min(62vh, 110vw); object-fit: cover; scroll-snap-align: center; }
  .pv-gallery img:only-child { flex-basis: 100%; width: 100%; }
  .pv-info { overflow: visible; padding-top: 28px; }
  .pv-close { position: fixed; }
  .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%; }
  .piece-feature .piece-media { aspect-ratio: 4 / 5; }
  .clearing { min-height: 86svh; }
  .clearing-media img { object-position: 42% 60%; }
  .join { align-items: start; padding-top: 110px; }
  .join-media img { object-position: 74% 60%; }
  .join::before { background: linear-gradient(180deg, var(--night) 0%, rgba(10, 14, 19, .55) 30%, rgba(10, 14, 19, 0) 58%, rgba(10, 14, 19, 0) 82%, var(--night) 100%); }
  .piece-name { font-size: 14px; }
  .piece-feature .piece-name { font-size: 19px; }
  .piece-top { flex-direction: column; gap: 2px; }
  .hero-actions .btn { min-width: 0; flex: 1 1 140px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .aurora i, .scroll-hint i, .hero.is-scene::after, .clearing::after, .join::after { animation: none !important; }
  .clearing-media img, .join-media img { transform: none !important; }
  .monitor-trace { animation: none; stroke-dasharray: none; }
  .monitor-dot { animation: none; offset-distance: 100%; }
  .idea-media img, .idea-media video { transform: none !important; }
  .piece-media img, .pv[open] { transition: none; animation: none; }
}
