/* Bloom — first-visit entrance + sales-page email gate.
   VALUES ARE VERBATIM from the approved prototype (artifact 1795135384-40e3; docs/sales-gate/handoff/code/).
   Only units were translated, as the handoff instructs: the prototype's page container `site` was the browser
   viewport, so cqw/cqh -> vw/vh and `@container site (max-width:700px)` -> `@media (max-width:700px)`.
   The entrance panel `.fb` is itself a size container in the prototype, so its own cqw/cqh are kept.
   Every selector is scoped (#bloom-entrance, #sgate, .bloom-boundary, .bloom-gated, .nl-note) so nothing
   reaches the live pages' own classes (e.g. ORIGIN's `.opt`). */

:root{
  --bg-cream:#F3EFE7;--bg-ox:#391B17;--bg-char:#171615;
  --bg-ease:cubic-bezier(.7,0,.2,1);--bg-ease-out:cubic-bezier(.2,.7,.1,1);
}
html.bloom-locked,html.bloom-locked body{overflow:hidden}
.bloom-sr{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

/* ===================== ENTRANCE — FULL-BLEED SALON (I · Lacquer) ===================== */
#bloom-entrance{position:fixed;inset:0;z-index:2147483000;transition:opacity .5s ease}
#bloom-entrance[hidden]{display:none}
#bloom-entrance.is-out{opacity:0;pointer-events:none}
#bloom-entrance .ent-scrim{position:absolute;inset:0;background:rgba(10,9,8,.66);opacity:0;transition:opacity .6s ease}
#bloom-entrance .ent-scrim.on{opacity:1}
#bloom-entrance .fb{position:absolute;left:50%;top:50%;width:min(1180px,90%);height:min(800px,88%);overflow:hidden;background:#141211;color:var(--bg-cream);
  container-type:size;opacity:0;transform:translate(-50%,-50%) scale(.985);transition:opacity .6s ease,transform .9s var(--bg-ease-out);
  box-shadow:0 40px 120px rgba(0,0,0,.55);margin:0;padding:0;box-sizing:border-box;text-align:left;
  --red:#8E1C1B;--red-hi:#A93D3A;--red-deep:#6E1819;--strap:#7E1A19;--strap-hover:#5E1414}
#bloom-entrance .fb *{box-sizing:border-box}
#bloom-entrance .fb .ph{position:absolute;inset:0;margin:0}
#bloom-entrance .fb .ph img{display:block;width:100%;height:100%;object-fit:cover;object-position:50% 66%;max-width:none;
  opacity:0;transform:scale(1.05);transition:opacity 1s ease,transform 2.2s var(--bg-ease-out)}
#bloom-entrance .fb.is-in{opacity:1;transform:translate(-50%,-50%)}
#bloom-entrance .fb.is-in .ph img{opacity:1;transform:none}
#bloom-entrance .fb .x{position:absolute;top:12px;right:12px;width:44px;height:44px;background:none;border:0;color:var(--bg-cream);cursor:pointer;z-index:2;padding:0}
#bloom-entrance .fb .x::before,#bloom-entrance .fb .x::after{content:'';position:absolute;left:11px;right:11px;top:50%;height:1.5px;background:currentColor;transform:rotate(45deg)}
#bloom-entrance .fb .x::after{transform:rotate(-45deg)}
#bloom-entrance .fb .x:focus{outline:none}#bloom-entrance .fb .x:focus-visible{outline:2px solid var(--bg-cream);outline-offset:2px}
#bloom-entrance .fb .shade{position:absolute;inset:0;pointer-events:none;background:
  linear-gradient(180deg,rgba(20,17,16,.74) 0%,rgba(20,17,16,.58) 20%,rgba(20,17,16,.18) 36%,rgba(20,17,16,0) 46%),
  linear-gradient(0deg,rgba(20,17,16,.88) 0%,rgba(20,17,16,.66) 24%,rgba(20,17,16,.2) 44%,rgba(20,17,16,0) 56%)}
#bloom-entrance .fb .wm{position:absolute;left:5cqw;top:28px;font:400 15px/1 Fraunces,Georgia,serif;letter-spacing:.34em;text-transform:uppercase}
#bloom-entrance .fb .q{position:absolute;left:5cqw;right:5cqw;top:9cqh;margin:0;font-family:Fraunces,Georgia,serif;font-weight:300;
  font-size:clamp(40px,5.7cqw,104px);line-height:.92;letter-spacing:-.025em;text-transform:uppercase;text-shadow:0 1px 30px rgba(0,0,0,.18);color:inherit}
#bloom-entrance .fb .q:focus{outline:none}
#bloom-entrance .fb .q em{font-style:italic;letter-spacing:-.01em;position:relative;display:inline-block}
#bloom-entrance .lac .q em::after{content:'';position:absolute;left:.05em;right:.12em;bottom:-.06em;height:3px;background:var(--red-hi);
  transform:scaleX(0);transform-origin:left;transition:transform 1s var(--bg-ease) 1s}
#bloom-entrance .lac.is-in .q em::after{transform:scaleX(1)}
#bloom-entrance .q .ln{display:inline}
#bloom-entrance .q .br{display:none}
#bloom-entrance .fb .bottom{position:absolute;left:5cqw;right:5cqw;bottom:4cqh;display:flex;flex-direction:column}
#bloom-entrance .fb .chs{display:grid;grid-template-columns:1fr 1fr;column-gap:4cqw;align-items:end}
#bloom-entrance .fb .choice{position:relative;display:flex;flex-direction:column;justify-content:flex-end;min-height:26cqh;color:inherit;text-decoration:none;cursor:pointer;
  -webkit-tap-highlight-color:transparent;transition:opacity .5s ease,background-color .35s ease}
#bloom-entrance .fb .choice:focus{outline:none}
#bloom-entrance .fb .choice:focus-visible{outline:2px solid var(--bg-cream);outline-offset:6px}
#bloom-entrance .fb .rule{display:block;height:3px;background:var(--red);margin-bottom:2.4cqh;transform:scaleX(.18);transform-origin:left;transition:transform .65s var(--bg-ease)}
#bloom-entrance .fb .choice.is-hot .rule,#bloom-entrance .fb .choice:focus-visible .rule,#bloom-entrance .fb .choice.is-chosen .rule{transform:scaleX(1)}
#bloom-entrance .fb .c-h{font-family:Fraunces,Georgia,serif;font-weight:300;font-size:clamp(38px,5.2cqw,96px);line-height:.92;letter-spacing:-.025em;text-transform:uppercase;white-space:nowrap}
#bloom-entrance .fb .choice.is-chosen .c-h{font-style:italic}
#bloom-entrance .fb .c-bot{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-top:2cqh}
#bloom-entrance .fb .c-d{font:400 15px/1.5 Inter,sans-serif;color:rgba(243,239,231,.88)}
#bloom-entrance .fb .arr{position:relative;flex:none;display:inline-block;height:1px;width:34px;background:currentColor;transition:width .6s var(--bg-ease-out)}
#bloom-entrance .fb .arr::after{content:'';position:absolute;right:0;top:-4px;width:8px;height:8px;border-top:1px solid currentColor;border-right:1px solid currentColor;transform:rotate(45deg)}
#bloom-entrance .fb .choice.is-hot .arr,#bloom-entrance .fb .choice:focus-visible .arr{width:72px}
#bloom-entrance .fb[data-hover] .choice:not(.is-hot){opacity:.5}
#bloom-entrance .fb[data-chosen] .choice:not(.is-chosen),#bloom-entrance .fb[data-chosen] .both-wrap{opacity:0;transition:opacity .3s}
#bloom-entrance .fb .both-wrap{margin-top:2.6cqh}
#bloom-entrance .fb .both{background:none;border:0;color:var(--bg-cream);cursor:pointer;padding:12px 2px;min-height:44px;
  font:300 italic 19px/1 Fraunces,Georgia,serif;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:6px;
  text-decoration-color:rgba(243,239,231,.55);transition:text-decoration-color .3s}
#bloom-entrance .fb .both:hover{text-decoration-color:var(--red-hi)}
#bloom-entrance .fb .both:focus{outline:none}
#bloom-entrance .fb .both:focus-visible{outline:2px solid var(--bg-cream);outline-offset:4px}
/* reveal */
#bloom-entrance .rv{opacity:0;transform:translateY(16px);transition:opacity .9s var(--bg-ease-out) var(--d,0s),transform 1.1s var(--bg-ease-out) var(--d,0s)}
#bloom-entrance .is-in .rv{opacity:1;transform:none}
#bloom-entrance .settled .rv{--d:0s!important}
#bloom-entrance .settled .choice.rv{transition:opacity .45s ease,background-color .35s ease}
@media (max-width:700px){
  #bloom-entrance .fb{width:calc(100% - 20px);height:calc(100% - 28px)}
  #bloom-entrance .fb .ph img{object-position:42% 40%}
  #bloom-entrance .fb .shade{background:
    linear-gradient(180deg,rgba(20,17,16,.76) 0%,rgba(20,17,16,.6) 22%,rgba(20,17,16,.2) 32%,rgba(20,17,16,0) 40%),
    linear-gradient(0deg,rgba(20,17,16,.9) 0%,rgba(20,17,16,.74) 30%,rgba(20,17,16,.25) 50%,rgba(20,17,16,0) 62%)}
  #bloom-entrance .fb .wm{left:6cqw;top:22px;font-size:13px}
  #bloom-entrance .fb .q{left:6cqw;right:6cqw;top:62px;font-size:clamp(32px,10.6cqw,48px)}
  #bloom-entrance .q .br{display:inline}
  #bloom-entrance .fb .bottom{left:6cqw;right:6cqw;bottom:6px}
  #bloom-entrance .fb .chs{grid-template-columns:1fr}
  #bloom-entrance .fb .choice{min-height:0;padding-bottom:14px}
  #bloom-entrance .fb .rule{margin-bottom:12px}
  #bloom-entrance .fb .c-h{font-size:clamp(30px,9.6cqw,46px)}
  #bloom-entrance .fb .c-bot{margin-top:6px}
  #bloom-entrance .fb .c-d{font-size:13.5px}
  #bloom-entrance .fb .both-wrap{margin-top:0}
  #bloom-entrance .fb .both{font-size:17px}
  #bloom-entrance .fb .choice.is-hot .arr{width:34px}
}
@media (max-width:700px) and (max-height:700px){
  #bloom-entrance .fb .q{top:56px}
  #bloom-entrance .fb .choice{padding-bottom:10px}
}

/* ===================== SALES-PAGE EMAIL GATE ===================== */
/* shared form controls (prototype lines 131-151) */
#sgate .wordmark{font:400 15px/1 Fraunces,Georgia,serif;letter-spacing:.34em;text-transform:uppercase;text-decoration:none}
:is(#sgate,.bloom-nojs) .g-l{display:block;font:500 10.5px/1 Inter,sans-serif;letter-spacing:.22em;text-transform:uppercase;margin-bottom:10px;padding:0}
:is(#sgate,.bloom-nojs) .g-in{flex:1;min-width:0;border:0;border-bottom:1px solid var(--bg-char);border-radius:0;background:transparent;color:var(--bg-char);
  font:300 22px/1.2 Fraunces,Georgia,serif;padding:10px 0;min-height:48px;box-shadow:none;-webkit-appearance:none;appearance:none}
:is(#sgate,.bloom-nojs) .g-in::placeholder{color:#9a938c;opacity:1}
:is(#sgate,.bloom-nojs) .g-in:focus{outline:none;border-bottom-width:2px;padding-bottom:9px}
:is(#sgate,.bloom-nojs) .g-in:focus-visible{outline:2px solid var(--bg-char);outline-offset:4px}
:is(#sgate,.bloom-nojs) .g-in[aria-invalid=true]{border-bottom-color:#7A2018}
:is(#sgate,.bloom-nojs) .g-in[readonly]{color:#6a645e}
:is(#sgate,.bloom-nojs) .g-btn{flex:none;border:0;border-radius:0;background:var(--bg-char);color:var(--bg-cream);font:500 11px/1 Inter,sans-serif;letter-spacing:.2em;text-transform:uppercase;
  padding:0 24px;min-height:48px;cursor:pointer;transition:background .25s}
:is(#sgate,.bloom-nojs) .g-btn:hover{background:var(--bg-ox)}
:is(#sgate,.bloom-nojs) .g-btn:focus-visible{outline:2px solid var(--bg-char);outline-offset:3px}
:is(#sgate,.bloom-nojs) .g-btn:disabled{cursor:progress;background:#4a4540}
:is(#sgate,.bloom-nojs) .g-err{min-height:1.5em;margin:8px 0 0;font:500 13.5px/1.5 Inter,sans-serif;color:#7A2018}
:is(#sgate,.bloom-nojs) .g-check{display:flex;gap:10px;align-items:flex-start;margin-top:1.6vh;font:400 13.5px/1.45 Inter,sans-serif;color:#3d3935;cursor:pointer;min-height:44px;padding-top:4px;text-transform:none;letter-spacing:0}
:is(#sgate,.bloom-nojs) .g-check input{width:16px;height:16px;margin-top:2px;accent-color:var(--bg-char);flex:none}
:is(#sgate,.bloom-nojs) .g-check input:focus-visible{outline:2px solid var(--bg-char);outline-offset:3px}
:is(#sgate,.bloom-nojs) .g-priv{margin:6px 0 0;font:400 12px/1.5 Inter,sans-serif;color:#6a645e}
:is(#sgate,.bloom-nojs) .g-priv a{text-decoration:underline;text-underline-offset:3px}
:is(#sgate,.bloom-nojs) .g-hp{position:absolute!important;left:-9999px;width:1px;height:1px;overflow:hidden}

/* newsletter result note (prototype lines 193-198) */
.bloom-gated .nl-note{display:flex;flex-wrap:wrap;gap:10px 18px;align-items:center;justify-content:space-between;border:1px solid rgba(23,22,21,.25);border-left:3px solid var(--bg-char);
  padding:14px 18px;margin:4vh 0 0;font:400 14px/1.5 Inter,sans-serif;color:var(--bg-char);background:#fbf9f5;
  max-width:min(1100px,calc(100% - 16vw));margin-left:auto;margin-right:auto;box-sizing:border-box}
.bloom-gated .nl-note.warn{border-left-color:#7A2018}
.bloom-gated .nl-note button{background:none;border:1px solid var(--bg-char);color:var(--bg-char);font:500 10.5px/1 Inter,sans-serif;letter-spacing:.2em;text-transform:uppercase;padding:12px 16px;min-height:44px;cursor:pointer}
.bloom-gated .nl-note button:disabled{opacity:.55;cursor:progress}
.bloom-gated .nl-note button:focus-visible{outline:2px solid var(--bg-char);outline-offset:3px}

/* boundary + reveal (prototype lines 214-226; the .sp-rest typography was a stand-in, so only the reveal applies) */
.bloom-boundary{background:var(--bg-cream);color:var(--bg-char);padding:2vh 8vw 12vh;text-align:center}
.bloom-boundary::before{content:'';display:block;height:1px;background:var(--bg-char);margin-bottom:5vh}
.bloom-boundary > button{background:none;border:1px solid var(--bg-char);color:var(--bg-char);font:500 11px/1 Inter,sans-serif;letter-spacing:.2em;text-transform:uppercase;padding:16px 26px;min-height:48px;cursor:pointer;border-radius:0}
.bloom-boundary > button:hover{background:var(--bg-char);color:var(--bg-cream)}
.bloom-boundary > button:focus-visible{outline:2px solid var(--bg-char);outline-offset:3px}
html.no-js-gate .bloom-boundary > button{display:none}
.bloom-gated.reveal > *{opacity:0;transform:translateY(14px);transition:opacity .7s var(--bg-ease-out) calc(var(--i,0)*70ms),transform .9s var(--bg-ease-out) calc(var(--i,0)*70ms)}
.bloom-gated.reveal.in > *{opacity:1;transform:none}
[data-gate-start]:focus{outline:none}

/* gate modal (prototype lines 228-270); position absolute in a viewport container -> fixed */
#sgate{position:fixed;inset:0;z-index:2147482000}
#sgate[hidden]{display:none}
#sgate .sg-scrim{position:absolute;inset:0;background:rgba(10,9,8,.6);opacity:0;transition:opacity .45s ease}
#sgate .sg{position:absolute;left:50%;top:50%;width:min(580px,calc(100% - 24px));max-height:calc(100% - 24px);overflow:auto;background:var(--bg-cream);color:var(--bg-char);
  padding:44px 48px 34px;box-shadow:0 30px 90px rgba(0,0,0,.45);opacity:0;transform:translate(-50%,calc(-50% + 14px));transition:opacity .45s ease,transform .6s var(--bg-ease-out);
  box-sizing:border-box;margin:0;text-align:left}
#sgate .sg *{box-sizing:border-box}
#sgate.on .sg-scrim{opacity:1}
#sgate.on .sg{opacity:1;transform:translate(-50%,-50%)}
#sgate .sg .wordmark{display:block;font-size:13px;margin-bottom:26px}
:is(#sgate,.bloom-nojs) .sg-h{font:300 clamp(28px,2.6vw,40px)/1.05 Fraunces,Georgia,serif;letter-spacing:-.02em;max-width:14ch;margin:0;color:var(--bg-char);text-transform:none}
#sgate .sg-h:focus{outline:none}
#sgate .sg form{margin-top:26px}
:is(#sgate,.bloom-nojs) .g-in{width:100%}
:is(#sgate,.bloom-nojs) fieldset{border:0;padding:0;margin:6px 0 0;min-width:0}
:is(#sgate,.bloom-nojs) legend{padding:0}
:is(#sgate,.bloom-nojs) .sg-opts{display:grid;grid-template-columns:repeat(3,1fr);border:1px solid var(--bg-char)}
:is(#sgate,.bloom-nojs) .opt{position:relative;display:flex;align-items:center;justify-content:center;min-height:52px;cursor:pointer;font:300 20px/1 Fraunces,Georgia,serif;transition:background .2s,color .2s;margin:0}
:is(#sgate,.bloom-nojs) .opt+.opt{border-left:1px solid var(--bg-char)}
:is(#sgate,.bloom-nojs) .opt input{position:absolute;inset:0;opacity:0;margin:0;cursor:pointer;width:100%;height:100%}
:is(#sgate,.bloom-nojs) .opt:hover{background:rgba(23,22,21,.06)}
:is(#sgate,.bloom-nojs) .opt:has(input:checked){background:var(--bg-char);color:var(--bg-cream)}
:is(#sgate,.bloom-nojs) .opt:has(input:focus-visible){outline:2px solid var(--bg-char);outline-offset:3px;z-index:1}
#sgate .sg-opts[aria-invalid=true]{border-color:#7A2018}
:is(#sgate,.bloom-nojs) .g-btn{width:100%;margin-top:6px}
#sgate .sg .g-check{margin-top:8px}
#sgate .sg a{color:inherit}
#sgate .sg .g-err:empty{display:none}
#sgate .sg .x{position:absolute;top:10px;right:10px;width:44px;height:44px;background:none;border:0;color:var(--bg-char);cursor:pointer;padding:0}
#sgate .sg .x::before,#sgate .sg .x::after{content:'';position:absolute;left:12px;right:12px;top:50%;height:1.5px;background:currentColor;transform:rotate(45deg)}
#sgate .sg .x::after{transform:rotate(-45deg)}
#sgate .sg .x:focus-visible{outline:2px solid var(--bg-char)}
/* the no-JS form sits in the page at the boundary (not a modal) */
.bloom-nojs.sg{position:static;width:min(580px,100%);margin:5vh auto 0;padding:0;background:transparent;text-align:left}
.bloom-nojs .sg-h{margin-bottom:26px}
@media (max-width:700px){
  .bloom-boundary{padding:1vh 7vw 8vh}
  #sgate .sg{padding:26px 20px 18px}
  #sgate .sg .wordmark{margin-bottom:14px}
  #sgate .sg form{margin-top:16px}
  :is(#sgate,.bloom-nojs) .opt{font-size:18px;min-height:48px}
  #sgate .sg .g-err{min-height:0}
  #sgate .sg .g-check{min-height:0;padding-top:2px}
}

/* reduced motion: 200ms fades only, no movement (prototype .rm rules) */
@media (prefers-reduced-motion: reduce){
  #bloom-entrance .rv{transform:none!important}
  #bloom-entrance .fb .ph img{transform:none!important}
  #bloom-entrance .fb{transform:translate(-50%,-50%)!important}
  #sgate .sg,#sgate.on .sg{transform:translate(-50%,-50%)!important}
  .bloom-gated.reveal > *{transform:none!important}
  #bloom-entrance *,#bloom-entrance *::before,#bloom-entrance *::after,#sgate *,#sgate *::before,#sgate *::after,.bloom-gated.reveal > *,#bloom-entrance{transition-duration:.2s!important;transition-delay:0s!important;animation:none!important}
}

/* ===================== Footer ground, unchanged by the wrapper =====================
   src/styles.css picks the footer's ground from the element directly above it. Wrapping a page's gated
   sections in .bloom-gated would hide that element from those rules, so they are mirrored here for the
   wrapper's LAST child (same declarations, values copied from styles.css). A locked page ends on the
   cream boundary, which takes the default (light-ending) footer. */
.bloom-gated[data-gated="open"]:has(> .field-dark:last-child) + .bloom-footer,
.bloom-gated[data-gated="open"]:has(> [data-ground='dark']:last-child) + .bloom-footer,
:is(.world-house, .world-gold, .world-monstr) > .bloom-gated[data-gated="open"]:has(> .field-primary:last-child) + .bloom-footer,
:is(.world-gold, .world-monstr) > .bloom-gated[data-gated="open"]:has(> :not(.field-paper, .field-secondary, [data-ground='light']):last-child) + .bloom-footer {
  --ft-ground: var(--w-footer-light, var(--bloom-ivory));
  --ft-ink: var(--w-footer-light-ink, var(--bloom-cocoa));
  --ft-body: 80%; --ft-soft: 70%; --ft-faint: 70%; --ft-hover: 100%; --ft-rule: 15%; --ft-rule-strong: 40%;
}
:is(.world-gold, .world-monstr) > .bloom-gated[data-gated="open"]:has(> :is(.field-paper, .field-secondary, [data-ground='light']):last-child) + .bloom-footer,
.bloom-gated[data-gated="locked"] + .bloom-footer,
:is(.world-gold, .world-monstr) > .bloom-gated[data-gated="locked"] + .bloom-footer {
  --ft-ground: var(--bloom-cocoa); --ft-ink: var(--bloom-ivory);
  --ft-body: 60%; --ft-soft: 45%; --ft-faint: 40%; --ft-hover: 90%; --ft-rule: 10%; --ft-rule-strong: 35%;
}
