:root {
  --bg-color: #0c080a; /* Dark warm tint */
  --surface-color: #170d12;
  --text-primary: #ffffff;
  --text-secondary: #d4b8c3;
  --accent-pink: #fbcfe8; /* Pale Pink */
  --accent-orange: #f97316; /* Flame Orange */
  --accent-bamboo: #4ade80; /* Bamboo Green */
  --accent-brown: #78350f; /* Dark Brown */
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-color);
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Utilities */
.text-outline {
  -webkit-text-stroke: 2px rgba(251, 207, 232, 0.95);
  color: transparent;
  text-shadow:
    0 0 8px rgba(251, 207, 232, 0.8),
    0 0 20px rgba(251, 207, 232, 0.5),
    0 0 50px rgba(251, 207, 232, 0.25),
    0 0 100px rgba(251, 207, 232, 0.1);
}
.accent-pink { color: var(--accent-pink); }
.accent-orange { color: var(--accent-orange); }
.italic { font-style: italic; }

.noise-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  pointer-events: none;
  z-index: 50;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Canvas & Background */
.canvas-container {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100vh;
  z-index: 0;
  pointer-events: none;
}
#scrolly-canvas {
  width: 100%; height: 100%;
  object-fit: cover;
}
.vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, transparent 0%, rgba(12, 8, 10, 0.9) 100%);
  mix-blend-mode: multiply;
}
.dark-overlay {
  position: absolute;
  inset: 0;
  background-color: var(--bg-color);
  opacity: 0;
}
.loading-hud {
  position: absolute;
  bottom: 1.5rem; left: 1.5rem;
  font-family: monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(251, 207, 232, 0.5);
  display: flex;
  gap: 1rem;
  z-index: 10;
  mix-blend-mode: difference;
}

/* Scrollytelling Container */
.scroll-container {
  position: relative;
  z-index: 10;
  height: 400vh; /* Determines scroll length */
}
.scene {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 1.5rem;
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  opacity: 0; /* Managed by GSAP */
  pointer-events: none;
}
.scene.left-align { align-items: flex-start; padding: 0 6rem; }
.scene.right-align { align-items: flex-end; padding: 0 6rem; text-align: right; }
@media (max-width: 768px) {
  .scene.left-align, .scene.right-align { padding: 0 1.5rem; }
}

/* Hero Scene — Frameless Big Typography */
.scene-hero {
  align-items: flex-start !important;
  justify-content: flex-end !important;
  padding: 0 4rem 6rem !important;
}
.hero-label {
  display: block;
  font-family: monospace;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--accent-pink);
  margin-bottom: 1.5rem;
}
.hero-title {
  font-size: clamp(4.5rem, 14vw, 14rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 0.9;
  margin-bottom: 2rem;
  text-shadow: 0 0 80px rgba(251, 207, 232, 0.15);
}
.hero-sub {
  font-family: monospace;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(212, 184, 195, 0.5);
}

/* Typography & Panels */
.glass-panel {
  background: rgba(251, 207, 232, 0.03);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(251, 207, 232, 0.1);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  padding: 3rem;
  border-radius: 1.5rem;
  position: relative;
  overflow: hidden;
  max-width: 42rem;
  margin: 0 auto;
}
.panel-gradient {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 4px;
  background: linear-gradient(to right, var(--accent-pink), var(--accent-orange));
}
.mono-label {
  font-family: monospace;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  display: block;
  margin-bottom: 1rem;
}
.main-title {
  font-size: 3rem;
  font-weight: 500;
  letter-spacing: -0.05em;
  margin-bottom: 1.5rem;
  line-height: 1.1;
}
@media (min-width: 768px) { .main-title { font-size: 4rem; } }

.scene-content { max-width: 36rem; }
.pill-label {
  font-family: monospace;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  display: inline-block;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(12px);
}
.pill-label.border-pink {
  background: rgba(251, 207, 232, 0.1);
  border: 1px solid rgba(251, 207, 232, 0.2);
  color: var(--accent-pink);
}
.pill-label.pill-orange {
  background: rgba(249, 115, 22, 0.1);
  border: 1px solid rgba(249, 115, 22, 0.2);
  color: var(--accent-orange);
}
.scene-title {
  font-size: 3rem;
  font-weight: 500;
  letter-spacing: -0.05em;
  margin-bottom: 1.5rem;
  line-height: 1.1;
}
@media (min-width: 768px) { .scene-title { font-size: 4.5rem; } }
.scene-desc {
  font-size: 1.25rem;
  color: var(--text-secondary);
  font-weight: 300;
  line-height: 1.6;
}

/* Projects Section */
.projects-section {
  position: relative;
  z-index: 10;
  background-color: var(--bg-color);
  min-height: 100vh;
  padding: 8rem 1.5rem;
}
.projects-container {
  max-width: 80rem;
  margin: 0 auto;
}
.projects-header {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: 6rem;
}
@media (min-width: 768px) {
  .projects-header {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 10rem;
  }
}
.uppercase { text-transform: uppercase; }
.mb-4 { margin-bottom: 1rem; }
.projects-title {
  font-size: 3rem;
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 1.1;
}
@media (min-width: 768px) { .projects-title { font-size: 6rem; } }
.projects-desc {
  color: var(--text-secondary);
  max-width: 20rem;
  font-size: 0.875rem;
  line-height: 1.6;
}

.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 768px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem;
  }
}
.project-card {
  position: relative;
  aspect-ratio: 5 / 3;
  border-radius: 1rem;
  overflow: hidden;
  background: rgba(251, 207, 232, 0.02);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(251, 207, 232, 0.08);
  cursor: pointer;
  transform: translateY(50px);
  opacity: 0;
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
}
.project-card:hover {
  border-color: rgba(251, 207, 232, 0.6);
  box-shadow: 0 0 18px rgba(251, 207, 232, 0.25), 0 0 40px rgba(251, 207, 232, 0.1), inset 0 0 20px rgba(251, 207, 232, 0.03);
}
.gradient-pink { background: linear-gradient(to bottom right, rgba(251, 207, 232, 0.15), transparent); }
.gradient-bamboo { background: linear-gradient(to bottom right, rgba(74, 222, 128, 0.1), transparent); }
.gradient-orange { background: linear-gradient(to bottom right, rgba(249, 115, 22, 0.1), transparent); }
.gradient-brown { background: linear-gradient(to bottom right, rgba(120, 53, 15, 0.2), transparent); }

.card-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(12, 8, 10, 0.5);
}
.card-content {
  position: absolute;
  inset: 0;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.year-badge {
  font-family: monospace;
  font-size: 0.75rem;
  color: rgba(251, 207, 232, 0.7);
  background: rgba(0, 0, 0, 0.6);
  padding: 0.3rem 0.8rem;
  border-radius: 9999px;
  backdrop-filter: blur(12px);
  border: 1px solid rgba(251, 207, 232, 0.1);
}
.arrow-icon {
  width: 2rem; height: 2rem;
  border-radius: 9999px;
  background: rgba(251, 207, 232, 0.1);
  backdrop-filter: blur(12px);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  opacity: 1;
}
.card-bottom h4 {
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
}
@media (min-width: 768px) { .card-bottom h4 { font-size: 1.5rem; } }
.card-category {
  font-family: monospace;
  font-size: 0.8rem;
  color: var(--accent-pink);
  opacity: 1;
}

.dossier-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  line-height: 1.4;
}
.dossier-list li {
  border-bottom: 1px solid rgba(251, 207, 232, 0.1);
  padding-bottom: 0.5rem;
}
.dossier-list li:last-child {
  border-bottom: none;
}
.dossier-list strong {
  color: white;
  font-weight: 500;
}

/* Footer */
.footer {
  position: relative;
  z-index: 10;
  background-color: var(--bg-color);
  padding: 5rem 4rem 3rem;
  border-top: 1px solid rgba(251, 207, 232, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
  text-align: center;
}
.footer-title {
  font-size: clamp(2.5rem, 8vw, 7rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 2px rgba(251, 207, 232, 0.9);
  text-shadow:
    0 0 8px rgba(251, 207, 232, 0.7),
    0 0 30px rgba(251, 207, 232, 0.35),
    0 0 80px rgba(251, 207, 232, 0.1);
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2.5rem;
}
.footer-links a {
  font-family: monospace;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(212, 184, 195, 0.6);
  text-decoration: none;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}
.footer-links a:hover {
  color: var(--accent-pink);
  text-shadow: 0 0 12px rgba(251, 207, 232, 0.6), 0 0 30px rgba(251, 207, 232, 0.2);
}
.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-family: monospace;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(212, 184, 195, 0.3);
  border-top: 1px solid rgba(251, 207, 232, 0.06);
  padding-top: 2rem;
  width: 100%;
  text-align: center;
}
.footer-name {
  color: rgba(251, 207, 232, 0.6);
}
