:root {
  --blue-main: #1173D5;
  --blue-deep: #0754a6;
  --blue-soft: #dcebff;
  --blue-sky: #1cb0f6;
  --blue-ink: #0d2340;
  --indigo: #4f46e5;
  --yellow: #ffc800;
  --orange: #ff9600;
  --ink: #102034;
  --muted: #5f7088;
  --paper: #fbfdff;
  --line: #d7e5f7;
  --shadow: 0 18px 50px rgba(13, 68, 125, 0.15);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

section[id] {
  scroll-margin-top: 96px;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(17, 115, 213, 0.18), transparent 32rem),
    radial-gradient(circle at 82% 12%, rgba(28, 176, 246, 0.16), transparent 24rem),
    linear-gradient(180deg, #eef7ff 0%, var(--paper) 34%, #f2f7ff 100%);
  font-family: "Inter", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

img,
video {
  display: block;
  height: auto;
  max-width: 100%;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: 100%;
  margin: 0 auto;
  padding: 16px max(16px, calc((100% - 1120px) / 2));
  background: rgba(251, 253, 255, 0.88);
  border-bottom: 1px solid rgba(215, 229, 247, 0.85);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
  transition: transform 180ms ease;
}

.brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  color: #fff;
  background: var(--blue-main);
  border: 2px solid var(--blue-deep);
  border-radius: 12px;
  box-shadow: 0 5px 0 var(--blue-deep);
  overflow: hidden;
  font-weight: 900;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(215, 229, 247, 0.9);
  border-radius: 999px;
  box-shadow: 0 10px 28px rgba(13, 68, 125, 0.08);
}

.nav-links a {
  padding: 8px 13px;
  color: var(--muted);
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--ink);
  background: var(--blue-soft);
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  place-items: center;
  padding: 0;
  background: #fff;
  border: 2px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 5px 0 #bdd3ee;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--blue-deep);
  border-radius: 999px;
  transition: transform 180ms ease, opacity 180ms ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.72fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  width: min(1120px, calc(100% - 32px));
  min-height: calc(100vh - 76px);
  margin: 0 auto;
  padding: clamp(3rem, 6vw, 6rem) 0;
}

.hero-copy,
.hero-visual,
.intro-panel,
.project-meta,
.problem-copy,
.feature-copy,
.reference-strip,
.process-note,
.sketch-process,
.loading-feature > *,
.lessons-layout > * {
  min-width: 0;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--blue-deep);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-size: clamp(3.6rem, 8.5vw, 6.35rem);
  line-height: 0.9;
  letter-spacing: 0;
  max-width: 100%;
  overflow-wrap: normal;
}

.subtitle {
  max-width: 620px;
  margin: 24px 0 0;
  color: var(--blue-ink);
  font-size: clamp(1.16rem, 2vw, 1.55rem);
  font-weight: 600;
  line-height: 1.35;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  overflow: hidden;
  border-radius: 14px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.is-pressed,
.brand.is-pressed,
.nav-links a.is-pressed {
  transform: translateY(2px) scale(0.98);
}

.button.primary {
  color: #fff;
  background: var(--blue-main);
  border: 2px solid var(--blue-deep);
  box-shadow: 0 6px 0 var(--blue-deep);
}

.button.primary.is-pressed {
  box-shadow: 0 2px 0 var(--blue-deep);
}

.button.secondary {
  color: var(--ink);
  background: #fff;
  border: 2px solid var(--line);
  box-shadow: 0 6px 0 #bdd3ee;
}

.button.secondary.is-pressed {
  box-shadow: 0 2px 0 #bdd3ee;
}

.button-ripple {
  position: absolute;
  pointer-events: none;
  background: rgba(255, 255, 255, 0.42);
  border-radius: 50%;
  opacity: 0;
  transform: scale(0);
  animation: ripple 620ms ease-out;
}

.hero-visual {
  position: relative;
  min-height: 450px;
  padding: 34px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(17, 115, 213, 0.24), rgba(28, 176, 246, 0.22) 48%, rgba(79, 70, 229, 0.13)),
    #ffffff;
  border: 2px solid var(--line);
  border-radius: 32px;
  box-shadow: var(--shadow), 0 8px 0 #bed8f5;
}

.hero-visual::before {
  position: absolute;
  inset: 22px;
  content: "";
  border: 3px dashed rgba(17, 115, 213, 0.34);
  border-radius: 24px;
}

.hero-media {
  position: relative;
  z-index: 1;
  width: min(100%, 420px);
  max-height: 420px;
  margin: 28px auto 0;
  object-fit: contain;
  filter: drop-shadow(0 22px 24px rgba(13, 68, 125, 0.18));
}

.overview-band,
.solutions-band,
.lessons-band {
  padding: clamp(4rem, 8vw, 7rem) 0;
}

.overview-band {
  background: #fff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  align-items: stretch;
}

.intro-panel,
.project-meta,
.problem-copy,
.loading-feature,
.sketch-card,
.reference-strip,
.process-note,
.sketch-process {
  background: rgba(255, 255, 255, 0.92);
  border: 2px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.intro-panel {
  padding: clamp(1.5rem, 4vw, 3rem);
}

h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

p,
li {
  text-wrap: pretty;
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.05;
}

h3 {
  margin: 0;
  font-size: clamp(1.45rem, 2.4vw, 2.1rem);
  line-height: 1.12;
}

.intro-panel p:not(.eyebrow),
.problem-copy p,
.feature-copy p,
.reference-strip p,
.process-note p,
.sketch-process p,
.jump-comparison p,
.lessons-copy p {
  color: var(--muted);
  font-size: 1.04rem;
  max-width: 68ch;
}

.project-meta {
  display: grid;
  gap: 1px;
  overflow: hidden;
}

.project-meta div {
  display: grid;
  gap: 4px;
  padding: 22px;
  background: #f5faff;
}

.project-meta span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.project-meta strong {
  font-size: 1.03rem;
}

.problem-section,
.process-section {
  padding: clamp(4rem, 8vw, 7rem) 0;
}

.section-kicker {
  max-width: 760px;
  margin-bottom: 32px;
}

.section-kicker.centered {
  margin-inline: auto;
  text-align: center;
}

.problem-layout,
.feature-row,
.loading-feature,
.lessons-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
  gap: 28px;
  align-items: center;
}

.problem-layout.text-only {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}

.problem-copy {
  padding: clamp(1.5rem, 3vw, 2.5rem);
  align-content: start;
}

.media-pair,
.image-row,
.motion-grid {
  display: grid;
  gap: 16px;
}

figure {
  margin: 0;
}

figure img,
figure video,
.image-row img,
.mascot-stage img,
.loading-feature video,
.sketch-card img {
  width: 100%;
  border: 2px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(13, 68, 125, 0.12);
}

.zoomable-image,
.zoomable-video {
  cursor: zoom-in;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.zoomable-image:hover,
.zoomable-video:hover {
  box-shadow: 0 18px 42px rgba(13, 68, 125, 0.18);
  transform: translateY(-2px);
}

figure img,
figure video,
.image-row img {
  aspect-ratio: 9 / 14;
  object-fit: contain;
}

figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
  text-align: center;
}

.insight-list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 24px 0 0;
  list-style: none;
}

.insight-list li {
  padding: 14px 16px;
  background: var(--blue-soft);
  border: 1px solid #b8d8ff;
  border-radius: 16px;
  color: #0d3e72;
  font-weight: 700;
}

.solutions-band {
  background: linear-gradient(180deg, #eaf4ff 0%, #f7fbff 54%, #eef4ff 100%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.feature-row {
  padding: clamp(1.25rem, 3vw, 2rem);
  margin-top: 28px;
  background:
    linear-gradient(135deg, rgba(17, 115, 213, 0.17), rgba(28, 176, 246, 0.16), rgba(255, 200, 0, 0.14)),
    #ffffff;
  border: 2px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
  transform: perspective(900px) rotateX(0deg) rotateY(0deg) translateY(0);
  transition: transform 220ms ease, box-shadow 220ms ease;
  will-change: transform;
}

.intro-panel,
.problem-copy,
.sketch-card,
.reference-strip,
.process-note,
.sketch-process,
.jump-comparison,
.process-cluster.animated-elements {
  transform: perspective(900px) rotateX(0deg) rotateY(0deg) translateY(0);
  transition: transform 220ms ease, box-shadow 220ms ease;
  will-change: transform;
}

.feature-row.is-tilting,
.intro-panel.is-tilting,
.problem-copy.is-tilting,
.sketch-card.is-tilting,
.reference-strip.is-tilting,
.process-note.is-tilting,
.sketch-process.is-tilting,
.jump-comparison.is-tilting,
.process-cluster.animated-elements.is-tilting {
  box-shadow: 0 24px 64px rgba(13, 68, 125, 0.18);
  transform: perspective(900px) rotateX(var(--rotate-x, 0deg)) rotateY(var(--rotate-y, 0deg)) translateY(-3px);
}

.reference-strip {
  display: grid;
  grid-template-columns: minmax(260px, 0.75fr) minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  background:
    linear-gradient(135deg, rgba(17, 115, 213, 0.17), rgba(28, 176, 246, 0.16), rgba(255, 200, 0, 0.14)),
    #ffffff;
}

.reference-strip h3,
.process-note h3 {
  max-width: 560px;
}

.feature-row.reverse {
  grid-template-columns: minmax(300px, 0.95fr) minmax(0, 1.05fr);
}

.feature-row.reverse .feature-copy {
  order: 2;
}

.feature-copy {
  padding: clamp(0.5rem, 2vw, 1.25rem);
}

.feature-number {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  margin-bottom: 18px;
  color: #fff;
  background: var(--indigo);
  border-radius: 18px;
  box-shadow: 0 5px 0 #3730a3;
  font-weight: 900;
}

.image-row.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.paired-showcase {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 16px;
  align-items: stretch;
}

.paired-showcase figure {
  display: grid;
  align-content: start;
}

.paired-showcase .mascot-proof img {
  aspect-ratio: 1 / 1;
  object-fit: contain;
}

.motion-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.process-cluster {
  display: grid;
  grid-template-columns: minmax(260px, 0.42fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.process-cluster.animated-elements {
  margin-top: 28px;
  padding: clamp(1.5rem, 3vw, 2.4rem);
  background: rgba(255, 255, 255, 0.92);
  border: 2px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.process-cluster.animated-elements .process-note {
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.process-note {
  padding: clamp(1.5rem, 3vw, 2.4rem);
}

.sketch-process,
.jump-comparison {
  display: grid;
  grid-template-columns: minmax(260px, 0.42fr) minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  margin-top: 28px;
  padding: clamp(1.5rem, 3vw, 2.4rem);
  background: rgba(255, 255, 255, 0.92);
  border: 2px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.sketch-process .paired-showcase,
.jump-comparison .paired-showcase {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sketch-process img,
.sketch-process video,
.jump-comparison img {
  aspect-ratio: 1 / 1;
  object-fit: contain;
}

.sketch-process,
.jump-comparison,
.process-cluster.animated-elements {
  min-height: 430px;
  align-items: center;
  gap: clamp(1.5rem, 3vw, 2.4rem);
  background:
    linear-gradient(135deg, rgba(17, 115, 213, 0.1), rgba(28, 176, 246, 0.1), rgba(255, 200, 0, 0.08)),
    rgba(255, 255, 255, 0.92);
}

.motion-grid figure img,
.motion-grid figure video {
  aspect-ratio: 1 / 1.15;
}

.lessons-band {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 88% 18%, rgba(28, 176, 246, 0.28), transparent 24rem),
    linear-gradient(135deg, #071f3d 0%, #0b3363 58%, #1173d5 120%);
  color: #fff;
}

.lessons-layout {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(320px, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.lessons-copy p {
  color: #c8def8;
}

.lessons-copy h2 {
  font-size: clamp(2.4rem, 5vw, 4.6rem);
}

.lessons-band .eyebrow {
  color: #8bd3ff;
}

.lesson-takeaways {
  display: grid;
  gap: 16px;
}

.lesson-takeaways article {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding: 20px;
  background: rgba(255, 255, 255, 0.11);
  border: 1px solid rgba(215, 229, 247, 0.28);
  border-radius: 22px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.14);
  backdrop-filter: blur(16px);
}

.lesson-takeaways span {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  color: #071f3d;
  background: #8bd3ff;
  border-radius: 16px;
  box-shadow: 0 5px 0 #1173d5;
  font-weight: 900;
}

.lesson-takeaways p {
  margin: 0;
  color: #f2f8ff;
  font-weight: 700;
  line-height: 1.45;
}

.sketch-card {
  padding: 14px;
  background: #fff;
}

.sketch-card img {
  aspect-ratio: 16 / 10;
  object-fit: contain;
}

.sketch-card figcaption {
  color: var(--muted);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 72px 24px 24px;
  background: rgba(7, 31, 61, 0.82);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox img,
.lightbox video {
  width: auto;
  max-width: min(1040px, 94vw);
  max-height: 84vh;
  object-fit: contain;
  background: #fff;
  border: 2px solid rgba(215, 229, 247, 0.9);
  border-radius: 24px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.36);
  cursor: zoom-out;
}

.lightbox img[hidden],
.lightbox video[hidden] {
  display: none;
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: max(18px, calc((100% - 1120px) / 2));
  min-height: 44px;
  padding: 0 18px;
  color: #fff;
  background: var(--blue-main);
  border: 2px solid #8bd3ff;
  border-radius: 14px;
  box-shadow: 0 5px 0 var(--blue-deep);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

@keyframes ripple {
  0% {
    opacity: 0.65;
    transform: scale(0);
  }

  100% {
    opacity: 0;
    transform: scale(2.2);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}

@media (max-width: 900px) {
  .site-header {
    position: sticky;
    align-items: center;
    flex-wrap: wrap;
  }

  .menu-toggle {
    display: grid;
  }

  .nav-links {
    display: grid;
    flex-basis: 100%;
    grid-template-columns: 1fr;
    max-height: 0;
    margin-top: 0;
    padding: 0;
    overflow: hidden;
    opacity: 0;
    border-width: 0;
    border-radius: 18px;
    box-shadow: none;
    transition: max-height 220ms ease, opacity 180ms ease, padding 180ms ease, margin 180ms ease;
  }

  .site-header.menu-open .nav-links {
    max-height: 320px;
    margin-top: 12px;
    padding: 8px;
    opacity: 1;
    border-width: 1px;
    box-shadow: 0 14px 34px rgba(13, 68, 125, 0.12);
  }

  .nav-links a {
    padding: 12px 14px;
  }

  .hero,
  .overview-grid,
  .problem-layout,
  .problem-layout.text-only,
  .reference-strip,
  .feature-row,
  .feature-row.reverse,
  .paired-showcase,
  .process-cluster,
  .sketch-process,
  .jump-comparison,
  .loading-feature,
  .lessons-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 2rem;
  }

  .hero-visual {
    min-height: 340px;
  }

  .feature-row.reverse .feature-copy {
    order: 0;
  }

  .motion-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .media-pair,
  .image-row.three,
  .motion-grid {
    grid-template-columns: 1fr;
  }

  .feature-row,
  .loading-feature {
    padding: 20px;
  }
}

@media (max-width: 620px) {
  .hero-actions,
  .media-pair,
  .image-row.three,
  .motion-grid {
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }

  .hero-visual,
  .intro-panel,
  .project-meta,
  .problem-copy,
  .feature-row,
  .loading-feature,
  .sketch-card {
    border-radius: 20px;
  }
}
