/* /meet: Naomi in the middle, her industries arched over her head as thought bubbles.
   Built on help.css (colors, buttons, header). No background video: just her and the bubbles. */
body.meet-page {
  min-height: 100vh;
  background:
    radial-gradient(ellipse 70% 55% at 50% 78%, rgba(95, 211, 196, .16), transparent 70%),
    radial-gradient(ellipse 90% 60% at 50% 0%, rgba(16, 41, 47, .9), transparent 70%),
    var(--bg);
  overflow-x: hidden;
}
.meet { max-width: 1400px; margin: 0 auto; padding: 8px 16px 20px; text-align: center; }
.meet .intro h1 { font-size: clamp(28px, 3.4vw, 44px); margin: 8px 0 0; }
.small-link { color: var(--muted); text-decoration: none; font-size: 14px; }
.small-link:hover { color: var(--accent); }

/* Not .stage: help.css already styles that name (a tall centered box), which stretched this one. */
.meet-stage { position: relative; height: var(--stage-h, 640px); margin: 4px auto 0; }
.threads { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.threads line { stroke: rgba(95, 211, 196, .14); stroke-width: 1.2; transition: stroke .25s ease, stroke-width .25s ease; }
.threads line.lit { stroke: rgba(95, 211, 196, .85); stroke-width: 2; }

/* A bubble: the industry's picture in a circle, its name underneath. Each floats on its own beat. */
.bubble {
  position: absolute; left: 0; top: 0;
  width: var(--b, 96px); height: var(--b, 96px);
  margin: calc(var(--b, 96px) / -2) 0 0 calc(var(--b, 96px) / -2);
  border-radius: 50%;
  text-decoration: none; color: var(--text);
  animation: float var(--dur, 6s) ease-in-out var(--delay, 0s) infinite alternate;
  outline: none;
}
.bubble .orb {
  position: absolute; inset: 0; border-radius: 50%;
  /* --img lists the new picture first and the video still under it, for until the new one exists */
  background: var(--panel) center / cover no-repeat; background-image: var(--img);
  border: 2px solid rgba(95, 211, 196, .35);
  box-shadow: 0 0 0 6px rgba(95, 211, 196, .05), 0 10px 30px rgba(0, 0, 0, .35);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.bubble .orb::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, .22), transparent 45%), linear-gradient(180deg, transparent 40%, rgba(11, 31, 36, .55)); }
.bubble .name {
  position: absolute; left: 50%; top: calc(100% + 6px); transform: translateX(-50%);
  width: max-content; max-width: calc(var(--b, 96px) + 26px); text-align: center; line-height: 1.15;
  font-size: var(--fs, 13px); font-weight: 700; letter-spacing: .01em;
  color: var(--text); text-shadow: 0 1px 6px rgba(0, 0, 0, .7);
}
.bubble:hover .orb, .bubble:focus-visible .orb, .bubble.on .orb {
  transform: scale(1.14); border-color: var(--accent);
  box-shadow: 0 0 0 8px rgba(95, 211, 196, .18), 0 0 34px rgba(95, 211, 196, .55);
}
.bubble:hover .name, .bubble:focus-visible .name, .bubble.on .name { color: var(--accent); }
.bubble.picked .orb { animation: pop .6s ease-out forwards; }
@keyframes float { from { translate: 0 -5px; } to { translate: 0 6px; } }
@keyframes pop { 40% { transform: scale(1.3); } 100% { transform: scale(1.18); box-shadow: 0 0 0 14px rgba(95, 211, 196, .0), 0 0 60px rgba(95, 211, 196, .8); } }

/* Naomi, bottom middle. Her face turns toward the cursor (gaze stills come later). */
.naomi { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); width: min(92vw, 420px); }
.face {
  width: var(--n, 210px); height: var(--n, 210px); margin: 0 auto;
  border-radius: 50%; overflow: hidden;
  border: 3px solid var(--accent);
  box-shadow: 0 0 0 10px rgba(95, 211, 196, .10), 0 0 70px rgba(95, 211, 196, .35);
  transition: transform .18s ease-out;
  will-change: transform;
}
.face video { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; display: block; transform: scale(1.35); transform-origin: 50% 25%; }
/* Naomi with no background (naomi/cutout.js): no circle, no border. --n stays the size of her
   head, where the threads meet; the canvas with all of her is bigger, centered on her face, and
   runs down to the bottom of the page. The bubbles float in front of her. */
.naomi { z-index: 1; }
.bubble { z-index: 2; }
.meet .actions { position: relative; z-index: 2; }
.meet .actions .btn.ghost { background: rgba(11, 31, 36, .78); backdrop-filter: blur(6px); }
.meet:has(.cutout) { overflow: clip; } /* her body ends at the page bottom, no scrollbar */
.face.cutout, .face:has(.cutout) { position: relative; border: 0; border-radius: 0; overflow: visible; box-shadow: none; background: none; }
.cutout > video:not(.selfie) { opacity: 0 !important; }
.cutout > canvas.cut {
  position: absolute; z-index: -1; left: 50%; top: calc(var(--n, 210px) * .5);
  width: calc(var(--n, 210px) * var(--cut-k, 3.4)); aspect-ratio: 16 / 9; height: auto;
  transform: translate(-50%, calc(var(--head-y, 30%) * -1)); pointer-events: none;
  /* Her video ends at the top of her hair: fade that edge so it never reads as a hard cut. */
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 10%); mask-image: linear-gradient(to bottom, transparent 0, #000 10%);
}
.naomi .says { position: relative; z-index: 1; text-shadow: 0 1px 3px rgba(0, 0, 0, .9), 0 0 14px rgba(0, 0, 0, .8); }

.says { margin: 10px auto 0; min-height: 2.6em; color: var(--text); font-size: 17px; max-width: 400px; }
.says b { color: var(--accent); }

.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 6px; }

/* The rollover: hovering a bubble shows that industry big, almost full page. It never takes the
   pointer, so moving to the next bubble swaps it; leaving the bubbles hides it. */
.peek {
  position: fixed; z-index: 30; left: 50%; top: 50%; width: min(78vw, 1180px); height: min(76vh, 760px);
  transform: translate(-50%, -50%) scale(.96); opacity: 0; pointer-events: none;
  border-radius: 28px; overflow: hidden; background: var(--panel);
  border: 2px solid rgba(95, 211, 196, .55);
  box-shadow: 0 30px 120px rgba(0, 0, 0, .65), 0 0 60px rgba(95, 211, 196, .25);
  transition: opacity .18s ease, transform .18s ease;
}
.peek.on { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.peek-img { position: absolute; inset: 0; background: var(--panel) center / cover no-repeat; background-image: var(--img); }
.peek-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 31, 36, 0) 35%, rgba(11, 31, 36, .55) 62%, rgba(11, 31, 36, .95)); }
.peek-text { position: absolute; left: 0; right: 0; bottom: 0; padding: 32px 44px 36px; text-align: left; }
.peek-text h2 { margin: 12px 0 8px; font-size: clamp(30px, 3.4vw, 52px); }
.peek-text p { margin: 0 0 14px; max-width: 760px; font-size: clamp(16px, 1.3vw, 21px); color: var(--text); }
.peek-go { color: var(--accent); font-weight: 700; font-size: 17px; }
.btn.big { font-size: 18px; padding: 16px 26px; }
.btn.ghost { background: transparent; color: var(--accent); border: 1px solid var(--accent); }

@media (max-width: 640px) {
  .meet { padding-top: 4px; }
  .says { font-size: 15px; }
  .actions .btn { width: 100%; text-align: center; }
}
/* Short laptop screens: a slimmer heading, so the bubbles keep their size and it all still fits. */
@media (min-width: 641px) and (max-height: 760px) {
  .meet { padding-top: 2px; padding-bottom: 8px; }
  .meet .intro .chip { display: none; }
  .meet .intro h1 { font-size: clamp(24px, 2.6vw, 34px); margin-top: 4px; }
  .says { margin-top: 6px; min-height: 1.6em; font-size: 15px; }
  .btn.big { font-size: 16px; padding: 12px 22px; }
}
@media (hover: none) { .peek { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .peek { transition: none; }
  .bubble { animation: none; }
  .face, .bubble .orb { transition: none; }
}
/* Phones (820 px and narrower, Lamar Nov 9): the bubbles (industries on /meet, goals on an industry
   page) are one row you swipe sideways at the top, and Naomi is big under them (meet.js phoneLayout).
   No rings, no threads, no empty space. Computers keep the rings above. */
@media (max-width: 820px) {
  .meet { padding: 0 0 calc(16px + env(safe-area-inset-bottom)); min-height: calc(100vh - 56px); min-height: calc(100dvh - 56px); }
  .meet .intro { padding: 0 16px; }
  .meet .intro .chip { display: none; }
  .meet .intro h1 { font-size: 26px; line-height: 1.15; margin: 6px 0 0; }
  .meet-stage.m-row { height: auto; display: flex; flex-direction: column; align-items: stretch; margin: 8px 0 0; }
  .m-row .threads { display: none; }
  .m-row .bubbles { position: relative; z-index: 2; display: flex; gap: 28px; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory;
    padding: 12px 22px 44px; scroll-padding-inline: 22px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .m-row .bubbles::-webkit-scrollbar { display: none; }
  .m-row .bubble { position: relative; flex: none; margin: 0; transform: none !important; scroll-snap-align: start; }
  .m-row .bubble .name { max-width: calc(var(--b, 64px) + 24px); }
  .m-row .naomi { position: relative; left: auto; bottom: auto; transform: none; width: 100%; margin: 22px auto 0; }
  .m-row .says { font-size: 15px; padding: 0 16px; }
  .meet .actions { padding: 0 16px; }
}
