:root {
  --ink: #14213d;
  --muted: #526175;
  --paper: #ffffff;
  --soft: #f6f8fc;
  --soft-2: #eef4ff;
  --line: #dbe4f0;
  --brand: #3557ff;
  --brand-2: #0ea5e9;
  --accent: #7c3aed;
  --warn-bg: #fff7ed;
  --warn-line: #fed7aa;
  --shadow: 0 20px 45px rgba(20, 33, 61, 0.10);
  --shadow-soft: 0 12px 30px rgba(20, 33, 61, 0.08);
  --radius: 18px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
}

a {
  color: inherit;
}

.container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.narrow {
  max-width: 880px;
}

.nav {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav__brand {
  font-weight: 850;
  text-decoration: none;
  letter-spacing: -0.03em;
  font-size: 1.2rem;
}

.nav__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 18px;
  color: rgba(20, 33, 61, 0.76);
  font-size: 0.95rem;
  font-weight: 650;
}

.nav__links a {
  text-decoration: none;
  transition: color 160ms ease, transform 160ms ease;
}

.nav__links a:hover {
  color: var(--brand);
  transform: translateY(-1px);
}

.hero {
  min-height: 720px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 18%, rgba(124, 58, 237, 0.20), transparent 32%),
    radial-gradient(circle at 82% 18%, rgba(14, 165, 233, 0.22), transparent 30%),
    linear-gradient(135deg, #f8fbff 0%, #eef4ff 50%, #fdfcff 100%);
  border-bottom: 1px solid var(--line);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -12% -32% -12%;
  height: 420px;
  background: rgba(255, 255, 255, 0.72);
  filter: blur(28px);
  transform: rotate(-2deg);
}

.hero__body {
  position: relative;
  z-index: 1;
  width: min(1020px, calc(100% - 32px));
  margin: 0 auto;
  padding: 98px 0 130px;
  text-align: center;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--brand);
  font-size: 0.82rem;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1, h2, h3, p {
  overflow-wrap: break-word;
}

h1 {
  max-width: 980px;
  margin: 0 auto;
  font-size: clamp(2.45rem, 6vw, 5.4rem);
  line-height: 0.98;
  letter-spacing: -0.065em;
}

.subtitle {
  max-width: 850px;
  margin: 28px auto 0;
  color: var(--muted);
  font-size: clamp(1.04rem, 2.3vw, 1.36rem);
}

.notice {
  max-width: 820px;
  margin: 34px auto 0;
  padding: 18px 22px;
  border: 1px solid var(--warn-line);
  border-radius: var(--radius);
  background: var(--warn-bg);
  color: #8a4b12;
  box-shadow: var(--shadow-soft);
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 30px;
}

.action-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 800;
  box-shadow: var(--shadow-soft);
}

.action-pill--disabled {
  color: #64748b;
  background: rgba(255, 255, 255, 0.78);
  border: 1px dashed #aab8cc;
  cursor: not-allowed;
}

.section {
  padding: 86px 0;
}

.section--light {
  background: var(--soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.teaser-section {
  padding-top: 54px;
  padding-bottom: 54px;
}

.section-heading {
  max-width: 820px;
  margin: 0 auto 36px;
  text-align: center;
}

h2 {
  margin: 0 0 18px;
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.08;
  letter-spacing: -0.045em;
}

h3 {
  margin: 0 0 10px;
  font-size: 1.16rem;
  letter-spacing: -0.02em;
}

p {
  color: var(--muted);
  font-size: 1.03rem;
}

.method-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.card,
.contribution-item,
.metric-card,
.split-panel,
.placeholder {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow-soft);
}

.card {
  padding: 26px;
  position: relative;
  min-height: 280px;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

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

.card__index {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 24px;
  border-radius: 12px;
  color: white;
  font-weight: 900;
  background: linear-gradient(135deg, var(--brand), var(--accent));
}

.contribution-list {
  display: grid;
  gap: 18px;
}

.contribution-item {
  padding: 26px 30px;
  border-left: 6px solid var(--brand-2);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 26px;
}

.metric-card {
  padding: 28px 22px;
  text-align: center;
  background: linear-gradient(180deg, #ffffff, #f7fbff);
}

.metric-card__value {
  display: block;
  color: var(--brand);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.05em;
}

.metric-card__label {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  font-weight: 700;
}

.split-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  overflow: hidden;
}

.split-panel > div {
  padding: 30px;
}

.split-panel > div + div {
  border-left: 1px solid var(--line);
}

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

.placeholder {
  min-height: 260px;
  display: grid;
  place-items: center;
  padding: 28px;
  text-align: center;
  background:
    linear-gradient(135deg, rgba(53, 87, 255, 0.06), rgba(14, 165, 233, 0.08)),
    repeating-linear-gradient(45deg, rgba(82, 97, 117, 0.08) 0, rgba(82, 97, 117, 0.08) 1px, transparent 1px, transparent 14px),
    #fbfdff;
  border-style: dashed;
}

.placeholder--wide {
  min-height: 380px;
}

.placeholder__label {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 1.15rem;
  font-weight: 900;
}

code {
  padding: 0.15em 0.35em;
  border-radius: 7px;
  background: #e8eef8;
  color: #334155;
}

.release-list {
  margin: 24px 0 0;
  padding-left: 1.2rem;
  color: var(--muted);
}

.release-list li + li {
  margin-top: 10px;
}

.footer {
  padding: 38px 0;
  background: #101827;
  color: rgba(255, 255, 255, 0.78);
}

.footer .container {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}

.footer p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
}

.footer a {
  color: white;
  font-weight: 800;
  text-decoration: none;
}

@media (max-width: 900px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav__links {
    justify-content: flex-start;
  }

  .hero {
    min-height: auto;
  }

  .hero__body {
    padding: 64px 0 86px;
  }

  .method-grid,
  .metric-grid,
  .media-grid,
  .split-panel {
    grid-template-columns: 1fr;
  }

  .split-panel > div + div {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .footer .container {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .section {
    padding: 62px 0;
  }

  .card,
  .contribution-item,
  .split-panel > div {
    padding: 22px;
  }

  .placeholder,
  .placeholder--wide {
    min-height: 220px;
  }
}

/* Image overview carousel */
.image-overview-section {
  overflow: hidden;
}

.carousel {
  position: relative;
  max-width: 980px;
  margin: 0 auto;
}

.carousel__viewport {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 8px);
  background: #ffffff;
  box-shadow: var(--shadow);
  outline: none;
}

.carousel__viewport:focus-visible {
  box-shadow: 0 0 0 4px rgba(53, 87, 255, 0.18), var(--shadow);
}

.carousel__stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 360px;
  max-height: 620px;
  padding: clamp(12px, 2vw, 22px);
  background:
    radial-gradient(circle at 20% 10%, rgba(53, 87, 255, 0.12), transparent 30%),
    linear-gradient(135deg, #f8fafc, #eef4ff);
}

.carousel__slide {
  position: absolute;
  inset: 0;
  display: none;
  margin: 0;
  padding: clamp(12px, 2vw, 22px);
  gap: 12px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.carousel__slide.is-active {
  display: flex;
}

.carousel__slide img {
  display: block;
  flex: 1 1 auto;
  max-width: 100%;
  max-height: calc(100% - 48px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(20, 33, 61, 0.10);
}

.carousel__slide figcaption {
  flex: 0 0 auto;
  margin: 0;
  color: var(--muted);
  font-weight: 750;
  text-align: center;
}

.carousel__button {
  position: absolute;
  z-index: 2;
  top: 50%;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  background: rgba(20, 33, 61, 0.90);
  color: #ffffff;
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  font-size: 2rem;
  line-height: 1;
  transform: translateY(-50%);
  transition: transform 160ms ease, background 160ms ease, opacity 160ms ease;
}

.carousel__button:hover,
.carousel__button:focus-visible {
  background: var(--brand);
  transform: translateY(-50%) scale(1.06);
}

.carousel__button--prev {
  left: -24px;
}

.carousel__button--next {
  right: -24px;
}

.carousel__dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

.carousel__dots button {
  width: 11px;
  height: 11px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #b7c3d7;
  cursor: pointer;
  transition: width 180ms ease, background 180ms ease, transform 180ms ease;
}

.carousel__dots button:hover,
.carousel__dots button:focus-visible {
  transform: scale(1.16);
  background: var(--brand-2);
}

.carousel__dots button.is-active {
  width: 34px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
}

@media (prefers-reduced-motion: reduce) {
  .carousel__dots button,
  .carousel__button {
    transition: none;
  }
}

@media (max-width: 900px) {
  .carousel {
    max-width: min(100%, 760px);
  }

  .carousel__stage {
    min-height: 300px;
    aspect-ratio: 4 / 3;
  }

  .carousel__button {
    width: 42px;
    height: 42px;
    font-size: 1.7rem;
  }

  .carousel__button--prev {
    left: 10px;
  }

  .carousel__button--next {
    right: 10px;
  }
}

@media (max-width: 560px) {
  .carousel__stage {
    min-height: 240px;
    padding: 10px;
  }

  .carousel__slide figcaption {
    font-size: 0.9rem;
  }
}

/* Main project video */
.main-video-card {
  max-width: 980px;
  margin: 0 auto;
  padding: clamp(16px, 2.4vw, 28px);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 8px);
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  box-shadow: var(--shadow);
  text-align: center;
}

.main-video-card h2 {
  margin-bottom: 22px;
}

.main-video-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 560px;
  overflow: hidden;
  border-radius: 18px;
  background: #0f172a;
  box-shadow: var(--shadow-soft);
}

.main-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #0f172a;
}

@media (max-width: 900px) {
  .main-video-card {
    max-width: min(100%, 760px);
  }
}
