:root {
  --sky: #63afe9;
  --sky-soft: #dff2ff;
  --navy: #071b35;
  --blue: #315ca5;
  --orange: #f57835;
  --cream: #fff4d7;
  --white: #ffffff;
  --ink: #071b35;
  --muted: rgba(7, 27, 53, 0.68);
  --accent: var(--sky);
  --accent-2: var(--orange);
  --radius-xl: 54px;
  --radius-lg: 36px;
  --radius-md: 24px;
  --shadow: 0 28px 80px rgba(7, 27, 53, 0.16);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--sky-soft);
  overflow-x: hidden;
}

body[data-page="display"] { --accent: var(--orange); --accent-2: var(--blue); }
body[data-page="ailab"] { --accent: var(--orange); --accent-2: var(--sky); }
body[data-page="cases"] { --accent: var(--blue); --accent-2: var(--orange); }

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.detail-nav {
  position: fixed;
  top: 22px;
  left: 30px;
  right: 30px;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}

.detail-nav > * { pointer-events: auto; }

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--navy);
  font-size: clamp(2rem, 4vw, 3.7rem);
  font-weight: 950;
  line-height: 1;
}

.logo-dots {
  display: grid;
  grid-template-columns: repeat(2, 11px);
  gap: 5px;
}

.logo-dots i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.logo-dots i:nth-child(1) { background: var(--orange); }
.logo-dots i:nth-child(2) { background: var(--navy); }
.logo-dots i:nth-child(3) { background: var(--blue); }
.logo-dots i:nth-child(4) { background: var(--orange); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 9px;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  box-shadow: 0 16px 50px rgba(7, 27, 53, 0.12);
  backdrop-filter: blur(16px);
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 880;
  transition: background 180ms ease, transform 180ms ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  background: var(--cream);
  transform: translateY(-1px);
}

.home-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 64px;
  padding: 0 24px;
  color: var(--white);
  background: var(--navy);
  border-radius: 999px;
  font-weight: 920;
  box-shadow: 0 16px 44px rgba(7, 27, 53, 0.2);
}

.detail-hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 145px 6vw 80px;
  color: var(--cream);
  background: var(--accent);
  overflow: hidden;
}

.detail-hero::before,
.detail-hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
}

.detail-hero::before {
  width: 340px;
  height: 340px;
  right: -160px;
  top: 18%;
}

.detail-hero::after {
  width: 220px;
  height: 220px;
  left: -170px;
  bottom: 4%;
}

.hero-slope {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 19vh;
  background: var(--sky-soft);
  clip-path: polygon(0 56%, 100% 0, 100% 100%, 0 100%);
}

.detail-hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 0.92fr);
  gap: 54px;
  align-items: center;
  width: min(1240px, 100%);
}

.hero-copy h1 {
  margin: 0;
  max-width: 720px;
  font-size: clamp(4rem, 8vw, 8.8rem);
  line-height: 0.84;
  letter-spacing: -0.055em;
  text-transform: uppercase;
}

.hero-copy h1 span {
  display: block;
  color: var(--white);
}

.hero-copy p {
  max-width: 610px;
  margin: 28px 0 0;
  color: var(--white);
  font-size: clamp(1.1rem, 1.7vw, 1.45rem);
  font-weight: 780;
  line-height: 1.38;
}

.eyebrow,
.source-tag {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 8px 13px;
  color: var(--navy);
  background: var(--cream);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 920;
  letter-spacing: 0.02em;
}

.eyebrow { margin-bottom: 24px; }

.hero-media {
  position: relative;
  padding: 18px;
  background: var(--accent-2);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  transform: rotate(2deg);
}

.hero-media::before {
  content: "";
  position: absolute;
  inset: 30px -22px -22px 30px;
  z-index: -1;
  border-radius: var(--radius-xl);
  border: 4px solid var(--cream);
}

.hero-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 10px solid var(--cream);
  border-radius: 40px;
}

.hero-media .source-tag { margin-top: 12px; }

.page-intro,
.content-section {
  position: relative;
  padding: 110px 6vw;
}

.page-intro {
  background: var(--sky-soft);
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.62fr);
  gap: 56px;
  align-items: end;
  max-width: 1240px;
  margin: 0 auto;
}

.section-copy h2,
.section-title h2,
.closing-panel h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(3.2rem, 7vw, 7.8rem);
  line-height: 0.88;
  letter-spacing: -0.055em;
}

.section-copy p,
.section-title p,
.closing-panel p {
  max-width: 680px;
  color: var(--muted);
  font-size: clamp(1.08rem, 1.7vw, 1.35rem);
  font-weight: 760;
  line-height: 1.48;
}

.intro-facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.fact {
  min-height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
  color: var(--cream);
  background: var(--navy);
  border-radius: var(--radius-md);
}

.fact:nth-child(2),
.fact:nth-child(3) { background: var(--accent-2); }
.fact:nth-child(4) { background: var(--accent); }
.fact strong { font-size: clamp(2rem, 4vw, 4rem); line-height: 0.9; }
.fact span { font-weight: 820; line-height: 1.25; }

.content-section.alt { background: var(--cream); }
.content-section.deep {
  color: var(--white);
  background: var(--navy);
}

.section-title {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.5fr);
  gap: 40px;
  align-items: end;
  max-width: 1240px;
  margin: 0 auto 54px;
}

.deep .section-title h2,
.deep .section-title p { color: var(--white); }

.detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  max-width: 1240px;
  margin: 0 auto;
}

.detail-grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.detail-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.info-card {
  position: relative;
  min-height: 500px;
  display: flex;
  flex-direction: column;
  padding: 20px;
  color: var(--white);
  background: var(--accent);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.info-card:nth-child(even) { background: var(--accent-2); }
.info-card:nth-child(3n) { background: var(--blue); }
.info-card:hover {
  transform: translateY(-8px) rotate(-0.5deg);
  box-shadow: var(--shadow);
}

.info-card img {
  width: 100%;
  height: auto;
  max-height: 300px;
  object-fit: contain;
  border: 8px solid var(--cream);
  border-radius: 26px;
}

.info-card-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 20px 7px 8px;
}

.info-card h3 {
  margin: 0;
  color: var(--cream);
  font-size: clamp(1.5rem, 2.4vw, 2.3rem);
  line-height: 0.98;
  text-transform: uppercase;
}

.info-card p {
  margin: 13px 0 0;
  font-weight: 740;
  line-height: 1.42;
}

.info-card .source-tag {
  margin-top: auto;
  transform: translateY(4px);
}

.level-rail {
  display: flex;
  gap: 22px;
  width: max-content;
  padding: 0 6vw 28px;
  will-change: transform;
}

.level-card {
  width: min(760px, 80vw);
  min-height: 500px;
  padding: 20px;
  color: var(--navy);
  background: var(--cream);
  border-radius: 44px;
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.2);
}

.level-card img {
  width: 100%;
  height: auto;
  max-height: 450px;
  object-fit: contain;
  border: 8px solid var(--white);
  border-radius: 30px;
}

.level-card-copy {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 18px;
  margin-top: 20px;
}

.level-badge {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  color: var(--white);
  background: var(--blue);
  border-radius: 50%;
  font-size: 1.5rem;
  font-weight: 950;
}

.level-card h3 { margin: 0; font-size: clamp(1.8rem, 3vw, 3rem); line-height: 0.95; }
.level-card p { margin: 10px 0 0; color: var(--muted); font-weight: 740; line-height: 1.4; }

.feature-stage {
  display: grid;
  grid-template-columns: minmax(300px, 0.78fr) minmax(360px, 1fr);
  gap: 52px;
  align-items: center;
  max-width: 1240px;
  margin: 0 auto;
}

.feature-stage.reverse { grid-template-columns: minmax(360px, 1fr) minmax(300px, 0.78fr); }
.feature-stage.reverse .stage-media { order: 2; }

.stage-media {
  padding: 18px;
  background: var(--accent);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.stage-media img {
  width: 100%;
  height: auto;
  max-height: 650px;
  object-fit: contain;
  border: 9px solid var(--white);
  border-radius: 40px;
}

.stage-copy h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(2.8rem, 6vw, 6.6rem);
  line-height: 0.9;
  letter-spacing: -0.05em;
}

.stage-copy p {
  color: var(--muted);
  font-size: 1.18rem;
  font-weight: 740;
  line-height: 1.55;
}

.point-list {
  display: grid;
  gap: 12px;
  margin: 28px 0 0;
}

.point-list span {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  color: var(--navy);
  background: var(--white);
  border-radius: 999px;
  font-weight: 820;
}

.point-list span::before {
  content: "";
  flex: 0 0 auto;
  width: 13px;
  height: 13px;
  background: var(--orange);
  border-radius: 50%;
}

.case-list {
  display: grid;
  gap: 28px;
  max-width: 1240px;
  margin: 0 auto;
}

.case-row {
  display: grid;
  grid-template-columns: 110px minmax(320px, 0.82fr) minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  padding: 22px;
  background: var(--white);
  border-radius: 42px;
  box-shadow: 0 16px 54px rgba(7, 27, 53, 0.1);
}

.case-index {
  align-self: start;
  color: var(--accent);
  font-size: clamp(3rem, 6vw, 6rem);
  font-weight: 950;
  line-height: 0.9;
}

.case-row img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border: 8px solid var(--cream);
  border-radius: 30px;
}

.case-row h3 {
  margin: 14px 0 0;
  color: var(--navy);
  font-size: clamp(2rem, 4vw, 4.2rem);
  line-height: 0.95;
}

.case-row p {
  color: var(--muted);
  font-weight: 730;
  line-height: 1.5;
}

.closing {
  padding: 110px 6vw;
  background: var(--accent);
}

.closing-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 34px;
  align-items: end;
  max-width: 1240px;
  margin: 0 auto;
  padding: 50px;
  background: var(--cream);
  border-radius: var(--radius-xl);
}

.closing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 24px;
  color: var(--white);
  background: var(--navy);
  border-radius: 999px;
  font-weight: 900;
}

.action.secondary { background: var(--orange); }

.detail-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 26px 6vw;
  color: var(--cream);
  background: var(--navy);
  font-weight: 800;
}

@media (max-width: 1080px) {
  .nav-links { display: none; }
  .detail-hero-inner,
  .intro-grid,
  .section-title,
  .feature-stage,
  .feature-stage.reverse,
  .closing-panel {
    grid-template-columns: 1fr;
  }

  .feature-stage.reverse .stage-media { order: initial; }
  .detail-grid,
  .detail-grid.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .case-row { grid-template-columns: 80px 1fr; }
  .case-row > div:last-child { grid-column: 2; }
}

@media (max-width: 720px) {
  .detail-nav { top: 14px; left: 16px; right: 16px; }
  .home-link { min-height: 52px; padding: 0 17px; }
  .logo { font-size: 2.2rem; }
  .detail-hero::before,
  .detail-hero::after { display: none; }
  .detail-hero { padding: 120px 20px 70px; }
  .detail-hero-inner { grid-template-columns: 1fr; gap: 34px; }
  .hero-copy h1 { font-size: clamp(3.5rem, 17vw, 5.5rem); }
  .hero-media { transform: none; border-radius: 36px; }
  .hero-media img { border-radius: 26px; }
  .page-intro,
  .content-section,
  .closing { padding: 78px 20px; }
  .section-copy h2,
  .section-title h2,
  .closing-panel h2 { font-size: clamp(2.8rem, 15vw, 5rem); }
  .intro-facts,
  .detail-grid,
  .detail-grid.four,
  .detail-grid.two { grid-template-columns: 1fr; }
  .level-rail { display: grid; width: auto; padding: 0 20px 24px; }
  .level-card { width: 100%; }
  .level-card img { height: 230px; }
  .stage-media img { min-height: 280px; }
  .case-row { grid-template-columns: 1fr; padding: 16px; }
  .case-row > div:last-child { grid-column: auto; }
  .case-row img { height: 230px; }
  .closing-panel { padding: 28px; border-radius: 36px; }
  .detail-footer { display: grid; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}
