@font-face { font-family: "HN"; src: url("assets/fonts/hn-md.otf") format("opentype"); font-display: swap; }
/* same face with its caps centred in the line box (metrics fixed in the file), so button labels centre alike in Safari and Chrome */
@font-face { font-family: "HNc"; src: url("assets/fonts/hn-md-c.otf?v=1") format("opentype"); font-display: swap; }
:root { --blue: #3F5698; --ink: #231F20; --paper: #FBFAF8; --soft: #E9E1D6; --focus-x: 68%; }
* { box-sizing: border-box; margin: 0; }
html, body { height: 100%; overflow: hidden; background: #1c140f; color: var(--paper); font-family: "HN", "Helvetica Neue", Helvetica, Arial, sans-serif; -webkit-font-smoothing: antialiased; }

/* the room */
.stage { position: fixed; inset: 0; }
.v { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--focus-x) 50%; opacity: 0; }
.v.is-on { opacity: 1; }
.v { transition: opacity .3s linear; }
.v.is-on { z-index: 1; }
.scrim { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,13,9,.62) 0%, rgba(20,13,9,.35) 34%, rgba(20,13,9,0) 58%); transition: opacity .4s; }

/* glass, the one surface treatment */
.glass { background: rgba(251,250,248,.14); border: 1.5px solid rgba(251,250,248,.5); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); color: var(--paper); box-shadow: 0 10px 40px rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.25); }

.ui { position: fixed; inset: 0; transition: opacity .35s ease; }
.ui.is-hidden { opacity: 0; pointer-events: none; }

.hello { position: absolute; left: clamp(20px, 5vw, 80px); top: 50%; translate: 0 -50%; max-width: min(540px, 44vw); }
.pill { display: inline-flex; align-items: center; gap: 10px; padding: 9px 18px; border-radius: 99px; font: inherit; font-size: 14px; cursor: pointer; transition: background .2s, translate .2s; }
.pill:hover { background: rgba(251,250,248,.24); translate: 0 -1px; }
.pill i { width: 9px; height: 9px; border-radius: 50%; background: #58D08F; box-shadow: 0 0 0 4px rgba(88,208,143,.25); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(88,208,143,.1); } }
h1 { font-weight: 500; font-size: clamp(52px, 6.4vw, 104px); line-height: .98; letter-spacing: -.02em; margin: 22px 0 20px; }
.lead { font-size: clamp(18px, 1.45vw, 22px); line-height: 1.45; max-width: 30ch; }
.svc { margin-top: 16px; font-size: 14px; color: var(--soft); }
.contacts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.chip { padding: 11px 20px; border-radius: 99px; font-size: 15px; text-decoration: none; transition: background .2s, translate .2s; }
.chip:hover { background: rgba(251,250,248,.26); translate: 0 -1px; }

/* the bubble off the laptop */
.tether { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.tether path { fill: none; stroke: rgba(251,250,248,.75); stroke-width: 1.5; stroke-dasharray: 4 5; animation: flow 1.2s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -18; } }
.tether circle { fill: var(--paper); filter: drop-shadow(0 0 6px rgba(255,255,255,.9)); }
.bubble { position: absolute; left: 0; top: 0; padding: 14px 16px 16px; border-radius: 20px; min-width: 220px; }
.bubble p { font-size: 13px; color: var(--soft); margin-bottom: 10px; }
.bubble__opts { display: grid; gap: 6px; }
.bubble__opts a { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 9px 12px; border-radius: 12px; color: var(--paper); text-decoration: none; font-size: 15px; background: rgba(251,250,248,.08); transition: background .2s; }
.bubble__opts a::after { content: ""; width: 7px; height: 7px; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; rotate: 45deg; }
.bubble__opts a:first-child { background: rgba(251,250,248,.9); color: var(--blue); }
.bubble__opts a:hover { background: rgba(251,250,248,.24); }
.bubble__opts a:first-child:hover { background: #fff; }

/* form */
.form { width: min(520px, calc(100vw - 32px)); padding: 34px 32px 28px; border-radius: 28px; margin: auto; color: var(--paper); }
.form::backdrop { background: rgba(20,13,9,.45); backdrop-filter: blur(4px); }
.form[open] { animation: rise .35s ease-out; }
@keyframes rise { from { opacity: 0; translate: 0 14px; } }
.form h2 { font-weight: 500; font-size: 40px; line-height: 1.02; letter-spacing: -.02em; }
.form__sub { margin: 10px 0 22px; color: var(--soft); font-size: 16px; }
.form__x { position: absolute; top: 14px; right: 16px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(251,250,248,.15); color: var(--paper); font-size: 22px; cursor: pointer; }
.form label { display: block; font-size: 13px; color: var(--soft); margin-bottom: 14px; }
.form input, .form textarea { display: block; width: 100%; margin-top: 6px; padding: 12px 14px; border-radius: 12px; border: 1.5px solid rgba(251,250,248,.35); background: rgba(251,250,248,.1); color: var(--paper); font: inherit; font-size: 16px; resize: vertical; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--paper); background: rgba(251,250,248,.18); }
.hp { position: absolute; left: -9999px; }
.send { margin-top: 6px; padding: 13px 26px; border: 0; border-radius: 99px; background: var(--paper); color: var(--blue); font: inherit; font-size: 16px; cursor: pointer; }
.send:hover { background: #fff; }
.form__status { margin-top: 14px; font-size: 14px; color: var(--soft); min-height: 1em; }
.form__status a { color: var(--paper); }

/* the portfolio, preloaded, grows out of the laptop screen */
.pf { position: fixed; left: 0; top: 0; width: 100vw; height: 100svh; border: 0; background: #F4F4F6; transform-origin: 0 0; opacity: 0; visibility: hidden; pointer-events: none; will-change: transform, opacity; border-radius: 0; }
.pf.is-shown { visibility: visible; }
.pf.is-live { pointer-events: auto; }

/* page change */
.veil { position: fixed; inset: 0; background: #F4F4F6; opacity: 0; pointer-events: none; transition: opacity .3s ease-in; }
.veil.is-on { opacity: 1; }

@media (max-width: 860px) {
  :root { --focus-x: 77%; }
  .scrim { background: linear-gradient(0deg, rgba(20,13,9,.78) 0%, rgba(20,13,9,.45) 45%, rgba(20,13,9,0) 70%); }
  .hello { top: auto; bottom: 22px; translate: none; max-width: none; right: 20px; }
  h1 { font-size: 44px; margin: 14px 0 12px; }
  .lead { font-size: 16px; }
  .contacts { margin-top: 16px; }
  .chip { padding: 9px 15px; font-size: 14px; }
  .bubble { min-width: 190px; padding: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .tether path { animation: none; }
  .pill i { animation: none; }
}

/* optical centring: this face carries extra room above the caps, so trim the text box to cap height
   and baseline, then pad evenly. Browsers without text-box get a 2px nudge instead. */
.pill, .chip, .send, .bubble__opts a { line-height: 1; }
@supports (text-box: trim-both cap alphabetic) {
  .pill, .chip, .send, .bubble__opts a { text-box: trim-both cap alphabetic; }
  .pill { padding: 12px 18px; }
  .chip { padding: 14px 20px; }
  .send { padding: 16px 28px; }
  .bubble__opts a { padding: 12px 12px; }
}
@supports not (text-box: trim-both cap alphabetic) {
  .pill { padding: 11px 18px 8px; }
  .chip { padding: 13px 20px 10px; }
  .send { padding: 15px 28px 12px; }
  .bubble__opts a { padding: 11px 12px 8px; }
}
@media (max-width: 860px) {
  .contacts { flex-wrap: nowrap; gap: 8px; }
  .chip { font-size: 14px; }
  @supports (text-box: trim-both cap alphabetic) { .chip { padding: 13px 14px; } }
  @supports not (text-box: trim-both cap alphabetic) { .chip { padding: 12px 14px 9px; } }
}

/* ---------------------------------------------------------------- music side (gbackwithdakey) */
.glass--dark { background: rgba(14,10,24,.42); border-color: rgba(200,170,255,.28); box-shadow: 0 14px 44px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.12); }
.glass--red { background: rgba(120,10,20,.38); border-color: rgba(255,90,90,.55); box-shadow: 0 14px 44px rgba(0,0,0,.35), 0 0 30px rgba(255,40,40,.18), inset 0 1px 0 rgba(255,255,255,.14); }

/* the switch orb, next to the character */
.orb { position: absolute; left: 0; top: 0; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; padding: 0; transition: background .2s, scale .2s; }
.orb svg { width: 24px; height: 24px; fill: none; stroke: var(--paper); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
#toMusic svg { fill: #fff; stroke: none; width: 26px; height: 26px; margin: 2px 0 0 -1px; filter: drop-shadow(0 1px 2px rgba(0,0,0,.35)); }
.orb:hover { scale: 1.06; background: rgba(251,250,248,.24); }
.glass--dark.orb:hover { background: rgba(40,20,70,.6); }
.orb::after { content: ""; position: absolute; inset: -7px; border-radius: 50%; border: 1.5px solid rgba(251,250,248,.35); animation: ring 2.6s ease-out infinite; }
@keyframes ring { from { opacity: .9; scale: .9; } to { opacity: 0; scale: 1.25; } }

.ui--music { color: var(--paper); }
.scrim--music { background: linear-gradient(90deg, rgba(8,4,18,.72) 0%, rgba(8,4,18,.4) 36%, rgba(8,4,18,0) 60%); }
.handle { display: inline-block; font-size: 14px; letter-spacing: .01em; color: #D9C8FF; margin-bottom: 4px; }
.hello--music h1 { margin-top: 10px; }

.chip--yt { display: inline-flex; align-items: center; gap: 8px; border-color: rgba(255,70,70,.8); color: #FF5A52; }
.chip--yt svg { width: 20px; height: 20px; }
.chip--yt rect, .bubble--yt rect { fill: #F03A2E; }

/* red bubble tethered to the mic */
.tether--red path { stroke: rgba(255,110,100,.85); }
.tether--red circle { fill: #FF6B5E; filter: drop-shadow(0 0 7px rgba(255,60,60,.95)); }
.bubble--yt { display: block; text-decoration: none; color: var(--paper); min-width: 230px; max-width: 260px; }
.bubble--yt p { color: #FFC9C4; font-size: 12px; margin-bottom: 6px; }
.bubble--yt b { display: block; font-weight: 500; font-size: 22px; line-height: 1.1; }
.bubble--yt span { display: block; font-size: 13px; color: #FFDAD6; margin: 4px 0 12px; }
.bubble--yt em { font-style: normal; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 99px; background: rgba(255,255,255,.92); color: #E0291F; font-size: 14px; line-height: 1; }
.bubble--yt em svg { width: 18px; height: 18px; }
.bubble--yt:hover em { background: #fff; }

/* the player: dark glass take on the island player */
.player { margin-top: 26px; width: min(440px, 100%); border-radius: 28px; padding: 16px 20px 16px; }
.player__soon { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: #D9C8FF; margin-bottom: 12px; }
.player__soon::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #B38CFF; box-shadow: 0 0 10px #B38CFF; }
.player__top { display: flex; align-items: center; gap: 14px; }
.player__art { width: 58px; height: 58px; border-radius: 14px; flex: none; display: grid; place-items: center; background: radial-gradient(120% 120% at 20% 10%, #FF8FB0 0%, #B06CFF 55%, #3F2A8C 100%); box-shadow: inset 0 1px 0 rgba(255,255,255,.35); }
.player__art span { font-size: 24px; color: rgba(255,255,255,.92); }
.player__meta { flex: 1; min-width: 0; }
.player__meta b { display: block; font-weight: 500; font-size: 20px; }
.player__meta span { display: block; font-size: 13px; line-height: 1.35; color: #CFC4E6; }
.player__bars { display: flex; align-items: flex-end; gap: 3px; height: 26px; }
.player__bars i { width: 3.5px; height: 30%; border-radius: 2px; background: linear-gradient(#D7B8FF, #8F5CFF); }
.player.is-playing .player__bars i { animation: eq .9s ease-in-out infinite; }
.player__bars i:nth-child(2) { animation-delay: -.3s !important; } .player__bars i:nth-child(3) { animation-delay: -.6s !important; }
.player__bars i:nth-child(4) { animation-delay: -.15s !important; } .player__bars i:nth-child(5) { animation-delay: -.45s !important; } .player__bars i:nth-child(6) { animation-delay: -.75s !important; }
@keyframes eq { 0%,100% { height: 25%; } 50% { height: 100%; } }
.player__time { display: flex; justify-content: space-between; font-size: 12px; color: #BFB3D9; margin: 14px 0 6px; font-variant-numeric: tabular-nums; }
.player__track { height: 4px; border-radius: 4px; background: rgba(255,255,255,.14); overflow: hidden; }
.player__fill { height: 100%; width: 0; background: linear-gradient(90deg, #B38CFF, #fff); border-radius: 4px; }
.player__ctl { display: flex; justify-content: space-around; align-items: center; margin-top: 12px; }
.player__ctl button { width: 44px; height: 44px; border: 0; background: none; border-radius: 50%; cursor: pointer; display: grid; place-items: center; }
.player__ctl button:hover { background: rgba(255,255,255,.1); }
.player__ctl svg { width: 22px; height: 22px; fill: var(--paper); }
.player__play { width: 54px !important; height: 54px !important; background: rgba(255,255,255,.14) !important; }
.player .i-pause { display: none; } .player.is-playing .i-pause { display: block; } .player.is-playing .i-play { display: none; }

/* the spin between the two rooms */
.stage.is-spinning .scrim { opacity: 0; }

@media (max-width: 860px) {
  .scrim--music { background: linear-gradient(0deg, rgba(8,4,18,.85) 0%, rgba(8,4,18,.5) 50%, rgba(8,4,18,0) 72%); }
  .player { margin-top: 14px; padding: 12px 14px; border-radius: 22px; }
  .player__soon { margin-bottom: 8px; }
  .player__art { width: 46px; height: 46px; border-radius: 12px; }
  .player__time { margin: 8px 0 4px; }
  .player__ctl { margin-top: 6px; }
  .bubble--yt { min-width: 190px; max-width: 210px; }
  .bubble--yt b { font-size: 18px; }
  .orb { width: 50px; height: 50px; }
}

/* chips: fixed height, flex-centred; this face's caps sit high in the line box, so pad the top to centre the ink */
.chip { display: inline-flex !important; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 3px 22px 0 !important; line-height: 1; text-box: none !important; }
.chip svg { margin-top: -3px; }
@media (max-width: 860px) { .chip { height: 42px; padding: 3px 15px 0 !important; } }

/* music side: a soft dark gradient behind the copy so it never sinks into the bright studio */
.scrim--music { background: linear-gradient(90deg, rgba(8,4,18,.82) 0%, rgba(8,4,18,.6) 30%, rgba(8,4,18,.22) 52%, rgba(8,4,18,0) 66%) !important; }
.hello--music h1, .hello--music .lead, .hello--music .handle { text-shadow: 0 2px 18px rgba(8,4,18,.55); }
@media (max-width: 860px) {
  .scrim--music { background: linear-gradient(0deg, rgba(8,4,18,.9) 0%, rgba(8,4,18,.74) 45%, rgba(8,4,18,.58) 75%, rgba(8,4,18,.46) 100%) !important; }
}

/* both sides: a soft dark gradient behind the copy so it never sinks into the scene */
.scrim { background: linear-gradient(90deg, rgba(18,11,7,.8) 0%, rgba(18,11,7,.58) 30%, rgba(18,11,7,.2) 52%, rgba(18,11,7,0) 66%) !important; }
.hello h1, .hello .lead, .hello .svc { text-shadow: 0 2px 18px rgba(12,7,4,.5); }
@media (max-width: 860px) {
  .scrim { background: linear-gradient(0deg, rgba(18,11,7,.9) 0%, rgba(18,11,7,.74) 45%, rgba(18,11,7,.5) 75%, rgba(18,11,7,.36) 100%) !important; }
}
/* the music side keeps its own violet-black version (declared after, so it wins) */
.scrim.scrim--music { background: linear-gradient(90deg, rgba(8,4,18,.82) 0%, rgba(8,4,18,.6) 30%, rgba(8,4,18,.22) 52%, rgba(8,4,18,0) 66%) !important; }
@media (max-width: 860px) {
  .scrim.scrim--music { background: linear-gradient(0deg, rgba(8,4,18,.9) 0%, rgba(8,4,18,.74) 45%, rgba(8,4,18,.58) 75%, rgba(8,4,18,.46) 100%) !important; }
}

/* owner: one subtle left-to-right gradient across the whole page, on both sides */
.scrim { background: linear-gradient(90deg, rgba(18,11,7,.62) 0%, rgba(18,11,7,.34) 45%, rgba(18,11,7,.1) 100%) !important; }
.scrim.scrim--music { background: linear-gradient(90deg, rgba(8,4,18,.64) 0%, rgba(8,4,18,.36) 45%, rgba(8,4,18,.12) 100%) !important; }
@media (max-width: 860px) {
  .scrim { background: linear-gradient(90deg, rgba(18,11,7,.5) 0%, rgba(18,11,7,.14) 100%), linear-gradient(0deg, rgba(18,11,7,.6) 0%, rgba(18,11,7,0) 60%) !important; }
  .scrim.scrim--music { background: linear-gradient(90deg, rgba(8,4,18,.52) 0%, rgba(8,4,18,.16) 100%), linear-gradient(0deg, rgba(8,4,18,.62) 0%, rgba(8,4,18,0) 60%) !important; }
}

/* background-music toggle: small glass orb under the music note */
.orb--sound { width: 42px !important; height: 42px !important; }
.orb--sound::after { display: none; }
.orb--sound svg { width: 20px !important; height: 20px !important; fill: #fff; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; }
.orb--sound .i-off { display: none; }
.orb--sound.is-muted .i-on { display: none; }
.orb--sound.is-muted .i-off { display: block; }
.orb--sound.is-muted { opacity: .7; }

/* "Tap anywhere for sound" hint, only when the browser blocked autoplay */
.sound-hint { position: absolute; right: clamp(16px, 3vw, 40px); bottom: clamp(16px, 4vh, 36px); margin: 0; padding: 9px 16px; border-radius: 99px; font-size: 13px; line-height: 1; opacity: 0; translate: 0 6px; pointer-events: none; transition: opacity .4s, translate .4s; }
.sound-hint.is-on { opacity: 1; translate: 0 0; }
@media (max-width: 860px) { .sound-hint { bottom: auto; top: 16px; right: 16px; } }

/* entry: blurred lobby behind one glass button */
.stage { transition: filter .9s ease, scale .9s ease; }
body.is-entering .stage { filter: blur(14px) brightness(.72); scale: 1.04; }
body.is-entering .ui, body.is-entering .sound-hint { opacity: 0 !important; pointer-events: none !important; }
.enter { position: fixed; inset: 0; z-index: 40; display: grid; place-content: center; justify-items: center; gap: 16px; transition: opacity .6s ease; }
.enter.is-gone { opacity: 0; pointer-events: none; }
.enter__btn { display: inline-flex; align-items: center; gap: 12px; height: 60px; padding: 3px 34px 0; border-radius: 99px; font: inherit; font-size: 20px; line-height: 1; cursor: pointer; transition: background .2s, scale .2s; }
.enter__btn:hover { background: rgba(251,250,248,.26); scale: 1.03; }
.enter__btn i { width: 10px; height: 10px; margin-top: -3px; border-radius: 50%; background: #58D08F; box-shadow: 0 0 0 5px rgba(88,208,143,.25); animation: pulse 2.4s ease-in-out infinite; }
.enter__note { font-size: 13px; color: rgba(251,250,248,.72); margin: 0; }
@media (prefers-reduced-motion: reduce) { .stage { transition: none; } }

/* the back-to-work laptop: filled, same weight as the music note */
.orb .i-laptop { fill: #fff; stroke: none; width: 26px; height: 26px; }

/* button labels: centred by the font itself, no per-browser nudges */
.pill, .chip, .send, .bubble__opts a, .bubble--yt em, .enter__btn { font-family: "HNc", "HN", "Helvetica Neue", Helvetica, Arial, sans-serif; line-height: 1; text-box: none !important; }
.pill { padding: 0 18px !important; height: 42px; }
.chip { padding: 0 22px !important; }
.send { padding: 0 28px !important; height: 48px; }
.bubble__opts a { padding: 0 12px !important; height: 40px; }
.bubble--yt em { padding: 0 14px; height: 36px; }
.enter__btn { padding: 0 34px; }
.chip svg, .enter__btn i { margin-top: 0; }
@media (max-width: 860px) { .chip { padding: 0 15px !important; } .pill { height: 42px; } }

/* the laptop lid is the switch for the bubble */
.lid { position: absolute; padding: 0; border: 0; background: none; border-radius: 10px; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.lid__ring { position: absolute; left: 0; top: 0; width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%; border: 1.5px solid rgba(251,250,248,.75); animation: ring 2.6s ease-out infinite; pointer-events: none; }
#ui.is-menu .lid__ring { animation: none; opacity: 0; }
#bubble { transform-origin: 100% 100%; transition: opacity .3s ease, scale .35s cubic-bezier(.2,.9,.3,1.2), visibility 0s linear 0s; }
#ui:not(.is-menu) #bubble { opacity: 0; scale: .9; visibility: hidden; pointer-events: none; transition: opacity .25s ease, scale .25s ease, visibility 0s linear .25s; }
#tetherPath { transition: opacity .3s ease; }
#ui:not(.is-menu) #tetherPath { opacity: 0; }
@media (hover: hover) { .lid:hover ~ .tether circle, .tether:has(~ .lid:hover) circle { r: 7; } }

/* the bubble's two icon choices: portfolio (book) and music (headphones) */
#bubble .bubble__opts { display: flex; gap: 12px; }
#bubble .opt-ic { width: 76px; height: 76px; padding: 0 !important; display: grid; place-items: center; border: 0; border-radius: 18px; background: rgba(251,250,248,.12); color: var(--paper); cursor: pointer; transition: background .2s, scale .2s; }
#bubble .opt-ic::after { content: none; }
#bubble .opt-ic:first-child { background: rgba(251,250,248,.92); color: var(--blue); }
#bubble .opt-ic:hover { background: rgba(251,250,248,.26); scale: 1.04; }
#bubble .opt-ic:first-child:hover { background: #fff; }
#bubble .opt-ic svg { width: 36px; height: 36px; fill: currentColor; }
#bubble { min-width: 0; }
@media (max-width: 860px) { #bubble .opt-ic { width: 64px; height: 64px; } #bubble .opt-ic svg { width: 30px; height: 30px; } }

/* lobby: the note orb is gone (the headphones in the bubble do its job) */
#toMusic { display: none !important; }
/* the bubble's two choices: small glass circles, icon centred */
#bubble .bubble__opts { display: flex; gap: 10px; }
#bubble .opt-ic, #arpoBubble .opt-ic { width: 58px; height: 58px; padding: 0 !important; display: flex !important; align-items: center; justify-content: center !important; border: 1px solid rgba(251,250,248,.35); border-radius: 50%; background: rgba(251,250,248,.14); color: var(--paper); cursor: pointer; transition: background .2s, scale .2s; }
#bubble .opt-ic:first-child { background: rgba(251,250,248,.14); color: var(--paper); }
#bubble .opt-ic:hover, #arpoBubble .opt-ic:hover { background: rgba(251,250,248,.28); scale: 1.05; }
#bubble .opt-ic svg { width: 28px; height: 28px; }
.i-room { width: 36px; height: 36px; fill: none; stroke: #fff; stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; }
.i-room rect { fill: none; stroke: #fff; stroke-width: 1.2; }
.orb .i-room { width: 30px; height: 30px; fill: none; stroke: #fff; }
/* studio: Arpo's bubble, hidden until she is tapped */
.bubble--arpo { padding: 10px; border-radius: 22px; min-width: 0; transform-origin: 100% 100%; transition: opacity .3s ease, scale .35s cubic-bezier(.2,.9,.3,1.2), visibility 0s linear 0s; }
#musicUi:not(.is-arpo) .bubble--arpo { opacity: 0; scale: .9; visibility: hidden; pointer-events: none; transition: opacity .25s ease, scale .25s ease, visibility 0s linear .25s; }
.tether--arpo path { transition: opacity .3s ease; }
#musicUi:not(.is-arpo) .tether--arpo path { opacity: 0; }
#musicUi.is-arpo .lid--arpo .lid__ring { animation: none; opacity: 0; }
.tether--arpo circle { fill: #E7DDFF; filter: drop-shadow(0 0 6px rgba(200,170,255,.9)); }
@media not ((max-width: 860px) and (orientation: portrait)) { #toDesign { display: none !important; } }
@media (max-width: 860px) and (orientation: portrait) { #arpo, #arpoTether, #arpoBubble { display: none !important; } }
/* the sound toggle: bottom-right corner, quiet until touched */
#soundBtn { left: auto !important; top: auto !important; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom)); opacity: .45; transition: opacity .2s, background .2s; }
#soundBtn:hover, #soundBtn:focus-visible { opacity: 1; }

#arpo .lid__ring { left: 17%; top: 86%; }   /* ring pulses around the paw dot (1655,762 inside the 1610..1870 × 580..780 tap area) */

/* lobby Arpo: bubble hidden until she is tapped; the ring pulses on the dot at her paw */
.bubble--cat { padding: 10px; border-radius: 22px; min-width: 0; transform-origin: 50% 100%; transition: opacity .3s ease, scale .35s cubic-bezier(.2,.9,.3,1.2), visibility 0s linear 0s; }
#ui:not(.is-cat) .bubble--cat { opacity: 0; scale: .9; visibility: hidden; pointer-events: none; transition: opacity .25s ease, scale .25s ease, visibility 0s linear .25s; }
#catPath { transition: opacity .3s ease; }
#ui:not(.is-cat) #catPath { opacity: 0; }
#cat .lid__ring { left: 4.4%; top: 80%; }
#ui.is-cat #cat .lid__ring { animation: none; opacity: 0; }
#catBubble .opt-ic { width: 58px; height: 58px; padding: 0 !important; display: flex !important; align-items: center; justify-content: center !important; border: 1px solid rgba(251,250,248,.35); border-radius: 50%; background: rgba(251,250,248,.14); color: var(--paper); cursor: pointer; transition: background .2s, scale .2s; }
#catBubble .opt-ic:hover { background: rgba(251,250,248,.28); scale: 1.05; }
#catBubble .opt-ic svg { width: 28px; height: 28px; fill: currentColor; }

/* bubbles sit above the invisible tap areas (the laptop lid runs under Arpo's bubble) */
.lid { z-index: 1; }
#catBubble, #arpoBubble { z-index: 3; }
#catTether, #arpoTether { z-index: 2; }

/* the laptop's bubble: same pattern as Arpo's, hidden until the lid is tapped */
#ui:not(.is-lid) #lidBubble { opacity: 0; scale: .9; visibility: hidden; pointer-events: none; transition: opacity .25s ease, scale .25s ease, visibility 0s linear .25s; }
#lidPath { transition: opacity .3s ease; }
#ui:not(.is-lid) #lidPath { opacity: 0; }
#ui.is-lid #lid .lid__ring { animation: none; opacity: 0; }
#lidBubble { z-index: 3; }
#lidBubble .opt-ic { width: 58px; height: 58px; padding: 0 !important; display: flex !important; align-items: center; justify-content: center !important; border: 1px solid rgba(251,250,248,.35); border-radius: 50%; background: rgba(251,250,248,.14); color: var(--paper); cursor: pointer; transition: background .2s, scale .2s; }
#lidBubble .opt-ic:hover { background: rgba(251,250,248,.28); scale: 1.05; }
#lidBubble .opt-ic svg { width: 28px; height: 28px; fill: currentColor; }
.bubble--lid { padding: 10px; border-radius: 22px; min-width: 0; transform-origin: 50% 100%; transition: opacity .3s ease, scale .35s cubic-bezier(.2,.9,.3,1.2), visibility 0s linear 0s; }

/* him as the switch on both sides; Arpo is hover-only; the phone corner button is retired */
#cat, #arpo { cursor: default; }
#me .lid__ring, #meS .lid__ring { margin: -15px 0 0 -15px; }
#ui.is-cat #me .lid__ring, #musicUi.is-arpo #meS .lid__ring { animation: none; opacity: 0; }
#toDesign { display: none !important; }
@media (max-width: 860px) and (orientation: portrait) { #arpoTether, #arpoBubble { display: block !important; } #meS { display: block !important; } }
/* text, links and the player stay above the invisible tap areas */
.hello { z-index: 2; }
#micBubble { z-index: 3; }
/* the copy lets taps fall through to the room (dots, tap areas); its links, buttons and the player still catch them */
.hello { pointer-events: none; }
.ui:not(.is-hidden) .hello a, .ui:not(.is-hidden) .hello button, .ui:not(.is-hidden) .hello .player, .ui:not(.is-hidden) .hello .contacts { pointer-events: auto; }   /* only on the side that is showing */

/* the red dot on his headphones: pulses like the others; the YouTube bubble and its line wait for a tap */
.lid--mic { width: 56px; height: 56px; border-radius: 50%; z-index: 4; }
.lid--mic .lid__ring { left: 50%; top: 50%; border-color: rgba(255,120,110,.85); }
#musicUi.is-mic .lid--mic .lid__ring { animation: none; opacity: 0; }
#micBubble { transform-origin: 0 50%; transition: opacity .3s ease, scale .35s cubic-bezier(.2,.9,.3,1.2), visibility 0s linear 0s; }
#musicUi:not(.is-mic) #micBubble { opacity: 0; scale: .9; visibility: hidden; pointer-events: none; transition: opacity .25s ease, scale .25s ease, visibility 0s linear .25s; }
#micPath { transition: opacity .3s ease; }
#musicUi:not(.is-mic) #micPath { opacity: 0; }
/* the red dot, its ring and line match the YouTube logo red (#F03A2E) */
.tether--red circle { fill: #F03A2E; filter: drop-shadow(0 0 6px rgba(240,58,46,.85)); }
.tether--red path { stroke: rgba(240,58,46,.9); }
.lid--mic .lid__ring { border-color: rgba(240,58,46,.85); }
/* true YouTube red everywhere it appears: the logos, the red dot, its ring and its line */
.chip--yt rect, .bubble--yt rect { fill: #FF0000; }
.tether--red circle { fill: #FF0000; filter: drop-shadow(0 0 6px rgba(255,0,0,.8)); }
.tether--red path { stroke: #FF0000; }
.lid--mic .lid__ring { border-color: rgba(255,0,0,.85); }

/* the laptop's bubble holds two doors: the portfolio (book) and the Build-a-Brand Bible (hand, heart, star) */
#lidBubble { display: flex; gap: 10px; }
