/* ============================================================
   HERO SECTION
   ============================================================ */
/* ── STATIC SIDE DECORATIONS (HERO ONLY) ── */
.side-decor-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 100;
}

.side-decor {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  color: var(--accent-primary);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  opacity: 0.4;
}
.left-decor {
  top: 38px;
  left: 3vw;
  transform: translateY(-50%);
  flex-direction: row;
}
.right-decor {
  right: 3vw;
}
.decor-text-vert {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
}
.decor-text-horiz {
  /* Default horizontal text */
}
.decor-barcode {
  width: 20px;
  height: 80px;
  background: repeating-linear-gradient(
    to bottom,
    var(--accent-primary),
    var(--accent-primary) 2px,
    transparent 2px,
    transparent 5px,
    var(--accent-primary) 5px,
    var(--accent-primary) 6px,
    transparent 6px,
    transparent 10px
  );
  opacity: 0.6;
}
.decor-barcode.horiz {
  width: 80px;
  height: 20px;
  background: repeating-linear-gradient(
    to right,
    var(--accent-primary),
    var(--accent-primary) 2px,
    transparent 2px,
    transparent 5px,
    var(--accent-primary) 5px,
    var(--accent-primary) 6px,
    transparent 6px,
    transparent 10px
  );
}
.decor-matrix {
  font-size: 0.6rem;
  text-align: center;
  line-height: 1.2;
}
.decor-box {
  width: 16px;
  height: 16px;
  border: 1px solid var(--accent-primary);
  position: relative;
  will-change: transform;
  transform: translateZ(0);
  animation: rotateBox 10s linear infinite;
}
.crosshair-target {
  width: 20px;
  height: 20px;
  border: 1px solid var(--accent-primary);
  border-radius: 50%;
  position: relative;
}
.crosshair-target::before, .crosshair-target::after {
  content: '';
  position: absolute;
  background: var(--accent-primary);
}
.crosshair-target::before { top: 50%; left: -5px; right: -5px; height: 1px; }
.crosshair-target::after { left: 50%; top: -5px; bottom: -5px; width: 1px; }

@keyframes rotateBox {
  100% { transform: rotate(360deg); }
}
@media (max-width: 1400px) {
  .side-decor-layer {
    display: none;
  }
}

#hero {
  align-items: center;
}

/* Atom canvas */
.atom-bg-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

#atom-canvas {
  width: 100%;
  height: 100%;
  display: block;
}



#hero .container {
  position: relative;
  z-index: 1;
  justify-content: center;
  padding-top: 20px;
  overflow: visible;
}

.hero-content { max-width: 860px; }

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.38rem 1rem;
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  border-radius: 50px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--accent-secondary);
  margin-bottom: 1.5rem;
  animation: fadeSlideDown 0.8s ease both;
}
.hero-tag .dot {
  width: 7px; height: 7px;
  background: var(--accent-tertiary);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%,100%{transform:scale(1);opacity:1}
  50%{transform:scale(1.5);opacity:0.6}
}

.hero-name {
  font-family: 'Yatra One', cursive !important;
  font-weight: 400;
  font-size: clamp(3rem, 10vw, 9rem);
  text-align: center;
  margin-top: -1rem;
  margin-bottom: 0.5rem;
  
  /* The Aurora Effect */
  background: linear-gradient(
    -45deg, 
    var(--accent-primary), 
    var(--accent-secondary), 
    var(--accent-tertiary), 
    var(--accent-primary)
  );
  background-size: 400% 400%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  
  animation: auroraFlow 8s ease infinite, fadeSlideUp 0.9s ease 0.2s both;
  
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 10;
  cursor: crosshair;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.4s ease;
}

.hero-name:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 15px 40px var(--accent-glow));
}

@keyframes auroraFlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.snake-canvas {
  position: absolute;
  top: -50px;
  left: -50px;
  width: calc(100% + 100px);
  height: calc(100% + 100px);
  pointer-events: none;
}

#snake-canvas-back {
  z-index: 1; /* Below the span's z-index: 10 */
}

#snake-canvas-front {
  z-index: 20; /* Above the span */
}



/* ── HERO COLUMNS & BOXES (Sketch Layout) ── */
.hero-content-wrapper {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-boxes-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.8rem;
  width: 100%;
  margin-top: 1rem;
  margin-bottom: 1.5rem;
  animation: fadeSlideUp 0.9s ease 0.35s both;
}

.hero-box {
  background: var(--bg-card);
  border: 1.5px solid var(--border-color);
  border-radius: 16px;
  padding: 1.5rem;
  min-height: 220px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), 
              border-color 0.4s ease, 
              box-shadow 0.4s ease;
}

.hero-box:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-hover), 0 0 45px var(--accent-glow);
}

.box-header {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.8rem;
  margin-bottom: 1.5rem;
  text-align: left;
}

.hero-box .box-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.1rem;
  color: var(--accent-primary);
  letter-spacing: 0.15em;
  font-weight: 700;
}

.box-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.2rem;
  text-align: left;
}

.dossier-row {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.dossier-key {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  font-weight: 600;
}

.dossier-value {
  font-family: 'Outfit', sans-serif;
  font-size: 1.05rem;
  color: var(--text-primary);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.status-dot {
  width: 8px;
  height: 8px;
  background-color: #28a745; /* green color for availability */
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 8px rgba(40, 167, 69, 0.6);
  animation: pulseGreen 2s infinite;
}

@keyframes pulseGreen {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.8; }
}

/* Canvas Box Custom styling */
.canvas-box {
  padding: 1.5rem;
  justify-content: center;
}

.canvas-container {
  flex: 1;
  position: relative;
  width: 100%;
  height: 180px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: visible;
  margin-bottom: 4rem; /* Visually push the 3D model upward */
}

.canvas-box canvas {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  width: 100%;
  height: 100%;
  display: block;
}

.atom-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  text-align: right;
  margin-top: 0.5rem;
  z-index: 2;
  pointer-events: none;
}

/* Crosshairs in corners (from sketch details) */
.crosshair {
  position: absolute;
  width: 12px;
  height: 12px;
  border-color: var(--accent-primary);
  border-style: solid;
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

.hero-box:hover .crosshair {
  opacity: 1;
}

.crosshair.top-left {
  top: 12px;
  left: 12px;
  border-width: 1.5px 0 0 1.5px;
}

.crosshair.top-right {
  top: 12px;
  right: 12px;
  border-width: 1.5px 1.5px 0 0;
}

.crosshair.bottom-left {
  bottom: 12px;
  left: 12px;
  border-width: 0 0 1.5px 1.5px;
}

.crosshair.bottom-right {
  bottom: 12px;
  right: 12px;
  border-width: 0 1.5px 1.5px 0;
}

/* --- FIX FOR QUANTUM 3D BUTTONS --- */
.canvas-box .box-header {
  position: relative;
}
.canvas-box .atom-controls {
  z-index: 1000;
}
.canvas-box canvas {
  pointer-events: none !important;
}

/* ── HORIZONTAL MARQUEE (Moving Text) ── */
.marquee-h-wrap {
  width: 100vw;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  overflow: hidden;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 0.8rem 0;
  margin-bottom: 1.5rem;
  animation: fadeSlideUp 0.9s ease 0.45s both;
}

.marquee-velocity {
  display: flex;
  width: max-content;
  white-space: nowrap;
  will-change: transform;
}

.marquee-inner {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  white-space: nowrap;
}

.marquee-inner span {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(2.875rem, 12vw, 9.875rem);
  line-height: 1.05;
  letter-spacing: 0.01em;
  color: var(--text-primary);
  padding: 0 0.3em;
  white-space: nowrap;
  display: inline-block;
  transition: color 0.3s ease;
}

.marquee-inner span.m-outline {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--text-primary);
}

/* Dual Marquee Section */
.dual-marquee-wrap {
  width: 100vw;
  position: relative;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  overflow: hidden;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 1.5rem 0;
  margin-top: 1rem;
  margin-bottom: 2rem;
  background: var(--bg-card);
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  contain: paint layout;
  transform: translateZ(0);
}

.marquee-track {
  display: flex;
  width: max-content;
  white-space: nowrap;
  will-change: transform;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  perspective: 1000px;
}

.track-1 {
  animation: marqueeScrollLeft 30s linear infinite;
}

.track-2 {
  animation: marqueeScrollRight 35s linear infinite;
}

.dual-marquee-wrap:hover .track-1,
.dual-marquee-wrap:hover .track-2,
.dual-marquee-wrap.marquee-offscreen .track-1,
.dual-marquee-wrap.marquee-offscreen .track-2 {
  animation-play-state: paused;
}

.marquee-inner {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.marquee-inner span {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 2.2rem;
  letter-spacing: 0.05em;
  color: var(--text-primary);
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  transition: color 0.3s ease;
}

.marquee-inner span.m-outline {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--text-primary);
}

.marquee-inner span.m-icon {
  padding: 0 1rem;
  color: var(--accent-primary);
}

.marquee-inner span.m-icon svg {
  width: 28px;
  height: 28px;
}

.track-2 .marquee-inner span.m-icon {
  color: var(--accent-secondary);
}

@keyframes marqueeScrollLeft {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}

@keyframes marqueeScrollRight {
  from { transform: translate3d(-50%, 0, 0); }
  to { transform: translate3d(0, 0, 0); }
}

.hero-cta {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 0.5rem;
  animation: fadeSlideUp 0.9s ease 0.5s both;
}

/* Processing Visualizer Separator */
.processing-visualizer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  margin-top: 2.5rem;
  opacity: 0.8;
  animation: fadeSlideUp 0.9s ease 0.6s both;
}

.processing-visualizer .tracking-label {
  font-size: 0.75rem;
  color: var(--accent-primary);
  letter-spacing: 0.15em;
  opacity: 0.8;
}

.processing-visualizer .audio-bars {
  display: flex;
  gap: 4px;
  height: 14px;
  align-items: flex-end;
}

.processing-visualizer .bar {
  width: 3px;
  background: var(--accent-secondary);
  border-radius: 2px;
  animation: bounceBar 1.2s ease-in-out infinite alternate;
}

.processing-visualizer .bar:nth-child(1) { height: 40%; animation-delay: 0.1s; }
.processing-visualizer .bar:nth-child(2) { height: 100%; animation-delay: 0.3s; }
.processing-visualizer .bar:nth-child(3) { height: 60%; animation-delay: 0.0s; }
.processing-visualizer .bar:nth-child(4) { height: 80%; animation-delay: 0.4s; }
.processing-visualizer .bar:nth-child(5) { height: 50%; animation-delay: 0.2s; }

@keyframes bounceBar {
  0% { transform: scaleY(0.3); opacity: 0.5; }
  100% { transform: scaleY(1); opacity: 1; }
}

.hero-scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-muted);
  font-size: 0.7rem;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.1em;
  animation: fadeSlideUp 1s ease 1.2s both;
}
.scroll-mouse {
  width: 20px; height: 32px;
  border: 1.5px solid var(--text-muted);
  border-radius: 10px;
  display: flex;
  justify-content: center;
  padding-top: 5px;
}
.scroll-mouse::before {
  content:'';
  width:2px; height:7px;
  background: var(--text-muted);
  border-radius: 2px;
  animation: scrollDown 1.8s ease-in-out infinite;
}
@keyframes scrollDown{0%{transform:translateY(0);opacity:1}80%{transform:translateY(9px);opacity:0}100%{transform:translateY(0);opacity:0}}

@keyframes fadeSlideDown { from{opacity:0;transform:translateY(-18px)}to{opacity:1;transform:translateY(0)} }
@keyframes fadeSlideUp   { from{opacity:0;transform:translateY(22px)}to{opacity:1;transform:translateY(0)} }

/* ============================================================
   ABOUT SECTION
   ============================================================ */
/* ============================================================
   ABOUT / SUBJECT PROFILE SECTION (Sketch "Case I")
   ============================================================ */


/* ── HOME-VIEW: Clip to exact content (Hero + About) ── */
#home-view {
  overflow: hidden;
  margin: 0 !important;
  padding: 0 !important;
}

#home-view #hero {
  padding-bottom: 0;
}

#home-view #about {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 110px 0 3rem 0 !important;
  margin: 0 !important;
  box-sizing: border-box;
}

#home-view #about .container {
  padding-top: 0;
  padding-bottom: 0 !important;
  margin: 0 auto !important;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

#about .section-header {
  margin-top: 2rem;
  margin-bottom: 1.5rem;
  padding: 1rem 1.5rem;
}

.shapegrid-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  z-index: 0;
  pointer-events: auto;
}

.about-dossier-box {
  background: var(--bg-primary);
  border: 1.5px solid var(--border-color);
  border-radius: 24px;
  padding: 2.5rem 3rem;
  position: relative;
  z-index: 10;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  margin-bottom: 0;
  transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1),
              border-color 0.4s ease,
              box-shadow 0.4s ease;
  animation: fadeSlideUp 0.9s ease 0.4s both;
}

.about-dossier-box:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-hover);
}

.about-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 4rem;
  align-items: center;
}

/* Polaroid Card Style (About Section - Authentic Off-White Photo Paper) */
.about-polaroid-frame,
.about-grid .polaroid-card,
.about-left .polaroid-card {
  background: #f8f6f0 !important; /* Authentic off-white warm ivory photo paper */
  background-color: #f8f6f0 !important;
  background-image: linear-gradient(175deg, #fdfbf7 0%, #f4f0e6 100%) !important;
  border: 1px solid rgba(0, 0, 0, 0.09) !important;
  padding: 1.25rem 1.25rem 2.6rem 1.25rem !important;
  border-radius: 4px !important;
  box-shadow: 
    0 18px 40px -8px rgba(0, 0, 0, 0.65),
    0 6px 16px rgba(0, 0, 0, 0.35),
    inset 0 0 0 1px rgba(255, 255, 255, 0.85) !important;
  transform: rotate(-3deg);
  transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1),
              box-shadow 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
  z-index: 5;
}

/* Subtle physical paper grain texture */
.about-polaroid-frame::before,
.about-grid .polaroid-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 4px;
  pointer-events: none;
  background-image: radial-gradient(rgba(0,0,0,0.05) 1px, transparent 0);
  background-size: 5px 5px;
  opacity: 0.4;
}

.about-polaroid-frame:hover,
.about-grid .polaroid-card:hover,
.about-left .polaroid-card:hover {
  transform: translateY(-8px) rotate(0deg) scale(1.03) !important;
  box-shadow: 
    0 26px 54px -10px rgba(0, 0, 0, 0.8),
    0 10px 24px rgba(0, 0, 0, 0.4),
    0 0 24px rgba(212, 175, 55, 0.2),
    inset 0 0 0 1px #fff !important;
  border-color: rgba(212, 175, 55, 0.4) !important;
  z-index: 10;
}

[data-theme="noir"] .about-polaroid-frame,
[data-theme="matcha"] .about-polaroid-frame,
[data-theme="spidey"] .about-polaroid-frame,
[data-theme="noir"] .about-grid .polaroid-card,
[data-theme="matcha"] .about-grid .polaroid-card,
[data-theme="spidey"] .about-grid .polaroid-card {
  background: #f8f6f0 !important;
  background-color: #f8f6f0 !important;
  background-image: linear-gradient(175deg, #fdfbf7 0%, #f4f0e6 100%) !important;
  border: 1px solid rgba(0, 0, 0, 0.09) !important;
}

[data-theme="noir"] .about-polaroid-frame:hover,
[data-theme="matcha"] .about-polaroid-frame:hover,
[data-theme="spidey"] .about-polaroid-frame:hover,
[data-theme="noir"] .about-grid .polaroid-card:hover,
[data-theme="matcha"] .about-grid .polaroid-card:hover,
[data-theme="spidey"] .about-grid .polaroid-card:hover {
  box-shadow: 
    0 26px 54px -10px rgba(0, 0, 0, 0.8),
    0 10px 24px rgba(0, 0, 0, 0.4),
    0 0 24px var(--accent-glow),
    inset 0 0 0 1px #fff !important;
}

/* Polaroid Pushpin at the top */
.polaroid-pin {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 14px;
  height: 14px;
  background: var(--accent-primary);
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0,0,0,0.3), inset 0 2px 4px rgba(255,255,255,0.4);
  z-index: 2;
}

.about-grid .polaroid-img-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #111;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.15) !important;
  border-radius: 2px;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.3);
}

.about-grid .polaroid-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(102%) brightness(98%);
  transition: filter 0.4s ease, transform 0.4s ease;
}

.about-grid .polaroid-card:hover .polaroid-img {
  filter: contrast(105%) brightness(102%);
  transform: scale(1.02);
}

.about-grid .polaroid-caption {
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  text-align: center;
  position: relative;
  z-index: 1;
}

.about-grid .caption-label,
[data-theme="noir"] .about-grid .caption-label,
[data-theme="matcha"] .about-grid .caption-label,
[data-theme="spidey"] .about-grid .caption-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: #1a1a1a !important; /* Authentic dark ink on off-white paper */
  letter-spacing: 0.06em;
}

.about-grid .caption-sub,
[data-theme="noir"] .about-grid .caption-sub,
[data-theme="matcha"] .about-grid .caption-sub,
[data-theme="spidey"] .about-grid .caption-sub {
  font-size: 0.72rem;
  color: #555555 !important; /* Vintage sub-caption ink */
  font-weight: 500;
}

/* About bio contents on the right */
.about-right {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.about-bio-wrap {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.about-bio-title {
  font-family: 'Mukta', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  text-align: left;
  border-bottom: 1.5px solid var(--border-color);
  padding-bottom: 0.5rem;
  margin-bottom: 0.5rem;
}
/* ── SOCIAL MARGIN LINE ─────────────────────────────────── */
.social-margin-line {
  position: fixed;
  left: 3rem;
  top: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 100;
  pointer-events: auto;
}

.social-line-top,
.social-line-bottom {
  width: 1px;
  background: var(--accent-primary);
  opacity: 0.4;
}

.social-line-top {
  height: 35vh;
  margin-bottom: 1.5rem;
  background: linear-gradient(to bottom, transparent, var(--accent-primary));
}

.social-line-bottom {
  flex-grow: 1; /* Stretches the line downwards to fill remaining space */
  margin-top: 1.5rem;
  background: linear-gradient(to top, transparent, var(--accent-primary));
}

.social-margin-line a {
  color: var(--text-muted);
  font-size: 1.25rem;
  margin: 1rem 0;
  transition: all 0.3s ease;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.social-margin-line a:hover {
  color: var(--accent-primary);
  transform: scale(1.3);
  filter: drop-shadow(0 0 8px var(--accent-glow));
}

@media (max-width: 1400px) {
  .social-margin-line {
    display: none;
  }
}


.about-text {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.8;
  text-align: justify;
}

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

/* About Info Cards */
.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.stat-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-card);
  border-radius: 12px;
  padding: 1.2rem 1rem;
  text-align: center;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-card);
}

.stat-icon {
  font-size: 1.4rem;
  margin-bottom: 0.4rem;
  line-height: 1;
}

.stat-label {
  font-size: 0.65rem;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0.08em;
  margin-bottom: 0.3rem;
}

.stat-value {
  font-family: 'Outfit', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.2;
}




@media (max-width: 900px) {
  .hero-boxes-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .about-dossier-box {
    padding: 1.5rem;
  }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
    justify-items: center;
  }
  .about-left {
    max-width: 320px;
    width: 100%;
  }
  .about-right {
    text-align: center;
  }
  .about-bio-title {
    text-align: center;
  }
  .about-text {
    text-align: center;
  }
}

/* ── TABLET (≤768px) ──────────────────────────── */
@media (max-width: 768px) {
  .hero-name {
    font-size: clamp(2.5rem, 10vw, 4.5rem);
    margin-top: 0;
    margin-bottom: 0.75rem;
    line-height: 1.2;
  }

  .hero-boxes-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    width: 100%;
    max-width: 520px;
    margin: 0.5rem auto 1.25rem;
  }

  .hero-box {
    padding: 1.35rem;
    min-height: auto;
    border-radius: 14px;
  }

  .hero-box .crosshair {
    display: none !important;
  }

  .hero-box .box-title {
    font-size: 0.95rem;
    letter-spacing: 0.12em;
  }

  .box-header {
    padding-bottom: 0.65rem;
    margin-bottom: 1rem;
  }

  .box-body {
    gap: 0.9rem;
  }

  .dossier-key {
    font-size: 0.66rem;
    letter-spacing: 0.08em;
  }

  .dossier-value {
    font-size: 0.95rem;
  }

  .hero-box.canvas-box {
    min-height: 260px;
    padding: 1.35rem 1.15rem;
    position: relative;
  }

  .canvas-container {
    height: 140px;
    width: 100%;
    margin-bottom: 3.2rem;
    position: relative;
  }

  .hero-box.canvas-box .box-footer {
    position: absolute !important;
    bottom: 0.9rem !important;
    left: 1.15rem !important;
    right: 1.15rem !important;
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 0.5rem !important;
  }

  .atom-controls {
    display: flex;
    gap: 0.45rem;
  }

  .atom-controls .tag {
    font-size: 0.72rem;
    padding: 0.32rem 0.75rem;
    border-radius: 20px;
  }

  .atom-label {
    font-size: 0.7rem;
    letter-spacing: 0.04em;
    opacity: 0.8;
  }

  .hero-cta {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 0.85rem;
    margin-top: 1.25rem;
    width: 100%;
  }

  .hero-cta .btn {
    width: auto;
    min-width: 140px;
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    justify-content: center;
    border-radius: 50px;
  }

  .processing-visualizer {
    margin-top: 1.75rem;
    margin-bottom: 0.5rem;
    gap: 0.9rem;
  }

  .marquee-inner span {
    font-size: 1.6rem;
    padding: 0 1rem;
  }

  .dual-marquee-wrap {
    padding: 1rem 0;
    gap: 1rem;
  }

  .marquee-inner span.m-icon svg {
    width: 22px;
    height: 22px;
  }

  #about {
    padding-top: 60px;
    min-height: auto;
  }

  #home-view #about {
    padding-top: max(95px, calc(75px + env(safe-area-inset-top, 0px))) !important;
    padding-bottom: max(3rem, calc(2rem + env(safe-area-inset-bottom, 0px))) !important;
    min-height: 100vh;
  }

  .about-dossier-box {
    padding: 1.25rem;
    border-radius: 16px;
  }

  .about-bio-title {
    font-size: 1.5rem;
    text-align: center;
  }

  .about-stats {
    gap: 0.8rem;
  }

  .stat-card {
    padding: 1rem 0.75rem;
  }

  .stat-icon {
    font-size: 1.2rem;
  }

  .social-margin-line {
    display: none;
  }
}

/* ── MOBILE (≤480px) ──────────────────────────── */
@media (max-width: 480px) {
  #home-view #about {
    padding-top: max(90px, calc(70px + env(safe-area-inset-top, 0px))) !important;
    padding-bottom: max(2.5rem, calc(1.5rem + env(safe-area-inset-bottom, 0px))) !important;
  }

  #about .section-header {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    padding: 0.75rem 1rem;
  }

  .hero-name {
    font-size: clamp(2rem, 9.5vw, 3.2rem);
    margin-top: 0;
    margin-bottom: 0.6rem;
    line-height: 1.25;
    white-space: normal;
    word-break: keep-all;
    overflow-wrap: normal;
  }

  .hero-boxes-grid {
    gap: 1rem;
    max-width: 100%;
    margin-top: 0.35rem;
    margin-bottom: 1rem;
  }

  .hero-box {
    padding: 1.25rem 1.15rem;
    min-height: auto;
    border-radius: 14px;
  }

  .hero-box .crosshair {
    display: none !important;
  }

  .hero-box .box-title {
    font-size: 0.88rem;
    letter-spacing: 0.1em;
  }

  .box-header {
    padding-bottom: 0.55rem;
    margin-bottom: 0.85rem;
  }

  .box-body {
    gap: 0.8rem;
  }

  .dossier-row {
    gap: 0.15rem;
  }

  .dossier-key {
    font-size: 0.62rem;
    letter-spacing: 0.08em;
  }

  .dossier-value {
    font-size: 0.9rem;
  }

  .hero-box.canvas-box {
    min-height: 250px;
    padding: 1.25rem 1rem;
    position: relative;
  }

  .canvas-container {
    height: 130px;
    width: 100%;
    margin-bottom: 3.2rem;
    position: relative;
  }

  .hero-box.canvas-box .box-footer {
    position: absolute !important;
    bottom: 0.75rem !important;
    left: 1rem !important;
    right: 1rem !important;
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 0.4rem !important;
  }

  .atom-controls {
    display: flex;
    gap: 0.4rem;
  }

  .atom-controls .tag {
    font-size: 0.72rem;
    padding: 0.35rem 0.75rem;
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
  }

  .atom-label {
    display: none !important;
  }

  .hero-cta {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1.15rem;
    width: 100%;
  }

  .hero-cta .btn {
    width: auto;
    flex: 0 1 auto;
    min-width: 140px;
    min-height: 44px;
    padding: 0.75rem 1.4rem;
    font-size: 0.88rem;
    border-radius: 50px;
    justify-content: center;
    display: inline-flex;
    align-items: center;
  }

  .processing-visualizer {
    gap: 0.75rem;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
  }

  .processing-visualizer .tracking-label {
    font-size: 0.65rem;
  }

  .marquee-inner span {
    font-size: 1.3rem;
    padding: 0 0.75rem;
  }

  .marquee-inner span.m-icon svg {
    width: 18px;
    height: 18px;
  }

  .about-bio-title {
    font-size: 1.3rem;
  }

  .about-text {
    font-size: 0.9rem;
    line-height: 1.7;
  }

  .about-stats {
    gap: 0.6rem;
  }

  .stat-card {
    padding: 0.85rem 0.6rem;
    border-radius: 10px;
  }

  .stat-icon {
    font-size: 1rem;
    margin-bottom: 0.3rem;
  }

  .stat-label {
    font-size: 0.6rem;
  }

  .stat-value {
    font-size: 0.78rem;
    word-break: break-word;
    overflow-wrap: break-word;
  }

  .hero-scroll-hint {
    font-size: 0.6rem;
    bottom: 1rem;
  }

  .scroll-mouse {
    width: 16px;
    height: 26px;
  }
}

/* ── ULTRA-SMALL (≤360px) ──────────────────────── */
@media (max-width: 360px) {
  .hero-name {
    font-size: clamp(1.8rem, 10vw, 2.4rem);
  }

  .hero-box {
    padding: 1rem 0.85rem;
  }

  .hero-box .box-title {
    font-size: 0.82rem;
  }

  .dossier-value {
    font-size: 0.82rem;
  }

  .hero-box.canvas-box {
    min-height: 240px;
    padding: 1rem 0.85rem;
  }

  .canvas-container {
    height: 120px;
    margin-bottom: 3.4rem;
  }

  .hero-cta {
    flex-direction: column;
    gap: 0.6rem;
  }

  .hero-cta .btn {
    width: 100%;
    max-width: 250px;
    min-width: 0;
  }

  .about-dossier-box {
    padding: 1rem;
    border-radius: 14px;
  }

  .about-bio-title {
    font-size: 1.15rem;
  }

  .about-text {
    font-size: 0.85rem;
  }
}