:root {
  --scene-w: 16; --scene-h: 9;
  --cream: #f4e9d8;
  /* Accent shifts with the time of day (set on <body data-tod>) — default sunset */
  --amber: #f0b96b;
  --amber-soft: #ffd9a0;
  --amber-rgb: 240, 185, 107;
  /* Glassmorphism: a clean bright sheen, no dark inner tint */
  --glass-bg: linear-gradient(150deg, rgba(255,255,255,0.22), rgba(255,255,255,0.08));
  --glass-brd: rgba(255, 255, 255, 0.34);
  --glass-shadow: 0 10px 30px rgba(0,0,0,0.28), inset 0 1px 0 rgba(255,255,255,0.5);
  --mono: "DM Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}
body[data-tod="day"]    { --amber: #e6a93c; --amber-soft: #ffd98a; --amber-rgb: 230, 169, 60; }
body[data-tod="sunset"] { --amber: #ff8c5a; --amber-soft: #ffb892; --amber-rgb: 255, 140, 90; }
body[data-tod="night"]  { --amber: #8fb0ff; --amber-soft: #c3d4ff; --amber-rgb: 143, 176, 255; }
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: #0d0b14; color: #f4e9d8;
  font-family: system-ui, sans-serif; overflow: hidden; }
#stage { position: relative; width: 100vw; height: 100vh; display: grid; place-items: center; }
/* The scene fills the entire viewport (video object-fit:cover crops to edges). */
.scene { position: relative; width: 100vw; height: 100vh; }
.scene video, .scene img { position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; user-select: none; -webkit-user-drag: none; }

/* Top-left: wordmark + socials */
.topleft { position: absolute; top: 4.5%; left: 3%; z-index: 20; }
.brand { line-height: 1; pointer-events: none; }
.brand span { display: block; margin-bottom: 5px; font-family: var(--mono);
  font-size: clamp(11px, 1vw, 14px); letter-spacing: 0.3em; text-transform: uppercase;
  color: rgba(255,255,255,0.7); text-shadow: 0 1px 6px rgba(0,0,0,0.5); }
.brand b { display: block; font-weight: 700; font-size: clamp(30px, 4vw, 52px);
  letter-spacing: 0.015em; text-transform: uppercase; color: #fff;
  text-shadow: 0 2px 14px rgba(0,0,0,0.6); }

/* Top-right stack: clock + focus timer */
.topright { position: absolute; top: 4.5%; right: 2.4%; z-index: 20;
  display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.clock-card { text-align: right; padding: 12px 18px; border-radius: 16px; background: var(--glass-bg);
  border: 1px solid var(--glass-brd); backdrop-filter: blur(24px) saturate(1.5);
  box-shadow: var(--glass-shadow); transition: border-color .6s ease; }

/* Pomodoro focus timer card (centered, prominent) */
.focus-card { text-align: center; width: clamp(165px, 15vw, 200px); padding: 13px 16px 14px;
  border-radius: 16px; background: var(--glass-bg); border: 1px solid var(--glass-brd);
  backdrop-filter: blur(24px) saturate(1.5); box-shadow: var(--glass-shadow);
  transition: border-color .6s ease; }
.focus-mode { font-weight: 600; font-size: clamp(13px, 1.3vw, 15px); color: var(--cream);
  margin-bottom: 1px; transition: color .6s ease; }
.focus-card[data-mode="break"] .focus-mode { color: var(--amber-soft); }
.focus-time { font-family: var(--mono); font-variant-numeric: tabular-nums; font-weight: 700;
  font-size: clamp(32px, 4.2vw, 44px); line-height: 1.02; color: #fff; margin: 1px 0 10px;
  transition: color .6s ease; }
.focus-card[data-mode="break"] .focus-time { color: var(--amber-soft); }
.focus-start { display: block; width: 100%; padding: 9px; border: none; border-radius: 12px;
  cursor: pointer; font: inherit; font-weight: 700; font-size: 14px; color: #18120c;
  background: var(--amber); box-shadow: 0 4px 16px rgba(var(--amber-rgb), 0.4);
  transition: background .6s ease, filter .15s ease, box-shadow .6s ease; }
.focus-start:hover { filter: brightness(1.07); }
.focus-sub { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 8px; }
.focus-reset { background: none; border: none; cursor: pointer; font: inherit; font-size: 12px;
  color: rgba(244,233,216,0.6); }
.focus-reset:hover { color: var(--cream); }
.focus-count { font-family: var(--mono); font-size: 11px; color: rgba(244,233,216,0.45); }
.clock-label { display: block; font-family: var(--mono); font-size: 10px; letter-spacing: 0.26em;
  text-transform: uppercase; color: rgba(244,233,216,0.6); margin-bottom: 3px; }
.clock { font-family: var(--mono); font-variant-numeric: tabular-nums; font-weight: 500;
  font-size: clamp(22px, 3vw, 38px); letter-spacing: 0.02em; color: var(--amber-soft);
  text-shadow: 0 0 16px rgba(var(--amber-rgb), 0.45);
  transition: color .6s ease, text-shadow .6s ease; }

.overlay { position: fixed; inset: 0; display: grid; place-items: center; z-index: 50;
  background: rgba(10, 8, 16, 0.55); backdrop-filter: blur(4px); }
.overlay[hidden] { display: none; }
.card { position: relative; max-width: min(560px, 88vw); max-height: 82vh; overflow: auto;
  padding: 28px 30px; border-radius: 14px; color: #36281c;
  background: #f3e7cf url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='40' height='40' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  box-shadow: 0 18px 50px rgba(0,0,0,0.5); }
.card h2 { margin-top: 0; }
.card a { color: #9a4a23; }
.card-close { position: absolute; top: 10px; right: 14px; border: none; background: none;
  font-size: 26px; line-height: 1; cursor: pointer; color: #6b5238; }
.card-photo { width: 110px; height: 110px; border-radius: 12px; object-fit: cover; float: right;
  margin: 0 0 10px 14px; }
.card .project { padding: 10px 0; border-top: 1px solid rgba(80,60,40,0.25); }
.card .project:first-of-type { border-top: none; }
.card .exp { padding: 14px 0; border-top: 1px solid rgba(80,60,40,0.25); }
.card .exp:first-of-type { border-top: none; padding-top: 4px; }
.card .exp h3 { margin: 0 0 2px; }
.card .exp-org { margin: 0 0 6px; opacity: .82; font-size: .92em; }
.card-logo { display: block; height: 36px; width: auto; max-width: 140px;
  object-fit: contain; margin-bottom: 8px; }
/* Sized/positioned by JS to match the scene image's cover box, so overlays
   (dots, stickers) stay locked to the artwork when the window is resized. */
.hotspots { position: absolute; top: 0; left: 0; }
.hotspot { position: absolute; padding: 0; margin: 0; border: none; cursor: pointer;
  background: transparent; border-radius: 10px; transition: box-shadow .2s, background .2s; }
.hotspot:hover, .hotspot:focus-visible {
  background: radial-gradient(ellipse at center, rgba(255,225,150,0.28), transparent 70%);
  box-shadow: 0 0 22px rgba(255,210,120,0.5); outline: none; }
.contacts { display: flex; gap: 8px; align-items: center; margin-top: 14px; }
/* "Portfolio" as a subtle text link under the name (not a button). */
.portfolio-link { display: inline-flex; align-items: center; gap: 5px; margin: 9px 0 0;
  padding: 0 0 2px; border: none; border-bottom: 1px solid rgba(var(--amber-rgb), 0.55);
  background: none; cursor: pointer; font-family: var(--mono); font-size: clamp(11px, 1vw, 14px);
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--amber-soft);
  text-shadow: 0 1px 6px rgba(0,0,0,0.5);
  transition: color .6s ease, border-color .6s ease, gap .2s ease;
  animation: pf-hint 2.8s ease-in-out infinite; }
.portfolio-link::after { content: "→"; font-size: 1.05em; transition: transform .2s ease; }
.portfolio-link:hover, .portfolio-link:focus-visible { outline: none; gap: 9px; animation: none;
  border-color: var(--amber-soft); }
.portfolio-link:hover::after, .portfolio-link:focus-visible::after { transform: translateX(3px); }
@keyframes pf-hint { 0%, 100% { opacity: 0.78; }
  50% { opacity: 1; text-shadow: 0 0 11px rgba(var(--amber-rgb), 0.65); } }
.contact { width: clamp(36px, 3vw, 46px); height: clamp(36px, 3vw, 46px); display: grid;
  place-items: center; border-radius: 14px; color: var(--amber-soft); text-decoration: none;
  background: var(--glass-bg); border: 1px solid rgba(var(--amber-rgb), 0.30);
  backdrop-filter: blur(20px) saturate(1.5); box-shadow: var(--glass-shadow);
  transition: transform .2s ease, box-shadow .4s ease, color .6s ease, border-color .6s ease; }
.contact svg { width: 46%; height: 46%; }
.contact:hover, .contact:focus-visible { color: var(--amber-soft);
  border-color: rgba(var(--amber-rgb),0.55); outline: none;
  box-shadow: var(--glass-shadow), 0 0 16px rgba(var(--amber-rgb),0.4); }
/* Laptop-lid stickers: logo images that look "stuck on" the lid.
   Each sticker's placement is driven entirely by 4 numbers in js/hotspots.js
   (left, top, width, rotate). The image keeps its aspect ratio (height auto). */
.hotspot.sticker-hotspot { height: auto; background: none; border-radius: 0; }
.hotspot.sticker-hotspot:hover, .hotspot.sticker-hotspot:focus-visible {
  background: none; box-shadow: none; }
.hotspot .sticker-img { display: block; width: 100%; height: auto;
  transform: perspective(600px) rotateX(var(--tiltx, 0deg)) rotateY(var(--tilty, 0deg)) rotate(var(--rot, 0deg));
  filter: drop-shadow(0 2px 3px rgba(0,0,0,0.55)); transition: transform .2s; pointer-events: none; }
.hotspot.sticker-hotspot:hover .sticker-img,
.hotspot.sticker-hotspot:focus-visible .sticker-img {
  transform: perspective(600px) rotateX(var(--tiltx, 0deg)) rotateY(var(--tilty, 0deg)) rotate(var(--rot, 0deg)) scale(1.08); }
/* Sticker drag-to-place editor (#edit) */
.sticker-editing { outline: 2px dashed rgba(255,210,120,0.95); outline-offset: 2px;
  cursor: move; z-index: 60; }
.sticker-hud { position: fixed; top: 12px; left: 12px; z-index: 200; max-width: 320px;
  font-family: var(--mono); font-size: 12px; line-height: 1.55; color: #fff;
  background: rgba(10,8,16,0.82); border: 1px solid var(--glass-brd); border-radius: 10px;
  padding: 10px 12px; backdrop-filter: blur(8px); }
.sticker-hud-vals { color: var(--amber-soft); }
.sticker-hud-tip { color: rgba(244,233,216,0.6); font-size: 11px; }

/* show hotspot boxes during calibration: add class "debug" to #hotspots */
.hotspots.debug .hotspot { background: rgba(255,0,0,0.18); outline: 1px solid red; }

/* ===== Music widget (bottom-left): compact bar + hover-expand menu ===== */
.music { position: absolute; left: 2.4%; bottom: 5%; z-index: 20; }
/* forgiving hover bridge so the gap to the menu doesn't drop the hover */
.music::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 16px; }

/* compact bar */
.player { display: flex; align-items: center; gap: 12px; padding: 8px 16px 8px 8px;
  border-radius: 20px; color: var(--cream); background: var(--glass-bg);
  border: 1px solid var(--glass-brd); backdrop-filter: blur(24px) saturate(1.5);
  box-shadow: var(--glass-shadow); }
.mw-art { position: relative; flex: none; width: 48px; height: 48px; border: none; padding: 0;
  border-radius: 14px; overflow: hidden; cursor: pointer; background: none; }
.mw-disc { position: absolute; inset: 0; border-radius: 14px;
  background: linear-gradient(135deg, rgba(var(--amber-rgb),0.55), rgba(var(--amber-rgb),0.12)),
    repeating-radial-gradient(circle at 50%, #1b1410 0 1px, #2a201a 1px 3px); }
.mw-cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 14px; }
.music.is-playing .mw-disc { animation: spin 6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.mw-play { position: absolute; inset: 0; display: grid; place-items: center; color: #fff;
  background: rgba(0,0,0,0.30); opacity: 0; transition: opacity .15s; }
.mw-art:hover .mw-play, .music:not(.is-playing) .mw-play { opacity: 1; }
.mw-play svg { width: 20px; height: 20px; }
.mw-meta { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.mw-title { font-family: var(--mono); font-size: 13px; letter-spacing: .02em; color: var(--cream);
  max-width: 170px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mw-artist { font-family: var(--mono); font-size: 10px; letter-spacing: .04em;
  color: rgba(244,233,216,0.55); max-width: 170px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mw-viz { display: block; width: 160px; height: 22px; margin-top: 3px; }

/* hover-expand menu (above the bar) */
.mw-menu { position: absolute; left: 0; bottom: calc(100% + 10px); width: 320px; max-height: 62vh;
  overflow: auto; padding: 16px; border-radius: 18px; color: var(--cream);
  background: var(--glass-bg); border: 1px solid var(--glass-brd);
  backdrop-filter: blur(28px) saturate(1.6); box-shadow: var(--glass-shadow);
  opacity: 0; transform: translateY(10px); pointer-events: none;
  transition: opacity .25s ease, transform .25s ease; }
.music:hover .mw-menu, .music:focus-within .mw-menu { opacity: 1; transform: translateY(0); pointer-events: auto; }
.mm-head { font-family: var(--mono); font-size: 10px; letter-spacing: .22em; text-transform: uppercase;
  color: rgba(244,233,216,0.5); margin: 2px 0 8px; }
.mm-section + .mm-section { margin-top: 14px; }
.mm-list { list-style: none; margin: 0 0 4px; padding: 0; display: flex; flex-direction: column; gap: 3px; }
.mm-track { width: 100%; display: flex; align-items: center; gap: 10px; padding: 9px 11px; border: none;
  border-radius: 11px; background: rgba(255,255,255,0.05); color: var(--cream); cursor: pointer;
  font: inherit; font-size: 13px; text-align: left; transition: background .15s; }
.mm-track:hover { background: rgba(255,255,255,0.12); }
.mm-track.is-current { background: rgba(var(--amber-rgb),0.22); color: var(--amber-soft); }
.mm-ico { color: var(--amber); width: 14px; text-align: center; flex: none; }
.mm-tname { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mm-tart { margin-left: auto; font-size: 11px; color: rgba(244,233,216,0.45); }
.mm-note { font-size: 12px; color: rgba(244,233,216,0.55); margin: 4px 0; }
.mm-subhead { font-size: 12px; color: rgba(244,233,216,0.7); margin-bottom: 6px; display: flex; gap: 8px; }
.mm-loading { color: rgba(244,233,216,0.4); }
.mm-login { width: 100%; padding: 10px; border: none; border-radius: 12px; cursor: pointer;
  font: inherit; font-weight: 600; font-size: 13px; color: #18120c; background: var(--amber);
  margin-bottom: 4px; transition: filter .15s, background .6s; }
.mm-login:hover { filter: brightness(1.08); }
.mm-svc + .mm-svc { margin-top: 8px; }
.mm-field { display: flex; gap: 6px; margin-bottom: 6px; }
.mm-field .mm-sp-url { flex: 1; min-width: 0; padding: 8px 10px; border-radius: 10px; font: inherit;
  font-size: 12px; color: #fff; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.14); }
.mm-field .mm-sp-url::placeholder { color: rgba(244,233,216,0.4); }
.mm-mini { padding: 8px 13px; border: none; border-radius: 10px; cursor: pointer; font: inherit;
  font-weight: 600; font-size: 12px; color: #18120c; background: var(--amber); transition: filter .15s, background .6s; }
.mm-mini:hover { filter: brightness(1.08); }
.mm-embed { margin-top: 8px; }
.mm-embed iframe { display: block; width: 100%; }
/* floating now-playing carousel: art centered, skip arrows flanking */
.mm-carousel { display: flex; align-items: center; justify-content: center; gap: 16px; margin: 2px 0 10px; }
.mm-arrow { width: 40px; height: 40px; flex: none; border: 1px solid var(--glass-brd); border-radius: 50%;
  cursor: pointer; display: grid; place-items: center; color: var(--cream); background: var(--glass-bg);
  backdrop-filter: blur(20px) saturate(1.4); box-shadow: var(--glass-shadow);
  transition: color .15s, transform .15s; }
.mm-arrow svg { width: 18px; height: 18px; }
.mm-arrow:hover { color: var(--amber-soft); transform: scale(1.06); }
.mm-arrow:active { transform: scale(0.94); }
.mm-cover { position: relative; width: 132px; height: 132px; flex: none; border: 1px solid var(--glass-brd);
  border-radius: 18px; overflow: hidden; cursor: pointer; padding: 0; background: none; box-shadow: var(--glass-shadow); }
.mm-cover-disc { position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(var(--amber-rgb),0.5), rgba(var(--amber-rgb),0.12)),
    repeating-radial-gradient(circle at 50%, #1b1410 0 2px, #2a201a 2px 5px); }
.mw-menu.is-playing .mm-cover-disc { animation: spin 8s linear infinite; }
.mm-cover-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mm-cover-play { position: absolute; inset: 0; display: grid; place-items: center; color: #fff;
  background: rgba(0,0,0,0.28); opacity: 0; transition: opacity .15s; }
.mm-cover:hover .mm-cover-play, .mw-menu:not(.is-playing) .mm-cover-play { opacity: 1; }
.mm-cover-play svg { width: 30px; height: 30px; }
.mm-now { text-align: center; margin-bottom: 14px; }
.mm-now-title { font-family: var(--mono); font-size: 14px; color: var(--cream);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mm-now-artist { font-family: var(--mono); font-size: 11px; color: rgba(244,233,216,0.55); }

.mm-foot { display: flex; align-items: center; gap: 8px; margin-top: 14px; padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.1); }
.mm-vol-ico { color: rgba(244,233,216,0.55); font-size: 13px; }
.mm-vol { flex: 1; height: 3px; accent-color: var(--amber); }
.mm-yt-wrap { margin-top: 12px; }
.mm-yt-player { width: 100%; border-radius: 12px; overflow: hidden; }

/* time-of-day switcher (bottom-right) — segmented slider with a sliding thumb */
.scene-switch { position: absolute; bottom: 7%; right: 2.4%; z-index: 20; user-select: none; }
.ss-track { position: relative; display: flex; gap: 4px; padding: 5px; border-radius: 16px;
  background: var(--glass-bg); border: 1px solid var(--glass-brd);
  backdrop-filter: blur(24px) saturate(1.5); box-shadow: var(--glass-shadow);
  transition: border-color .6s; }
.ss-thumb { position: absolute; top: 5px; left: 0; width: 36px; height: 36px; border-radius: 11px;
  background: rgba(var(--amber-rgb), 0.92); box-shadow: 0 3px 12px rgba(var(--amber-rgb), 0.5);
  transition: transform .34s cubic-bezier(.34,1.5,.5,1), background .6s ease, box-shadow .6s ease; }
.ss-btn { position: relative; z-index: 1; width: 36px; height: 36px; border: none; cursor: pointer;
  border-radius: 11px; background: transparent; color: rgba(244,233,216,0.72);
  display: grid; place-items: center; transition: color .25s; }
.ss-btn .ss-ic { width: 18px; height: 18px; display: block; pointer-events: none; }
.ss-btn:hover { color: var(--amber-soft); }
.ss-btn.is-active { color: #18120c; }
.ss-label { position: absolute; top: calc(100% + 8px); left: 0; transform: translateX(-50%);
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--amber-soft); white-space: nowrap; text-shadow: 0 1px 6px rgba(0,0,0,0.55);
  pointer-events: none; transition: color .6s, left .34s cubic-bezier(.34,1.5,.5,1); }
.legal { position: absolute; bottom: 6px; left: 50%; transform: translateX(-50%); z-index: 20;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; color: rgba(244,233,216,0.4);
  text-shadow: 0 1px 4px rgba(0,0,0,0.6); }
.legal a { color: inherit; text-decoration: none; }
.legal a:hover { color: var(--amber-soft); text-decoration: underline; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.hotspot:focus-visible, .contacts a:focus-visible, .mw-art:focus-visible,
.mm-arrow:focus-visible, .mm-cover:focus-visible, .mm-login:focus-visible, .ss-btn:focus-visible,
.dot:focus-visible, .card-close:focus-visible {
  outline: 2px solid #ffd27a; outline-offset: 2px; border-radius: 8px; }

/* Pulsing beacon dots (About / Projects). The cursor-proximity reaction is a
   smooth ENTER/LEAVE state (.is-near) — toggled with hysteresis in JS — so the
   dot grows once when approached instead of jittering pixel-by-pixel. */
.dot { position: absolute; transform: translate(-50%, -50%); width: 56px; height: 56px;
  padding: 0; border: none; background: none; cursor: pointer;
  transition: width .4s cubic-bezier(.34,1.4,.64,1), height .4s cubic-bezier(.34,1.4,.64,1); }
.dot.is-near, .dot:focus-visible { width: 92px; height: 92px; }
.dot-core, .dot-pulse { position: absolute; top: 50%; left: 50%; border-radius: 50%; }
.dot-core { width: 22px; height: 22px; margin: -11px 0 0 -11px;
  background: radial-gradient(circle at 35% 30%, rgba(255,214,160,0.95), rgba(222,162,104,0.85));
  box-shadow: 0 0 9px rgba(228,172,112,0.5), 0 0 2px rgba(0,0,0,0.85);
  transition: transform .4s cubic-bezier(.34,1.6,.5,1), box-shadow .35s; }
.dot.is-near .dot-core, .dot:focus-visible .dot-core { transform: scale(1.7);
  box-shadow: 0 0 20px rgba(240,196,140,0.75), 0 0 3px rgba(0,0,0,0.85); }
.dot-pulse { width: 22px; height: 22px; margin: -11px 0 0 -11px;
  background: rgba(228,172,112,0.30); animation: dot-pulse 2.6s ease-out infinite; }
.dot.is-near .dot-pulse { animation-duration: 1.6s; background: rgba(240,196,140,0.4); }
@keyframes dot-pulse { 0% { transform: scale(1); opacity: .55; } 70% { opacity: .12; }
  100% { transform: scale(3.6); opacity: 0; } }
.dot-label { position: absolute; left: 50%; bottom: calc(50% + 22px);
  transform: translate(-50%, 8px) scale(.96); white-space: nowrap; pointer-events: none;
  font-family: var(--mono); font-size: 13px; letter-spacing: .04em; color: var(--cream);
  padding: 5px 11px; border-radius: 10px; background: var(--glass-bg);
  border: 1px solid var(--glass-brd); backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: var(--glass-shadow); opacity: 0;
  transition: opacity .3s ease, transform .35s cubic-bezier(.34,1.5,.6,1); }
.dot.is-near .dot-label, .dot:hover .dot-label, .dot:focus-visible .dot-label {
  opacity: 1; transform: translate(-50%, 0) scale(1); }
/* "Portfolio" chip attention pulse — draws the eye to the beacon dots. */
.dot.attention .dot-core { animation: dot-attn 0.75s ease-out 3; }
.dot.attention .dot-label { opacity: 1; transform: translate(-50%, 0) scale(1); }
@keyframes dot-attn {
  0% { transform: scale(1); box-shadow: 0 0 9px rgba(var(--amber-rgb),0.5); }
  40% { transform: scale(2.3); box-shadow: 0 0 26px rgba(var(--amber-rgb),0.85); }
  100% { transform: scale(1); box-shadow: 0 0 9px rgba(var(--amber-rgb),0.5); } }

@media (prefers-reduced-motion: reduce) {
  .dot-pulse { animation: none; }
  .dot.attention .dot-core { animation: none; }
  .portfolio-link { animation: none; }
  .dot, .dot-core, .dot-label { transition: none; } }

