/* GlassCam site. Assembly direction: cream paper, raspberry and teal inks, plum overprint. */
:root {
  --paper: #FFF8EC; --ink: #22101F; --pink: #E0436A; --teal: #6FD6C7; --plum: #613852; --muted: #6E5D6A;
  --display: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
  --body: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.6 var(--body); }
a { color: var(--pink); }
.wrap { max-width: 1160px; margin: 0 auto; padding-inline: 20px; }
.grain { position: fixed; inset: 0; pointer-events: none; z-index: 50; opacity: .14; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.6'/%3E%3C/svg%3E"); }

.nav { display: flex; align-items: center; justify-content: space-between; padding-block: 18px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 900; font-size: 26px; text-transform: uppercase; text-decoration: none; color: var(--ink); }
.brand img { width: 36px; height: 36px; }
.soon { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--plum); border: 2px solid var(--plum); border-radius: 999px; padding: 4px 12px; }

.intro { padding-block: 8px 28px; display: grid; gap: 18px; }
h1 { margin: 0; font-family: var(--display); font-weight: 900; text-transform: uppercase; line-height: .9;
  font-size: clamp(52px, 11vw, 132px); color: var(--plum); text-shadow: -4px -3px 0 var(--pink), 4px 3px 0 var(--teal); }
.lede { font-size: clamp(18px, 2.3vw, 21px); max-width: 44ch; margin: 0; }

/* The desktop: wallpaper, menu bar, the glass field and the overlay. No filters, masks or
   opacity on ancestors of the field: the glass needs to see the wallpaper. */
.poster { width: 100%; height: auto; display: block; border-radius: 14px; margin-top: 8px; }
.demo { padding-block: 72px 0; }
.demo-title { margin: 0 0 18px; font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: clamp(40px, 7vw, 84px); line-height: .95; color: var(--plum);
  text-shadow: -3px -2px 0 var(--pink), 3px 2px 0 var(--teal); }
.desktop { position: relative; height: clamp(500px, 74vh, 720px); border-radius: 18px; overflow: hidden; background: #2B1640;
  box-shadow: 0 30px 80px rgb(34 16 31 / .25); user-select: none; -webkit-user-select: none; }
.wallpaper { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.caption { margin: 14px 0 0; font-size: 18px; min-height: 1.6em; color: var(--plum); font-weight: 600; }
.menubar { position: absolute; inset: 0 0 auto 0; height: 28px; display: flex; align-items: center; gap: 18px; padding-inline: 16px;
  font: 600 13px/1 -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif; color: #fff; background: rgb(34 16 31 / .55); z-index: 3; }
.menubar span { font-weight: 400; }
.menubar .apple { width: 12px; height: 14px; border-radius: 6px 6px 7px 7px; background: #fff; }
.menubar .clock { margin-left: auto; font-variant-numeric: tabular-nums; }
.field { z-index: 1; --ag-tint: rgb(255 255 255 / .06); }

.overlay { position: absolute; left: 0; top: 0; z-index: 2; width: 0; height: 0; }
.bubble { position: absolute; border-radius: 50%; cursor: grab; outline: none; transform-origin: center; }
.bubble:focus-visible { box-shadow: 0 0 0 4px var(--paper), 0 0 0 7px var(--pink); }
.bubble.dragging { cursor: grabbing; }
.bubble { cursor: default; }
.feed { position: absolute; inset: 0; border-radius: 50%; overflow: hidden; }
.feed img, .feed video { width: 100%; height: 100%; object-fit: cover; display: block; transform-origin: center; }
.feed .cut { object-position: 50% 100%; transform: scale(1.04) translateY(2%); transition: opacity .16s; }
.feed .cut.swap { opacity: 0; }
.feed video { transform: scaleX(-1); }

.rings { position: absolute; pointer-events: none; }
.ring { position: absolute; inset: 0; border-radius: 50%; border: 3px solid; opacity: 0; transition: transform .45s cubic-bezier(.3, 1.6, .5, 1), opacity .3s; }
.ring.pink { border-color: var(--pink); }
.ring.teal { border-color: var(--teal); }
.open .rings .ring { opacity: 1; }
.open .rings .ring.pink { transform: translate(-3px, -3px); }
.open .rings .ring.teal { transform: translate(3px, 3px); }

.buttons { position: absolute; left: 0; top: 0; }
.mbtn { position: absolute; border: 0; padding: 0; margin: 0; background: transparent; border-radius: 50%; display: grid; place-items: center; cursor: pointer; color: #fff; }
.mbtn svg { opacity: 0; transition: opacity .1s ease-in; pointer-events: none; }
.icons .mbtn svg { opacity: 1; }
.mbtn:focus-visible { outline: 3px solid var(--paper); outline-offset: 2px; }
.mbtn[data-kind="resize"] { cursor: nwse-resize; }
.dot { position: absolute; width: 9px; height: 9px; border-radius: 50%; background: #34C759; border: 1px solid rgb(255 255 255 / .7);
  box-shadow: 0 0 3px #34C759, 0 0 7px rgb(52 199 89 / .6); transform: scale(.1); opacity: 0; transition: transform .35s cubic-bezier(.3, 1.8, .5, 1), opacity .2s; pointer-events: none; }
.dot.coral { background: #FF9E80; box-shadow: 0 0 3px #FF9E80, 0 0 7px rgb(255 158 128 / .6); }
.dot.lit { transform: scale(1); opacity: 1; }
.dot.lit::after { content: ""; position: absolute; inset: -1px; border-radius: 50%; border: 1.5px solid currentColor; color: inherit; animation: bloom .6s ease-out 1; }
@keyframes bloom { from { transform: scale(1); opacity: .8; } to { transform: scale(3); opacity: 0; } }
.zoom-badge { position: absolute; transform: translate(-50%, -50%); padding: 5px 10px; border-radius: 10px; background: rgb(0 0 0 / .35); color: rgb(255 255 255 / .85);
  font: 500 14px/1 -apple-system, BlinkMacSystemFont, sans-serif; pointer-events: none; }

.cursor { position: absolute; left: 0; top: 0; z-index: 3; pointer-events: none; opacity: 0; transition: opacity .25s; }
.cursor.show { opacity: 1; }
.keycap { position: absolute; left: 22px; top: 22px; white-space: nowrap; font: 600 12px/1 -apple-system, BlinkMacSystemFont, sans-serif; color: #22101F;
  background: #FFF8EC; border: 1px solid rgb(34 16 31 / .25); border-bottom-width: 3px; border-radius: 6px; padding: 4px 7px; opacity: 0; transform: translateY(4px); transition: opacity .2s, transform .2s; }
.keycap.on { opacity: 1; transform: none; }
.dock { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); z-index: 2; }
.dock-glass { --ag-radius: 22px; display: flex; gap: 10px; padding: 8px 10px; }
.app { position: relative; width: 52px; height: 52px; border-radius: 12px; display: block; }
.app.a1 { background: linear-gradient(160deg, #6FD6C7, #2E8F86); }
.app.a2 { background: linear-gradient(160deg, #FFC7A8, #FF9E80); }
.app.a3 { background: linear-gradient(160deg, #FFF8EC, #E9DCC9); }
.app.a4 { background: linear-gradient(160deg, #E0436A, #8E2246); }
.app.gc img { width: 52px; height: 52px; display: block; }
.running { position: absolute; left: 50%; bottom: -6px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: #FFF8EC; }
@media (max-width: 600px) { .app { width: 38px; height: 38px; border-radius: 9px; } .app.gc img { width: 38px; height: 38px; } .dock-glass { gap: 7px; padding: 6px 8px; } }
.hint { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); margin: 0; z-index: 3; white-space: nowrap;
  padding: 7px 14px; border-radius: 999px; background: rgb(34 16 31 / .72); color: #fff; font-size: 14px; }
.kbd { font-family: ui-monospace, Menlo, monospace; border: 1.5px solid currentColor; border-bottom-width: 3px; border-radius: 5px; padding: 0 5px; margin-right: 4px; }
.bring-back { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 3; font: 600 16px var(--body); color: var(--ink);
  background: var(--paper); border: 2px solid var(--ink); border-radius: 999px; padding: 10px 20px; cursor: pointer; }

.consent { position: absolute; inset: 0; z-index: 4; display: grid; place-items: center; padding: 16px; }
.consent-card { --ag-radius: 26px; width: min(460px, 100%); padding: 24px 26px; color: #fff; }
.consent-card h2 { margin: 0 0 10px; font-family: var(--display); font-weight: 800; font-size: 34px; text-transform: uppercase; line-height: 1; }
.consent-card ul { margin: 0 0 18px; padding-left: 20px; display: grid; gap: 6px; font-size: 16px; }
.consent-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }

.camera-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; padding-block: 18px 6px; }
.cta { font: 700 17px var(--body); color: var(--paper); background: var(--plum); border: 0; border-radius: 999px; padding: 12px 22px; cursor: pointer;
  box-shadow: -3px -2px 0 var(--pink), 3px 2px 0 var(--teal); }
.cta:focus-visible { outline: 3px solid var(--pink); outline-offset: 3px; }
.cta.on { background: var(--ink); }
.status { color: var(--muted); font-size: 15px; }
.note { color: var(--muted); font-size: 14px; margin: 4px 0 0; }

/* Exploded view: a tall scroll track with a sticky 3D stage. */
.exploded { height: 520vh; position: relative; margin-top: 64px; background: var(--ink); color: var(--paper); }
.sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.ex-title { position: absolute; top: 9vh; left: 0; right: 0; text-align: center; padding-inline: 20px; z-index: 5; pointer-events: none; }
.ex-title h2 { margin: 0; font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: clamp(44px, 8vw, 96px); line-height: .95;
  text-shadow: -3px -2px 0 var(--pink), 3px 2px 0 var(--teal); }
.ex-title p { margin: 10px 0 0; color: #cdbfca; }
.scene { position: absolute; inset: 0; perspective: 1800px; perspective-origin: 50% 40%; }
.rig { position: absolute; left: 50%; top: 50%; width: 640px; height: 400px; margin: -200px 0 0 -320px; transform-style: preserve-3d; will-change: transform; }
.plane { position: absolute; inset: 0; transform-style: preserve-3d; will-change: transform, opacity; }
.p-desk { border-radius: 18px; box-shadow: 0 30px 80px rgb(0 0 0 / .6); }
.p-desk img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 18px; }
.p-feed { inset: auto; left: 230px; top: 110px; width: 180px; height: 180px; }
.p-feed img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; object-position: 50% 100%; display: block;
  background: radial-gradient(circle at 35% 30%, rgb(255 255 255 / .5), rgb(255 255 255 / .12) 60%, rgb(255 255 255 / .25)); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .7); }
.p-rings { inset: auto; left: 227px; top: 107px; width: 186px; height: 186px; }
.p-rings .ring { opacity: 1; }
.p-rings .ring.pink { transform: translate(-3px, -3px); }
.p-rings .ring.teal { transform: translate(3px, 3px); }
.p-glass span, .p-icons span { position: absolute; border-radius: 50%; transform: translate(-50%, -50%); display: grid; place-items: center; }
.p-glass span { background: radial-gradient(circle at 30% 25%, rgb(255 255 255 / .55), rgb(255 255 255 / .12) 55%, rgb(255 255 255 / .2));
  border: 1px solid rgb(255 255 255 / .7); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .25), 0 6px 18px rgb(0 0 0 / .25); }
.captions { list-style: none; margin: 0; padding: 0; position: absolute; right: max(20px, 6vw); top: 50%; transform: translateY(-50%); width: min(340px, 30vw); z-index: 6; }
.captions li { position: absolute; top: 0; left: 0; right: 0; transform: translateY(-50%); opacity: 0; transition: opacity .35s; }
.captions li.on { opacity: 1; }
.captions b { display: block; font-family: var(--display); font-weight: 800; font-size: clamp(28px, 2.8vw, 38px); text-transform: uppercase; line-height: 1; margin-bottom: 8px; color: var(--teal); }
.captions p { margin: 0; color: #e9dde6; }
.progress { position: absolute; left: 20px; right: 20px; bottom: 18px; height: 2px; background: rgb(255 255 255 / .12); }
.progress i { display: block; height: 100%; width: 0; background: var(--pink); }
@media (max-width: 860px) {
  .captions { top: auto; bottom: 8vh; right: 20px; left: 20px; width: auto; transform: none; }
  .captions li { top: auto; bottom: 0; transform: none; }
}
.static-list { padding: 80px 20px; display: grid; gap: 22px; max-width: 760px; margin: 0 auto; }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; padding-block: 64px; }
.feature { border-top: 4px solid var(--plum); padding-top: 12px; }
.feature:nth-child(odd) { border-color: var(--pink); }
.feature:nth-child(3n) { border-color: var(--teal); }
.feature h3 { margin: 0 0 4px; font-family: var(--display); font-weight: 800; font-size: 24px; text-transform: uppercase; }
.feature p { margin: 0; color: var(--muted); }
.icon-row { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; padding-block: 8px 64px; }
.icon-row img { width: 160px; height: 160px; }
.icon-row p { max-width: 50ch; margin: 0; }
.footer { border-top: 2px solid var(--ink); padding-block: 22px 40px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: 14px; color: var(--muted); }
.tag { font-family: var(--display); font-weight: 800; color: var(--pink); }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); z-index: 60; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 12px;
  font-size: 15px; opacity: 0; transition: opacity .25s, transform .25s; pointer-events: none; max-width: calc(100vw - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) {
  .ring { transition: opacity .3s; }
  .open .rings .ring.pink, .open .rings .ring.teal { transform: none; }
  .dot.lit::after { animation: none; }
}

/* Reduced motion: the exploded view holds still and lists every caption. */
.exploded.still { height: auto; }
.still .sticky { position: relative; height: auto; padding-block: 80px 60px; }
.still .ex-title { position: static; }
.still .scene { position: relative; height: 460px; }
.still .captions { position: static; transform: none; width: auto; max-width: 760px; margin: 0 auto; padding-inline: 20px; display: grid; gap: 16px; }
.still .captions li { position: static; opacity: 1; transform: none; }
.still .progress { display: none; }
/* Screenshot mode (#exNN): only the exploded view, frozen. */
.shot-ex > :not(.exploded):not(script) { display: none !important; }
.shot-ex .exploded { height: 100vh; margin: 0; }
