/* ============================================================
   IVY — LOS ANGELES · VITRINE / TWO DOTS
   paper-white museum vitrine; the wordmark lives behind the
   photograph; color budget = two strain dots + one green action.
   ============================================================ */

@font-face{
  font-family:"Cinzel";
  src:url("assets/fonts/cinzel-600.woff2") format("woff2");
  font-weight:600; font-style:normal; font-display:swap;
}
@font-face{
  font-family:"Plex Mono";
  src:url("assets/fonts/plexmono-400.woff2") format("woff2");
  font-weight:400; font-style:normal; font-display:swap;
}
@font-face{
  font-family:"Plex Mono";
  src:url("assets/fonts/plexmono-500.woff2") format("woff2");
  font-weight:500; font-style:normal; font-display:swap;
}

:root{
  --paper:#f5f5f3;
  --ink:#161613;
  --ink-soft:#6a6a63;
  --hair:rgba(22,22,19,.14);
  --ghost:#e7e7e2;
  --dot-g:#55ff37;   /* brand lime, sampled from the official render */
  --dot-p:#b80fbe;   /* brand magenta */
  --ivy:#256b30;
  --ease:cubic-bezier(.16,1,.3,1);
  --gutter:clamp(24px,6vw,96px);
}

*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scrollbar-gutter:stable}
html:focus-within{scroll-behavior:smooth}
body{
  background:var(--paper);
  color:var(--ink);
  font-family:"Plex Mono",ui-monospace,monospace;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
  overflow-x:hidden;
}
body.pre-gate,body.drawer-open{overflow:hidden}
img{max-width:100%;height:auto;display:block}
button{font:inherit;color:inherit;background:none;border:0;cursor:pointer}
a{color:inherit}

.cinzel{font-family:"Cinzel",serif;font-weight:600}
.mono{font-family:"Plex Mono",ui-monospace,monospace}
.dim{color:var(--ink-soft)}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}

::selection{background:#dcead8;color:var(--ink)}

/* film grain — baked SVG tile, near-invisible */
body::after{
  content:"";position:fixed;inset:0;z-index:55;pointer-events:none;
  background-image:url("assets/grain.svg");background-size:120px 120px;
  opacity:.035;
}

/* the two dots — the only ornament in the system */
.d{display:inline-block;width:7px;height:7px;border-radius:50%;flex:none}
.d.g{background:var(--dot-g)}
.d.p{background:var(--dot-p)}
.dots{display:inline-flex;gap:10px;align-items:center}

/* ····· skip link ····· */
.skip{
  position:fixed;top:10px;left:10px;z-index:90;
  padding:10px 16px;background:var(--ink);color:var(--paper);
  font-size:10px;letter-spacing:.2em;text-decoration:none;
  transform:translateY(-56px);transition:transform .3s var(--ease);
}
.skip:focus-visible{transform:none}

/* ============================================================
   age gate
   ============================================================ */
#gate{
  position:fixed;inset:0;z-index:80;
  background:var(--paper);
  display:grid;place-items:center;text-align:center;
  transition:transform .95s cubic-bezier(.76,0,.24,1);
}
body.entered #gate{transform:translateY(-101%)}
body.gate-done #gate{display:none}
.gate-inner{display:grid;justify-items:center;gap:18px;padding:0 24px}
.gate-logo{width:min(230px,56vw);height:auto}
.gate-sub{font-size:10px;letter-spacing:.55em;color:var(--ink-soft);margin-top:-2px;padding-left:.55em}
.gate-rule{width:56px;height:1px;background:var(--hair);margin:14px 0}
.gate-q{font-size:10px;letter-spacing:.28em;color:var(--ink-soft)}
.gate-actions{display:flex;align-items:center;gap:34px;margin-top:22px}
.gate-exit{
  font-size:10px;letter-spacing:.28em;color:var(--ink-soft);
  text-decoration:underline;text-underline-offset:5px;text-decoration-color:var(--hair);
  transition:color .3s;
}
.gate-exit:hover{color:var(--ink)}

/* ····· pills (the single action) ····· */
.pill{
  display:inline-flex;align-items:center;justify-content:center;
  height:52px;padding:0 36px;border-radius:999px;
  background:var(--ink);color:var(--paper);
  font-size:11px;letter-spacing:.24em;text-indent:.24em;white-space:nowrap;
  transition:background .35s var(--ease),color .35s var(--ease),transform .5s var(--ease);
}
.pill:hover{background:var(--ivy)}
.pill:focus-visible{outline:2px solid var(--ivy);outline-offset:4px}
.buy-lg{height:64px;padding:0 58px;font-size:12px}

/* ============================================================
   header
   ============================================================ */
#top{
  position:fixed;inset-inline:0;top:0;z-index:40;
  display:flex;align-items:center;justify-content:space-between;
  padding:20px var(--gutter);
  transition:background .4s,box-shadow .4s;
}
#top.scrolled{
  background:color-mix(in srgb,var(--paper) 82%,transparent);
  -webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);
  box-shadow:0 1px 0 var(--hair);
}
.wordmark-img{width:74px;height:auto}
.top-right{font-size:9px;letter-spacing:.3em;color:var(--ink-soft)}

/* ============================================================
   hero — the vitrine
   NOTE: .stage and its ancestors must never receive transform/
   opacity/filter — it would isolate the multiply blend that lets
   the wordmark pass behind the photograph.
   ============================================================ */
.hero{
  position:relative;
  min-height:100svh;
  display:grid;place-items:center;
}
/* the official mark, ghost-tinted, living behind the photograph.
   wrapper takes the JS parallax; inner img takes the reveal transition. */
.giant-wrap{
  position:absolute;left:50%;top:39%;translate:-50% -50%;
  z-index:1;
  width:min(78vw,1120px);
  user-select:none;pointer-events:none;
}
.giant{
  width:100%;height:auto;
  opacity:0;transform:translateY(46px) scale(.985);filter:blur(14px);
  transition:opacity 1.3s var(--ease) .05s,transform 1.3s var(--ease) .05s,filter 1.3s var(--ease) .05s;
}
body.revealed .giant{opacity:1;transform:none;filter:none}

/* stage carries NO z-index — a positioned ancestor with z-index would form a
   stacking context and isolate the children's multiply blend from the page.
   The blended elements take the z-index themselves. */
.stage{
  position:relative;
  width:min(60vh,86vw,640px);
  aspect-ratio:1;
  cursor:pointer;
}
.stage:focus-visible{outline:2px solid var(--ivy);outline-offset:10px}
.stage img,.stage canvas{
  position:absolute;inset:0;width:100%;height:100%;z-index:2;
  mix-blend-mode:multiply;
}
.stage img{
  opacity:0;transition:opacity 1.4s var(--ease) .15s;
}
body.revealed .stage img{opacity:1}
.stage canvas{opacity:0;transition:opacity 1.4s var(--ease) .15s}
body.revealed .stage canvas{opacity:1}

/* placard — lower left */
.placard{
  position:absolute;z-index:3;
  left:var(--gutter);bottom:clamp(84px,13vh,150px);
  display:grid;gap:12px;justify-items:start;
}
.lab{font-size:11px;letter-spacing:.3em}
.lab.dim{font-size:9px;letter-spacing:.24em}
.chips{display:flex;align-items:center;gap:14px;margin-top:6px}
.chip{display:inline-flex;align-items:center;gap:9px;font-size:10px;letter-spacing:.18em}
.plus{font-size:10px;color:var(--ink-soft)}
.placard-rule{width:100%;height:1px;background:var(--hair);margin-top:8px;transform-origin:left}
.cta-row{display:flex;align-items:center;gap:26px;margin-top:6px}
.price{font-size:15px;font-weight:500;letter-spacing:.14em}

/* scroll cue */
.cue{position:absolute;z-index:3;left:50%;bottom:26px;translate:-50%;opacity:1;transition:opacity .6s}
body.scrolled-once .cue{opacity:0}
.cue-line{display:block;width:1px;height:44px;background:var(--hair);overflow:hidden;position:relative}
.cue-line::after{
  content:"";position:absolute;left:0;top:-50%;width:1px;height:50%;
  background:var(--ink);
  animation:cue 2.2s var(--ease) infinite;
}
@keyframes cue{0%{top:-50%}60%,100%{top:110%}}

/* ============================================================
   reveals (generic)
   ============================================================ */
[data-reveal]{
  opacity:0;transform:translateY(24px);
  transition:opacity .9s var(--ease),transform .9s var(--ease);
  transition-delay:var(--d,0s);
}
[data-reveal].in{opacity:1;transform:none}
.placard-rule[data-reveal]{transform:scaleX(0)}
.placard-rule[data-reveal].in{transform:scaleX(1)}

/* ============================================================
   spec — the placard table (facts at price weight)
   ============================================================ */
.spec{padding:22vh 0}
.spec-table{max-width:720px;margin:0 auto;padding:0 var(--gutter)}
.spec .row{
  display:grid;grid-template-columns:clamp(96px,18vw,150px) 1fr;
  align-items:baseline;gap:18px;
  padding:22px 2px;
  border-top:1px solid var(--hair);
}
.spec .row:last-child{border-bottom:1px solid var(--hair)}
.spec dt{font-size:9px;letter-spacing:.3em;color:var(--ink-soft)}
.spec dd{
  font-size:clamp(14px,1.6vw,18px);font-weight:500;letter-spacing:.1em;
  display:flex;align-items:center;gap:12px;
}
.type-ico{width:15px;height:15px;opacity:.5;margin-left:4px}

/* ============================================================
   the device — official transparent render, suspended specimen
   (true alpha: free to transform, unlike the blended plates)
   ============================================================ */
.device{padding:10vh 0 6vh;display:grid;justify-items:center;gap:34px}
.device-fig{width:min(420px,72vw)}
.device-fig img{animation:levitate 7s ease-in-out infinite alternate}
@keyframes levitate{
  from{transform:translateY(-7px)}
  to{transform:translateY(9px)}
}

/* ============================================================
   detail plate — the print floats bare on the page
   (multiply again: no borders, its paper is the page)
   ============================================================ */
.detail{padding:6vh 0 10vh;display:grid;justify-items:center;gap:30px}
.plate{width:min(704px,88vw)}
.plate img{
  mix-blend-mode:multiply;
  opacity:0;transition:opacity 1.2s var(--ease);
}
.plate img.in{opacity:1}
.detail-cap{font-size:10px;letter-spacing:.42em;text-indent:.42em}

/* ============================================================
   acquire
   ============================================================ */
.acquire{padding:20vh 0 26vh;display:grid;justify-items:center;gap:34px;text-align:center}
.acq-price{font-size:clamp(72px,13vw,168px);line-height:1;letter-spacing:.02em}
.acq-note{font-size:9px;letter-spacing:.34em;color:var(--ink-soft)}

/* ============================================================
   footer
   ============================================================ */
footer{
  display:grid;gap:16px;
  padding:26px var(--gutter);
  border-top:1px solid var(--hair);
}
.foot-row{display:flex;align-items:center;justify-content:space-between;gap:20px}
footer .mono{font-size:9px;letter-spacing:.26em;color:var(--ink-soft)}
.foot-fine{font-size:8px;letter-spacing:.2em;color:var(--ink-soft);opacity:.72;text-align:center}

/* ============================================================
   checkout drawer
   ============================================================ */
#scrim{
  position:fixed;inset:0;z-index:60;
  background:rgba(22,22,19,.32);
  opacity:0;transition:opacity .5s var(--ease);
}
body.drawer-open #scrim{opacity:1}
#drawer[hidden]{display:none}
#drawer{
  position:fixed;z-index:65;top:0;right:0;bottom:0;
  width:min(420px,100vw);
  background:var(--paper);
  border-left:1px solid var(--hair);
  padding:26px 30px 30px;
  display:flex;flex-direction:column;gap:22px;
  overflow-y:auto;
  transform:translateX(102%);
  transition:transform .6s cubic-bezier(.76,0,.24,1);
}
body.drawer-open #drawer{transform:none}
.dr-head{display:flex;align-items:center;justify-content:space-between}
.dr-title{font-size:11px;letter-spacing:.34em}
.dr-close{
  font-size:9px;letter-spacing:.26em;color:var(--ink-soft);
  padding:8px 0 8px 8px;transition:color .3s;
}
.dr-close:hover{color:var(--ink)}
.dr-close:focus-visible{outline:2px solid var(--ivy);outline-offset:3px}
#paypal-zone{min-height:180px;display:grid;align-content:start;gap:14px;margin-top:10px}
#pp-status{font-size:9px;letter-spacing:.26em}
.dr-foot{margin-top:auto;font-size:8px;letter-spacing:.24em;color:var(--ink-soft)}

/* ============================================================
   custom cursor (fine pointers only)
   ============================================================ */
#cursor{display:none}
@media (pointer:fine){
  body.has-cursor{cursor:none}
  body.has-cursor a,body.has-cursor button,body.has-cursor .stage{cursor:none}
  body.has-cursor #cursor{display:block}
  #cursor{
    position:fixed;z-index:85;top:0;left:0;pointer-events:none;
    mix-blend-mode:difference;
  }
  .c-dot{
    position:fixed;top:0;left:0;width:6px;height:6px;border-radius:50%;
    background:#fff;translate:-50% -50%;
  }
  .c-ring{
    position:fixed;top:0;left:0;width:30px;height:30px;border-radius:999px;
    border:1px solid rgba(255,255,255,.85);
    translate:-50% -50%;
    display:grid;place-items:center;
    transition:width .35s var(--ease),height .35s var(--ease),background .35s var(--ease);
  }
  .c-label{
    font-size:8px;letter-spacing:.3em;text-indent:.3em;color:#fff;
    opacity:0;transition:opacity .25s;
  }
  #cursor.on-buy .c-ring{width:58px;height:58px;background:rgba(255,255,255,.08)}
  #cursor.on-stage .c-label{opacity:1}
  #cursor.on-buy .c-dot{opacity:0}
}

/* ============================================================
   mobile
   ============================================================ */
@media (max-width:760px){
  .hero{
    grid-template-rows:1fr auto;
    place-items:end center;
    padding-bottom:40px;
    row-gap:34px;
  }
  .giant-wrap{top:32%;width:88vw}
  .stage{align-self:center;margin-top:12vh}
  .placard{
    position:static;
    order:2;
    width:100%;
    padding:0 var(--gutter);
  }
  .cue{display:none}
  .foot-row{flex-direction:column;gap:14px;text-align:center}
}

/* ============================================================
   reduced motion — everything settles instantly
   ============================================================ */
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{transition-duration:.001s!important;animation:none!important}
  [data-reveal]{opacity:1;transform:none}
  .giant{opacity:1;transform:none;filter:none}
  body.revealed .stage img,.plate img{opacity:1}
}

/* no-JS: show everything, gate stays (with its notice) */
@media (scripting:none){
  [data-reveal]{opacity:1;transform:none}
}

/* ?static verification mode — jump every reveal to its end state */
html.force-static *,html.force-static *::before,html.force-static *::after{transition-duration:.001s!important;animation:none!important}
html.force-static [data-reveal],html.force-static .giant{opacity:1;transform:none;filter:none}
html.force-static .stage img,html.force-static .stage canvas,html.force-static .plate img{opacity:1}
