/* Web design (r2/web.js): one browser window holding every site as a tab; drag its edges and the page inside reflows. */
.ww-stage { position: relative; height: calc(100vh - var(--fm)); height: calc(100svh - var(--fm)); padding: 60px 0 34px; display: grid; grid-template-columns: 340px minmax(0, 1fr); overflow: hidden; }
.ww-side { display: flex; flex-direction: column; justify-content: center; gap: 22px; padding: 24px 12px 24px var(--pad, 48px); min-width: 0; }
.ww-act { margin: 0; max-width: 28ch; font: 500 17px/1.35 'Albert Sans', sans-serif; opacity: .9; }
.ww-foot { display: grid; gap: 18px; }
.ww-info { display: grid; gap: 4px; padding-top: 18px; border-top: 1px solid color-mix(in srgb, var(--ink) 28%, transparent); }
.ww-info b { font: 400 40px/1 Anton, sans-serif; text-transform: uppercase; }
.ww-info span { font-size: 14px; opacity: .78; }
.ww-visit { justify-self: start; }
.ww-visit[hidden], .ww-about[hidden] { display: none; }
.ww-about { margin: 0; max-width: 34ch; font: 500 15px/1.45 'Albert Sans', sans-serif; opacity: .9; }
.ww-full { display: none; }
.ww-modes { display: flex; gap: 8px; }

/* the desk: a ruler with the live width, a dashed outline of the full width, and the window */
.ww-desk { position: relative; display: grid; grid-template-rows: 34px minmax(0, 1fr); padding: 22px var(--pad, 48px) 20px 24px; min-width: 0; }
.ww-ruler { position: relative; align-self: end; height: 22px; margin-bottom: 10px; }
.ww-ruler .tk { position: absolute; left: 50%; bottom: 0; height: 10px; transform: translateX(-50%);
  background: repeating-linear-gradient(90deg, color-mix(in srgb, var(--ink) 55%, transparent) 0 1px, transparent 1px 12px); border-left: 1px solid var(--ink); border-right: 1px solid var(--ink); }
.ww-ruler .px { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); font: 600 12px/1 'Albert Sans', sans-serif; letter-spacing: .06em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ww-well { position: relative; min-height: 0; }
.ww-ghost { position: absolute; top: 0; bottom: 0; left: 50%; transform: translateX(-50%); border: 1.5px dashed color-mix(in srgb, var(--ink) 40%, transparent); border-radius: 12px; pointer-events: none; transition: opacity .3s; }
.ww-win { position: absolute; top: 0; bottom: 0; left: 50%; transform: translateX(-50%); display: grid; grid-template-rows: auto auto minmax(0, 1fr);
  border-radius: 12px; background: #f6f6f4; color: #1a1a1a;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .6) inset, 0 50px 80px -20px rgba(0, 0, 0, .45), 0 18px 30px -12px rgba(0, 0, 0, .35), 0 0 0 1px rgba(0, 0, 0, .12); }
.ww-chrome { display: flex; align-items: flex-end; gap: 10px; height: 42px; padding: 0 10px 0 14px; background: #e4e3df; border-radius: 12px 12px 0 0; min-width: 0; }
.ww-dots { display: flex; gap: 7px; align-self: center; flex: none; } .ww-dots i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; } .ww-dots i:nth-child(2) { background: #febc2e; } .ww-dots i:nth-child(3) { background: #28c840; }
.ww-tabsw { position: relative; flex: 1; min-width: 0; display: grid; }
.ww-tabs { display: flex; gap: 2px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; overscroll-behavior-x: contain; }
.ww-tabs::-webkit-scrollbar { display: none; }
.ww-tab { all: unset; flex: none; cursor: pointer; display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px; max-width: 190px; border-radius: 9px 9px 0 0; font: 500 12.5px/1 'Albert Sans', sans-serif; color: #555; white-space: nowrap; }
@media (hover: hover) and (pointer: fine) { .ww-tab:hover { background: rgba(0, 0, 0, .05); } }
.ww-tab.on { background: #f6f6f4; color: #111; }
.ww-tab i { width: 14px; height: 14px; border-radius: 4px; flex: none; }
.ww-tab:focus-visible { outline: 2px solid #2F5BFF; outline-offset: -2px; }
.ww-tabsw .wb-railrow { position: absolute; left: 0; right: 0; bottom: -4px; }
.ww-tabsw .wb-rail { height: 2px; --ink: #1a1a1a; }
.ww-tmore { all: unset; cursor: pointer; flex: none; align-self: center; height: 26px; padding: 0 10px; border-radius: 99px; background: rgba(0, 0, 0, .08); font: 600 11.5px/26px 'Albert Sans', sans-serif; color: #222; }
.ww-tmore[hidden] { display: none; }
.ww-addr { display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 14px; border-bottom: 1px solid rgba(0, 0, 0, .08); min-width: 0; }
.ww-url { flex: 1; min-width: 0; height: 26px; border-radius: 8px; background: #e9e8e4; display: flex; align-items: center; padding: 0 10px; font: 500 12.5px/1 'Albert Sans', sans-serif; color: #333; overflow: hidden; white-space: nowrap; }
.ww-addr svg { flex: none; opacity: .5; }
/* the page itself: laid out at its true width (the ruler's), scaled to the window; the visitor scrolls inside it */
.ww-view { position: relative; min-height: 0; overflow: hidden; border-radius: 0 0 12px 12px; background: #fff; }
.ww-vp { position: absolute; left: 0; top: 0; transform-origin: 0 0; background: #fff; }
.ww-frame { display: block; width: 100%; height: 100%; border: 0; background: #fff; }
.ww-frame[hidden] { display: none; }
.dragging .ww-frame { pointer-events: none; }
.ww-scroll { position: absolute; inset: 0; overflow-y: auto; overflow-x: hidden; scrollbar-width: thin; container-type: inline-size; }
.ww-scroll img { display: block; width: 100%; height: auto; }
.ww-seq { overflow: hidden; background: #efefef; container-type: normal; } .ww-seq video { display: block; width: 100%; height: 100%; object-fit: cover; }
.ww-droste { position: absolute; inset: 0; overflow: hidden; background: var(--bg); }
/* Unleashed, never launched: the pictures, in one column on a phone width and up to three on a desktop width, each in its shape */
.ww-note { position: sticky; top: 0; z-index: 2; padding: 12px 16px; background: #111; color: #fff; font: 600 14px/1.3 'Albert Sans', sans-serif; letter-spacing: .01em; }
.ww-shots { columns: 1; column-gap: 0; }
.ww-shots img { break-inside: avoid; }
@container (min-width: 520px) { .ww-shots { columns: 2; } }
@container (min-width: 900px) { .ww-shots { columns: 3; } }
/* a site with only screenshots: the desktop capture at desktop widths, the phone capture below 760 */
.ww-pair .p { display: none; }
[data-wide="0"] .ww-pair .d { display: none; } [data-wide="0"] .ww-pair .p { display: block; }

/* the grips: on both edges, plainly handles; the window narrows from its centre, as a responsive view does */
.ww-grip { position: absolute; top: 50%; width: 44px; height: 132px; margin-top: -66px; cursor: ew-resize; touch-action: none; display: grid; place-items: center; z-index: 3; outline: none; }
.ww-grip i { position: relative; width: 14px; height: 76px; border-radius: 99px; background: var(--ink); box-shadow: 0 6px 16px rgba(0, 0, 0, .35), 0 0 0 2px color-mix(in srgb, var(--bg) 70%, transparent); transition: height .25s cubic-bezier(.23, 1, .32, 1), width .25s; }
.ww-grip i::before { content: ''; position: absolute; left: 50%; top: 50%; width: 4px; height: 26px; transform: translate(-50%, -50%);
  background: repeating-linear-gradient(180deg, var(--bg) 0 2px, transparent 2px 6px); opacity: .9; } /* the ridges a thumb finds */
@media (hover: hover) and (pointer: fine) { .ww-grip:hover i { height: 96px; width: 16px; } }
.ww-grip.drag i { height: 104px; width: 16px; }
.ww-grip:focus-visible i { outline: 2px solid var(--ink); outline-offset: 4px; }
.ww-grip.l { left: -30px; } .ww-grip.r { right: -30px; }
/* the instruction sits on the window, beside the right grip, and goes once the window has been dragged */
.ww-hint { position: absolute; right: 22px; top: 50%; transform: translateY(-50%); z-index: 3; pointer-events: none; transition: opacity .5s; }
.ww-hint b { display: block; padding: 9px 13px; border-radius: 10px; background: var(--ink); color: var(--bg); font: 600 13px/1.25 'Albert Sans', sans-serif; white-space: nowrap; box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .5); }
.ww-hint .out { display: none; } .ww-hint.narrow .in { display: none; } .ww-hint.narrow .out { display: block; }
.ww-hint.gone { opacity: 0; }
@media (hover: hover) and (pointer: fine) { .ww-hint:not(.gone) b { animation: ww-nudge 2.4s cubic-bezier(.45, 0, .2, 1) 1.2s 3; } }
@keyframes ww-nudge { 0%, 60%, 100% { transform: none; } 30% { transform: translateX(-8px); } }

@media (max-width: 759px) {
  .ww-stage { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr) auto; padding: 62px 0 14px; }
  .ww-side { display: contents; }
  .ww-act { grid-row: 1; padding: 4px 16px 8px; font-size: 13.5px; max-width: none; }
  .ww-desk { grid-row: 2; padding: 0 16px 6px; grid-template-rows: 28px minmax(0, 1fr); }
  .ww-foot { grid-row: 3; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 16px 0; }
  .ww-info { border: 0; padding: 0; gap: 2px; } .ww-info b { font-size: 26px; } .ww-info span { font-size: 12px; } .ww-visit { display: none; }
  .ww-foot { flex-wrap: wrap; } .ww-about { order: 3; flex: 1 0 100%; max-width: none; font-size: 14px; }
  .ww-full { display: inline-flex; } .ww-full[hidden] { display: none; }
  .ww-modes .wb-pill { min-height: 40px; padding: 8px 12px; font-size: 13px; }
  .ww-grip.l { display: none; } .ww-grip.r { right: -24px; width: 44px; }
  .ww-grip i { width: 12px; height: 64px; }
  .ww-hint { right: 16px; top: auto; bottom: 18px; transform: none; }
  .ww-hint b { font-size: 12px; padding: 8px 11px; white-space: normal; max-width: 190px; }
  .ww-chrome { height: 38px; padding-left: 10px; } .ww-dots { display: none; } .ww-tab { height: 30px; padding: 0 10px; font-size: 12px; }
  .ww-addr { height: 34px; }
}
@media (prefers-reduced-motion: reduce) { .ww-hint b { animation: none !important; } }
/* the page inside its own window (?embed=1): no opening, and the page stands on this section */
.ww-embed .s3-curtain, .ww-embed .ww-hint { display: none !important; }

/* Ritual's video, when a phone will not start it by itself: one Play button in the middle of the window */
.ww-seq { position: relative; container-type: inline-size; } /* the window may be a 1440px page scaled to a phone: the button is sized to the window */
.ww-play { all: unset; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: 10px; height: 2.8em; padding: 0 1.2em 0 1em; gap: .6em; background: #000; color: #fff; font: 600 max(17px, 3.6cqw)/1 'Albert Sans', system-ui, sans-serif; cursor: pointer; }
.ww-play[hidden] { display: none; }
.ww-play i { width: 0; height: 0; border-left: .75em solid currentColor; border-top: .45em solid transparent; border-bottom: .45em solid transparent; }
.ww-play:focus-visible { outline: 3px solid #F25BA9; outline-offset: 2px; }

/* ---------- a phone (r2/web.js, 2026-11-15): site buttons, Phone / Desktop, a device of the true shape ---------- */
.wp .ww-ruler, .wp .ww-ghost, .wp .ww-grip, .wp .ww-hint, .wp .ww-tabsw, .wp .ww-tmore, .wp .wb-next { display: none !important; }
.wp .ww-stage { height: auto; display: flex; flex-direction: column; gap: 14px; padding: 72px 0 26px; overflow: visible; }
.wp-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 0 16px; }
.wp-pick button { all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 12px; background: color-mix(in srgb, var(--ink) 12%, transparent); color: var(--ink); font: 600 16px/1.1 'Albert Sans', sans-serif; }
.wp-pick button i { width: 14px; height: 14px; flex: none; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .25); }
.wp-pick button.on { background: #fff; color: #000; }
.wp-pick button:last-child:nth-child(odd) { grid-column: 1 / -1; }
.wp-pick button:focus-visible, .wp-mode button:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.wp-mode { display: grid; grid-template-columns: 1fr 1fr; margin: 0 16px; box-shadow: inset 0 0 0 2px #fff; }
.wp-mode button { all: unset; box-sizing: border-box; cursor: pointer; text-align: center; min-height: 44px; display: grid; place-items: center; color: #fff; font: 600 15px/1 'Albert Sans', sans-serif; }
.wp-mode button[aria-pressed="true"] { background: #fff; color: #000; }
.wp .ww-desk { display: block; padding: 4px 16px 0; }
.wp .ww-well { min-height: 0; }
.wp .ww-win { position: relative; left: auto; top: auto; bottom: auto; transform: none; margin: 0 auto; display: block; border-radius: 0; background: #e4e3df; padding: 0; box-shadow: 0 30px 50px -22px rgba(0, 0, 0, .55); }
/* the browser stays a browser on a phone too (Omer, 2026-11-15): the dots bar and the address, the site buttons above are its tabs */
.wp .ww-win .ww-chrome { display: flex; height: 24px; align-items: center; border-radius: 0; } .wp .ww-win .ww-dots { display: flex; } .wp .ww-win .ww-dots i { width: 9px; height: 9px; }
.wp .ww-win .ww-addr { display: flex; height: 32px; }
.wp .ww-view { border-radius: 0; }
.wp-load { position: absolute; inset: 0; z-index: 3; display: none; place-items: center; background: #f2f1ed; color: #555; font: 600 14px/1 'Albert Sans', sans-serif; }
.wp .ww-view.wp-busy .wp-load { display: grid; }
.wp .ww-foot { display: grid; gap: 10px; padding: 6px 16px 0; }
.wp .ww-visit { display: inline-flex; }
.wp-pick { order: 1; } .wp-mode { order: 2; } .wp .ww-desk { order: 3; } .wp .ww-foot { order: 4; }
.wp .ww-foot .ww-full { justify-self: start; }
.wp .ww-vp > .ww-seq, .wp .ww-vp > .ww-frame { position: absolute; inset: 0; width: 100%; height: 100%; }
