/* ==========================================================================
   WIZKET — branding.css · Branding page, "Nobody → Somebody" scene + Nobody itself
   Reuses the shared scene kit from website.css (ws-stage, hero, HUD, step copy).
   js/branding.js scrubs the rig (logical 700 × 520, origin in the middle): the naming
   reel, the face + paint, orbiting brand items, the website + Instagram, the fame bits.
   Kova keeps its own palette (leaf green, cream, ember) in both themes.
   Prefixes: bd- (scene) · nb- (Nobody, used by every section on this page)
   ========================================================================== */

/* screen-reader-only text (used across the branding page) */
.mk-sr { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* --------------------------------------------------------------------------
   1. Nobody — a soft, faceless shape. --w sets its size; .nb--kova = the finished brand
   -------------------------------------------------------------------------- */
.nb { --w: 200px; position: relative; display: block; width: var(--w); height: calc(var(--w) * 1.1); }
.nb__body {
  position: absolute;
  inset: 0;
  border-radius: 50% 50% 46% 46% / 58% 58% 42% 42%;   /* chubby: a little wider at the bottom */
  background: radial-gradient(circle at 34% 28%, #d3d8db 0%, #9aa3a9 55%, #7c858b 100%);
  box-shadow: inset -10px -14px 0 rgba(0, 0, 0, 0.08), 0 30px 50px -26px rgba(0, 0, 0, 0.6);
  transform-origin: 50% 100%;
}
.nb__paint {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at 34% 28%, #4f9a72 0%, #2a6047 55%, #1f4d3a 100%);
  box-shadow: inset -10px -14px 0 rgba(0, 0, 0, 0.12);
  clip-path: inset(100% 0 0 0);
}
/* a soft glossy highlight once it has colour (the old orange blob became the sprout in the face SVG) */
.nb__paint::after { content: ""; position: absolute; left: 16%; top: 10%; width: 30%; height: 20%; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 255, 255, 0.32), transparent); rotate: -24deg; opacity: 0; transition: opacity 0.4s; }
.bd.is-painted .nb__paint::after, .nb--kova .nb__paint::after { opacity: 1; }
.nb__face { position: absolute; left: 12%; right: 12%; top: 16%; height: 56%; overflow: visible; }
.nb__eye { fill: #f3ead7; fill-opacity: 0; stroke: #15191c; stroke-width: 3.4; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
/* the cute bits: appear with the colour (.is-painted) and on every finished Kova */
.nb__extra { opacity: 0; transition: opacity 0.45s var(--ease-out); }
.bd.is-painted .nb__extra, .nb--kova .nb__extra { opacity: 1; }
.nb__pupils { fill: #15191c; }
.bd.is-painted .nb__eye, .nb--kova .nb__eye { stroke-width: 2.2; }
.nb__shine { fill: #fff; }
.nb__cheek { fill: #ff7d96; fill-opacity: 0.75; }
.nb__mouth { fill: none; stroke: #15191c; stroke-width: 3; stroke-linecap: round; }
.nb__sprout { transform-box: fill-box; transform-origin: 50% 100%; }
/* alive: slow breathing, a blink every few seconds, the sprout sways */
.bd.is-painted .nb__body, .nb--kova .nb__body { animation: nb-breathe 3.4s ease-in-out infinite; }
@keyframes nb-breathe { 0%, 100% { scale: 1 1; } 50% { scale: 1.025 0.97; } }
.bd.is-painted .nb__eye, .bd.is-painted .nb__pupils, .nb--kova .nb__eye, .nb--kova .nb__pupils { transform-box: fill-box; transform-origin: 50% 50%; animation: nb-blink 4.6s ease-in-out infinite; }
@keyframes nb-blink { 0%, 93%, 100% { transform: scaleY(1); } 96% { transform: scaleY(0.1); } }
.bd.is-painted .nb__sprout, .nb--kova .nb__sprout { animation: nb-sway 3s ease-in-out infinite; }
@keyframes nb-sway { 0%, 100% { transform: rotate(-6deg); } 50% { transform: rotate(6deg); } }
@media (prefers-reduced-motion: reduce) { .nb__body, .nb__eye, .nb__pupils, .nb__sprout { animation: none !important; } }
.nb--kova .nb__paint { clip-path: none; }
.nb--kova .nb__eye { fill-opacity: 1; stroke-dashoffset: 0; }
.nb--mini { --w: 70px; }
.nb__shadow { position: absolute; left: 10%; right: 10%; bottom: -8%; height: 12%; border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, 0.45), transparent); }

/* the empty "…" bubble while it's still nobody */
.nb__dots { position: absolute; right: -14%; top: -10%; display: flex; gap: 4px; padding: 9px 11px; border-radius: 16px 16px 16px 4px; background: #fff; box-shadow: 0 8px 20px -8px rgba(0, 0, 0, 0.5); opacity: 0; transform: scale(0.6); transform-origin: 0 100%; }
.nb__dots i { width: 6px; height: 6px; border-radius: 50%; background: #9aa3a9; }
.bd.is-hero .nb__dots { animation: nb-dots 5s ease-in-out 1.5s infinite; }
@keyframes nb-dots { 0%, 55%, 100% { opacity: 0; transform: scale(0.6); } 62%, 90% { opacity: 1; transform: none; } }

.nb__tag {
  position: absolute;
  z-index: 2;
  right: -26%;
  bottom: 6%;
  padding: 8px 12px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 22px -10px rgba(0, 0, 0, 0.55);
  font: 700 18px/1 var(--font-body);
  white-space: nowrap;
  color: #15191c;
  rotate: 8deg;
}
.nb__tag::before { content: ""; position: absolute; left: -26px; top: 50%; width: 26px; height: 1.5px; background: #9aa3a9; }
.nb__tag b { font: inherit; }
.nb__tag.is-named b { color: #1f4d3a; }
.nb__tag.is-f1 { font-family: Georgia, "Times New Roman", serif; }
.nb__tag.is-f2 { font-family: "Courier New", ui-monospace, monospace; }
.nb__tag.is-f3 { font-family: "Arial Black", Impact, sans-serif; }
.nb__tag.is-f4 { font-family: "Brush Script MT", "Segoe Script", cursive; font-size: 22px; }
.nb__tag.is-brand { background: #f3ead7; font: 400 22px/1 var(--font-display); letter-spacing: 0.06em; text-transform: uppercase; }
.nb__tag.is-brand b { color: #1f4d3a; }

.nb.is-shiver { animation: nb-shiver 0.5s linear; }
@keyframes nb-shiver { 20% { rotate: -6deg; } 40% { rotate: 5deg; } 60% { rotate: -3deg; } 80% { rotate: 2deg; } }

/* the easter egg: type "nobody" */
.nb-peek { --w: 64px; position: fixed; z-index: 9000; left: 26px; bottom: -90px; pointer-events: none; }
.nb-peek.is-on { animation: nb-peek 2.6s var(--ease-io); }
.nb__hand { position: absolute; right: -16px; top: 18%; width: 18px; height: 18px; border-radius: 50%; background: #9aa3a9; animation: nb-wave 0.4s ease-in-out infinite alternate; }
@keyframes nb-peek { 0%, 100% { transform: none; } 20%, 80% { transform: translateY(-110px); } }
@keyframes nb-wave { from { transform: translateY(0) rotate(-10deg); } to { transform: translateY(-10px) rotate(15deg); } }

/* --------------------------------------------------------------------------
   2. The stage + rig
   -------------------------------------------------------------------------- */
.bd-rig { position: absolute; z-index: 3; left: 50%; top: 50%; width: 700px; height: 520px; margin: -260px 0 0 -350px; pointer-events: none; will-change: transform; }
.bd-rig > * { position: absolute; left: 50%; top: 50%; }
.bd-nb { --w: 200px; z-index: 2; margin: -110px 0 0 -100px; pointer-events: auto; cursor: pointer; }
.bd .ws-hero__big { z-index: 1; }

.bd-dim {
  --sx: 50%; --sy: 50%; --sr: 150px;
  position: absolute;
  z-index: 2;
  inset: 0;
  background: radial-gradient(circle at var(--sx) var(--sy), rgba(255, 236, 200, 0.1) 0, transparent var(--sr), rgba(3, 5, 7, 0.82) calc(var(--sr) * 2.3));
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
}

/* 01 name */
.bd-reel {
  width: 300px;
  height: 120px;
  margin: -260px 0 0 -150px;
  overflow: hidden;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--line2);
  box-shadow: 0 20px 40px -24px rgba(0, 0, 0, 0.6);
  -webkit-mask-image: linear-gradient(transparent, #000 30%, #000 70%, transparent);
  mask-image: linear-gradient(transparent, #000 30%, #000 70%, transparent);
  opacity: 0;
  visibility: hidden;
}
.bd-reel::after { content: ""; position: absolute; left: 10px; right: 10px; top: 40px; height: 40px; border-radius: 10px; border: 2px solid var(--accent); pointer-events: none; }
.bd-reel__list { margin: 0; padding: 0; list-style: none; will-change: transform; }
.bd-reel__list li { position: relative; height: 40px; display: flex; align-items: center; justify-content: center; gap: 10px; font: 400 28px/1 var(--font-display); text-transform: uppercase; letter-spacing: 0.02em; color: var(--muted); }
.bd-reel__list li em { position: absolute; right: 18px; padding: 3px 6px; border-radius: 5px; background: rgba(229, 56, 59, 0.14); font: 700 10px/1 var(--font-body); font-style: normal; letter-spacing: 0.04em; text-transform: none; color: #e5383b; opacity: 0; transition: opacity 0.2s; }
.bd-reel__list li.is-x { text-decoration: line-through 3px var(--accent); }
.bd-reel__list li.is-x em { opacity: 1; }
.bd-reel__list li.is-win { color: var(--text); }
.bd-checks { margin: -60px 0 0 160px; padding: 0; list-style: none; display: grid; gap: 8px; opacity: 0; visibility: hidden; }
.bd-checks li { display: flex; align-items: center; gap: 8px; font: 600 14px/1 var(--font-body); white-space: nowrap; color: var(--text); opacity: 0.25; transition: opacity 0.3s; }
.bd-checks li::before { content: "\2713"; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--line2); font-size: 12px; color: transparent; transition: background-color 0.3s, color 0.3s; }
.bd-checks li.is-on { opacity: 1; }
.bd-checks li.is-on::before { background: #22c55e; color: #fff; }
.bd-story { width: 320px; margin: 150px 0 0 -160px; text-align: center; font: italic 500 20px/1.3 Georgia, "Times New Roman", serif; color: var(--text); opacity: 0; visibility: hidden; }

/* 02 look: orbiting items */
.bd-items { width: 0; height: 0; z-index: 1; }
.bd-items { position: absolute; }
.bd-item { position: absolute; left: 0; top: 0; display: grid; place-items: center; font: 400 15px/1 var(--font-display); letter-spacing: 0.06em; text-transform: uppercase; color: #1f4d3a; box-shadow: 0 16px 30px -16px rgba(0, 0, 0, 0.6); visibility: hidden; will-change: transform; }
.bd-item--pouch { width: 68px; height: 88px; border-radius: 8px 8px 12px 12px; background: linear-gradient(#2a6047, #1f4d3a); color: #f3ead7; }
.bd-item--pouch::before { content: ""; position: absolute; top: 6px; left: 8px; right: 8px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, 0.2); }
.bd-item--card { width: 96px; height: 58px; border-radius: 6px; background: #f3ead7; justify-items: start; padding: 0 12px; }
.bd-item--card i { position: absolute; left: 12px; bottom: 12px; width: 40px; height: 3px; background: #fd5f07; }
.bd-item--sign { width: 110px; height: 44px; border-radius: 22px; background: #1f4d3a; color: #f3ead7; font-size: 20px; }
.bd-item--tee { width: 80px; height: 80px; background: #f3ead7; clip-path: polygon(30% 0, 70% 0, 100% 18%, 88% 40%, 78% 34%, 78% 100%, 22% 100%, 22% 34%, 12% 40%, 0 18%); box-shadow: none; font-size: 24px; }
.bd-item--cup { width: 52px; height: 66px; border-radius: 6px 6px 14px 14px; background: linear-gradient(#f3ead7 0 35%, #1f4d3a 35% 70%, #f3ead7 70%); color: #f3ead7; }
.bd-item--bag { width: 74px; height: 80px; border-radius: 4px; background: #c9a77c; }
.bd-item--bag::before { content: ""; position: absolute; top: -14px; left: 22px; width: 30px; height: 20px; border: 3px solid #a8865c; border-bottom: 0; border-radius: 16px 16px 0 0; }

/* 03 voice */
.bd-site {
  z-index: 0;
  width: 450px;
  height: 310px;
  margin: -155px 0 0 -245px;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 12px;
  padding: 0 0 22px;
  overflow: hidden;
  border-radius: 16px;
  background: #f3ead7;
  box-shadow: 0 40px 70px -30px rgba(0, 0, 0, 0.7);
  font-family: var(--font-body);
  color: #1f4d3a;
  opacity: 0;
  visibility: hidden;
}
.bd-site p { margin: 0; }
.bd-site__bar { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; background: #e6dcc6; }
.bd-site__bar i { width: 8px; height: 8px; border-radius: 50%; background: #c9bea7; }
.bd-site__bar span { margin-left: 10px; padding: 3px 10px; border-radius: 6px; background: #f3ead7; font: 600 11px/1 var(--font-body); color: #6b6250; }
.bd-site__nav { display: flex; align-items: center; gap: 16px; padding: 0 22px; font: 600 12px/1 var(--font-body); }
.bd-site__nav b { margin-right: auto; font: 400 20px/1 var(--font-display); letter-spacing: 0.06em; text-transform: uppercase; }
.bd-site__h { padding: 10px 22px 0; font: 400 38px/0.95 var(--font-display); text-transform: uppercase; }
.bd-site__btn { justify-self: start; margin-left: 22px !important; padding: 10px 16px; border-radius: 999px; background: #1f4d3a; font: 700 12px/1 var(--font-body); color: #f3ead7; }
.bd-insta { z-index: 3; width: 150px; height: 270px; margin: -105px 0 0 175px; padding: 8px; border-radius: 22px; background: #0d1114; box-shadow: 0 30px 50px -20px rgba(0, 0, 0, 0.7); opacity: 0; visibility: hidden; }
.bd-insta__top { display: flex; align-items: center; gap: 6px; margin: 4px 4px 8px; font: 700 11px/1 var(--font-body); color: #fff; }
.bd-insta__top i { width: 22px; height: 22px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #4f9a72, #1f4d3a); box-shadow: 0 0 0 2px #0d1114, 0 0 0 3.5px #fd5f07; }
.bd-insta__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; }
.bd-insta__grid i { aspect-ratio: 1; border-radius: 3px; background: #1f4d3a; }
.bd-insta__grid i:nth-child(3n + 2) { background: #f3ead7; }
.bd-insta__grid i:nth-child(4), .bd-insta__grid i:nth-child(8) { background: linear-gradient(135deg, #fd5f07, #ff9a5c); }
.bd-insta__grid i:nth-child(6) { background: radial-gradient(circle at 50% 40%, #4f9a72, #1f4d3a); }
.bd-bubble { z-index: 4; margin: 0; padding: 10px 14px; border-radius: 16px 16px 16px 4px; background: #fff; box-shadow: 0 12px 26px -12px rgba(0, 0, 0, 0.55); font: 600 15px/1.2 var(--font-body); white-space: nowrap; color: #15191c; opacity: 0; visibility: hidden; }
.bd-bubble--1 { margin: -170px 0 0 80px; }
.bd-bubble--2 { margin: -118px 0 0 105px; }
.bd-bubble--3 { margin: -66px 0 0 90px; }
.bd-home { z-index: 4; margin: 170px 0 0 -170px; padding: 8px 14px; border-radius: 999px; background: var(--accent); font: 600 13px/1 var(--font-body); white-space: nowrap; color: var(--on-accent); opacity: 0; visibility: hidden; }

/* 04 fame */
.bd-paper { z-index: 4; width: 210px; height: 148px; margin: -200px 0 0 -350px; display: grid; align-content: start; gap: 7px; padding: 12px 14px; background: #efe8da; box-shadow: 0 24px 40px -18px rgba(0, 0, 0, 0.7); color: #15191c; opacity: 0; visibility: hidden; }
.bd-paper--b { margin: 40px 0 0 130px; }
.bd-paper p { margin: 0; }
.bd-paper__mast { padding-bottom: 5px; border-bottom: 2px solid #15191c; text-align: center; font: 700 15px/1 Georgia, "Times New Roman", serif; letter-spacing: 0.02em; }
.bd-paper__h { font: 700 17px/1.08 Georgia, "Times New Roman", serif; }
.bd-paper i { display: block; height: 4px; background: #c9c1b0; }
.bd-paper i:nth-of-type(2) { width: 82%; } .bd-paper i:nth-of-type(3) { width: 64%; }
.bd-badge { z-index: 4; margin: -200px 0 0 140px; padding: 8px 13px; border-radius: 999px; background: #15191c; border: 1px solid rgba(255, 255, 255, 0.2); font: 700 13px/1 var(--font-body); white-space: nowrap; color: #fff; opacity: 0; visibility: hidden; }
.bd-fans { z-index: 4; width: 300px; margin: 150px 0 0 -150px; text-align: center; opacity: 0; visibility: hidden; }
.bd-fans p { margin: 0; display: grid; gap: 4px; }
.bd-fans b { font: 400 56px/0.9 var(--font-display); color: #fff; font-variant-numeric: tabular-nums; text-shadow: 0 0 30px rgba(253, 95, 7, 0.5); }
.bd-fans em { font: 600 12px/1 var(--font-body); font-style: normal; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255, 255, 255, 0.7); }
.bd-float { z-index: 4; width: 0; height: 0; margin: -70px 0 0 0; }
.bd-chip { position: absolute; left: 0; top: 0; padding: 6px 10px; border-radius: 999px; background: #fff; font: 600 12px/1 var(--font-body); white-space: nowrap; color: #15191c; opacity: 0; }
.bd-chip.is-heart { padding: 0; background: none; font-size: 26px; color: #fd5f07; text-shadow: 0 0 12px rgba(253, 95, 7, 0.7); }

.bd-flashes { position: absolute; z-index: 5; inset: 0; pointer-events: none; }
.bd-flashes i { position: absolute; width: 220px; height: 220px; margin: -110px 0 0 -110px; border-radius: 50%; background: radial-gradient(closest-side, #fff, rgba(255, 255, 255, 0.5) 30%, transparent); opacity: 0; }
.bd-flashes i.is-pop { animation: bd-flash 0.4s ease-out; }
@keyframes bd-flash { 0% { opacity: 0; transform: scale(0.4); } 15% { opacity: 1; } 100% { opacity: 0; transform: scale(1.2); } }

.bd-note { position: absolute; z-index: 4; left: 0; right: 0; bottom: 14px; margin: 0; text-align: center; font: 500 11px/1.3 var(--font-body); color: rgba(255, 255, 255, 0.55); opacity: 0; visibility: hidden; }

/* the giant word: NOBODY → SOMEBODY */
.bd-swap {
  --fill: 0;
  position: absolute;
  left: 50%;
  top: 50%;
  margin: 0;
  font: 400 clamp(6rem, 17vw, 21rem)/0.8 var(--font-display);
  text-transform: uppercase;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--line2);
  -webkit-text-fill-color: rgba(253, 95, 7, calc(var(--fill) * 0.22));
  opacity: 0;
  visibility: hidden;
}
.bd-swap span { display: inline-block; }
.bd-swap__n { position: absolute; left: 0; top: 0; }
.bd-swap--ref { visibility: hidden !important; opacity: 0 !important; }

/* --------------------------------------------------------------------------
   3. Small screens
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
  .nb__tag { font-size: 22px; }
  .bd-checks li { font-size: 17px; }
  .bd-bubble { font-size: 19px; }
  .bd-note { bottom: auto; top: calc(var(--nav-top) + var(--nav-h) + 6px); }
}
