
:root {
  --bg: #050505;
  --panel: rgba(255,255,255,0.04);
  --border: rgba(255,255,255,0.08);
  --shadow: 0 30px 100px rgba(0,0,0,0.45);
  --radius: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background:
    radial-gradient(circle at top left, rgba(255,255,255,0.06), transparent 28%),
    radial-gradient(circle at bottom right, rgba(255,255,255,0.04), transparent 20%),
    var(--bg);
  color: #fff;
  overflow-x: hidden;
}
img { display: block; width: 100%; height: auto; }

.page-shell {
  width: min(100%, 1680px);
  margin: 0 auto;
  padding: clamp(18px, 2vw, 28px);
}

.hero-wrap,
.story-section {
  position: relative;
}

.hero-wrap {
  min-height: 112vh;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: -12vh;
  z-index: 2;
}

.story-flow {
  position: relative;
}

.story-section {
  min-height: 130vh;
  margin-top: -14vh;
}

.story-card {
  position: sticky;
  top: 6vh;
  width: min(100%, 1280px);
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
  transform: translateY(40px) scale(0.975);
  opacity: 0;
  transition:
    transform 0.9s cubic-bezier(.2,.75,.15,1),
    opacity 0.9s ease,
    box-shadow 0.45s ease,
    filter 0.45s ease;
  will-change: transform;
}

.hero-card {
  width: min(100%, 1400px);
  transform: translateY(0) scale(1);
  opacity: 1;
}

.reveal.is-visible .story-card,
.hero-wrap .hero-card {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.story-card img,
.hero-card img {
  width: 100%;
  border-radius: inherit;
  transition: transform 0.8s cubic-bezier(.2,.75,.15,1), filter 0.45s ease;
}

.story-card::after,
.hero-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.03), transparent 20%, transparent 80%, rgba(0,0,0,0.18));
  pointer-events: none;
}

.story-card:hover,
.hero-card:hover {
  box-shadow: 0 40px 120px rgba(0,0,0,0.6);
}

.story-card:hover img,
.hero-card:hover img {
  transform: scale(1.018);
  filter: saturate(1.03) contrast(1.02);
}

.story-section:nth-child(odd) .story-card {
  width: min(100%, 1240px);
}
.story-section:nth-child(even) .story-card {
  width: min(100%, 1320px);
}

.story-section--portfolio .story-card {
  width: min(100%, 1360px);
}
.story-section--research .story-card {
  width: min(100%, 1220px);
}
.story-section--closing {
  min-height: 115vh;
}

@media (max-width: 1200px) {
  .hero-wrap { min-height: 100vh; margin-bottom: -8vh; }
  .story-section { min-height: 112vh; margin-top: -8vh; }
  .story-card { top: 4vh; border-radius: 20px; }
}

@media (max-width: 767px) {
  .page-shell { padding: 12px; }
  .hero-wrap { min-height: 85vh; margin-bottom: -3vh; }
  .story-section { min-height: 90vh; margin-top: -2vh; }
  .story-card { top: 2vh; border-radius: 16px; }
}
