/* next.bgworldlab.com: the lab's site, rebuilt to the 1 Nov 2026 quality bar.
   Brand tokens from brand/Background-World-Brand-System.md. One orange thing per screen. */
:root {
  --ink: #111113; --ground: #F4F4F2; --panel: #FBFBFA; --graphite: #66666B; --hair: #D2D2CE;
  --onbar: #EDEDEB; --dmuted: #9A9A9F; --dhair: #34343A; --signal: #FF4F1F;
  --pad: clamp(16px, 5vw, 96px);
  --bar: 56px;
  --attack: cubic-bezier(.16, 1, .3, 1);
  --release: cubic-bezier(.3, 0, .8, .15);
  --crack: cubic-bezier(.9, 0, .1, 1);
  --display: clamp(46px, 7.2vw, 124px);
  --statement: clamp(30px, 4.2vw, 64px);
  --head: clamp(22px, 2vw, 32px);
  --body: clamp(17px, 1.35vw, 22px);
  --small: clamp(13px, .95vw, 15px);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html.motion { scroll-behavior: auto; }
body { margin: 0; background: var(--ink); color: var(--onbar); font-family: 'Hanken Grotesk', system-ui, sans-serif; font-weight: 400; font-size: var(--body); line-height: 1.45; -webkit-font-smoothing: antialiased; overflow-x: clip; }
a { color: inherit; }
p, h1, h2, h3 { margin: 0; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--onbar); color: var(--ink); padding: 8px 14px; border-radius: 99px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--onbar); outline-offset: 3px; }
.ground :focus-visible { outline-color: var(--ink); }

.cat { font-size: 12px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--dmuted); font-variant-numeric: tabular-nums; }
.ground .cat { color: var(--graphite); }
.display { font-size: var(--display); font-weight: 300; letter-spacing: -.035em; line-height: .96; }
.sub { font-size: var(--body); color: var(--dmuted); max-width: 30ch; }

/* scramble: every glyph keeps its real width; a random one is drawn over it while it resolves */
.g-c { position: relative; display: inline-block; }
.g-c.sc { color: transparent; }
.g-c.sc::after { content: attr(data-r); position: absolute; left: 0; top: 0; color: var(--dmuted); font-weight: 500; }
.ground .g-c.sc::after { color: var(--graphite); }
.g-w { display: inline-block; white-space: nowrap; }

/* ---------- bar ---------- */
.bar { position: fixed; inset: 0 0 auto; z-index: 40; height: var(--bar); display: flex; align-items: center; gap: 24px; padding: 0 var(--pad); color: var(--onbar); background: linear-gradient(rgba(17,17,19,.72), rgba(17,17,19,0)); }
.bar .wm { font-weight: 300; font-size: 20px; letter-spacing: -.02em; text-decoration: none; white-space: nowrap; }
.strip { display: flex; gap: 28px; margin: 0 auto 0 32px; font-size: var(--small); font-variant-numeric: tabular-nums; }
.strip a { text-decoration: none; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.strip .k { font-size: 11px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--dmuted); }
.strip .v { font-weight: 500; }
.onair i { width: 7px; height: 7px; border-radius: 50%; background: var(--onbar); box-shadow: 0 0 0 0 rgba(237,237,235,.6); }
.motion .onair i { animation: onair 2.4s var(--attack) infinite; }
@keyframes onair { 0% { box-shadow: 0 0 0 0 rgba(237,237,235,.55); } 70%, 100% { box-shadow: 0 0 0 9px rgba(237,237,235,0); } }
.nav { display: flex; gap: 22px; font-size: var(--small); font-weight: 500; }
.nav a { text-decoration: none; color: var(--dmuted); transition: color .16s var(--release); }
.nav a:hover { color: var(--onbar); }
.bar { transition: color .3s var(--attack), background .3s var(--attack); }
.bar.light { color: var(--ink); background: linear-gradient(rgba(244,244,242,.9), rgba(244,244,242,0)); }
.bar.light .strip .k, .bar.light .nav a { color: var(--graphite); }
.bar.light .nav a:hover { color: var(--ink); }
.bar .me { display: inline-flex; align-items: center; gap: 8px; font-size: var(--small); font-weight: 500; color: var(--onbar); text-decoration: none; white-space: nowrap; }
.bar .me img { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; display: block; }
.bar.light .me { color: var(--ink); }
.bar.light .onair i { background: var(--ink); }
@media (max-width: 860px) { .strip .onair, .nav { display: none; } .strip { margin-right: 0; margin-left: auto; } }
@media (max-width: 480px) { .strip .nextd .k { display: none; } .bar .wm { font-size: 18px; } }

/* ---------- buttons ---------- */
.key { display: inline-block; text-decoration: none; border-radius: 99px; background: #bdbdb8; padding: 0 0 4px; transform: perspective(600px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .5s var(--attack); }
.key-face { display: inline-flex; align-items: center; gap: 12px; padding: 16px 28px 16px 24px; border-radius: 99px; background: var(--onbar); color: var(--ink); font-weight: 500; font-size: clamp(16px, 1.2vw, 19px); box-shadow: 0 10px 30px rgba(0,0,0,.35), inset 0 1px 0 #fff; transition: transform .16s var(--release); }
.key svg { width: 12px; height: 14px; fill: currentColor; }
.key:active .key-face { transform: translateY(4px); }
.key.small .key-face { padding: 11px 22px; font-size: 15px; }
.key.big { --rx: 0deg; --ry: 0deg; --mx: 50%; --my: 30%; --lift: 0px; background: none; padding: 0; perspective: 700px; transform: none; -webkit-tap-highlight-color: transparent; }
.key.big .key-face { position: relative; gap: clamp(14px, 1.2vw, 20px); padding: clamp(18px, 1.5vw, 26px) clamp(36px, 3vw, 54px) clamp(18px, 1.5vw, 26px) clamp(28px, 2.4vw, 42px); font-size: clamp(18px, 1.5vw, 24px); letter-spacing: -.01em; color: var(--ink);
  background: linear-gradient(180deg, #fff 0%, #ececea 55%, #d6d6d2 100%);
  box-shadow: inset 0 1px 0 #fff, inset 0 -2px 0 rgba(0,0,0,.12), 0 1px 0 #b9b9b6, 0 2px 0 #a3a3a0, 0 4px 0 #8e8e8b, 0 6px 0 #77777a, 0 calc(10px + var(--lift)) 24px rgba(0,0,0,.45), 0 calc(24px + var(--lift) * 2) 60px rgba(0,0,0,.35);
  transform: rotateX(var(--rx)) rotateY(var(--ry)) translateY(calc(var(--lift) * -1)); transform-style: preserve-3d; transition: transform .42s var(--attack), box-shadow .42s var(--attack); overflow: hidden; }
.key.big .key-face::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(120px 80px at var(--mx) var(--my), rgba(255,255,255,.9), rgba(255,255,255,0) 70%); mix-blend-mode: soft-light; pointer-events: none; }
.key.big:hover .key-face { --lift: 3px; }
.key.big:active .key-face { --lift: -4px; transform: rotateX(var(--rx)) rotateY(var(--ry)) translateY(4px); transition-duration: 90ms; }
.key.big svg { width: .8em; height: .8em; }
.quiet { font-size: var(--small); font-weight: 500; color: var(--dmuted); text-decoration: none; border-bottom: 1px solid var(--dhair); padding-bottom: 3px; font-variant-numeric: tabular-nums; }
.quiet:hover { color: var(--onbar); border-color: var(--onbar); }
.acts { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; margin-top: 34px; }

/* ---------- 1. open ---------- */
.open { position: relative; height: 340vh; background: var(--ink); }
.open .stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.disc { position: absolute; left: 0; top: 0; width: 100px; height: 100px; border-radius: 50%; background: var(--signal); will-change: transform, width, height; display: none; }
.field { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.win { position: absolute; inset: 0; will-change: clip-path; }
.film { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.film-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(17,17,19,.86) 0%, rgba(17,17,19,.55) 40%, rgba(17,17,19,.1) 70%), linear-gradient(0deg, rgba(17,17,19,.6), rgba(17,17,19,0) 40%); }
.intro { position: absolute; left: var(--pad); bottom: clamp(48px, 11vh, 120px); max-width: 760px; z-index: 2; will-change: transform, opacity; }
.intro .cat { margin-bottom: 26px; }
.intro .sub { margin-top: 26px; }
.product { position: absolute; left: var(--pad); bottom: clamp(48px, 11vh, 120px); z-index: 2; opacity: 0; visibility: hidden; }
.product .title { font-size: var(--display); font-weight: 300; letter-spacing: -.035em; line-height: .96; margin-top: 18px; }
.product .line { font-size: var(--head); font-weight: 300; margin-top: 16px; }
.cue { position: absolute; right: var(--pad); bottom: 32px; display: flex; align-items: center; gap: 12px; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--dmuted); }
.cue i { width: 1px; height: 36px; background: var(--dhair); position: relative; overflow: hidden; }
.motion .cue i::after { content: ''; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--onbar); animation: cue 1.8s var(--attack) infinite; }
@keyframes cue { to { top: 100%; } }
/* with JS the film lives inside the aperture; shade softens once the window is small */
.js.motion .disc { display: block; }
.js.motion .film-shade { opacity: var(--shade, 0); }
.js.motion .win { cursor: pointer; }

/* ---------- 2. live ---------- */
.ground { background: var(--ground); color: var(--ink); }
.ground .sub { color: var(--graphite); }
.wrap { padding: 0 var(--pad); max-width: 1440px; margin: 0 auto; }
.live { padding: clamp(96px, 18vh, 200px) 0 clamp(80px, 14vh, 160px); }
.read { font-size: var(--statement); font-weight: 300; letter-spacing: -.025em; line-height: 1.12; max-width: 22ch; margin-top: 28px; }
.read em { font-style: normal; }
.read .w { color: var(--ink); transition: color .2s linear; }
.js.motion .read .w { color: #c4c4bf; }
.js.motion .read .w.on { color: var(--ink); }
.js.motion .read .w.sig.on { color: var(--signal); }
.three { list-style: none; padding: 0; margin: clamp(72px, 12vh, 140px) 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; border-top: 2px solid var(--ink); }
.three li { padding-top: 22px; }
.three .n { font-size: 12px; font-weight: 500; letter-spacing: .18em; color: var(--graphite); font-variant-numeric: tabular-nums; }
.three h3 { font-size: var(--head); font-weight: 500; letter-spacing: -.01em; margin: 14px 0 10px; }
.three p { color: var(--graphite); max-width: 28ch; }
@media (max-width: 760px) { .three { grid-template-columns: 1fr; gap: 0; } .three li { border-bottom: 1px solid var(--hair); padding: 22px 0; } }

/* ---------- 3. drops ---------- */
.drops { position: relative; background: var(--ink); }
.js.motion .drops { height: 340vh; }
.drops .stage { position: relative; overflow: hidden; padding: 120px var(--pad) 80px; }
.js.motion .drops .stage { position: sticky; top: 0; height: 100vh; height: 100svh; padding: 0; perspective: 1000px; perspective-origin: 50% 46%; }
.top-l, .top-r { position: absolute; top: calc(var(--bar) + 28px); z-index: 3; }
.top-l { left: var(--pad); } .top-r { right: var(--pad); }
.horizon { position: absolute; left: 0; right: 0; top: 58%; height: 1px; background: linear-gradient(90deg, transparent, var(--dhair) 20%, var(--dhair) 80%, transparent); }
.horizon::after { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 42vh; background: radial-gradient(ellipse 60% 70% at 50% 0%, rgba(237,237,235,.05), transparent 70%); }
.world { display: flex; gap: 32px; flex-wrap: wrap; margin-top: 60px; }
.js.motion .world { position: absolute; left: 50%; top: 46%; width: 0; height: 0; transform-style: preserve-3d; margin: 0; display: block; }
.case { width: clamp(200px, 44vmin, 460px); aspect-ratio: 5 / 7; position: relative; border: 1px solid rgba(237,237,235,.38); border-radius: 6px; background: #17171a; }
.js.motion .case { position: absolute; left: 0; top: 0; translate: -50% -50%; will-change: transform, opacity; }
.case .cover { position: absolute; inset: 10px 10px 34px; overflow: hidden; border-radius: 2px; background: #000; }
.case video { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) brightness(.8) contrast(1.1); transition: filter .64s var(--attack); }
.case.focus video, .case:hover video { filter: none; }
.case .spine { position: absolute; left: 12px; right: 12px; bottom: 10px; font-size: 10px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--dmuted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.case.live { cursor: pointer; box-shadow: 0 40px 80px rgba(0,0,0,.5); }
.case.sealed { border: 1px dashed rgba(237,237,235,.32); background: var(--ink); display: grid; place-content: center; text-align: center; gap: 10px; }
.case .num { font-size: clamp(20px, 2.2vw, 32px); font-weight: 300; letter-spacing: .04em; color: var(--dmuted); }
.case .mini { font-size: 12px; font-weight: 500; font-variant-numeric: tabular-nums; color: var(--onbar); letter-spacing: .06em; }
.case.next .num { color: var(--onbar); }
.caption { position: absolute; left: var(--pad); right: var(--pad); bottom: clamp(28px, 7vh, 72px); display: flex; align-items: flex-end; gap: clamp(16px, 3vw, 40px); z-index: 3; }
.drops .caption { position: relative; left: auto; right: auto; bottom: auto; margin-top: 40px; }
.js.motion .drops .caption { position: absolute; left: var(--pad); right: var(--pad); bottom: clamp(28px, 7vh, 72px); margin: 0; }
.big-n { font-size: clamp(64px, 10vw, 150px); font-weight: 300; letter-spacing: -.04em; line-height: .8; font-variant-numeric: tabular-nums; }
.cap-t { padding-bottom: 6px; min-width: 0; }
.cap-title { font-size: var(--head); font-weight: 500; }
.cap-line { color: var(--dmuted); font-size: var(--body); }
.cap-act { margin-left: auto; padding-bottom: 4px; }
.cap-act[hidden] { display: none; }
.also { padding: 28px var(--pad) 56px; font-size: var(--small); color: var(--dmuted); border-top: 1px solid var(--dhair); }
.also a { color: var(--onbar); }
@media (max-width: 640px) { .caption { flex-wrap: wrap; } .cap-act { margin-left: 0; } .top-r { display: none; } }

/* ---------- 4. clock ---------- */
.clock { padding: clamp(96px, 16vh, 180px) 0; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; }
.clock .wrap { width: 100%; }
.digits { color: var(--signal); transform-style: preserve-3d; will-change: transform; font-size: clamp(40px, 14vw, 250px); font-weight: 300; letter-spacing: -.045em; line-height: .9; font-variant-numeric: tabular-nums; margin: 28px 0 0 -.04em; display: flex; flex-wrap: nowrap; align-items: baseline; }
.digits .g { display: inline-block; width: .6em; text-align: center; overflow: hidden; }
.digits .g > span { display: inline-block; }
.motion .digits .g > span.in { animation: dig .38s var(--attack); }
@keyframes dig { from { transform: translateY(-.5em); opacity: 0; filter: blur(6px); } }
.digits i { font-style: normal; font-size: .32em; color: var(--signal); margin: 0 .1em 0 .04em; }
.digits b { font-weight: 300; color: var(--signal); width: .28em; text-align: center; }
.digits .sp { width: .28em; }
.when { margin-top: 26px; font-size: var(--head); font-weight: 300; }
.join { margin-top: 40px; display: flex; align-items: center; gap: 20px; max-width: 560px; }
.join input { flex: 1; min-width: 0; font: inherit; font-size: var(--body); color: inherit; background: transparent; border: 0; border-bottom: 2px solid currentColor; border-radius: 0; padding: 14px 0; outline: none; }
.join input::placeholder { color: var(--graphite); }
.join button { font: inherit; font-weight: 500; font-size: 15px; border: 0; border-radius: 99px; padding: 14px 24px; margin: 0 0 4px; flex: none; background: var(--signal); color: var(--ink); cursor: pointer; box-shadow: 0 4px 0 #C83A12; transition: transform .16s var(--release), box-shadow .16s var(--release); }
.join button:active { transform: translateY(4px); box-shadow: 0 0 0 #C83A12; }
.join button.light { background: var(--onbar); box-shadow: 0 4px 0 #9A9A9F; }
.join button.light:active { box-shadow: 0 0 0 #9A9A9F; }
.clock .join button { background: var(--ink); color: var(--ground); box-shadow: 0 4px 0 #45454B; }
.clock .join button:active { box-shadow: 0 0 0 #45454B; }
.done { margin-top: 40px; font-size: var(--head); font-weight: 300; }

/* ---------- 5. close: the hole ---------- */
.close { position: relative; overflow: hidden; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: clamp(96px, 16vh, 180px) 0; }
.close .wrap { position: relative; z-index: 1; width: 100%; }
.close .ap { position: absolute; right: var(--pad); top: 50%; transform: translateY(-50%); width: min(32vw, 440px); aspect-ratio: 1; }
.close .ap svg { width: 100%; height: 100%; overflow: visible; display: block; }
.ap .core { transition: transform 1.4s var(--attack); }
.ap .ap3d { position: absolute; inset: -15%; width: 130%; height: 130%; opacity: 0; transition: opacity .6s; }
.ap .ap3d.on { opacity: 1; }
.ap.has3d > svg { opacity: 0; }
.sign .sub { margin-top: 24px; }
@media (max-width: 760px) { .close { padding-top: 60vw; align-items: flex-end; } .close .ap { width: 50vw; right: auto; left: var(--pad); top: clamp(64px, 14vw, 100px); transform: none; } }

/* ---------- footer ---------- */
footer { padding: 40px var(--pad) 48px; border-top: 1px solid var(--dhair); display: flex; flex-wrap: wrap; gap: 14px 32px; font-size: var(--small); color: var(--dmuted); }
footer a { color: var(--dmuted); }
footer a:hover { color: var(--onbar); }
footer .follow { margin-left: auto; }
footer .legal { flex-basis: 100%; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 18px; font-size: 13px; }
footer .legal a { margin-right: 14px; }

/* ---------- cursor + the crack ---------- */
.cur { position: fixed; left: 0; top: 0; z-index: 60; width: 88px; height: 88px; margin: -44px 0 0 -44px; border-radius: 50%; background: var(--onbar); color: var(--ink); display: none; place-items: center; font-size: 14px; font-weight: 500; pointer-events: none; transform: scale(0); transition: transform .3s var(--attack); }
.fine.motion .cur { display: grid; }
.cur.on { transform: scale(1); }
.fine.motion [data-cursor="play"]:hover { cursor: none; }
.flood { position: fixed; inset: 0; z-index: 90; background: var(--signal); color: var(--ink); clip-path: circle(0 at var(--fx, 50%) var(--fy, 50%)); pointer-events: none; display: flex; align-items: flex-end; padding: 0 var(--pad) clamp(48px, 11vh, 120px); }
.flood.go { clip-path: circle(150vmax at var(--fx, 50%) var(--fy, 50%)); transition: clip-path .62s var(--crack); pointer-events: auto; }
.fl-t { font-size: var(--statement); font-weight: 300; letter-spacing: -.025em; opacity: 0; transition: opacity .2s .3s; }
.flood.go .fl-t { opacity: 1; }
.fl-k { font-size: 12px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; display: block; margin-bottom: 14px; }

/* ---------- reduced motion: everything readable, nothing moves ---------- */
html:not(.motion) .open { height: auto; }
html:not(.motion) .open .stage { position: relative; height: 100vh; height: 100svh; }
html:not(.motion) .film-shade { opacity: 1; }
html:not(.motion) .cue { display: none; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
