:root {
  color-scheme: light;
  --bg: #fff9f8;
  --bg-soft: #fff2f1;
  --panel: rgba(255, 255, 255, 0.84);
  --panel-strong: rgba(255, 251, 251, 0.96);
  --line: rgba(214, 47, 61, 0.14);
  --text: #291316;
  --muted: #7d6468;
  --accent: #d62839;
  --accent-2: #ff6b6b;
  --accent-3: #ffdede;
  --shadow: 0 24px 60px rgba(183, 34, 47, 0.12);
  --max-width: 1200px;
  --radius: 28px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: "Inter", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(214, 40, 57, 0.14), transparent 30%),
    radial-gradient(circle at top right, rgba(255, 107, 107, 0.12), transparent 26%),
    radial-gradient(circle at bottom center, rgba(255, 222, 222, 0.62), transparent 34%),
    linear-gradient(180deg, #fffdfd 0%, #fff7f7 45%, #fff2f2 100%);
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.page-shell {
  position: relative;
  overflow: hidden;
}

.page-noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.14;
  background-image:
    linear-gradient(rgba(214, 40, 57, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(214, 40, 57, 0.035) 1px, transparent 1px);
  background-size: 30px 30px;
  mask-image: radial-gradient(circle at center, black 45%, transparent 100%);
}

.site-header,
.section,
.site-footer {
  width: min(calc(100% - 40px), var(--max-width));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 20px;
  padding: 16px 20px;
  border: 1px solid rgba(214, 40, 57, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(18px);
  box-shadow: 0 16px 40px rgba(214, 40, 57, 0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.brand-mark {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow:
    0 0 18px rgba(214, 40, 57, 0.34),
    0 0 40px rgba(255, 107, 107, 0.22);
}

.site-nav {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 0.92rem;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  transition: color 0.25s ease;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--text);
  background: rgba(214, 40, 57, 0.08);
  box-shadow: inset 0 0 0 1px rgba(214, 40, 57, 0.1);
}

.section {
  padding: 90px 0;
}

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 36px;
  align-items: center;
  min-height: calc(100vh - 120px);
  padding-top: 60px;
}

.hero-compact {
  min-height: auto;
  padding-top: 40px;
}

.eyebrow {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

.hero h1,
.section-heading h2,
.highlight-copy h2,
.cta-panel h2 {
  margin: 0;
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.hero h1 {
  font-size: clamp(2.9rem, 5.8vw, 5.3rem);
}

.hero-text,
.feature-card p,
.download-card p,
.story-copy p,
.site-footer p {
  color: var(--muted);
  line-height: 1.75;
}

.hero-text {
  max-width: 620px;
  margin: 22px 0 0;
  font-size: 1rem;
}

.hero-actions,
.download-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.hero-actions-secondary {
  margin-top: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  transition:
    transform 0.2s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: #fffdfd;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 18px 36px rgba(214, 40, 57, 0.22);
}

.btn-secondary {
  border-color: rgba(214, 40, 57, 0.16);
  background: rgba(255, 255, 255, 0.72);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 34px;
}

.metric-card,
.glass-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(255, 246, 246, 0.9));
  box-shadow: var(--shadow);
}

.metric-card {
  padding: 18px;
}

.metric-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1rem;
}

.metric-card span {
  color: var(--muted);
  font-size: 0.9rem;
}

.glass-card {
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.72), transparent 26%),
    radial-gradient(circle at top right, rgba(214, 40, 57, 0.08), transparent 28%);
  pointer-events: none;
}

.hero-visual {
  padding: 22px;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 30px;
}

.section-heading h2,
.highlight-copy h2,
.cta-panel h2 {
  font-size: clamp(1.8rem, 3.4vw, 3rem);
}

.feature-grid,
.download-grid,
.team-grid,
.story-pillars {
  display: grid;
  gap: 22px;
}

.split-entry-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.entry-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 260px;
  padding: 24px;
}

.entry-card h2 {
  margin: 0;
  font-size: clamp(1.5rem, 2.4vw, 2.2rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.entry-card .btn {
  align-self: flex-start;
  margin-top: auto;
}

.entry-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.feature-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-card,
.download-card,
.team-card {
  padding: 22px;
}

.feature-card img,
.gallery-card img,
.story-visual img {
  width: 100%;
  border-radius: 20px;
}

.feature-card h3,
.download-card h3,
.team-card h3,
.story-copy h3 {
  margin: 18px 0 10px;
  font-size: 1.18rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1.1fr repeat(2, 1fr);
  gap: 20px;
}

.corridor-intro {
  margin-top: 14px;
}

.corridor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 14px;
  align-items: start;
}

.corridor-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
  padding: 12px;
  color: inherit;
  text-align: left;
  cursor: pointer;
  border: 1px solid var(--line);
}

.corridor-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 20px;
}

.corridor-type {
  position: absolute;
  top: 28px;
  left: 28px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 56px;
  height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(214, 40, 57, 0.12);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
}

.gallery-card {
  padding: 16px;
}

.gallery-wide {
  grid-row: span 2;
}

.gallery-card figcaption {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.95rem;
}

.highlight-band {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 24px;
  align-items: center;
}

.highlight-panel {
  padding: 24px;
}

.capsule-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.capsule-list li {
  padding: 12px 16px;
  border: 1px solid rgba(214, 40, 57, 0.14);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 248, 248, 0.96);
}

.download-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.download-badge,
.team-role-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(214, 40, 57, 0.12), rgba(255, 107, 107, 0.22));
  color: var(--accent);
  font-weight: 700;
}

.download-points {
  display: grid;
  gap: 10px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
}

.download-points li::before {
  content: "•";
  margin-right: 10px;
  color: var(--accent);
}

.download-meta {
  color: var(--muted);
  font-size: 0.88rem;
}

.story-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 22px;
}

.story-pillars {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.story-copy,
.story-pillar,
.story-visual,
.cta-panel {
  padding: 24px;
}

.story-pillar h3 {
  margin: 0 0 12px;
  font-size: 1.24rem;
}

.story-pillar p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.story-visual-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.cta-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-footer {
  display: grid;
  grid-template-columns: 1.2fr auto auto;
  gap: 24px;
  align-items: end;
  padding: 40px 0 60px;
}

.viewer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(95, 18, 26, 0.28);
  backdrop-filter: blur(14px);
}

.viewer-backdrop[hidden] {
  display: none;
}

.viewer-panel {
  position: relative;
  width: min(1100px, 100%);
  max-height: min(92vh, 960px);
  padding: 28px;
  overflow: auto;
}

.viewer-close {
  position: absolute;
  top: 22px;
  right: 22px;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(214, 40, 57, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
  font-weight: 700;
  cursor: pointer;
}

.viewer-copy {
  max-width: 760px;
  margin-bottom: 20px;
}

.viewer-copy h3 {
  margin: 0 0 10px;
  font-size: clamp(1.75rem, 3.2vw, 2.6rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.viewer-copy p:last-child {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.viewer-media {
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(214, 40, 57, 0.12);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(255, 244, 244, 0.92));
}

.viewer-media img {
  width: 100%;
}

.viewer-media video {
  display: block;
  width: 100%;
  max-height: min(72vh, 760px);
  background: #120809;
}

.motion-scene {
  position: absolute;
  inset: 0;
  display: none;
  overflow: hidden;
}

.motion-scene.active {
  display: block;
}

.motion-pulse .motion-ring,
.motion-pulse .motion-ring-delay {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 180px;
  height: 180px;
  border: 2px solid rgba(214, 40, 57, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: pulse-ring 3s ease-out infinite;
}

.motion-pulse .motion-ring-delay {
  animation-delay: 1.2s;
}

.motion-pulse .motion-line {
  position: absolute;
  inset: 50% 14% auto 14%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(214, 40, 57, 0.6), transparent);
  animation: pulse-line 2.6s linear infinite;
}

.motion-pulse .motion-core {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #d62839, #ff8a8a);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 40px rgba(214, 40, 57, 0.34);
  animation: pulse-core 1.8s ease-in-out infinite;
}

.motion-stream .stream-line {
  position: absolute;
  top: 20%;
  left: -10%;
  width: 120%;
  height: 180px;
  border-top: 3px solid rgba(214, 40, 57, 0.28);
  border-radius: 50%;
  transform: rotate(-12deg);
  animation: stream-flow 5s linear infinite;
}

.motion-stream .stream-line-alt {
  top: 46%;
  border-top-color: rgba(255, 138, 138, 0.42);
  animation-direction: reverse;
  animation-duration: 6.2s;
}

.motion-stream .stream-glow {
  position: absolute;
  top: 28%;
  left: 18%;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(214, 40, 57, 0.26), transparent 68%);
  animation: drift-glow 4.6s ease-in-out infinite;
}

.motion-stream .stream-glow-alt {
  top: 52%;
  left: auto;
  right: 18%;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(255, 138, 138, 0.28), transparent 70%);
  animation-delay: 1.3s;
}

.motion-orbit .orbit-ring,
.motion-orbit .orbit-ring-alt {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 400px;
  height: 220px;
  border: 2px solid rgba(214, 40, 57, 0.22);
  border-radius: 50%;
  transform: translate(-50%, -50%) rotate(20deg);
}

.motion-orbit .orbit-ring-alt {
  width: 260px;
  height: 420px;
  transform: translate(-50%, -50%) rotate(-18deg);
  border-color: rgba(255, 138, 138, 0.28);
}

.motion-orbit .orbit-dot {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #d62839;
  box-shadow: 0 0 24px rgba(214, 40, 57, 0.35);
  transform-origin: 0 -140px;
  animation: orbit-move 5.2s linear infinite;
}

.motion-orbit .orbit-core {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #d62839, #ff9b9b);
  transform: translate(-50%, -50%);
  box-shadow: 0 0 44px rgba(214, 40, 57, 0.28);
}

@keyframes pulse-ring {
  0% {
    transform: translate(-50%, -50%) scale(0.4);
    opacity: 0.8;
  }
  100% {
    transform: translate(-50%, -50%) scale(2.2);
    opacity: 0;
  }
}

@keyframes pulse-line {
  0% {
    opacity: 0.2;
    transform: scaleX(0.7);
  }
  50% {
    opacity: 1;
    transform: scaleX(1);
  }
  100% {
    opacity: 0.2;
    transform: scaleX(0.7);
  }
}

@keyframes pulse-core {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    transform: translate(-50%, -50%) scale(1.14);
  }
}

@keyframes stream-flow {
  0% {
    transform: translateX(-6%) rotate(-12deg);
  }
  100% {
    transform: translateX(6%) rotate(-12deg);
  }
}

@keyframes drift-glow {
  0%, 100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(24px, -18px, 0) scale(1.12);
  }
}

@keyframes orbit-move {
  0% {
    transform: rotate(0deg) translateX(140px) rotate(0deg);
  }
  100% {
    transform: rotate(360deg) translateX(140px) rotate(-360deg);
  }
}

.footer-links {
  display: flex;
  gap: 16px;
  color: var(--muted);
}

.footer-year {
  text-align: right;
}

[data-tilt] {
  transform-style: preserve-3d;
  transition: transform 0.2s ease;
}

@media (max-width: 1080px) {
  .hero,
  .highlight-band,
  .story-layout,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .feature-grid,
  .download-grid,
  .split-entry-grid,
  .gallery-grid,
  .team-grid,
  .story-pillars,
  .story-visual-grid {
    grid-template-columns: 1fr 1fr;
  }

  .gallery-wide {
    grid-row: auto;
  }
}

@media (max-width: 720px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
    border-radius: 28px;
  }

  .site-nav,
  .hero-actions,
  .download-actions,
  .footer-links {
    flex-wrap: wrap;
  }

  .hero {
    min-height: auto;
    padding-top: 24px;
  }

  .hero-metrics,
  .feature-grid,
  .download-grid,
  .split-entry-grid,
  .gallery-grid,
  .team-grid,
  .story-pillars,
  .story-visual-grid {
    grid-template-columns: 1fr;
  }

  .viewer-panel {
    padding: 22px;
  }

  .viewer-motion {
    min-height: 360px;
  }


  .site-footer {
    padding-top: 20px;
  }

  .footer-year {
    text-align: left;
  }
}
