/* 
  Angelo Lozano - Creative Awwwards Portfolio Design System
  Fusing technology precision with elegant, architectural motion.
*/

:root {
  --bg-primary: #2C2C2C;
  --bg-secondary: #0e0e12;
  --bg-grid: #131318;
  --border-color: rgba(243, 244, 244, 0.05);
  --border-hover: rgba(243, 244, 244, 0.4);

  --text-primary: #f5f5f7;
  --text-secondary: #8e8e93;
  --text-dim: #48484a;

  --accent-color: #F3F4F4;
  /* Monochromatic Crisp White */
  --accent-rgb: 243, 244, 244;
  --accent-secondary: #e5e5e7;
  /* High-contrast sand-silver */

  --tech-color: #38bdf8;
  /* High-tech blue for Computer Science */
  --design-color: #a855f7;
  /* Designer violet */
  --art-color: #f43f5e;
  /* Poster art pink/crimson */

  --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;

  --transition-smooth: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-bounce: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition-reveal: clip-path 1.2s cubic-bezier(0.76, 0, 0.24, 1);
}

/* Reset & Core Setup */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  user-select: none;
}

html,
body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.5;
  height: 100%;
  width: 100%;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html.lenis,
html.lenis body {
  height: auto;
  overflow: visible;
}

.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

/* Scrollbar Styles */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--text-dim);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-color);
}

/* Subtle ASCII Cursor Follower */
.mouse-follower {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.trail-segment {
  position: fixed;
  top: 0;
  left: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  font-family: Consolas, Monaco, "Fira Code", monospace;
  color: var(--accent-color);
  line-height: 1;
  transform: translate3d(0, 0, 0);
  will-change: transform;
  user-select: none;
  z-index: 9999;
}

.trail-segment:nth-child(1) {
  font-size: 12px;
  opacity: 0.95;
}

.trail-segment:nth-child(2) {
  font-size: 12px;
  opacity: 0.85;
}

.trail-segment:nth-child(3) {
  font-size: 11px;
  opacity: 0.70;
}

.trail-segment:nth-child(4) {
  font-size: 11px;
  opacity: 0.55;
}

.trail-segment:nth-child(5) {
  font-size: 10px;
  opacity: 0.40;
}

.trail-segment:nth-child(6) {
  font-size: 9px;
  opacity: 0.25;
}

.trail-segment:nth-child(7) {
  font-size: 8px;
  opacity: 0.15;
}

.trail-segment:nth-child(8) {
  font-size: 7px;
  opacity: 0.08;
}

/* --- Background Grid System --- */
.bg-coordinates {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(to right, rgba(243, 244, 244, 0.015) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(243, 244, 244, 0.015) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
  z-index: 1;
}

.background-radial-glow {
  display: none !important;
  /* Glow disabled in favor of subtle ASCII following */
}

/* --- SECTION 1: Fullscreen ASCII Loading Intro --- */
.intro-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--bg-primary);
  z-index: 100;
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* Center wave canvas vertically */
  align-items: center;
  padding: 0;
  transition: opacity 0.8s cubic-bezier(0.76, 0, 0.24, 1);
  will-change: opacity;
  cursor: none !important;
}

.intro-container.transitioning {
  cursor: default !important;
}



.ascii-pre {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  /* Fully expanded edge-to-edge layout */
  box-sizing: border-box;
  font-family: Consolas, Monaco, "Lucida Console", "Fira Code", monospace;
  font-size: 8px;
  line-height: 11px;
  letter-spacing: 0.16em;
  color: #F3F4F4;
  background-color: var(--bg-primary);
  overflow: hidden;
  white-space: pre;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  /* Disabled until loaded */
  z-index: 10;
  transition: cursor 0.3s ease;
  user-select: none;
  text-shadow: 0 0 1px rgba(243, 244, 244, 0.4);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  cursor: none !important;
}

.ascii-pre.interactive {
  pointer-events: auto;
  cursor: none !important;
}

/* Custom Cursor for Intro/Splash Screen */
.intro-cursor {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 99999;
  will-change: transform;
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
  display: block;
}

.intro-cursor-crosshair {
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  left: -10px;
  top: -10px;
  font-weight: 400;
}

.intro-cursor-badge {
  color: #ffffff;
  font-size: 9px;
  font-family: Consolas, Monaco, "Fira Code", monospace;
  letter-spacing: 0.05em;
  white-space: nowrap;
  padding: 2px 6px;
  background-color: rgba(20, 20, 20, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.15);
  position: absolute;
  left: 12px;
  top: -8px;
}



.intro-header,
.intro-footer {
  position: relative;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 0.15em;
  color: var(--text-secondary);
}

.logo {
  font-weight: 600;
  color: var(--text-primary);
}

.intro-tech-status {
  display: flex;
  align-items: center;
  gap: 8px;
}

.status-indicator {
  width: 6px;
  height: 6px;
  background-color: var(--text-dim);
  border-radius: 50%;
  transition: background-color 0.5s ease, box-shadow 0.5s ease;
}

.status-indicator.ready {
  background-color: var(--accent-color);
  box-shadow: 0 0 8px var(--accent-color);
  animation: pulse-glow 1.5s infinite;
}

.intro-footer {
  flex-wrap: wrap;
  gap: 20px;
}

.intro-caption {
  font-weight: 400;
  opacity: 0.7;
}

.intro-prompt {
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  transition: var(--transition-smooth);
}

.intro-prompt.active {
  color: var(--accent-color);
  font-weight: 600;
  text-shadow: 0 0 8px rgba(var(--accent-rgb), 0.3);
  animation: pulse-prompt 1.5s infinite;
}

/* Fade animation for Intro dismissal */
.intro-container.dismissed {
  opacity: 0;
  pointer-events: none;
}

/* --- SECTION 2: Main Portfolio Workspace --- */
.portfolio-container {
  position: relative;
  z-index: 10;
  width: 100%;
  height: auto;
  overflow: visible;
  padding: 0;
  opacity: 1;
  transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.portfolio-container.hide {
  display: none !important;
}

/* Top Utility Navbar (replaces site-header but retains the class for JS selector compatibility) */
.hero-navbar {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 80px);
  padding: 10px 24px;
  background-color: rgba(44, 44, 44, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(243, 244, 244, 0.08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  /* subtle shadow */
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 150;
  box-sizing: border-box;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

/* Dynamic Border Spotlight outline */
.hero-navbar::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: radial-gradient(120px circle at var(--nav-x, 0px) var(--nav-y, 0px), rgba(243, 244, 244, 0.35), transparent 70%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 2;
}

.hero-navbar:hover::before {
  opacity: 1;
}

.navbar-left {
  display: flex;
  align-items: center;
}

.hero-navbar .logo-symbol {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--accent-color);
  letter-spacing: -0.05em;
  visibility: hidden;
  /* JS will toggle visibility to visible after intro transition completes */
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-link {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: var(--transition-smooth);
}

.nav-link:hover {
  color: var(--accent-color);
}

/* --- MONUMENTAL HERO SECTION --- */
.hero-section {
  position: relative;
  height: calc(100vh + 500px);
  /* Pinned height spacer */
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  padding: 115px 0 60px 0;
  /* Changed from 120px to 115px to match sticky top and eliminate scroll jump */
  box-sizing: border-box;
  z-index: 20;
}

/* 1. Colossal Text Container Optimization */
.hero-title-container {
  width: 100%;
  padding: 0 40px;
  box-sizing: border-box;
  display: flex;
  pointer-events: none;
  margin-bottom: 2vh;
  position: sticky;
  top: 115px;
  /* Offset lower under the navbar */
  z-index: 5;
}

.hero-title {
  font-family: var(--font-display);
  text-transform: uppercase;
  margin: 0;
  padding: 0;
  color: var(--accent-color);
  width: 100%;
}

.monumental-title {
  display: flex;
  justify-content: space-between;
  width: 100%;
  position: relative;
  z-index: 5;
}

.monumental-title>span {
  font-family: var(--font-display);
  font-size: 11vw;
  font-weight: 600;
  line-height: 0.8;
  letter-spacing: -0.04em;
  white-space: nowrap;
  pointer-events: auto;
  /* Enable mouse hover animations through pointer-events: none container */
}

.kinetic-letter {
  display: inline-block;
  overflow: hidden;
  position: relative;
  font-family: inherit;
  font-weight: inherit;
  cursor: default;
  vertical-align: bottom;
}

.letter-inner {
  display: inline-block;
  will-change: transform;
  transform: translate3d(0, 0, 0);
}

.glitch-char {
  display: inline-block;
  font-family: inherit;
  font-weight: inherit;
  cursor: default;
}

.title-pair {
  display: grid;
  grid-template-areas: "title-overlay";
}

.monumental-title .title-pair:last-child {
  justify-items: end;
  text-align: right;
}

.monumental-title .title-pair:last-child .identity-text,
.monumental-title .title-pair:last-child .manifesto-text {
  justify-self: end;
}

.identity-text,
.manifesto-text {
  grid-area: title-overlay;
  transition: opacity 1.2s cubic-bezier(0.76, 0, 0.24, 1), transform 1.2s cubic-bezier(0.76, 0, 0.24, 1);
  will-change: transform, opacity;
}

.identity-text {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.manifesto-text {
  opacity: 0;
  transform: translate3d(0, 30px, 0);
  pointer-events: none;
  color: var(--accent-color);
}

/* 2. Center-Stacked Editorial Column */
.center-stack-wrapper {
  display: grid;
  grid-template-rows: auto auto;
  justify-items: center;
  align-items: center;
  text-align: center;
  width: 100%;
  max-width: 1100px;
  margin: 11vh auto 0 auto;
  /* Added extra space underneath hero title */
  padding: 0 40px;
  box-sizing: border-box;
  z-index: 10;
  position: sticky;
  top: 50vh;
  /* Pushed down slightly for balanced layout gap */
}

.hero-section.unpinned .hero-title-container {
  position: absolute;
  top: calc(500px + 115px);
  /* Synchronized with new top offset */
}

.hero-section.unpinned .center-stack-wrapper {
  position: absolute;
  top: calc(500px + 50vh);
  /* Synchronized with new top offset */
  left: 0;
  right: 0;
  margin-top: 0;
}

.composite-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: max(10vw, 180px);
  width: 100%;
  position: relative;
}

.composite-text {
  font-family: var(--font-display);
  font-size: 6.5vw;
  font-weight: 600;
  line-height: 1.0;
  letter-spacing: -0.02em;
  color: #F3F4F4;
  transition: opacity 0.6s ease;
  /* Animate opacity for portal transition */
  will-change: transform, opacity;
  position: relative;
  z-index: 10;
}

/* Scroll-based far-between to close convergence animation */
.composite-row .composite-text:first-of-type {
  transform: translate3d(calc(-12vw * (1 - var(--scroll-progress, 0))), 0, 0);
}

.composite-row .composite-text:last-of-type {
  transform: translate3d(calc(12vw * (1 - var(--scroll-progress, 0))), 0, 0);
}

.composite-subtitle {
  font-family: var(--font-display);
  font-size: 6.5vw;
  font-weight: 600;
  letter-spacing: -0.04em;
  color: #F3F4F4;
  opacity: var(--scroll-progress, 0);
  /* Pop up on scroll */
  transform: scale(calc(0.7 + 0.3 * var(--scroll-progress, 0)));
  /* Scale pop up on scroll */
  text-transform: uppercase;
  margin-top: 0.5vw;
  line-height: 1.0;
  z-index: 10;
  position: relative;
  will-change: transform, opacity;
}

.window-layer {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 1px solid rgba(243, 244, 244, 0.06);
  background-color: #0e0e12;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
  border-radius: 6px;
  box-sizing: border-box;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.6s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Fan-out layout positioning */
.window-layer-3 {
  z-index: 10;
  transform: translate3d(-16px, -16px, 0);
}

.window-layer-2 {
  z-index: 20;
  transform: translate3d(-8px, -8px, 0);
}

.window-layer-1 {
  z-index: 30;
  transform: translate3d(0, 0, 0);
  border-color: rgba(243, 244, 244, 0.08);
}

/* Interactive hover expansion (+12px expansion step for deep fanning) */
.center-stack-wrapper:hover .window-layer-3 {
  transform: translate3d(-28px, -28px, 0);
  border-color: rgba(243, 244, 244, 0.12);
}

.center-stack-wrapper:hover .window-layer-2 {
  transform: translate3d(-14px, -14px, 0);
  border-color: rgba(243, 244, 244, 0.16);
}

.center-stack-wrapper:hover .window-layer-1 {
  transform: translate3d(0, 0, 0);
  border-color: rgba(243, 244, 244, 0.25);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.8), 0 0 20px rgba(243, 244, 244, 0.03);
}

.window-header {
  height: 24px;
  border-bottom: 1px solid rgba(243, 244, 244, 0.06);
  background-color: rgba(243, 244, 244, 0.01);
  display: flex;
  align-items: center;
  padding: 0 12px;
  gap: 6px;
  flex-shrink: 0;
}

.window-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: rgba(243, 244, 244, 0.15);
  transition: background-color 0.4s ease;
}

.center-stack-wrapper:hover .window-dot {
  background-color: rgba(243, 244, 244, 0.3);
}

#hero-ascii-canvas {
  font-family: Consolas, Monaco, "Lucida Console", monospace;
  font-size: 10px;
  line-height: 13px;
  color: #F3F4F4;
  margin: 0;
  padding: 0;
  white-space: pre;
  text-align: center;
  opacity: 1.0;
  letter-spacing: 0.05em;
  user-select: none;
  width: 440px;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 20;
  pointer-events: none;
  mix-blend-mode: difference;
}

.center-stack-wrapper:hover #hero-ascii-canvas {
  opacity: 1.0;
}

/* Cinematic States & Transitions */
#home.portal-active .hero-window-stack {
  transform: scale(4.5);
  opacity: 1;
  z-index: 100;
  pointer-events: auto;
}

#home.portal-active .composite-text,
#home.portal-active .composite-subtitle {
  opacity: 0;
  transform: translate3d(0, -20px, 0);
}

.hero-section.portal-complete {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.6s ease;
}

#home.manifesto-active .identity-text {
  opacity: 0;
  pointer-events: none;
}

#home.manifesto-active .manifesto-text {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  pointer-events: auto;
}

#home.manifesto-active .default-text {
  opacity: 0;
  pointer-events: none;
}

#home.manifesto-active .manifesto-text-flank {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  pointer-events: auto;
}

/* Bottom Navigation Scroll Cue */
.scroll-indicator {
  position: sticky;
  top: calc(100vh - 80px);
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-body);
  font-size: 9px;
  letter-spacing: 0.2em;
  color: rgba(243, 244, 244, 0.55);
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: calc(1 - var(--scroll-progress, 0));
  z-index: 1;
}

.scroll-text {
  font-family: inherit;
  font-size: inherit;
  font-weight: 500;
  letter-spacing: inherit;
  color: inherit;
  text-transform: uppercase;
  animation: pulse-scroll-text 2s infinite ease-in-out;
}

@keyframes pulse-scroll-text {

  0%,
  100% {
    opacity: 0.5;
    transform: translate3d(0, 0, 0);
  }

  50% {
    opacity: 1;
    transform: translate3d(0, 4px, 0);
  }
}

/* --- Hero Entrance Animation (scroll-locked rise-up) --- */
.hero-section.hero-entrance .hero-title-container {
  overflow: hidden;
}

.hero-section.hero-entrance .monumental-title>span {
  display: inline-block;
  transform: translateY(110%);
  opacity: 0;
}

.hero-section.hero-entrance.title-reveal .monumental-title>span {
  transform: translateY(0);
  opacity: 1;
  transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.8s ease;
}

.hero-section.hero-entrance .composite-row .composite-text:first-of-type {
  transform: translate3d(-12vw, 110%, 0) !important;
  opacity: 0;
}

.hero-section.hero-entrance .composite-row .composite-text:last-of-type {
  transform: translate3d(12vw, 110%, 0) !important;
  opacity: 0;
}

.hero-section.hero-entrance.uiux-reveal .composite-row .composite-text:first-of-type {
  transform: translate3d(-12vw, 0, 0) !important;
  opacity: 1;
  transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1) 0.1s,
    opacity 0.8s ease 0.1s;
}

.hero-section.hero-entrance.uiux-reveal .composite-row .composite-text:last-of-type {
  transform: translate3d(12vw, 0, 0) !important;
  opacity: 1;
  transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1) 0.1s,
    opacity 0.8s ease 0.1s;
}

.hero-section.hero-entrance .scroll-indicator {
  opacity: 0 !important;
}



/* --- RESPONSIVE MEDIA QUERIES (Awwwards mobile compliance) --- */
@media (max-width: 768px) {
  body {
    overflow-y: auto;
    /* Allow natural mobile scrolling */
  }

  .mouse-follower {
    display: none;
    /* Hide custom cursor follower on touch screens */
  }

  .portfolio-container {
    height: auto;
    padding: 20px;
  }

  .center-stack-wrapper {
    margin: 4vh auto 6vh auto;
    padding: 0 20px;
  }

  .center-headline {
    font-size: 18px;
    margin-bottom: 12px;
  }

  .center-bio {
    font-size: 12px;
    margin-bottom: 30px;
  }

  .hero-window-stack {
    width: 280px;
    height: 330px;
  }

  .hide-mobile {
    display: none;
  }

  .monumental-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0px;
  }

  .hero-title {
    font-size: 20vw;
    /* Big and punchy stacked titles on mobile */
    text-align: center;
  }
}

/* Animations keyframes */
@keyframes pulse-glow {
  0% {
    opacity: 0.6;
    box-shadow: 0 0 4px var(--accent-color);
  }

  50% {
    opacity: 1;
    box-shadow: 0 0 12px var(--accent-color);
  }

  100% {
    opacity: 0.6;
    box-shadow: 0 0 4px var(--accent-color);
  }
}

/* DOM-based Typographic Logo Animation */
.logo-animation-container {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.95);
  transform-origin: center center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  font-family: var(--font-display);
  font-size: 80px;
  font-weight: 600;
  color: var(--accent-color);
  z-index: 110;
  pointer-events: none;
  white-space: nowrap;
  opacity: 0;
  transition: transform 1.25s cubic-bezier(0.85, 0, 0.15, 1), opacity 0.6s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform, opacity;
  letter-spacing: -0.05em;
  text-shadow: 0 0 10px rgba(243, 244, 244, 0.1);
}

.logo-animation-container.name-active {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

@media (max-width: 768px) {
  .logo-animation-container {
    font-size: 8vw;
  }
}

.logo-animation-container.hide {
  display: none !important;
}



.logo-text-wrapper {
  display: flex;
  align-items: center;
  overflow: hidden;
}

.logo-char {
  display: inline-block;
}

.logo-collapse-wrapper {
  display: inline-block;
  vertical-align: bottom;
  overflow: hidden;
  max-width: 350px;
  opacity: 1;
  flex-shrink: 0;
  /* Prevent flex shrinking */
  padding-right: 12px;
  /* Prevent right-end character cropping */
  transition: max-width 0.8s cubic-bezier(0.85, 0, 0.15, 1), padding-right 0.8s cubic-bezier(0.85, 0, 0.15, 1), opacity 0.6s ease;
}

.sliding-text {
  display: inline-block;
  transform: translateY(0);
  transition: transform 0.7s cubic-bezier(0.85, 0, 0.15, 1);
}

/* Step 1: Slide Down active - text slides down and fades out, but max-width remains 350px */
.logo-animation-container.slide-down-active .sliding-text {
  transform: translateY(105%);
}

.logo-animation-container.slide-down-active .logo-collapse-wrapper {
  opacity: 0;
}

/* Step 2: Collapsing - max-width shrinks to 0 to bring A and L together */
.logo-animation-container.collapsing .logo-collapse-wrapper {
  max-width: 0px !important;
  padding-right: 0px !important;
  opacity: 0;
}

.logo-animation-container.collapsing .sliding-text {
  transform: translateY(105%);
}

/* Bracket snaps */
.logo-bracket {
  display: inline-block;
  width: 0;
  opacity: 0;
  overflow: hidden;
  margin: 0;
  color: var(--accent-color);
  font-weight: 600;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.bracket-left {
  transform: translateX(-120px) scale(0.4);
}

.bracket-right {
  transform: translateX(120px) scale(0.4);
}

/* snapped state margins and bounds */
.logo-animation-container.bracket-snap .bracket-left {
  width: auto;
  opacity: 1;
  transform: translateX(0) scale(1);
  margin-right: 6px;
}

.logo-animation-container.bracket-snap .bracket-right {
  width: auto;
  opacity: 1;
  transform: translateX(0) scale(1);
  margin-left: 6px;
}

/* --- COLLAGE ANIMATION SYSTEM --- */
.collage-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 100;
  pointer-events: none;
  transition: opacity 0.6s ease;
}

.collage-container.hide {
  display: none !important;
}

.collage-item {
  position: absolute;
  opacity: 0;
  will-change: transform, opacity;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.15), 0 2px 8px rgba(0, 0, 0, 0.08);
  /* subtle soft shadow */
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  overflow: hidden;
}

/* Slide in offsets - Fullscreen responsive layout */
.collage-item.item-1 {
  width: 20vw;
  height: 48vh;
  left: 5vw;
  top: 8vh;
  transform: translateY(180px);
}

.collage-item.item-2 {
  width: 25vw;
  height: 32vh;
  left: 30vw;
  top: 6vh;
  transform: translateY(-180px);
}

.collage-item.item-3 {
  width: 22vw;
  height: 42vh;
  left: 45vw;
  top: 50vh;
  transform: translateY(180px);
}

.collage-item.item-4 {
  width: 18vw;
  height: 46vh;
  left: 76vw;
  top: 10vh;
  transform: translateY(-180px);
}

.collage-item.item-5 {
  width: 20vw;
  height: 30vh;
  left: 8vw;
  top: 62vh;
  transform: translateY(180px);
}

/* Active State: Slide in & stagger */
.collage-container.collage-active .collage-item {
  opacity: 1;
  transform: translateY(0);
}

.collage-container.collage-active .item-1 {
  transition: all 1.2s cubic-bezier(0.25, 1, 0.5, 1) 0.0s;
}

.collage-container.collage-active .item-2 {
  transition: all 1.2s cubic-bezier(0.25, 1, 0.5, 1) 0.4s;
}

.collage-container.collage-active .item-3 {
  transition: all 1.2s cubic-bezier(0.25, 1, 0.5, 1) 0.6s;
}

.collage-container.collage-active .item-4 {
  transition: all 1.2s cubic-bezier(0.25, 1, 0.5, 1) 0.8s;
}

.collage-container.collage-active .item-5 {
  transition: all 1.2s cubic-bezier(0.25, 1, 0.5, 1) 1s;
}

/* Exit State: Disperse & fade */
.collage-container.collage-fade-out {
  opacity: 0;
}

.collage-container.collage-fade-out .item-1 {
  transform: translateY(-80px);
  transition: all 0.8s cubic-bezier(0.85, 0, 0.15, 1);
}

.collage-container.collage-fade-out .item-2 {
  transform: translateY(80px);
  transition: all 0.8s cubic-bezier(0.85, 0, 0.15, 1);
}

.collage-container.collage-fade-out .item-3 {
  transform: translateY(-80px);
  transition: all 0.8s cubic-bezier(0.85, 0, 0.15, 1);
}

.collage-container.collage-fade-out .item-4 {
  transform: translateY(80px);
  transition: all 0.8s cubic-bezier(0.85, 0, 0.15, 1);
}

.collage-container.collage-fade-out .item-5 {
  transform: translateY(-80px);
  transition: all 0.8s cubic-bezier(0.85, 0, 0.15, 1);
}

/* Placeholder Interior styling */
.collage-placeholder {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px;
  background: radial-gradient(circle at center, rgba(243, 244, 244, 0.015) 0%, transparent 80%);
}

/* Allow images inside placeholder later */
.collage-placeholder img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  opacity: 0;
  transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.8s ease;
  z-index: 1;
  will-change: transform, opacity;
}

.collage-placeholder img.loaded {
  opacity: 0.85;
}

.collage-placeholder img:hover {
  transform: scale(1.04);
}

.collage-label {
  font-family: var(--font-display);
  font-size: 8px;
  letter-spacing: 0.15em;
  color: var(--text-dim);
  z-index: 2;
}

.collage-crosshair {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  transform: translate(-50%, -50%);
  z-index: 2;
}

.collage-crosshair::before,
.collage-crosshair::after {
  content: '';
  position: absolute;
  background-color: rgba(243, 244, 244, 0.15);
}

.collage-crosshair::before {
  top: 4px;
  left: 0;
  width: 10px;
  height: 1px;
}

.collage-crosshair::after {
  top: 0;
  left: 4px;
  width: 1px;
  height: 10px;
}

/* Mobile responsive override */
@media (max-width: 768px) {
  .collage-container {
    width: 100vw;
    height: 100vh;
  }

  .collage-item.item-1 {
    width: 38vw;
    height: 28vh;
    left: 6vw;
    top: 10vh;
  }

  .collage-item.item-2 {
    width: 44vw;
    height: 20vh;
    left: 50vw;
    top: 8vh;
  }

  .collage-item.item-3 {
    width: 42vw;
    height: 26vh;
    left: 52vw;
    top: 48vh;
  }

  .collage-item.item-4 {
    width: 36vw;
    height: 30vh;
    left: 8vw;
    top: 56vh;
  }

  .collage-item.item-5 {
    display: none;
  }
}

/* --- SECTION 3: Overlapping Rounded Section --- */
.overlapping-section {
  position: relative;
  margin-top: 0;
  background-color: #F3F4F4;
  /* changed to light gray off-white for contrast with white work-folder cards */
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  padding: 40px;
  /* Equalized padding to 40 on all sides */
  z-index: 40;
  min-height: 80vh;
}

.section-container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #2C2C2C;
  /* Premium editorial dark focus */
  margin-bottom: 12px;
  text-transform: uppercase;
}

.section-subtitle {
  font-family: var(--font-body);
  font-size: 16px;
  /* Scaled up for screen legibility */
  font-weight: 400;
  color: #48484a;
  /* Muted dark for premium contrast */
  max-width: 600px;
  line-height: 1.7;
}

/* --- BRUTALIST STACKING FOLDERS LAYOUT --- */

.works-section-container {
  width: 100%;
  margin: 0;
  box-sizing: border-box;
  position: relative;
  padding-bottom: 0;
  /* Remove raw padding approximations */
}

#works .section-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 68px);
  /* Increased size to be greater than folder-headline */
  font-weight: 700;
  letter-spacing: -0.05em;
  color: #2C2C2C;
  text-transform: uppercase;
  margin-bottom: 80px;
  /* Increased bottom margin */
  line-height: 0.85;
}

/* Enclosed Individual Folder Card */
.work-folder {
  position: sticky;
  top: 120px;
  height: calc(100vh - 140px);
  background-color: #F3F4F4;
  box-shadow: 0 -4px 20px rgba(44, 44, 44, 0.02), 0 10px 30px rgba(44, 44, 44, 0.03);
  margin-bottom: 0;
  box-sizing: border-box;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

/* Ensure the last card retains the standard layout flow spacing */
.work-folder:last-of-type {
  margin-bottom: 0;
}

/* Structural Spacer: Prevents margin collapsing and locks the sticky track open */
.works-scroll-spacer {
  height: 10vh;
  /* minimized scroll space for early exit */
  width: 100%;
  pointer-events: none;
  visibility: hidden;
  /* Remains completely invisible to the user interface */
}

/* Base z-indices for stacking folders */
.work-folder[data-folder="0"] {
  z-index: 10;
}

.work-folder[data-folder="1"] {
  z-index: 20;
}

.work-folder[data-folder="2"] {
  z-index: 30;
}

/* Boost folder z-index when image overlay is active so modal covers all folders */
.work-folder:has(.showcase-placeholder.active) {
  z-index: 9999 !important;
}

/* Folder tab header styling */
.folder-tab {
  position: absolute;
  top: -42px;
  /* sit on top of body */
  height: 42px;
  width: 220px;
  /* Fixed width for perfect side-by-side compilation */
  background-color: #F3F4F4;
  /* constant white background to let shadow distinguish it */
  border: none;
  border-radius: 0;
  /* Removed rounded corners */
  display: flex;
  align-items: center;
  justify-content: center;
  /* Center text inside tab */
  padding: 0 20px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #2C2C2C;
  /* constant dark text color */
  white-space: nowrap;
  pointer-events: none;
  /* Make tab not clickable */
  z-index: 5;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 -4px 10px rgba(44, 44, 44, 0.02);
}

.tab-num-badge {
  font-family: inherit;
  font-weight: 800;
}

.tab-separator {
  margin: 0 8px;
  opacity: 0.4;
}

/* Offset folder tabs horizontally to compile side-by-side with a left shoulder gap and 6px spacing */
.work-folder[data-folder="0"] .folder-tab {
  left: 24px;
  /* Gap from the left edge */
}

.work-folder[data-folder="1"] .folder-tab {
  left: 260px;
  /* Aligned next to tab 1 with 6px spacing (24px + 220px + 16px) */
}

.work-folder[data-folder="2"] .folder-tab {
  left: 496px;
  /* Aligned next to tab 2 with 6px spacing (250px + 220px + 16px) */
  width: 260px;
}

/* Active folder and tab styling */
.work-folder.active {
  box-shadow: 0 -6px 25px rgba(44, 44, 44, 0.04), 0 15px 40px rgba(44, 44, 44, 0.05);
  /* subtle active shadow */
}

.work-folder.active .folder-tab {
  z-index: 40;
}

/* Folder Internal Layout */
.folder-body {
  padding: 32px;
  /* Lessened padding */
  height: 100%;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.folder-content-split {
  display: flex;
  justify-content: space-between;
  gap: 6%;
  height: 100%;
  flex: 1;
}

.folder-left {
  width: 48%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  /* Pushes bottom list container directly to the bottom */
  height: 100%;
  padding: 20px 0;
}

.folder-right {
  width: 46%;
  height: 100%;
  /* Stretched height */
}

.folder-headline {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 600;
  color: #2C2C2C;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.folder-bio {
  font-family: var(--font-body);
  font-size: 15px;
  color: #48484a;
  line-height: 1.6;
  max-width: 90%;
}

/* The Minimal bottom meta system from image_7e2d21.jpg */
.folder-bottom-list {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin-top: auto;
  /* Absolute safety push to bottom */
}

.list-row {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: #2C2C2C;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 16px 0;
  border-top: 1px solid #2C2C2C;
  /* Dark border matching the font color */
}

.list-row:last-child {
  border-bottom: 1px solid #2C2C2C;
}

/* --- STYLISED WIREFRAME BLUEPRINTS INSIDE FOLDERS --- */

.folder-media-viewport {
  width: 100%;
  height: 100%;
  position: relative;
  background-color: #e5e5e7;
  border: none;
  /* Removed outer black border */
  border-radius: 0;
  /* Removed rounded corners */
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
  box-sizing: border-box;
}

.showcase-placeholder {
  flex: 1;
  border: 1px dashed rgba(44, 44, 44, 0.25);
  border-radius: 0;
  /* Removed rounded corners */
  background-color: rgba(243, 244, 244, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.showcase-placeholder:hover {
  background-color: rgba(243, 244, 244, 0.95);
  border-color: rgba(44, 44, 44, 0.45);
}

.showcase-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  z-index: 1;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.showcase-placeholder:hover .showcase-img {
  transform: scale(1.05);
}

/* Direct Link Button on Showcase Card */
.showcase-direct-link {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  background-color: rgba(243, 244, 244, 0.85);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid rgba(44, 44, 44, 0.08);
  border-radius: 4px;
  color: #2C2C2C;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 6;
  cursor: pointer;
  opacity: 0;
  transform: scale(0.9) translate3d(5px, -5px, 0);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.showcase-direct-link svg {
  width: 16px;
  height: 16px;
}

.showcase-placeholder:hover .showcase-direct-link {
  opacity: 1;
  transform: scale(1) translate3d(0, 0, 0);
}

.showcase-direct-link:hover {
  background-color: #ffffff;
  color: #000000;
  transform: scale(1.08);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

/* Hover Zoom Modal Layout Updates */
.hover-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(14, 14, 18, 0.92); /* Deeper dark background for cinema focus */
  z-index: 99999;
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), pointer-events 0s linear;
  padding: 88px 40px 24px 40px;
  box-sizing: border-box;
}

.showcase-placeholder.active .hover-modal {
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), pointer-events 0s linear 0.4s;
}

.modal-content-wrapper {
  position: relative;
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  height: fit-content;
}

.hover-modal img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.65);
  border: 1px solid rgba(243, 244, 244, 0.08);
  transform: scale(0.92) translate3d(0, 15px, 0);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.showcase-placeholder.active .hover-modal img {
  transform: scale(1) translate3d(0, 0, 0);
}

/* Glassmorphic Info Action Bar inside Modal */
.modal-info-overlay {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translate3d(-50%, 20px, 0);
  width: 90%;
  max-width: 520px;
  background-color: rgba(44, 44, 44, 0.85);
  backdrop-filter: blur(16px) saturate(120%);
  -webkit-backdrop-filter: blur(16px) saturate(120%);
  border: 1px solid rgba(243, 244, 244, 0.12);
  border-radius: 8px;
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-sizing: border-box;
  opacity: 0;
  z-index: 10;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.showcase-placeholder.active .hover-modal .modal-info-overlay {
  opacity: 1;
  transform: translate3d(-50%, 0, 0);
  transition-delay: 0.15s;
}

.modal-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  text-align: left;
}

.modal-project-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  color: #ffffff;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin: 0;
  line-height: 1.2;
}

.modal-project-category {
  font-family: Consolas, Monaco, "Fira Code", monospace;
  font-size: 9px;
  color: rgba(243, 244, 244, 0.5);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0;
  line-height: 1.2;
}

.modal-action-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background-color: #F3F4F4;
  border: 1px solid transparent;
  border-radius: 4px;
  text-decoration: none;
  color: #2C2C2C;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.05em;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.modal-action-btn:hover {
  background-color: #ffffff;
  color: #000000;
  transform: translateY(-1px);
  box-shadow: 0 6px 15px rgba(255, 255, 255, 0.12);
}

.modal-action-btn .arrow-icon {
  width: 14px;
  height: 14px;
  transition: transform 0.3s ease;
}

.modal-action-btn:hover .arrow-icon {
  transform: translate3d(4px, 0, 0);
}

/* Zoom Modal Close Button */
.modal-close-btn {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(243, 244, 244, 0.18);
  background-color: rgba(14, 14, 18, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #F3F4F4;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-sizing: border-box;
  z-index: 20;
  padding: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.modal-close-btn svg {
  width: 18px;
  height: 18px;
}

.modal-close-btn:hover {
  background-color: rgba(243, 244, 244, 0.95);
  color: #2C2C2C;
  border-color: transparent;
  transform: rotate(90deg) scale(1.05);
}

/* CSS Mobile Responsive Styles Overrides */
@media (max-width: 768px) {
  .showcase-direct-link {
    opacity: 1; /* Always visible on touch screens */
    transform: scale(1) translate3d(0, 0, 0);
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
  }
  
  .showcase-direct-link svg {
    width: 14px;
    height: 14px;
  }
  
  .modal-info-overlay {
    bottom: 16px;
    width: 94%;
    padding: 12px 16px;
    border-radius: 6px;
  }
  
  .modal-project-title {
    font-size: 13px;
  }
  
  .modal-project-category {
    font-size: 8px;
  }
  
  .modal-action-btn {
    padding: 8px 12px;
    font-size: 10px;
    gap: 6px;
  }
  
  .modal-action-btn .arrow-icon {
    width: 12px;
    height: 12px;
  }
  
  .modal-close-btn {
    top: 16px;
    right: 16px;
    width: 34px;
    height: 34px;
  }
  
  .modal-close-btn svg {
    width: 16px;
    height: 16px;
  }
}

.placeholder-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  font-family: Consolas, Monaco, "Fira Code", monospace;
  font-size: 11px;
  color: #2C2C2C;
  z-index: 5;
  letter-spacing: 0.05em;
  background-color: #F3F4F4;
  padding: 6px 12px;
  border-radius: 3px;
  border: 1px solid rgba(44, 44, 44, 0.05);
  transition: all 0.3s ease;
}

.showcase-placeholder:hover .placeholder-tag {
  color: #2C2C2C;
  border-color: rgba(44, 44, 44, 0.2);
  transform: scale(1.02);
}

.placeholder-crosshair {
  display: none;
}

/* --- RESPONSIVE OVERRIDES FOR MOBILE --- */

@media (max-width: 768px) {
  .works-section-container {
    width: calc(100% - 32px);
    /* smaller edge gap on mobile */
  }

  #works .section-title {
    margin-bottom: 50px;
    font-size: clamp(36px, 8vw, 64px);
  }

  .work-folder {
    position: relative;
    top: 0 !important;
    height: auto !important;
    border-radius: 0;
  }

  .work-folder:last-of-type {
    margin-bottom: 20px !important;
  }

  .folder-tab {
    position: relative;
    top: 0;
    left: 0 !important;
    width: 100% !important;
    /* full width tabs stacked vertically */
    height: 40px;
    background-color: #F3F4F4 !important;
    border: none;
    border-radius: 0;
    box-sizing: border-box;
    color: #2C2C2C !important;
    /* always visible text */
  }

  .work-folder.active .folder-tab {
    background-color: #F3F4F4 !important;
    margin-bottom: 0;
  }

  .folder-body {
    padding: 24px 16px;
    height: auto !important;
  }

  .folder-content-split {
    flex-direction: column;
    gap: 24px;
    height: auto !important;
  }

  .folder-left,
  .folder-right {
    width: 100%;
  }

  .folder-right {
    height: 320px !important;
    /* Restore height for mobile showcase layout */
  }
}

/* ==================================================================
  POSTER SHOWCASE LAYOUT DESIGN
================================================================== */
.poster-timeline-section {
  position: relative;
  height: 100vh;
  min-height: 100vh;
  background-color: #2C2C2C;
  width: 100%;
  overflow: hidden;
}

.works-posters-spacer {
  height: 100px;
  /* Editorial spacing gap */
  width: 100%;
  background-color: #F3F4F4;
  /* Blends with works section background */
}

.poster-sticky-viewport {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.poster-section-title {
  font-family: var(--font-display, 'Outfit');
  font-size: clamp(40px, 6vw, 68px);
  /* Identical to SELECTED WORKS */
  font-weight: 700;
  letter-spacing: -0.05em;
  color: #2C2C2C;
  text-transform: uppercase;
  position: absolute;
  top: 80px;
  /* Aligned vertically matching SELECTED WORKS */
  left: 40px;
  /* Left aligned, matching SELECTED WORKS */
  line-height: 0.85;
  z-index: 50;
  will-change: transform, opacity;
}

.poster-section-title .meta-indicator {
  display: block;
  font-family: var(--font-display, 'Outfit');
  font-size: 11px;
  font-weight: 600;
  color: #8e8e93;
  letter-spacing: 0.15em;
  margin-bottom: 12px;
}

.poster-matrix-portal {
  position: relative;
  width: 100%;
  height: 100%;
  perspective: 2500px;
  /* Deep unified 3D perspective field */
  transform-style: preserve-3d;
  display: flex;
  justify-content: center;
  align-items: center;
  will-change: transform;
}

.poster-cover-card {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: auto;
  background-color: #F3F4F4;
  border-radius: 0;
  box-shadow: none;
  transform-style: preserve-3d;
  transform-origin: center center;
  backface-visibility: visible;
  z-index: 20;
  will-change: transform, opacity, width, height, border-radius;
}

.about-cover-card {
  position: absolute;
  width: 320px;
  height: 440px;
  margin: auto;
  background-color: #F3F4F4;
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(44, 44, 44, 0.15);
  transform-style: preserve-3d;
  transform-origin: center center;
  backface-visibility: visible;
  z-index: 21;
  opacity: 0;
  pointer-events: none;
  will-change: transform, opacity, width, height, border-radius;
}

.cover-design-inner {
  width: 100%;
  height: 100%;
  position: relative;
  border-radius: inherit;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  box-sizing: border-box;
  background: #F3F4F4;
  /* clean white card design for background match */
  border: 1px solid rgba(44, 44, 44, 0.08);
}

.cover-crosshair {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.cover-crosshair::before,
.cover-crosshair::after {
  content: "";
  position: absolute;
  background-color: rgba(44, 44, 44, 0.04);
  /* dark crosshair for white card */
}

.cover-crosshair::before {
  top: 50%;
  left: 8%;
  right: 8%;
  height: 1px;
}

.cover-crosshair::after {
  left: 50%;
  top: 8%;
  bottom: 8%;
  width: 1px;
}

.cover-meta-top {
  display: flex;
  justify-content: space-between;
  font-family: Consolas, Monaco, "Fira Code", monospace;
  font-size: 8px;
  color: rgba(44, 44, 44, 0.5);
  /* dark metal text color */
  letter-spacing: 0.05em;
}

.cover-center-art {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cover-monogram {
  font-family: var(--font-display, 'Outfit');
  font-size: 90px;
  font-weight: 800;
  color: rgba(44, 44, 44, 0.03);
  /* subtle dark monogram */
  letter-spacing: -0.05em;
  border: 1px solid rgba(44, 44, 44, 0.02);
  padding: 0 20px;
  border-radius: 12px;
  user-select: none;
}

.poster-cluster-anchor {
  position: absolute;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
}

.poster-card {
  position: absolute;
  inset: 0;
  width: 320px;
  height: 440px;
  margin: auto;
  will-change: transform, opacity;
  transition: box-shadow 0.3s ease;
  z-index: 10;
  pointer-events: none;
  /* Pointer events mapped only in fanned out state */
  transform-style: preserve-3d;
  transform-origin: center center;
  backface-visibility: visible;
  opacity: 0;
  /* initially hidden and flat */
}

/* Force Let-down.webp to be on top */
.poster-card.card-4 {
  z-index: 25 !important;
}

.poster-timeline-section.active-focus .poster-card {
  pointer-events: auto;
}

.card-inner {
  width: 100%;
  height: 100%;
  background: #2C2C2C;
  border: 1px solid rgba(243, 244, 244, 0.1);
  border-radius: 20px;
  /* matched to cover card border radius */
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #f5f5f7;
  font-family: var(--font-display, 'Outfit');
  font-size: 12px;
  transform: rotateY(180deg);
  transform-style: preserve-3d;
  backface-visibility: visible;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

.card-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.card-inner span {
  position: absolute;
  bottom: 12px;
  left: 12px;
  font-family: Consolas, Monaco, monospace;
  font-size: 9px;
  color: rgba(243, 244, 244, 0.6);
  background-color: rgba(44, 44, 44, 0.75);
  padding: 4px 8px;
  border-radius: 4px;
  border: 1px solid rgba(243, 244, 244, 0.08);
  z-index: 5;
}

/* 3D hover focus state */
.poster-card:hover {
  z-index: 100 !important;
}

.poster-card:hover .card-inner {
  transform: rotateY(180deg) scale(1.08) translateZ(120px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

/* cover card inner graphics monogram */
.cover-card-eg-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  z-index: 10;
  pointer-events: none;
}

.eg-monogram {
  font-family: var(--font-display, 'Outfit');
  font-size: 72px;
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.05em;
  color: #2C2C2C;
}

.eg-subtitle {
  font-family: Consolas, Monaco, "Fira Code", monospace;
  font-size: 9px;
  letter-spacing: 0.1em;
  color: rgba(44, 44, 44, 0.6);
  margin-top: 8px;
  text-transform: uppercase;
  white-space: nowrap;
}

/* ==================================================================
   SECTION 4: Dedicated About Me Section (Awwwards design style)
   ================================================================== */
.about-section {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: transparent;
  color: #2C2C2C;
  padding: 80px 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 55;
  box-sizing: border-box;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.about-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  max-width: none;
  width: 100%;
  align-items: start;
}

.about-left {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.about-left h2 {
  font-family: var(--font-display, 'Outfit');
  font-size: 48px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #2C2C2C;
  margin: 0;
  text-transform: uppercase;
}

.about-right {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.about-lead-text {
  font-family: var(--font-body, 'Space Grotesk');
  font-size: 24px;
  line-height: 1.5;
  color: #2C2C2C;
  margin: 0;
  font-weight: 400;
}

.soft-skills-container {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  width: 100%;
  gap: 40px;
}

.skills-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  flex: 1;
}

.skills-label {
  font-family: Consolas, Monaco, monospace;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(44, 44, 44, 0.85);
  margin: 0;
  white-space: nowrap;
}

.skills-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.skill-pill {
  font-family: var(--font-display, 'Outfit');
  font-size: 12px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.skill-pill.filled {
  background-color: #2C2C2C;
  color: #F3F4F4;
  border: 1px solid #2C2C2C;
}

.skill-pill.outlined {
  background-color: transparent;
  color: #2C2C2C;
  border: 1px solid rgba(44, 44, 44, 0.15);
}

.toolkit-pill {
  background-color: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  border-radius: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.toolkit-pill svg,
.tool-svg {
  height: 48px;
  width: auto;
  max-width: 100%;
}

.hero-left-column {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100%;
}

.left-contact-box {
  margin-top: auto;
  padding-top: 40px;
  display: flex;
  align-items: center;
  width: fit-content;
}

.contact-email-link {
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: #2C2C2C;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 4px 0;
  position: relative;
  mix-blend-mode: difference;
}

.contact-arrow-icon {
  font-size: 12px;
  display: inline-block;
  will-change: transform;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.contact-email-link:hover .contact-arrow-icon {
  transform: translate3d(6px, 0, 0);
}

.contact-email-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: currentColor;
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.contact-email-link:hover::after {
  transform: scaleX(1);
  transform-origin: left center;
}

/* ==================================================================
   SECTION 5: Site Footer Section (Grounding and Giant Typography)
   ================================================================== */
.site-footer {
  width: 100%;
  height: 50vh;
  /* Forces the footer section to fill 40% of the screen height */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  /* Pins utility links to the top, giant text to the bottom */
  padding: 60px 40px 0px 40px;
  /* Purges bottom padding completely so text hits the screen floor */
  box-sizing: border-box;
  overflow: hidden;
  position: relative;
  background-color: #2C2C2C;
  border-top: 1px solid var(--border-color);
}

.footer-utility-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  width: 100%;
}

.footer-grid-column {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-grid-column.align-right {
  align-items: flex-end;
  text-align: right;
}

.footer-label {
  font-family: Consolas, Monaco, monospace;
  font-size: 9px;
  letter-spacing: 0.1em;
  color: rgba(243, 244, 244, 0.45);
  text-transform: uppercase;
}

.footer-link {
  font-family: var(--font-display, 'Outfit');
  font-size: 11px;
  font-weight: 500;
  color: rgba(243, 244, 244, 0.8);
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: #F3F4F4;
}

.footer-data-text {
  font-family: var(--font-display, 'Outfit');
  font-size: 11px;
  font-weight: 500;
  color: rgba(243, 244, 244, 0.8);
  letter-spacing: 0.05em;
}

.footer-massive-text-wrap {
  width: 100%;
  margin-top: auto;
  /* Absolute structural downward push lock */
  display: flex;
  justify-content: center;
  align-items: flex-end;
  /* Grounds the base metrics of the characters */
  padding: 0;
  position: relative;
  overflow: visible;
}

.footer-giant-name {
  position: relative;
  display: block;
  width: 100%;
  text-align: center;
  font-family: var(--font-display, 'Outfit');
  font-size: calc(12.55vw - 10px);
  font-weight: 900;
  color: #F3F4F4;
  letter-spacing: -0.02em;
  margin: 0;
  padding: 0;
  line-height: 0.72;
  /* Tightens the character baseline box model to touch the screen border */
  transform-origin: bottom center;
}

/* ==================================================================
   SECTION 6: Responsive Mobile Overrides
   ================================================================== */
@media (max-width: 768px) {
  .about-section {
    padding: 80px 40px;
  }

  .about-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-left h2 {
    font-size: 32px;
  }

  .about-lead-text {
    font-size: 20px;
  }

  .footer-utility-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .footer-grid-column.align-right {
    align-items: flex-start;
    text-align: left;
  }
}

@media (max-width: 480px) {
  .footer-utility-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

.project-preview-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  z-index: 1;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.showcase-placeholder:hover .project-preview-img {
  transform: scale(1.04);
}