/* ==============================================================================
   KHALIEF ATTAR SANJAYA | MODERN BENTO EDITORIAL PORTFOLIO
   Design System: Deep Navy + Cyan Accent + Crisp White + Bento Grid Structure
   Zero Bloat • Accessible (WCAG AA) • Fluid Responsive Typography
   ============================================================================== */

@font-face {
  font-family: 'Thicccboi';
  src: url('regular.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'Thicccboi';
  src: url('medium.woff2') format('woff2');
  font-weight: 500 700;
  font-display: swap;
}

:root {
  --font-sans: 'Thicccboi', -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, Menlo, Monaco, Consolas, monospace;

  /* Palette: Inspired by attar.ai.id & Modern Bento Aesthetics */
  --bg-primary: #ffffff;
  --bg-secondary: #f7f9fa;
  --bg-tertiary: #edf2f6;
  --bg-card: #ffffff;
  
  --navy-dark: #0f1f33;
  --navy-primary: #1b385e;
  --navy-secondary: #244673;
  --navy-light: #e8f0f8;
  
  --teal-primary: #167a84;
  --teal-accent: #268f9a;
  --cyan-vivid: #38bdf8;
  --cyan-soft: #a5f3fc;
  
  --text-primary: #19232d;
  --text-secondary: #4a5764;
  --text-muted: #748393;
  --text-light: #94a3b8;
  --text-inverse: #ffffff;
  --text-inverse-muted: #d2e1ed;
  
  --border-light: #e5ebf0;
  --border-subtle: rgba(255, 255, 255, 0.12);
  --border-active: #268f9a;

  --shadow-sm: 0 2px 8px rgba(15, 31, 51, 0.04);
  --shadow-md: 0 8px 24px rgba(15, 31, 51, 0.06);
  --shadow-lg: 0 16px 40px rgba(15, 31, 51, 0.09);
  --shadow-glow: 0 0 30px rgba(56, 189, 248, 0.2);

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-pill: 9999px;

  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: 0.2s ease;
  --transition-normal: 0.35s var(--ease-spring);
  --transition-slow: 0.6s var(--ease-spring);

  --max-width: 1200px;
}

/* Base Reset & Core Styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  max-width: 100vw;
  overflow-x: clip;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  max-width: 100vw;
  overflow-x: clip;
  touch-action: manipulation;
}

@supports not (overflow: clip) {
  html, body {
    overflow-x: hidden;
  }
}

/* Universal safe box-sizing & media defaults */
img, svg, video, canvas {
  max-width: 100%;
  height: auto;
  box-sizing: border-box;
}

/* Prevent unwanted zoom jumps on mobile form elements */
input, select, textarea, button {
  touch-action: manipulation;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast), border-color var(--transition-fast);
}

button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
  color: inherit;
}

img, svg {
  max-width: 100%;
  display: block;
}

/* Accessible Keyboard Focus Ring */
:focus-visible {
  outline: 2px solid var(--teal-accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Container Wrapper */
.wrap {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(20px, 4vw, 36px);
  padding-right: clamp(20px, 4vw, 36px);
}

.section-spacing {
  padding-top: clamp(60px, 8vw, 110px);
  padding-bottom: clamp(60px, 8vw, 110px);
}

/* Typography Hierarchy */
h1, h2, h3, h4, h5 {
  color: var(--text-primary);
  line-height: 1.18;
  letter-spacing: -0.02em;
  font-weight: 600;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1 {
  font-size: clamp(34px, 4.2vw, 58px);
}

h2 {
  font-size: clamp(28px, 3.4vw, 44px);
  margin-bottom: 20px;
}

h3 {
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 600;
}

p {
  color: var(--text-secondary);
  font-size: clamp(15px, 1.1vw, 16.5px);
  line-height: 1.7;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--teal-accent);
  margin-bottom: 16px;
}

.eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  background-color: var(--teal-accent);
  border-radius: 50%;
}

/* ==============================================================================
   WELCOME SCREEN (Multi-Language Cycling Transition)
   ============================================================================== */
#welcome {
  position: fixed;
  inset: 0;
  background-color: #ffffff;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.65s;
  pointer-events: auto;
}

#welcome.done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.welcome-inner {
  display: flex;
  align-items: center;
  gap: 14px;
}

.welcome-dot {
  width: 12px;
  height: 12px;
  background-color: var(--teal-accent);
  border-radius: 50%;
  box-shadow: 0 0 16px rgba(38, 143, 154, 0.6);
  animation: pulse-dot 1.2s infinite alternate ease-in-out;
}

@keyframes pulse-dot {
  0% { transform: scale(0.9); opacity: 0.6; }
  100% { transform: scale(1.3); opacity: 1; }
}

#greeting {
  font-size: clamp(32px, 6vw, 64px);
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--navy-dark);
}

.welcome-meta {
  position: absolute;
  bottom: 40px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
}

/* ==============================================================================
   HEADER & NAVIGATION (Attar Systems Anatomy)
   ============================================================================== */
header {
  height: 90px;
  max-width: 1120px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 26px;
  background: transparent;
  position: relative;
  z-index: 10;
}

#nav {
  display: flex;
  gap: 48px;
  font-size: 15px;
  font-weight: 500;
}

#nav a {
  color: #292d32;
  text-decoration: none;
  transition: color var(--transition-fast);
}

#nav a:hover {
  color: var(--teal-accent);
}

#menu {
  display: none;
  background: none;
  border: 0;
  font-size: 14px;
  font-weight: 600;
  color: #292d32;
  cursor: pointer;
}

/* ==============================================================================
   HERO SECTION (Attar Systems Anatomy)
   ============================================================================== */
.hero {
  min-height: calc(100svh - 90px);
  max-height: 1100px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 40px 0 70px 7vw;
  background: #ffffff;
}

.hero-copy {
  width: 51%;
  max-width: 740px;
  position: relative;
  z-index: 1;
}

.hello {
  font-size: 29px;
  color: #292d32;
  margin-bottom: 20px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  user-select: none;
}

.hello-hand {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  vertical-align: middle;
  transform-origin: 50% 85%;
  transition: transform 180ms cubic-bezier(0.16, 1, 0.3, 1);
}

.hello:hover .hello-hand {
  transform: scale(1.12);
}

.name {
  width: min(390px, 80%);
  height: auto;
  margin: 0 0 22px -6px;
  display: block;
}

.hero h1 {
  font-size: clamp(24px, 2.6vw, 39px);
  font-weight: 500;
  line-height: 1.26;
  letter-spacing: -0.025em;
  color: #292d32;
  margin: 0;
}

/* ==============================================================================
   HERO ACTIONS & TAGLINE (Apple Design & Awwwards Refinement)
   ============================================================================== */
.hero-tagline {
  margin-top: 22px;
  font-size: 15.5px;
  max-width: 440px;
  color: #555e65;
  line-height: 1.6;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 32px;
}

.hero-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  background: #1d1d1f;
  color: #ffffff;
  border-radius: 980px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  letter-spacing: -0.01em;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: background 180ms cubic-bezier(0.16, 1, 0.3, 1),
              transform 180ms cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 180ms cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-btn-primary:hover {
  background: #0071e3;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 113, 227, 0.28);
}

.hero-btn-primary:active {
  transform: scale(0.96);
  transition: transform 80ms ease-out;
}

.hero-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 22px;
  background: rgba(0, 0, 0, 0.04);
  color: #1d1d1f;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 980px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  letter-spacing: -0.01em;
  transition: background 180ms cubic-bezier(0.16, 1, 0.3, 1),
              border-color 180ms cubic-bezier(0.16, 1, 0.3, 1),
              color 180ms cubic-bezier(0.16, 1, 0.3, 1),
              transform 180ms cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-btn-secondary:hover {
  background: rgba(0, 0, 0, 0.07);
  border-color: rgba(0, 0, 0, 0.16);
  color: #000000;
  transform: translateY(-1px);
}

.hero-btn-secondary:active {
  transform: scale(0.96);
  transition: transform 80ms ease-out;
}

/* Legacy Fallbacks */
.subtitle {
  margin-top: 24px;
  font-size: 15px;
  max-width: 380px;
  color: #555e65;
  line-height: 1.6;
}

.actions {
  display: flex;
  gap: 25px;
  align-items: center;
  margin-top: 30px;
  font-size: 14.5px;
  font-weight: 500;
}

.actions a:first-child {
  color: #292d32;
  border-bottom: 1px solid #292d32;
  padding-bottom: 6px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: color var(--transition-fast), border-color var(--transition-fast);
}

.actions a:first-child span {
  margin-left: 18px;
}

.actions a:first-child:hover {
  color: var(--teal-accent);
  border-color: var(--teal-accent);
}

.actions .subtle {
  color: #68757e;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.actions .subtle:hover {
  color: var(--teal-accent);
}

.hero-portrait {
  position: absolute;
  right: clamp(32px, 16vw, 320px);
  bottom: 0;
  width: auto;
  height: 94%;
  max-height: 840px;
  margin: 0;
  z-index: 0;
  pointer-events: none;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.hero-portrait > img {
  height: 100%;
  width: auto;
  max-width: 50vw;
  max-height: 840px;
  object-fit: contain;
  object-position: center bottom;
  display: block;
  filter: drop-shadow(4px 20px 35px rgba(15, 23, 42, 0.08))
          drop-shadow(0 4px 12px rgba(15, 23, 42, 0.05));
  transition: filter var(--transition-normal);
}

.scroll {
  position: absolute;
  bottom: 25px;
  left: 7vw;
  font-size: 10px;
  letter-spacing: 2px;
  color: #8896a2;
  text-decoration: none;
  font-weight: 600;
  text-transform: uppercase;
  transition: color var(--transition-fast);
}

.scroll:hover {
  color: var(--teal-accent);
}

/* Quick Metrics Row for Bio Section */
.hero-stat-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 24px;
}

.stat-bento-card {
  background-color: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.stat-bento-card:hover {
  transform: translateY(-2px);
  border-color: var(--teal-accent);
}

.stat-number {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--navy-primary);
  margin-bottom: 4px;
}

.stat-label {
  font-size: 12.5px;
  color: var(--text-muted);
  font-weight: 500;
}

/* Mobile responsive reflow for Header & Hero */
@media (max-width: 650px) {
  header {
    height: 75px;
    justify-content: flex-end;
    padding: 0 20px;
  }

  #menu {
    display: block;
  }

  #nav {
    display: none;
    position: absolute;
    z-index: 100;
    top: 75px;
    left: 0;
    right: 0;
    background: white;
    padding: 25px;
    border-bottom: 1px solid #e5eaf0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    flex-direction: column;
    gap: 20px;
  }

  #nav.open {
    display: flex;
  }

  .hero {
    display: flex;
    flex-direction: column;
    padding: 20px 24px 60px;
    min-height: auto;
  }

  .hero-portrait {
    position: relative;
    inset: auto;
    order: -1;
    width: 100%;
    max-width: 360px;
    height: 380px;
    margin: -10px auto 24px;
    flex: none;
    display: flex;
    justify-content: center;
    align-items: flex-end;
  }

  .hero-portrait > img {
    width: auto;
    height: 100%;
    max-width: 100%;
    object-fit: contain;
    object-position: center bottom;
    filter: drop-shadow(2px 14px 24px rgba(15, 23, 42, 0.08))
            drop-shadow(0 3px 8px rgba(15, 23, 42, 0.04));
  }

  .hero-copy {
    width: 100%;
    max-width: 100%;
    order: 0;
  }

  .hero h1 {
    font-size: 24px;
    line-height: 1.25;
  }

  .hero .name {
    width: 240px;
  }

  .hero .hello {
    font-size: 25px;
    gap: 10px;
  }

  .hello-hand {
    width: 28px;
    height: 28px;
  }

  .hero-actions {
    flex-wrap: wrap;
    gap: 12px;
  }

  .hero-btn-primary,
  .hero-btn-secondary {
    padding: 11px 20px;
    font-size: 13.5px;
  }

  .scroll {
    display: none;
  }
}


/* ==============================================================================
   ABOUT & BIO SECTION (Attar Systems Clean Ratio)
   ============================================================================== */
.bio-section {
  background-color: #f8fafc;
  border-top: none;
  border-bottom: none;
}

.bio-split {
  display: grid;
  grid-template-columns: minmax(320px, 360px) 1fr;
  column-gap: clamp(48px, 6vw, 84px);
  align-items: start;
}

.bio-sidebar {
  display: flex;
  flex-direction: column;
}

.bio-photo-card {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 10px 30px -4px rgba(15, 23, 42, 0.08);
  background: #ffffff;
  border: none;
}

.bio-photo {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center 15%;
  display: block;
  transition: transform 300ms cubic-bezier(0.16, 1, 0.3, 1);
}

.bio-photo-card:hover .bio-photo {
  transform: scale(1.02);
}

.bio-meta-list {
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin-top: 26px;
  padding: 0;
}

.bio-meta-item {
  display: grid;
  grid-template-columns: 88px 1fr;
  column-gap: 16px;
  align-items: baseline;
  font-size: 13px;
  line-height: 1.5;
}

.bio-meta-item dt {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: normal;
  text-transform: none;
  color: #1d1d1f;
  margin: 0;
}

.bio-meta-item dd {
  font-size: 13px;
  color: #555e65;
  font-weight: 400;
  line-height: 1.5;
  margin: 0;
}

.bio-content h2 {
  font-size: clamp(34px, 4vw, 44px);
  font-weight: 600;
  letter-spacing: -0.035em;
  color: #1d1d1f;
  margin: 0 0 16px 0;
  line-height: 1.15;
}

.bio-tagline {
  font-size: clamp(20px, 2.2vw, 26px);
  color: #1d1d1f;
  font-weight: 600;
  line-height: 1.28;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.bio-text-group p {
  font-size: 14.5px;
  line-height: 1.68;
  color: #4b5563;
  margin-bottom: 18px;
}

.bio-text-group p:last-child {
  margin-bottom: 0;
}

.bio-text-group strong {
  color: #1d1d1f;
  font-weight: 600;
}

/* ==============================================================================
   CAPABILITIES / WHAT I DO (Attar Systems Clean Layout)
   ============================================================================== */
.capabilities-section {
  background-color: #ffffff;
}

.capabilities-title {
  font-size: clamp(34px, 4.2vw, 48px);
  font-weight: 600;
  letter-spacing: -0.035em;
  color: var(--navy-dark);
  margin-bottom: clamp(40px, 5.5vw, 68px);
}

.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: clamp(32px, 5vw, 76px);
  row-gap: clamp(44px, 6vw, 64px);
}

.capability-card {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  transition: transform var(--transition-fast);
}

.capability-icon {
  width: 44px;
  height: 44px;
  background: transparent;
  border-radius: 0;
  padding: 0;
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  transition: transform var(--transition-normal);
}

.capability-card:hover .capability-icon {
  transform: translateY(-3px) scale(1.08);
}

.capability-icon svg {
  width: 100%;
  height: 100%;
}

.capability-card h3 {
  font-size: clamp(19px, 1.7vw, 22px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin-bottom: 12px;
  color: var(--navy-dark);
  transition: color var(--transition-fast);
}

.capability-card:hover h3 {
  color: var(--teal-accent);
}

.capability-card p {
  font-size: clamp(14px, 1.05vw, 15px);
  color: #556980;
  line-height: 1.68;
  max-width: 380px;
  margin: 0;
}

.project-visual .kubai-host {
  width: 110px;
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-normal);
}

.project-card:hover .project-visual .kubai-host {
  transform: scale(1.14);
}

/* ==============================================================================
   PROGRAMMING SKILLS & CREATIVE TOOLS (Attar Systems Anatomy)
   ============================================================================== */
.skills-section {
  background-color: #ffffff;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.tech-section-title {
  text-align: center;
  font-size: clamp(24px, 2.8vw, 32px);
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--navy-dark);
  margin-bottom: clamp(32px, 4.5vw, 50px);
}

.skills-block {
  margin-bottom: clamp(64px, 8vw, 100px);
}

.tech-skills-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(24px, 4.5vw, 60px);
  flex-wrap: wrap;
}

.tech-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: transform var(--transition-fast);
}

.tech-item:hover {
  transform: translateY(-5px);
}

.tech-icon-wrap {
  width: clamp(40px, 4.5vw, 50px);
  height: clamp(40px, 4.5vw, 50px);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-fast);
}

.tech-icon-wrap.tech-icon-wide {
  width: clamp(54px, 6vw, 68px);
}

.tech-item:hover .tech-icon-wrap {
  transform: scale(1.12);
}

.tech-icon-wrap img,
.tech-icon-wrap svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.tech-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--navy-dark);
  letter-spacing: -0.01em;
  transition: color var(--transition-fast);
}

.tech-item:hover .tech-name {
  color: var(--teal-accent);
}

/* Tools Category Grid with Clean Thin Dividers */
.tools-category-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: clamp(36px, 6vw, 90px);
  row-gap: 0;
}

.tool-category-card {
  padding: clamp(28px, 4vw, 42px) 0;
  border-bottom: 1px solid #e5eaf0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.tool-cat-header {
  margin-bottom: 22px;
}

.tool-cat-header h3 {
  font-size: 17.5px;
  font-weight: 600;
  color: var(--navy-dark);
  margin-bottom: 5px;
  letter-spacing: -0.02em;
}

.tool-cat-sub {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.4;
  margin: 0;
}

.tool-icons-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(22px, 3.8vw, 44px);
  flex-wrap: wrap;
}

/* ==============================================================================
   EDITORIAL MANIFESTO ("Building Across Boundaries")
   ============================================================================== */
.editorial-wrap {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(36px, 5vw, 80px);
  align-items: center;
}

.editorial-quote {
  font-size: clamp(24px, 2.9vw, 38px);
  line-height: 1.25;
  color: var(--navy-dark);
  font-weight: 700;
  letter-spacing: -0.03em;
  border-left: 4px solid var(--teal-accent);
  padding-left: 24px;
}

.editorial-body p {
  margin-bottom: 18px;
  font-size: 16px;
}

/* ==============================================================================
   PORTFOLIO (THE DEEP NAVY CANVAS `.blue-section`)
   Signature high-contrast aesthetic matching attar.ai.id
   ============================================================================== */
.blue-section {
  background-color: var(--navy-dark);
  color: #ffffff;
  padding-top: clamp(70px, 9vw, 120px);
  padding-bottom: clamp(70px, 9vw, 120px);
}

.blue-section h2 {
  color: #ffffff;
}

.blue-section .eyebrow {
  color: #93c5fd;
}

.blue-section .eyebrow::before {
  background-color: #93c5fd;
}

.blue-section .section-desc {
  color: var(--text-inverse-muted);
  max-width: 620px;
  font-size: 16.5px;
}

/* ==============================================================================
   PORTFOLIO & RESEARCH: 3D COVER FLOW FOLDER DECK
   (Authentic Horizontal Landscape Folders • Apple Cover Flow 3D Perspective)
   ============================================================================== */
.blue-section {
  background-color: #0d1a2d;
  color: #ffffff;
  padding-top: clamp(70px, 8vw, 110px);
  padding-bottom: clamp(60px, 7vw, 90px);
  position: relative;
  overflow: hidden;
  transition: padding 0.38s cubic-bezier(0.16, 1, 0.3, 1);
}

#portfolio.is-big-folder-active {
  padding-top: clamp(36px, 4.5vw, 56px);
  padding-bottom: clamp(48px, 6vw, 84px);
}

.blue-section .wrap {
  position: relative;
  z-index: 2;
}

#portfolio.is-big-folder-active .wrap {
  z-index: 3;
}

/* ==============================================================================
   SCATTERED MACOS FOLDERS (Atmospheric Peripheral Apple Folders)
   ============================================================================== */
.scattered-folders-canvas {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}

/* Dark Tint Overlay when Big Folder is Open (Section-contained) */
.big-folder-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 7, 18, 0.52);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  z-index: 2;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

#portfolio.is-big-folder-active .big-folder-backdrop {
  opacity: 1;
  pointer-events: auto;
  cursor: pointer;
}

#portfolio.is-big-folder-active .scattered-folders-canvas {
  opacity: 0.42;
  filter: blur(2px);
  transition: opacity 0.35s ease, filter 0.35s ease;
}

.scatter-folder-large {
  position: absolute;
  width: clamp(235px, 24vw, 275px);
  height: clamp(195px, 20vw, 230px);
  pointer-events: none;
  user-select: none;
  filter: drop-shadow(0 18px 36px rgba(0, 0, 0, 0.48));
  opacity: 0.62;
  transition: opacity 0.3s ease;
  will-change: transform;
  --shift-x: 0px;
  --shift-y: 0px;
}

.scatter-macos-svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Floating Animations (Gentle organic drifting) */
@keyframes folderFloatA {
  0%, 100% {
    transform: translate(var(--shift-x), var(--shift-y)) translateY(0px) rotate(var(--rot));
  }
  50% {
    transform: translate(var(--shift-x), var(--shift-y)) translateY(-8px) rotate(calc(var(--rot) + 1.6deg));
  }
}

@keyframes folderFloatB {
  0%, 100% {
    transform: translate(var(--shift-x), var(--shift-y)) translateY(0px) rotate(var(--rot));
  }
  50% {
    transform: translate(var(--shift-x), var(--shift-y)) translateY(7px) rotate(calc(var(--rot) - 1.8deg));
  }
}

@keyframes folderFloatC {
  0%, 100% {
    transform: translate(var(--shift-x), var(--shift-y)) translateY(0px) rotate(var(--rot));
  }
  50% {
    transform: translate(var(--shift-x), var(--shift-y)) translateY(-6px) rotate(calc(var(--rot) - 1.2deg));
  }
}

.scatter-folder-large.anim-A {
  animation: folderFloatA 6.0s ease-in-out infinite;
}

.scatter-folder-large.anim-B {
  animation: folderFloatB 6.8s ease-in-out infinite;
}

.scatter-folder-large.anim-C {
  animation: folderFloatC 5.4s ease-in-out infinite;
}

@media (max-width: 1024px) {
  .scatter-folder-large.hide-mobile {
    display: none !important;
  }
  .scatter-folder-large.keep-mobile {
    opacity: 0.38;
    transform: scale(0.85);
  }
}

@media (prefers-reduced-motion: reduce) {
  .scatter-folder-large {
    animation: none !important;
  }
}

.blue-section h2 {
  color: #ffffff;
}

.blue-section .eyebrow {
  color: #93c5fd;
}

.blue-section .eyebrow::before {
  background-color: #93c5fd;
}

.blue-section .section-desc {
  color: #cbd5e1;
  max-width: 620px;
  font-size: 16.5px;
}

.portfolio-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 24px;
  transition: opacity 0.32s cubic-bezier(0.16, 1, 0.3, 1),
              max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              margin 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  max-height: 250px;
  overflow: hidden;
}

#portfolio.is-big-folder-active .portfolio-header {
  opacity: 0;
  max-height: 0;
  margin-top: 0;
  margin-bottom: 0;
  padding: 0;
  pointer-events: none;
  transform: translateY(-20px) scale(0.96);
}

.portfolio-header-text {
  max-width: 620px;
  margin: 0 auto;
  text-align: center;
}

.portfolio-header-text h2 {
  font-size: clamp(34px, 4vw, 50px);
  font-weight: 600;
  letter-spacing: -0.022em;
  color: #ffffff;
  line-height: 1.16;
  margin-bottom: 12px;
  -webkit-font-smoothing: antialiased;
}

.portfolio-header-text .section-desc {
  font-size: clamp(15px, 1.15vw, 17px);
  font-weight: 400;
  color: rgba(220, 235, 255, 0.72);
  line-height: 1.6;
  max-width: 540px;
  margin: 0 auto;
  -webkit-font-smoothing: antialiased;
}

/* 3D Cover Flow Stage & Wrapper (Guaranteed Zero Horizontal Overflow) */
.coverflow-wrapper {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: 36px auto 0;
  perspective: 1200px;
  user-select: none;
  overflow-x: clip;
  transition: margin-top 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

#portfolio.is-big-folder-active .coverflow-wrapper {
  margin-top: 6px;
  margin-bottom: 0;
}

.coverflow-stage {
  position: relative;
  width: 100%;
  height: 310px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-style: preserve-3d;
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}

.coverflow-stage.is-dragging {
  cursor: grabbing;
}

.coverflow-stage.is-dragging .coverflow-card {
  transition: none !important;
}

.coverflow-stage.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.65) translateZ(-400px);
}

/* ==============================================================================
   BIG EXPANDED MACOS FOLDER VIEW (In-page expanded folder from carousel)
   ============================================================================== */
.coverflow-wrapper.is-big-folder-active .coverflow-stage {
  display: none;
}

.big-folder-view {
  display: none;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 10;
  perspective: 1000px;
}

.big-folder-view.active {
  display: block;
  animation: bigFolderFadeInScale 0.42s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.big-folder-view.closing {
  animation: bigFolderFadeOutScale 0.24s cubic-bezier(0.4, 0, 1, 1) forwards;
}

.big-folder-view .literal-folder-pocket {
  max-height: clamp(480px, 65vh, 600px);
}

@keyframes bigFolderFadeInScale {
  0% {
    opacity: 0;
    transform: scale(0.85) translateY(24px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes bigFolderFadeOutScale {
  0% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
  100% {
    opacity: 0;
    transform: scale(0.88) translateY(16px);
  }
}

/* ==============================================================================
   BIG EXPANDED MACOS FOLDER (Pixel-perfect scaled-up replica of coverflow folder)
   ============================================================================== */
.big-macos-folder-container {
  position: relative;
  width: 100%;
  max-width: 580px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.big-macos-folder-topbar {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 8px;
  z-index: 10;
}

.big-cover-tabs-bar {
  display: flex;
  align-items: flex-end;
  gap: 0;
}

.big-macos-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 20px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #ffffff;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.28);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.big-macos-back-btn:hover {
  background: rgba(255, 255, 255, 0.28);
  border-color: rgba(255, 255, 255, 0.55);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
}

/* Scaled-Up macOS Folder */
.macos-folder.is-big {
  position: relative;
  width: clamp(260px, 88vw, 540px);
  height: clamp(210px, 70vw, 450px);
  max-width: 100%;
  margin: 0 auto;
  cursor: default;
  transform: none !important;
  opacity: 1 !important;
  z-index: 5;
}

.macos-folder.is-big .macos-folder-back {
  border-radius: clamp(18px, 2.2vw, 24px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}

.macos-folder.is-big .macos-folder-tab {
  height: clamp(40px, 4.8vw, 54px);
  width: 48%;
  border-radius: clamp(14px, 1.6vw, 18px) clamp(14px, 1.6vw, 18px) 0 0;
  box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, 0.7);
}

.macos-folder.is-big .macos-folder-papers {
  top: clamp(16px, 1.9vw, 22px);
  left: clamp(14px, 1.6vw, 18px);
  right: clamp(14px, 1.6vw, 18px);
  height: clamp(54px, 6.4vw, 72px);
}

.macos-folder.is-big .macos-paper-sheet.sheet-1 {
  top: 0;
  left: clamp(14px, 1.6vw, 18px);
  right: clamp(14px, 1.6vw, 18px);
  height: clamp(32px, 3.8vw, 44px);
  border-radius: clamp(10px, 1.2vw, 14px) clamp(10px, 1.2vw, 14px) 0 0;
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-bottom: none;
}

.macos-folder.is-big .macos-paper-sheet.sheet-2 {
  top: clamp(12px, 1.5vw, 18px);
  left: clamp(5px, 0.7vw, 8px);
  right: clamp(5px, 0.7vw, 8px);
  height: clamp(38px, 4.6vw, 52px);
  border-radius: clamp(12px, 1.4vw, 16px) clamp(12px, 1.4vw, 16px) 0 0;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-bottom: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.16);
}

.macos-folder.is-big .macos-folder-front {
  top: clamp(52px, 6.2vw, 70px);
  border-radius: clamp(16px, 1.8vw, 22px) clamp(16px, 1.8vw, 22px) clamp(22px, 2.6vw, 30px) clamp(22px, 2.6vw, 30px);
  padding: clamp(28px, 3.4vw, 42px);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.75),
              inset 0 -4px 12px rgba(0, 0, 0, 0.22),
              0 24px 60px rgba(0, 0, 0, 0.55);
  border: 1.5px solid rgba(255, 255, 255, 0.45);
}

.macos-folder.is-big .macos-front-specular {
  height: 48%;
  border-radius: clamp(16px, 1.8vw, 22px) clamp(16px, 1.8vw, 22px) 0 0;
}

.macos-folder.is-big .macos-folder-icon {
  top: clamp(30px, 3.5vw, 44px);
  right: clamp(30px, 3.5vw, 44px);
  width: clamp(68px, 8vw, 92px);
  height: clamp(68px, 8vw, 92px);
}

.macos-folder.is-big .macos-folder-icon .kubai-host {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.38));
}

.macos-folder.is-big .macos-folder-meta {
  bottom: clamp(28px, 3.4vw, 40px);
  left: clamp(30px, 3.4vw, 42px);
  right: clamp(30px, 3.4vw, 42px);
}

.macos-folder.is-big .macos-folder-title {
  font-size: clamp(36px, 4.4vw, 54px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.1;
  text-shadow: 0 3px 10px rgba(0, 0, 0, 0.45);
}

.macos-folder.is-big .macos-folder-sub {
  font-size: clamp(14px, 1.5vw, 18px);
  font-weight: 600;
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.macos-folder.is-big .macos-folder-reflection {
  height: clamp(100px, 12vw, 140px);
  margin-top: 8px;
  opacity: 0.28;
}

.macos-folder.is-big .macos-folder-front-mirror {
  border-radius: clamp(16px, 1.8vw, 22px) clamp(16px, 1.8vw, 22px) clamp(22px, 2.6vw, 30px) clamp(22px, 2.6vw, 30px);
  padding: clamp(28px, 3.4vw, 42px);
}

.macos-folder.is-big .macos-folder-front-mirror .macos-folder-meta {
  bottom: clamp(28px, 3.4vw, 40px);
  left: clamp(30px, 3.4vw, 42px);
}

.macos-folder.is-big .macos-folder-front-mirror .macos-folder-title {
  font-size: clamp(36px, 4.4vw, 54px);
}

/* ==============================================================================
   AUTHENTIC MACOS FOLDER ICONS (Big Sur / Monterey / Sonoma Signature Aesthetic)
   ============================================================================== */
.coverflow-card.macos-folder {
  position: absolute;
  left: 50%;
  top: 50%;
  width: clamp(245px, 25vw, 280px);
  height: clamp(205px, 21vw, 235px);
  display: block;
  cursor: pointer;
  transition: transform 0.42s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.42s ease;
  will-change: transform, opacity;
  outline: none;
}

/* Zero-Glitch 3D Hardware Accelerated Reflection (Eliminates -webkit-box-reflect flicker) */
.macos-folder-reflection {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 85px;
  margin-top: 6px;
  transform: scaleY(-1);
  transform-origin: top center;
  pointer-events: none;
  overflow: hidden;
  border-radius: 18px 18px 0 0;
  opacity: 0.28;
  -webkit-mask-image: linear-gradient(to top, transparent 15%, rgba(0, 0, 0, 0.65) 65%, black 100%);
  mask-image: linear-gradient(to top, transparent 15%, rgba(0, 0, 0, 0.65) 65%, black 100%);
  filter: blur(0.4px);
  will-change: transform;
}

.macos-folder-front-mirror {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100%;
  border-radius: 14px 14px 20px 20px;
  padding: 24px;
}

.folder-research .macos-folder-front-mirror {
  background: linear-gradient(175deg, #5ea5ed 0%, #317cc7 45%, #1f64a7 100%);
}

.folder-game-dev .macos-folder-front-mirror {
  background: linear-gradient(175deg, #ab5cf6 0%, #822ece 45%, #5a198c 100%);
}

.folder-web-dev .macos-folder-front-mirror {
  background: linear-gradient(175deg, #fb923c 0%, #ea580c 45%, #9a3412 100%);
}

.macos-folder-front-mirror .macos-folder-meta {
  position: absolute;
  bottom: 22px;
  left: 22px;
}

.macos-folder-front-mirror .macos-folder-title {
  font-size: clamp(20px, 2.1vw, 24px);
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.macos-folder-depth-shade {
  position: absolute;
  inset: 0;
  border-radius: 18px;
  background: #040914;
  opacity: var(--card-shade, 0);
  pointer-events: none;
  transition: opacity 0.42s ease;
  z-index: 10;
}

/* 1. BACK FLAP WITH TOP-LEFT TAB */
.macos-folder-back {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 18px;
  z-index: 1;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}

.macos-folder-tab {
  position: absolute;
  top: 0;
  left: 0;
  width: 48%;
  height: 28px;
  border-radius: 12px 12px 0 0;
  z-index: 2;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

/* 2. STEPPED INNER PAPER SHEETS (Peeking out from the opening) */
.macos-folder-papers {
  position: absolute;
  top: 12px;
  left: 10px;
  right: 10px;
  height: 38px;
  z-index: 2;
  pointer-events: none;
}

.macos-paper-sheet {
  position: absolute;
  left: 0;
  right: 0;
  border-bottom: none;
}

.macos-paper-sheet.sheet-1 {
  top: 0;
  left: 12px;
  right: 12px;
  height: 22px;
  border-radius: 8px 8px 0 0;
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-bottom: none;
}

.macos-paper-sheet.sheet-2 {
  top: 10px;
  left: 4px;
  right: 4px;
  height: 26px;
  border-radius: 10px 10px 0 0;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-bottom: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

/* 3. FRONT FLAP (The signature glossy glass pocket) */
.macos-folder-front {
  position: absolute;
  top: 36px;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 14px 14px 20px 20px;
  z-index: 3;
  padding: 24px;
  box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, 0.75),
              inset 0 -3px 8px rgba(0, 0, 0, 0.2),
              0 16px 36px rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.45);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Specular curved reflection across the top of front flap */
.macos-front-specular {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 48%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0) 100%);
  pointer-events: none;
  border-radius: 14px 14px 0 0;
}

/* Right-aligned Icon */
.macos-folder-icon {
  position: absolute;
  top: 26px;
  right: 24px;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 4;
}

.macos-folder-icon .kubai-host {
  width: 50px;
  height: 50px;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.32));
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.coverflow-card:hover .macos-folder-icon .kubai-host {
  transform: scale(1.08);
}

/* Bottom-left Title & Sub */
.macos-folder-meta {
  position: absolute;
  bottom: 22px;
  left: 22px;
  right: 22px;
  z-index: 4;
}

.macos-folder-title {
  font-size: clamp(20px, 2.2vw, 24px);
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.015em;
  line-height: 1.15;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", sans-serif;
}

.macos-folder-sub {
  font-size: 11.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  margin-top: 4px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

/* ==============================================================================
   MACOS FOLDER COLOR PALETTES (Exact Match to Reference Image)
   ============================================================================== */
/* Research (Signature macOS Aqua Sky Blue - Like Figma in Reference) */
.folder-research .macos-folder-back {
  background: linear-gradient(175deg, #4b98e2 0%, #1e65af 100%);
}
.folder-research .macos-folder-tab {
  background: #5aa4ee;
}
.folder-research .macos-folder-front {
  background: linear-gradient(175deg, #5ea5ed 0%, #317cc7 45%, #1f64a7 100%);
}

/* Game Dev (macOS Creative Purple / Violet - Like After Effects in Reference) */
.folder-game-dev .macos-folder-back {
  background: linear-gradient(175deg, #9333ea 0%, #581c87 100%);
}
.folder-game-dev .macos-folder-tab {
  background: #a855f7;
}
.folder-game-dev .macos-folder-front {
  background: linear-gradient(175deg, #ab5cf6 0%, #822ece 45%, #5a198c 100%);
}

/* Web Dev (macOS Warm Amber / Orange - Like Illustrator in Reference) */
.folder-web-dev .macos-folder-back {
  background: linear-gradient(175deg, #f97316 0%, #9a3412 100%);
}
.folder-web-dev .macos-folder-tab {
  background: #fb923c;
}
.folder-web-dev .macos-folder-front {
  background: linear-gradient(175deg, #fb923c 0%, #ea580c 45%, #9a3412 100%);
}

/* ==============================================================================
   HONORS & MILESTONE TIMELINE (Apple Editorial Vertical Spine - Borderless)
   ============================================================================== */
.apple-timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 48px;
  margin-top: 48px;
  padding: 8px 0;
}

/* Vertical Continuous Spine Line */
.timeline-spine {
  position: absolute;
  top: 10px;
  bottom: 24px;
  left: 19px;
  width: 2px;
  background: rgba(2, 132, 199, 0.25);
  border-radius: 999px;
  z-index: 1;
}

/* Individual Timeline Milestone Item */
.timeline-item {
  position: relative;
  display: flex;
  align-items: flex-start;
  padding-left: 48px;
  z-index: 2;
}

/* Apple Concentric Node on the Spine (Static, Calm, No Hover Jumps) */
.timeline-node {
  position: absolute;
  top: 5px;
  left: 14px;
  width: 14px;
  height: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
}

.timeline-node .node-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #ffffff;
  border: 2.5px solid #0284c7;
}

/* Radar pulse for Ongoing milestone */
.timeline-item.is-ongoing .timeline-node .node-dot {
  background: #0284c7;
  border-color: #0369a1;
}

.timeline-node .node-pulse {
  position: absolute;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(2, 132, 199, 0.2);
  animation: appleRadarPulse 2.4s infinite ease-out;
  pointer-events: none;
}

@keyframes appleRadarPulse {
  0% { transform: scale(0.6); opacity: 0.9; }
  100% { transform: scale(1.8); opacity: 0; }
}

/* Apple Pure Editorial Layout (Borderless, Seamless, No Hover) */
.timeline-card {
  width: 100%;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0 0 4px 0;
  box-shadow: none;
}

/* Card Header: Pure Editorial Typography (No Badge in Badge) */
.timeline-card-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 6px;
}

.timeline-date {
  font-family: var(--font-mono, monospace);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted, #64748b);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.timeline-honor {
  font-size: 13px;
  font-weight: 700;
  color: #0284c7;
  letter-spacing: 0.01em;
}

.timeline-honor.is-ongoing {
  color: #059669;
}

/* Title & Organizer */
.timeline-title {
  font-size: clamp(17px, 1.8vw, 19px);
  font-weight: 700;
  color: var(--navy-dark, #0f172a);
  line-height: 1.35;
  letter-spacing: -0.015em;
  margin-bottom: 4px;
}

.timeline-organizer {
  font-size: 13px;
  color: var(--text-secondary, #475569);
  margin-bottom: 12px;
  font-weight: 500;
}

.timeline-desc {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-secondary, #475569);
  margin-bottom: 12px;
}

/* Clean Editorial Metadata Strip (Borderless, Text-Only) */
.timeline-meta-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  font-size: 12px;
  color: var(--text-muted, #64748b);
}

.meta-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.meta-key {
  font-weight: 700;
  color: var(--navy-dark, #1e293b);
  text-transform: uppercase;
  font-size: 10.5px;
  letter-spacing: 0.04em;
}

.meta-val {
  color: var(--text-secondary, #334155);
  font-weight: 500;
}

.meta-sep {
  color: #cbd5e1;
  user-select: none;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .apple-timeline {
    gap: 36px;
    margin-top: 32px;
  }
  .timeline-spine {
    left: 14px;
  }
  .timeline-item {
    padding-left: 38px;
  }
  .timeline-node {
    left: 8px;
    top: 5px;
  }
  .timeline-card {
    padding: 0;
  }
  .timeline-card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
}

/* ==============================================================================
   EXPERIENCE & EDUCATION
   ============================================================================== */
.experience-section {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.exp-bento-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 40px;
}

.exp-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.exp-card {
  background-color: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 26px 24px;
}

.exp-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
}

.exp-header h4 {
  font-size: 17px;
  color: var(--navy-dark);
}

.exp-header .exp-dates {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--teal-accent);
}

.exp-role {
  font-size: 14px;
  font-weight: 600;
  color: var(--navy-primary);
  margin-bottom: 12px;
}

.exp-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.exp-card li {
  font-size: 13.5px;
  color: var(--text-secondary);
  position: relative;
  padding-left: 18px;
}

.exp-card li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--teal-accent);
  font-weight: bold;
}

/* ==============================================================================
   FOOTER / LET'S CONNECT (Attar Systems Clean White Layout)
   ============================================================================== */
footer {
  background-color: #ffffff;
  color: #1d1d1f;
  padding-top: clamp(80px, 10vw, 120px);
  padding-bottom: 36px;
  border-top: 1px solid #edf2f7;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.connect-title {
  font-size: clamp(34px, 4.2vw, 46px);
  font-weight: 600;
  color: #1d1d1f;
  letter-spacing: -0.035em;
  margin-bottom: clamp(32px, 4vw, 44px);
}

.connect-socials {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: clamp(24px, 4.5vw, 60px);
  margin-bottom: clamp(32px, 4vw, 44px);
  flex-wrap: wrap;
}

.connect-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: #1f3a60;
  text-decoration: none;
  transition: transform var(--transition-fast), color var(--transition-fast);
}

.connect-item:hover {
  color: #0071e3;
  transform: translateY(-2px);
}

.connect-icon-wrap {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.connect-icon-wrap svg {
  width: 100%;
  height: 100%;
  display: block;
}

.connect-label {
  font-size: 13px;
  font-weight: 500;
  color: inherit;
  letter-spacing: -0.01em;
}

.connect-action {
  margin-bottom: clamp(60px, 8vw, 100px);
}

.connect-btn-cv {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  background-color: #1f3a60;
  color: #ffffff;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  border-radius: 8px;
  letter-spacing: -0.01em;
  box-shadow: 0 2px 6px rgba(31, 58, 96, 0.15);
  transition: background-color var(--transition-fast), transform var(--transition-fast);
}

.connect-btn-cv:hover {
  background-color: #0071e3;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 113, 227, 0.25);
}

.connect-btn-cv:active {
  transform: scale(0.96);
}

.connect-bottom {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #edf2f7;
  padding-top: 28px;
  font-size: 13px;
  color: #8896a2;
}

.connect-copy {
  color: #8896a2;
}

.connect-replay-btn {
  background: transparent;
  border: none;
  font-family: inherit;
  font-size: 13px;
  color: #8896a2;
  cursor: pointer;
  padding: 0;
  transition: color var(--transition-fast);
}

.connect-replay-btn:hover {
  color: #1d1d1f;
}

.connect-back-top {
  color: #8896a2;
  text-decoration: none;
  font-size: 13px;
  transition: color var(--transition-fast);
}

.connect-back-top:hover {
  color: #1d1d1f;
}

/* ==============================================================================
   PROJECT DETAILS MODAL DIALOG (Giant Literal Physical macOS Folder)
   "MUNCUL FADE IN FADE OUT FOLDER GEDENYA - BISA KEBACA KYK LITERAL FOLDER"
   ============================================================================== */
dialog#project-dialog {
  border: none;
  background: transparent;
  padding: 0;
  max-width: 960px;
  width: 94%;
  max-height: 90vh;
  margin: auto;
  position: fixed;
  inset: 0;
  overflow: visible;
  z-index: 9999;
  outline: none;
}

dialog#project-dialog::backdrop {
  background-color: rgba(6, 14, 26, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  animation: backdropFadeIn 0.3s ease forwards;
}

dialog#project-dialog.closing::backdrop {
  animation: backdropFadeOut 0.24s ease forwards;
}

@keyframes backdropFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes backdropFadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

/* Giant Physical Folder Shell */
.literal-folder-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-height: 90vh;
  filter: drop-shadow(0 28px 70px rgba(0, 0, 0, 0.75));
  animation: folderFadeInScale 0.38s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  will-change: transform, opacity;
}

dialog#project-dialog.closing .literal-folder-wrapper {
  animation: folderFadeOutScale 0.24s cubic-bezier(0.4, 0, 1, 1) forwards;
}

@keyframes folderFadeInScale {
  0% {
    opacity: 0;
    transform: scale(0.92) translateY(24px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes folderFadeOutScale {
  0% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
  100% {
    opacity: 0;
    transform: scale(0.94) translateY(16px);
  }
}

/* Stepped White Sheets peeking out */
.literal-folder-papers {
  position: absolute;
  top: 8px;
  left: 24px;
  right: 24px;
  height: 28px;
  z-index: 1;
  pointer-events: none;
}

.literal-sheet {
  position: absolute;
  left: 0;
  right: 0;
  border-radius: 14px 14px 0 0;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-bottom: none;
}

.literal-sheet.sheet-back {
  top: 0;
  left: 20px;
  right: 20px;
  height: 14px;
  opacity: 0.6;
}

.literal-sheet.sheet-mid {
  top: 8px;
  left: 8px;
  right: 8px;
  height: 18px;
  opacity: 0.85;
}

/* Top Physical Folder Tabs Bar */
.literal-folder-tabs-bar {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 0 16px;
  z-index: 3;
  gap: 8px;
  margin-top: 14px;
}

.literal-folder-tabs {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}

.literal-folder-tabs::-webkit-scrollbar {
  display: none;
}

.literal-tab-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px 10px;
  border-radius: 14px 14px 0 0;
  border: none;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(14, 30, 52, 0.65);
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
  white-space: nowrap;
  letter-spacing: -0.01em;
}

.literal-tab-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.2);
}

.literal-tab-btn.active {
  color: #ffffff;
  font-weight: 800;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.18);
}

.literal-tab-btn .tab-arrow {
  opacity: 0.7;
  font-size: 13px;
  transition: transform 0.2s ease;
}

.literal-tab-btn:hover .tab-arrow,
.literal-tab-btn.active .tab-arrow {
  opacity: 1;
  transform: translateX(2px);
}

/* Active tab gradient merges seamlessly into folder pocket */
.theme-research .literal-tab-btn.active {
  background: #5ea5ed;
}

.theme-game-dev .literal-tab-btn.active {
  background: #ab5cf6;
}

.theme-web-dev .literal-tab-btn.active {
  background: #fb923c;
}

/* Close Folder Button */
.literal-close-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 6px;
  white-space: nowrap;
}

.literal-close-btn:hover {
  background: rgba(255, 255, 255, 0.28);
  transform: scale(1.04);
}

/* Front Folder Pocket Sleeve */
.literal-folder-pocket {
  position: relative;
  border-radius: 18px;
  padding: clamp(20px, 3vw, 32px);
  max-height: calc(90vh - 70px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  z-index: 2;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}

.theme-research .literal-folder-pocket {
  background: linear-gradient(175deg, #5ea5ed 0%, #317cc7 45%, #1f64a7 100%);
}

.theme-game-dev .literal-folder-pocket {
  background: linear-gradient(175deg, #ab5cf6 0%, #822ece 45%, #5a198c 100%);
}

.theme-web-dev .literal-folder-pocket {
  background: linear-gradient(175deg, #fb923c 0%, #ea580c 45%, #9a3412 100%);
}

.literal-folder-specular {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 45%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0) 100%);
  border-radius: 18px 18px 0 0;
  pointer-events: none;
}

/* Scrollable Document Container */
.literal-folder-content {
  position: relative;
  z-index: 4;
  overflow-y: auto;
  max-height: 100%;
  padding-right: 6px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.35) transparent;
}

.literal-folder-content::-webkit-scrollbar {
  width: 6px;
}

.literal-folder-content::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.35);
  border-radius: 999px;
}

/* Ultra-Readable Paper Document Dossier Sheet ("Bisa Kebaca Gitu") */
.dossier-paper-sheet {
  background: #ffffff;
  border-radius: 16px;
  padding: clamp(24px, 4vw, 40px);
  color: #0f172a;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.22);
  animation: sheetFadeIn 0.28s ease forwards;
}

@keyframes sheetFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.dossier-sheet-header {
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e2e8f0;
}

.dossier-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.dossier-tag {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #0284c7;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.dossier-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #0f172a;
}

.dossier-status {
  font-size: 11.5px;
  color: #64748b;
  font-weight: 600;
}

.dossier-title {
  font-size: clamp(24px, 2.8vw, 34px);
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 10px;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", sans-serif;
}

.dossier-intro {
  font-size: 15.5px;
  color: #334155;
  line-height: 1.65;
  max-width: 820px;
}

.dossier-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}

@media (max-width: 680px) {
  .dossier-grid {
    grid-template-columns: 1fr;
  }
}

.dossier-card {
  padding: 20px 22px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.dossier-card-problem {
  background: #fef2f2;
  border-left: 4px solid #ef4444;
}

.dossier-card-solution {
  background: #eff6ff;
  border-left: 4px solid #3b82f6;
}

.dossier-card-metrics {
  background: #f0fdf4;
  border-left: 4px solid #22c55e;
  margin-bottom: 24px;
}

.dossier-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.dossier-card-problem .dossier-card-header {
  color: #b91c1c;
}

.dossier-card-solution .dossier-card-header {
  color: #1d4ed8;
}

.dossier-card-metrics .dossier-card-header {
  color: #15803d;
}

.dossier-card-header h4 {
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.dossier-card p {
  font-size: 14px;
  color: #334155;
  line-height: 1.62;
}

.dossier-sheet-footer-legacy-unused {
  display: none;
}

.dossier-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.dossier-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", sans-serif;
}

.dossier-btn.primary {
  background: #0f172a;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.2);
}

.dossier-btn.primary:hover {
  background: #1e293b;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.28);
}

.dossier-btn.secondary {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  color: #0f172a;
}

.dossier-btn.secondary:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
  transform: translateY(-2px);
}

.dossier-next-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  color: #0284c7;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", sans-serif;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.dossier-next-btn:hover {
  background: #e0f2fe;
  border-color: #7dd3fc;
  color: #0369a1;
  transform: translateX(3px);
}

/* ==============================================================================
   RESPONSIVE MEDIA QUERIES (Mobile First-Class / R-03)
   ============================================================================== */
@media (max-width: 960px) {
  .hero-portrait {
    right: clamp(16px, 8vw, 80px);
  }

  .hero-bento {
    grid-template-columns: 1fr;
  }

  .bio-split {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .capabilities-grid {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 36px;
    row-gap: 44px;
  }

  .tools-category-grid {
    grid-template-columns: 1fr;
  }

  .editorial-wrap {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .exp-bento-grid {
    grid-template-columns: 1fr;
  }

  .award-item {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .footer-top {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  header {
    height: 72px;
  }

  .nav-links {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }

  .nav-links.mobile-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    width: 100%;
    background-color: #ffffff;
    padding: 24px;
    border-bottom: 1px solid var(--border-light);
    box-shadow: var(--shadow-lg);
    gap: 20px;
  }

  .hero-stat-row {
    grid-template-columns: 1fr;
  }

  .capabilities-grid {
    grid-template-columns: 1fr;
    row-gap: 36px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions a {
    justify-content: center;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  #welcome {
    display: none;
  }
}

/* ==============================================================================
   AWWWARDS-GRADE PHYSICAL SCIENTIFIC DOSSIER (Typography-Led Editorial Layout)
   Strict Zero-Scroll Fixed Container
   ============================================================================== */
.dossier-presentation-container {
  width: clamp(280px, 92vw, 540px);
  max-width: 540px;
  height: clamp(380px, 75vh, 520px);
  max-height: 85vh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 10;
  overflow: hidden;
  border-radius: clamp(16px, 1.8vw, 22px);
  background: linear-gradient(180deg, #132438 0%, #0a1420 100%);
  border: 1.5px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.1);
  animation: dossierContainerPop 0.28s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.folder-theme-research.dossier-presentation-container {
  background: linear-gradient(180deg, #16365c 0%, #0c1c2e 100%);
}

.folder-theme-game-dev.dossier-presentation-container {
  background: linear-gradient(180deg, #3b166e 0%, #1c0a36 100%);
}

.folder-theme-web-dev.dossier-presentation-container {
  background: linear-gradient(180deg, #7c2d12 0%, #351307 100%);
}

@keyframes dossierContainerPop {
  from { opacity: 0; transform: scale(0.96) translateY(8px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

/* Stepped Physical Tabs Top Row */
.dossier-tabs-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 8px 14px 0;
  background: rgba(0, 0, 0, 0.22);
  min-height: 42px;
}

.dossier-stepped-tabs-bar {
  display: flex;
  align-items: flex-end;
  gap: 0;
}

.dossier-stepped-tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 8px 16px 9px;
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: rgba(255, 255, 255, 0.72);
  background: rgba(15, 25, 45, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-bottom: none;
  border-radius: 9px 9px 0 0;
  cursor: pointer;
  margin-right: -4px;
  transition: all 0.18s ease;
  z-index: 1;
}

.dossier-stepped-tab.active {
  background: #ffffff;
  color: #0a0f1d !important;
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.15);
  z-index: 5;
  padding-bottom: 10px;
  margin-bottom: -1px;
}

.dossier-stepped-tab:not(.active):hover {
  background: rgba(25, 45, 75, 0.95);
  color: #ffffff;
  transform: translateY(-2px);
  z-index: 3;
}

/* Window Controls (Cover button & Close button) */
.dossier-window-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}

.dossier-ctrl-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.9);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
}

.dossier-ctrl-btn:hover {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
  transform: translateY(-1px);
}

.dossier-ctrl-btn.close-btn:hover {
  background: rgba(239, 68, 68, 0.3);
  border-color: rgba(239, 68, 68, 0.6);
  color: #fecaca;
}

/* Dossier Pocket Canvas (Tactile Crisp Archival Paper - Zero Dot-Grid Slop) */
.dossier-pocket-canvas {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border-radius: 0 0 clamp(16px, 1.8vw, 22px) clamp(16px, 1.8vw, 22px);
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.05);
}

.dossier-pocket-canvas h1,
.dossier-pocket-canvas h2,
.dossier-pocket-canvas h3,
.dossier-pocket-canvas h4 {
  color: #0a0f1d !important;
}

.dossier-paper-sheet-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 14px 20px 10px;
}

.dossier-paper-sheet-wrap.paper-slide-in {
  animation: paperSlideIn 0.22s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes paperSlideIn {
  from { opacity: 0.4; transform: translateX(10px); }
  to { opacity: 1; transform: translateX(0); }
}

.dossier-sheet-canvas {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  justify-content: space-between;
}

/* Archival Folio Header Strip */
.dossier-folio-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.09);
  margin-bottom: 10px;
  font-family: var(--font-mono, monospace);
  font-size: 9px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
  box-sizing: border-box;
}

.folio-header-left {
  display: flex;
  align-items: center;
  gap: 6px;
}

.folio-archive-tag {
  font-weight: 800;
  color: #0284c7;
}

.folder-theme-game-dev .folio-archive-tag { color: #7c3aed; }
.folder-theme-web-dev .folio-archive-tag { color: #ea580c; }

.folio-sep {
  color: #cbd5e1;
  font-weight: 400;
}

.folio-discipline {
  font-weight: 700;
  color: #475569;
}

.folio-index-tag {
  font-weight: 700;
  color: #94a3b8;
}

/* Overview Sheet: Title & Synopsis */
.dossier-overview-intro {
  margin-bottom: 10px;
}

.overview-display-title {
  font-family: 'Thicccboi', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: clamp(17px, 2.2vw, 20px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: #0a0f1d !important;
  margin: 0 0 4px;
}

.overview-synopsis-text {
  font-size: 11px;
  line-height: 1.45;
  color: #475569;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Overview Sheet: Swiss Monograph Index Rows */
.overview-monograph-index {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 9px;
  overflow: hidden;
  background: #ffffff;
}

.monograph-index-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  cursor: pointer;
  transition: all 0.18s ease;
  background: #ffffff;
}

.monograph-index-row:last-child {
  border-bottom: none;
}

.monograph-index-row:hover {
  background: #f8fafc;
}

.monograph-index-row:hover .row-index-action {
  color: #0284c7;
  transform: translateX(2px);
}

.folder-theme-game-dev .monograph-index-row:hover .row-index-action { color: #7c3aed; }
.folder-theme-web-dev .monograph-index-row:hover .row-index-action { color: #ea580c; }

.row-index-num {
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 13.5px;
  font-weight: 800;
  color: #0284c7;
  width: 22px;
  flex-shrink: 0;
}

.folder-theme-game-dev .row-index-num { color: #7c3aed; }
.folder-theme-web-dev .row-index-num { color: #ea580c; }

.row-index-content {
  flex: 1;
  min-width: 0;
}

.row-index-kicker {
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 2px;
}

.row-index-title {
  font-size: 12.5px;
  font-weight: 800;
  color: #0a0f1d !important;
  margin: 0 0 2px;
  line-height: 1.25;
}

.row-index-snippet {
  font-size: 10.5px;
  color: #64748b;
  line-height: 1.35;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.row-index-action {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 10.5px;
  font-weight: 700;
  color: #94a3b8;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.18s ease;
}

/* ==============================================================================
   PROJECT SHEETS (2-Column Editorial Spread)
   ============================================================================== */
.project-editorial-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 14px;
  flex: 1;
  align-items: stretch;
  overflow: hidden;
}

.project-narrative-col {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 10px;
  min-width: 0;
}

.project-title-lockup {
  margin-bottom: 2px;
}

.project-type-kicker {
  display: block;
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #0284c7;
  margin-bottom: 2px;
}

.folder-theme-game-dev .project-type-kicker { color: #7c3aed; }
.folder-theme-web-dev .project-type-kicker { color: #ea580c; }

.project-display-title {
  font-family: 'Thicccboi', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: clamp(13.5px, 1.7vw, 15.5px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: #0a0f1d !important;
  margin: 0;
}

.editorial-block {
  margin-top: 5px;
}

.editorial-block-kicker {
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
  margin: 0 0 2px;
}

.editorial-block-body {
  font-size: 10px;
  line-height: 1.38;
  color: #334155;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Right Column: Framed Archival Plate */
.project-visual-col {
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
}

.archival-plate-figure {
  margin: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.plate-img-frame {
  flex: 1;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 7px;
  overflow: hidden;
  background: #0f172a;
  max-height: 180px;
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.plate-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.plate-caption {
  margin-top: 4px;
  font-size: 8px;
  line-height: 1.3;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 5px;
}

.caption-id {
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-weight: 800;
  color: #0a0f1d;
}

.caption-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Left Column: Bold Typographic Metrics Stack */
.editorial-metrics-stack {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  flex: 1;
  padding: 2px 0;
}

.editorial-stat-row {
  padding: 5px 0;
  border-bottom: 1px solid rgba(15, 23, 42, 0.07);
}

.editorial-stat-row:last-child {
  border-bottom: none;
}

.stat-big-val {
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0a0f1d;
  line-height: 1.1;
  margin-bottom: 2px;
}

.stat-label-text {
  font-size: 9px;
  line-height: 1.3;
  color: #475569;
}

/* Right Column: Official Documents & Direct Action */
.archival-artifacts-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 11px 13px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 9px;
}

.artifacts-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2px;
}

.artifacts-kicker {
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #64748b;
}

.artifacts-badge {
  font-size: 8px;
  font-weight: 700;
  color: #0284c7;
  background: #e0f2fe;
  padding: 1px 5px;
  border-radius: 4px;
}

.folder-theme-game-dev .artifacts-badge { color: #7c3aed; background: #ede9fe; }
.folder-theme-web-dev .artifacts-badge { color: #ea580c; background: #ffedd5; }

.artifacts-card-title {
  font-size: 12px;
  font-weight: 800;
  color: #0a0f1d !important;
  margin: 2px 0 2px;
}

.artifacts-card-desc {
  font-size: 9px;
  line-height: 1.35;
  color: #64748b;
  margin: 0 0 6px;
}

.artifacts-action-buttons {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 5px;
}

.artifact-primary-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px;
  background: #0a0f1d;
  color: #ffffff !important;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 700;
  text-decoration: none;
  transition: opacity 0.15s ease;
}

.artifact-primary-btn:hover {
  opacity: 0.88;
}

.artifact-secondary-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 10px;
  background: #ffffff;
  color: #0a0f1d !important;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.15s ease;
}

.artifact-secondary-btn:hover {
  background: #f1f5f9;
}

.btn-arr {
  font-weight: 800;
}

.artifacts-seal-note {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 8.5px;
  color: #059669;
  font-weight: 600;
  padding-top: 5px;
  border-top: 1px dashed #cbd5e1;
}

.seal-mark {
  font-weight: 800;
}

/* Strict Zero-Scroll Sheet Navigation Footer */
.dossier-sheet-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 15px 9px;
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
}

.footer-nav-left, .footer-nav-right {
  display: flex;
  align-items: center;
  gap: 7px;
}

.sheet-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 12px;
  border-radius: 9999px;
  font-size: 10.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s ease;
}

.sheet-nav-btn.prev-btn {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #475569;
}

.sheet-nav-btn.prev-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.sheet-nav-btn.prev-btn:not(:disabled):hover {
  background: #f1f5f9;
  color: #0f172a;
}

.sheet-nav-btn.next-btn {
  background: #0284c7;
  color: #ffffff;
  border: 1px solid #0284c7;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.25);
}

.folder-theme-game-dev .sheet-nav-btn.next-btn {
  background: #7c3aed;
  border-color: #7c3aed;
  box-shadow: 0 2px 8px rgba(124, 58, 237, 0.25);
}

.folder-theme-web-dev .sheet-nav-btn.next-btn {
  background: #ea580c;
  border-color: #ea580c;
  box-shadow: 0 2px 8px rgba(234, 88, 12, 0.25);
}

.sheet-nav-btn.next-btn:hover {
  filter: brightness(1.1);
  transform: translateX(1px);
}

.sheet-nav-btn.finished-btn {
  background: #059669 !important;
  border-color: #059669 !important;
}

.sheet-counter-badge {
  font-family: var(--font-mono, monospace);
  font-size: 9px;
  font-weight: 700;
  color: #0284c7;
  background: #e0f2fe;
  padding: 2px 7px;
  border-radius: 9999px;
}

.folder-theme-game-dev .sheet-counter-badge { color: #7c3aed; background: #ede9fe; }
.folder-theme-web-dev .sheet-counter-badge { color: #ea580c; background: #ffedd5; }

.global-progress {
  font-size: 10px;
  font-weight: 600;
  color: #64748b;
}


/* ==============================================================================
   AWWWARDS SIGNATURE HYBRID: PAPER FAN-OUT + MACOS QUICKLOOK INSPECTOR
   ============================================================================== */
.fanout-presentation-container {
  position: relative;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  perspective: 1200px;
}

.fanout-topbar {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding: 0 8px;
  z-index: 20;
}

.fanout-badge-hint {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.85);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.fanout-badge-hint .hint-dot {
  color: #38bdf8;
  font-size: 10px;
  animation: pulseHintDot 2s infinite ease-in-out;
}

.folder-theme-game-dev .fanout-badge-hint .hint-dot { color: #a855f7; }
.folder-theme-web-dev .fanout-badge-hint .hint-dot { color: #fb923c; }

@keyframes pulseHintDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.fanout-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #ffffff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.fanout-back-btn:hover {
  background: rgba(255, 255, 255, 0.24);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}

/* 3D Fan-out Stage */
.fanout-stage {
  position: relative;
  width: 100%;
  height: clamp(480px, 60vh, 560px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  transform-style: preserve-3d;
}

/* Fanned Cards Stack */
.fanout-cards-deck {
  position: absolute;
  top: 10px;
  left: 0;
  right: 0;
  bottom: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-style: preserve-3d;
  pointer-events: none;
}

.fanout-card {
  position: absolute;
  width: clamp(280px, 34vw, 360px);
  height: clamp(340px, 42vw, 420px);
  border-radius: 18px;
  background: linear-gradient(165deg, rgba(30, 41, 59, 0.94) 0%, rgba(15, 23, 42, 0.96) 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 20px 48px -10px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.08);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  pointer-events: auto;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transform-origin: 50% 100%;
  user-select: none;
}

.fanout-card.card-0 {
  --tx: -155px;
  transform: translate3d(var(--tx), -30px, 15px) rotate(-6deg);
  z-index: 2;
}

.fanout-card.card-1 {
  --tx: 155px;
  transform: translate3d(var(--tx), -30px, 25px) rotate(6deg);
  z-index: 3;
}

.fanout-card:hover,
.fanout-card:focus-visible {
  transform: translate3d(var(--tx), -75px, 50px) rotate(0deg) scale(1.04);
  box-shadow: 0 32px 70px -12px rgba(0, 0, 0, 0.8), 0 0 30px rgba(56, 189, 248, 0.25), 0 0 0 1.5px rgba(255, 255, 255, 0.45);
  border-color: rgba(255, 255, 255, 0.55);
  outline: none;
  z-index: 10 !important;
}

.folder-theme-game-dev .fanout-card:hover { box-shadow: 0 32px 70px -12px rgba(0, 0, 0, 0.8), 0 0 30px rgba(168, 85, 247, 0.3); }
.folder-theme-web-dev .fanout-card:hover { box-shadow: 0 32px 70px -12px rgba(0, 0, 0, 0.8), 0 0 30px rgba(251, 146, 60, 0.3); }

/* Card Content Structure */
.fanout-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.fanout-card-badge {
  font-family: var(--font-mono, monospace);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.16);
  color: #7dd3fc;
  border: 1px solid rgba(56, 189, 248, 0.35);
}

.folder-theme-game-dev .fanout-card-badge { background: rgba(168, 85, 247, 0.16); color: #d8b4fe; border-color: rgba(168, 85, 247, 0.35); }
.folder-theme-web-dev .fanout-card-badge { background: rgba(251, 146, 60, 0.16); color: #fdba74; border-color: rgba(251, 146, 60, 0.35); }

.fanout-card-num {
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.78);
}

.fanout-card-main {
  margin: 16px 0 auto;
}

.fanout-card-domain {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 6px;
}

/* Accessibility Focus Ring (R-32) */
.macos-folder:focus-visible,
.coverflow-card:focus-visible {
  outline: 2px solid #38bdf8 !important;
  outline-offset: 6px !important;
  box-shadow: 0 0 24px rgba(56, 189, 248, 0.5) !important;
}

.fanout-card-title {
  font-size: clamp(17px, 2vw, 20px);
  font-weight: 700;
  color: #ffffff;
  line-height: 1.28;
  letter-spacing: -0.015em;
  margin-bottom: 10px;
}

.fanout-card-snippet {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.fanout-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.fanout-card-metric {
  font-size: 11.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-width: 60%;
}

.fanout-ql-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 700;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  transition: all 0.2s;
}

.fanout-card:hover .fanout-ql-pill {
  background: #ffffff;
  color: #0f172a;
}

/* 3D Open macOS Folder Anchor at the bottom */
.fanout-folder-anchor {
  position: relative;
  width: clamp(260px, 88vw, 480px);
  max-width: 100%;
  height: 180px;
  margin-top: auto;
  z-index: 5;
  perspective: 800px;
  pointer-events: none;
}

.fanout-folder-anchor .macos-folder-back {
  position: absolute;
  inset: 0;
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

.fanout-folder-anchor .macos-folder-tab {
  position: absolute;
  top: -24px;
  left: 0;
  width: 48%;
  height: 36px;
  border-radius: 14px 14px 0 0;
  box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, 0.6);
}

.fanout-folder-anchor .macos-folder-front.is-open-tilted {
  position: absolute;
  top: 16px;
  left: -2px;
  right: -2px;
  bottom: -4px;
  border-radius: 16px 16px 22px 22px;
  padding: 24px 28px;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.7), 0 20px 48px rgba(0, 0, 0, 0.55);
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  transform-origin: 50% 100%;
  transform: rotateX(-12deg);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==============================================================================
   MACOS QUICKLOOK INSPECTOR MODAL WINDOW
   ============================================================================== */
.quicklook-window {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 50;
  align-items: center;
  justify-content: center;
}

.quicklook-window.active {
  display: flex;
  animation: qlPopIn 0.32s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes qlPopIn {
  0% { opacity: 0; transform: scale(0.92) translateY(20px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

.quicklook-frame {
  width: 100%;
  max-width: 780px;
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 32px 80px -15px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* macOS Titlebar */
.quicklook-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mac-traffic-lights {
  display: flex;
  align-items: center;
  gap: 7px;
}

.mac-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
  border: none;
  padding: 0;
  cursor: pointer;
}

.mac-dot.red { background: #ef4444; box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.25); }
.mac-dot.yellow { background: #eab308; opacity: 0.85; cursor: default; }
.mac-dot.green { background: #22c55e; opacity: 0.85; cursor: default; }
.mac-dot.red:hover { filter: brightness(1.2); }

.quicklook-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
}

.quicklook-title .title-folder {
  color: rgba(255, 255, 255, 0.5);
}

.quicklook-title .title-badge {
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  color: #38bdf8;
}

.quicklook-esc-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.8);
  font-family: var(--font-mono, monospace);
  cursor: pointer;
  transition: all 0.2s;
}

.quicklook-esc-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

/* Segmented Control Bar */
.quicklook-segmented-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 18px;
  background: rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.quicklook-segmented-controls {
  display: flex;
  gap: 4px;
  background: rgba(255, 255, 255, 0.06);
  padding: 3px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.ql-seg-btn {
  background: transparent;
  border: none;
  border-radius: 6px;
  padding: 6px 14px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.65);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.ql-seg-btn:hover {
  color: #ffffff;
}

.ql-seg-btn.active {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.quicklook-project-switcher {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-mono, monospace);
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.4);
}

.ql-switch-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  padding: 3px 8px;
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  font-family: inherit;
  font-size: 11px;
}

.ql-switch-btn.active {
  background: #38bdf8;
  color: #0f172a;
  border-color: #38bdf8;
  font-weight: 700;
}

/* QuickLook Body Canvas */
.quicklook-body {
  padding: 24px 28px;
  min-height: 240px;
  max-height: 52vh;
  overflow-y: auto;
  color: rgba(255, 255, 255, 0.9);
}

.ql-pane-heading {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
}

.ql-meta-tag {
  display: inline-block;
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  font-weight: 700;
  color: #7dd3fc;
  background: rgba(56, 189, 248, 0.12);
  padding: 3px 10px;
  border-radius: 6px;
  margin-bottom: 16px;
}

.ql-text-block {
  font-size: 13.5px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 16px;
}

.ql-grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 16px;
}

.ql-grid-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 16px;
}

.ql-grid-card h4 {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 6px;
}

.ql-grid-card p {
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
}

/* QuickLook Footer */
.quicklook-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 22px;
  background: rgba(255, 255, 255, 0.04);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.ql-footer-back-btn {
  background: transparent;
  border: none;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: color 0.2s;
}

.ql-footer-back-btn:hover {
  color: #ffffff;
}

.ql-footer-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: 999px;
  background: #38bdf8;
  color: #0f172a;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(56, 189, 248, 0.35);
  transition: all 0.2s;
}

.ql-footer-cta-btn:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

/* Mobile Responsiveness for Fan-out */
@media (max-width: 768px) {
  .fanout-card.card-0 {
    --tx: -55px;
    transform: translate3d(var(--tx), -20px, 15px) rotate(-4deg);
    width: 250px;
    height: 320px;
    padding: 18px;
  }
  .fanout-card.card-1 {
    --tx: 55px;
    transform: translate3d(var(--tx), -20px, 25px) rotate(4deg);
    width: 250px;
    height: 320px;
    padding: 18px;
  }
  .fanout-folder-anchor {
    width: 300px;
    height: 140px;
  }
  .quicklook-frame {
    margin: 10px;
    max-height: 80vh;
  }
  .ql-grid-2col {
    grid-template-columns: 1fr;
  }
}

/* Precision Dossier Layout & Strict Single-Line Footer Override */
.dossier-pocket-canvas {
  flex: 1 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  background: #ffffff !important;
  overflow: hidden !important;
}

.dossier-paper-sheet-wrap {
  flex: 1 !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  padding: 12px 18px 6px !important;
}

.dossier-sheet-canvas {
  width: 100% !important;
  height: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  overflow: hidden !important;
}

.dossier-folio-header {
  width: 100% !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  padding-bottom: 5px !important;
  margin-bottom: 8px !important;
  border-bottom: 1px solid rgba(15, 23, 42, 0.09) !important;
  box-sizing: border-box !important;
}

.folio-header-left {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
}

.folio-header-right {
  margin-left: auto !important;
  font-family: var(--font-mono, monospace) !important;
  font-size: 8.5px !important;
  font-weight: 700 !important;
  color: #94a3b8 !important;
}

.dossier-overview-intro {
  margin-bottom: 6px !important;
}

.overview-display-title {
  font-size: 17px !important;
  margin: 0 0 2px !important;
  line-height: 1.15 !important;
}

.overview-synopsis-text {
  font-size: 10.5px !important;
  line-height: 1.38 !important;
  color: #475569 !important;
  margin: 0 0 6px !important;
}

.monograph-index-row {
  padding: 8px 12px !important;
  gap: 10px !important;
}

.row-index-num {
  font-size: 13px !important;
  width: 20px !important;
}

.row-index-title {
  font-size: 12px !important;
  margin: 0 0 1px !important;
}

.row-index-snippet {
  font-size: 10px !important;
  line-height: 1.3 !important;
}

.project-display-title {
  font-size: 14.5px !important;
  line-height: 1.2 !important;
  margin: 0 !important;
}

.project-narrative-col {
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  gap: 8px !important;
  min-width: 0 !important;
}

.editorial-block {
  margin-top: 2px !important;
}

.editorial-block-kicker {
  font-size: 8px !important;
  margin: 0 0 1px !important;
}

.editorial-block-body {
  font-size: 9.5px !important;
  line-height: 1.35 !important;
}

.plate-img-frame {
  max-height: 160px !important;
  min-height: 110px !important;
}

.editorial-stat-row {
  padding: 4px 0 !important;
}

.stat-big-val {
  font-size: 16px !important;
  line-height: 1.1 !important;
}

.stat-label-text {
  font-size: 8.5px !important;
  line-height: 1.3 !important;
}

.archival-artifacts-card {
  padding: 9px 12px !important;
}

.artifacts-card-title {
  font-size: 11.5px !important;
  margin: 2px 0 1px !important;
}

.artifacts-card-desc {
  font-size: 8.5px !important;
  line-height: 1.3 !important;
  margin: 0 0 5px !important;
}

.artifact-primary-btn {
  padding: 5px 9px !important;
  font-size: 9.5px !important;
}

.artifact-secondary-btn {
  padding: 4px 9px !important;
  font-size: 9.5px !important;
}

/* Strict Zero-Scroll Single-Line Footer */
.dossier-sheet-footer {
  width: 100% !important;
  height: 46px !important;
  min-height: 46px !important;
  max-height: 46px !important;
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 0 16px !important;
  background: #ffffff !important;
  border-top: 1px solid #e2e8f0 !important;
  box-sizing: border-box !important;
  flex-shrink: 0 !important;
  margin: 0 !important;
}

.footer-nav-left {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  flex-shrink: 0 !important;
}

.footer-nav-center {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 1 !important;
  padding: 0 8px !important;
  min-width: 0 !important;
}

.footer-nav-right {
  display: flex !important;
  align-items: center !important;
  flex-shrink: 0 !important;
}

.global-progress {
  font-size: 10px !important;
  font-weight: 600 !important;
  color: #64748b !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.sheet-nav-btn {
  padding: 5px 12px !important;
  font-size: 10.5px !important;
  white-space: nowrap !important;
}

.sheet-counter-badge {
  font-size: 8.5px !important;
  padding: 2px 6px !important;
  white-space: nowrap !important;
}

/* ==============================================================================
   CREATIVE & PHOTOGRAPHY (500px Editorial Exhibition Mosaic & Darkroom Lightbox)
   ============================================================================== */
.creative-section {
  background-color: var(--bg-primary, #ffffff);
  border-top: 1px solid var(--border-light, #e2e8f0);
  padding: 100px 0;
}

.creative-header {
  max-width: 680px;
  margin-bottom: 36px;
}

.creative-header h2 {
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--navy-dark, #0f172a);
  margin: 0 0 14px 0;
}

.creative-lead {
  font-size: clamp(15px, 1.1vw, 16.5px);
  line-height: 1.7;
  color: var(--text-secondary, #475569);
  margin: 0;
}

/* 500px Unified Exhibition Showcase (Awwwards-Caliber Fine Art Presentation) */
.exhibition-showcase {
  display: grid;
  grid-template-columns: minmax(310px, 38%) minmax(460px, 62%);
  background: #ffffff;
  border: 1px solid var(--border-light, #e2e8f0);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 48px -12px rgba(15, 23, 42, 0.08);
  margin-bottom: 40px;
}

/* Left Column: Editorial Curator Sheet & Narrative (Pure Typography, No Buttons) */
.exhibition-curator-sheet {
  padding: clamp(28px, 3.2vw, 40px);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  background: #fafafa;
  border-right: 1px solid var(--border-light, #f1f5f9);
  gap: 18px;
}

.curator-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.brand-glyph {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0284c7;
}

.brand-tag {
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #0284c7;
}

.curator-header-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.curator-title {
  font-size: clamp(22px, 2.2vw, 27px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
  color: #0f172a;
  margin: 0;
}

.curator-byline {
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
  letter-spacing: -0.01em;
}

.curator-essay {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.curator-essay p {
  font-size: clamp(13px, 0.98vw, 13.8px);
  line-height: 1.68;
  color: #475569;
  margin: 0;
  text-wrap: pretty;
}

.curator-meta-strip {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid #eef2f6;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.curator-meta-strip .meta-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 11.5px;
  gap: 12px;
}

.curator-meta-strip .meta-k {
  font-family: var(--font-mono, monospace);
  font-size: 10px;
  font-weight: 700;
  color: #64748b;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.curator-meta-strip .meta-v {
  font-weight: 500;
  color: #1e293b;
  text-align: right;
}

/* Right Column: Mathematical Recreation of 500px 5-Tile Mosaic (Swapped Order) */
.exhibition-collage-grid {
  display: grid;
  grid-template-columns: 321fr 302fr;
  gap: 4px;
  background: #090e1a;
  height: 100%;
  min-height: 480px;
}

.collage-col {
  display: flex;
  flex-direction: column;
  gap: 4px;
  height: 100%;
  min-height: 0;
}

/* Col 1 Cells */
.collage-col-1 .cell-ant {
  flex: 416;
  min-height: 0;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: #1e293b;
}

.collage-col-1 .cell-ant img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 50%;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.collage-col-1 .cell-palace {
  flex: 106;
  min-height: 0;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: #0f172a;
}

.collage-col-1 .cell-palace img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Col 2 Cells */
.collage-col-2 .cell-under {
  flex: 172;
  min-height: 0;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: #0f172a;
}

.collage-col-2 .cell-under img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.collage-col-2 .cell-train {
  flex: 172;
  min-height: 0;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: #0f172a;
}

.collage-col-2 .cell-train img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 50%;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.collage-col-2 .cell-sky {
  flex: 174;
  min-height: 0;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: #0f172a;
}

.collage-col-2 .cell-sky img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 50%;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Subtle Glass Badge on Hover */
.photo-cell-badge {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(15, 23, 42, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 6px;
  letter-spacing: 0.01em;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.photo-cell:hover .photo-cell-badge {
  opacity: 1;
  transform: translateY(0);
}

.photo-cell:hover img {
  transform: scale(1.035);
}

/* ==============================================================================
   ARCHIVAL STUDIES STRIP (Frames 06 - 08)
   ============================================================================== */
.archival-strip-wrap {
  margin-top: 10px;
}

.archival-strip-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 16px;
  padding: 0 4px;
}

.archival-strip-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--navy-dark, #0f172a);
  letter-spacing: -0.01em;
}

.archival-strip-count {
  font-family: var(--font-mono, monospace);
  font-size: 12px;
  color: #64748b;
  font-weight: 600;
}

.archival-strip-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.archival-card {
  background: #ffffff;
  border: 1px solid var(--border-light, #e2e8f0);
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

.archival-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px -8px rgba(15, 23, 42, 0.1);
}

.archival-card-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #0f172a;
}

.archival-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.archival-card:hover .archival-card-img img {
  transform: scale(1.04);
}

.archival-card-meta {
  padding: 12px 14px;
  font-size: 12.5px;
  color: #475569;
  border-top: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  gap: 6px;
}

.archival-card-meta .card-num {
  font-family: var(--font-mono, monospace);
  font-weight: 700;
  color: #0284c7;
}

.archival-card-meta .card-title {
  font-weight: 600;
  color: #0f172a;
}

.archival-card-meta .card-sep {
  color: #cbd5e1;
}

.archival-card-meta .card-loc {
  color: #64748b;
}

/* Cinematic Darkroom Photo Lightbox (Pure & Uncropped) */
.photo-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.photo-lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 11, 18, 0.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

.lightbox-stage-wrap {
  position: relative;
  z-index: 2;
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px 32px;
  box-sizing: border-box;
}

.lightbox-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.lightbox-caption {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  font-size: 14px;
}

.lightbox-idx {
  font-family: inherit;
  font-variant-numeric: tabular-nums;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.04em;
}

.lightbox-sep {
  color: rgba(255, 255, 255, 0.3);
  font-size: 11px;
}

.lightbox-title {
  font-weight: 700;
  letter-spacing: -0.01em;
}

.lightbox-loc {
  color: rgba(255, 255, 255, 0.65);
  font-size: 13px;
}

.lightbox-close-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lightbox-close-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.08);
}

.lightbox-viewport {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  width: 100%;
  max-height: calc(100vh - 120px);
}

.lightbox-img-canvas {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 90vw;
  max-height: 82vh;
}

.lightbox-img-canvas img {
  max-width: 90vw;
  max-height: 82vh;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
  transition: opacity 0.18s ease;
}

.lightbox-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #ffffff;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 3;
  backdrop-filter: blur(12px);
  transition: all 0.2s ease;
}

.lightbox-nav-btn:hover {
  background: #0284c7;
  border-color: #0284c7;
  transform: translateY(-50%) scale(1.1);
}

.lightbox-nav-btn.prev {
  left: 16px;
}

.lightbox-nav-btn.next {
  right: 16px;
}

.lightbox-bottom-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
}

.lightbox-ext-link {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 0.2s ease;
}

.lightbox-ext-link:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* ==============================================================================
   PHOTOGRAPHY ASSET PROTECTION & PRIVACY SHIELD
   ============================================================================== */
.photo-cell img,
.archival-card-img img,
#lightbox-main-img {
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
  user-drag: none;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* Anti-Snip / Screenshot Obfuscation (Triggered on PrintScreen & Snipping Tool Blur) */
body.is-snip-obfuscated #lightbox-main-img,
body.is-snip-obfuscated .photo-cell img,
body.is-snip-obfuscated .archival-card-img img {
  filter: blur(34px) grayscale(90%) !important;
  opacity: 0.18 !important;
  transition: filter 0.1s ease, opacity 0.1s ease;
}

/* Floating Protection Toast (Awwwards Minimalist Apple-Style Dark Pill) */
.photo-protection-toast {
  position: fixed;
  z-index: 100000;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #f8fafc;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.15);
  pointer-events: none;
  opacity: 0;
  transform: translateY(6px) scale(0.96);
  transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1), transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  gap: 8px;
}

.photo-protection-toast.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.photo-protection-toast .toast-icon {
  color: #38bdf8;
  display: flex;
  align-items: center;
}

/* Responsive & Viewport Optimization (Android & iPhone Universal) */
@media (max-width: 900px) {
  .exhibition-showcase {
    grid-template-columns: 1fr;
    max-height: none;
  }
  .exhibition-curator-sheet {
    border-right: none;
    border-bottom: 1px solid var(--border-light, #f1f5f9);
    padding: clamp(24px, 4vw, 32px) clamp(16px, 4vw, 24px);
  }
  .exhibition-collage-grid {
    height: auto;
    aspect-ratio: 627 / 526;
    min-height: 0;
  }
  .archival-strip-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .lightbox-stage-wrap {
    height: 100vh;
    height: 100dvh;
    padding: env(safe-area-inset-top, 16px) env(safe-area-inset-right, 16px) env(safe-area-inset-bottom, 16px) env(safe-area-inset-left, 16px);
  }
  .lightbox-caption {
    font-size: 12px;
  }
  .lightbox-nav-btn {
    width: 44px;
    height: 44px;
  }
  .lightbox-close-btn {
    width: 44px;
    height: 44px;
  }
}

/* ==============================================================================
   SMARTPHONE VIEWPORT SPECIALIZATION (Redmi 14 5G, iPhone, Galaxy Universal)
   Zero Horizontal Overflow • Calibrated Proportions • No Error Zoom
   ============================================================================== */
@media (max-width: 480px) {
  .wrap {
    padding-left: 16px;
    padding-right: 16px;
  }

  .section-spacing {
    padding-top: 50px;
    padding-bottom: 50px;
  }

  /* Navigation Header on Phone */
  header {
    height: 64px;
    padding: 0 16px;
  }

  #nav {
    top: 64px;
    padding: 20px 16px;
  }

  /* Hero adjustments */
  .hero {
    padding: 16px 16px 40px;
  }

  .hero-portrait {
    max-width: 280px;
    height: 320px;
    margin: -6px auto 16px;
  }

  .hero h1 {
    font-size: 22px;
    line-height: 1.28;
  }

  .hero-tagline {
    font-size: 14.5px;
    margin-top: 14px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .hero-btn-primary,
  .hero-btn-secondary {
    width: 100%;
    text-align: center;
    padding: 12px 18px;
  }

  /* Coverflow 3D Deck on Phone */
  .coverflow-stage {
    height: 270px;
  }

  .coverflow-card.macos-folder {
    width: 220px;
    height: 185px;
  }

  /* Timeline on Phone */
  .apple-timeline {
    gap: 28px;
    margin-top: 24px;
  }

  .timeline-item {
    padding-left: 32px;
  }

  .timeline-spine {
    left: 11px;
  }

  .timeline-node {
    left: 6px;
  }

  /* Exhibition Showcase on Phone */
  .exhibition-showcase {
    border-radius: 16px;
    margin-bottom: 28px;
  }

  .exhibition-curator-sheet {
    padding: 20px 16px;
    gap: 16px;
  }

  .curator-title {
    font-size: 20px;
  }

  .curator-essay p {
    font-size: 13px;
    line-height: 1.62;
  }

  .curator-meta-strip {
    padding-top: 14px;
    gap: 8px;
  }

  .curator-meta-strip .meta-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }

  .curator-meta-strip .meta-v {
    text-align: left;
  }

  /* Photo Lightbox on Phone */
  .lightbox-top-bar {
    padding: 0 4px;
  }

  .lightbox-caption {
    font-size: 12px;
    flex-wrap: wrap;
    gap: 6px;
  }

  .lightbox-loc {
    display: none;
  }

  .lightbox-bottom-bar {
    font-size: 11px;
  }
}
