/* =============== THREE WAYS · one lit shelf, three bays (v2, stage 1: static states, no motion yet) ===============
   Normal: three bays, the department name over each. Active (hover on desktop, tap on phones, or the name button):
   the bay comes forward, its message & button show, the other two dim. Orange is used once: the active button. */
#ways{position:relative;height:100vh;height:100svh;overflow:hidden;background:var(--graphite);color:#fff}
.wy-in{position:absolute;inset:var(--header-h) var(--pad) 0;display:flex;flex-direction:column;justify-content:center;padding:3vh 0 4vh}
.wy-in h2{font-size:min(3.9vw,7.2vh);font-weight:700;line-height:1;letter-spacing:-.015em;white-space:nowrap}

.wy-shelf{flex:0 1 auto;min-height:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:auto minmax(0,min(25vw,50vh)) auto;margin-top:5.6vh}
.wy-bay{position:relative;display:grid;grid-template-rows:subgrid;grid-row:span 3;min-width:0}
.wy-head{padding:0 clamp(14px,1.8vw,30px)}
.wy-name{display:block;font-size:min(2vw,4vh);font-weight:700;line-height:1;letter-spacing:.01em;text-align:left;white-space:nowrap;cursor:pointer}
.wy-what{margin-top:1.4vh;font-size:clamp(14px,1.1vw,17px);line-height:1.45;color:var(--ink-2);max-width:24em;text-wrap:balance}

/* the shelf: a lit back panel, a light strip under the top, the board the products stand on, dark uprights between bays */
.wy-stage{--board:clamp(14px,4.2%,26px);position:relative;margin-top:3vh;min-height:0;container-type:size;isolation:isolate;overflow:hidden;
  background:
    radial-gradient(ellipse 58% 62% at 50% 0%,rgba(255,226,200,.3),rgba(255,226,200,.08) 55%,rgba(255,226,200,0) 80%),
    radial-gradient(ellipse 70% 26% at 50% 100%,rgba(255,236,220,.16),rgba(255,236,220,0) 80%),
    linear-gradient(180deg,#1f1f22 0%,#141517 100%);
  box-shadow:inset 0 14px 22px -10px rgba(0,0,0,.6)}
.wy-stage::before{content:"";position:absolute;left:6%;right:6%;top:0;height:5px;border-radius:0 0 4px 4px;background:#fff;box-shadow:0 0 18px 4px rgba(255,226,204,.55),0 0 60px 10px rgba(255,226,204,.18);z-index:3}
.wy-stage::after{content:"";position:absolute;left:0;right:0;bottom:0;height:var(--board);z-index:3;
  background:linear-gradient(180deg,#fbfaf8 0%,#efece8 34%,#d9d5cf 36%,#bdb8b1 100%);box-shadow:0 18px 30px rgba(0,0,0,.55)}
.wy-bay+.wy-bay .wy-stage{border-left:10px solid #0f1012}
.wy-bay:first-child .wy-stage{border-left:10px solid #0f1012}
.wy-bay:last-child .wy-stage{border-right:10px solid #0f1012}

/* the products: sized by the bay's height so they read the same on every screen */
/* --u: one hundredth of the bay's height, unless the bay is narrow; --h is a product's height in --u */
.wy-goods{--u:min(1cqh,.74cqw);position:absolute;left:0;right:0;bottom:var(--board);display:flex;justify-content:center;align-items:flex-end;gap:calc(var(--u) * 3);padding:0 4cqw}
.wy-goods>*{position:relative;flex:0 0 auto;height:calc(var(--h) * var(--u));aspect-ratio:var(--ar)}
.wy-goods>.wy-back{margin-right:calc(var(--u) * -9);z-index:-1}
.wy-goods>.wy-front{margin-left:calc(var(--u) * -6)}
.wy-goods>*::after{content:"";position:absolute;left:-8%;right:-8%;bottom:-.6cqh;height:5cqh;max-height:14px;border-radius:50%;background:radial-gradient(closest-side,rgba(0,0,0,.6),rgba(0,0,0,0));z-index:-1}
/* real supplier photos on dark grounds: lighten lets the dark fall away into the bay, the edges are feathered */
.wy-ph{overflow:hidden;mix-blend-mode:lighten;
  -webkit-mask-image:linear-gradient(90deg,transparent 0,#000 16%,#000 84%,transparent 100%),linear-gradient(180deg,transparent 0,#000 9%,#000 100%);
  -webkit-mask-composite:source-in;
  mask-image:linear-gradient(90deg,transparent 0,#000 16%,#000 84%,transparent 100%),linear-gradient(180deg,transparent 0,#000 9%,#000 100%);
  mask-composite:intersect}
.wy-ph::after{display:none}
.wy-ph img{position:absolute;max-width:none;width:var(--iw);left:var(--ix);top:var(--iy);height:auto}
.wy-ph-wrap{position:relative}
/* a slot for a product we have no real photo of yet */
.wy-miss{display:grid;place-items:center;padding:4px;border:1.5px dashed rgba(255,255,255,.4);background:rgba(255,255,255,.04);border-radius:var(--r,6px);color:rgba(255,255,255,.75);font-family:system-ui,sans-serif;font-size:clamp(8px,3.4cqh,12px);line-height:1.25;text-align:center}
.wy-miss span{display:block;max-width:100%}

/* the message & button, under the shelf; they span wider than one bay so each stays on one line */
.wy-say{position:relative;margin-top:3.4vh;min-height:calc(min(1.6vw,3vh) * 1.3 + 56px)}
.wy-say-in{position:absolute;top:0;width:210%;display:flex;flex-direction:column;gap:1.6vh;visibility:hidden}
.wy-bay:nth-child(1) .wy-say-in{left:clamp(14px,1.8vw,30px);align-items:flex-start}
.wy-bay:nth-child(2) .wy-say-in{left:50%;translate:-50% 0;align-items:center;text-align:center}
.wy-bay:nth-child(3) .wy-say-in{right:clamp(14px,1.8vw,30px);align-items:flex-end;text-align:right}
.wy-row{display:flex;align-items:center;gap:24px}
.wy-msg{font-size:min(1.6vw,3vh);font-weight:700;line-height:1.3;white-space:nowrap}
.wy-cta{display:inline-flex;align-items:center;gap:12px;flex:0 0 auto;background:var(--orange);color:#fff;font-size:15px;font-weight:700;border-radius:999px;padding:7px 7px 7px 20px;white-space:nowrap}
.wy-cta i{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:#fff;color:var(--orange);font-size:15px}
.wy-makers{display:inline-flex;align-items:baseline;gap:10px;font-size:14px;color:var(--ink-2)}
.wy-makers b{color:#fff;text-decoration:underline;text-underline-offset:4px;text-decoration-thickness:1px}
.wy-br{display:none}

/* active state */
.wy-bay.is-on .wy-stage{transform:scale(1.05);z-index:2;box-shadow:inset 0 14px 22px -10px rgba(0,0,0,.6),0 40px 70px -20px rgba(0,0,0,.85)}
.wy-bay.is-on .wy-stage::before{box-shadow:0 0 22px 6px rgba(255,226,204,.7),0 0 90px 18px rgba(255,226,204,.26)}
.wy-bay.is-on .wy-say-in{visibility:inherit}
.wy-shelf.has-on .wy-bay:not(.is-on) .wy-stage{opacity:.45}
.wy-shelf.has-on .wy-bay:not(.is-on) .wy-head{opacity:.55}
.wy-cta:focus-visible,.wy-makers:focus-visible{outline-color:#fff}

@media (max-width:760px){
  .wy-in{padding:2.4vh 0 2.4vh;justify-content:flex-start}
  .wy-in h2{font-size:5.9vw}
  .wy-shelf{flex:1 1 auto;display:flex;flex-direction:column;gap:2.2vh;margin-top:2.6vh}
  .wy-bay{display:flex;flex-direction:column;flex:1 1 0;min-height:0}
  .wy-bay.is-on{flex-grow:2.1}
  .wy-head{padding:0}
  .wy-name{font-size:5.4vw}
  .wy-what{margin-top:.7vh;font-size:13px;line-height:1.4}
  .wy-stage{flex:1 1 auto;margin-top:1.2vh;--board:9px}
  .wy-bay .wy-stage,.wy-bay+.wy-bay .wy-stage,.wy-bay:last-child .wy-stage{border-left:6px solid #0f1012;border-right:6px solid #0f1012}
  .wy-stage::before{height:3px}
  .wy-bay.is-on .wy-stage{transform:scale(1.025)}
  .wy-say{display:none;margin-top:1.6vh;min-height:0}
  .wy-bay.is-on .wy-say{display:block}
  .wy-say-in,.wy-bay:nth-child(n) .wy-say-in{position:static;width:auto;translate:none;align-items:flex-start;text-align:left;gap:1.2vh}
  .wy-row{flex-direction:column;align-items:flex-start;gap:1.2vh}
  .wy-msg{font-size:16px;white-space:normal}
  .wy-br{display:inline}
  .wy-cta{font-size:13px;padding:5px 5px 5px 16px;gap:10px}
  .wy-cta i{width:28px;height:28px;font-size:13px}
  .wy-makers{font-size:12px;flex-wrap:wrap;gap:0 8px}
}

html.rm #ways{height:auto;min-height:100svh}

/* frame mode (ways-v2.html?frame=…): only the header & this section, for the static review frames */
html.wy-frame,html.wy-frame body{overflow:hidden}
html.wy-frame #story,html.wy-frame .ov:not(.wy-ov),html.wy-frame .lt-wash,html.wy-frame #contact,html.wy-frame .site-footer,html.wy-frame .grain,html.wy-frame .cursor,html.wy-frame .skip{display:none!important}
html.wy-frame .site-header::before{opacity:1}
html.wy-frame #ways{height:100vh}

/* ===== polish: the same sharp language as the globe & the hero (dot matrix, one orange line, big numerals) ===== */
.wy-miss{display:none} /* the dashed "missing photo" slots are not shown; builder-notes.md lists the photos still needed */
.wy-num{display:block;margin-bottom:1.6vh;font-size:12px;font-weight:700;letter-spacing:.18em;color:var(--orange)}
.wy-head{position:relative;padding-top:2vh}
.wy-head::before{content:"";position:absolute;left:clamp(14px,1.8vw,30px);top:0;width:28px;height:2px;background:var(--orange);transition:width .6s cubic-bezier(.2,.7,.2,1)}
.wy-bay.is-on .wy-head::before{width:64px}
.wy-stage{border-radius:20px;
  background:
    radial-gradient(ellipse 62% 58% at 50% 100%,rgba(233,87,45,.16),rgba(233,87,45,0) 75%),
    radial-gradient(ellipse 80% 80% at 50% 55%,rgba(23,24,27,0) 30%,#17181b 100%),
    radial-gradient(rgba(255,255,255,.2) 1px,transparent 1.6px) 0 0/15px 15px,
    linear-gradient(180deg,#202125,#17181b);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.08)}
.wy-stage::before{left:0;right:0;top:0;height:2px;border-radius:0;background:var(--orange);box-shadow:none;transform:scaleX(.16);transform-origin:left;transition:transform .7s cubic-bezier(.2,.7,.2,1)}
.wy-bay.is-on .wy-stage::before{box-shadow:none;transform:scaleX(1)}
.wy-stage::after{height:1px;background:rgba(255,255,255,.22);box-shadow:none}
/* one big outlined digit per bay, whole inside the picture: sized by the bay's height (and width when the bay is narrow) */
.wy-ghost{position:absolute;right:6%;top:50%;translate:0 -50%;font-size:min(76cqh,60cqw);font-weight:800;line-height:1;letter-spacing:0;color:transparent;-webkit-text-stroke:1.5px rgba(255,255,255,.4);pointer-events:none;user-select:none}
.wy-bay .wy-stage,.wy-bay+.wy-bay .wy-stage,.wy-bay:first-child .wy-stage,.wy-bay:last-child .wy-stage{border:0}
.wy-msg{font-weight:600}
@media (min-width:761px){
  .wy-shelf{column-gap:clamp(14px,1.4vw,24px);grid-template-rows:auto minmax(0,min(23vw,44vh)) auto}
  .wy-name{font-size:min(2.1vw,4vh)}
  .wy-stage{margin-top:2.4vh}
  /* message & button always shown, inside their own column */
  .wy-say{margin-top:2.6vh;min-height:0;padding:0 clamp(14px,1.8vw,30px)}
  .wy-say-in,.wy-bay:nth-child(n) .wy-say-in{position:static;width:auto;translate:none;visibility:inherit;align-items:flex-start;text-align:left;gap:1.4vh}
  .wy-row{flex-direction:column;align-items:flex-start;gap:1.8vh}
  .wy-msg{font-size:clamp(17px,1.45vw,24px);white-space:normal;text-wrap:balance}
  .wy-br{display:inline}
  .wy-cta{background:transparent;color:#fff;gap:12px;font-size:15px;box-shadow:inset 0 -1px 0 rgba(255,255,255,.35);border-radius:0;padding:0 0 6px;transition:box-shadow .4s}
  .wy-cta i{width:30px;height:30px;background:var(--orange);color:#fff;transition:transform .4s cubic-bezier(.2,.7,.2,1)}
  .wy-cta:hover,.wy-cta:focus-visible{box-shadow:inset 0 -1px 0 var(--orange)}
  .wy-cta:hover i,.wy-cta:focus-visible i{transform:translateX(4px)}
  .wy-makers{font-size:13px}
  .wy-shelf.has-on .wy-bay:not(.is-on) .wy-say{opacity:.55}
  .wy-bay.is-on .wy-stage{transform:scale(1.02)}
}
@media (max-width:760px){.wy-ghost{right:5%;-webkit-text-stroke-width:1.2px}.wy-head::before{left:0}}
@media (prefers-reduced-motion:reduce){.wy-stage::before,.wy-head::before,.wy-cta,.wy-cta i{transition:none}}

/* ===== entrance (assets/ways.js adds & removes the classes): wy-a the title big in the middle · wy-c its words hidden below
   their masks · wy-b the bays not in yet · wy-run the transitions, only while it plays. Without JS or with reduced motion
   none of these classes is ever set. Nothing here touches visibility, so the section's texts stay hidden with it. */
.wy-w{display:inline-block;overflow:hidden;vertical-align:top;padding-bottom:.16em;margin-bottom:-.16em}
.wy-w>i{display:inline-block;font-style:normal}
.wy-bay:nth-child(2){--b:1}.wy-bay:nth-child(3){--b:2}
.wy-stage{--c:1}.wy-say{--c:2}
@media (prefers-reduced-motion:no-preference){
  #ways h2{transform-origin:0 50%}
  #ways.wy-a h2{transform:translate(var(--wy-tx,0px),var(--wy-ty,0px)) scale(var(--wy-s,1))}
  #ways.wy-c .wy-w>i{transform:translateY(120%)}
  #ways.wy-b .wy-bay>*{opacity:0;transform:translateY(34px)}
  #ways.wy-run h2{transition:transform 1.1s cubic-bezier(.76,0,.18,1)}
  #ways.wy-run .wy-w>i{transition:transform .95s var(--ease) calc(var(--k,0) * 80ms)}
  #ways.wy-run .wy-bay>*{transition:opacity .7s ease,transform 1s var(--ease);transition-delay:calc(var(--b,0) * 150ms + var(--c,0) * 80ms)}
}
@media (prefers-reduced-motion:no-preference) and (max-width:760px){
  #ways.wy-b .wy-bay>*{transform:translateY(18px)}
  #ways.wy-run .wy-bay>*{transition-duration:.5s,.7s;transition-delay:calc(var(--b,0) * 110ms + var(--c,0) * 50ms)}
}
