:root {
  --bg: #050611;
  --bg-surface: #0b0d1e;
  --bg-card: #0d1024;
  --bg-card-hover: #131735;
  --border: rgba(139, 92, 246, 0.16);
  --border-strong: rgba(139, 92, 246, 0.36);
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --accent: #8b7aff;
  --accent-solid: #7c5cff;
  --accent-grad: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  --accent-soft: rgba(124, 92, 255, 0.14);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: "Plus Jakarta Sans", "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
  --header-height: 68px;
}

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

[hidden] {
  display: none !important;
}

button:focus:not(:focus-visible),
a:focus:not(:focus-visible) {
  outline: none;
}

html {
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(139, 92, 246, 0.35) transparent;
}

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(139, 92, 246, 0.35);
  border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(139, 92, 246, 0.6);
}

body.app-shell {
  margin: 0;
  min-height: 100vh;
  width: 100%;
  max-width: 100vw;
  display: flex;
  flex-direction: column;
  background-color: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.ambient-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(50% 45% at 74% 28%, rgba(124, 92, 255, 0.16), transparent 70%),
    radial-gradient(45% 40% at 18% 60%, rgba(99, 102, 241, 0.08), transparent 70%);
}

/* =========================================
   SIMPLE FIRST-LOAD WELCOME POP-UP
   ========================================= */
@keyframes welcomeCardIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.92);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes welcomeBarSweep {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

.welcome-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(5, 6, 17, 0.92);
  backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  transition: opacity 0.42s ease, transform 0.42s ease;
}

.welcome-overlay.is-leaving {
  opacity: 0;
  transform: scale(1.03);
  pointer-events: none;
}

.welcome-overlay[hidden] {
  display: none;
}

.welcome-popup-card {
  width: 100%;
  max-width: 360px;
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 26px 28px;
  text-align: center;
  box-shadow: 0 24px 60px rgba(108, 92, 231, 0.25);
  animation: welcomeCardIn 0.45s cubic-bezier(0.22, 1.15, 0.36, 1) both;
}

.welcome-badge-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.welcome-title {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.welcome-sub {
  margin: 0 0 18px;
  font-size: 13.5px;
  color: var(--text-secondary);
}

.welcome-bar-track {
  height: 3px;
  width: 100%;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.welcome-bar-fill {
  height: 100%;
  width: 100%;
  transform-origin: left center;
  background: var(--accent-grad);
  animation: welcomeBarSweep 1.1s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both;
}

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

button {
  font-family: inherit;
  cursor: pointer;
}

img {
  display: block;
  max-width: 100%;
}

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* =========================================
   HEADER / NAVIGATION
   ========================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-height);
  background: rgba(5, 6, 17, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14.5px;
  letter-spacing: 0.01em;
  min-width: 0;
}

@keyframes brandSpinClockwise {
  0% {
    opacity: 0;
    transform: rotate(0deg) scale(0.75);
  }
  35% {
    opacity: 1;
    transform: rotate(180deg) scale(1.1);
  }
  85% {
    opacity: 1;
    transform: rotate(370deg) scale(1);
  }
  100% {
    opacity: 1;
    transform: rotate(360deg) scale(1);
  }
}

@keyframes brandNameReveal {
  0% {
    opacity: 0;
    transform: translateX(-14px);
    clip-path: inset(0 100% 0 0);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
    clip-path: inset(0 0 0 0);
  }
}

.brand-mark span:last-child {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-mark #brand-name {
  opacity: 0;
  transform: translateX(-14px);
  clip-path: inset(0 100% 0 0);
}

.brand-badge {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--accent-soft);
  border: 1px solid var(--border-strong);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-size: 11px;
}

.brand-mark .brand-badge {
  opacity: 0;
  transform: rotate(0deg) scale(0.75);
}

body.hero-revealed .brand-mark .brand-badge {
  animation: brandSpinClockwise 0.62s cubic-bezier(0.22, 1.08, 0.36, 1) both;
}

body.hero-revealed .brand-mark #brand-name {
  animation: brandNameReveal 0.52s cubic-bezier(0.22, 1, 0.36, 1) 0.45s both;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav-link {
  position: relative;
  background: transparent;
  border: none;
  padding: 6px 2px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
}

.nav-link.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  border-radius: 999px;
  background: var(--accent-grad);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 0 7px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.mobile-menu-btn span {
  display: block;
  height: 1.5px;
  width: 100%;
  background: var(--text-primary);
}

.mobile-nav {
  position: absolute;
  top: var(--header-height);
  left: 0;
  right: 0;
  background: rgba(8, 10, 24, 0.98);
  border-bottom: 1px solid var(--border);
  padding: 12px 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mobile-nav[hidden] {
  display: none;
}

.mobile-nav-link {
  background: transparent;
  border: none;
  text-align: left;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-secondary);
}

.mobile-nav-link:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
}

/* =========================================
   TYPOGRAPHY & BUTTONS
   ========================================= */
.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 6px;
  background: var(--accent-soft);
  border: 1px solid rgba(139, 92, 246, 0.24);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #b4a7ff;
}

.micro-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.micro-label-accent {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent);
}

.mono-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #b4a7ff;
}

.mono-dim {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.16s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-sm {
  padding: 8px 14px;
  font-size: 12.5px;
}

.btn-xs {
  padding: 6px 11px;
  font-size: 12px;
}

.btn-primary {
  background: var(--accent-grad);
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(108, 92, 231, 0.35);
}

.btn-primary:hover {
  box-shadow: 0 10px 28px rgba(124, 92, 255, 0.5);
  filter: brightness(1.06);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.16);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--border-strong);
}

/* =========================================
   SINGLE-SCREEN HERO STAGE (NO SCROLLING NEEDED)
   ========================================= */
.stage-main {
  flex: 1;
  display: flex;
  align-items: center;
}

.hero-stage-section {
  width: 100%;
  padding: 26px 0 22px;
}

.stage-container {
  display: flex;
  flex-direction: column;
  gap: 28px;
  min-width: 0;
}

.hero-split {
  display: grid;
  grid-template-columns: 1.15fr 0.95fr;
  gap: 36px;
  align-items: center;
}

.hero-left,
.hero-right,
.dock-card {
  min-width: 0;
}

.hero-heading {
  margin: 14px 0 14px;
  font-family: var(--font-display);
  font-size: clamp(34px, 4.4vw, 52px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
}

.accent-name {
  background: linear-gradient(135deg, #a78bfa 0%, #7c5cff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-tagline {
  margin: 0 0 24px;
  max-width: 520px;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 26px;
}

.tech-icons-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.tool-icon-tile {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12.5px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.tool-icon-tile:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.28);
}

@keyframes eyebrowPopIn {
  0% {
    opacity: 0;
    transform: translateY(16px) scale(0.88);
    letter-spacing: 0.18em;
  }
  70% {
    opacity: 1;
    transform: translateY(-2px) scale(1.03);
    letter-spacing: 0.09em;
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    letter-spacing: 0.09em;
  }
}

@keyframes eyebrowGlow {
  0%, 100% {
    border-color: rgba(139, 92, 246, 0.28);
    box-shadow: 0 0 0 rgba(124, 92, 255, 0);
  }
  50% {
    border-color: rgba(167, 139, 250, 0.65);
    box-shadow: 0 0 18px rgba(124, 92, 255, 0.28);
  }
}

@keyframes eyebrowSheen {
  0%, 55% {
    transform: translateX(-140%) skewX(-22deg);
  }
  100% {
    transform: translateX(260%) skewX(-22deg);
  }
}

#hero-eyebrow {
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(16px) scale(0.88);
}

#hero-eyebrow::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 45%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28), transparent);
  transform: translateX(-140%) skewX(-22deg);
  pointer-events: none;
}

body.hero-revealed #hero-eyebrow {
  animation:
    eyebrowPopIn 0.55s cubic-bezier(0.22, 1.15, 0.36, 1) both,
    eyebrowGlow 3.2s ease-in-out 0.7s infinite;
}

body.hero-revealed #hero-eyebrow::after {
  animation: eyebrowSheen 3.2s ease-in-out 0.7s infinite;
}

@keyframes heroHeadingPop {
  0% {
    opacity: 0;
    transform: translateY(28px) scale(0.92);
    filter: blur(6px);
  }
  68% {
    opacity: 1;
    transform: translateY(-4px) scale(1.02);
    filter: blur(0);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

.hero-line {
  display: inline-block;
  opacity: 0;
  transform: translateY(28px) scale(0.92);
}

body.hero-revealed .hero-line-1 {
  animation: heroHeadingPop 0.6s cubic-bezier(0.22, 1.15, 0.36, 1) 0.04s both;
}

body.hero-revealed .hero-line-2 {
  animation: heroHeadingPop 0.65s cubic-bezier(0.22, 1.15, 0.36, 1) 0.16s both;
}

/* Portrait Pop-Up Entrance After Loading Screen + Alive Halo Animation */
@keyframes haloPopIn {
  0% {
    opacity: 0;
    transform: translateX(-50%) scale(0.72);
  }
  70% {
    opacity: 1;
    transform: translateX(-50%) scale(1.04);
  }
  100% {
    opacity: 1;
    transform: translateX(-50%) scale(1);
  }
}

@keyframes haloBreath {
  0%, 100% {
    box-shadow: 0 0 75px rgba(124, 58, 237, 0.42);
  }
  50% {
    box-shadow: 0 0 110px rgba(139, 92, 246, 0.65);
  }
}

@keyframes portraitPopUp {
  0% {
    opacity: 0;
    transform: translateY(48px) scale(0.8);
  }
  66% {
    opacity: 1;
    transform: translateY(-8px) scale(1.04);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.hero-right {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.dot-grid-decor {
  position: absolute;
  top: 8px;
  right: 16px;
  width: 80px;
  height: 80px;
  background-image: radial-gradient(rgba(139, 92, 246, 0.35) 1.5px, transparent 1.5px);
  background-size: 14px 14px;
  pointer-events: none;
}

.portrait-stage {
  position: relative;
  width: 100%;
  max-width: 420px;
  min-height: 360px;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.portrait-halo {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%) scale(0.72);
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle at 42% 38%, #a78bfa 0%, #6d28d9 62%, rgba(76, 29, 149, 0.16) 100%);
  z-index: 0;
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-avatar-img {
  position: relative;
  z-index: 1;
  width: 375px;
  max-width: 94%;
  height: auto;
  opacity: 0;
  transform: translateY(48px) scale(0.8);
  filter: drop-shadow(0 18px 34px rgba(0, 0, 0, 0.45));
  transition: transform 0.35s cubic-bezier(0.22, 1.15, 0.36, 1), filter 0.35s ease;
}

body.hero-revealed .portrait-halo {
  animation:
    haloPopIn 0.72s cubic-bezier(0.22, 1, 0.36, 1) both,
    haloBreath 4.2s ease-in-out 0.8s infinite;
}

body.hero-revealed .hero-avatar-img {
  animation: portraitPopUp 0.85s cubic-bezier(0.22, 1.16, 0.36, 1) 0.1s both;
}

body.hero-revealed .portrait-stage:hover .portrait-halo {
  transform: translateX(-50%) scale(1.05);
}

body.hero-revealed .portrait-stage:hover .hero-avatar-img {
  transform: translateY(-6px) scale(1.03);
  filter: drop-shadow(0 24px 42px rgba(108, 92, 231, 0.32));
}

/* Quick 3-Bagan Launch Dock */
.quick-dock {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.dock-card {
  background: rgba(13, 16, 36, 0.72);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  text-align: left;
  color: var(--text-primary);
  transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.dock-card:hover {
  transform: translateY(-3px);
  background: var(--bg-card-hover);
  border-color: var(--border-strong);
  box-shadow: 0 12px 30px rgba(108, 92, 231, 0.16);
}

.dock-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.dock-arrow {
  font-size: 14px;
  color: var(--text-muted);
  transition: transform 0.2s ease, color 0.2s ease;
}

.dock-card:hover .dock-arrow {
  transform: translate(2px, -2px);
  color: var(--accent);
}

.dock-card-title {
  font-family: var(--font-display);
  font-size: 15.5px;
  font-weight: 700;
}

/* =========================================
   FOOTER
   ========================================= */
.site-footer {
  padding: 14px 0 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 12.5px;
  color: var(--text-muted);
}

/* =========================================
   POP-UP MODALS & ANIMATIONS
   ========================================= */
@keyframes modalPopIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes slideFromRight {
  from {
    opacity: 0;
    transform: translateX(42px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@keyframes slideFromLeft {
  from {
    opacity: 0;
    transform: translateX(-42px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@keyframes fadeRise {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.anim-slide-next {
  animation: slideFromRight 0.36s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.anim-slide-prev {
  animation: slideFromLeft 0.36s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.anim-fade-rise {
  animation: fadeRise 0.3s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(4, 5, 14, 0.84);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-backdrop[hidden] {
  display: none;
}

.modal-backdrop:not([hidden]) .modal-dialog {
  animation: modalPopIn 0.3s cubic-bezier(0.22, 1.1, 0.36, 1) both;
}

.modal-dialog {
  width: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.78);
}

.profile-modal-dialog {
  max-width: 1040px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

.video-modal-dialog {
  max-width: 1040px;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
}

.contact-modal-dialog {
  max-width: 940px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

.modal-heading-inline {
  margin: 4px 0 0;
  font-family: var(--font-display);
  font-size: 17px;
}

.modal-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.modal-scroll-body {
  padding: 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.modal-company-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-primary);
  min-width: 0;
}

.modal-company-pill span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.modal-company-pill img {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: #14172b;
  object-fit: contain;
  flex-shrink: 0;
}

.modal-company-pill img.logo-plate-light {
  background: #f8fafc;
  padding: 2px;
}

.modal-company-pill img.logo-plate-cover {
  object-fit: cover;
}

.modal-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.modal-slot-counter {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-secondary);
  min-width: 54px;
  text-align: center;
}

.icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--text-primary);
  display: grid;
  place-items: center;
  font-size: 14px;
  transition: transform 0.16s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.icon-btn:hover {
  background: var(--accent-soft);
  border-color: var(--border-strong);
  transform: scale(1.06);
}

.icon-btn:active {
  transform: scale(0.95);
}

/* =========================================
   PROFILE MODAL CONTENT
   ========================================= */
.about-band {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  align-items: center;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.about-title {
  margin: 12px 0 10px;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.25;
}

.about-desc {
  margin: 0;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.7;
}

.stats-cross-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: rgba(13, 16, 36, 0.55);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.stat-cell {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 16px;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.stat-cell:nth-child(2n) {
  border-right: none;
}

.stat-cell:nth-child(n + 3) {
  border-bottom: none;
}

.stat-icon-box {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 10px;
  background: var(--accent-soft);
  border: 1px solid rgba(139, 92, 246, 0.25);
  color: var(--accent);
  display: grid;
  place-items: center;
}

.stat-value {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 700;
  line-height: 1.1;
}

.stat-label {
  margin-top: 3px;
  font-size: 12px;
  color: var(--text-secondary);
}

.profile-subgrid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 20px;
  align-items: start;
}

.subpanel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
}

.subpanel-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.subpanel-title {
  margin: 4px 0 0;
  font-family: var(--font-display);
  font-size: 17.5px;
  font-weight: 700;
}

.subpanel-note {
  font-size: 11.5px;
  color: var(--text-muted);
}

.company-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.company-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.16s ease;
  cursor: pointer;
  text-align: left;
  width: 100%;
}

.company-item:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-strong);
  transform: translateY(-1px);
}

.company-logo-box {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  border-radius: 10px;
  background: #14172b;
  border: 1px solid rgba(255, 255, 255, 0.12);
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: 5px;
}

.company-logo-box.logo-plate-light {
  background: #f8fafc;
  padding: 6px;
}

.company-logo-box.logo-plate-cover {
  padding: 0;
}

.company-logo-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.company-logo-box.logo-plate-cover img {
  object-fit: cover;
}

.company-body {
  flex: 1;
  min-width: 0;
}

.company-top {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.company-name {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
}

.company-period {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
}

.company-role {
  margin: 2px 0 5px;
  font-size: 12.5px;
  color: var(--accent);
  font-weight: 500;
}

.company-desc {
  margin: 0 0 8px;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.company-link-hint {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
}

.company-item:hover .company-link-hint {
  color: var(--accent);
}

/* Education Timeline */
.education-timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-left: 18px;
}

.education-timeline::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: var(--border-strong);
}

.edu-item {
  position: relative;
  padding: 13px 14px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.edu-item::before {
  content: "";
  position: absolute;
  left: -18px;
  top: 18px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent);
}

.edu-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 5px;
}

.edu-level {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.edu-period {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-muted);
}

.edu-school {
  margin: 0;
  font-family: var(--font-display);
  font-size: 14.5px;
  font-weight: 600;
}

.edu-degree {
  margin: 3px 0 6px;
  font-size: 13px;
  color: var(--text-secondary);
}

.edu-details {
  margin: 0;
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.45;
}

/* =========================================
   WORK EXPERIENCE MODAL VIEWS (All Companies & Multi-Video Grid)
   ========================================= */
.companies-picker-view,
.video-grid-view,
.empty-gallery-view,
#video-player-view {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}

.companies-picker-view[hidden],
.video-grid-view[hidden],
.empty-gallery-view[hidden],
#video-player-view[hidden] {
  display: none;
}

.companies-picker-view {
  padding: 20px 24px 24px;
}

.companies-picker-head {
  margin-bottom: 14px;
}

.companies-picker-sub {
  margin: 0;
  font-size: 13.5px;
  color: var(--text-secondary);
}

.companies-picker-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.picker-company-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-primary);
  text-align: left;
  width: 100%;
  transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.16s ease, box-shadow 0.18s ease;
}

.picker-company-card:hover,
.picker-company-card.active {
  background: var(--bg-card-hover);
  border-color: var(--border-strong);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(108, 92, 231, 0.14);
}

.picker-company-logo {
  width: 54px;
  height: 54px;
  flex-shrink: 0;
  border-radius: 12px;
  background: #14172b;
  border: 1px solid rgba(255, 255, 255, 0.12);
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: 6px;
}

.picker-company-logo.logo-plate-light {
  background: #f8fafc;
  padding: 7px;
}

.picker-company-logo.logo-plate-cover {
  padding: 0;
}

.picker-company-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.picker-company-logo.logo-plate-cover img {
  object-fit: cover;
}

.picker-company-info {
  flex: 1;
  min-width: 0;
}

.picker-company-name {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 3px;
}

.picker-company-sub {
  font-size: 12.5px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.picker-company-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.format-badge {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid rgba(139, 92, 246, 0.28);
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: #c4b5fd;
}

.format-badge.is-empty {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
}

.picker-company-right {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  white-space: nowrap;
  flex-shrink: 0;
}

.picker-company-right.is-muted {
  color: var(--text-muted);
}

/* Multi-Video Grid View */
.video-grid-view {
  padding: 18px 24px 24px;
}

.video-grid-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.grid-format-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
}

.format-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-secondary);
  font-size: 12.5px;
  font-weight: 500;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.format-tab-btn:hover {
  border-color: var(--border-strong);
  color: var(--text-primary);
}

.format-tab-btn.active {
  background: var(--accent-grad);
  border-color: transparent;
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(108, 92, 231, 0.35);
}

.format-tab-count {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.28);
}

.video-grid-hint {
  font-size: 12px;
  color: var(--text-muted);
}

.company-videos-grid {
  display: grid;
  gap: 14px;
}

.company-videos-grid.is-vertical {
  grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
}

.company-videos-grid.is-landscape {
  grid-template-columns: repeat(auto-fill, minmax(275px, 1fr));
}

.grid-video-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-align: left;
  color: var(--text-primary);
  padding: 0;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.grid-video-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: 0 14px 30px rgba(108, 92, 231, 0.18);
}

.grid-thumb-box {
  position: relative;
  width: 100%;
  background: #060814;
  overflow: hidden;
  aspect-ratio: 9 / 16;
}

.company-videos-grid.is-landscape .grid-thumb-box {
  aspect-ratio: 16 / 9;
}

.grid-thumb-box img,
.grid-thumb-box video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.grid-thumb-box video {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.grid-thumb-top {
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  pointer-events: none;
}

.grid-idx-badge,
.grid-dur-badge {
  padding: 3px 7px;
  border-radius: 6px;
  background: rgba(6, 8, 20, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: #f1f5f9;
  backdrop-filter: blur(6px);
}

.grid-play-pill {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.92);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(108, 92, 231, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  display: grid;
  place-items: center;
  opacity: 0.9;
  transition: transform 0.18s ease, opacity 0.18s ease;
  pointer-events: none;
}

.grid-video-card:hover .grid-play-pill {
  transform: translate(-50%, -50%) scale(1.06);
  opacity: 1;
}

.grid-card-body {
  padding: 11px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.grid-card-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.grid-card-sub {
  font-size: 11.5px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Empty View */
.empty-gallery-view {
  padding: 56px 28px;
  text-align: center;
}

.empty-gallery-view h3 {
  margin: 14px 0 8px;
  font-family: var(--font-display);
  font-size: 22px;
}

.empty-gallery-view p {
  margin: 0 auto;
  max-width: 440px;
  font-size: 14px;
  color: var(--text-secondary);
}

/* 1-by-1 Video Player */
.modal-stage {
  background: #04050e;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 52vh;
}

.modal-stage.is-vertical {
  aspect-ratio: auto;
  height: min(54vh, 500px);
}

.modal-stage video,
.modal-stage iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.modal-stage.is-vertical video,
.modal-stage.is-vertical iframe {
  width: auto;
  max-width: 100%;
  height: 100%;
  aspect-ratio: 9 / 16;
}

.yt-local-preview {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 50% 45%, rgba(124, 92, 255, 0.24), #04050e 72%);
}

.yt-local-preview img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.58);
}

.yt-local-overlay {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px;
  text-align: center;
  max-width: 440px;
}

.yt-local-note {
  margin: 0;
  font-size: 12px;
  color: rgba(241, 245, 249, 0.78);
  background: rgba(5, 6, 17, 0.7);
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.modal-meta {
  display: block;
  padding: 16px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.modal-meta-main h3 {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-size: 17px;
}

.modal-meta-main p {
  margin: 0;
  font-size: 13px;
  color: var(--text-secondary);
}

.modal-external-actions {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.modal-external-actions[hidden] {
  display: none;
}

.modal-slots-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  padding: 12px 18px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(5, 6, 17, 0.65);
}

.modal-slots-bar[hidden] {
  display: none;
}

.slot-num-btn {
  min-width: 34px;
  height: 30px;
  padding: 0 8px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 11.5px;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.slot-num-btn:hover {
  border-color: var(--border-strong);
  color: var(--text-primary);
}

.slot-num-btn.active {
  background: var(--accent-grad);
  border-color: transparent;
  color: #ffffff;
  font-weight: 600;
}

/* =========================================
   CONTACT & SHOWREEL MODAL
   ========================================= */
.contact-modal-body {
  padding: 28px;
  overflow-y: auto;
}

.contact-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.2fr;
  gap: 32px;
  align-items: center;
}

.contact-title {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.contact-desc {
  margin: 0 0 26px;
  font-family: var(--font-display);
  color: var(--accent);
  font-size: clamp(20px, 2.2vw, 24px);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.015em;
}

.contact-logo-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.contact-logo-btn {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
  display: grid;
  place-items: center;
  transition: transform 0.18s ease, background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.contact-logo-btn:hover {
  transform: translateY(-2px);
  background: var(--accent-soft);
  border-color: var(--accent);
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(124, 92, 255, 0.28);
}

.showreel-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.35);
}

.showreel-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.showreel-bar-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.rec-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}

.showreel-player-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #04050e;
}

.showreel-player-wrap video,
.showreel-player-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.showreel-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.showreel-footer p {
  margin: 0;
  font-size: 13px;
  color: var(--text-secondary);
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 980px) {
  .hero-split,
  .about-band,
  .profile-subgrid,
  .contact-layout {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 680px) {
  .container {
    padding: 0 16px;
  }

  .header-inner {
    gap: 10px;
  }

  .main-nav {
    display: none;
  }

  .brand-mark {
    flex: 1;
    min-width: 0;
    gap: 8px;
    font-size: 12px;
  }

  .brand-badge {
    width: 24px;
    height: 24px;
    font-size: 10px;
  }

  .header-right {
    gap: 8px;
  }

  .header-cta {
    padding: 6px 10px;
    font-size: 11.5px;
    white-space: nowrap;
  }

  .mobile-menu-btn {
    display: flex;
    width: 32px;
    height: 32px;
  }

  .hero-stage-section {
    padding: 18px 0 22px;
  }

  .stage-container {
    gap: 20px;
  }

  .hero-split {
    gap: 22px;
  }

  .hero-heading {
    margin: 10px 0 10px;
    font-size: 32px;
  }

  .hero-tagline {
    margin-bottom: 18px;
    font-size: 13.5px;
  }

  .hero-actions {
    margin-bottom: 18px;
    gap: 8px;
  }

  .hero-actions .btn {
    padding: 9px 14px;
    font-size: 13px;
  }

  .portrait-stage {
    min-height: 240px;
  }

  .portrait-halo {
    width: 224px;
    height: 224px;
    top: 10px;
  }

  .hero-avatar-img {
    width: 256px;
  }

  .dot-grid-decor {
    right: 6px;
    width: 64px;
    height: 64px;
  }

  .dock-card {
    padding: 13px 15px;
  }

  .dock-card-title {
    font-size: 14.5px;
  }

  .modal-backdrop {
    padding: 12px;
  }

  .modal-scroll-body,
  .contact-modal-body {
    padding: 16px;
  }

  .stats-cross-grid,
  .companies-picker-grid {
    grid-template-columns: 1fr;
  }

  .stat-cell {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .stat-cell:last-child {
    border-bottom: none;
  }

  .modal-top-bar {
    padding: 12px 14px;
    gap: 8px;
    flex-wrap: wrap;
  }

  .modal-controls {
    gap: 5px;
    margin-left: auto;
  }

  .modal-controls .icon-btn {
    width: 30px;
    height: 30px;
    font-size: 13px;
  }

  .modal-slot-counter {
    min-width: 44px;
    font-size: 11px;
  }

  .companies-picker-view,
  .video-grid-view {
    padding: 12px;
  }

  .companies-picker-head {
    margin-bottom: 10px;
  }

  .companies-picker-sub {
    font-size: 12px;
  }

  .companies-picker-grid {
    gap: 8px;
  }

  .picker-company-card {
    padding: 10px 12px;
    gap: 10px;
    border-radius: var(--radius-md);
  }

  .picker-company-logo {
    width: 40px;
    height: 40px;
  }

  .picker-company-name {
    font-size: 14px;
    margin-bottom: 2px;
  }

  .picker-company-sub {
    font-size: 11.5px;
    margin-bottom: 5px;
  }

  .format-badge {
    padding: 3px 8px;
    font-size: 10px;
  }

  .picker-company-right {
    font-size: 11px;
  }

  .video-grid-hint {
    display: none;
  }

  .company-videos-grid.is-vertical {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .company-videos-grid.is-landscape {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}
