/* ═══════════════════════════════════════════════════════════════════════════
   1:1 VANDANAR.DESIGN VISUAL & MOTION SYSTEM — PAPER, INK & CHAMPAGNE GLITTER
   Built exclusively for OZODBEK JABBOROV (@leototsamiy) & his original works
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
  --bg: #E9E9E6;
  --bg-2: #DFDFDA;
  --ink: #111111;
  --text: #2A2A27;
  --muted: #5C5C56;
  --line: rgba(17, 17, 17, 0.2);
  --line-sub: rgba(17, 17, 17, 0.16);
  --ink-blue: #1C2232;

  --gut: clamp(20px, 4vw, 56px);
  --max: 1320px;
  --sec: clamp(140px, 24vh, 280px);

  --t-caps: clamp(22px, 2.3vw, 34px);
  --t-display: clamp(52px, 6.6vw, 104px);
  --t-mega: clamp(72px, 16vw, 280px);
  --t-xl: clamp(34px, 4.6vw, 68px);
  --t-lead: clamp(18px, 1.5vw, 21px);
  --t-body: 16px;
  --t-label: 12px;

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-io: cubic-bezier(0.7, 0, 0.2, 1);
  --sans: 'Uncut Sans', -apple-system, 'Helvetica Neue', Arial, sans-serif;
  --hand: 'Caveat', 'Comic Sans MS', cursive;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
}

html.dark {
  color-scheme: dark;
  --bg: #0F0F11;
  --bg-2: #1A1A1D;
  --ink: #E9E9E6;
  --text: #C6C6C1;
  --muted: #8C8C86;
  --line: rgba(233, 233, 230, 0.18);
  --line-sub: rgba(233, 233, 230, 0.15);
  --ink-blue: #F5D9A3;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: var(--t-body);
  line-height: 1.55;
  overflow-x: clip;
  transition: background 0.35s ease, color 0.35s ease;
}

/* View Transitions circular ink/glitter spill */
::view-transition-old(root),
::view-transition-new(root) {
  animation: none;
  mix-blend-mode: normal;
}

::view-transition-new(root) {
  z-index: 9999;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gut);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: var(--t-label);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.eyebrow::before {
  content: "";
  width: 40px;
  height: 1px;
  background: var(--line);
}

/* ── Character Rollover [data-roll] ── */
[data-roll] {
  display: inline-flex;
  overflow: hidden;
  line-height: 1.12;
}

[data-roll] .ch {
  display: inline-block;
  text-shadow: 0 1.15em 0 currentColor;
  transition: transform 0.55s var(--ease-io);
  transition-delay: calc(var(--i, 0) * 18ms);
}

[data-roll]:hover .ch,
a:hover>[data-roll] .ch {
  transform: translateY(-1.15em);
}

/* ── Liquid-Fill Magnetic Pill (.pill) ── */
.pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border: 1px solid currentColor;
  border-radius: 100px;
  background: transparent;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.35s var(--ease), color 0.45s var(--ease-io), border-color 0.3s ease;
}

.pill-sm {
  min-height: 36px;
  padding: 0 16px;
  font-size: 11px;
}

.pill::before {
  content: "";
  position: absolute;
  inset: -2px;
  background: currentColor;
  border-radius: 50% 50% 0 0 / 80% 80% 0 0;
  transform: translateY(102%);
  transition: transform 0.6s var(--ease-io), border-radius 0.6s var(--ease-io);
  z-index: -1;
}

.pill:hover::before {
  transform: translateY(0);
  border-radius: 0;
}

.pill .pl-roll {
  position: relative;
  display: block;
  overflow: hidden;
  height: 1.2em;
  line-height: 1.2;
}

.pill .pl-roll>span {
  display: block;
  transition: transform 0.55s var(--ease-io), color 0.4s ease;
}

.pill .pl-roll>span:last-child {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  transform: translateY(115%);
  color: var(--bg);
}

.pill:hover .pl-roll>span:first-child {
  transform: translateY(-115%);
}

.pill:hover .pl-roll>span:last-child {
  transform: translateY(0);
}

.pill:active {
  transform: scale(0.95);
}

/* Over mix-blend-mode:difference pools, invert pill hover text properly */
.over .pill .pl-roll>span:last-child {
  color: #111111;
}

html.dark .over .pill .pl-roll>span:last-child {
  color: #0F0F11;
}

/* ═══════════════════════════════════════════════════════════════════════════
   0. FIRST-VISIT GOOEY INK LOADER (.loader, z-index: 2000)
   ═══════════════════════════════════════════════════════════════════════════ */
.loader {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: var(--bg);
  color: var(--ink);
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: clamp(20px, 3vw, 44px) var(--gut);
  transition: transform 0.8s var(--ease-io);
}

.loader.done {
  transform: translateY(-100%);
  pointer-events: none;
}

.loader.gone {
  display: none;
}

.ld-name {
  font-size: clamp(20px, 1.9vw, 28px);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  transition: opacity 0.3s ease;
}

.ld-mid {
  display: grid;
  place-items: center;
  overflow: visible;
}

.ld-svg {
  width: min(70vmin, 560px);
  height: min(70vmin, 560px);
  overflow: visible;
}

.ld-dot {
  fill: var(--ink);
}

html.dark .ld-dot {
  fill: #F5D9A3;
}

.ld-bot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  transition: opacity 0.3s ease;
}

.ld-num {
  font-size: clamp(56px, 11.5vw, 210px);
  font-weight: 400;
  line-height: 0.82;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.ld-cap {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  padding-bottom: 10px;
}

.loader.flood .ld-name,
.loader.flood .ld-bot {
  opacity: 0;
}

/* ═══════════════════════════════════════════════════════════════════════════
   CUSTOM GOOEY INK CURSOR (.ink-cursor, z-index: 10000)
   ═══════════════════════════════════════════════════════════════════════════ */
.ink-cursor {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 10000;
  mix-blend-mode: difference;
  opacity: 0;
  transition: opacity 0.25s ease;
}

body.has-cursor .ink-cursor {
  opacity: 1;
}

@media (pointer: coarse) {
  .ink-cursor {
    display: none;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   1. HEADER (.head) + FLOATING GLASS DOCK (.dock) + MOBILE MENU (.menu)
   ═══════════════════════════════════════════════════════════════════════════ */
.head {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  padding: clamp(18px, 3vw, 44px) var(--gut);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  mix-blend-mode: difference;
  color: #FFFFFF;
}

html.dark .head {
  mix-blend-mode: normal;
  color: var(--ink);
}

.name-stack {
  display: flex;
  flex-direction: column;
  font-size: clamp(20px, 2.1vw, 30px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.015em;
  text-transform: uppercase;
}

.head-nav {
  display: flex;
  align-items: center;
  gap: clamp(20px, 2.8vw, 44px);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding-top: 6px;
}

@media (max-width: 860px) {
  .head-nav {
    display: none;
  }
}

.motion-ctl {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: none;
  border: 0;
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.m-track {
  width: 30px;
  height: 16px;
  border-radius: 100px;
  border: 1px solid currentColor;
  padding: 2px;
  display: inline-flex;
  align-items: center;
}

.m-knob {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: currentColor;
  transform: translateX(14px);
  transition: transform 0.3s var(--ease);
}

html.still .m-knob {
  transform: translateX(0);
}

.m-dark .m-knob {
  transform: translateX(0);
}

html.dark .m-dark .m-knob {
  transform: translateX(14px);
}

/* Floating Folded Frosted Glass Pill Dock (.dock) */
.dock {
  position: fixed;
  top: clamp(14px, 2.2vw, 28px);
  right: var(--gut);
  z-index: 750;
  height: 52px;
  padding: 0 8px 0 18px;
  border-radius: 100px;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0.24));
  backdrop-filter: blur(18px) saturate(170%);
  -webkit-backdrop-filter: blur(18px) saturate(170%);
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75), 0 12px 32px -14px rgba(0, 0, 0, 0.28);
  color: var(--ink);
  transform: translateY(-140%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.55s var(--ease), opacity 0.4s ease;
}

html.dark .dock {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.04));
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 14px 36px -14px rgba(0, 0, 0, 0.65);
}

.dock.in {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.dock-links {
  display: grid;
  grid-template-columns: 0fr;
  transition: grid-template-columns 0.65s var(--ease);
}

.dock.open .dock-links {
  grid-template-columns: 1fr;
}

.dock-links-in {
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 24px;
  padding-right: 0;
  transition: padding-right 0.5s var(--ease);
}

.dock.open .dock-links-in {
  padding-right: 22px;
}

.dock-links a {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(10px);
  transition: opacity 0.35s ease, transform 0.45s var(--ease);
}

.dock.open .dock-links a {
  opacity: 1;
  transform: translateX(0);
  transition-delay: calc(0.12s + (3 - var(--i, 0)) * 50ms);
}

.dock-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 36px;
  padding: 0 12px 0 4px;
  background: none;
  border: 0;
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
}

.dock-lbl {
  display: block;
  height: 1.15em;
  overflow: hidden;
  line-height: 1.15;
}

.dock-lbl span {
  display: block;
  transition: transform 0.45s var(--ease-io);
}

.dock.open .dock-lbl span {
  transform: translateY(-100%);
}

.dock-ico {
  width: 18px;
  height: 12px;
  position: relative;
  display: inline-block;
}

.dock-ico i {
  position: absolute;
  left: 0;
  right: 0;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.4s var(--ease-io), top 0.4s var(--ease-io);
}

.dock-ico i:first-child {
  top: 3px;
}

.dock-ico i:last-child {
  top: 8px;
}

.dock.open .dock-ico i:first-child {
  top: 5.5px;
  transform: rotate(22deg);
}

.dock.open .dock-ico i:last-child {
  top: 5.5px;
  transform: rotate(-22deg);
}

/* Mobile Fullscreen Menu (.menu) */
.menu {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: var(--bg);
  color: var(--ink);
  padding: 24px var(--gut);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transform: translateY(-100%);
  pointer-events: none;
  transition: transform 0.65s var(--ease-io);
}

.menu.open {
  transform: translateY(0);
  pointer-events: auto;
}

.menu-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.menu-list {
  display: flex;
  flex-direction: column;
}

.menu-list a {
  padding: 18px 0;
  border-top: 1px solid var(--line);
  font-size: clamp(32px, min(6.4vw, 8vh), 80px);
  font-weight: 400;
  line-height: 1;
  display: flex;
  align-items: baseline;
  gap: 20px;
}

.menu-list a:last-child {
  border-bottom: 1px solid var(--line);
}

.menu-list a span {
  font-size: 13px;
  font-family: var(--mono);
  color: var(--muted);
}

.menu-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.menu-toggles,
.menu-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ═══════════════════════════════════════════════════════════════════════════
   2. FLOATING THEME TOGGLE (.tgl — Ink Drop ↔ Champagne Glitter Orb)
   ═══════════════════════════════════════════════════════════════════════════ */
.tgl {
  position: fixed;
  right: var(--gut);
  bottom: calc(clamp(20px, 3vw, 40px) + 36px);
  z-index: 700;
  background: none;
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  transition: transform 0.45s var(--ease);
}

.tgl.tuck {
  transform: translateY(180%);
}

.tgl-tip {
  padding: 6px 12px;
  border-radius: 100px;
  background: var(--ink);
  color: var(--bg);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateX(8px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.3s var(--ease);
}

.tgl:hover .tgl-tip {
  opacity: 1;
  transform: translateX(0);
}

.tgl-track {
  position: relative;
  width: 68px;
  height: 36px;
  border-radius: 100px;
  border: 1px solid #111111;
  background: rgba(233, 233, 230, 0.72);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  padding: 3px;
  transition: border-color 0.35s ease, background 0.35s ease;
}

html.dark .tgl-track {
  border-color: rgba(232, 210, 165, 0.6);
  background: rgba(15, 15, 17, 0.78);
}

.tgl-dots {
  position: absolute;
  right: 11px;
  display: flex;
  gap: 3px;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.tgl-dots i {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #5C5C56;
  animation: dotTwinkle 2.2s infinite;
}

.tgl-dots i:nth-child(2) {
  animation-delay: 0.4s;
}

.tgl-dots i:nth-child(3) {
  animation-delay: 0.8s;
}

@keyframes dotTwinkle {

  0%,
  100% {
    opacity: 0.35;
  }

  50% {
    opacity: 1;
  }
}

html.dark .tgl-dots {
  opacity: 0;
}

.tgl-knob {
  width: 28px;
  height: 28px;
  background: radial-gradient(circle at 35% 30%, #3E4452 0%, #111111 65%, #000000 100%);
  border-radius: 56% 44% 52% 48% / 48% 54% 46% 52%;
  display: grid;
  place-items: center;
  animation: tglBlob 3.6s ease-in-out infinite;
  transition: transform 0.65s cubic-bezier(0.6, -0.35, 0.25, 1.35), background 0.35s ease;
}

@keyframes tglBlob {

  0%,
  100% {
    border-radius: 56% 44% 52% 48% / 48% 54% 46% 52%;
  }

  50% {
    border-radius: 44% 56% 46% 54% / 55% 45% 53% 47%;
  }
}

html.dark .tgl-knob {
  transform: translateX(32px);
  border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, #FFF6DE 0%, #F5D9A3 48%, #B48A47 100%);
  animation: tglSpin 7s linear infinite;
  box-shadow: 0 0 14px rgba(245, 217, 163, 0.45);
}

@keyframes tglSpin {
  from {
    transform: translateX(32px) rotate(0deg);
  }

  to {
    transform: translateX(32px) rotate(360deg);
  }
}

.tgl-star {
  font-size: 13px;
  color: #111111;
  opacity: 0;
  transition: opacity 0.3s ease;
}

html.dark .tgl-star {
  opacity: 1;
  animation: tglStar 2.6s ease-in-out infinite;
}

@keyframes tglStar {

  0%,
  100% {
    transform: scale(0.8);
    opacity: 0.7;
  }

  50% {
    transform: scale(1.2);
    opacity: 1;
  }
}

.tgl.pop .tgl-knob {
  animation: knobSquash 0.72s var(--ease);
}

@keyframes knobSquash {
  0% {
    scale: 1 1;
  }

  30% {
    scale: 1.48 0.7;
  }

  65% {
    scale: 0.86 1.14;
  }

  100% {
    scale: 1 1;
  }
}

.tgl-spark {
  position: fixed;
  pointer-events: none;
  z-index: 9500;
  font-size: 12px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   3. SECTION 1 (HERO) & SECTION 6 (FOOTER) — 100svh WEBGL INK POOLS (.pool)
   ═══════════════════════════════════════════════════════════════════════════ */
.pool {
  position: relative;
  height: 100svh;
  min-height: 540px;
  overflow: hidden;
  isolation: isolate;
}

.ink-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
}

.over {
  position: relative;
  z-index: 5;
  height: 100%;
  padding: clamp(18px, 3vw, 44px) var(--gut);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  pointer-events: none;
  mix-blend-mode: difference;
  color: #FFFFFF;
}

html.dark .over {
  mix-blend-mode: normal;
  color: var(--ink);
}

.over a,
.over button {
  pointer-events: auto;
}

.hero-over {
  padding-top: clamp(110px, 16vh, 180px);
}

/* Mega Staggered Role Headline (Uncut Sans weight 400!) */
.hero-role {
  flex: 1;
  display: flex;
  align-items: center;
}

.role {
  width: 100%;
  font-size: clamp(40px, 11.5vw, 210px);
  font-weight: 400;
  line-height: 0.86;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  user-select: none;
}

.role .ln {
  display: flex;
  flex-wrap: nowrap;
  overflow: visible;
  transition: transform 0.65s var(--ease-io), letter-spacing 0.65s var(--ease-io), opacity 0.5s ease;
}

.role .ln+.ln {
  justify-content: flex-end;
  margin-top: 0.04em;
}

.role .rl-wrap {
  display: inline-block;
  overflow: hidden;
  padding: 0.04em 0;
}

.role .rl {
  display: inline-block;
  will-change: transform, filter, opacity;
  transition: transform 0.55s var(--ease-io), filter 0.55s var(--ease), opacity 0.45s ease;
}

/* 4 Role Transition Effects */
.role.fx-roll-out .rl {
  transform: translateY(-115%);
  transition-delay: calc(var(--i, 0) * 30ms);
}

.role.fx-roll-in .rl {
  transform: translateY(115%);
}

.role.fx-bleed-out .rl {
  filter: blur(22px);
  transform: scale(1.38) translateY(var(--dy, -12px));
  opacity: 0;
  transition-delay: calc(var(--i, 0) * 24ms);
}

.role.fx-bleed-in .rl {
  filter: blur(22px);
  transform: scale(1.32);
  opacity: 0;
}

.role.fx-split-out .ln:first-child {
  transform: translateX(-55vw);
  letter-spacing: 0.25em;
  opacity: 0;
}

.role.fx-split-out .ln:last-child {
  transform: translateX(55vw);
  letter-spacing: 0.25em;
  opacity: 0;
}

.role.fx-split-in .ln:first-child {
  transform: translateX(45vw);
  letter-spacing: 0.22em;
  opacity: 0;
}

.role.fx-split-in .ln:last-child {
  transform: translateX(-45vw);
  letter-spacing: 0.22em;
  opacity: 0;
}

/* Bottom Row inside Hero & Footer Pools */
.pool-foot {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  gap: 16px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.pf-mid {
  font-size: 14px;
  letter-spacing: 0.01em;
  text-transform: none;
  opacity: 0.85;
  text-align: center;
  transition: opacity 0.8s ease;
}

.pf-mid.gone {
  opacity: 0;
}

.pf-right {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.nudge-arrow {
  display: inline-block;
  animation: nudgeDown 2.2s ease-in-out infinite;
}

@keyframes nudgeDown {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(4px);
  }
}

@media (max-width: 760px) {
  .pool-foot {
    grid-template-columns: 1fr auto;
  }

  .pf-mid {
    display: none;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   4. SECTION 2 — PINNED WORD-SCRUB INTRO (.intro, 200vh)
   ═══════════════════════════════════════════════════════════════════════════ */
.intro {
  position: relative;
  height: 200vh;
}

.intro-pin {
  position: sticky;
  top: 0;
  height: 100svh;
  display: grid;
  place-items: center;
  padding: 0 var(--gut);
}

.intro-statement {
  max-width: 27ch;
  font-size: clamp(24px, 3.2vw, 48px);
  font-weight: 400;
  line-height: 1.22;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  text-align: center;
  color: var(--ink);
}

.intro-statement .w {
  display: inline-block;
  opacity: 0.14;
  margin-right: 0.24em;
  transition: opacity 0.16s linear;
}

.progress {
  position: absolute;
  bottom: clamp(28px, 5vh, 56px);
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 1px;
  background: var(--line);
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: var(--ink);
  transform-origin: left;
  transform: scaleX(0);
}

html.still .intro {
  height: auto;
  padding: var(--sec) 0;
}

html.still .intro-pin {
  position: static;
  height: auto;
}

html.still .intro-statement .w {
  opacity: 1 !important;
}

/* ═══════════════════════════════════════════════════════════════════════════
   5. SECTION 3 — SELECTED WORK (Pinned WebGL Stage + 5-Col Bottom Index)
   ═══════════════════════════════════════════════════════════════════════════ */
.work {
  position: relative;
}

.w-gl-wrap {
  position: relative;
  height: 620vh;
}

.w-stage {
  position: sticky;
  top: 0;
  height: 100svh;
  padding: clamp(24px, 3.4vw, 44px) var(--gut) clamp(20px, 3vw, 36px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.w-top {
  display: flex;
  align-items: center;
  gap: 24px;
}

.w-counter {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}

.w-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3vw;
  min-height: 0;
}

.w-copy {
  width: calc(100vw - min(55vw, (100svh - 240px) * 1.6) - 2 * var(--gut) - 3vw);
  max-width: 470px;
  min-width: 300px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.w-title {
  font-size: clamp(46px, 5.2vw, 96px);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  color: var(--ink);
  transition: filter 0.52s var(--ease), transform 0.52s var(--ease), opacity 0.45s ease;
}

.w-title.swap {
  filter: blur(18px);
  transform: scale(1.16);
  opacity: 0;
}

.w-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.live-dot-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink);
}

.live-dot-badge i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #16A34A;
  animation: livePulse 2s infinite;
}

@keyframes livePulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.3;
  }
}

.w-line {
  font-size: 16px;
  line-height: 1.55;
  max-width: 40ch;
  color: var(--text);
}

.w-line strong {
  font-weight: 500;
  color: var(--ink);
}

.w-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 6px 0 8px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  cursor: pointer;
}

.w-cta-arr {
  display: inline-block;
  transition: transform 0.3s var(--ease);
}

.w-cta:hover .w-cta-arr {
  transform: translateX(5px);
}

.w-frame-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.w-frame {
  width: min(55vw, (100svh - 240px) * 1.6);
  aspect-ratio: 16 / 10;
  border-radius: 8px;
  overflow: visible;
  position: relative;
  cursor: pointer;
}

#workGl {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 8px;
}

.w-hint {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  transition: opacity 0.6s ease;
}

.w-hint.gone {
  opacity: 0;
}

/* Bottom 6-Column Progress Index (.w-index) */
.w-index {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}

.wi-btn {
  position: relative;
  background: none;
  border: 0;
  border-top: 1px solid var(--line);
  padding: 12px 0 0;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.25s ease;
}

.wi-btn::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 1.5px;
  background: var(--ink);
  transform-origin: left;
  transform: scaleX(var(--f, 0));
}

.wi-btn.active,
.wi-btn:hover {
  color: var(--ink);
}

.wi-btn em {
  font-style: normal;
  font-variant-numeric: tabular-nums;
  opacity: 0.6;
}

/* Fallback List Mode (Mobile <=960px or Motion Off) */
.w-list-wrap {
  display: none;
  padding: clamp(72px, 12vh, 140px) 0;
}

@media (max-width: 960px) {
  .w-gl-wrap {
    display: none;
  }

  .w-list-wrap {
    display: block;
  }
}

html.still .w-gl-wrap {
  display: none;
}

html.still .w-list-wrap {
  display: block;
}

.w-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.w-filters {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.wf-btn {
  background: none;
  border: 0;
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.wf-btn.active {
  color: var(--ink);
}

.wf-btn.active::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ink);
}

.w-cards {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.w-card {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 28px;
  align-items: center;
}

@media (max-width: 720px) {
  .w-card {
    grid-template-columns: 1fr;
  }
}

.w-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 4px;
  background: var(--bg-2);
}

/* ═══════════════════════════════════════════════════════════════════════════
   6. SECTION 4 — VELOCITY-REACTIVE MARQUEE (.band)
   ═══════════════════════════════════════════════════════════════════════════ */
.band {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: clamp(18px, 2.6vw, 30px) 0;
  overflow: hidden;
  user-select: none;
}

.band-track {
  display: flex;
  width: max-content;
  will-change: transform;
}

.band-row {
  display: flex;
  align-items: center;
  gap: clamp(26px, 3vw, 48px);
  padding-right: clamp(26px, 3vw, 48px);
  font-size: var(--t-display);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--ink);
}

.band-row i {
  font-style: normal;
  font-size: 0.28em;
  opacity: 0.55;
}

/* ═══════════════════════════════════════════════════════════════════════════
   7. SECTION 5 — ABOUT & NEGATIVE-STIR DARKROOM TRAY (.about)
   ═══════════════════════════════════════════════════════════════════════════ */
.about {
  padding: var(--sec) 0;
}

.ab-stage {
  position: relative;
  margin-top: clamp(32px, 5vh, 64px);
  min-height: clamp(460px, 64vh, 680px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ab-hello {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  mix-blend-mode: difference;
  color: #FFFFFF;
  font-size: clamp(56px, 11.5vw, 210px);
  font-weight: 400;
  line-height: 0.86;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

html.dark .ab-hello {
  mix-blend-mode: normal;
  color: var(--ink);
}

.ab-hello .l1 {
  position: absolute;
  left: 0;
  top: 10%;
  transform: translateX(calc(var(--s, 0) * -16vw));
}

.ab-hello .l2 {
  position: absolute;
  right: 0;
  top: 52%;
  transform: translateX(calc(var(--s, 0) * 16vw));
}

.portrait-col {
  position: relative;
  z-index: 1;
  width: min(100%, clamp(300px, 32vw, 460px));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.portrait-box {
  width: 100%;
  aspect-ratio: 4 / 5;
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  cursor: crosshair;
}

.portrait-cap {
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
}

/* 12-Column Editorial Bio below Darkroom Tray */
.ab-copy {
  margin-top: clamp(56px, 9vh, 110px);
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}

.ab-lead {
  grid-column: 2 / 8;
  font-size: var(--t-lead);
  line-height: 1.55;
  color: var(--ink);
  max-width: 36ch;
}

.ab-side {
  grid-column: 9 / 13;
  display: flex;
  flex-direction: column;
  gap: 26px;
  color: var(--text);
}

.ab-pills {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

@media (max-width: 900px) {

  .ab-lead,
  .ab-side {
    grid-column: 1 / -1;
  }

  .ab-hello {
    font-size: clamp(44px, 14vw, 92px);
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   8. SECTION 6 — FULL-VIEWPORT INK FOOTER (#contact)
   ═══════════════════════════════════════════════════════════════════════════ */
.foot-over {
  justify-content: space-between;
}

.foot-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.foot-top-btn {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.foot-mid {
  display: flex;
  flex-direction: column;
  gap: clamp(24px, 4vh, 48px);
}

.reach {
  align-self: flex-end;
  width: min(100%, 540px);
  border-top: 1px solid rgba(255, 255, 255, 0.28);
}

html.dark .reach {
  border-top-color: var(--line);
}

.reach-row {
  display: grid;
  grid-template-columns: 92px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
}

html.dark .reach-row {
  border-bottom-color: var(--line);
}

.r-lbl {
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  opacity: 0.72;
}

.r-val {
  font-size: 15px;
  position: relative;
  justify-self: start;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

.r-val::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}

.r-val:hover::after {
  transform: scaleX(1);
}

/* ═══════════════════════════════════════════════════════════════════════════
   9. SUBPAGES (/playground & /case-study — Exact Flat Hairline vr-theme.css)
   ═══════════════════════════════════════════════════════════════════════════ */
.subpage {
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  padding-top: clamp(32px, 5vw, 56px);
}

.subpage[hidden] {
  display: none !important;
}

.sp-top {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 28px;
  padding-right: 150px;
  flex-wrap: wrap;
  margin-bottom: clamp(40px, 7vh, 72px);
}

.sp-h1 {
  font-size: clamp(40px, 4.9vw, 72px);
  font-weight: 400;
  line-height: 0.96;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  margin: 18px 0;
}

.sp-deck {
  max-width: 58ch;
  font-size: var(--t-lead);
  color: var(--text);
  line-height: 1.55;
}

/* Case Study 4-Col Hairline Metadata Grid */
.cs-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line-sub);
  border-bottom: 1px solid var(--line-sub);
  margin: 36px 0 28px;
}

@media (max-width: 760px) {
  .cs-meta {
    grid-template-columns: 1fr 1fr;
  }
}

.cs-meta-cell {
  padding: 16px 14px 16px 0;
}

.cs-meta-cell span {
  display: block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 5px;
}

.cs-meta-cell strong {
  font-size: 14.5px;
  font-weight: 500;
}

/* 2-Column Case Study Body with Sticky Left TOC Rail (.vr-toc) */
.cs-body {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: clamp(36px, 7vw, 120px);
  padding: 48px 0 120px;
}

@media (max-width: 900px) {
  .cs-body {
    grid-template-columns: 1fr;
  }

  .vr-toc {
    display: none;
  }
}

.vr-toc {
  position: sticky;
  top: 100px;
  align-self: start;
  padding-left: 16px;
}

.vr-rail {
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 1px;
  background: var(--line-sub);
}

.vr-rail-dot {
  position: absolute;
  left: -3px;
  top: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ink-blue);
  transition: top 0.25s var(--ease);
}

.vr-toc a {
  display: block;
  padding: 7px 0;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s ease;
}

.vr-toc a.active,
.vr-toc a:hover {
  color: var(--ink);
}

.cs-col {
  max-width: 760px;
}

.cs-block {
  padding-bottom: 64px;
  margin-bottom: 64px;
  border-bottom: 1px solid var(--line-sub);
}

.cs-block:last-child {
  border-bottom: 0;
}

.cs-block h2 {
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 400;
  letter-spacing: -0.02em;
  margin: 12px 0 18px;
}

.cs-block p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 16px;
}

.cs-pull {
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.38;
  color: var(--ink);
  border-left: 2px solid var(--ink-blue);
  padding-left: 22px;
  margin: 24px 0;
}

.cs-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line-sub);
  border-bottom: 1px solid var(--line-sub);
  margin: 28px 0;
}

@media (max-width: 640px) {
  .cs-stats {
    grid-template-columns: 1fr;
  }
}

.cs-stat {
  padding: 20px 14px 20px 0;
}

.cs-stat-v {
  font-size: clamp(32px, 3.6vw, 52px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.cs-stat-l {
  font-size: 13px;
  color: var(--muted);
  margin-top: 8px;
}

/* Horizontal Story Stepper (.vr-story) */
.vr-story {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  position: relative;
  padding-top: 18px;
  margin: 24px 0 36px;
  border-top: 1px solid var(--line-sub);
}

.vr-story-node {
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.vr-story-node strong {
  display: block;
  color: var(--ink);
  margin-top: 4px;
  font-weight: 500;
  text-transform: none;
  font-size: 13.5px;
}

/* Flat Hairline Dual-Screen Interactive Prototype inside Case Study */
.cs-proto {
  border: 1px solid var(--line-sub);
  border-radius: 4px;
  background: var(--bg-2);
  overflow: hidden;
  margin-top: 24px;
}

.cs-proto-bar {
  padding: 12px 18px;
  border-bottom: 1px solid var(--line-sub);
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  font-family: var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cs-proto-grid {
  display: grid;
  grid-template-columns: 290px 1fr;
  gap: 18px;
  padding: 18px;
}

@media (max-width: 780px) {
  .cs-proto-grid {
    grid-template-columns: 1fr;
  }
}

.cs-phone-box {
  background: var(--bg);
  border: 1px solid var(--line-sub);
  border-radius: 4px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cs-dash-box {
  background: var(--bg);
  border: 1px solid var(--line-sub);
  border-radius: 4px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Playground Subpage Asymmetric 2-Column Live iframe Grid */
.pg-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 32px 0 40px;
}

.pg-chip {
  padding: 7px 14px;
  border-radius: 100px;
  border: 1px solid var(--line);
  background: transparent;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.pg-chip.active {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

.pg-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 44px 32px;
  padding-bottom: 110px;
}

@media (max-width: 820px) {
  .pg-grid {
    grid-template-columns: 1fr;
  }
}

.pg-item-frame {
  width: 100%;
  aspect-ratio: 16 / 11;
  border: 1px solid var(--line-sub);
  border-radius: 4px;
  background: #111111;
  display: block;
}

.pg-item-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 14px;
  border-bottom: 1px solid var(--line-sub);
  padding-bottom: 14px;
}

.pg-item-foot h3 {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.pg-item-foot p {
  font-size: 13px;
  color: var(--muted);
  margin-top: 2px;
}

.pg-open-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.25s ease, color 0.25s ease;
}

.pg-open-btn:hover {
  background: var(--ink);
  color: var(--bg);
}

/* Fullscreen Playground Modal */
.pg-modal {
  position: fixed;
  inset: 0;
  z-index: 1500;
  background: var(--bg);
  display: flex;
  flex-direction: column;
}

.pg-modal[hidden] {
  display: none !important;
}

.pg-modal-bar {
  padding: 14px var(--gut);
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.pg-modal-frame {
  flex: 1;
  width: 100%;
  border: 0;
  background: #111111;
}


/* ═══════════════════════════════════════════════════════════════════════════
   10. 3-LANGUAGE TYPOGRAPHY (UZ / RU CYRILLIC) & LANGUAGE SWITCHER
   ═══════════════════════════════════════════════════════════════════════════ */
html[lang="ru"] {
  --sans: 'Golos Text', 'Uncut Sans', -apple-system, Arial, sans-serif;
}

html[lang="uz"] .role,
html[lang="ru"] .role {
  font-size: clamp(34px, 9.6vw, 180px);
}

html[lang="ru"] .ab-hello {
  font-size: clamp(46px, 9.8vw, 180px);
}

.lang-sw {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 2px;
  border: 1px solid currentColor;
  border-radius: 100px;
}

.lang-sw button {
  background: transparent;
  border: 0;
  color: inherit;
  padding: 4px 8px;
  border-radius: 100px;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  cursor: pointer;
  opacity: 0.65;
  transition: background 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

.lang-sw button.active {
  background: currentColor;
  opacity: 1;
}

.head .lang-sw button.active {
  color: #111111;
}

html.dark .head .lang-sw button.active,
.dock .lang-sw button.active,
.menu .lang-sw button.active {
  color: var(--bg);
}

.lang-sw-dock {
  margin-left: 4px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   11. DRIBBBLE / AWWWARDS / MOBILEUX SPLIT-SYNC EMULATORS (iPHONE 16 PRO + SAAS)
   ═══════════════════════════════════════════════════════════════════════════ */
.cs-col-wide {
  max-width: 1040px;
}

.em-stage {
  margin-top: 22px;
  border: 1px solid var(--line-sub);
  border-radius: 14px;
  background: var(--bg-2);
  overflow: hidden;
}

.em-toolbar {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line-sub);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.em-modes {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.em-mode-btn {
  padding: 6px 12px;
  border-radius: 100px;
  border: 1px solid var(--line);
  background: transparent;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  cursor: pointer;
  color: var(--muted);
  transition: all 0.2s ease;
}

.em-mode-btn.active {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

.em-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  font-family: var(--mono);
  letter-spacing: 0.08em;
  color: var(--muted);
}

.em-live-pill i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #16A34A;
  animation: livePulse 2s infinite;
}

.em-viewport {
  padding: 20px;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 20px;
  align-items: stretch;
}

.em-stage[data-mode="desktop"] .em-viewport {
  grid-template-columns: 1fr;
}

.em-stage[data-mode="desktop"] .em-phone-wrap {
  display: none;
}

.em-stage[data-mode="mobile"] .em-viewport {
  grid-template-columns: 1fr;
  justify-items: center;
}

.em-stage[data-mode="mobile"] .em-dash {
  display: none;
}

@media (max-width: 980px) {
  .em-viewport {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .em-dash {
    width: 100%;
  }
}

/* Realistic iPhone 16 Pro Titanium Bezel + Dynamic Island */
.em-phone-wrap {
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.em-iphone {
  position: relative;
  width: 274px;
  height: 556px;
  border-radius: 42px;
  background: linear-gradient(145deg, #2C2E35, #121318 60%, #272930);
  padding: 8px;
  box-shadow: 0 22px 48px -18px rgba(0, 0, 0, 0.45), inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}

.em-iphone-btn-l1,
.em-iphone-btn-l2,
.em-iphone-btn-r {
  position: absolute;
  width: 3px;
  background: #3A3D47;
  border-radius: 2px;
}

.em-iphone-btn-l1 {
  left: -3px;
  top: 96px;
  height: 28px;
}

.em-iphone-btn-l2 {
  left: -3px;
  top: 136px;
  height: 48px;
}

.em-iphone-btn-r {
  right: -3px;
  top: 122px;
  height: 64px;
}

.em-iphone-screen {
  width: 100%;
  height: 100%;
  border-radius: 34px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #0F1117;
  position: relative;
}

.em-ios-status {
  height: 36px;
  padding: 8px 14px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10px;
  font-weight: 600;
  color: #FFFFFF;
  background: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(8px);
  z-index: 4;
  flex-shrink: 0;
}

.em-island {
  height: 20px;
  min-width: 84px;
  max-width: 186px;
  padding: 0 8px;
  border-radius: 20px;
  background: #000000;
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 9px;
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.2, 0.9, 0.2, 1.15);
}

.em-island.expand {
  height: 26px;
  padding: 0 11px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.55);
}

.em-island-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.em-island-txt {
  overflow: hidden;
  text-overflow: ellipsis;
}

.em-iphone-body {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.em-ios-home-ind {
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 96px;
  height: 4px;
  border-radius: 100px;
  background: rgba(128, 128, 128, 0.45);
  pointer-events: none;
}

/* Mobile Screen Themes inside iPhone 16 Pro */
.em-p-profi,
.em-p-quiz {
  flex: 1;
  background: #F6F9F7;
  color: #111827;
  padding: 12px 13px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 9px;
}

.em-p-quiz {
  background: #FFFBF7;
}

.em-p-sweet,
.em-p-obsidian {
  flex: 1;
  background: #101218;
  color: #F8FAFC;
  padding: 12px 13px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 9px;
}

.em-p-obsidian {
  background: radial-gradient(circle at 20% 0%, #241547, #090A10 68%);
}

.em-p-head,
.em-p-head-dark {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.em-p-sub,
.em-p-head-dark span {
  font-size: 9px;
  letter-spacing: 0.08em;
  opacity: 0.65;
  font-family: var(--mono);
  display: block;
}

.em-p-head h4,
.em-p-head-dark h4 {
  font-size: 14px;
  font-weight: 600;
}

.em-p-badge-green {
  font-size: 9px;
  font-family: var(--mono);
  padding: 3px 7px;
  border-radius: 100px;
  background: #DCFCE7;
  color: #15803D;
  font-weight: 600;
}

.em-p-promo-pill {
  font-size: 9px;
  font-family: var(--mono);
  padding: 3px 7px;
  border-radius: 100px;
  background: rgba(225, 29, 72, 0.22);
  color: #FDA4AF;
  border: 1px solid rgba(225, 29, 72, 0.45);
}

.em-p-card-green {
  background: linear-gradient(135deg, #166534, #15803D);
  color: #FFFFFF;
  border-radius: 14px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.em-p-card-green span {
  font-size: 9px;
  letter-spacing: 0.08em;
  opacity: 0.8;
  font-family: var(--mono);
}

.em-p-card-green strong {
  font-size: 16px;
}

.em-p-card-green small {
  font-size: 10px;
  opacity: 0.85;
}

.em-p-form,
.em-p-form-dark {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.em-p-form label,
.em-p-form-dark label {
  font-size: 10px;
  font-weight: 500;
  opacity: 0.72;
}

.em-p-form select,
.em-p-form input[type="text"] {
  width: 100%;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid #D1D5DB;
  background: #FFFFFF;
  color: #111827;
  font-size: 11.5px;
}

.em-p-form-dark select,
.em-p-form-dark input[type="text"] {
  width: 100%;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: #FFFFFF;
  font-size: 11.5px;
}

.em-p-form-dark select option {
  background: #14161F;
  color: #FFFFFF;
}

.em-p-photo-btn {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px dashed #9CA3AF;
  background: #FFFFFF;
  color: #374151;
  font-size: 10.5px;
  cursor: pointer;
}

.em-p-photo-btn.active {
  border-style: solid;
  border-color: #15803D;
  background: #ECFDF5;
  color: #15803D;
}

.em-p-submit-green {
  margin-top: 4px;
  padding: 11px;
  border-radius: 12px;
  border: 0;
  background: #15803D;
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  cursor: pointer;
}

.em-p-tabs,
.em-p-tabs-dark {
  display: flex;
  justify-content: space-around;
  padding: 8px 6px;
  border-radius: 14px;
  font-size: 10px;
  font-weight: 500;
}

.em-p-tabs {
  background: #FFFFFF;
  color: #6B7280;
  border: 1px solid #E5E7EB;
}

.em-p-tabs .active {
  color: #15803D;
  font-weight: 600;
}

.em-p-tabs-dark {
  background: rgba(255, 255, 255, 0.07);
  color: #94A3B8;
}

.em-p-tabs-dark .active {
  color: #FFFFFF;
  font-weight: 600;
}

/* Strawberry iPhone Cards & Hold-to-Pay */
.em-sw-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.em-sw-card {
  padding: 8px 5px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: #E2E8F0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  font-size: 9.5px;
  cursor: pointer;
}

.em-sw-card.active {
  background: rgba(225, 29, 72, 0.24);
  border-color: #FB7185;
  color: #FFFFFF;
}

.em-sw-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 11px;
}

.em-hold-btn {
  position: relative;
  overflow: hidden;
  padding: 11px;
  border-radius: 12px;
  border: 0;
  background: #E11D48;
  color: #FFFFFF;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  cursor: pointer;
}

.em-hold-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0%;
  background: #16A34A;
  transition: width 0.35s ease;
}

.em-hold-lbl {
  position: relative;
  z-index: 2;
}

/* QuizIn Arena Phone */
.em-qz-langs {
  display: flex;
  gap: 3px;
}

.em-qz-langs button {
  padding: 3px 6px;
  border-radius: 6px;
  border: 1px solid #E5E7EB;
  background: #FFFFFF;
  color: #52525B;
  font-size: 9.5px;
  font-weight: 600;
  cursor: pointer;
}

.em-qz-langs button.active {
  background: #EA580C;
  color: #FFFFFF;
  border-color: #EA580C;
}

.em-qz-xp-card {
  background: linear-gradient(135deg, #EA580C, #C2410C);
  color: #FFFFFF;
  border-radius: 14px;
  padding: 11px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.em-qz-xp-card span {
  display: block;
  font-size: 9px;
  opacity: 0.85;
  font-family: var(--mono);
}

.em-qz-xp-card strong {
  font-size: 17px;
}

.em-qz-rank {
  padding: 4px 8px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.2);
  font-size: 9.5px;
  font-weight: 600;
}

.em-qz-box {
  background: #FFFFFF;
  border: 1px solid #EFE4DC;
  border-radius: 14px;
  padding: 11px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.em-qz-box p {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
  margin: 0;
  color: #18181B;
}

.em-qz-opts {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.em-qz-opts button {
  padding: 8px 10px;
  border-radius: 9px;
  border: 1px solid #E4E4E7;
  background: #FAFAFA;
  color: #18181B;
  text-align: left;
  font-size: 11px;
  cursor: pointer;
}

.em-qz-opts button.ok {
  background: #DCFCE7;
  border-color: #16A34A;
  color: #166534;
  font-weight: 600;
}

.em-qz-opts button.bad {
  background: #FEE2E2;
  border-color: #DC2626;
  color: #991B1B;
}

.em-qz-box small {
  font-size: 10px;
  color: #71717A;
}

/* FinGuard Obsidian Liquid Glass Phone */
.em-obs-dot {
  font-size: 9px;
  font-family: var(--mono);
  color: #34D399;
}

.em-faceid-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(167, 139, 250, 0.32);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.em-faceid-card.scanning {
  border-color: #34D399;
  transform: scale(1.02);
}

.em-faceid-ring {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(124, 58, 237, 0.35);
  display: grid;
  place-items: center;
  font-size: 18px;
  color: #DDD6FE;
  flex-shrink: 0;
}

.em-faceid-card strong {
  display: block;
  font-size: 12px;
}

.em-faceid-card small {
  font-size: 9.5px;
  color: #94A3B8;
}

.em-obs-res {
  padding: 9px 10px;
  border-radius: 10px;
  background: rgba(124, 58, 237, 0.18);
  border: 1px solid rgba(167, 139, 250, 0.35);
  font-size: 10.5px;
  font-family: var(--mono);
  text-align: center;
}

.em-obs-btn {
  padding: 11px;
  border-radius: 12px;
  border: 0;
  background: linear-gradient(135deg, #7C3AED, #6D28D9);
  color: #FFFFFF;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  cursor: pointer;
}

/* ── Desktop SaaS Dashboards (4 Distinct Dribbble/Awwwards Design Systems) ── */
.em-dash {
  border-radius: 14px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 164px minmax(0, 1fr);
  min-height: 556px;
  box-shadow: 0 18px 40px -22px rgba(0, 0, 0, 0.25);
}

@media (max-width: 720px) {
  .em-dash {
    grid-template-columns: 1fr;
  }
}

.em-d-emerald {
  background: #F5F8F6;
  color: #111827;
  border: 1px solid #D9E5DD;
}

.em-d-blue {
  background: #F6F9FF;
  color: #0F172A;
  border: 1px solid #DCE5F8;
}

.em-d-warm {
  background: #FDF9F6;
  color: #18181B;
  border: 1px solid #EDE1D8;
}

.em-d-obsidian {
  display: flex;
  flex-direction: column;
  background: radial-gradient(circle at 18% 18%, #1E1638, #0A0B10 68%);
  color: #F4F4F5;
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 20px;
  gap: 18px;
}

.em-d-side {
  background: #FFFFFF;
  border-right: 1px solid rgba(15, 23, 42, 0.07);
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
}

.em-d-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 14px;
}

.em-d-brand i {
  width: 12px;
  height: 12px;
  border-radius: 4px;
  display: inline-block;
}

.em-d-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.em-d-nav button {
  text-align: left;
  padding: 8px 10px;
  border-radius: 8px;
  border: 0;
  background: transparent;
  color: #64748B;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
}

.em-d-emerald .em-d-nav button.active {
  background: #EAF6EE;
  color: #15803D;
}

.em-d-blue .em-d-nav button.active {
  background: #EFF6FF;
  color: #2563EB;
}

.em-d-warm .em-d-nav button.active {
  background: #FFF7ED;
  color: #EA580C;
}

.em-d-timer-card {
  background: linear-gradient(145deg, #062C1B, #14532D);
  color: #FFFFFF;
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.em-d-timer-card span {
  font-size: 9px;
  letter-spacing: 0.1em;
  color: #86EFAC;
  font-family: var(--mono);
}

.em-d-timer-card strong {
  font-size: 20px;
  font-family: var(--mono);
}

.em-d-timer-card button {
  padding: 6px;
  border-radius: 8px;
  border: 0;
  background: rgba(255, 255, 255, 0.16);
  color: #FFFFFF;
  font-size: 9.5px;
  font-weight: 600;
  cursor: pointer;
}

.em-d-gauge-mini {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.em-d-gauge-mini span {
  font-size: 9px;
  letter-spacing: 0.08em;
  color: #64748B;
  font-family: var(--mono);
}

.em-d-gauge-mini strong {
  font-size: 20px;
}

.em-bar-track {
  height: 6px;
  border-radius: 100px;
  background: #E2E8F0;
  overflow: hidden;
}

.em-bar-track i {
  display: block;
  height: 100%;
  border-radius: 100px;
}

.em-d-main {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.em-d-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
}

.em-d-top h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 0;
}

.em-d-top p {
  font-size: 11.5px;
  color: #64748B;
  margin: 2px 0 0;
}

.em-d-chip-green {
  font-size: 10px;
  font-family: var(--mono);
  padding: 5px 10px;
  border-radius: 100px;
  background: #DCFCE7;
  color: #15803D;
  font-weight: 600;
}

.em-range-pills {
  display: flex;
  gap: 4px;
  background: #FFFFFF;
  padding: 3px;
  border-radius: 100px;
  border: 1px solid #E2E8F0;
}

.em-range-pills button {
  padding: 4px 9px;
  border-radius: 100px;
  border: 0;
  background: transparent;
  color: #64748B;
  font-size: 10.5px;
  font-weight: 600;
  cursor: pointer;
}

.em-range-pills button.active {
  background: #2563EB;
  color: #FFFFFF;
}

.em-d-kpis-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

@media (max-width: 720px) {
  .em-d-kpis-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.em-kpi-card {
  background: #FFFFFF;
  border: 1px solid rgba(15, 23, 42, 0.07);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.em-kpi-card.hero-green {
  background: linear-gradient(135deg, #166534, #15803D);
  color: #FFFFFF;
  border-color: transparent;
}

.em-kpi-card span {
  font-size: 10px;
  opacity: 0.7;
}

.em-kpi-card strong {
  font-size: 22px;
  font-weight: 600;
  line-height: 1.1;
}

.em-kpi-card small {
  font-size: 9.5px;
  opacity: 0.75;
}

.em-d-row-2 {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 12px;
  flex: 1;
}

@media (max-width: 720px) {
  .em-d-row-2 {
    grid-template-columns: 1fr;
  }
}

.em-d-panel {
  background: #FFFFFF;
  border: 1px solid rgba(15, 23, 42, 0.07);
  border-radius: 12px;
  padding: 13px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.em-d-panel-h {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
}

.em-d-panel-h span {
  font-size: 9.5px;
  font-family: var(--mono);
  color: #64748B;
}

.em-d-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.em-d-list-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #F8FAFC;
  border: 1px solid #EEF2F6;
}

.em-d-list-row strong {
  display: block;
  font-size: 11.5px;
}

.em-d-list-row small {
  font-size: 10px;
  color: #64748B;
}

.em-status-btn {
  padding: 4px 9px;
  border-radius: 100px;
  border: 0;
  font-size: 9.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.em-status-btn.new {
  background: #FEF3C7;
  color: #B45309;
}

.em-status-btn.prog {
  background: #DBEAFE;
  color: #1D4ED8;
}

.em-status-btn.done {
  background: #DCFCE7;
  color: #15803D;
}

.em-tag-ok {
  font-size: 9.5px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 100px;
  background: #DCFCE7;
  color: #15803D;
}

.em-tag-warn {
  font-size: 9.5px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 100px;
  background: #FEF3C7;
  color: #B45309;
}

.em-tag-blue {
  font-size: 9.5px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 100px;
  background: #EFF6FF;
  color: #2563EB;
  white-space: nowrap;
}

.em-tag-warm {
  font-size: 9.5px;
  font-family: var(--mono);
  padding: 3px 8px;
  border-radius: 100px;
  background: #FFF7ED;
  color: #EA580C;
  white-space: nowrap;
}

.em-cap-bars {
  flex: 1;
  min-height: 150px;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  align-items: end;
  padding-top: 12px;
}

.em-cap-col {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  gap: 6px;
}

.em-cap-col i {
  width: 100%;
  max-width: 24px;
  border-radius: 100px;
  transition: height 0.4s ease;
}

.em-cap-col span {
  font-size: 9.5px;
  color: #64748B;
}

.em-svg-chart {
  width: 100%;
  height: 140px;
  display: block;
}

/* Warm AI Dashboard controls */
.em-warm-cta {
  padding: 8px 13px;
  border-radius: 100px;
  border: 0;
  background: #EA580C;
  color: #FFFFFF;
  font-size: 10.5px;
  font-weight: 600;
  cursor: pointer;
}

.em-search-row input {
  width: 100%;
  padding: 10px 14px;
  border-radius: 100px;
  border: 1px solid #E5D6CB;
  background: #FFFFFF;
  color: #18181B;
  font-size: 12px;
}

.em-pipe-bar {
  position: relative;
  padding: 9px 12px;
  border-radius: 10px;
  background: #F4EAE2;
  overflow: hidden;
  font-size: 11px;
  font-family: var(--mono);
  color: #7C2D12;
}

.em-pipe-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0%;
  background: rgba(234, 88, 12, 0.18);
  transition: width 0.55s ease;
}

.em-pipe-bar span {
  position: relative;
  z-index: 2;
}

/* Obsidian Neural Graph Dashboard */
.em-obs-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
}

.em-obs-kicker {
  font-size: 9.5px;
  font-family: var(--mono);
  letter-spacing: 0.1em;
  color: #C4B5FD;
  display: block;
}

.em-obs-top h3 {
  font-size: 19px;
  font-weight: 500;
  margin: 3px 0 0;
}

.em-obs-tier {
  padding: 5px 11px;
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.05);
  font-size: 10.5px;
  font-family: var(--mono);
  color: #34D399;
}

.em-obs-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 16px;
  flex: 1;
}

@media (max-width: 720px) {
  .em-obs-grid {
    grid-template-columns: 1fr;
  }
}

.em-obs-graph-box {
  position: relative;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 12px;
  display: grid;
  grid-template-columns: 130px 1fr;
  align-items: center;
  gap: 8px;
}

.em-obs-svg {
  width: 100%;
  height: 220px;
}

.em-obs-wire {
  fill: none;
  stroke: rgba(167, 139, 250, 0.25);
  stroke-width: 1.5;
  transition: stroke 0.25s ease, stroke-width 0.25s ease;
}

.em-obs-wire.active {
  stroke: #A78BFA;
  stroke-width: 2.6;
}

.em-obs-nodes {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.em-obs-node {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 10px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  color: #E4E4E7;
  font-size: 11px;
  cursor: pointer;
}

.em-obs-node.active {
  background: rgba(124, 58, 237, 0.24);
  border-color: #A78BFA;
}

.em-obs-node span {
  font-family: var(--mono);
  color: #C4B5FD;
  font-size: 10.5px;
}

.em-obs-right {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.em-obs-metric,
.em-obs-ai-box {
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.em-obs-metric span,
.em-obs-ai-box span {
  font-size: 9.5px;
  font-family: var(--mono);
  letter-spacing: 0.1em;
  color: #A1A1AA;
}

.em-obs-metric strong {
  font-size: 36px;
  font-weight: 500;
  line-height: 1;
}

.em-obs-metric small {
  font-size: 11px;
  color: #C4B5FD;
}

.em-obs-ai-box p {
  font-size: 12px;
  line-height: 1.5;
  color: #D4D4D8;
  margin: 0;
}

.em-obs-prompt {
  display: flex;
  gap: 6px;
  margin-top: 6px;
}

.em-obs-prompt input {
  flex: 1;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.35);
  color: #FFFFFF;
  font-size: 11.5px;
}

.em-obs-prompt button {
  padding: 0 12px;
  border-radius: 8px;
  border: 0;
  background: #7C3AED;
  color: #FFFFFF;
  font-size: 10.5px;
  font-weight: 600;
  cursor: pointer;
}

/* ═══════════════════════════════════════════════════════════════════════════
   12. QUICK TELEGRAM BRIEF MODAL (.brief-modal)
   ═══════════════════════════════════════════════════════════════════════════ */
.brief-modal {
  position: fixed;
  inset: 0;
  z-index: 1600;
  background: rgba(10, 10, 12, 0.65);
  backdrop-filter: blur(10px);
  display: grid;
  place-items: center;
  padding: 20px;
}

.brief-modal[hidden] {
  display: none !important;
}

.brief-card {
  width: min(100%, 480px);
  background: var(--bg);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.brief-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 12.5px;
  letter-spacing: 0.1em;
}

.brief-sub {
  font-size: 13.5px;
  color: var(--muted);
}

.brief-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.brief-form label {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.brief-form label span {
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: var(--muted);
  font-weight: 500;
}

.brief-form input,
.brief-form select,
.brief-form textarea {
  padding: 10px 12px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: var(--bg-2);
  color: var(--ink);
  font-size: 14px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   13. EDUFLOW / EDUSMART ERP ADMIN + MOBILE V5 PREMIUM STYLES
   Exact tokens from E:\projeckts\edu flow ero (#0F172A, #2F54EB, #5B4CF5)
   ═══════════════════════════════════════════════════════════════════════════ */
.em-d-eduflow {
  background: #F8FAFC;
  color: #0F172A;
  border: 1px solid #E2E8F0;
  grid-template-columns: 186px minmax(0, 1fr);
}
.em-d-eduflow .em-d-side {
  background: #0F172A;
  color: #F8FAFC;
  border-right: 1px solid #1E293B;
  padding: 14px 10px;
}
.em-d-eduflow .em-d-brand {
  padding: 4px 6px 10px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}
.em-d-eduflow .em-d-nav {
  max-height: 365px;
  overflow-y: auto;
  scrollbar-width: thin;
}
.em-d-eduflow .em-d-nav button {
  color: #94A3B8;
  font-size: 11px;
  padding: 7px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.em-d-eduflow .em-d-nav button:hover {
  background: rgba(30, 41, 59, 0.8);
  color: #FFFFFF;
}
.em-d-eduflow .em-d-nav button.active {
  background: #2F54EB;
  color: #FFFFFF;
  box-shadow: 0 6px 16px -6px rgba(47, 84, 235, 0.6);
}
.em-ef-tenant {
  padding: 9px 10px;
  border-radius: 10px;
  background: rgba(30, 41, 59, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.16);
  font-size: 9.5px;
  font-family: var(--mono);
  color: #94A3B8;
  line-height: 1.45;
}
.em-ef-tenant strong { color: #FFFFFF; display: block; font-size: 10.5px; }

.em-ef-heatmap {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
}
.em-ef-hm-day {
  font-size: 9px;
  font-weight: 600;
  color: #94A3B8;
  text-align: center;
}
.em-ef-hm-cell {
  aspect-ratio: 1;
  border-radius: 5px;
}
.em-ef-ai-card {
  background: linear-gradient(135deg, #0F172A, #1E1B4B);
  color: #FFFFFF;
  border-radius: 12px;
  padding: 13px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.em-ef-ai-card h5 { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: #93C5FD; margin: 0; }
.em-ef-ai-item { font-size: 11px; line-height: 1.35; }
.em-ef-ai-item strong { display: block; font-size: 11px; }
.em-ef-ai-item span { font-size: 10px; color: #CBD5E1; }

.em-ef-kanban {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
@media (max-width: 720px) { .em-ef-kanban { grid-template-columns: 1fr; } }
.em-ef-kcol {
  background: #F1F5F9;
  border-radius: 10px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.em-ef-khead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  font-weight: 600;
}
.em-ef-kcard {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  padding: 8px 9px;
  text-align: left;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.em-ef-kcard:hover { transform: translateY(-1px); border-color: #2F54EB; }
.em-ef-kcard strong { display: block; font-size: 11px; color: #0F172A; }
.em-ef-kcard small { display: block; font-size: 9.5px; color: #64748B; }

/* EduFlow Mobile V5 Violet/Parent Shell inside iPhone 16 Pro */
.em-p-eduflow {
  flex: 1;
  background: #F5F4FF;
  color: #0C0B1D;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.em-ef-rolebar {
  display: flex;
  gap: 4px;
  padding: 6px 10px;
  background: #ECEAFF;
  border-bottom: 1px solid #DDDCF0;
}
.em-ef-rolebar button {
  flex: 1;
  padding: 5px 6px;
  border-radius: 999px;
  border: 0;
  background: transparent;
  color: #4B4A6A;
  font-size: 10px;
  font-weight: 600;
  cursor: pointer;
}
.em-ef-rolebar button.active {
  background: #0C0B1D;
  color: #FFFFFF;
}
.em-ef-mhdr {
  padding: 12px 13px;
  background: linear-gradient(155deg, #5B4CF5 0%, #7B6EF8 65%, #9B8CFF 100%);
  color: #FFFFFF;
  border-radius: 0 0 20px 20px;
  flex-shrink: 0;
}
.em-ef-mhdr.parent {
  background: linear-gradient(155deg, #1B7FE8 0%, #3B82F6 100%);
}
.em-ef-mhdr-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 9px;
}
.em-ef-mhdr-top small { display: block; font-size: 9.5px; opacity: 0.78; }
.em-ef-mhdr-top strong { font-size: 13.5px; }
.em-ef-mav {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 700;
}
.em-ef-mstats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
.em-ef-mstat {
  background: rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  padding: 6px 4px;
  text-align: center;
}
.em-ef-mstat b { display: block; font-size: 12.5px; }
.em-ef-mstat span { font-size: 8.5px; opacity: 0.8; }

.em-ef-mbody {
  flex: 1;
  overflow-y: auto;
  padding: 10px 11px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.em-ef-qgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.em-ef-qbtn {
  background: #FFFFFF;
  border: 1px solid #EAE8FF;
  border-radius: 12px;
  padding: 8px;
  text-align: left;
  cursor: pointer;
}
.em-ef-qbtn strong { display: block; font-size: 10.5px; color: #0C0B1D; }
.em-ef-qbtn small { font-size: 9px; color: #6B6A8A; }
.em-ef-mcard {
  background: #FFFFFF;
  border-radius: 12px;
  padding: 9px 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 8px rgba(91, 76, 245, 0.07);
}
.em-ef-mcard strong { display: block; font-size: 11px; color: #0C0B1D; }
.em-ef-mcard small { font-size: 9.5px; color: #6B6A8A; }
.em-ef-pill-v { font-size: 9px; font-weight: 700; padding: 3px 7px; border-radius: 999px; background: #EAE8FF; color: #5B4CF5; white-space: nowrap; }
.em-ef-pill-g { font-size: 9px; font-weight: 700; padding: 3px 7px; border-radius: 999px; background: #E8FAF3; color: #18C17A; white-space: nowrap; }
.em-ef-pill-r { font-size: 9px; font-weight: 700; padding: 3px 7px; border-radius: 999px; background: #FEF0F0; color: #F54C4C; white-space: nowrap; }

.em-ef-mbnav {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  background: #FFFFFF;
  border-top: 1px solid #DDDCF0;
  padding: 5px 4px 12px;
  flex-shrink: 0;
}
.em-ef-mbnav button {
  background: transparent;
  border: 0;
  font-size: 9px;
  font-weight: 600;
  color: #9895B5;
  padding: 5px 2px;
  border-radius: 8px;
  cursor: pointer;
}
.em-ef-mbnav button.active {
  background: #EAE8FF;
  color: #5B4CF5;
}
.em-ef-paybtn {
  width: 100%;
  padding: 9px;
  border-radius: 10px;
  border: 0;
  background: linear-gradient(135deg, #5B4CF5, #7B6EF8);
  color: #FFFFFF;
  font-size: 10.5px;
  font-weight: 700;
  cursor: pointer;
}
.em-ef-chatlog {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.em-ef-bub {
  padding: 7px 9px;
  border-radius: 12px;
  font-size: 10.5px;
  line-height: 1.35;
  max-width: 88%;
}
.em-ef-bub.bot { background: #FFFFFF; color: #0C0B1D; align-self: flex-start; }
.em-ef-bub.usr { background: #5B4CF5; color: #FFFFFF; align-self: flex-end; }
.em-ef-chatbar {
  display: flex;
  gap: 5px;
  margin-top: auto;
}
.em-ef-chatbar input {
  flex: 1;
  padding: 7px 9px;
  border-radius: 999px;
  border: 1px solid #DDDCF0;
  background: #FFFFFF;
  font-size: 10.5px;
  color: #0C0B1D;
}
.em-ef-chatbar button {
  padding: 0 10px;
  border-radius: 999px;
  border: 0;
  background: #5B4CF5;
  color: #FFFFFF;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
}
