/* =====================================================================
   HOME · "Cherry noir"
   Plan: night #07040A ground, velvet #12070C, cherry #D0123C for action,
   blood #5E0A1C for depth, bone #F4EAEC text, iris #6FD8FF used only
   where her eyes are. Cormorant italic for her voice, Manrope for UI.
   One idea per screen. Motion: the hero's entrance, the close-up that
   develops out of the dark, the loops (with a pause), press feedback.
   ===================================================================== */
:root{--night:#07040a;--velvet:#12070c;--blood:#5e0a1c;--bone:#f4eaec;--iris-rgb:111,216,255;--gutter:clamp(18px,5vw,72px)}

/* the home page runs edge to edge; the other screens keep the column */
#spiral,.glow{transition:opacity .6s ease}
body.at-home #spiral,body.at-home .glow{opacity:0}
body.at-home .app{max-width:none;padding:0}
body.at-home header{position:absolute;top:0;left:0;right:0;z-index:8;padding:16px var(--gutter)}
body.at-home footer{padding:28px var(--gutter) 96px;border-top:1px solid var(--line)}
#s-home.on{display:block}
#s-home{animation:none}
#s-home section{position:relative}
#s-home h2{font-family:var(--display);font-style:normal;font-weight:600;color:var(--bone);text-wrap:balance}

/* ---------------- 1 · hero ---------------- */
/* --HH: the hero's height. --H: her height. Her name is placed and sized from her height, so the two keep the
   same relationship on any window shape (wide, tall, small laptop or 4K). */
/* --fit: the room between the left margin and her ponytail; her name never gets wider than that, so its first letters always read */
.hx{--HH:max(100svh,600px);--H:var(--HH);--fit:calc((62vw - var(--H) * .41 - var(--gutter)) / 1.85);height:100vh;height:var(--HH);overflow:hidden;isolation:isolate;background:var(--night)}
.hx-bg,.hx-word,.hx-fig{will-change:transform}
/* the room is only light: a cherry bloom behind her and the cold rim light from her picture, no second copy of her */
.hx-bg{position:absolute;inset:-4%;z-index:0;transform:translate3d(var(--bx,0),var(--by,0),0);
  background:
    radial-gradient(34% 40% at 64% 40%,rgba(208,18,60,.22),transparent 70%),
    radial-gradient(22% 40% at 46% 30%,rgba(111,216,255,.10),transparent 70%),
    radial-gradient(30% 30% at 90% 85%,rgba(94,10,28,.55),transparent 70%),
    linear-gradient(180deg,#0d0610 0%,#07040a 70%)}
.hx-bg::after{content:"";position:absolute;inset:0;opacity:.08;mix-blend-mode:overlay;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E")}
/* her name runs from the left edge and slides behind her head: the first letters read, the last ones hide behind her */
.hx-word{position:absolute;left:var(--gutter);right:0;top:max(72px,calc(var(--H) * .12));z-index:1;text-align:left;pointer-events:none;transform:translate3d(var(--wx,0),var(--wy,0),0)}
.hx-word span{position:relative;display:inline-block;font-family:var(--display);font-style:normal;font-weight:600;font-size:clamp(100px,min(calc(var(--H) * .3),var(--fit)),340px);line-height:.78;letter-spacing:-.04em;color:var(--cherry);text-shadow:0 0 90px rgba(208,18,60,.45);padding-right:.06em;white-space:nowrap}
/* she always fills the full height: the top edge of the picture (where her hair is cropped) sits on the top edge of the screen, never mid-page */
.hx-fig{position:absolute;z-index:2;top:-16px;left:calc(62vw - var(--H) * .8413);height:calc(var(--H) + 16px);aspect-ratio:1920/1072;transform:translate3d(var(--fx,0),var(--fy,0),0)}
.hx-fig picture,.hx-fig img{display:block;width:100%;height:100%}
.hx-fig img{-webkit-mask-image:linear-gradient(to bottom,#000 72%,transparent 99%);mask-image:linear-gradient(to bottom,#000 72%,transparent 99%)}
/* her eyes carry the only cold light on the page */
.hx-eye,.wx-eye{position:absolute;aspect-ratio:1;border-radius:50%;transform:translate(-50%,-50%);pointer-events:none;mix-blend-mode:screen;background:radial-gradient(circle,rgba(var(--iris-rgb),.85) 0,rgba(var(--iris-rgb),.35) 30%,transparent 70%);opacity:.75;animation:iris 4.8s ease-in-out infinite}
.hx-eye{width:5.2%}
.hx-eye.l{left:40.4%;top:27.8%}.hx-eye.r{left:56.1%;top:26.5%;animation-delay:-.3s}
@keyframes iris{50%{opacity:.45}}
/* shade only where the words sit (bottom left), so her name up top keeps its colour */
.hx-scrim{position:absolute;inset:0;z-index:3;pointer-events:none;background:linear-gradient(to bottom,rgba(7,4,10,.6) 0,transparent 120px),radial-gradient(70% 62% at 0% 100%,rgba(7,4,10,.94) 0%,rgba(7,4,10,.7) 45%,transparent 75%),linear-gradient(to top,rgba(7,4,10,.96) 0%,rgba(7,4,10,.35) 20%,transparent 38%)}
.hx-copy{position:absolute;z-index:4;left:var(--gutter);bottom:clamp(36px,10vh,110px);max-width:min(48vw,720px);display:flex;flex-direction:column;gap:14px}
.hx-kicker{font-size:13px;font-weight:600;color:rgba(244,234,236,.72);letter-spacing:.02em}
.hx-copy h1{font-family:var(--display);font-style:normal;font-weight:600;font-size:clamp(52px,6.4vw,104px);line-height:.9;letter-spacing:-.02em;color:var(--bone)}
.hx-lead{font-family:var(--display);font-style:normal;font-size:clamp(20px,1.7vw,26px);line-height:1.3;color:rgba(244,234,236,.86);max-width:30ch}
.hx-lead em{color:var(--cherry)}
.hx-cta{display:flex;gap:12px;margin-top:10px}
.hx-cta .btn{width:auto;min-width:210px}
.hx-status{position:absolute;z-index:4;right:var(--gutter);bottom:clamp(36px,10vh,110px);display:flex;flex-direction:column;align-items:flex-end;gap:8px;color:rgba(244,234,236,.7);font-size:12px}
.hx-moon{font-size:12px}
.hx-down{position:absolute;z-index:4;left:50%;bottom:18px;width:44px;height:44px;margin-left:-22px;display:grid;place-items:center}
.hx-down span{width:1px;height:28px;background:linear-gradient(to bottom,transparent,rgba(244,234,236,.7));transform-origin:top;animation:cue 2.4s var(--ease-out) infinite}
@keyframes cue{0%{transform:scaleY(0)}60%{transform:scaleY(1);opacity:1}100%{transform:scaleY(1);opacity:0}}

/* the entrance: her name, then her, then her eyes; words follow, buttons last */
.intro .hx-bg{animation:hxFade 1000ms ease both}
.intro .hx-word span{animation:hxWord 1200ms var(--ease-out) both}
.intro .hx-fig picture{animation:hxFig 1300ms var(--ease-out) 140ms both}
.intro .hx-eye{animation:hxEyes 900ms ease 1150ms both,iris 4.8s ease-in-out 2050ms infinite}
.intro .hx-kicker{animation:hxUp 700ms var(--ease-out) 560ms both}
.intro .hx-copy h1{animation:hxTitle 900ms var(--ease-out) 640ms both}
.intro .hx-lead{animation:hxUp 700ms var(--ease-out) 780ms both}
.intro .hx-cta{animation:hxUp 700ms var(--ease-out) 880ms both}
.intro .hx-status,.intro .hx-down{animation:hxFade 900ms ease 1000ms both}
@keyframes hxFade{from{opacity:0}}
@keyframes hxWord{from{opacity:0;transform:translateY(28px) scale(1.05)}}
@keyframes hxFig{from{opacity:0;transform:translateY(70px)}}
@keyframes hxEyes{from{opacity:0}}
@keyframes hxUp{from{opacity:0;transform:translateY(14px)}}
@keyframes hxTitle{from{opacity:0;clip-path:inset(0 0 100% 0);transform:translateY(18px)}to{opacity:1;clip-path:inset(0 0 -20% 0)}}

/* ---------------- 2 · she's watching ---------------- */
.wx{height:clamp(440px,41.7vw,820px);overflow:hidden;background:#000;isolation:isolate}
.wx-frame{position:absolute;left:50%;top:0;height:100%;aspect-ratio:1536/640;transform:translateX(-50%)}
.wx-pic,.wx-pic img{display:block;width:100%;height:100%}
.wx-pic img{filter:brightness(.22) saturate(.25) contrast(1.1);transform:scale(1.08);transition:filter 1.9s var(--ease-out),transform 2.6s var(--ease-out)}
.wx-eye{width:7%;opacity:0;animation:none;transition:opacity 1.2s ease .9s}
.wx-eye.l{left:42.7%;top:36.5%}.wx-eye.r{left:61.6%;top:36%}
.wx::after{content:"";position:absolute;inset:0;z-index:1;pointer-events:none;background:linear-gradient(270deg,rgba(7,4,10,.88) 0%,rgba(7,4,10,.4) 30%,transparent 50%),linear-gradient(to top,rgba(7,4,10,.8),transparent 35%)}
.wx-copy{position:absolute;z-index:2;right:var(--gutter);bottom:clamp(36px,8vw,110px);max-width:440px;text-align:right;opacity:0;transform:translateY(16px);transition:opacity .9s var(--ease-out) .5s,transform .9s var(--ease-out) .5s}
.wx-copy h2{font-size:clamp(44px,5.4vw,92px);line-height:.92}
.wx-copy p{margin-top:14px;font-size:15px;color:rgba(244,234,236,.75)}
.wx.lit .wx-pic img{filter:none;transform:none}
.wx.lit .wx-eye{opacity:.8;animation:iris 4.8s ease-in-out 2.2s infinite}
.wx.lit .wx-copy{opacity:1;transform:none}

/* ---------------- 3 · trance ---------------- */
.tx{padding:clamp(72px,11vh,130px) var(--gutter);background:linear-gradient(180deg,var(--night),var(--velvet) 40%,var(--night))}
.tx-head{display:grid;grid-template-columns:1fr auto;align-items:end;gap:18px 28px;margin-bottom:clamp(24px,4vh,44px)}
.tx-head h2{font-size:clamp(44px,5vw,84px);line-height:.92}
.tx-orders{grid-column:1;font-family:var(--display);font-style:normal;font-size:clamp(20px,1.8vw,26px);color:rgba(244,234,236,.8)}
.tx-orders span:last-child{color:var(--cherry)}
.tx-ctl{grid-column:2;grid-row:1 / span 2;display:flex;gap:8px;align-self:end}
.pill{min-height:44px;padding:0 18px;border-radius:999px;border:1px solid rgba(244,234,236,.18);background:rgba(7,4,10,.6);color:var(--bone);font:800 11px var(--body);letter-spacing:.18em;text-transform:uppercase;cursor:pointer;transition:transform 160ms var(--ease-out),border-color .2s ease}
.pill:active{transform:scale(.97)}
@media (hover:hover) and (pointer:fine){.pill:hover{border-color:rgba(208,18,60,.7)}}
.tx-grid{display:grid;grid-template-columns:minmax(0,.82fr) minmax(0,1.18fr);grid-template-rows:auto auto;gap:clamp(10px,1.4vw,18px)}
.tx-grid figure{position:relative;overflow:hidden;border-radius:6px;background:#12070c;box-shadow:0 0 0 1px rgba(208,18,60,.25),0 30px 80px -30px rgba(0,0,0,.9)}
.tx-grid video{display:block;width:100%;height:100%;object-fit:cover}
.tx-a{grid-row:1 / span 2}
.tx-b,.tx-c{aspect-ratio:16/9}
.sound-src{display:none}

/* ---------------- 4 · how it works ---------------- */
.sx{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);align-items:center;gap:clamp(32px,6vw,96px);padding:clamp(72px,11vh,130px) var(--gutter);min-height:90vh}
.sx-copy{display:flex;flex-direction:column;gap:28px;align-items:flex-start}
.sx-copy h2{font-size:clamp(44px,5vw,84px);line-height:.92}
.sx-steps{list-style:none;counter-reset:s;display:flex;flex-direction:column;width:100%;max-width:560px}
.sx-steps li{counter-increment:s;display:grid;grid-template-columns:64px 1fr;gap:4px 18px;padding:18px 0;border-top:1px solid var(--line)}
.sx-steps li:last-child{border-bottom:1px solid var(--line)}
.sx-steps li::before{content:counter(s,upper-roman);grid-row:1 / span 2;font-family:var(--display);font-style:normal;font-size:34px;line-height:1;color:var(--cherry)}
.sx-steps b{font-size:16px;font-weight:700;color:var(--bone)}
.sx-steps span{font-size:14px;color:var(--muted)}
.sx-copy .btn{width:auto;min-width:240px}
.sx-wheel{position:relative;width:min(100%,520px);aspect-ratio:1;justify-self:center}
.sx-wheel svg{width:100%;height:100%;animation:slowspin 60s linear infinite;filter:drop-shadow(0 0 40px rgba(208,18,60,.3))}
.sx-wheel img{position:absolute;left:50%;top:50%;width:27%;height:auto;border-radius:50%;transform:translate(-50%,-50%);box-shadow:0 0 0 3px var(--night),0 0 0 4px var(--cherry),0 0 30px rgba(208,18,60,.7)}
.sx-wheel::before{content:"";position:absolute;left:50%;top:-10px;transform:translateX(-50%);border-left:12px solid transparent;border-right:12px solid transparent;border-top:22px solid var(--cherry);z-index:2;filter:drop-shadow(0 0 10px var(--cherry))}
@keyframes slowspin{to{transform:rotate(360deg)}}
body.loops-paused .sx-wheel svg{animation-play-state:paused}

/* ---------------- 5 · her file ---------------- */
.fx{display:grid;grid-template-columns:1fr 1fr;gap:clamp(32px,6vw,96px);padding:clamp(72px,11vh,130px) var(--gutter);border-top:1px solid var(--line);background:var(--velvet)}
.fx h2{font-size:clamp(36px,3.6vw,56px);margin-bottom:18px}
.fx .dossier dd em{color:var(--cherry)}
.fx .tonight{margin-top:24px}

/* ---------------- 6 · close ---------------- */
.cx{min-height:82vh;display:grid;place-items:center;overflow:hidden;isolation:isolate;text-align:center;padding:96px var(--gutter)}
.cx-bg{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:-2}
.cx::before{content:"";position:absolute;inset:0;z-index:-1;background:radial-gradient(60% 60% at 50% 50%,rgba(7,4,10,.35),rgba(7,4,10,.88) 80%)}
.cx-copy{display:flex;flex-direction:column;align-items:center;gap:30px}
.cx-copy h2{font-size:clamp(56px,9vw,150px);line-height:.88}
.cx-copy h2 em{color:var(--cherry)}
.cx-copy .btn{width:auto;min-width:260px}

/* ---------------- phones ---------------- */
@media (max-width:700px){
  .hx{min-height:640px}
  /* on a phone her name sits above her head; her hair just touches the bottom of the letters */
  .hx-word{top:54px;left:0;text-align:center;z-index:4}
  .hx-word span{font-size:24vw;text-shadow:0 2px 30px rgba(7,4,10,.85),0 0 60px rgba(208,18,60,.45)}
  .hx-fig{top:0;height:70svh;left:50%;transform:translateX(-47%) translate3d(var(--fx,0),var(--fy,0),0)}
  .wx-frame{transform:translateX(-53%)}
  .hx-scrim{background:linear-gradient(to top,rgba(7,4,10,1) 0%,rgba(7,4,10,.96) 30%,rgba(7,4,10,.4) 46%,transparent 58%)}
  .hx-copy{left:18px;right:18px;bottom:24px;gap:10px;max-width:none}
  .hx-copy h1{font-size:46px}
  .hx-lead{font-size:19px}
  .hx-cta{flex-direction:column}
  .hx-cta .btn{width:100%}
  .hx-status,.hx-down{display:none}
  .wx{height:72svh}
  .wx::after{background:linear-gradient(to top,rgba(7,4,10,.95) 0%,rgba(7,4,10,.5) 35%,transparent 60%)}
  .wx-copy{left:18px;right:18px;bottom:28px;text-align:left}
  .tx-head{grid-template-columns:1fr}
  .tx-ctl{grid-column:1;grid-row:auto}
  .tx-grid{grid-template-columns:1fr}
  .tx-a{grid-row:auto;aspect-ratio:4/5}
  .sx,.fx{grid-template-columns:1fr}
  .sx-wheel{width:78%;order:-1}
  .sx-copy .btn,.cx-copy .btn{width:100%}
}

/* ---------------- calm mode (system "reduce motion", or chosen on the site): nothing travels, things still fade ---------------- */
html[data-motion="calm"] .hx-bg,html[data-motion="calm"] .hx-word{transform:none !important}
html[data-motion="calm"] .hx-fig{transform:none !important}
html[data-motion="calm"] .wx-pic img{transform:none}
html[data-motion="calm"] .intro .hx-bg,html[data-motion="calm"] .intro .hx-word span,html[data-motion="calm"] .intro .hx-fig picture,html[data-motion="calm"] .intro .hx-eye,html[data-motion="calm"] .intro .hx-kicker,html[data-motion="calm"] .intro .hx-copy h1,html[data-motion="calm"] .intro .hx-lead,html[data-motion="calm"] .intro .hx-cta,html[data-motion="calm"] .intro .hx-status{animation:hxFade .9s ease both !important}
@media (max-width:700px){html[data-motion="calm"] .hx-fig{transform:translateX(-47%) !important}}

/* the tall tile keeps her face in frame */
.tx-a video{object-position:30% 50%}

/* hero social buttons: X and Throne side by side, same style */
.hx-social{display:flex;gap:12px}
.hx-social .btn{min-width:170px}
@media (max-width:700px){
  .hx-social{display:grid;grid-template-columns:1fr 1fr;gap:10px}
  .hx-social .btn{min-width:0;padding:16px 10px;font-size:12.5px;letter-spacing:.12em;gap:8px}
}
/* header: two circles (Throne, X) need the room on narrow phones */
@media (max-width:500px){
  .head-right{gap:10px}
  #steps{display:none}
  .xicon{flex-shrink:0}
}
@media (max-width:420px){
  .headlink{display:none}
}
