/* ==========================================================================
   Venn variants (Aurora, Orbit, Tiles). One is chosen at random per session.
   ========================================================================== */
.vis { position: relative; width: 100%; aspect-ratio: 1; }
.venn-v { display: none; }
[data-venn="aurora"] .venn-v.v-aur,
[data-venn="orbit"]  .venn-v.v-orb,
[data-venn="tiles"]  .venn-v.v-tile { display: block; }
.venn-v { transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .6s var(--ease); }
[data-key] { cursor: pointer; }
.center-pill {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 3;
  display: grid; justify-items: center; padding: 9px 14px; border-radius: 14px; pointer-events: none;
  font-size: 14px; font-weight: 600; line-height: 1.2; letter-spacing: -.01em; white-space: nowrap;
  background: color-mix(in srgb, var(--card) 72%, transparent);
  -webkit-backdrop-filter: blur(16px) saturate(180%); backdrop-filter: blur(16px) saturate(180%);
  box-shadow: var(--shadow);
}
[data-key="eng"]  { --c: var(--eng); }
[data-key="biz"]  { --c: var(--biz); }
[data-key="lead"] { --c: var(--lead); }
[data-key="prod"] { --c: var(--prod); }


/* ================= 1 · Aurora: light mixing ================= */
.aur .blob {
  position: absolute; width: 64%; height: 64%; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--c) 85%, transparent) 0%, color-mix(in srgb, var(--c) 38%, transparent) 42%, transparent 70%);
  filter: blur(6px); mix-blend-mode: var(--blend);
  transition: transform .8s var(--spring), opacity .6s var(--ease);
  animation: aur-drift 9s ease-in-out infinite;
}
.aur .blob[data-key="eng"]  { top: 2%;    left: 2%;  --dx: -6px; --dy: -6px; }
.aur .blob[data-key="biz"]  { top: 2%;    right: 2%; --dx: 6px;  --dy: -6px; animation-delay: -2.2s; }
.aur .blob[data-key="lead"] { bottom: 2%; left: 2%;  --dx: -6px; --dy: 6px;  animation-delay: -4.4s; }
.aur .blob[data-key="prod"] { bottom: 2%; right: 2%; --dx: 6px;  --dy: 6px;  animation-delay: -6.6s; }
.aur .blob::after {
  content: ""; position: absolute; inset: 14%; border-radius: 50%; border: 2px solid var(--c); opacity: 0;
}
.aur .blob.on::after { animation: aur-ripple 1.6s var(--ease) infinite; }
@keyframes aur-drift { 50% { translate: var(--dx) var(--dy); } }
@keyframes aur-ripple { 0% { transform: scale(.6); opacity: .7; } 100% { transform: scale(1.25); opacity: 0; } }
.v-aur[data-active] .blob { opacity: .22; transform: scale(.88); }
.v-aur[data-active] .blob.on { opacity: 1; transform: scale(1.22); z-index: 2; }
.aur .lbl {
  position: absolute; z-index: 4; font-size: clamp(15px, 3.6vw, 19px); font-weight: 600; letter-spacing: -.02em;
  padding: 4px 8px; border: 0; background: none; color: var(--ink); transition: color .4s, transform .5s var(--spring), opacity .4s;
}
.aur .lbl[data-key="eng"]  { top: 16%; left: 8%; }
.aur .lbl[data-key="biz"]  { top: 16%; right: 8%; }
.aur .lbl[data-key="lead"] { bottom: 16%; left: 8%; }
.aur .lbl[data-key="prod"] { bottom: 16%; right: 8%; }
.v-aur[data-active] .lbl { opacity: .4; }
.v-aur[data-active] .lbl.on { opacity: 1; color: var(--c); transform: scale(1.12); }
.aur .center-pill { box-shadow: 0 0 0 1px var(--line), 0 0 60px color-mix(in srgb, var(--ink) 18%, transparent); }

/* ================= 2 · Orbit: disciplines circle the core ================= */
.orb-track { position: absolute; inset: 9%; border-radius: 50%; border: 1px dashed color-mix(in srgb, var(--ink-3) 55%, transparent); }
.orb-core {
  position: absolute; left: 50%; top: 50%; width: 40%; aspect-ratio: 1; transform: translate(-50%, -50%); z-index: 2;
  display: grid; place-content: center; text-align: center; border-radius: 50%; pointer-events: none;
  font-size: clamp(13px, 3.3vw, 16px); font-weight: 700; line-height: 1.2; letter-spacing: -.015em;
  border: 2px solid transparent;
  background: linear-gradient(var(--card), var(--card)) padding-box,
              conic-gradient(from var(--rot, 0deg), var(--eng), var(--biz), var(--prod), var(--lead), var(--eng)) border-box;
  box-shadow: 0 0 50px color-mix(in srgb, var(--lead) 22%, transparent);
  animation: orb-hue 8s linear infinite;
}
@property --rot { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes orb-hue { to { --rot: 360deg; } }
.v-orb[data-active] .orb-core { box-shadow: 0 0 60px color-mix(in srgb, var(--accent, var(--lead)) 45%, transparent); }
.v-orb[data-active="eng"]  { --accent: var(--eng); }
.v-orb[data-active="biz"]  { --accent: var(--biz); }
.v-orb[data-active="lead"] { --accent: var(--lead); }
.v-orb[data-active="prod"] { --accent: var(--prod); }
.orb { position: absolute; inset: 0; animation: spin 40s linear infinite; }
.arm { position: absolute; left: 50%; top: 50%; width: 41%; height: 0; transform-origin: 0 0; transform: rotate(var(--a)); }
.arm[data-key="eng"]  { --a: -135deg; }
.arm[data-key="biz"]  { --a: -45deg; }
.arm[data-key="prod"] { --a: 45deg; }
.arm[data-key="lead"] { --a: 135deg; }
.spoke {
  position: absolute; left: 22%; top: -1px; height: 2px; width: 78%; border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--c)); opacity: 0; transform: scaleX(0); transform-origin: left;
  transition: opacity .4s, transform .6s var(--ease);
}
.arm.on .spoke { opacity: 1; transform: none; }
.planet { position: absolute; right: 0; top: 0; transform: translate(50%, -50%) rotate(calc(var(--a) * -1)); }
.planet-in { display: grid; justify-items: center; gap: 7px; animation: spin 40s linear infinite reverse; }
.dot {
  width: clamp(42px, 12vw, 58px); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, color-mix(in srgb, #fff 55%, var(--c)), var(--c) 62%);
  box-shadow: 0 8px 22px -6px color-mix(in srgb, var(--c) 70%, transparent);
  transition: transform .6s var(--spring), box-shadow .5s;
}
.planet-in span { font-size: 13px; font-weight: 600; letter-spacing: -.01em; white-space: nowrap; transition: color .3s; }
.v-orb[data-active] .orb, .v-orb[data-active] .planet-in { animation-play-state: paused; }
.v-orb[data-active] .arm { opacity: .35; transition: opacity .4s; }
.v-orb[data-active] .arm.on { opacity: 1; }
.arm.on .dot { transform: scale(1.3); box-shadow: 0 0 0 6px color-mix(in srgb, var(--c) 18%, transparent), 0 0 40px var(--c); }
.arm.on .planet-in span { color: var(--c); }

/* ================= 4 · Tiles: widget grid that reshapes ================= */
.tiles {
  position: absolute; inset: 0; display: grid; gap: 8px;
  grid-template-columns: var(--c1, 1fr) var(--c2, 1fr); grid-template-rows: var(--r1, 1fr) var(--r2, 1fr);
  transition: grid-template-columns .7s var(--ease), grid-template-rows .7s var(--ease);
}
.v-tile[data-active="eng"]  .tiles { --c1: 1.8fr; --r1: 1.8fr; }
.v-tile[data-active="biz"]  .tiles { --c2: 1.8fr; --r1: 1.8fr; }
.v-tile[data-active="lead"] .tiles { --c1: 1.8fr; --r2: 1.8fr; }
.v-tile[data-active="prod"] .tiles { --c2: 1.8fr; --r2: 1.8fr; }
.tile {
  position: relative; min-width: 0; min-height: 0; overflow: hidden; border-radius: 24px; padding: 14px 16px;
  display: flex; flex-direction: column; gap: 4px;
  background: linear-gradient(145deg, color-mix(in srgb, var(--c) 42%, var(--card)), color-mix(in srgb, var(--c) 10%, var(--card)));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 30%, transparent);
  transition: opacity .5s, box-shadow .5s;
}
.tile[data-key="biz"], .tile[data-key="prod"] { align-items: flex-end; text-align: right; }
.tile[data-key="lead"], .tile[data-key="prod"] { justify-content: flex-end; }
.tile b { font-size: clamp(15px, 3.6vw, 20px); font-weight: 700; letter-spacing: -.02em; }
.tile small { max-width: 18ch; font-size: 13px; line-height: 1.3; color: var(--ink-2); opacity: 0; transform: translateY(6px); transition: opacity .4s .15s, transform .5s .15s var(--ease); }
.tile.on small { opacity: 1; transform: none; }
.v-tile[data-active] .tile { opacity: .55; }
.v-tile[data-active] .tile.on { opacity: 1; box-shadow: inset 0 0 0 2px var(--c), 0 20px 50px -20px var(--c); }
.v-tile .center-pill { left: var(--cx, 50%); top: var(--cy, 50%); transition: left .7s var(--ease), top .7s var(--ease); }
.v-tile[data-active="eng"]  .center-pill { --cx: 64%; --cy: 64%; }
.v-tile[data-active="biz"]  .center-pill { --cx: 36%; --cy: 64%; }
.v-tile[data-active="lead"] .center-pill { --cx: 64%; --cy: 36%; }
.v-tile[data-active="prod"] .center-pill { --cx: 36%; --cy: 36%; }

