/* ==========================================================================
   AGUS RAMA - SINGLE-SCREEN EDITORIAL & NATURAL PORTFOLIO
   High-taste single-screen presentation (100vh viewport, no traditional vertical scroll)
   Choreographed Element Assembly on Scroll & Gestures
   Built with UI UX Pro Max & Taste Skill standards
   ========================================================================== */

/* --- 1. GOOGLE FONTS IMPORT --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Khand:wght@500;600;700&family=Playfair+Display:ital,wght@0,600;0,700;0,800;0,900;1,600;1,700&family=Plus+Jakarta+Sans:wght@400;500;600;700&family=Syne:wght@700;800&family=JetBrains+Mono:wght@400;500&display=swap');

/* --- 2. COLOR & DESIGN TOKENS --- */
:root {
  /* Warm Natural Palette (From Framer reference) */
  --bg-canvas: #f3f1ea;
  --bg-surface: #ffffff;
  --bg-subtle: #e8e6df;
  --bg-card-hover: #eae8e1;
  --bg-frame: #e2dfd7;

  /* Typography Colors */
  --text-primary: #171714;
  --text-secondary: #74746b;
  --text-muted: #999990;
  --text-inverse: #f3f1ea;

  /* Borders & Dividers */
  --border-natural: #d3d0c5;
  --border-light: rgba(23, 23, 20, 0.08);
  --border-dark: #171714;

  /* Accents */
  --accent-blue: #1f5eff;
  --accent-emerald: #10b981;

  /* Fonts */
  --font-display: 'Khand', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-editorial: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-aggressive: 'Syne', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-casual: 'Plus Jakarta Sans', var(--font-body), sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Sizing & Radius */
  --max-width: 1160px;
  --header-height: 64px;
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 220ms ease;
  --transition-smooth: 450ms cubic-bezier(0.16, 1, 0.3, 1);
  --transition-stage: 650ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- 3. BASE RESET & VIEWPORT LOCK --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
  width: 100%;
  overflow: hidden;
  /* No traditional page scrollbar */
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  user-select: none;
  -webkit-user-select: none;
}

::selection {
  background-color: var(--text-primary);
  color: var(--bg-canvas);
}

:focus-visible {
  outline: 2px solid var(--text-primary);
  outline-offset: 3px;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast), opacity var(--transition-fast);
}

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

button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
}

/* Layout Container */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: 2.5rem;
}

/* --- 4. FIXED TOP NAVIGATION BAR --- */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 100;
  background: rgba(243, 241, 234, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-natural);
  transition: background-color 1.25s cubic-bezier(0.22, 1, 0.36, 1),
              border-color 1.25s cubic-bezier(0.22, 1, 0.36, 1);
}

body:has(#stageHero.is-kasual-mode) .site-nav {
  background: rgba(255, 255, 255, 0.82);
  border-bottom-color: rgba(9, 14, 9, 0.08);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}

.brand-link {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.brand-link span {
  color: var(--text-secondary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link-btn {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition-fast), transform var(--transition-fast);
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-xs);
  position: relative;
}

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

.nav-link-btn.active {
  color: var(--text-primary);
  font-weight: 600;
}

.nav-link-btn.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0.65rem;
  right: 0.65rem;
  height: 1.5px;
  background: var(--text-primary);
}

.btn-mobile-toggle {
  display: none;
  padding: 0.5rem;
  color: var(--text-primary);
}

/* --- 5. STAGE VIEWPORT (100VH STAGE ENGINE) --- */
.stage-viewport {
  position: fixed;
  top: var(--header-height);
  left: 0;
  width: 100%;
  height: calc(100vh - var(--header-height));
  height: calc(100dvh - var(--header-height));
  overflow: hidden;
  background-color: var(--bg-canvas);
}

.screen-stage {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-canvas);
  pointer-events: none;
  z-index: 1;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
}

.screen-stage.active {
  display: flex;
  pointer-events: auto;
  z-index: 5;
  background-color: var(--bg-canvas);
}

/* Subtle custom scrollbar for screen stages */
.screen-stage::-webkit-scrollbar {
  width: 5px;
}

.screen-stage::-webkit-scrollbar-track {
  background: transparent;
}

.screen-stage::-webkit-scrollbar-thumb {
  background: rgba(23, 23, 20, 0.16);
  border-radius: 4px;
}

.screen-stage::-webkit-scrollbar-thumb:hover {
  background: rgba(23, 23, 20, 0.32);
}

body.kasual-theme .screen-stage::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
}

body.kasual-theme .screen-stage::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.4);
}

.stage-inner {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  margin-block: auto;
  padding-inline: 2.5rem;
  padding-block: 0.75rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: min-content;
}

/* --- 6. CHOREOGRAPHED ELEMENT ASSEMBLY ANIMATIONS --- */
/* The core request: elements build / assemble themselves when stage appears */

.screen-stage .assemble-element {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.screen-stage.active .assemble-element {
  opacity: 1;
  transform: translateY(0);
}

/* Title Assembly: Unclips from bottom mask + slides up */
.screen-stage .assemble-title {
  clip-path: polygon(0 100%, 100% 100%, 100% 100%, 0 100%);
  transform: translateY(40px);
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.85s cubic-bezier(0.16, 1, 0.3, 1),
    clip-path 0.85s cubic-bezier(0.16, 1, 0.3, 1);
}

.screen-stage.active .assemble-title {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  transform: translateY(0);
  opacity: 1;
}

/* Hairline Divider Assembly: Expands across like drawing a line */
.screen-stage .assemble-line {
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.08s;
}

.screen-stage.active .assemble-line {
  transform: scaleX(1);
}

/* Mockup Frame Assembly: Scales and lifts into crisp focus */
.screen-stage .assemble-mockup {
  opacity: 0;
  transform: scale(0.93) translateY(24px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.12s,
    transform 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.12s;
}

.screen-stage.active .assemble-mockup {
  opacity: 1;
  transform: scale(1) translateY(0);
}

/* Cards & Principle Boxes Assembly */
.screen-stage .assemble-card {
  opacity: 0;
  transform: translateY(30px) scale(0.98);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.screen-stage.active .assemble-card {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Stagger Delays */
.screen-stage.active .delay-1 {
  transition-delay: 0.10s;
}

.screen-stage.active .delay-2 {
  transition-delay: 0.18s;
}

.screen-stage.active .delay-3 {
  transition-delay: 0.26s;
}

.screen-stage.active .delay-4 {
  transition-delay: 0.34s;
}

.screen-stage.active .delay-5 {
  transition-delay: 0.42s;
}

/* Reduced Motion Override */
@media (prefers-reduced-motion: reduce) {

  .screen-stage,
  .screen-stage .assemble-element,
  .screen-stage .assemble-title,
  .screen-stage .assemble-line,
  .screen-stage .assemble-mockup,
  .screen-stage .assemble-card {
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
    transition: none !important;
  }
}

/* --- 7. STAGE 0: HERO SECTION --- */
#stageHero {
  position: absolute;
  inset: 0;
  background-color: var(--bg-canvas);
  overflow: hidden;
  transition: background-color 1.25s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Pure Black & White Dynamic Gradient for Kasual Mode (Hitam & Putih murni tanpa hijau) */
#stageHero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    /* Element 1: Putih (Crisp luminous pure white bloom on the right for maximum typography contrast) */
    radial-gradient(ellipse 85% 90% at 75% 45%, #ffffff 0%, #ffffff 52%, rgba(255, 255, 255, 0.95) 75%, transparent 100%),
    /* Element 2: Hitam (Deep noir obsidian black on the left anchoring the photo stack) */
    radial-gradient(ellipse 60% 70% at 18% 50%, rgba(0, 0, 0, 0.96) 0%, rgba(12, 12, 12, 0.85) 46%, transparent 80%),
    radial-gradient(ellipse 55% 55% at 10% 92%, rgba(0, 0, 0, 0.98) 0%, transparent 70%),
    /* Smooth Black-to-White foundational spectrum (Hitam murni ke Putih murni) */
    linear-gradient(105deg, #020202 0%, #0e0e0e 24%, #222222 38%, #5a5a5a 50%, #b8b8b8 64%, #ffffff 78%, #ffffff 100%);
  opacity: 0;
  transition: opacity 1.35s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
  z-index: 0;
}

#stageHero.is-kasual-mode::before,
#stageHero:has(.hero-grid.is-inverted)::before {
  opacity: 1;
}

.hero-stage-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1220px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-top: 1rem;
  padding-bottom: 0.75rem;
}

/* Left Editorial Vertical Accent: PORTFOLIO bar */
.hero-vertical-tag {
  position: absolute;
  left: 0.5rem;
  top: 48%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  z-index: 10;
  pointer-events: none;
  user-select: none;
  transition: opacity 0.8s ease, color 0.8s ease;
}

#stageHero.is-kasual-mode .hero-vertical-tag,
#stageHero:has(.hero-grid.is-inverted) .hero-vertical-tag {
  color: #ffffff;
  opacity: 0.95;
}

#stageHero.is-kasual-mode .hero-vertical-tag .v-line,
#stageHero:has(.hero-grid.is-inverted) .hero-vertical-tag .v-line {
  background-color: rgba(255, 255, 255, 0.65);
  opacity: 0.85;
}

#stageHero.is-kasual-mode .hero-vertical-tag .v-text,
#stageHero:has(.hero-grid.is-inverted) .hero-vertical-tag .v-text {
  color: #ffffff;
  opacity: 0.95;
}

.hero-vertical-tag .v-line {
  display: block;
  width: 1px;
  height: clamp(55px, 9.5vh, 90px);
  background-color: var(--text-primary);
  opacity: 0.45;
}

.hero-vertical-tag .v-text {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--text-primary);
  opacity: 0.85;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 2.5rem;
  align-content: center;
  align-items: center;
  position: relative;
  width: 100%;
  padding-left: clamp(4.5rem, 6.2vw, 6.2rem);
  flex: 1;
}

.hero-content-col {
  display: flex;
  flex-direction: column;
  max-width: 540px;
  position: relative;
  z-index: 1;
  transition: transform 1.25s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
  padding-top: 0;
  margin-top: 0;
}

.hero-visual-col {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  justify-self: end;
  width: 100%;
  max-width: 480px;
  position: relative;
  z-index: 2;
  transition: transform 1.25s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
  padding-top: 0;
  margin-top: 0;
}

/* Sliding Morph State: Photo glides to Left, Text glides to Right */
.hero-grid.is-inverted .hero-content-col {
  transform: translate3d(var(--shift-text, 416px), 0, 0);
}

.hero-grid.is-inverted .hero-visual-col {
  transform: translate3d(var(--shift-photo, -636px), 0, 0);
}

/* Editorial Headline: Exact match with target reference design */
.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(3rem, 4.6vw, 4.2rem);
  font-weight: 700;
  line-height: 0.96;
  letter-spacing: -0.015em;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
  text-transform: none;
  text-wrap: balance;
}

/* Studio Editorial Headline: Formal high-fashion sharp serif */
.editorial-hero-headline {
  font-family: var(--font-editorial);
  font-size: clamp(3.2rem, 5.2vw, 4.85rem);
  font-weight: 700;
  line-height: 1.01;
  letter-spacing: 0.012em;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
}

.editorial-hero-headline .headline-part {
  display: block;
  white-space: nowrap;
}

/* Hero Role Badge / Status Pill */
.hero-role-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.32rem 0.85rem;
  background: rgba(0, 0, 0, 0.035);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--text-secondary);
  width: fit-content;
  margin-bottom: 0.95rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.5s ease;
}

.hero-grid.is-inverted .hero-role-badge {
  background: rgba(0, 0, 0, 0.06);
  border-color: rgba(0, 0, 0, 0.18);
  color: #111111;
  font-weight: 600;
}

.role-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #10b981;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
  display: inline-block;
  flex-shrink: 0;
  animation: pulseRoleDot 2.4s infinite ease-in-out;
}

@keyframes pulseRoleDot {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.3);
    opacity: 0.6;
  }
}

.role-badge-sep {
  opacity: 0.45;
  font-weight: 400;
}

.hero-bio-wrapper {
  display: grid;
  grid-template-columns: 1fr;
  max-width: 480px;
  width: 100%;
  margin-bottom: 1.5rem;
}

.hero-bio {
  grid-area: 1 / 1;
  font-size: 0.96rem;
  line-height: 1.62;
  color: var(--text-secondary);
  margin-bottom: 0;
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), color 0.8s ease;
}

.hero-bio strong {
  color: var(--text-primary);
  font-weight: 600;
}

.hero-bio-studio {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.hero-bio-kasual {
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  color: #2b2b2b;
}

.hero-grid.is-inverted .hero-bio-studio {
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
}

.hero-grid.is-inverted .hero-bio-kasual {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  color: #171717;
}

.hero-submeta .philosophy-quote {
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--text-muted);
  max-width: 440px;
  margin-bottom: 0;
  transition: color 0.8s ease;
}

.hero-grid.is-inverted .hero-submeta .philosophy-quote {
  color: #444444;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-dark {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.65rem;
  background: var(--text-primary);
  color: var(--text-inverse);
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: var(--radius-xs);
  transition: all var(--transition-fast);
}

.btn-dark:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

.btn-natural {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-natural);
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: var(--radius-xs);
  transition: all var(--transition-fast);
}

.btn-natural:hover {
  background: var(--bg-subtle);
  border-color: var(--text-primary);
}

.hero-grid.is-inverted .btn-dark {
  background: #050505;
  color: #ffffff;
  border: 1px solid #1c1c1c;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
}

.hero-grid.is-inverted .btn-natural {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #050505;
}

.hero-grid.is-inverted .btn-natural:hover {
  background: #ffffff;
  border-color: #050505;
}

/* Submeta in content col */
.hero-submeta {
  margin-top: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.hero-submeta .philosophy-quote {
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--text-muted);
  max-width: 440px;
  margin-bottom: 0;
}

/* --- HERO SINGLE PORTRAIT PHOTO FRAME --- */
.hero-photo-frame,
.hero-photo-frame.editorial-photo-frame {
  width: 100%;
  max-width: 440px;
  height: clamp(360px, 58vh, 395px);
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border-natural);
  background-color: var(--bg-frame);
  margin-top: 0;
  margin-bottom: 0;
  box-shadow: 0 16px 36px rgba(23, 23, 20, 0.12);
  position: relative;
  z-index: 5;
  transition: transform var(--transition-smooth),
              box-shadow var(--transition-smooth),
              border-color var(--transition-smooth);
}

.hero-photo-frame.editorial-photo-frame:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 46px rgba(23, 23, 20, 0.18);
  border-color: var(--text-secondary);
}

.hero-photo,
.hero-photo-frame.editorial-photo-frame .hero-photo {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.hero-photo-frame.editorial-photo-frame .hero-photo-1,
.hero-photo-1 {
  object-fit: cover;
  object-position: center 20%;
  opacity: 1;
  transform: scale(1);
  z-index: 1;
  border-radius: inherit;
  transition: opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.15s,
              transform 1.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-photo-frame.editorial-photo-frame .hero-photo-2,
.hero-photo-2 {
  object-fit: cover;
  object-position: center 25%;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  border: none;
  box-shadow: none;
  opacity: 0;
  transform: scale(1.04);
  z-index: 2;
  transition: opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.15s,
              transform 1.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-grid.is-inverted .hero-photo-frame.editorial-photo-frame .hero-photo-1,
.hero-grid.is-inverted .hero-photo-1 {
  opacity: 0;
  transform: scale(0.96);
  pointer-events: none;
}

.hero-grid.is-inverted .hero-photo-frame.editorial-photo-frame .hero-photo-2,
.hero-grid.is-inverted .hero-photo-2 {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.hero-grid.is-inverted .hero-photo-frame,
.hero-grid.is-inverted .hero-photo-frame.editorial-photo-frame {
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.55), 0 0 30px rgba(255, 255, 255, 0.08);
}

.tech-icons-row {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  color: var(--text-secondary);
  width: 100%;
}

.tech-icon-item {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  color: var(--text-secondary);
  text-decoration: none;
  cursor: pointer;
  transition: color var(--transition-fast), transform var(--transition-fast);
}

.tech-icon-item:hover {
  color: var(--text-primary);
  transform: translateY(-2px);
}

/* Hero Bottom Bar */
.hero-bottom-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.5rem;
  width: 100%;
}

.hint-desktop {
  display: inline;
}

.hint-mobile {
  display: none;
}

/* Scroll Hint Bar at bottom of Hero */
.scroll-hint-bar {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  cursor: pointer;
  width: fit-content;
  white-space: nowrap;
  flex-shrink: 0;
  transition: color var(--transition-fast), transform var(--transition-fast);
}

.scroll-hint-text {
  white-space: nowrap;
}

.scroll-hint-bar:hover {
  color: var(--text-primary);
  transform: translateY(2px);
}

.scroll-hint-arrow {
  font-size: 0.95rem;
  animation: bounceDown 1.8s infinite;
}

@keyframes bounceDown {

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

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

/* Hero Slide Switcher Pills */
.hero-slide-switcher {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--bg-frame);
  border: 1px solid var(--border-natural);
  padding: 0.25rem 0.45rem;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  flex-shrink: 0;
}

.hero-slide-pill {
  background: transparent;
  border: none;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-pill);
  transition: all var(--transition-fast);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1.2;
}

.hero-slide-pill:hover {
  color: var(--text-primary);
}

.hero-slide-pill.active {
  color: var(--text-primary);
  font-weight: 600;
  background: var(--bg-canvas);
  box-shadow: 0 2px 8px rgba(23, 23, 20, 0.06);
}

#stageHero.is-kasual-mode .hero-slide-switcher {
  background: rgba(255, 255, 255, 0.75);
  border-color: rgba(9, 14, 9, 0.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

#stageHero.is-kasual-mode .hero-slide-pill.active {
  background: #090e09;
  color: #ffffff;
}

#stageHero.is-kasual-mode .scroll-hint-bar {
  color: rgba(255, 255, 255, 0.9);
}

#stageHero.is-kasual-mode .scroll-hint-bar .scroll-hint-arrow {
  color: #a3e635;
}

#stageHero.is-kasual-mode .scroll-hint-bar:hover {
  color: #ffffff;
}

.hero-slide-sep {
  color: var(--border-natural);
  font-size: 0.75rem;
  font-weight: 300;
}



/* --- 8. STAGE 2: SELECTED WORK SECTION --- */
.section-top-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-natural);
  margin-bottom: 2.5rem;
}

#stageWork .section-top-header {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 1.75rem;
}

.section-title-khand {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4vw, 3.25rem);
  font-weight: 700;
  line-height: 1;
  color: var(--text-primary);
  text-transform: none;
}

.work-header-right {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.project-tabs-pills {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--bg-subtle);
  padding: 0.3rem 0.4rem;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border-natural);
}

.project-tab-pill {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: 3px;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.project-tab-pill:hover {
  color: var(--text-primary);
}

.project-tab-pill.active {
  background: var(--text-primary);
  color: var(--text-inverse);
  box-shadow: 0 2px 6px rgba(23, 23, 20, 0.15);
}

.project-tab-pill.active .tab-badge-num {
  background: rgba(255, 255, 255, 0.22);
  color: var(--text-inverse);
}

.section-counter-tag {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  text-transform: uppercase;
  text-align: right;
  line-height: 1.4;
}

/* Project Cards Carousel / Stage Showcase */
.stage-project-showcase {
  position: relative;
  min-height: 420px;
}

.project-stage-card {
  display: none;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
  animation: projectFadeIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.project-stage-card.active {
  display: grid;
}

/* Collection Card (Landing Page: MoneyTree + Satvhika) */
.project-stage-card-collection.active {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  width: 100%;
}

.project-collection-nav,
.landing-collection-nav,
.tools-collection-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding-bottom: 0.15rem;
}

.project-collection-badge,
.landing-collection-badge,
.project-collection-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1.25rem;
  width: 100%;
}

.project-collection-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 900px;
  padding-inline: 0.25rem;
}

.project-collection-badge,
.landing-collection-badge,
.tools-collection-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.project-strip-controls {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}

.strip-arrow-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(23, 23, 20, 0.05);
  border: 1px solid var(--border-natural);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 0;
  flex-shrink: 0;
}

.strip-arrow-btn:hover {
  background: var(--text-primary);
  color: #fff;
  border-color: var(--text-primary);
  transform: scale(1.08);
}

.strip-arrow-btn:active {
  transform: scale(0.92);
}

.project-active-tagline {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-primary);
  background: rgba(23, 23, 20, 0.05);
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  border: 1px solid var(--border-natural);
  transition: all 0.25s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.active-tagline-title {
  white-space: nowrap;
}

.active-tagline-idx {
  font-family: var(--font-mono, monospace);
  font-size: 0.68rem;
  color: var(--text-muted);
}

/* --- VISUAL THUMBNAIL STRIP (SHOWCASE SELECTOR) --- */
.project-visual-strip {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: nowrap;
  gap: 0.55rem;
  padding: 0.4rem 0.55rem;
  background: rgba(23, 23, 20, 0.03);
  border: 1px solid var(--border-natural);
  border-radius: var(--radius-sm);
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  scroll-behavior: smooth;
  scroll-snap-type: x proximity;
  margin-inline: auto;
  touch-action: pan-x;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}

.project-visual-strip.is-dragging {
  cursor: grabbing;
  scroll-behavior: auto;
  scroll-snap-type: none;
}

.project-visual-strip::-webkit-scrollbar {
  display: none;
}

.project-thumb-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: transparent;
  border: none;
  padding: 0.2rem 0.15rem;
  cursor: pointer;
  flex-shrink: 0;
  scroll-snap-align: center;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
  outline: none;
  user-select: none;
  -webkit-user-select: none;
}

.thumb-preview {
  position: relative;
  width: 64px;
  height: 42px;
  border-radius: 6px;
  overflow: hidden;
  background: #eae8e1;
  border: 1.5px solid rgba(23, 23, 20, 0.12);
  box-shadow: 0 2px 6px rgba(23, 23, 20, 0.04);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
}

.thumb-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
  filter: saturate(0.85) contrast(0.95);
  transition: transform 0.35s ease, filter 0.25s ease;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
}

.thumb-badge {
  position: absolute;
  top: 3px;
  left: 3px;
  font-family: var(--font-mono, monospace);
  font-size: 0.55rem;
  font-weight: 700;
  line-height: 1;
  color: #fff;
  background: rgba(23, 23, 20, 0.72);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  padding: 2px 3.5px;
  border-radius: 3px;
  letter-spacing: 0.02em;
}

.thumb-label {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-top: 0.3rem;
  white-space: nowrap;
  max-width: 66px;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
  transition: color 0.2s ease, font-weight 0.2s ease;
}

/* Hover State */
.project-thumb-pill:hover .thumb-preview {
  border-color: rgba(23, 23, 20, 0.35);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(23, 23, 20, 0.08);
}

.project-thumb-pill:hover .thumb-preview img {
  transform: scale(1.06);
  filter: saturate(1) contrast(1);
}

.project-thumb-pill:hover .thumb-label {
  color: var(--text-primary);
}

/* Active State */
.project-thumb-pill.active .thumb-preview {
  border-color: var(--text-primary);
  border-width: 2px;
  box-shadow: 0 4px 14px rgba(23, 23, 20, 0.18), 0 0 0 1px rgba(23, 23, 20, 0.1);
  transform: translateY(-2px);
}

.project-thumb-pill.active .thumb-preview img {
  filter: saturate(1.05) contrast(1.02);
}

.project-thumb-pill.active .thumb-badge {
  background: var(--text-primary);
  color: #fff;
}

.project-thumb-pill.active .thumb-label {
  color: var(--text-primary);
  font-weight: 700;
}

/* Legacy sub-switcher backward compatibility */
.project-sub-switcher,
.landing-sub-switcher,
.tools-sub-switcher {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0.25rem;
  background: rgba(23, 23, 20, 0.04);
  border: 1px solid var(--border-natural);
  border-radius: 999px;
}

.project-sub-pill,
.landing-sub-pill,
.tools-sub-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.85rem;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.sub-pill-idx {
  font-family: var(--font-mono, monospace);
  font-size: 0.65rem;
  opacity: 0.7;
}

.project-item-view,
.landing-item-view,
.tools-item-view {
  display: none;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
  width: 100%;
}

.project-item-view.active,
.landing-item-view.active,
.tools-item-view.active {
  display: grid;
  animation: projectFadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.window-url-badge {
  font-family: var(--font-mono, monospace);
  font-size: 0.68rem;
  color: var(--text-muted);
  background: rgba(23, 23, 20, 0.05);
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-xs);
  letter-spacing: 0.02em;
}

.tab-badge-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  font-size: 0.62rem;
  font-weight: 700;
  border-radius: 999px;
  background: rgba(23, 23, 20, 0.08);
  color: inherit;
  margin-left: 0.3rem;
  vertical-align: middle;
}

@keyframes projectFadeIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Browser Window Mockup Frame */
.browser-window-frame {
  background: var(--bg-frame);
  border: 1px solid var(--border-natural);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(23, 23, 20, 0.04);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  cursor: pointer;
}

.browser-window-frame:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(23, 23, 20, 0.08);
}

.browser-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.55rem 0.9rem;
  background: var(--bg-frame);
  border-bottom: 1px solid rgba(23, 23, 20, 0.06);
}

.window-dots {
  display: flex;
  gap: 5px;
}

.window-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #a8a59c;
}

.window-badge {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #74746b;
  text-transform: uppercase;
}

.browser-viewport {
  width: 100%;
  height: 290px;
  overflow: hidden;
  background: #111;
  position: relative;
}

.browser-viewport img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform var(--transition-smooth);
}

.browser-window-frame:hover .browser-viewport img {
  transform: scale(1.03);
}

/* Project Meta Column */
.project-meta-col {
  display: flex;
  flex-direction: column;
}

.project-meta-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.project-heading {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 3.2vw, 2.75rem);
  font-weight: 700;
  line-height: 1;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.project-summary-text {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.project-spec-table {
  border-top: 1px solid var(--border-natural);
  padding-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.spec-entry {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.spec-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.spec-val {
  font-size: 0.875rem;
  color: var(--text-primary);
  line-height: 1.4;
}

/* --- 9. STAGE 1: PROFILE & EXPERIENCE SECTION --- */
#stageProfile .stage-inner {
  padding-block: 0.4rem;
}

#stageProfile .section-top-header {
  padding-bottom: 0.5rem;
  margin-bottom: 0.75rem;
}

#stageProfile .section-title-khand {
  font-size: clamp(2rem, 3.2vw, 2.6rem);
}

.profile-statement {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 1.75vw, 1.5rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text-primary);
  max-width: 980px;
  margin-bottom: 0.35rem;
}

.profile-lead-narrative {
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--text-secondary);
  max-width: 820px;
  margin-bottom: 0.75rem;
}

.profile-core-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.75rem;
  margin-bottom: 0.75rem;
}

/* 3 Principle & Pillar Cards */
.principles-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
}

.principle-box {
  background: var(--bg-canvas);
  border: 1px solid var(--border-natural);
  border-radius: var(--radius-xs);
  padding: 0.75rem 0.75rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  transition: all var(--transition-fast);
}

.principle-box:hover {
  background: var(--bg-subtle);
  border-color: var(--text-primary);
}

.principle-box-interactive {
  cursor: pointer;
  position: relative;
  background: #fbfaf7;
}

.principle-box-interactive:hover {
  background: #ffffff;
  border-color: var(--text-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
}

.principle-header-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.4rem;
}

.principle-tag-badge {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 0.15rem 0.35rem;
  background: var(--text-primary);
  color: var(--bg-canvas);
  border-radius: 2px;
  line-height: 1;
  text-transform: uppercase;
}

.principle-num {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
}

.principle-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
  line-height: 1.1;
}

.principle-desc {
  font-size: 0.76rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.principle-desc em {
  font-style: italic;
  font-weight: 600;
  color: var(--text-primary);
}

.principle-link-action {
  margin-top: auto;
  padding-top: 0.55rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.2rem;
}

.principle-box-interactive:hover .principle-link-action {
  text-decoration: underline;
}

/* Capabilities Column (Right) */
.capabilities-col {
  display: flex;
  flex-direction: column;
}

.index-meta-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.capability-list {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.capability-item {
  padding-bottom: 0.45rem;
  border-bottom: 1px solid var(--border-natural);
}

.capability-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.capability-title {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.15rem;
}

.capability-detail {
  font-size: 0.75rem;
  color: var(--text-secondary);
  line-height: 1.35;
}

/* Selected Experience & Certifications Sub-Section */
.experience-sub-section {
  padding-top: 0.55rem;
  border-top: 1px solid var(--border-natural);
}

.sub-section-tab-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.55rem;
}

.sub-tab-pills {
  display: inline-flex;
  gap: 0.35rem;
  background: var(--bg-subtle);
  padding: 0.2rem;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border-natural);
}

.sub-tab-pill {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 0.3rem 0.75rem;
  color: var(--text-secondary);
  border-radius: 2px;
  background: transparent;
  border: none;
  transition: all var(--transition-fast);
  cursor: pointer;
  text-transform: uppercase;
}

.sub-tab-pill:hover {
  color: var(--text-primary);
}

.sub-tab-pill.active {
  background: var(--text-primary);
  color: var(--bg-canvas);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.sub-section-hint {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.sub-tab-pane {
  display: none !important;
}

.sub-tab-pane.active {
  display: grid !important;
}

.experience-rows {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.experience-row-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.5rem 0.75rem;
  background: var(--bg-subtle);
  border: 1px solid var(--border-natural);
  border-radius: var(--radius-xs);
  transition: all var(--transition-fast);
}

.exp-item-interactive {
  cursor: pointer;
  background: #fbfaf7;
}

.exp-item-interactive:hover {
  background: #ffffff;
  border-color: var(--text-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.exp-role-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.exp-role-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
}

.exp-link-icon {
  font-size: 0.82rem;
  color: var(--text-secondary);
  transition: transform var(--transition-fast);
}

.exp-item-interactive:hover .exp-link-icon {
  transform: translate(2px, -2px);
  color: var(--text-primary);
}

.exp-company {
  font-size: 0.74rem;
  color: var(--text-muted);
  line-height: 1.3;
}

.exp-period {
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
  margin-top: 0.1rem;
}

.btn-secondary-link:hover {
  background: var(--text-primary);
  color: var(--bg-canvas) !important;
  border-color: var(--text-primary);
}

/* --- 10. STAGE 3: CONTACT & CHANNELS SECTION --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.85fr;
  gap: 4.5rem;
  align-items: center;
  margin-bottom: 4rem;
}

.contact-headline {
  font-family: var(--font-display);
  font-size: clamp(2.85rem, 5vw, 4.5rem);
  font-weight: 700;
  line-height: 0.95;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

.contact-subtext {
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--text-primary);
  max-width: 520px;
  margin-bottom: 2.25rem;
}

.contact-cta-buttons {
  display: flex;
  gap: 0.85rem;
  align-items: center;
  flex-wrap: wrap;
}

.btn-contact-email {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 1.6rem;
  background: var(--text-primary);
  color: var(--text-inverse);
  font-size: 0.92rem;
  font-weight: 500;
  border-radius: var(--radius-xs);
  transition: all var(--transition-fast);
}

.btn-contact-email:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

.btn-contact-wa {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 1.5rem;
  background: var(--bg-canvas);
  color: var(--text-primary);
  font-size: 0.92rem;
  font-weight: 500;
  border: 1px solid var(--border-natural);
  border-radius: var(--radius-xs);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.btn-contact-wa:hover {
  background: var(--text-primary);
  color: var(--bg-canvas);
  border-color: var(--text-primary);
  transform: translateY(-1px);
}

.contact-right-col {
  display: flex;
  flex-direction: column;
}

.contact-links-list {
  display: flex;
  flex-direction: column;
  margin-top: 0.75rem;
}

.contact-link-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1rem;
  border-bottom: 1px solid var(--border-natural);
  font-size: 0.95rem;
  color: var(--text-primary);
  transition: all var(--transition-fast);
}

.contact-link-row:hover {
  color: var(--accent-blue);
  padding-left: 0.35rem;
}

.stage-footer-bar {
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-natural);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: var(--text-secondary);
}

/* --- 11. SIDE STAGE DOTS NAVIGATION --- */
.stage-nav-dots {
  position: fixed;
  right: 1.75rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  z-index: 90;
}

.stage-dot-btn {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--border-natural);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all var(--transition-base);
  position: relative;
}

.stage-dot-btn:hover {
  background: var(--text-secondary);
  transform: scale(1.3);
}

.stage-dot-btn.active {
  background: var(--text-primary);
  height: 22px;
  border-radius: 4px;
}

/* Tooltip for dots */
.stage-dot-btn::before {
  content: attr(data-label);
  position: absolute;
  right: 1.75rem;
  top: 50%;
  transform: translateY(-50%) translateX(6px);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-primary);
  background: rgba(243, 241, 234, 0.96);
  border: 1px solid var(--border-natural);
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-xs);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all var(--transition-fast);
}

.stage-dot-btn:hover::before {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

/* --- 12. MODAL DIALOG (PROJECT CASE STUDY) --- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(23, 23, 20, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: var(--bg-canvas);
  border: 1px solid var(--border-natural);
  border-radius: var(--radius-sm);
  max-width: 640px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 50px rgba(23, 23, 20, 0.3);
  position: relative;
  padding: 2rem;
  transform: translateY(12px);
  transition: transform var(--transition-base);
}

.modal-overlay.active .modal-card {
  transform: translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border-natural);
  display: grid;
  place-items: center;
  color: var(--text-primary);
  transition: background var(--transition-fast);
}

.modal-close-btn:hover {
  background: var(--bg-subtle);
}

.modal-tag {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.modal-project-title {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.modal-project-desc {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text-secondary);
  margin-bottom: 1.75rem;
}

.modal-features-box {
  background: var(--bg-subtle);
  border: 1px solid var(--border-natural);
  border-radius: var(--radius-xs);
  padding: 1.25rem;
  margin-bottom: 2rem;
}

.modal-features-box h4 {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.modal-features-box ul {
  list-style: disc;
  padding-left: 1.25rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

.gallery-thumb-chip {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 0.28rem 0.65rem;
  background: var(--bg-subtle);
  border: 1px solid var(--border-natural);
  border-radius: var(--radius-xs);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.gallery-thumb-chip:hover {
  background: #ffffff;
  color: var(--text-primary);
  border-color: var(--text-primary);
}

.gallery-thumb-chip.active {
  background: var(--text-primary);
  color: var(--bg-canvas);
  border-color: var(--text-primary);
}

/* Toast */
.toast-msg {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--text-primary);
  color: var(--text-inverse);
  padding: 0.85rem 1.35rem;
  border-radius: var(--radius-xs);
  font-size: 0.85rem;
  font-weight: 500;
  box-shadow: 0 10px 25px rgba(23, 23, 20, 0.25);
  z-index: 1100;
  transform: translateY(60px);
  opacity: 0;
  pointer-events: none;
  transition: all var(--transition-base);
}

.toast-msg.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* --- 13. RESPONSIVE MEDIA QUERIES --- */
@media (max-width: 960px) {
  .hero-vertical-tag {
    display: none;
  }

  /* Mobile Kasual Background: Pure crisp white behind typography (so name is 100% visible), noir black behind photo */
  #stageHero::before {
    background:
      /* Top Area: Pure white across the entire typography zone (PUTU AGUS RAMA, bio, buttons, quote) */
      radial-gradient(ellipse 130% 60% at 50% 10%, #ffffff 0%, #ffffff 68%, rgba(255, 255, 255, 0.95) 82%, transparent 100%),
      /* Bottom Area: Deep noir obsidian shadow centered behind the photo stack */
      radial-gradient(ellipse 90% 45% at 50% 74%, rgba(0, 0, 0, 0.96) 0%, rgba(14, 14, 14, 0.85) 45%, transparent 80%),
      radial-gradient(ellipse 65% 35% at 15% 80%, rgba(0, 0, 0, 0.92) 0%, transparent 75%),
      radial-gradient(ellipse 65% 35% at 85% 80%, rgba(0, 0, 0, 0.92) 0%, transparent 75%),
      /* Smooth Vertical Spectrum: Pure white across top 44%, transitioning smoothly behind photo stack, and back to white at bottom bar */
      linear-gradient(180deg, #ffffff 0%, #ffffff 42%, #dcdcdc 49%, #1a1a1a 62%, #080808 76%, #181818 88%, #ffffff 98%);
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    padding-left: 0;
  }

  .editorial-hero-headline {
    font-size: clamp(2.8rem, 7.5vw, 4.2rem);
  }

  .hero-content-col {
    transform: none !important;
    justify-self: start;
    max-width: 100%;
  }

  .hero-visual-col {
    transform: none !important;
    justify-self: center;
    align-items: center;
    max-width: 100%;
    margin-top: 1.5rem;
  }

  .tech-icons-row {
    margin-bottom: 0.5rem;
  }

  .hero-photo-frame,
  .hero-photo-frame.editorial-photo-frame {
    width: 100%;
    max-width: 230px;
    height: clamp(175px, 25vh, 225px);
    margin-inline: auto;
    margin-bottom: 0.5rem;
  }

  .hero-photo-frame.editorial-photo-frame .hero-photo {
    object-position: center 20%;
  }

  .hero-bottom-bar {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    margin-top: 0.5rem;
  }

  .project-stage-card {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .project-item-view,
  .landing-item-view,
  .tools-item-view {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .project-collection-nav,
  .landing-collection-nav,
  .tools-collection-nav {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.65rem;
    width: 100%;
  }

  .project-collection-header-row {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding-inline: 0.25rem;
  }

  .project-collection-badge,
  .landing-collection-badge,
  .tools-collection-badge {
    justify-content: flex-start;
    text-align: left;
    font-size: 0.65rem;
  }

  .project-strip-controls {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    flex-shrink: 0;
  }

  .strip-arrow-btn {
    width: 24px;
    height: 24px;
  }

  .project-active-tagline {
    font-size: 0.7rem;
    padding: 0.15rem 0.55rem;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .project-active-tagline .active-tagline-title {
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .project-visual-strip {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    padding: 0.35rem 0.45rem;
    margin-inline: auto;
    justify-content: flex-start;
    gap: 0.45rem;
    scroll-snap-type: x proximity;
  }

  .project-visual-strip::-webkit-scrollbar {
    display: none;
  }

  .thumb-preview {
    width: 56px;
    height: 38px;
  }

  .thumb-label {
    max-width: 58px;
    font-size: 0.6rem;
  }

  .project-sub-switcher,
  .landing-sub-switcher,
  .tools-sub-switcher {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0.28rem 0.5rem;
    margin-inline: auto;
    justify-content: flex-start;
  }

  .project-sub-switcher::-webkit-scrollbar,
  .landing-sub-switcher::-webkit-scrollbar,
  .tools-sub-switcher::-webkit-scrollbar {
    display: none;
  }

  .browser-viewport {
    height: 220px;
  }

  .screen-stage {
    align-items: flex-start;
    justify-content: flex-start;
    padding-top: 0.75rem;
    padding-bottom: 5rem;
  }

  .stage-inner {
    margin-block: 0;
    min-height: min-content;
    justify-content: flex-start;
    padding-inline: 1.5rem;
  }

  #stageProfile .stage-inner {
    padding-top: 0.75rem;
    padding-bottom: 5.5rem;
  }

  .profile-core-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .principles-row {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .experience-rows {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .stage-nav-dots {
    display: none;
  }
}

@media (max-width: 640px) {
  /* Brand Link Smooth Shift to Right Edge */
  .brand-link {
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
                color 0.25s ease;
    will-change: transform;
    z-index: 101;
    position: relative;
  }

  /* Mobile Toggle Button with SVG Morphing */
  .btn-mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    color: var(--text-primary);
    background: transparent;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
                background-color 0.2s ease;
    will-change: transform;
    z-index: 101;
    position: relative;
  }

  .btn-mobile-toggle:active {
    background: rgba(23, 23, 20, 0.08);
  }

  .btn-mobile-toggle svg {
    overflow: visible;
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .btn-mobile-toggle svg line {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.25s ease;
    transform-origin: 12px 12px;
  }

  /* When Menu is Open: Slide PAGRAM to Right, Button to Left, Morph to X */
  .site-nav.menu-open .brand-link {
    transform: translate3d(var(--brand-shift, 0px), 0, 0);
  }

  .site-nav.menu-open .btn-mobile-toggle {
    transform: translate3d(calc(-1 * var(--btn-shift, 0px)), 0, 0);
  }

  .site-nav.menu-open .btn-mobile-toggle .nav-bar-top {
    transform: translateY(6px) rotate(45deg);
  }

  .site-nav.menu-open .btn-mobile-toggle .nav-bar-mid {
    opacity: 0;
    transform: scaleX(0);
  }

  .site-nav.menu-open .btn-mobile-toggle .nav-bar-bot {
    transform: translateY(-6px) rotate(-45deg);
  }

  /* Mobile Dropdown Panel: Right-Aligned Sejajar with PAGRAM */
  .nav-links {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background: rgba(243, 241, 234, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-natural);
    flex-direction: column;
    padding: 1.5rem 1.25rem 2rem;
    gap: 1.25rem;
    align-items: flex-end; /* Align to the right edge matching PAGRAM */
    box-shadow: 0 16px 36px rgba(23, 23, 20, 0.08);
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                visibility 0.35s ease;
    pointer-events: none;
    display: flex;
  }

  .nav-links.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }

  body:has(#stageHero.is-kasual-mode) .nav-links {
    background: rgba(255, 255, 255, 0.98);
  }

  .nav-links .nav-link-btn {
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--text-muted);
    padding: 0.25rem 0;
    letter-spacing: 0.02em;
    text-align: right;
    position: relative;
    transition: color 0.2s ease, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
    transform: translateX(12px);
    opacity: 0;
  }

  .nav-links.open .nav-link-btn {
    transform: translateX(0);
    opacity: 1;
  }

  .nav-links.open .nav-link-btn:nth-child(1) { transition-delay: 0.05s; }
  .nav-links.open .nav-link-btn:nth-child(2) { transition-delay: 0.10s; }
  .nav-links.open .nav-link-btn:nth-child(3) { transition-delay: 0.15s; }
  .nav-links.open .nav-link-btn:nth-child(4) { transition-delay: 0.20s; }

  .nav-links .nav-link-btn.active {
    color: var(--text-primary);
    font-weight: 600;
  }

  .nav-links .nav-link-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    right: 0;
    left: auto;
    width: 100%;
    height: 2px;
    background: var(--text-primary);
    border-radius: 1px;
  }

  .container {
    padding-inline: 1.25rem;
  }

  .stage-inner {
    padding-inline: 1.15rem;
  }

  .screen-stage {
    padding-top: 0.5rem;
    padding-bottom: 5.5rem;
  }

  #stageHero {
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0;
  }

  #stageHero .stage-inner {
    padding-top: 0.75rem;
    padding-bottom: max(1.25rem, env(safe-area-inset-bottom, 1.25rem));
    padding-inline: 1.25rem;
    min-height: calc(100dvh - var(--header-height));
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-sizing: border-box;
  }

  .hero-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
    padding-left: 0;
  }

  .hero-content-col {
    width: 100%;
    max-width: 100%;
    margin-bottom: 0.5rem;
  }

  .editorial-hero-headline {
    font-size: clamp(2.65rem, 12vw, 4.1rem);
    line-height: 0.92;
    letter-spacing: 0.01em;
    margin-bottom: 0.75rem;
    width: 100%;
  }

  .editorial-hero-headline .headline-part {
    display: block;
    white-space: nowrap;
  }

  .hero-grid.is-inverted .editorial-hero-headline {
    font-size: clamp(1.9rem, 8.2vw, 2.95rem);
    line-height: 0.92;
    letter-spacing: -0.03em;
  }

  .hero-bio-wrapper {
    margin-bottom: 0.85rem;
    min-height: auto;
  }

  .hero-bio {
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--text-secondary);
    letter-spacing: 0.01em;
  }

  .hero-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
  }

  .hero-actions .btn-dark,
  .hero-actions .btn-natural {
    padding: 0.55rem 1.15rem;
    font-size: 0.82rem;
    font-weight: 500;
  }

  /* Submeta: Remove cluttered desktop border & hide philosophy quote on mobile for breathing room */
  .hero-submeta {
    border-top: none;
    padding-top: 0;
    margin-top: 0;
    margin-bottom: 0.5rem;
  }

  .philosophy-quote,
  .hero-submeta .philosophy-quote,
  .hero-grid.is-inverted .hero-submeta .philosophy-quote {
    display: none !important; /* Eliminated redundant tagline clutter on mobile for design breathing room */
  }

  .tech-icons-row {
    display: flex;
    align-items: center;
    gap: 1.15rem;
    opacity: 0.75;
    margin-bottom: 0.35rem;
  }

  .tech-icon-item svg {
    width: 20px;
    height: 20px;
  }

  /* Visual Column: Centered Editorial 4:5 Portrait Frame */
  .hero-visual-col {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 0.75rem;
    margin-bottom: 1.25rem;
    flex: 1;
  }

  .hero-photo-frame,
  .hero-photo-frame.editorial-photo-frame {
    width: 100%;
    max-width: 270px;
    height: 335px;
    border-radius: var(--radius-sm);
    box-shadow: 0 16px 42px rgba(0, 0, 0, 0.14);
    margin-inline: auto;
    margin-top: 0;
    margin-bottom: 0;
  }

  /* Bottom Bar with intentional breathing space and top border */
  .hero-bottom-bar {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-top: 1rem;
    padding-top: 0.85rem;
    padding-bottom: max(0.85rem, env(safe-area-inset-bottom, 0.85rem));
    border-top: 1px solid rgba(23, 23, 20, 0.08);
    box-sizing: border-box;
    flex-shrink: 0;
    gap: 0.5rem;
  }

  #stageHero.is-kasual-mode .hero-bottom-bar {
    border-top-color: rgba(23, 23, 20, 0.1);
  }

  #stageHero.is-kasual-mode .scroll-hint-bar {
    color: var(--text-secondary);
  }

  #stageHero.is-kasual-mode .scroll-hint-bar .scroll-hint-arrow {
    color: #4d7c0f;
  }

  .hint-desktop {
    display: none;
  }

  .hint-mobile {
    display: inline;
  }

  .scroll-hint-bar {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    white-space: nowrap;
    flex-shrink: 0;
  }

  .scroll-hint-text {
    white-space: nowrap;
  }

  .hero-slide-switcher {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.22rem 0.4rem;
    background: rgba(23, 23, 20, 0.04);
    border: 1px solid var(--border-natural);
    border-radius: 999px;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .hero-slide-pill {
    font-size: 0.68rem;
    font-weight: 600;
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
  }

  .hero-slide-sep {
    font-size: 0.65rem;
    opacity: 0.5;
  }



  .section-top-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  #stageWork .section-top-header {
    margin-bottom: 1.1rem;
  }

  .work-header-right {
    flex-direction: column;
    align-items: stretch;
    gap: 0.6rem;
    width: 100%;
  }

  .project-tabs-pills {
    width: 100%;
    display: flex;
    align-items: stretch;
    gap: 0.35rem;
    padding: 0.28rem;
    background: var(--bg-subtle);
    border-radius: var(--radius-xs);
    border: 1px solid var(--border-natural);
    box-sizing: border-box;
  }

  .project-tabs-pills .project-tab-pill {
    flex: 1 1 0;
    min-width: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0.48rem 0.6rem;
    font-size: 0.8rem;
    border-radius: 4px;
    white-space: nowrap;
    letter-spacing: 0.01em;
  }

  .section-counter-tag {
    font-size: 0.68rem;
    text-align: left;
    opacity: 0.75;
  }

  /* Stage 2 Profile & Experience Mobile Optimization */
  #stageProfile .stage-inner {
    padding-top: 0.35rem;
    padding-bottom: 6rem;
  }

  #stageProfile .section-top-header {
    padding-bottom: 0.4rem;
    margin-bottom: 0.5rem;
  }

  #stageProfile .section-title-khand {
    font-size: 2.1rem;
    line-height: 1;
  }

  .profile-statement {
    font-size: 1.15rem;
    line-height: 1.25;
    margin-bottom: 0.4rem;
  }

  .profile-lead-narrative {
    font-size: 0.8rem;
    line-height: 1.42;
    margin-bottom: 0.75rem;
  }

  .profile-core-grid {
    gap: 1.25rem;
    margin-bottom: 0.85rem;
  }

  .principles-row {
    gap: 0.65rem;
  }

  .principle-box {
    padding: 0.75rem 0.85rem;
  }

  .principle-title {
    font-size: 1.12rem;
  }

  .principle-desc {
    font-size: 0.76rem;
    line-height: 1.42;
  }

  .index-meta-label {
    font-size: 0.68rem;
    margin-bottom: 0.65rem;
  }

  .capability-list {
    gap: 0.75rem;
  }

  .capability-item {
    padding-bottom: 0.45rem;
  }

  .capability-title {
    font-size: 0.84rem;
  }

  .capability-detail {
    font-size: 0.74rem;
    line-height: 1.38;
  }

  .experience-sub-section {
    padding-top: 0.65rem;
    margin-top: 0.25rem;
  }

  .sub-section-tab-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
    margin-bottom: 0.65rem;
  }

  .sub-tab-pills {
    width: 100%;
    display: flex;
  }

  .sub-tab-pill {
    flex: 1;
    text-align: center;
    padding: 0.45rem 0.35rem;
    font-size: 0.62rem;
    letter-spacing: 0.03em;
    white-space: nowrap;
  }

  .sub-section-hint {
    font-size: 0.6rem;
    text-align: right;
  }

  .experience-rows {
    gap: 0.6rem;
  }

  .experience-row-item {
    padding: 0.65rem 0.8rem;
    gap: 0.2rem;
  }

  .exp-role-title {
    font-size: 0.84rem;
  }

  .exp-company {
    font-size: 0.72rem;
  }

  .exp-period {
    font-size: 0.68rem;
  }
}

@media (max-width: 380px) {
  .hero-bottom-bar {
    gap: 0.35rem;
    padding-top: 0.65rem;
    margin-top: 1rem;
  }

  .scroll-hint-bar {
    font-size: 0.6rem;
    gap: 0.3rem;
  }

  .hero-photo-frame,
  .hero-photo-frame.editorial-photo-frame {
    max-width: 235px;
    height: 290px;
  }
}