/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   PORTFOLIO â€” STYLES
   Design: Motion-Driven + Minimalism (Dark)
   Fonts: Space Grotesk + Archivo
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */

/* â”€â”€â”€ DESIGN TOKENS â”€â”€â”€ */
:root {
  --bg-primary: #0d1017;
  --bg-secondary: #111722;
  --text-primary: #f7f9fc;
  --text-secondary: rgba(247, 249, 252, 0.72);
  --text-dim: rgba(247, 249, 252, 0.45);
  --accent: #6b7cff;
  --accent-glow: rgba(107, 124, 255, 0.15);
  --accent-orange: #ff7a2f;
  --border: rgba(255, 255, 255, 0.06);
  --border-light: rgba(255, 255, 255, 0.10);
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.3);
  --shadow-glow: 0 0 40px rgba(107, 124, 255, 0.08);

  --font-heading: "Space Grotesk", sans-serif;
  --font-body: "Archivo", sans-serif;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-xxl: 24px;

  --max-width: 1120px;

  /* Glassmorphism */
  --glass-bg: rgba(13, 16, 23, 0.25);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-hover: rgba(13, 16, 23, 0.6);
  --glass-blur: 30px;
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
  --glass-border-hover: rgba(107, 124, 255, 0.25);
  --glass-shine: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.06) 0%,
    rgba(255, 255, 255, 0.015) 40%,
    transparent 60%
  );
}


/* â”€â”€â”€ RESET â”€â”€â”€ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

/* ─── ACCESSIBILITY ─── */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ─── STICKY GLASS NAVBAR ─── */
.glass-nav {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 100px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.glass-nav:hover {
  border-color: var(--glass-border-hover);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 100px;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: all 0.25s ease;
}

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

.nav-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.nav-link.nav-active .nav-dot {
  opacity: 1;
}

/* ─── TOUCH / ACTIVE FEEDBACK ─── */
@media (hover: none) and (pointer: coarse) {
  .bento-card:active,
  .project-card:active,
  .skill-category:active {
    transform: scale(0.97);
    transition: transform 0.1s ease;
  }

  .btn:active {
    transform: scale(0.95);
    transition: transform 0.08s ease;
  }

  .skill-item:active {
    background: var(--accent-glow);
    border-color: var(--accent);
  }
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

/* ─── GLASSMORPHISM ORBS ─── */
body::before,
body::after {
  content: "";
  position: fixed;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
  z-index: 0;
}

body::before {
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(107, 124, 255, 0.35) 0%, transparent 70%);
  top: -250px;
  left: -200px;
  animation: orbFloat1 14s ease-in-out infinite;
}

body::after {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255, 122, 47, 0.28) 0%, transparent 70%);
  top: 40%;
  right: -200px;
  animation: orbFloat2 16s ease-in-out infinite;
}

@keyframes orbFloat1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%  { transform: translate(100px, 60px) scale(1.12); }
  66%  { transform: translate(-50px, -30px) scale(0.88); }
}

@keyframes orbFloat2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%  { transform: translate(-70px, -50px) scale(1.15); }
  66%  { transform: translate(60px, 40px) scale(0.85); }
}

/* HERO - RUBIK 3D */

.hero-stage {
  position: relative;
  min-height: 100svh;
  background: transparent;
}


#scene {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.hero-tagline {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 7vw, 5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.highlight {
  background: linear-gradient(135deg, var(--accent), var(--accent-orange));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: flex-start;
  pointer-events: auto;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85rem 2rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  cursor: pointer;
  border: none;
}

.btn--primary {
  background: linear-gradient(135deg, var(--accent), #5a6ae0);
  color: #fff;
  box-shadow: 0 4px 20px rgba(107, 124, 255, 0.25);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(107, 124, 255, 0.35);
}

.btn--ghost {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-light);
}
.btn--ghost:hover {
  background: var(--glass-hover);
  border-color: var(--accent);
  transform: translateY(-2px);
}

.btn--large {
  padding: 1rem 2.5rem;
  font-size: 1.05rem;
}

/* Scroll Hint */
.scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-dim);
  font-size: 0.75rem;
  font-family: var(--font-heading);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  pointer-events: none;
  animation: float 2s ease-in-out infinite;
}

.scroll-dot {
  animation: scrollBounce 1.5s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-6px); }
}

@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(6px); opacity: 0.4; }
}

/* â”€â”€â”€ SECTIONS (shared) â”€â”€â”€ */
.section {
  position: relative;
  z-index: 2;
  padding: 100px 24px;
  background: transparent;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-label {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
  display: block;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-text {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.8;
  max-width: 560px;
}

/* â”€â”€â”€ ABOUT / BENTO GRID â”€â”€â”€ */
.bento-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: stretch;
}

/* About card: text kiri + avatar kanan */
.bento-card--about {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 40px;
}

.about-content {
  flex: 1;
  min-width: 0;
}

.about-avatar {
  flex-shrink: 0;
}

.about-avatar .avatar-circle {
  width: clamp(150px, 18vw, 220px);
  height: clamp(150px, 18vw, 220px);
}

/* Row 2: Stats + Info side by side */
.bento-row--bottom {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 16px;
}

.bento-stats-row {
  display: flex;
  gap: 16px;
}

.bento-stats-row .bento-card {
  flex: 1;
}

.bento-info-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: 20px 28px;
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  box-shadow: var(--glass-shadow);
}

.bento-info-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.info-svg-icon {
  flex-shrink: 0;
}


.avatar-circle {
  border-radius: 50%;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  box-shadow: none;
  overflow: hidden;
  margin: 0 auto;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.avatar-circle:hover {
  box-shadow: none;
  transform: scale(1.04);
}

.avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.bento-card {
    position: relative;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

  .bento-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: var(--glass-shine);
    pointer-events: none;
    z-index: 1;
    transition: opacity 0.4s ease;
  }

  .bento-card > * {
    position: relative;
    z-index: 2;
  }

.bento-card:hover {
    background: var(--glass-hover);
    border-color: var(--glass-border-hover);
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(107,124,255,0.12);
  }

.bento-card--large {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.bento-card--stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent), var(--accent-orange));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 0.25rem;
}



/* â”€â”€â”€ PROJECTS â”€â”€â”€ */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

.project-card {
    position: relative;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

  .project-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: var(--glass-shine);
    pointer-events: none;
    z-index: 1;
  }

  .project-card > * {
    position: relative;
    z-index: 2;
  }

.project-card:hover {
    background: var(--glass-hover);
    border-color: var(--glass-border-hover);
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 20px 60px rgba(107,124,255,0.15);
  }

.project-thumb {
  aspect-ratio: 2.4/1;
  background: var(--glass-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.project-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.project-thumb-svg {
  opacity: 0.8;
  transition: opacity 0.3s ease;
  width: 32px;
  height: 32px;
}
.project-card:hover .project-thumb-svg {
  opacity: 1;
}
.project-thumb-vid {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-info {
  padding: 16px 18px 20px;
}

.project-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}

.project-desc {
  color: var(--text-secondary);
  font-size: 0.83rem;
  line-height: 1.5;
  margin-bottom: 0.75rem;
}

.project-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.tag {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 100px;
  background: var(--accent-glow);
  color: var(--accent);
  border: 1px solid rgba(107, 124, 255, 0.15);
}

/* ─── PROJECT TOGGLE ─── */
.projects-toggle-wrap {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}

.project-card--hidden {
  display: none;
}


/* ─── EXPERIENCE ─── */
.exp-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}

.exp-card {
  display: flex;
  gap: 24px;
  position: relative;
  padding-bottom: 32px;
}

.exp-card:last-child {
  padding-bottom: 0;
}

/* Vertical timeline line */
.exp-card::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 28px;
  bottom: 0;
  width: 2px;
  background: var(--glass-border);
}

.exp-card:last-child::before {
  display: none;
}

.exp-marker {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-orange));
  border: 3px solid var(--bg-primary);
  flex-shrink: 0;
  margin-top: 4px;
  z-index: 1;
  box-shadow: 0 0 16px rgba(107,124,255,0.3);
}

.exp-content {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: 24px 28px;
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  box-shadow: var(--glass-shadow);
  flex: 1;
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.exp-content:hover {
  border-color: var(--glass-border-hover);
  box-shadow: 0 12px 40px rgba(107,124,255,0.08);
}

.exp-role {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.exp-company {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.05em;
  margin-right: 12px;
}

.exp-period {
  font-size: 0.8rem;
  color: var(--text-dim);
}

.exp-desc {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.7;
  margin-top: 10px;
}

/* ─── SKILLS ─── */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.skills-grid--single {
  grid-template-columns: 1fr;
  max-width: 100%;
  margin-top: 20px;
}

.skill-category {
    position: relative;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

  .skill-category::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: var(--glass-shine);
    pointer-events: none;
    z-index: 1;
  }

  .skill-category > * {
    position: relative;
    z-index: 2;
  }

.skill-category:hover {
    background: var(--glass-hover);
    border-color: var(--glass-border-hover);
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(107,124,255,0.12);
  }

.skill-cat-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.skill-items {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.skill-item {
  font-size: 0.85rem;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  background: var(--glass-bg);
  color: var(--text-secondary);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.25s cubic-bezier(0.22, 1, 0.36, 1);
  cursor: default;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
}

.skill-item:hover {
  border-color: var(--accent);
  color: var(--text-primary);
  background: var(--accent-glow);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(107,124,255,0.15);
}

.skill-svg-icon {
  flex-shrink: 0;
  opacity: 0.7;
  transition: opacity 0.25s ease;
}
.skill-item:hover .skill-svg-icon {
  opacity: 1;
}

/* ─── DISABLED STATE ─── */
.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: 0.45;
  pointer-events: none;
  cursor: not-allowed;
  filter: grayscale(0.3);
}

/* â”€â”€â”€ CONTACT â”€â”€â”€ */
.contact-card {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xxl);
  padding: 48px 40px;
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
}
.contact-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--glass-shine);
  pointer-events: none;
  z-index: 1;
}

.contact-card > * {
  position: relative;
  z-index: 2;
}

.contact-text {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 2rem;
}

.contact-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 2rem;
}

.social-link--lg {
  width: 56px;
  height: 56px;
}

.social-link {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  text-decoration: none;
}

.social-link:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--glass-hover);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(107,124,255,0.2);
}

/* â”€â”€â”€ FOOTER â”€â”€â”€ */
.footer {
  text-align: center;
  padding: 32px 24px;
  color: var(--text-dim);
  font-size: 0.85rem;
  border-top: 1px solid var(--border);
}

/* â”€â”€â”€ REVEAL ANIMATION CLASSES â”€â”€â”€ */

/* â”€â”€â”€ RESPONSIVE â”€â”€â”€ */
@media (max-width: 768px) {
  .bento-card--about {
    flex-direction: column;
    text-align: center;
  }
  .about-content {
    order: 2;
  }
  .about-avatar {
    order: 1;
  }
  .about-avatar .avatar-circle {
    width: 140px;
    height: 140px;
  }
  .bento-row--bottom {
    grid-template-columns: 1fr;
  }
  .bento-info-bar {
    flex-direction: column;
    align-items: flex-start;
  }
  .project-grid {
    grid-template-columns: 1fr;
  }
  .exp-card {
    gap: 16px;
    padding-bottom: 24px;
  }
  .exp-content {
    padding: 18px 20px;
  }

  .skills-grid {
    grid-template-columns: 1fr;
  }

  .section {
  position: relative;
  z-index: 2;
  padding: 100px 24px;
  background: transparent;
}
  .contact-card {
    padding: 32px 24px;
  }
}

/* â”€â”€â”€ HERO SPLIT LAYOUT â”€â”€â”€ */
.hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100svh;
  width: 100%;
}

.hero-left {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 24px 24px 24px 4rem;
  position: relative;
  z-index: 5;
}

.hero-left-inner {
  max-width: 580px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 1.5rem;
}

.hero-text-block {
  max-width: 520px;
}

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

.rubik-container {
  position: absolute;
  inset: 0;
}

.rubik-container #scene {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.rubik-hint {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-heading);
  font-size: 0.75rem;
  color: var(--text-dim);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  pointer-events: none;
  z-index: 3;
  background: var(--glass-bg);
  padding: 6px 14px;
  border-radius: 100px;
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* Responsive */
@media (max-width: 860px) {
  .hero-split {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
    position: relative;
  }
  .hero-right {
    position: absolute;
    inset: 0;
    order: 0;
    z-index: 1;
  }
  .hero-left {
    padding: 24px;
    z-index: 2;
    background: transparent;
    align-items: flex-end;
    min-height: 100svh;
  }
  .hero-left-inner {
    padding: 28px 20px;
    width: 100%;
    max-width: 100%;
    flex-direction: column;
    gap: 1.5rem;
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    margin-bottom: 60px;
  }
  .hero-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
  }
  .hero-cta {
    flex-direction: row;
  }
  .hero-cta .btn {
    flex: 1;
    justify-content: center;
    padding: 0.7rem 1rem;
    font-size: 0.85rem;
  }

  /* Mobile nav: compact dot-only pills */
  .glass-nav {
    top: 10px;
    padding: 4px 4px;
    gap: 0;
  }
  .nav-link {
    padding: 5px 6px;
    font-size: 0.7rem;
    gap: 3px;
    min-width: 30px;
    min-height: 30px;
    justify-content: center;
  }
  .nav-link span:not(.nav-dot) {
    display: none;
  }
  .nav-dot {
    width: 4px;
    height: 4px;
    opacity: 0.5;
  }
  .nav-link.nav-active .nav-dot {
    opacity: 1;
  }
}

